/* ============================================================
   styles.css — Taj Mahal Marquee
   All CSS variables at the top for easy theming.
   Sections clearly labeled for easy navigation.
   ============================================================ */

/* ── Variables ───────────────────────────────────────────────────────────── */
:root {
  --gold:        #C9A84C;
  --gold-light:  #E8C97A;
  --dark:        #0A0806;
  --dark2:       #110E07;
  --dark3:       #1A1508;
  --card:        #141008;
  --border:      #483817;
  --text:        #F0E6CC;
  --text2:       #A89060;
  --red:         #E05252;
  --green:       #52B788;
  --blue:        #4E9FE8;
  --purple:      #9B72CF;
  --radius:      14px;
  --shadow:      0 8px 32px rgba(0,0,0,.5);
}

/* ── Reset ───────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; margin: 0; padding: 0; scroll-behavior: smooth; }
body   { font-family: 'Tajawal', sans-serif; background: var(--dark); color: var(--text); overflow-x: hidden; }
button { font-family: inherit; }
a      { text-decoration: none; }

/* ── Typography ──────────────────────────────────────────────────────────── */
h1, h2, h3, .font-display { font-family: 'Cormorant Garamond', serif; }
.gold { background: linear-gradient(90deg, var(--gold), var(--gold-light)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }

/* ── Scrollbar ───────────────────────────────────────────────────────────── */
::-webkit-scrollbar       { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--dark2); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--gold); }

/* ══════════════════════════════════════════════════════════════
   LANDING PAGE
   ══════════════════════════════════════════════════════════════ */

#landingView {
  background: linear-gradient(180deg, #080705 0%, #10100a 40%, #07120f 74%, #090705 100%);
  color: var(--text);
}

#landingView [style*="letter-spacing"] { letter-spacing: 0 !important; }

