:root {
    --bg-deep: #0E1420;
    --bg-panel: #161E2E;
    --bg-card: #1B2436;
    --bg-card-hover: #212C42;
    --border-soft: rgba(212, 175, 100, 0.14);
    --border-strong: rgba(212, 175, 100, 0.35);
    --gold: #D4AF64;
    --gold-bright: #E8C77E;
    --gold-dim: #8A7346;
    --text-primary: #F3EFE6;
    --text-secondary: #ABB2C0;
    --text-muted: #6B7286;
    --radius: 10px;
    --radius-lg: 16px;
    --st-green-fg: #9AD46B;
    --st-amber-fg: #F5B94E;
    --st-red-fg: #F09595;
}

* { box-sizing: border-box; }
body {
    margin: 0;
    font-family: 'Tajawal', 'Segoe UI', sans-serif;
    background: var(--bg-deep);
    color: var(--text-primary);
    line-height: 1.6;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.site-header {
    position: sticky; top: 0; z-index: 50;
    background: rgba(14,20,32,0.92);
    backdrop-filter: blur(6px);
    border-bottom: 1px solid var(--border-soft);
}
.site-header-inner {
    max-width: 1180px; margin: 0 auto; padding: 14px 24px;
    display: flex; align-items: center; justify-content: space-between;
}
.site-brand { display: flex; align-items: center; gap: 10px; font-size: 20px; font-weight: 700; color: var(--gold-bright); }
.site-brand img { width: 36px; height: 36px; object-fit: contain; border-radius: 50%; }
.site-nav { display: flex; gap: 24px; }
.site-nav a { color: var(--text-secondary); font-weight: 600; }
.site-nav a:hover { color: var(--gold); }

.hero-slider { position: relative; height: 480px; overflow: hidden; }
.hero-slide {
    position: absolute; inset: 0; opacity: 0; transition: opacity 1s ease;
    background-size: cover; background-position: center;
}
.hero-slide.active { opacity: 1; }
.hero-slide::after {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(14,20,32,0.2) 0%, rgba(14,20,32,0.85) 100%);
}
.hero-caption {
    position: absolute; bottom: 60px; left: 0; right: 0; text-align: center; z-index: 2; padding: 0 20px;
}
.hero-caption h1 { font-size: 38px; margin: 0 0 8px; color: var(--gold-bright); }
.hero-caption p { color: var(--text-secondary); font-size: 17px; margin: 0 0 20px; }
.hero-dots { display: flex; gap: 8px; justify-content: center; margin-top: 16px; position: relative; z-index: 2; }
.hero-dots span { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,0.3); cursor: pointer; }
.hero-dots span.active { background: var(--gold); }

.container { max-width: 1180px; margin: 0 auto; padding: 60px 24px; }
.section-title { text-align: center; margin-bottom: 40px; }
.section-title h2 { font-size: 28px; color: var(--gold-bright); margin: 0 0 8px; }
.section-title p { color: var(--text-secondary); }

.btn {
    display: inline-block; padding: 12px 26px; border-radius: var(--radius);
    background: var(--gold); color: #16110A; font-weight: 700; border: none; cursor: pointer;
    font-size: 15px; transition: background .2s;
}
.btn:hover { background: var(--gold-bright); }
.btn.secondary { background: transparent; color: var(--gold); border: 1px solid var(--border-strong); }
.btn.block { width: 100%; text-align: center; }

.room-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 26px; }
.room-card {
    background: var(--bg-card); border: 1px solid var(--border-soft); border-radius: var(--radius-lg);
    overflow: hidden; transition: transform .2s, border-color .2s;
}
.room-card:hover { transform: translateY(-4px); border-color: var(--border-strong); }
.room-card .cover { height: 190px; background: var(--bg-panel); overflow: hidden; }
.room-card .cover img { width: 100%; height: 100%; object-fit: cover; }
.room-card .body { padding: 20px; }
.room-card h3 { margin: 0 0 8px; font-size: 19px; color: var(--text-primary); }
.room-card .meta { color: var(--text-secondary); font-size: 13px; margin-bottom: 14px; }
.room-card .price { color: var(--gold-bright); font-weight: 700; font-size: 18px; margin-bottom: 14px; }
.room-card .price span { font-size: 13px; color: var(--text-muted); font-weight: 400; }

.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px,1fr)); gap: 10px; margin: 20px 0; }
.gallery img { border-radius: var(--radius); height: 130px; width: 100%; object-fit: cover; }

.panel { background: var(--bg-card); border: 1px solid var(--border-soft); border-radius: var(--radius-lg); padding: 28px; margin-bottom: 24px; }
.field { margin-bottom: 16px; }
.field label { display: block; margin-bottom: 6px; color: var(--text-secondary); font-size: 14px; }
.field input, .field select {
    width: 100%; padding: 12px 14px; border-radius: var(--radius); border: 1px solid var(--border-soft);
    background: var(--bg-panel); color: var(--text-primary); font-size: 15px;
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } .hero-caption h1 { font-size: 26px; } .hero-slider { height: 340px; } }

.alert { padding: 14px 18px; border-radius: var(--radius); background: rgba(226,75,74,0.15); color: var(--st-red-fg); border: 1px solid rgba(226,75,74,.4); margin-bottom: 20px; }
.alert.success { background: rgba(99,153,34,0.15); color: var(--st-green-fg); border-color: rgba(99,153,34,.4); }

.pay-box { text-align: center; }
.pay-amount { font-size: 34px; font-weight: 800; color: var(--gold-bright); margin: 10px 0; direction: ltr; }
.pay-wallet {
    background: var(--bg-panel); border: 1px dashed var(--border-strong); border-radius: var(--radius);
    padding: 14px; font-family: monospace; font-size: 14px; word-break: break-all; direction: ltr; margin: 16px 0;
}
.pay-timer { font-size: 22px; font-weight: 700; color: var(--st-amber-fg); margin: 16px 0; }
.pay-status { padding: 10px; border-radius: var(--radius); font-weight: 600; margin-top: 16px; }
#qrcode { display: flex; justify-content: center; margin: 20px 0; }
#qrcode img, #qrcode canvas { border-radius: 10px; background: #fff; padding: 10px; }

.site-footer { text-align: center; padding: 30px; color: var(--text-muted); border-top: 1px solid var(--border-soft); font-size: 13px; }
