:root {
  --primary: #303039;
  --secondary: #b89153;
  --background: #f5faff;
  --surface: #ffffff;
  --surface-alt: #edf4fa;
  --text: #22242b;
  --muted: rgba(34, 36, 43, 0.72);
  --border: rgba(184,145,83,.24);
  --success: #0f766e;
  --error: #b91c1c;
  --shadow: 0 20px 40px rgba(7, 30, 41, 0.08);
}
html[data-theme="dark"] {
  color-scheme: dark;
  --background: #111318;
  --surface: #191d24;
  --surface-alt: #212733;
  --text: #f5f7fb;
  --muted: rgba(245,247,251,.70);
  --border: rgba(255,255,255,.10);
  --shadow: 0 20px 40px rgba(0,0,0,.35);
}


/* ── Font-face declarations are inlined in layout.php critical CSS ── */


/* ── Reset ── */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--background); color: var(--text); font-family: 'Frutiger LT Arabic', 'Cairo', sans-serif; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
img { max-width: 100%; height: auto; }

/* ── Layout ── */
.container { width: 100%; max-width: 1120px; padding-left: 16px; padding-right: 16px; margin: 0 auto; }
.narrow { max-width: 820px; }
.section { padding: 88px 0; }
.section-light { background: var(--surface); }
.section-dark { background: linear-gradient(180deg, rgba(48,48,57,1) 0%, rgba(36,37,48,1) 100%); color: #fff; }
.section-heading { margin-bottom: 48px; }
.section-heading h2, h1, h2, h3 { margin-top: 0; }
.section-heading h2 { margin-bottom: 16px; font-size: clamp(28px, 4vw, 42px); }
.section-heading.centered { text-align: center; }
.section-line { display: block; width: 88px; height: 4px; background: var(--secondary); margin: 0 auto; border-radius: 2px; }

/* ── Topbar ── */
.topbar { position: fixed; inset-inline: 0; top: 0; z-index: 20; padding-top: 14px; }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; }