/* ── Sticky Nav ──────────────────────────────────────────────────────────── */
.top-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 900;
  background: rgba(8,7,5,.86); border-bottom: 1px solid rgba(201,168,76,.16);
  box-shadow: 0 12px 32px rgba(0,0,0,.18);
  backdrop-filter: blur(12px); display: flex; align-items: center;
  justify-content: space-between; padding: 14px 60px;
}
.nav-logo        { display: flex; align-items: center; gap: 12px; }
.nav-logo img    { width: 44px; height: 44px; border-radius: 8px; object-fit: cover; border: 1px solid rgba(201,168,76,.62); box-shadow: 0 10px 24px rgba(0,0,0,.3); }
.nav-brand       { font-family: 'Cormorant Garamond', serif; font-size: 17px; font-weight: 700; color: var(--gold); letter-spacing: 0; line-height: 1.1; }
.nav-brand-sub   { font-size: 10px; color: #d5c8a8; letter-spacing: 0; }
.nav-links       { display: flex; align-items: center; gap: 2px; }
.nav-link        { padding: 8px 12px; color: #c8b98f; font-size: 13px; letter-spacing: 0; transition: .2s; border-bottom: 1.5px solid transparent; cursor: pointer; }
.nav-link:hover, .nav-link.active { color: var(--gold); border-bottom-color: var(--gold); }
.nav-portal-btn  { margin-left: 14px; padding: 10px 18px; background: linear-gradient(135deg, var(--gold), var(--gold-light)); color: #0A0806; font-weight: 700; font-size: 13px; border: none; border-radius: 8px; cursor: pointer; letter-spacing: 0; transition: .3s; box-shadow: 0 10px 26px rgba(201,168,76,.18); }
.nav-portal-btn:hover { opacity: .9; transform: translateY(-1px); }

/* ── Hero ────────────────────────────────────────────────────────────────── */
.hero-section {
  min-height: 94vh; display: flex; flex-direction: column;
  align-items: flex-start; justify-content: center; text-align: left;
  padding: 132px 60px 34px;
  position: relative; overflow: hidden; isolation: isolate;
}
.hero-section::before {
  content: ''; position: absolute; inset: 0; z-index: -2;
  background:
    linear-gradient(90deg, rgba(8,7,5,.94) 0%, rgba(8,7,5,.82) 38%, rgba(8,7,5,.42) 68%, rgba(8,7,5,.62) 100%),
    linear-gradient(180deg, rgba(8,7,5,.18) 0%, rgba(8,7,5,.08) 45%, #080705 100%),
    url("../assets/hero-marquee-building.jpg") center center / cover no-repeat;
}
.hero-section::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 34%; z-index: -1;
  background: linear-gradient(180deg, rgba(8,7,5,0), #080705);
}
.hero-section > * { position: relative; z-index: 1; }
.hero-ring    { display: none; }
.hero-badge   { display: inline-flex; align-items: center; gap: 8px; padding: 7px 16px; background: rgba(201,168,76,.12); border: 1px solid rgba(201,168,76,.28); border-radius: 8px; font-size: 12px; color: var(--gold-light); margin-bottom: 18px; letter-spacing: 0; text-transform: uppercase; }
.hero-logo-wrap { position: relative; margin-bottom: 22px; display: inline-block; }
.hero-logo-glow { display: none; }
.hero-logo    { width: 112px; height: 112px; border-radius: 8px; object-fit: cover; border: 1px solid rgba(201,168,76,.72); box-shadow: 0 18px 45px rgba(0,0,0,.42); position: relative; z-index: 1; }
.hero-title   { font-family: 'Cormorant Garamond', serif; font-size: 92px; font-weight: 700; line-height: .95; margin-bottom: 10px; letter-spacing: 0; max-width: 760px; text-shadow: 0 18px 44px rgba(0,0,0,.55); }
.hero-subtitle { font-family: 'Cormorant Garamond', serif; font-size: 24px; color: #eadcb7; letter-spacing: 0; margin-bottom: 12px; font-style: italic; }
.hero-divider { display: flex; align-items: center; gap: 14px; margin: 14px 0 24px; width: 280px; }
.hero-divider-line { flex: 1; height: 1px; }
.hero-p       { font-size: 17px; color: #d5c8a8; max-width: 600px; line-height: 1.8; margin-bottom: 34px; }
.hero-btns    { display: flex; gap: 14px; flex-wrap: wrap; justify-content: flex-start; }
.stats-strip  { width: min(1120px, 100%); display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; margin-top: 52px; padding: 18px 20px; background: rgba(10,8,6,.68); border: 1px solid rgba(201,168,76,.18); border-radius: 8px; backdrop-filter: blur(12px); box-shadow: 0 18px 50px rgba(0,0,0,.26); }
.stat-item    { text-align: center; padding: 8px 18px; border-right: 1px solid rgba(201,168,76,.16); }
.stat-item:last-child { border-right: 0; }
.stat-num     { font-family: 'Cormorant Garamond', serif; font-size: 38px; font-weight: 700; color: var(--gold); }
.stat-lbl     { font-size: 11px; color: #d5c8a8; letter-spacing: 0; text-transform: uppercase; margin-top: 4px; }

/* ── Landing Sections ────────────────────────────────────────────────────── */
.land-section     { padding: 92px 60px; position: relative; }
.land-section.alt { background: linear-gradient(180deg, rgba(20,16,9,.78), rgba(6,16,13,.56)); border-block: 1px solid rgba(201,168,76,.08); }
.sec-head         { text-align: center; margin: 0 auto 50px; max-width: 680px; }
.sec-tag          { font-size: 11px; color: var(--gold); letter-spacing: 0; text-transform: uppercase; margin-bottom: 12px; }
.sec-title        { font-family: 'Cormorant Garamond', serif; font-size: 52px; font-weight: 700; line-height: 1.05; }
.sec-p            { font-size: 15px; color: #c8b98f; max-width: 520px; margin: 12px auto 0; line-height: 1.8; }

/* Services */
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px,1fr)); gap: 18px; max-width: 1120px; margin: 0 auto; }
.svc-card      { min-height: 208px; background: linear-gradient(180deg, rgba(255,255,255,.045), rgba(255,255,255,.018)); border: 1px solid rgba(201,168,76,.16); border-radius: 8px; padding: 26px; transition: .25s; position: relative; overflow: hidden; box-shadow: 0 16px 38px rgba(0,0,0,.18); }
.svc-card::before { content:''; position:absolute; top:0; left:0; right:0; height:3px; background:linear-gradient(90deg,var(--gold),rgba(82,183,136,.72)); opacity:.78; }
.svc-card:hover { background: linear-gradient(180deg, rgba(201,168,76,.075), rgba(82,183,136,.035)); border-color: rgba(201,168,76,.32); transform: translateY(-3px); }
.svc-icon  { font-size: 34px; margin-bottom: 14px; }
.svc-title { font-family: 'Cormorant Garamond', serif; font-size: 21px; font-weight: 700; color: var(--gold-light); margin-bottom: 10px; }
.svc-desc  { font-size: 13px; color: #c8b98f; line-height: 1.7; }

/* Gallery */
.gallery-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; max-width: 1120px; margin: 0 auto; }
.gal-card     { aspect-ratio: 4/3; border: 1px solid rgba(201,168,76,.16); border-radius: 8px; display: flex; flex-direction: column; align-items: center; justify-content: center; transition: .25s; position: relative; overflow: hidden; background: linear-gradient(145deg, rgba(201,168,76,.12), rgba(82,183,136,.08) 54%, rgba(10,8,6,.78)); }
.gal-card:nth-child(3n+2) { background: linear-gradient(145deg, rgba(201,168,76,.1), rgba(224,82,82,.08) 54%, rgba(10,8,6,.78)); }
.gal-card:nth-child(3n) { background: linear-gradient(145deg, rgba(82,183,136,.13), rgba(201,168,76,.08) 54%, rgba(10,8,6,.8)); }
.gal-card::before { content:''; position:absolute; inset:12px; border:1px solid rgba(240,230,204,.1); border-radius:6px; pointer-events:none; }
.gal-card:hover { border-color: rgba(201,168,76,.36); transform: translateY(-3px); }
.gal-emoji { font-size: 42px; margin-bottom: 12px; }
.gal-title { font-family: 'Cormorant Garamond', serif; font-size: 18px; font-weight: 700; color: var(--gold-light); }
.gal-sub   { font-size: 11px; color: #c8b98f; margin-top: 4px; letter-spacing: 0; }

/* Why section */
.why-grid     { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; max-width: 1120px; margin: 0 auto; }
.why-item     { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.why-box      { background: linear-gradient(180deg, rgba(201,168,76,.075), rgba(82,183,136,.035)); border: 1px solid rgba(201,168,76,.18); border-radius: 8px; padding: 34px; text-align: center; box-shadow: 0 16px 42px rgba(0,0,0,.2); }
.hall-row     { background: rgba(0,0,0,.3); border-radius: 8px; padding: 11px 16px; display: flex; justify-content: space-between; border: 1px solid rgba(201,168,76,.14); margin-bottom: 10px; }

/* Testimonials */
.testi-grid   { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px,1fr)); gap: 18px; max-width: 1120px; margin: 0 auto; }
.testi-card   { background: rgba(255,255,255,.028); border: 1px solid rgba(201,168,76,.15); border-radius: 8px; padding: 26px; position: relative; }
.testi-quote  { position: absolute; top: 14px; right: 18px; font-size: 38px; opacity: .1; font-family: serif; }
.stars        { display: flex; gap: 2px; margin-bottom: 12px; }
.star         { color: var(--gold); font-size: 15px; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; max-width: 1120px; margin: 0 auto; }
.info-row     { display: flex; gap: 14px; margin-bottom: 20px; align-items: flex-start; }
.info-icon-box { width: 40px; height: 40px; background: rgba(201,168,76,.11); border: 1px solid rgba(201,168,76,.22); border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 17px; flex-shrink: 0; }
.info-label   { font-size: 11px; color: #c8b98f; letter-spacing: 0; text-transform: uppercase; margin-bottom: 4px; }
.info-val     { font-size: 14px; color: var(--text); line-height: 1.5; }
.pkg-row      { background: rgba(0,0,0,.28); border-radius: 8px; padding: 12px 16px; border: 1px solid rgba(201,168,76,.14); margin-bottom: 10px; }
.form-card    { background: linear-gradient(180deg, rgba(20,16,8,.98), rgba(9,14,12,.98)); border: 1px solid rgba(201,168,76,.18); border-radius: 8px; padding: 34px; position: relative; overflow: hidden; box-shadow: 0 20px 50px rgba(0,0,0,.24); }
.form-card::before { content:''; position:absolute; top:0; left:0; right:0; height:3px; background:linear-gradient(90deg,transparent,var(--gold),var(--gold-light),var(--gold),transparent); }

/* Footer */
footer { background: #080705; border-top: 1px solid rgba(201,168,76,.12); padding: 48px 60px 32px; }
.footer-grid  { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; max-width: 1120px; margin: 0 auto 36px; }
.footer-link  { font-size: 13px; color: #c8b98f; margin-bottom: 8px; display: block; transition: .2s; }
.footer-link:hover { color: var(--gold); }
.footer-bottom { border-top: 1px solid rgba(201,168,76,.1); padding-top: 22px; display: flex; justify-content: space-between; align-items: center; gap: 18px; max-width: 1120px; margin: 0 auto; }
.footer-portal-btn { padding: 9px 16px; background: linear-gradient(135deg,var(--gold),var(--gold-light)); color: #1a1209; border-radius: 8px; font-weight: 700; font-size: 13px; white-space: nowrap; }
.footer-portal-btn:hover { opacity: .9; }

/* ══════════════════════════════════════════════════════════════
   SHARED BUTTONS & FORMS
   ══════════════════════════════════════════════════════════════ */
.btn-primary {
  padding: 15px 38px; background: linear-gradient(135deg, var(--gold), var(--gold-light));
  color: #0A0806; font-weight: 700; font-size: 15px; border: none;
  border-radius: 8px; cursor: pointer; letter-spacing: 0; text-transform: uppercase;
  box-shadow: 0 4px 20px rgba(201,168,76,.3); transition: .3s; display: inline-block;
}
.btn-primary:hover  { transform: translateY(-3px); box-shadow: 0 10px 32px rgba(201,168,76,.45); }
.btn-ghost          { padding: 15px 38px; background: rgba(8,7,5,.42); color: var(--gold-light); font-weight: 600; font-size: 15px; border: 1.5px solid rgba(201,168,76,.38); border-radius: 8px; cursor: pointer; letter-spacing: 0; text-transform: uppercase; transition: .3s; display: inline-block; }
.btn-ghost:hover    { background: rgba(201,168,76,.07); border-color: var(--gold); transform: translateY(-2px); }
.btn-primary-sm     { padding: 10px 22px; background: linear-gradient(135deg,var(--gold),var(--gold-light)); color: #0A0806; font-weight: 700; font-size: 13px; border: none; border-radius: 8px; cursor: pointer; letter-spacing: .5px; transition: .3s; }
.btn-primary-sm:hover { opacity: .88; transform: translateY(-1px); }
.btn-cancel         { padding: 10px 20px; background: rgba(255,255,255,.04); border: 1px solid var(--border); color: var(--text2); border-radius: 8px; cursor: pointer; font-size: 13px; transition: .2s; }
.btn-cancel:hover   { background: rgba(255,255,255,.07); }
.btn-sm             { padding: 5px 11px; border-radius: 6px; font-size: 12px; font-weight: 600; cursor: pointer; transition: .2s; border: none; }
.bsm-info           { background: rgba(78,159,232,.14); color: #4E9FE8; border: 1px solid rgba(78,159,232,.25)!important; }
.bsm-danger         { background: rgba(224,82,82,.14); color: #E05252; border: 1px solid rgba(224,82,82,.25)!important; }

/* Forms */
.form-group    { margin-bottom: 14px; }
.form-label    { display: block; font-size: 11px; color: var(--text2); margin-bottom: 7px; letter-spacing: 1px; text-transform: uppercase; }
.form-input, .form-select, .form-textarea, .search-input {
  width: 100%; padding: 12px 14px; background: rgba(255,255,255,.04); border: 1px solid var(--border);
  border-radius: 8px; color: var(--text); font-family: 'Tajawal', sans-serif; font-size: 14px; outline: none; transition: .25s;
}
.form-input:focus, .form-select:focus, .form-textarea:focus { border-color: var(--gold); background: rgba(201,168,76,.04); }
.form-select    { background-color: var(--dark3); cursor: pointer; }
.form-textarea  { resize: vertical; min-height: 90px; }
.search-input   { width: auto; padding: 8px 14px; font-size: 13px; }
.form-grid-2    { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-section-title {
  font-size: 11px;
  color: var(--gold);
  margin-bottom: 10px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--border);
  text-transform: uppercase;
  letter-spacing: 2px;
}
.form-section-title.spaced { margin-top: 6px; }
[dir="rtl"] .form-section-title { letter-spacing: 0; }

/* Tabs */
.tab-btn        { padding: 6px 16px; background: rgba(255,255,255,.04); border: 1px solid var(--border); color: var(--text2); border-radius: 7px; cursor: pointer; font-size: 12px; text-transform: capitalize; transition: .2s; }
.tab-btn:hover  { border-color: rgba(201,168,76,.3); color: var(--text); }
.tab-btn.active { background: rgba(201,168,76,.12); border-color: var(--gold); color: var(--gold); }

/* ══════════════════════════════════════════════════════════════
   DASHBOARD LAYOUT
   ══════════════════════════════════════════════════════════════ */
#dashboardView  { display: flex; flex-direction: column; height: 100vh; min-height: 100%; }
.dash-header    { background: var(--dark2); border-bottom: 1px solid var(--border); padding: 14px 28px; display: flex; align-items: center; justify-content: space-between; position: sticky; top: 0; z-index: 100; flex-shrink: 0; }
.dash-logo-row  { display: flex; align-items: center; gap: 10px; }
.dash-logo-img  { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; border: 2px solid var(--gold); }
.dash-brand     { font-family: 'Cormorant Garamond', serif; font-size: 14px; font-weight: 700; color: var(--gold); letter-spacing: 1px; }
.dash-brand-sub { font-size: 9px; color: var(--text2); letter-spacing: 2px; }
.dash-user-info { display: flex; align-items: center; gap: 10px; }
.dash-avatar    { width: 34px; height: 34px; background: linear-gradient(135deg,var(--gold),var(--gold-light)); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 700; color: #0A0806; }
.dash-user-name { font-size: 13px; font-weight: 600; color: var(--text); }
.dash-user-role { font-size: 10px; color: var(--text2); text-transform: capitalize; }
.dash-logout-btn { padding: 7px 14px; background: rgba(224,82,82,.12); border: 1px solid rgba(224,82,82,.22); color: var(--red); border-radius: 7px; cursor: pointer; font-size: 12px; transition: .2s; }
.dash-logout-btn:hover { background: rgba(224,82,82,.22); }
.dash-body      { display: flex; flex: 1; overflow: hidden; min-height: 0; height: 100%; }

/* Sidebar */
.sidebar { width: 230px; background: var(--dark2); border-right: 1px solid var(--border); padding: 12px 0; overflow-y: auto; flex-shrink: 0; height: 100%; }
.menu-section  { margin-bottom: 4px; }
.menu-section-label { padding: 8px 18px; font-size: 9px; color: var(--text2); letter-spacing: 2.5px; text-transform: uppercase; }
.menu-item     { display: flex; align-items: center; gap: 10px; padding: 11px 18px; cursor: pointer; border-left: 3px solid transparent; color: var(--text2); font-size: 13px; transition: .18s; }
.menu-item:hover  { background: rgba(201,168,76,.06); color: var(--text); border-left-color: rgba(201,168,76,.28); }
.menu-item.active { background: rgba(201,168,76,.1); color: var(--gold); border-left-color: var(--gold); }
.menu-icon     { font-size: 16px; width: 18px; text-align: center; flex-shrink: 0; }

/* Main Content Area */
.dash-content  { flex: 1; overflow-y: auto; padding: 28px 32px; }
.page-header   { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 24px; gap: 12px; }
.page-title    { font-family: 'Cormorant Garamond', serif; font-size: 26px; font-weight: 700; }
.page-sub      { font-size: 13px; color: var(--text2); margin-top: 4px; }
.date-badge    { padding: 8px 16px; background: rgba(201,168,76,.08); border: 1px solid rgba(201,168,76,.18); border-radius: 8px; font-size: 12px; color: var(--gold); white-space: nowrap; }

/* KPI Cards */
.cards-grid    { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px,1fr)); gap: 15px; margin-bottom: 22px; }
.stat-card     { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; transition: .3s; }
.stat-card:hover { border-color: rgba(201,168,76,.25); transform: translateY(-2px); }
.sc-icon       { font-size: 26px; margin-bottom: 10px; }
.sc-val        { font-family: 'Cormorant Garamond', serif; font-size: 28px; font-weight: 700; margin-bottom: 4px; }
.sc-lbl        { font-size: 12px; color: var(--text2); }
.sc-sub        { font-size: 11px; color: var(--text2); margin-top: 7px; padding-top: 7px; border-top: 1px solid var(--border); }

/* Tables */
.section-card   { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; margin-bottom: 20px; }
.section-header { display: flex; align-items: center; justify-content: space-between; padding: 15px 20px; border-bottom: 1px solid var(--border); gap: 12px; flex-wrap: wrap; }
.section-title  { font-family: 'Cormorant Garamond', serif; font-size: 17px; font-weight: 700; color: var(--gold); }
.section-controls { display: flex; gap: 8px; align-items: center; min-width: 0; }
.table-wrap     { overflow-x: auto; }
table           { width: 100%; border-collapse: collapse; }
th              { padding: 10px 14px; text-align: left; font-size: 11px; color: var(--text2); letter-spacing: 1.5px; text-transform: uppercase; background: rgba(0,0,0,.18); border-bottom: 1px solid var(--border); white-space: nowrap; }
td              { padding: 12px 14px; font-size: 13px; border-bottom: 1px solid rgba(46,36,16,.5); white-space: nowrap; }
tr:last-child td { border-bottom: none; }
tr:hover td     { background: rgba(201,168,76,.025); }

/* List rows (for non-table lists) */
.two-col   { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.list-row  { display: flex; align-items: center; justify-content: space-between; padding: 12px 18px; border-bottom: 1px solid rgba(46,36,16,.4); gap: 12px; }
.list-row:last-child { border-bottom: none; }
.row-name  { font-weight: 600; font-size: 13px; }
.row-sub   { font-size: 11px; color: var(--text2); margin-top: 2px; }
.empty-state { text-align: center; padding: 48px; color: var(--text2); font-size: 14px; }

/* Badges */
.badge { display: inline-flex; align-items: center; padding: 3px 9px; border-radius: 100px; font-size: 11px; font-weight: 600; }
.bg { background: rgba(82,183,136,.12); color: #52B788; }
.br { background: rgba(224,82,82,.12);  color: #E05252; }
.bb { background: rgba(78,159,232,.12); color: #4E9FE8; }
.bo { background: rgba(201,168,76,.12); color: #C9A84C; }
.bp { background: rgba(155,114,207,.12);color: #9B72CF; }

/* Progress */
.progress-bar  { background: rgba(255,255,255,.07); border-radius: 100px; height: 5px; overflow: hidden; flex: 1; }
.progress-fill { height: 100%; border-radius: 100px; transition: width .5s; }

/* ══════════════════════════════════════════════════════════════
   CALENDAR
   ══════════════════════════════════════════════════════════════ */
.cal-nav        { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; }
.cal-nav-btn    { background: rgba(201,168,76,.09); border: 1px solid rgba(201,168,76,.2); color: var(--gold); padding: 7px 13px; border-radius: 7px; cursor: pointer; font-size: 13px; transition: .2s; }
.cal-nav-btn:hover { background: rgba(201,168,76,.18); }
.cal-month      { font-family: 'Cormorant Garamond', serif; font-size: 20px; font-weight: 700; color: var(--gold); }
.cal-header-row { display: grid; grid-template-columns: repeat(7,1fr); gap: 3px; padding: 8px 14px 0; }
.cal-day-name   { text-align: center; font-size: 11px; color: var(--text2); padding: 5px; letter-spacing: 1px; }
.cal-grid       { display: grid; grid-template-columns: repeat(7,1fr); gap: 3px; padding: 10px; }
.cal-cell       { aspect-ratio: 1; border-radius: 7px; display: flex; flex-direction: column; align-items: center; justify-content: center; font-size: 12px; cursor: default; border: 1px solid transparent; min-height: 42px; transition: .2s; }
.cal-cell.booked { background: rgba(224,82,82,.1); border-color: rgba(224,82,82,.22); color: #E05252; }
.cal-cell.today  { background: rgba(201,168,76,.14); border-color: var(--gold); color: var(--gold); font-weight: 700; }
.cal-cell.past   { opacity: .35; }
.cal-dot         { width: 5px; height: 5px; border-radius: 50%; background: var(--red); margin-top: 2px; }
.cal-legend      { display: flex; gap: 16px; padding: 10px 16px; border-top: 1px solid var(--border); }
.leg-item        { display: flex; align-items: center; gap: 6px; font-size: 11px; color: var(--text2); }
.leg-dot         { width: 12px; height: 12px; border-radius: 3px; }

/* ══════════════════════════════════════════════════════════════
   LOGIN OVERLAY
   ══════════════════════════════════════════════════════════════ */
.overlay        { display: none; position: fixed; inset: 0; background: rgba(0,0,0,.75); z-index: 2000; align-items: center; justify-content: center; backdrop-filter: blur(8px); padding: 20px; }
.overlay.show   { display: flex; }
.login-card     { background: var(--card); border: 1px solid var(--border); border-radius: 22px; padding: 46px; width: 100%; max-width: 430px; position: relative; overflow: hidden; box-shadow: 0 40px 80px rgba(0,0,0,.7); }
.login-card::before { content:''; position:absolute; top:0; left:0; right:0; height:3px; background:linear-gradient(90deg,transparent,var(--gold),var(--gold-light),var(--gold),transparent); }
.login-logo     { width: 82px; height: 82px; border-radius: 50%; object-fit: cover; border: 3px solid var(--gold); box-shadow: 0 0 28px rgba(201,168,76,.3); margin: 0 auto 14px; display: block; }
.login-close    { position: absolute; top: 14px; right: 16px; background: none; border: none; color: var(--text2); font-size: 22px; cursor: pointer; transition: .2s; }
.login-close:hover { color: var(--red); }
.login-error    { background: rgba(224,82,82,.1); border: 1px solid rgba(224,82,82,.28); border-radius: 8px; padding: 11px 15px; font-size: 13px; color: var(--red); margin-bottom: 14px; }

/* ══════════════════════════════════════════════════════════════
   MODAL
   ══════════════════════════════════════════════════════════════ */
#modalOverlay  { display: none; position: fixed; inset: 0; background: rgba(0,0,0,.75); z-index: 3000; align-items: center; justify-content: center; padding: 20px; backdrop-filter: blur(6px); }
#modalOverlay.show { display: flex; }
.modal-box     { background: var(--card); border: 1px solid var(--border); border-radius: 18px; padding: 28px; width: 100%; max-width: 540px; max-height: 90vh; overflow-y: auto; position: relative; }
.modal-box::before { content:''; position:absolute; top:0; left:0; right:0; height:2px; background:linear-gradient(90deg,transparent,var(--gold),transparent); }
.modal-title   { font-family: 'Cormorant Garamond', serif; font-size: 19px; font-weight: 700; color: var(--gold); margin-bottom: 20px; }
.modal-close   { position: absolute; top: 14px; right: 16px; background: none; border: none; color: var(--text2); font-size: 20px; cursor: pointer; }
.modal-close:hover { color: var(--red); }
.modal-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 20px; }

/* ══════════════════════════════════════════════════════════════
   TOAST & LOADER
   ══════════════════════════════════════════════════════════════ */
.toast { position: fixed; bottom: 28px; right: 28px; padding: 13px 22px; border-radius: 10px; font-size: 14px; font-weight: 600; z-index: 9999; transform: translateY(80px); opacity: 0; transition: .3s; pointer-events: none; }
.toast.show    { transform: translateY(0); opacity: 1; }
.toast-success { background: rgba(82,183,136,.18); border: 1px solid rgba(82,183,136,.35); color: #52B788; }
.toast-error   { background: rgba(224,82,82,.18);  border: 1px solid rgba(224,82,82,.35);  color: #E05252; }
#pageLoader    { position: fixed; inset: 0; background: rgba(10,8,6,.7); z-index: 5000; display: none; align-items: center; justify-content: center; }
.loader-ring   { width: 44px; height: 44px; border: 3px solid var(--border); border-top-color: var(--gold); border-radius: 50%; animation: spin .8s linear infinite; }

/* ══════════════════════════════════════════════════════════════
   ANIMATIONS
   ══════════════════════════════════════════════════════════════ */
@keyframes pulse { 0%,100% { opacity:.5; transform:scale(1);   } 50% { opacity:1; transform:scale(1.06); } }
@keyframes spin  { to { transform: rotate(360deg); } }

/* ══════════════════════════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════════════════════════ */
@media (max-width: 900px) {
  .top-nav      { padding: 14px 20px; }
  .nav-links    { display: none; }
  .hero-section { min-height: 88vh; padding: 104px 22px 28px; }
  .hero-section::before {
    background:
      linear-gradient(180deg, rgba(8,7,5,.72) 0%, rgba(8,7,5,.54) 46%, #080705 100%),
      linear-gradient(90deg, rgba(8,7,5,.68), rgba(8,7,5,.36)),
      url("../assets/hero-marquee-building.jpg") center center / cover no-repeat;
  }
  .hero-logo    { width: 84px; height: 84px; }
  .hero-title   { font-size: 58px; }
  .hero-subtitle { font-size: 21px; }
  .hero-p       { font-size: 15px; max-width: 520px; }
  .hero-btns    { max-width: 360px; }
  .stats-strip  { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 38px; }
  .stat-item:nth-child(2) { border-right: 0; }
  .stat-item:nth-child(n+3) { border-top: 1px solid rgba(201,168,76,.16); }
  .land-section { padding: 76px 20px; }
  .sec-title    { font-size: 40px; }
  .gallery-grid, .why-grid, .contact-grid, .footer-grid, .two-col { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .form-grid-2  { grid-template-columns: 1fr; }
  .sidebar      { display: none; }
  .dash-content { padding: 18px; }
  .cards-grid   { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 500px) {
  .hero-title   { font-size: 46px; }
  .hero-subtitle { font-size: 18px; }
  .hero-divider { width: 210px; }
  .hero-btns    { flex-direction: column; align-items: stretch; width: 100%; max-width: 320px; }
  .hero-btns .btn-primary, .hero-btns .btn-ghost { text-align: center; width: 100%; }
  .hero-section { padding: 96px 22px 20px; }
  .hero-logo    { width: 72px; height: 72px; }
  .hero-badge   { font-size: 10px; padding: 7px 12px; }
  .hero-p       { font-size: 14px; margin-bottom: 24px; }
  .stats-strip  { grid-template-columns: repeat(4, minmax(0, 1fr)); padding: 10px 8px; margin-top: 24px; }
  .stat-item { border-top: 0; border-right: 1px solid rgba(201,168,76,.16); padding: 4px 5px; }
  .stat-item:last-child { border-right: 0; }
  .stat-num { font-size: 28px; }
  .stat-lbl { font-size: 8px; line-height: 1.25; }
  .sec-title { font-size: 34px; }
  .cards-grid   { grid-template-columns: 1fr; }
}

/* ══════════════════════════════════════════════════════════════
   MOBILE SIDEBAR — hamburger + slide-in overlay
   ══════════════════════════════════════════════════════════════ */

/* Hamburger button — hidden on desktop, visible on mobile */
.hamburger-btn {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 36px; height: 36px;
  background: rgba(201,168,76,.08);
  border: 1px solid rgba(201,168,76,.2);
  border-radius: 8px;
  cursor: pointer;
  padding: 6px;
  flex-shrink: 0;
}
.hamburger-btn span {
  display: block;
  width: 18px; height: 2px;
  background: var(--gold);
  border-radius: 2px;
  transition: .3s;
}
.hamburger-btn.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger-btn.open span:nth-child(2) { opacity: 0; }
.hamburger-btn.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Dark overlay behind mobile sidebar */
.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.6);
  z-index: 150;
  backdrop-filter: blur(3px);
}
.sidebar-overlay.show { display: block; }

@media (max-width: 900px) {
  .hamburger-btn { display: flex; }

  /* Slide sidebar in from left */
  .sidebar {
    display: block;
    position: fixed;
    top: 0; left: 0; bottom: 0;
    z-index: 200;
    width: 260px;
    transform: translateX(-100%);
    transition: transform .28s cubic-bezier(.4,0,.2,1);
    box-shadow: 4px 0 24px rgba(0,0,0,.5);
    padding-top: 64px; /* clear header */
  }
  .sidebar.mobile-open {
    transform: translateX(0);
  }

  /* Keep dash-body from pushing content */
  .dash-body { position: relative; }
  .dash-content { width: 100%; }

  /* Tighten header on mobile */
  .dash-header { padding: 10px 16px; }
  .dash-brand  { font-size: 12px; }
  .dash-brand-sub { display: none; }
  .dash-avatar { width: 28px; height: 28px; font-size: 12px; }
  .dash-user-role { display: none; }
}

/* ══════════════════════════════════════════════════════════════
   URDU / RTL SUPPORT
   ══════════════════════════════════════════════════════════════ */
[dir="rtl"] {
  text-align: right;
}
[dir="rtl"] .sidebar {
  border-right: none;
  border-left: 1px solid var(--border);
}
[dir="rtl"] .menu-item {
  border-left: none;
  border-right: 3px solid transparent;
}
[dir="rtl"] .menu-item:hover,
[dir="rtl"] .menu-item.active {
  border-right-color: var(--gold);
  border-left-color: transparent;
}
[dir="rtl"] .sidebar {
  transform: translateX(100%);
  left: auto;
  right: 0;
}
[dir="rtl"] .sidebar.mobile-open {
  transform: translateX(0);
}
[dir="rtl"] table {
  direction: rtl;
}
[dir="rtl"] .two-col,
[dir="rtl"] .cards-grid,
[dir="rtl"] .form-grid-2 {
  direction: rtl;
}
/* Urdu font for body text in RTL */
[dir="rtl"] body {
  font-family: 'Noto Nastaliq Urdu', 'Tajawal', sans-serif;
  line-height: 1.65;
}
[dir="rtl"] .page-title,
[dir="rtl"] .section-title,
[dir="rtl"] .modal-title,
[dir="rtl"] .cal-month,
[dir="rtl"] .sc-lbl,
[dir="rtl"] .row-name,
[dir="rtl"] .row-sub {
  font-family: 'Noto Nastaliq Urdu', 'Tajawal', sans-serif;
}
[dir="rtl"] .page-title,
[dir="rtl"] .section-title,
[dir="rtl"] .modal-title {
  line-height: 1.7;
}
[dir="rtl"] button,
[dir="rtl"] input,
[dir="rtl"] select,
[dir="rtl"] textarea {
  font-family: 'Noto Nastaliq Urdu', 'Tajawal', sans-serif;
  letter-spacing: 0;
}
[dir="rtl"] .form-label,
[dir="rtl"] th,
[dir="rtl"] .menu-section-label,
[dir="rtl"] .dash-brand,
[dir="rtl"] .dash-brand-sub {
  letter-spacing: 0;
}
[dir="rtl"] th,
[dir="rtl"] td,
[dir="rtl"] .form-input,
[dir="rtl"] .form-select,
[dir="rtl"] .form-textarea,
[dir="rtl"] .search-input {
  text-align: right;
}
[dir="rtl"] input[type="email"],
[dir="rtl"] input[type="tel"],
[dir="rtl"] input[type="number"],
[dir="rtl"] input[type="date"],
[dir="rtl"] input[id*="phone" i],
[dir="rtl"] input[id*="email" i] {
  direction: ltr;
  text-align: left;
}
[dir="rtl"] .modal-close,
[dir="rtl"] .login-close {
  right: auto;
  left: 16px;
}
[dir="rtl"] .toast {
  right: auto;
  left: 28px;
}

/* Responsive portal layouts */
.dashboard-split,
.report-grid-wide,
.report-grid-even,
.calendar-layout {
  display: grid;
  gap: 18px;
  align-items: start;
}
.dashboard-split,
.report-grid-even { grid-template-columns: 1fr 1fr; }
.report-grid-wide { grid-template-columns: 2fr 1fr; }
.calendar-layout { grid-template-columns: minmax(0, 1fr) 300px; gap: 20px; }

@media (max-width: 900px) {
  .dashboard-split,
  .report-grid-wide,
  .report-grid-even,
  .calendar-layout {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 640px) {
  .dash-header {
    min-height: 58px;
    padding: 9px 12px;
    gap: 8px;
  }
  .dash-logo-row { gap: 7px; }
  .dash-logo-img { width: 32px; height: 32px; }
  .dash-logo-row > div { display: none; }
  .dash-user-info { gap: 6px; min-width: 0; }
  .dash-user-info > div:nth-child(2) { display: none; }
  .lang-toggle-btn,
  .dash-logout-btn {
    min-height: 34px;
    padding: 6px 10px !important;
    white-space: nowrap;
    line-height: 1.5;
  }
  .dash-content { padding: 14px 12px; }
  .page-header {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-items: stretch;
    gap: 12px;
    margin-bottom: 18px;
  }
  .page-header > button,
  .page-header > .date-badge,
  .page-header > div:last-child:not(:first-child) {
    justify-self: start;
  }
  [dir="rtl"] .page-header > button,
  [dir="rtl"] .page-header > .date-badge,
  [dir="rtl"] .page-header > div:last-child:not(:first-child) {
    justify-self: end;
  }
  .page-title { font-size: 22px; line-height: 1.45; }
  .page-sub { line-height: 1.7; }
  .cards-grid { gap: 10px; }
  .stat-card { padding: 16px; }
  .section-header {
    align-items: stretch;
    padding: 13px 14px;
  }
  .section-header .search-input {
    width: 100%;
    min-width: 0;
  }
  .section-controls { width: 100%; flex-wrap: wrap; }
  .section-controls > * { flex: 1 1 140px; width: auto !important; }
  .section-title { line-height: 1.6; }
  .list-row { padding: 12px 14px; }
  .modal-box {
    max-height: calc(100dvh - 20px);
    padding: 24px 16px 18px;
    border-radius: 10px;
  }
  #modalOverlay { padding: 10px; }
  .modal-title { padding-inline-end: 30px; }
  .modal-actions {
    display: grid;
    grid-template-columns: 1fr;
  }
  .modal-actions > button { width: 100%; min-height: 42px; }
  .cal-nav { padding: 12px 10px; gap: 8px; }
  .cal-nav-btn { padding: 7px 9px; }
  .cal-month { font-size: 16px; text-align: center; }
  .cal-header-row { padding-inline: 6px; }
  .cal-grid { padding: 6px; }
  .cal-day-name { padding: 3px 1px; font-size: 9px; letter-spacing: 0; }
  .cal-cell { min-height: 38px; }
  .cal-legend { flex-wrap: wrap; }
}

@media (max-width: 420px) {
  .dash-avatar { display: none; }
  .dash-logout-btn {
    width: 34px;
    overflow: hidden;
    color: transparent;
    position: relative;
  }
  .dash-logout-btn::after {
    content: "\23FB";
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    color: var(--red);
    font-family: 'Tajawal', sans-serif;
    font-size: 16px;
  }
  .empty-state { padding: 30px 16px; }
}

/* ═══════════════════════════════════════════════
   ABOUT US SECTION
   ═══════════════════════════════════════════════ */

.about-grid {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 60px;
  align-items: start;
  max-width: 1100px;
  margin: 0 auto;
}

/* ── CEO Card ──────────────────────────────────── */
.about-ceo-card {
  background: linear-gradient(145deg, rgba(201,168,76,0.08), rgba(201,168,76,0.02));
  border: 1px solid rgba(201,168,76,0.22);
  border-radius: 22px;
  padding: 36px 28px 30px;
  text-align: center;
  position: sticky;
  top: 90px;
  transition: transform 0.3s, box-shadow 0.3s;
}
.about-ceo-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 24px 64px rgba(201,168,76,0.14);
}

.ceo-img-wrapper {
  position: relative;
  display: flex;
  justify-content: center;
  margin-bottom: 32px;
}

.ceo-img-frame {
  position: relative;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid rgba(201,168,76,0.5);
  box-shadow: 0 0 0 6px rgba(201,168,76,0.1), 0 8px 32px rgba(0,0,0,0.4);
  flex-shrink: 0;
}

.ceo-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}

.ceo-img-ring {
  position: absolute;
  inset: -10px;
  border-radius: 50%;
  border: 1.5px solid transparent;
  border-top-color: rgba(201,168,76,0.7);
  border-right-color: rgba(201,168,76,0.3);
  animation: spin-slow 10s linear infinite;
  pointer-events: none;
}

@keyframes spin-slow {
  to { transform: rotate(360deg); }
}

.ceo-badge {
  position: absolute;
  bottom: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, #c9a84c, #a07830);
  color: #0d0d0d;
  font-size: 11px;
  font-weight: 700;
  padding: 5px 16px;
  border-radius: 20px;
  white-space: nowrap;
  letter-spacing: 0.4px;
  box-shadow: 0 4px 12px rgba(201,168,76,0.3);
}

.ceo-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
  margin: 6px 0 4px;
}

.ceo-title {
  font-size: 12px;
  color: var(--gold);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.ceo-quote {
  font-size: 13.5px;
  color: var(--text2);
  line-height: 1.75;
  font-style: italic;
  border-left: 3px solid rgba(201,168,76,0.45);
  padding: 10px 14px;
  text-align: left;
  margin-bottom: 22px;
  background: rgba(201,168,76,0.03);
  border-radius: 0 8px 8px 0;
}

.ceo-socials {
  display: flex;
  gap: 10px;
}

.ceo-social-btn {
  flex: 1;
  padding: 10px 8px;
  border: 1px solid rgba(201,168,76,0.28);
  border-radius: 10px;
  color: var(--gold);
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  background: rgba(201,168,76,0.06);
  transition: all 0.2s;
  text-align: center;
  display: block;
}
.ceo-social-btn:hover {
  background: rgba(201,168,76,0.15);
  border-color: rgba(201,168,76,0.55);
  transform: translateY(-2px);
}

/* ── About Content ─────────────────────────────── */
.about-content {
  display: flex;
  flex-direction: column;
  gap: 36px;
  padding-top: 4px;
}

.about-subtitle {
  font-family: 'Cormorant Garamond', serif;
  font-size: 28px;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 16px;
  position: relative;
  padding-bottom: 14px;
}
.about-subtitle::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 48px; height: 2px;
  background: linear-gradient(90deg, var(--gold), transparent);
}

.about-text {
  font-size: 15px;
  color: var(--text2);
  line-height: 1.88;
  margin: 0 0 12px;
}

/* Stats Row */
.about-stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.about-stat {
  background: rgba(201,168,76,0.04);
  border: 1px solid rgba(201,168,76,0.14);
  border-radius: 14px;
  padding: 22px 12px;
  text-align: center;
  transition: all 0.25s;
}
.about-stat:hover {
  background: rgba(201,168,76,0.1);
  border-color: rgba(201,168,76,0.38);
  transform: translateY(-3px);
}

.about-stat-num {
  font-family: 'Cormorant Garamond', serif;
  font-size: 34px;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
}
.about-stat-label {
  font-size: 11px;
  color: var(--text2);
  margin-top: 6px;
  letter-spacing: 0.4px;
  line-height: 1.4;
}

/* Values */
.about-values {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.about-value-item {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 14px;
  padding: 20px 22px;
  transition: border-color 0.25s, background 0.25s;
}
.about-value-item:hover {
  border-color: rgba(201,168,76,0.28);
  background: rgba(201,168,76,0.03);
}

.about-value-icon { font-size: 28px; flex-shrink: 0; margin-top: 1px; }

.about-value-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 5px;
}
.about-value-desc {
  font-size: 13.5px;
  color: var(--text2);
  line-height: 1.65;
}

/* ── Responsive ────────────────────────────────── */
@media (max-width: 900px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .about-ceo-card { position: static; max-width: 340px; margin: 0 auto; }
  .about-stats-row { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .about-stats-row { grid-template-columns: repeat(2, 1fr); }
  .ceo-socials { flex-direction: column; }
}

/* ============================================================
   URDU UI REFINEMENTS
   Keep Urdu readable in compact controls while isolating Latin data.
   ============================================================ */
[dir="rtl"] {
  direction: rtl;
  text-align: right;
}

[dir="rtl"] body {
  font-family: 'Noto Naskh Arabic', 'Tajawal', sans-serif;
  line-height: 1.55;
  letter-spacing: 0;
}

[dir="rtl"] h1,
[dir="rtl"] h2,
[dir="rtl"] h3,
[dir="rtl"] .page-title,
[dir="rtl"] .section-title,
[dir="rtl"] .modal-title,
[dir="rtl"] .cal-month,
[dir="rtl"] .row-name,
[dir="rtl"] .row-sub,
[dir="rtl"] .sc-lbl {
  font-family: 'Noto Naskh Arabic', 'Tajawal', sans-serif;
  letter-spacing: 0;
}

[dir="rtl"] .page-title,
[dir="rtl"] .section-title,
[dir="rtl"] .modal-title {
  line-height: 1.45;
}

[dir="rtl"] .dash-header,
[dir="rtl"] .dash-body,
[dir="rtl"] .dash-content,
[dir="rtl"] .sidebar,
[dir="rtl"] .modal-box,
[dir="rtl"] .toast {
  direction: rtl;
}

[dir="rtl"] .dash-content {
  min-width: 0;
}

/* The sidebar is part of the desktop flex layout. Only the mobile drawer
   needs a translate transform. */
[dir="rtl"] .sidebar {
  left: auto;
  right: auto;
  transform: none;
  border-right: none;
  border-left: 1px solid var(--border);
}

[dir="rtl"] .menu-item {
  border-left: none;
  border-right: 3px solid transparent;
}

[dir="rtl"] .menu-item:hover,
[dir="rtl"] .menu-item.active {
  border-right-color: var(--gold);
  border-left-color: transparent;
}

[dir="rtl"] .dash-logo-row,
[dir="rtl"] .menu-icon,
[dir="rtl"] .dash-avatar,
[dir="rtl"] input[type="email"],
[dir="rtl"] input[type="tel"],
[dir="rtl"] input[type="number"],
[dir="rtl"] input[type="date"],
[dir="rtl"] input[id*="phone" i],
[dir="rtl"] input[id*="email" i] {
  direction: ltr;
  unicode-bidi: isolate;
}

[dir="rtl"] input[type="email"],
[dir="rtl"] input[type="tel"],
[dir="rtl"] input[type="number"],
[dir="rtl"] input[type="date"],
[dir="rtl"] input[id*="phone" i],
[dir="rtl"] input[id*="email" i] {
  text-align: left;
}

[dir="rtl"] button,
[dir="rtl"] select,
[dir="rtl"] textarea,
[dir="rtl"] .form-input,
[dir="rtl"] .form-select,
[dir="rtl"] .form-textarea,
[dir="rtl"] .search-input {
  font-family: 'Noto Naskh Arabic', 'Tajawal', sans-serif;
  line-height: 1.5;
  letter-spacing: 0;
}

[dir="rtl"] .form-input,
[dir="rtl"] .form-select,
[dir="rtl"] .form-textarea {
  min-height: 42px;
}

[dir="rtl"] .form-textarea {
  min-height: 100px;
}

[dir="rtl"] .form-label,
[dir="rtl"] th,
[dir="rtl"] .menu-section-label,
[dir="rtl"] .dash-brand-sub,
[dir="rtl"] .form-section-title {
  letter-spacing: 0;
}

[dir="rtl"] th,
[dir="rtl"] td,
[dir="rtl"] .form-input,
[dir="rtl"] .form-select,
[dir="rtl"] .form-textarea,
[dir="rtl"] .search-input {
  text-align: right;
}

[dir="rtl"] .table-wrap {
  direction: rtl;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-gutter: stable;
}

[dir="rtl"] table {
  direction: rtl;
  min-width: 640px;
}

[dir="rtl"] th,
[dir="rtl"] td {
  unicode-bidi: plaintext;
}

[dir="rtl"] .badge,
[dir="rtl"] .date-badge,
[dir="rtl"] .cal-cell,
[dir="rtl"] .sc-val {
  unicode-bidi: plaintext;
}

[dir="rtl"] .section-controls {
  flex-wrap: wrap;
  justify-content: flex-start;
}

[dir="rtl"] .modal-close,
[dir="rtl"] .login-close {
  right: auto;
  left: 16px;
}

[dir="rtl"] .modal-actions {
  direction: rtl;
  flex-wrap: wrap;
}

[dir="rtl"] .toast {
  right: auto;
  left: 28px;
  max-width: min(420px, calc(100vw - 32px));
}

@media (max-width: 900px) {
  #dashboardView {
    width: 100%;
  }

  [dir="rtl"] .sidebar {
    left: auto;
    right: 0;
    width: min(86vw, 290px);
    transform: translateX(100%);
    box-shadow: -4px 0 24px rgba(0,0,0,.5);
  }

  [dir="rtl"] .sidebar.mobile-open {
    transform: translateX(0);
  }

  [dir="rtl"] .dash-header {
    gap: 8px;
  }

  [dir="rtl"] .dash-header > div:first-child {
    direction: ltr;
    min-width: 0;
  }

  [dir="rtl"] .dash-header > div:first-child .dash-logo-row {
    min-width: 0;
  }

  [dir="rtl"] .dash-header > div:first-child .dash-brand {
    white-space: nowrap;
  }

  [dir="rtl"] .page-header {
    gap: 10px;
  }

  [dir="rtl"] .page-header > div:first-child {
    min-width: 0;
  }

  [dir="rtl"] .section-header {
    align-items: stretch;
  }

  [dir="rtl"] .section-controls {
    width: 100%;
  }

  [dir="rtl"] .section-controls > * {
    min-width: 0;
  }
}

@media (max-width: 640px) {
  .cards-grid {
    grid-template-columns: 1fr;
  }

  [dir="rtl"] .dash-content {
    padding-inline: 12px;
  }

  [dir="rtl"] .page-title {
    font-size: 22px;
  }

  [dir="rtl"] .page-sub {
    font-size: 13px;
    line-height: 1.7;
  }

  [dir="rtl"] .section-title {
    line-height: 1.55;
  }

  [dir="rtl"] .section-controls > *,
  [dir="rtl"] .section-header .search-input {
    width: 100% !important;
    flex: 1 1 100%;
  }

  [dir="rtl"] .form-grid-2 {
    grid-template-columns: 1fr;
  }

  [dir="rtl"] .modal-box {
    max-height: calc(100dvh - 16px);
    padding: 24px 16px 18px;
  }

  [dir="rtl"] .modal-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  [dir="rtl"] .modal-actions > button {
    width: 100%;
    min-height: 42px;
  }

  [dir="rtl"] .toast {
    left: 16px;
    bottom: 16px;
  }
}

/* Keep browser-native dropdowns and date controls readable on Windows. */
.form-select,
select.search-input,
.form-input[type="date"] {
  color-scheme: dark;
}

.form-select option,
select.search-input option {
  background-color: var(--dark3);
  color: var(--text);
}

.form-select option:checked,
select.search-input option:checked {
  background-color: #4a3d1a;
  color: var(--text);
}

/* Credit collection */
.remaining-controls { flex-wrap: wrap; justify-content: flex-end; }
.remaining-tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.remainings-table { min-width: 980px; }
.payment-actions { display: flex; gap: 5px; align-items: center; }
.payment-collect-btn { background: rgba(82,183,136,.14); color: #52B788; border: 1px solid rgba(82,183,136,.3); white-space: nowrap; }
.payment-progress { width: 82px; height: 4px; margin-top: 6px; overflow: hidden; border-radius: 4px; background: rgba(255,255,255,.1); }
.payment-progress > span { display: block; height: 100%; border-radius: inherit; background: var(--gold); }
.payment-event-summary { display: grid; grid-template-columns: 1fr 1fr; gap: 9px 14px; margin-bottom: 16px; padding: 14px; border: 1px solid rgba(201,168,76,.2); border-radius: 8px; background: rgba(201,168,76,.06); font-size: 13px; }
.payment-event-summary > div:first-child { grid-column: 1 / -1; }
.payment-event-summary span { display: block; margin-top: 2px; color: var(--text2); font-size: 12px; }
.payment-history { margin-top: -2px; border: 1px solid var(--border); border-radius: 8px; overflow: hidden; }
.payment-history-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; padding: 10px 12px; border-bottom: 1px solid var(--border); font-size: 12px; }
.payment-history-row:last-child { border-bottom: 0; }
.payment-history-row span, .payment-history-row small { display: block; color: var(--text2); margin-top: 2px; }
.payment-history-row b { color: #52B788; white-space: nowrap; }
.payment-amount-hint { margin-top: 5px; color: var(--text2); font-size: 11px; }
.payment-allocation { display: grid; grid-template-columns: repeat(3, 1fr) auto; gap: 8px; align-items: stretch; margin: 2px 0 16px; }
.payment-allocation > div { padding: 10px 11px; border: 1px solid var(--border); border-radius: 7px; background: rgba(255,255,255,.03); }
.payment-allocation span { display: block; color: var(--text2); font-size: 10px; margin-bottom: 3px; }
.payment-allocation strong { color: var(--gold); font-size: 13px; }
.payment-full-btn { padding-inline: 12px; border: 1px solid rgba(82,183,136,.3); background: rgba(82,183,136,.13); color: #52B788; white-space: nowrap; }

@media (max-width: 640px) {
  .remaining-controls { width: 100%; justify-content: stretch; }
  .remaining-tabs { width: 100%; }
  .remaining-tabs .tab-btn { flex: 1 1 auto; padding-inline: 10px; }
  .payment-event-summary { grid-template-columns: 1fr; }
  .payment-allocation { grid-template-columns: 1fr; }
  .payment-full-btn { min-height: 38px; }
}

[dir="rtl"] .payment-event-summary,
[dir="rtl"] .payment-history-row { text-align: right; }

[dir="rtl"] .payment-history-row b { direction: ltr; }

/* Remaining payment date controls */
.remaining-date-filters { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.remaining-date-filters .search-input { min-width: 132px; }
.remaining-date-filters .btn-sm { min-height: 36px; white-space: nowrap; }

/* Shared dropdown category management */
.category-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.category-panel { display: flex; min-width: 0; min-height: 220px; flex-direction: column; border: 1px solid var(--border); border-radius: 8px; background: var(--card); box-shadow: 0 10px 26px rgba(0,0,0,.12); overflow: hidden; transition: border-color .2s ease, transform .2s ease; }
.category-panel:hover { border-color: rgba(201,168,76,.36); transform: translateY(-1px); }
.category-panel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 15px 16px; border-bottom: 1px solid var(--border); background: rgba(255,255,255,.015); }
.category-heading { display: flex; min-width: 0; align-items: center; gap: 10px; }
.category-panel-icon { display: inline-grid; width: 34px; height: 34px; flex: 0 0 34px; place-items: center; border: 1px solid rgba(201,168,76,.24); border-radius: 7px; background: rgba(201,168,76,.09); font-size: 16px; }
.category-panel-head h2 { margin: 0; color: var(--text); font-size: 14px; font-weight: 700; line-height: 1.3; }
.category-panel-head p { margin: 2px 0 0; color: var(--text2); font-size: 11px; line-height: 1.35; }
.category-count { display: inline-grid; min-width: 27px; height: 27px; flex: 0 0 auto; place-items: center; padding-inline: 6px; border: 1px solid rgba(201,168,76,.28); border-radius: 50%; background: rgba(201,168,76,.12); color: var(--gold); font-size: 11px; font-weight: 700; }
.category-chip-list { display: flex; flex: 1; align-content: flex-start; flex-wrap: wrap; gap: 8px; padding: 14px 16px 16px; }
.category-chip { display: inline-flex; max-width: 100%; align-items: center; gap: 7px; padding: 6px 6px 6px 10px; border: 1px solid rgba(201,168,76,.18); border-radius: 5px; background: rgba(255,255,255,.03); color: var(--text); font-size: 12px; line-height: 1.3; overflow-wrap: anywhere; }
.category-chip button { display: inline-grid; width: 20px; height: 20px; flex: 0 0 20px; place-items: center; padding: 0; border: 0; border-radius: 4px; background: rgba(255,255,255,.04); color: var(--text2); cursor: pointer; font-size: 18px; line-height: 1; transition: background .2s ease, color .2s ease; }
.category-chip button:hover { background: rgba(224,82,82,.16); color: var(--red); }
.category-panel-footer { margin-top: auto; padding: 12px 16px 16px; border-top: 1px solid var(--border); background: rgba(0,0,0,.08); }
.category-add-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; align-items: stretch; }
.category-add-row .form-input { min-width: 0; min-height: 38px; padding-inline: 11px; }
.category-add-row .btn-primary-sm { min-height: 38px; padding-inline: 13px; white-space: nowrap; }
.category-delete-message { margin: 6px 0 2px; padding: 13px 14px; border: 1px solid rgba(224,82,82,.24); border-radius: 7px; background: rgba(224,82,82,.07); color: var(--text2); font-size: 13px; line-height: 1.55; }
.category-delete-message p { margin: 0 0 8px; }
.category-delete-message strong { color: var(--text); overflow-wrap: anywhere; }
.category-delete-btn { min-height: 38px; padding: 9px 16px; border: 1px solid rgba(224,82,82,.42); border-radius: 7px; background: rgba(224,82,82,.14); color: #ff8c8c; font-size: 13px; font-weight: 700; cursor: pointer; }
.category-delete-btn:hover { background: rgba(224,82,82,.24); }

.pricing-calculated { border-color: rgba(201,168,76,.34); background: rgba(201,168,76,.08); color: var(--gold); font-weight: 700; }

[dir="rtl"] .category-panel-head,
[dir="rtl"] .category-chip-list { text-align: right; }

[dir="rtl"] .category-chip { padding: 6px 10px 6px 6px; }

@media (max-width: 860px) {
  .category-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .remaining-date-filters { width: 100%; }
  .remaining-date-filters .search-input,
  .remaining-date-filters .btn-sm { flex: 1 1 140px; width: auto !important; }
  .category-add-row { grid-template-columns: 1fr; }
  .category-add-row .btn-primary-sm { width: 100%; }
}

/* Dashboard period controls */
.dashboard-page-header { margin-bottom: 16px; }
.dashboard-header-actions { display: flex; min-width: 0; flex-direction: column; align-items: flex-end; gap: 8px; }
.dashboard-current-date { display: flex; max-width: 100%; align-items: center; gap: 8px; white-space: normal; }
.dashboard-quick-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.dashboard-remainings-btn { border: 1px solid rgba(78,159,232,.3); background: rgba(78,159,232,.14); color: #70b8f5; }
.dashboard-reports-btn { border: 1px solid rgba(82,183,136,.3); background: rgba(82,183,136,.15); color: #73c99a; }

.dashboard-filter-bar {
  display: grid;
  grid-template-columns: minmax(180px, auto) minmax(0, 1fr);
  align-items: center;
  gap: 16px;
  margin-bottom: 18px;
  padding: 14px 16px;
  border-block: 1px solid var(--border);
  background: rgba(255,255,255,.018);
}
.dashboard-filter-summary { display: flex; min-width: 0; align-items: center; gap: 10px; }
.dashboard-filter-icon { display: grid; width: 34px; height: 34px; flex: 0 0 34px; place-items: center; border: 1px solid rgba(78,159,232,.26); border-radius: 7px; background: rgba(78,159,232,.1); }
.dashboard-filter-summary span:not(.dashboard-filter-icon) { display: block; margin-bottom: 2px; color: var(--text2); font-size: 10px; text-transform: uppercase; }
.dashboard-filter-summary strong { display: block; color: var(--text); font-size: 12px; line-height: 1.45; }
.dashboard-filter-controls { display: flex; min-width: 0; flex-wrap: wrap; align-items: flex-end; justify-content: flex-end; gap: 10px; }
.dashboard-period-tabs { display: flex; flex-wrap: wrap; gap: 6px; }
.dashboard-period-btn { min-height: 36px; padding-inline: 13px; }
.dashboard-date-range { display: flex; min-width: 0; align-items: flex-end; gap: 7px; padding-inline-start: 10px; border-inline-start: 1px solid var(--border); }
.dashboard-date-range.is-active { border-inline-start-color: var(--gold); }
.dashboard-date-field { display: grid; min-width: 0; gap: 4px; }
.dashboard-date-field > span { color: var(--text2); font-size: 9px; text-transform: uppercase; }
.dashboard-date-input { width: 142px; min-height: 36px; padding: 7px 9px; font-size: 12px; }
.dashboard-date-separator { padding-bottom: 10px; color: var(--text2); }
.dashboard-apply-filter { min-height: 36px; padding: 8px 14px; white-space: nowrap; }

.dashboard-today-banner { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; padding: 16px 20px; border: 1px solid rgba(201,168,76,.3); border-radius: 8px; background: rgba(201,168,76,.1); }
.dashboard-today-icon { flex: 0 0 auto; font-size: 28px; }
.dashboard-today-title { color: var(--gold); font-size: 14px; font-weight: 700; }
.dashboard-today-copy { margin-top: 3px; color: var(--text); font-size: 13px; line-height: 1.55; overflow-wrap: anywhere; }
.dashboard-kpis, .dashboard-section-gap { margin-bottom: 18px; }
.dashboard-empty { padding: 28px; }
.dashboard-event-status { display: flex; flex: 0 0 auto; flex-direction: column; align-items: flex-end; gap: 4px; }
.dashboard-event-status a { color: #25D366; font-size: 11px; text-decoration: none; }
.dashboard-reminder-row { display: flex; align-items: center; gap: 12px; padding: 12px 18px; border-bottom: 1px solid var(--border); }
.dashboard-reminder-row:last-child { border-bottom: 0; }
.dashboard-reminder-date { min-width: 56px; padding: 6px 8px; border: 1px solid var(--border); border-radius: 7px; background: rgba(0,0,0,.3); text-align: center; }
.dashboard-reminder-date div { font-size: 10px; font-weight: 700; text-transform: uppercase; }
.dashboard-reminder-date strong { display: block; font-family: 'Cormorant Garamond', serif; font-size: 20px; }
.dashboard-reminder-date span { display: block; color: var(--text2); font-size: 9px; }
.dashboard-reminder-copy { min-width: 0; flex: 1; }
.dashboard-reminder-copy div { font-size: 13px; font-weight: 700; }
.dashboard-reminder-copy span { display: block; margin-top: 2px; color: var(--text2); font-size: 11px; overflow-wrap: anywhere; }
.dashboard-whatsapp { flex: 0 0 auto; padding: 6px 10px; border: 1px solid rgba(37,211,102,.25); border-radius: 7px; background: rgba(37,211,102,.14); color: #25D366; font-size: 12px; text-decoration: none; }
.dashboard-stock-row { padding: 12px 18px; border-bottom: 1px solid var(--border); }
.dashboard-stock-row:last-child { border-bottom: 0; }
.dashboard-stock-heading { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 5px; }
.dashboard-stock-heading span { font-size: 13px; font-weight: 600; }
.dashboard-stock-heading strong { color: var(--red); font-size: 11px; }
.dashboard-expense-amount { flex: 0 0 auto; color: var(--red); font-size: 13px; font-weight: 700; }

[dir="rtl"] .dashboard-header-actions { align-items: flex-start; }
[dir="rtl"] .dashboard-quick-actions { justify-content: flex-start; }
[dir="rtl"] .dashboard-filter-summary,
[dir="rtl"] .dashboard-date-field { text-align: right; }
[dir="rtl"] .dashboard-event-status { align-items: flex-start; }
[dir="rtl"] .dashboard-date-input { direction: ltr; text-align: left; }

@media (max-width: 1180px) {
  .dashboard-filter-bar { grid-template-columns: 1fr; }
  .dashboard-filter-controls { justify-content: flex-start; }
}

@media (max-width: 760px) {
  .dashboard-header-actions { width: 100%; align-items: flex-start; }
  .dashboard-quick-actions { width: 100%; justify-content: flex-start; }
  .dashboard-quick-actions .btn-primary-sm { flex: 1 1 145px; min-height: 40px; padding-inline: 12px; }
  .dashboard-filter-bar { padding: 13px 0; }
  .dashboard-filter-controls { display: grid; width: 100%; gap: 12px; }
  .dashboard-period-tabs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .dashboard-period-btn { min-width: 0; padding-inline: 6px; }
  .dashboard-date-range { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); padding: 11px 0 0; border-inline-start: 0; border-top: 1px solid var(--border); }
  .dashboard-date-range.is-active { border-top-color: var(--gold); }
  .dashboard-date-field { width: 100%; }
  .dashboard-date-input { width: 100%; min-width: 0; }
  .dashboard-date-separator { display: none; }
  .dashboard-apply-filter { grid-column: 1 / -1; width: 100%; }
  .dashboard-today-banner { align-items: flex-start; padding: 14px; }
}

@media (max-width: 420px) {
  .dashboard-period-tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dashboard-date-range { grid-template-columns: 1fr; }
  .dashboard-apply-filter { grid-column: auto; }
  .dashboard-current-date { width: 100%; justify-content: center; text-align: center; }
}

/* Prevent repeated booking submissions while Firestore is saving. */
.event-save-action { display: inline-flex; align-items: center; justify-content: center; gap: 7px; }
.event-save-action:disabled { opacity: .62; cursor: wait !important; pointer-events: none; transform: none !important; }
.booking-save-spinner { width: 13px; height: 13px; flex: 0 0 13px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; }

/* Bank, withdrawal, and manager cash ledger */
.bank-page-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.bank-deposit-btn { border: 1px solid rgba(82,183,136,.34); background: rgba(82,183,136,.15); color: #73c99a; }
.bank-withdraw-btn { border: 1px solid rgba(78,159,232,.34); background: rgba(78,159,232,.14); color: #70b8f5; }
.bank-summary-grid { grid-template-columns: repeat(auto-fit, minmax(175px, 1fr)); }
.bank-ledger-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px; align-items: start; }
.bank-ledger-grid .section-card { min-width: 0; }
.bank-ledger-table { min-width: 680px; }
.bank-withdrawal-table { min-width: 900px; }
.bank-cash-table { min-width: 620px; }
.bank-empty { min-height: 130px; padding: 34px 18px; }
.bank-balance-notice { margin-bottom: 14px; padding: 11px 13px; border: 1px solid rgba(82,183,136,.25); border-radius: 7px; background: rgba(82,183,136,.08); color: var(--text2); font-size: 12px; }
.bank-balance-notice strong { margin-inline-start: 5px; color: #73c99a; }
.expense-cash-hint { margin-top: 6px; color: var(--text2); font-size: 11px; line-height: 1.45; }
#bankSaveButton:disabled,
#expenseSaveButton:disabled,
#paymentSaveButton:disabled { opacity: .62; cursor: wait; pointer-events: none; }

[dir="rtl"] .bank-page-actions { justify-content: flex-start; }
[dir="rtl"] .bank-balance-notice,
[dir="rtl"] .expense-cash-hint { text-align: right; }

@media (max-width: 1150px) {
  .bank-ledger-grid { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 640px) {
  .bank-page-actions { width: 100%; justify-content: stretch; }
  .bank-page-actions .btn-primary-sm { flex: 1 1 150px; padding-inline: 10px; }
  .bank-summary-grid { grid-template-columns: 1fr; }
}