/* ── Hero ── */
.hero-section { position: relative; padding: 100px 0 20px; min-height: 100vh; min-height: 100svh; color: #fff; display: flex; align-items: center; justify-content: center; contain: layout style; }
@media (min-width: 992px) { .hero-section { padding: 90px 0 20px; min-height: auto; } }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(17,19,24,0.7), rgba(17,19,24,0.95)); }
.hero-content { position: relative; z-index: 1; padding-bottom: 30px; text-align: center; }
.brand-mark { display: inline-block; line-height: .95; font-weight: 700; font-size: 38px; color: #fff; margin-bottom: 20px; }
.brand-mark.small { font-size: 22px; margin-bottom: 0; }
.home-logo { height: clamp(280px, 55vw, 400px); width: auto; margin-top: -80px; margin-bottom: 50px; }
@media (min-width: 992px) {
    .home-logo { height: clamp(220px, 30vw, 260px); margin-top: -100px; margin-bottom: 15px; }
}
.hero-title { margin: 0; }
.hero-kicker { display: block; font-size: clamp(20px, 3vw, 36px); color: rgba(255,255,255,.9); }
.hero-main { display: block; margin-top: 12px; color: var(--secondary); font-size: clamp(32px, 6vw, 64px); font-weight: 800; }
.hero-description { max-width: 680px; margin: 18px auto 24px; color: rgba(255,255,255,.82); font-size: clamp(16px, 2vw, 20px); line-height: 1.9; }
.hero-actions { display: flex; flex-direction: column; align-items: center; gap: 32px; margin-top: 60px; }
@media (min-width: 992px) { .hero-actions { margin-top: 0; } }

/* ── Buttons ── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; border: 0; cursor: pointer; padding: 14px 24px; border-radius: 12px; font-weight: 700; transition: transform .2s ease, box-shadow .2s ease; will-change: transform; }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-primary { background: linear-gradient(135deg, #795920 0%, #b89153 100%); color: #fff; box-shadow: var(--shadow); }
.btn-dark { background: var(--primary); color: #fff; }
.btn-secondary { background: var(--surface-alt); color: var(--text); border: 1px solid var(--border); }
.full-width { width: 100%; }

/* ── Scroll hint ── */
.scroll-hint { font-size: 15px; color: rgba(184,145,83,.95); letter-spacing: .05em; text-transform: uppercase; display: inline-flex; align-items: center; gap: 8px; transition: transform 0.2s ease; cursor: pointer; }
.scroll-hint:hover { transform: translateY(2px); }
.hero-scroll-btn { font-size: clamp(14px, 2vw, 16px); font-weight: 300; margin-top: 12px; text-transform: none; }

/* ── Section Utilities ── */
.section-pad-sm { padding-top: 60px; padding-bottom: 80px; }
.section-pad-md { padding-top: 80px; padding-bottom: 80px; }
.section-pad-lg { padding-top: 100px; padding-bottom: 100px; }
.bg-bg { background: var(--bg); }
.bg-surface-alt { background: var(--surface-alt); }
.bg-gradient-dark { background: linear-gradient(to top left, #1a1b22, #2c2415); }

/* ── Typography Utilities ── */
.text-center { text-align: center; }
.text-white { color: #fff; }
.text-muted { color: var(--muted); }
.section-title-light { font-size: 36px; margin-bottom: 56px; }
.header-wrapper { max-width: 800px; margin: 0 auto 60px; }
.badge-soft { background: rgba(184,145,83,0.1); color: var(--secondary); padding: 6px 14px; border-radius: 20px; font-weight: 700; font-size: 14px; margin-bottom: 16px; display: inline-block; }
.header-title { font-size: 40px; margin-bottom: 16px; }
.header-desc { font-size: 18px; line-height: 1.8; }
.mt-8 { margin-top: 8px; }

/* ── SVG Icon Sizes ── */
.icon-feature { width: 44px; height: 44px; color: var(--secondary); }
.icon-check { width: 18px; height: 18px; }
.icon-sticky { width: 22px; height: 22px; }
.icon-sm { width: 18px; height: 18px; }
.icon-md { width: 24px; height: 24px; }
.icon-lg { width: 32px; height: 32px; }
.icon-xs { width: 16px; height: 16px; }
.icon-thank-you { width: 48px; height: 48px; color: var(--success); }
svg { display: inline-block; vertical-align: middle; flex-shrink: 0; }

/* ── Feature Grid ── */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.feature-card { background: var(--surface-alt); padding: 40px 32px; text-align: center; border-radius: 20px; border: 1px solid var(--border); transition: transform .4s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow .4s ease, border-color .4s ease; contain: content; }
.feature-card:hover { transform: translateY(-8px); box-shadow: 0 20px 40px rgba(0,0,0,.12); border-color: rgba(184, 145, 83, 0.4); }
.feature-icon { margin-bottom: 20px; display: flex; justify-content: center; transform: scale(1); transition: transform .4s ease; }
.feature-card:hover .feature-icon { transform: scale(1.1); }
.feature-card h3 { margin: 0 0 12px; font-size: 28px; }
.feature-card p { margin: 0; color: var(--muted); line-height: 1.9; }

/* ── Advantages ── */
.advantage-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 24px; }
.advantage-list li { display: flex; align-items: center; gap: 18px; font-size: 20px; background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(255, 255, 255, 0.08); padding: 22px 28px; border-radius: 18px; backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); transition: transform 0.3s ease, background 0.3s ease; }
.advantage-list li:hover { transform: translateY(-3px); background: rgba(255, 255, 255, 0.07); }
.check { width: 38px; height: 38px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; background: linear-gradient(135deg, #b89153, #795920); color: #fff; flex: 0 0 38px; box-shadow: 0 6px 16px rgba(184, 145, 83, 0.25); }

/* ── Form ── */
.form-wrap { display: grid; grid-template-columns: 1fr 1.3fr; background: var(--surface); border-radius: 24px; box-shadow: 0 30px 60px rgba(0,0,0,0.12); border: 1px solid var(--border); }
.form-aside { background: linear-gradient(135deg, var(--primary) 0%, #1a1b22 100%); position: relative; color: #fff; padding: 48px; display: flex; flex-direction: column; justify-content: center; border-radius: 0 24px 24px 0; }
.form-aside::before { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at top right, rgba(184, 145, 83, 0.15), transparent 60%); pointer-events: none; border-radius: inherit; }
.form-aside > * { position: relative; z-index: 1; }
.form-aside h2 { margin: 0 0 14px; font-size: 40px; }
.form-aside p, .safe-note { margin: 0; color: rgba(255,255,255,.78); line-height: 1.9; font-size: 18px; }
.safe-note { margin-top: 30px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.12); color: rgba(255,255,255,.66); }
.form-panel { padding: 42px; border-radius: 24px 0 0 24px; }
.lead-form, .admin-login-box, .settings-card, .mini-card { display: grid; gap: 18px; }
.lead-form label, .settings-card label, .mini-card label { display: grid; gap: 8px; }
.lead-form span, .settings-card span, .mini-card span, .admin-login-box span { font-size: 14px; font-weight: 700; color: var(--text); }
.lead-form input, .lead-form textarea, .admin-login-box input, .settings-card input, .settings-card textarea, .settings-card select, .mini-card input, .mini-card textarea {
  width: 100%; border: 1px solid var(--border); border-radius: 12px; padding: 14px; background: var(--surface); color: var(--text); transition: border-color .2s ease;
}
.lead-form input, .lead-form textarea, .lead-form select { background: #ffffff1a; color: var(--text); padding-right: 14px; }
.lead-form select { min-height: 56px; border-radius: 16px; margin-top: 8px; }
.lead-form select option { background-color: #222; color: #fff; }

html[data-theme="dark"] input[type="time"]::-webkit-calendar-picker-indicator,
html[data-theme="dark"] input[type="date"]::-webkit-calendar-picker-indicator {
    filter: invert(1) opacity(0.85);
}

/* Custom Dropdown UI */
.custom-dropdown { position: relative; width: 100%; margin-top: 8px; }
.dropdown-selected {
    border: 1px solid var(--border); border-radius: 16px; padding: 14px; padding-left: 38px;
    background: #ffffff1a url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%23888' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' viewBox='0 0 24 24'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E") no-repeat left 14px center;
    background-size: 16px; color: var(--text); cursor: pointer; min-height: 56px; display: flex; align-items: center; transition: box-shadow 0.2s;
}
.dropdown-selected:hover { border-color: rgba(184,145,83,.5); }
.custom-dropdown.open .dropdown-selected { border-color: var(--secondary); box-shadow: 0 0 0 3px rgba(184,145,83,.15); }
.dropdown-options {
    position: absolute; top: calc(100% + 8px); left: 0; right: 0; background: #222; border: 1px solid rgba(184,145,83,.3);
    border-radius: 16px; overflow: hidden; display: none; z-index: 100; box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}
.custom-dropdown.open .dropdown-options { display: block; animation: dropDownAnim 0.2s cubic-bezier(0.16, 1, 0.3, 1); }
.dropdown-option { padding: 14px 16px; color: #eee; cursor: pointer; transition: background-color 0.2s, color 0.2s, transform 0.2s; font-size: 15px; font-weight: 600; display: block; }
.dropdown-option:not(:last-child) { border-bottom: 1px solid rgba(255,255,255,0.05); }
.dropdown-option:hover { background: rgba(184,145,83,.15); color: var(--secondary); transform: translateX(-4px); }
@keyframes dropDownAnim { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: translateY(0); } }
.settings-card select, .leads-toolbar select, .lead-form select, .mini-card select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%23888' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' viewBox='0 0 24 24'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: left 14px center;
  background-size: 16px;
  padding-left: 38px !important;
}
.lead-form input:focus, .lead-form textarea:focus { border-color: var(--secondary); outline: none; box-shadow: 0 0 0 3px rgba(184,145,83,.15); }
.lead-form textarea, .settings-card textarea, .mini-card textarea { resize: vertical; min-height: 100px; }

/* ── Footer ── */
.footer { background: var(--primary); color: #fff; padding: 56px 0 40px; }
.footer-inner { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: start; }
.footer-links, .footer-contact { display: grid; gap: 12px; }
.footer-links a, .footer-contact { color: rgba(255,255,255,.72); }
.footer-links a:hover { color: var(--secondary); }
.footer-contact a { color: inherit; }
.footer-contact a:hover { color: var(--secondary); }

/* ── Sticky Bar (MOBILE ONLY) ── */
.sticky-bar { display: none; }

/* ── Theme Toggle ── */
.theme-toggle { border: 1px solid var(--border); background: var(--surface); color: var(--text); border-radius: 999px; padding: 10px; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; box-shadow: var(--shadow); transition: transform .2s ease; width: 42px; height: 42px; }
.theme-toggle:hover { transform: scale(1.05); }
.theme-toggle-icon { display: flex; align-items: center; justify-content: center; }

/* ── Misc ── */
.honeypot { position: absolute !important; inset-inline-start: -9999px; opacity: 0; pointer-events: none; }
.alert { padding: 14px 16px; border-radius: 12px; margin-bottom: 20px; font-weight: 600; }
.alert.success { background: rgba(15,118,110,.08); color: var(--success); }

/* ── Animations ── */
.reveal { opacity: 0; transition: all 0.8s cubic-bezier(0.2, 0.8, 0.2, 1); }
.reveal.active { opacity: 1; transform: translateY(0) translateX(0) scale(1); }
.reveal-up { transform: translateY(50px); }
.reveal-left { transform: translateX(50px); }
.reveal-right { transform: translateX(-50px); }
.reveal-scale { transform: scale(0.95); }
.delay-100 { transition-delay: 100ms; }
.delay-200 { transition-delay: 200ms; }
.delay-300 { transition-delay: 300ms; }
.alert.error { background: rgba(185,28,28,.08); color: var(--error); }
.muted { color: var(--muted); font-size: 13px; }
.muted.big { font-size: 15px; line-height: 1.8; }
.eyebrow { color: var(--secondary); font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }

/* ── Confirm Modal ── */
.confirm-modal-overlay{position:fixed;inset:0;background:rgba(0,0,0,0.6);backdrop-filter:blur(4px);display:flex;align-items:center;justify-content:center;z-index:9999;opacity:0;pointer-events:none;transition:opacity .3s ease}
.confirm-modal-overlay.active{opacity:1;pointer-events:auto}
.confirm-modal{background:var(--surface);padding:32px;border-radius:24px;width:90%;max-width:400px;text-align:center;box-shadow:0 25px 50px -12px rgba(0,0,0,0.5);transform:translateY(20px);transition:transform .3s ease}
.confirm-modal-overlay.active .confirm-modal{transform:translateY(0)}
.confirm-modal-icon{width:64px;height:64px;margin:0 auto 16px;color:var(--secondary)}
.confirm-modal h3{margin:0 0 12px;font-size:24px;color:var(--text)}
.confirm-modal p{margin:0 0 24px;font-size:16px;color:var(--muted);line-height:1.6}
.confirm-modal-actions{display:flex;gap:12px}
.confirm-modal-actions .btn{flex:1}
.confirm-modal-actions #confirm-modal-submit{flex:2}
.confirm-modal-actions .btn-outline{background:transparent;border:1px solid var(--border);color:var(--text)}

/* ── Admin ── */
.dashboard-layout { display: grid; grid-template-columns: 260px 1fr; gap: 32px; width: min(1400px, calc(100% - 32px)); margin: 32px auto 60px; align-items: start; }
.dashboard-sidebar { background: var(--surface); border: 1px solid var(--border); border-radius: 24px; padding: 24px 16px; position: sticky; top: 32px; display: flex; flex-direction: column; gap: 6px; box-shadow: var(--shadow); }
.dashboard-sidebar .eyebrow { padding: 0 16px; margin-bottom: 16px; font-size: 14px; }
.dashboard-sidebar .nav-link { display: flex; align-items: center; gap: 12px; background: transparent; border: 0; width: 100%; text-align: right; padding: 14px 16px; border-radius: 14px; color: var(--text); font-weight: 600; cursor: pointer; transition: all .2s ease; opacity: 0.7; }
.dashboard-sidebar .nav-link:hover { opacity: 1; background: rgba(184, 145, 83, 0.08); text-decoration: none; }
.dashboard-sidebar .nav-link.active { opacity: 1; background: linear-gradient(135deg, rgba(184, 145, 83, 0.12), transparent); border-right: 4px solid var(--secondary); color: var(--secondary); border-radius: 14px 4px 4px 14px; }
.dashboard-sidebar .logout-link { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--border); }
.dashboard-sidebar .logout-link a { display: flex; justify-content: space-between; align-items: center; color: var(--error); padding: 12px 16px; font-weight: 700; border-radius: 12px; transition: background .2s ease; text-decoration: none; }
.dashboard-sidebar .logout-link a:hover { background: rgba(185, 28, 28, 0.08); }

.tab-content { display: none; opacity: 0; animation: fadeInTab .4s ease forwards; }
.tab-content.active { display: block; }
@keyframes fadeInTab { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

.card, .stat-card, .table-card, .settings-card, .mini-card, .admin-login-box { background: var(--surface); box-shadow: var(--shadow); border-radius: 18px; padding: 22px; border: 1px solid var(--border); }
.admin-login-page { min-height: 100vh; display: grid; place-items: center; padding: 24px; }
.admin-login-box { width: min(460px, 100%); }
.admin-shell { width: 100%; }
.admin-header { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 24px; }
.admin-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-bottom: 24px; }
.stat-card span { color: var(--muted); display: block; margin-bottom: 8px; }
.stat-card strong { font-size: 34px; }
.settings-grid { display: grid; grid-template-columns: 1fr; gap: 18px; margin-bottom: 24px; }
.card-head { margin-bottom: 10px; }
.card-head p { margin: 0; color: var(--muted); }
.fields-grid { display: grid; gap: 14px; }
.fields-grid.two { grid-template-columns: repeat(2, 1fr); }
.toggle-row { display: flex; gap: 16px; flex-wrap: wrap; }
.toggle-row.multi { row-gap: 8px; }
.switch { display: inline-flex !important; flex-direction: row !important; align-items: center !important; gap: 12px; background: var(--surface-alt); padding: 10px 14px; border-radius: 12px; border: 1px solid var(--border); cursor: pointer; user-select: none; }
.switch input[type="checkbox"] { appearance: none; -webkit-appearance: none; width: 44px !important; height: 24px !important; background: var(--muted); border-radius: 99px !important; position: relative; cursor: pointer; outline: none; transition: background 0.3s ease; flex-shrink: 0; margin: 0; padding: 0 !important; border: none !important; }
.switch input[type="checkbox"]::after { content: ''; position: absolute; top: 2px; width: 20px; height: 20px; background: #fff; border-radius: 50%; transition: transform 0.3s cubic-bezier(0.18, 0.89, 0.32, 1.28); box-shadow: 0 2px 4px rgba(0,0,0,0.2); left: 2px; }
.switch input[type="checkbox"]:checked { background: #3b82f6; }
.switch input[type="checkbox"]:checked::after { transform: translateX(20px); }
[dir="rtl"] .switch input[type="checkbox"]::after { right: 2px; left: auto; }
[dir="rtl"] .switch input[type="checkbox"]:checked::after { transform: translateX(-20px); }
.landing-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.mini-card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.table-wrap { overflow-x: auto; overflow-y: hidden; -webkit-overflow-scrolling: touch; margin-bottom: 16px; border-radius: 8px; }
.table-card table { width: 100%; border-collapse: collapse; min-width: 900px; }
.table-card th, .table-card td { padding: 14px 12px; text-align: right; border-bottom: 1px solid var(--border); vertical-align: top; white-space: nowrap; }
.status { display: inline-block; padding: 6px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; }
.status-synced { background: rgba(15,118,110,.12); color: var(--success); }
.status-failed { background: rgba(185,28,28,.12); color: var(--error); }
.status-pending { background: rgba(184,145,83,.14); color: #8a641e; }
.status-duplicate { background: rgba(245,158,11,.12); color: #d97706; }
.table-link { background: none; border: 0; color: var(--secondary); font: inherit; cursor: pointer; font-weight: 700; padding: 0; }
.leads-toolbar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.leads-toolbar input[type="search"] { padding: 8px 12px; border: 1px solid var(--border); border-radius: 8px; background: var(--surface); color: var(--text); outline: none; transition: border .2s; height: 40px; box-sizing: border-box; }
.leads-toolbar select { padding: 2px 12px 10px; border: 1px solid var(--border); border-radius: 8px; background: var(--surface); color: var(--text); outline: none; transition: border .2s; height: 40px; min-width: 120px; box-sizing: border-box; }
.leads-toolbar input[type="search"]:focus, .leads-toolbar select:focus { border-color: var(--secondary); }
.leads-toolbar .switch { height: 40px; box-sizing: border-box; padding: 0 12px !important; margin: 0; }
.btn-sm { padding: 6px 16px; font-size: 14px; border-radius: 8px; height: 40px; }
.pagination { display: flex; gap: 6px; justify-content: center; margin-top: 24px; flex-wrap: wrap; }
.page-link { display: inline-flex; align-items: center; justify-content: center; min-width: 32px; height: 32px; border-radius: 8px; border: 1px solid var(--border); color: var(--text); text-decoration: none; font-weight: 600; font-size: 14px; transition: all .2s; }
.page-link:hover { background: var(--surface-alt); }
.page-link.active { background: var(--secondary); color: var(--surface); border-color: var(--secondary); pointer-events: none; }

/* ── Accordion ── */
.accordion-group { background: var(--surface-alt); border: 1px solid var(--border); border-radius: 12px; margin-bottom: 12px; }
.accordion-group > summary { display: flex; align-items: center; justify-content: space-between; padding: 14px 20px; font-weight: 700; cursor: pointer; list-style: none; color: var(--text); user-select: none; }
.accordion-group > summary::-webkit-details-marker { display: none; }
.accordion-group > summary::after { content: '+'; font-size: 22px; color: var(--muted); transition: transform 0.2s; font-weight: 400; }
.accordion-group[open] > summary::after { content: '−'; transform: rotate(180deg); }
.accordion-content { padding: 16px 20px 20px; border-top: 1px solid var(--border); display: grid; gap: 14px; }
.accordion-content .fields-grid { gap: 14px; }

/* ── Thank You ── */
.thank-you-page { min-height: 70vh; display: flex; align-items: center; }
.card-like { background: var(--surface); border-radius: 24px; box-shadow: 0 20px 50px rgba(0,0,0,.08); text-align: center; }
.thank-you-icon { width: 84px; height: 84px; border-radius: 50%; display: grid; place-items: center; margin: 0 auto 1rem; background: rgba(13,148,136,.12); }
.thank-you-meta { display: flex; gap: .75rem; justify-content: center; flex-wrap: wrap; margin: 1rem 0 1.5rem; }
.pill { padding: .45rem .9rem; border-radius: 999px; background: rgba(212,175,55,.12); border: 1px solid rgba(212,175,55,.3); }
.centered-actions { justify-content: center; }

/* ── Responsive ── */
@media (max-width: 1100px) {
  .landing-cards { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .dashboard-layout { grid-template-columns: 1fr; gap: 16px; margin: 16px auto 30px; width: calc(100% - 24px); }
  .dashboard-sidebar { 
      position: static; 
      padding: 12px; 
      flex-direction: row; 
      overflow-x: auto; 
      white-space: nowrap; 
      -webkit-overflow-scrolling: touch;
      border-radius: 16px;
  }
  .dashboard-sidebar::-webkit-scrollbar { display: none; } /* hide scrollbar for modern looks */
  .dashboard-sidebar { -ms-overflow-style: none; scrollbar-width: none; }
  
  .dashboard-sidebar .eyebrow { display: none; }
  .dashboard-sidebar .nav-link { 
      width: auto; 
      justify-content: center; 
      padding: 10px 18px; 
      border-radius: 12px !important; 
      font-size: 14px;
      flex-shrink: 0;
  }
  .dashboard-sidebar .nav-link.active { 
      border: none; 
      background: var(--surface-alt); 
      color: var(--secondary); 
      border-bottom: 2px solid var(--secondary); 
      border-radius: 12px 12px 0 0 !important;
  }
  .dashboard-sidebar .logout-link { 
      margin-top: 0; 
      padding-top: 0; 
      border-top: none; 
      margin-inline-start: auto; 
      padding-inline-start: 12px; 
      border-inline-start: 1px solid var(--border); 
      display: flex; 
      align-items: center; 
      flex-shrink: 0;
  }
  .dashboard-sidebar .logout-link a { padding: 10px 16px; }
  
  .feature-grid, .stats-grid, .footer-inner, .form-wrap, .fields-grid.two { grid-template-columns: 1fr; }
  .admin-header { flex-direction: column; align-items: flex-start; gap: 12px; }
}
@media (max-width: 640px) {
  .hero-content { padding-top: 40px; }
  .section { padding: 64px 0; }
  .feature-card h3 { font-size: 24px; }
  .advantage-list li { font-size: 18px; }
  .form-panel, .form-aside { padding: 26px; }
  .topbar { padding-top: 10px; }
  .footer { padding-bottom: 100px; }

  /* Sticky Bar: visible on mobile only */
  .sticky-bar {
    display: flex;
    position: fixed;
    left: 50%;
    transform: translateX(-50%);
    bottom: 22px;
    width: min(520px, calc(100% - 24px));
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    background: color-mix(in srgb, var(--surface) 84%, transparent);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 10px 12px;
    border-radius: 8px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    z-index: 30;
    transition: bottom 0.3s ease, opacity 0.3s ease;
  }
  .sticky-bar.hidden { bottom: -100px; opacity: 0; pointer-events: none; }
  .icon-action { width: 44px; height: 44px; border-radius: 8px; display: grid; place-items: center; background: var(--surface); flex-shrink: 0; }
  .sticky-cta { flex: 1; text-align: center; border-radius: 8px; }
}

/* ── Homepage Components ── */
.home-grid {
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); 
    gap: 32px;
}
.stat-card {
    background: var(--surface); 
    padding: 40px; 
    border-radius: 24px; 
    text-align: center; 
    box-shadow: var(--shadow); 
    border: 1px solid var(--border);
}
.stat-num {
    font-size: 48px; 
    font-weight: 900; 
    color: var(--secondary); 
    margin-bottom: 12px;
}
.stat-title {
    font-size: 20px; 
    font-weight: 700; 
    color: var(--text);
}
.stat-desc {
    color: var(--muted); 
    margin-top: 8px; 
    font-size: 16px;
}

.values-grid {
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); 
    gap: 24px;
}
.value-card {
    background: rgba(255,255,255,0.03); 
    padding: 32px; 
    border-radius: 18px; 
    border: 1px solid rgba(255,255,255,0.06);
}
.value-title {
    color: var(--secondary); 
    font-size: 24px; 
    margin-bottom: 16px; 
    margin-top: 0;
}
.value-desc {
    color: #cbd5e1; 
    line-height: 1.8; 
    margin: 0;
}

.projects-grid {
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); 
    gap: 32px;
}
.project-card {
    background: var(--surface); 
    border-radius: 24px; 
    overflow: hidden; 
    border: 1px solid var(--border); 
    box-shadow: var(--shadow); 
    transition: transform 0.3s; 
    display: flex; 
    flex-direction: column;
}
.project-card:hover {
    transform: translateY(-4px);
}
.project-img {
    height: 240px; 
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    position: relative;
}
.project-badge {
    position: absolute; 
    bottom: 20px; 
    right: 24px; 
    color: #fff; 
    font-size: 24px; 
    font-weight: 800;
}
.project-body {
    padding: 32px; 
    flex: 1; 
    display: flex; 
    flex-direction: column;
}
.project-desc {
    color: var(--muted); 
    line-height: 1.8; 
    margin-top: 0;
    margin-bottom: 24px; 
    flex: 1;
}

/* ── Partners Marquee ── */
.partners-wrapper { overflow: hidden; width: 100vw; max-width: 100%; position: relative; padding: 40px 0; background: var(--surface-alt); display: block; border-top: 1px solid rgba(255,255,255,0.05); border-bottom: 1px solid rgba(255,255,255,0.05); }
.partners-wrapper::before, .partners-wrapper::after { content: ''; position: absolute; top: 0; bottom: 0; width: 120px; z-index: 2; pointer-events: none; }
.partners-wrapper::before { left: 0; background: linear-gradient(to right, var(--surface-alt) 0%, transparent 100%); }
.partners-wrapper::after { right: 0; background: linear-gradient(to left, var(--surface-alt) 0%, transparent 100%); }
.partners-track { display: flex; gap: 60px; align-items: center; width: max-content; animation: scroll-rtl 35s linear infinite; }
.partners-track:hover { animation-play-state: paused; }
.partner-logo { font-size: 26px; font-weight: 800; color: var(--muted); opacity: 0.6; transition: all 0.3s ease; display: inline-flex; align-items: center; justify-content: center; height: 70px; padding: 0 40px; background: rgba(255,255,255,0.02); border-radius: 12px; border: 1px solid rgba(255,255,255,0.05); text-transform: uppercase; letter-spacing: 1.5px; white-space: nowrap; user-select: none; }
.partner-logo img { filter: grayscale(100%) brightness(200%); opacity: 0.8; transition: all 0.3s ease; }
.partner-logo:hover img { filter: none; opacity: 1; }
.partner-logo:hover { opacity: 1; color: var(--secondary); border-color: rgba(184,145,83,0.3); transform: translateY(-4px); box-shadow: 0 8px 24px rgba(184,145,83,0.15); background: rgba(184,145,83,0.05); }
@keyframes scroll-rtl { 0% { transform: translateX(0); } 100% { transform: translateX(50%); } }
@keyframes scroll-ltr { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }
[dir="ltr"] .partners-track { animation-name: scroll-ltr; }
@media (max-width: 768px) { .partner-logo { font-size: 20px; height: 60px; padding: 0 24px; gap: 30px; } .partners-track { gap: 30px; } }

/* ── FAQ Accordion ── */
.faq-grid { display: flex; flex-direction: column; gap: 16px; width: 100%; max-width: 800px; margin: 0 auto; text-align: right; }
.faq-item { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; overflow: hidden; transition: all 0.3s ease; }
.faq-item:hover { border-color: rgba(184,145,83,0.3); }
.faq-summary { padding: 24px; font-size: 18px; font-weight: 700; color: #fff; cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; user-select: none; transition: background 0.2s ease; }
.faq-summary::-webkit-details-marker { display: none; }
.faq-summary::after { content: '+'; font-size: 28px; font-weight: 300; transition: transform 0.3s ease, color 0.3s ease; color: var(--secondary); line-height: 1; }
.faq-item[open] .faq-summary::after { transform: rotate(45deg); color: #fff; }
.faq-item[open] .faq-summary { background: rgba(255,255,255,0.02); border-bottom: 1px solid rgba(255,255,255,0.05); }
.faq-content { padding: 24px; color: rgba(255,255,255,0.7); line-height: 1.8; font-size: 16px; animation: faq-fade 0.4s ease forwards; }
@keyframes faq-fade { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: translateY(0); } }
