:root {
    --bg: #020617;
    --bg-elev: #0f172a;
    --bg-card: rgba(15, 23, 42, 0.72);
    --line: rgba(212, 175, 55, 0.22);
    --text: #f8fafc;
    --muted: #94a3b8;
    --gold: #d4af37;
    --gold-2: #f59e0b;
    --navy: #0f172a;
    --emerald: #006c35;
    --accent: #059669;
    --accent-glow: #10b981;
    --danger: #9f1239;
    --warn: #f59e0b;
    --shadow: 0 28px 80px rgba(0, 0, 0, 0.45);
    --radius: 24px;
    --font: 'Cairo', 'Tajawal', 'Segoe UI', sans-serif;
    --font-en: 'Poppins', 'Segoe UI', sans-serif;
}

html[data-theme="light"] {
    --bg: #f4efe4;
    --bg-elev: #fffdf8;
    --bg-card: rgba(255, 253, 248, 0.88);
    --line: rgba(15, 23, 42, 0.12);
    --text: #0f172a;
    --muted: #475569;
    --shadow: 0 20px 50px rgba(15, 23, 42, 0.1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; overflow-x: hidden; }
.hidden { display: none !important; }
body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    line-height: 1.85;
    font-weight: 400;
    min-height: 100vh;
    overflow-x: hidden;
    letter-spacing: 0;
    -webkit-font-smoothing: antialiased;
}
html[dir="rtl"] body { line-height: 1.9; font-weight: 500; }
html[dir="ltr"] body { font-family: var(--font-en); line-height: 1.7; }

#fx-canvas {
    position: fixed; inset: 0; z-index: 0; pointer-events: none; opacity: 0.55;
}
.bg-mesh {
    position: fixed; inset: 0; z-index: 0; pointer-events: none;
    background:
        radial-gradient(900px 520px at 8% -8%, rgba(212, 175, 55, 0.16), transparent 58%),
        radial-gradient(720px 480px at 100% 8%, rgba(0, 108, 53, 0.22), transparent 52%),
        radial-gradient(600px 400px at 50% 100%, rgba(5, 150, 105, 0.1), transparent 60%),
        repeating-linear-gradient(135deg, rgba(148,163,184,0.035) 0 1px, transparent 1px 22px),
        linear-gradient(180deg, #020617 0%, #0f172a 48%, #020617 100%);
}
html[data-theme="light"] .bg-mesh {
    background:
        radial-gradient(900px 500px at 10% -10%, rgba(212, 175, 55, 0.28), transparent 55%),
        linear-gradient(180deg, #f7f1e6, #efe6d6);
}
.wrap { position: relative; z-index: 1; overflow-x: hidden; max-width: 100%; }

.nav {
    position: sticky; top: 0; z-index: 50;
    display: flex; align-items: center; justify-content: space-between; gap: 1rem;
    padding: 0.9rem 6%;
    background: rgba(2, 6, 23, 0.72);
    backdrop-filter: blur(22px);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 10px 40px rgba(0,0,0,0.25);
}
html[data-theme="light"] .nav { background: rgba(255, 253, 248, 0.86); }
.brand { display: flex; align-items: center; gap: 0.8rem; text-decoration: none; color: var(--text); }
.brand-logo, .footer-logo, .brand img, .brand svg {
    max-height: 48px;
    height: 48px;
    width: auto;
    object-fit: contain;
    background: #020617;
    border-radius: 10px;
    padding: 0;
    border: 1px solid rgba(212, 175, 55, 0.28);
    box-shadow: 0 0 18px rgba(16, 185, 129, 0.14), inset 0 0 0 1px rgba(2, 6, 23, 0.8);
    display: block;
    flex-shrink: 0;
}
html[data-theme="light"] .brand-logo,
html[data-theme="light"] .footer-logo,
html[data-theme="light"] .brand img {
    background: #020617;
    border-color: rgba(0, 108, 53, 0.35);
}
.footer-logo { margin: 0 auto 1rem; }
.brand-name { font-weight: 800; letter-spacing: 0.08em; font-size: 0.95rem; }
.brand-name span { color: var(--gold); }
.nav-links { display: flex; gap: 1.05rem; list-style: none; align-items: center; flex-wrap: wrap; }
.nav-links a { color: var(--text); text-decoration: none; font-weight: 700; font-size: 0.88rem; opacity: 0.86; }
.nav-links a:hover, .nav-links a.active { color: var(--gold-2); opacity: 1; }
.nav-actions { display: flex; align-items: center; gap: 0.6rem; }
.icon-btn, .menu-btn {
    width: 42px; height: 42px; border-radius: 999px; border: 1px solid var(--line);
    background: transparent; color: var(--text); cursor: pointer;
}
.menu-btn { display: none; }

.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
    padding: 0.9rem 1.4rem; border-radius: 14px; font-weight: 800; text-decoration: none;
    border: 1px solid transparent; cursor: pointer; font-family: inherit;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-gold {
    background: linear-gradient(180deg, #f3d98a, var(--gold));
    color: #1a140c;
    box-shadow: 0 10px 28px rgba(212, 175, 55, 0.28);
}
.btn-line { background: rgba(255,255,255,0.03); color: var(--text); border-color: var(--line); }
.btn-green {
    background: linear-gradient(180deg, #0d8f4f, var(--emerald));
    color: #f8fafc;
    box-shadow: 0 10px 28px rgba(0, 108, 53, 0.35);
}
.btn-danger { background: rgba(159, 18, 57, 0.18); color: #fda4af; border-color: rgba(159, 18, 57, 0.4); }
.btn-block { width: 100%; }

.hero, .section { padding: 5.5rem 6%; position: relative; z-index: 1; }
.hero {
    min-height: 92vh; display: flex; flex-direction: column; justify-content: center;
    max-width: none;
}
.hero-photo {
    background-size: cover; background-position: center;
    box-shadow: inset 0 -80px 80px rgba(2, 6, 23, 0.85);
}
.hero-inner { max-width: 920px; }
.kicker { color: var(--gold); font-weight: 800; letter-spacing: 0.18em; font-size: 0.78rem; text-transform: uppercase; margin-bottom: 1rem; }
.hero h1, .section-title { font-size: clamp(2.2rem, 5vw, 4.6rem); line-height: 1.15; font-weight: 900; }
.lead { max-width: 720px; color: var(--muted); font-size: 1.12rem; margin: 1.2rem 0 2rem; }
.hero-actions { display: flex; gap: 0.8rem; flex-wrap: wrap; }
.section-title { text-align: center; margin-bottom: 2.5rem; }
.section-title:after {
    content: ""; display: block; width: 88px; height: 3px; margin: 1rem auto 0;
    background: linear-gradient(90deg, transparent, var(--gold), var(--accent), transparent);
}

.grid { display: grid; gap: 1.4rem; }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.card {
    background: var(--bg-card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1.6rem;
    box-shadow: var(--shadow);
    backdrop-filter: blur(18px);
    position: relative;
}
.card:before {
    content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
    border: 1px solid transparent;
    background: linear-gradient(135deg, rgba(212,175,55,0.28), transparent 40%, rgba(16,185,129,0.12)) border-box;
    -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor; mask-composite: exclude;
}
.card h3 { margin: 0.6rem 0; }
.muted { color: var(--muted); }
.photo-card {
    background-size: cover; background-position: center; min-height: 280px;
    display: flex; flex-direction: column; justify-content: flex-end;
}
.photo-card h3, .photo-card p { text-shadow: 0 8px 24px rgba(0,0,0,0.65); }
.active-event { padding-top: 1.5rem; padding-bottom: 1.5rem; }
.active-event-card {
    max-width: 1100px;
    margin: 0 auto;
    min-height: 240px;
    padding: 2.2rem;
    border-color: rgba(212,175,55,0.35);
    box-shadow: 0 0 40px rgba(16,185,129,0.12), var(--shadow);
}
.active-event-card h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); margin: 0.4rem 0 0.8rem; }
.active-event-card .btn { margin-top: 1.2rem; align-self: flex-start; }
.svc-icon {
    width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center;
    background: linear-gradient(160deg, rgba(212,175,55,0.22), rgba(0,108,53,0.18));
    color: var(--gold); font-size: 1.2rem; margin-bottom: 0.4rem;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.12);
}
.kicker-pill {
    display: inline-flex; align-items: center; gap: 0.45rem;
    padding: 0.35rem 0.85rem; border-radius: 999px;
    border: 1px solid var(--line); background: rgba(2,6,23,0.45);
    color: var(--gold); font-weight: 800; letter-spacing: 0.16em;
    font-size: 0.72rem; text-transform: uppercase; margin-bottom: 1rem;
}
.split { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 2.5rem; align-items: center; }
.split img { width: 100%; border-radius: 28px; border: 1px solid var(--line); object-fit: cover; min-height: 280px; box-shadow: var(--shadow); }

.stats {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem;
    margin-top: 2.5rem; padding: 2rem; border-radius: 28px;
    background: linear-gradient(180deg, rgba(15,23,42,0.9), rgba(2,6,23,0.95));
    color: #fff; border: 1px solid var(--line);
    backdrop-filter: blur(16px);
}
.stats strong { display: block; font-size: 2.2rem; color: var(--gold); }

.portfolio-item { position: relative; overflow: hidden; border-radius: 24px; min-height: 340px; border: 1px solid var(--line); }
.portfolio-item img { width: 100%; height: 100%; object-fit: cover; min-height: 340px; display: block; transition: transform 0.7s ease; }
.portfolio-item:hover img { transform: scale(1.08); }
.portfolio-item figcaption {
    position: absolute; inset: auto 0 0 0; padding: 1.5rem;
    background: linear-gradient(transparent, rgba(2, 6, 23, 0.94));
}

.form { display: grid; gap: 0.9rem; }
.form input, .form textarea, .form select, .form-control, .card input, .card textarea, .card select {
    width: 100%; padding: 0.95rem 1rem; border-radius: 14px; border: 1px solid var(--line);
    background: rgba(2, 6, 23, 0.45); color: var(--text); font-family: inherit; font-size: 1rem;
}
.form input:focus, .form textarea:focus, .form select:focus, .form-control:focus,
.card input:focus, .card textarea:focus, .card select:focus {
    outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(212,175,55,0.15);
}
html[data-theme="light"] .form input,
html[data-theme="light"] .form textarea,
html[data-theme="light"] .form select,
html[data-theme="light"] .card input,
html[data-theme="light"] .card textarea,
html[data-theme="light"] .card select {
    background: rgba(255,253,248,0.95); color: #0f172a;
}
.form label { font-weight: 700; font-size: 0.92rem; }
.alert { padding: 0.9rem 1rem; border-radius: 14px; font-weight: 700; margin-bottom: 1rem; }
.alert-ok { background: rgba(5, 150, 105, 0.14); color: var(--accent-glow); border: 1px solid rgba(16, 185, 129, 0.3); }
.alert-err { background: rgba(159, 18, 57, 0.16); color: #fda4af; border: 1px solid rgba(159, 18, 57, 0.4); }

.footer {
    margin-top: 4rem; padding: 3rem 6%; text-align: center; color: var(--muted);
    border-top: 1px solid var(--line);
}
.follow-label {
    margin: 0.9rem 0 0.55rem;
    font-weight: 800;
    font-size: 0.82rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--gold);
}
.social-links {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    margin: 0.2rem 0 1rem;
}
.social-links a {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    border: 1px solid rgba(212, 175, 55, 0.28);
    color: var(--gold);
    background: rgba(2, 6, 23, 0.62);
    text-decoration: none;
    font-size: 1.15rem;
    transition: transform 0.25s ease, background 0.25s ease, color 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.social-links a svg { width: 16px; height: 16px; display: block; }
.social-links a:hover,
.social-links a:focus-visible {
    color: #020617;
    background: linear-gradient(180deg, #f3d98a, var(--gold));
    border-color: var(--accent-glow);
    box-shadow: 0 8px 22px rgba(16, 185, 129, 0.28), 0 0 0 1px rgba(212, 175, 55, 0.35);
    transform: translateY(-2px);
}
.nav-social { display: none; list-style: none; }
.nav-social .social-links { justify-content: flex-start; margin: 0; }
.split .social-links { justify-content: flex-start; }
.social-links a:nth-child(3n):hover,
.social-links a:nth-child(3n):focus-visible {
    color: #f8fafc;
    background: linear-gradient(180deg, #0d8f4f, var(--emerald));
    border-color: var(--gold);
}

.auth-shell { min-height: 100vh; display: grid; place-items: center; padding: 7rem 1.2rem 2rem; }
.auth-card { width: min(480px, 100%); }
.auth-split {
    width: min(980px, 100%);
    display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 0;
    border-radius: 28px; overflow: hidden; border: 1px solid var(--line);
    box-shadow: var(--shadow); background: var(--bg-card); backdrop-filter: blur(18px);
}
.auth-visual {
    min-height: 520px; background-size: cover; background-position: center;
    position: relative;
}
.auth-visual:after {
    content: ""; position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(2,6,23,0.25), rgba(2,6,23,0.82));
}
.auth-visual-copy {
    position: absolute; inset: auto 1.4rem 1.4rem 1.4rem; z-index: 1; color: #fff;
}
.auth-split .auth-card {
    width: 100%; box-shadow: none; border: 0; border-radius: 0; background: transparent;
}
.auth-split .auth-card:before { display: none; }

.map-stage { display: flex; flex-direction: column; align-items: center; width: 100%; direction: ltr; }
.map-frame {
    width: min(1000px, 100%);
    margin: 0 auto;
    padding: 1rem;
    border-radius: 28px;
    background: linear-gradient(180deg, rgba(15,23,42,0.85), rgba(2,6,23,0.92));
    border: 1px solid var(--line);
    box-shadow: 0 0 0 1px rgba(212,175,55,0.08), 0 30px 80px rgba(0,0,0,0.45);
    backdrop-filter: blur(18px);
    direction: ltr;
}
.map-scaler { width: 100%; overflow: hidden; margin: 0 auto; direction: ltr; }
.map-container {
    width: 1000px; height: 600px; position: relative;
    transform-origin: top left;
    direction: ltr;
    background-color: #07111f;
    background-image:
        linear-gradient(rgba(212,175,55,0.09) 1px, transparent 1px),
        linear-gradient(90deg, rgba(212,175,55,0.09) 1px, transparent 1px);
    background-size: 20px 20px;
    border: 1px solid rgba(212,175,55,0.28);
    border-radius: 18px;
    box-shadow: inset 0 0 80px rgba(0, 108, 53, 0.12);
}
.booth {
    position: absolute; display: flex; flex-direction: column; align-items: center; justify-content: center;
    border-radius: 12px; color: #fff; text-align: center; padding: 4px;
    box-shadow: 0 12px 24px rgba(0,0,0,0.4), 0 2px 0 rgba(0,0,0,0.35), inset 0 1px 0 rgba(255,255,255,0.28);
    backdrop-filter: blur(8px);
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
    overflow: hidden;
}
.booth:after {
    content: ""; position: absolute; inset: 0; pointer-events: none; border-radius: inherit;
    background: linear-gradient(165deg, rgba(255,255,255,0.28), transparent 42%);
}
.booth h3 { font-size: 1rem; font-weight: 900; }
.booth p { font-size: 0.75rem; opacity: 0.9; }
.booth-available {
    background: linear-gradient(160deg, rgba(16,185,129,0.92), rgba(0,108,53,0.92));
    border: 1px solid #34d399; cursor: pointer;
    box-shadow: 0 0 18px rgba(16,185,129,0.35), inset 0 1px 0 rgba(255,255,255,0.25);
}
.booth-available:hover { transform: translateY(-3px) scale(1.03); filter: brightness(1.08); }
.booth-reserved {
    background: linear-gradient(160deg, rgba(127,29,29,0.92), rgba(69,10,10,0.95));
    border: 1px solid #9f1239; cursor: not-allowed;
}
.booth-fixed {
    background: linear-gradient(160deg, #f3d98a, #b8860b);
    border: 1px solid #f59e0b; cursor: default; color: #1a140c;
}
.booth-selected { outline: 3px solid #fff; transform: scale(1.05); z-index: 5; }
.booth:active { cursor: grabbing; }
.draggable { cursor: grab; }

.booth-tip {
    position: fixed; z-index: 90; pointer-events: none;
    min-width: 210px; padding: 0.85rem 1rem; border-radius: 16px;
    background: rgba(2, 6, 23, 0.94); border: 1px solid var(--gold);
    color: #fff; font-size: 0.82rem; box-shadow: var(--shadow);
    display: none; backdrop-filter: blur(16px);
}
.booth-tip strong { display: block; color: var(--gold); margin-bottom: 0.35rem; }
.booth-tip span { display: block; color: #cbd5e1; }

.legend { display: flex; gap: 1rem; flex-wrap: wrap; font-size: 0.82rem; font-weight: 700; margin: 0.8rem 0 1rem; justify-content: center; }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-inline-end: 6px; }
.lg-a { background: #059669; box-shadow: 0 0 8px #10b981; }
.lg-r { background: #9f1239; }
.lg-f { background: #d4af37; }

.table { width: 100%; border-collapse: collapse; }
.table th, .table td { padding: 0.85rem; border-bottom: 1px solid var(--line); text-align: start; }
.badge { display: inline-flex; padding: 0.2rem 0.7rem; border-radius: 999px; font-size: 0.78rem; font-weight: 800; }
.badge-received { background: rgba(255,255,255,0.08); }
.badge-review { background: rgba(245, 158, 11, 0.16); color: var(--warn); }
.badge-payment { background: rgba(212,175,55,0.16); color: var(--gold); }
.badge-visas { background: rgba(80,140,255,0.16); color: #8bb4ff; }
.badge-approved { background: #d1fae5; color: #047857; }
.badge-rejected { background: #fee2e2; color: #b91c1c; }
.badge-pending { background: #fef3c7; color: #b45309; }

.admin-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1rem; }
.file-box {
    border: 1px dashed var(--line); border-radius: 16px; padding: 1.4rem; text-align: center; position: relative;
    background: rgba(2,6,23,0.35); min-height: 140px; display: flex; flex-direction: column; justify-content: center;
    transition: border-color 0.2s, background 0.2s;
}
.file-box:hover, .file-box.dragover { border-color: var(--gold); background: rgba(212,175,55,0.08); box-shadow: 0 0 0 3px rgba(212,175,55,0.12); }
.file-box i { color: var(--gold); font-size: 1.4rem; margin-bottom: 0.4rem; }
.file-box input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.file-name { color: var(--accent-glow); font-size: 0.82rem; font-weight: 700; margin-top: 0.4rem; min-height: 1.2em; }
.switch-row { display: flex; justify-content: space-between; gap: 1rem; align-items: center; padding: 1rem; border: 1px solid var(--line); border-radius: 16px; background: rgba(2,6,23,0.28); }
a.card { color: inherit; text-decoration: none; display: block; }
.req-item.valid, .valid { color: var(--accent-glow); }
.dynamic-card { position: relative; margin-top: 1rem; }
.remove-btn { position: absolute; top: 12px; inset-inline-start: 12px; }

.marquee { overflow: hidden; direction: ltr; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee-track { display: flex; gap: 1rem; width: max-content; animation: marquee 38s linear infinite; }
.marquee-track:hover { animation-play-state: paused; }
.ticker { min-width: 230px; text-align: center; }
.ticker img { width: 84px; height: 84px; object-fit: contain; background: #fff; border-radius: 16px; padding: 6px; }
@keyframes marquee {
    from { transform: translateX(-50%); }
    to { transform: translateX(0); }
}

.speaker-card { text-align: center; overflow: hidden; }
.speaker-photo {
    width: 120px; height: 120px; margin: 0 auto 1rem; border-radius: 50%;
    overflow: hidden; border: 2px solid var(--gold);
    box-shadow: 0 0 24px rgba(212,175,55,0.25);
}
.speaker-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.45s ease; }
.speaker-card:hover .speaker-photo img { transform: scale(1.12); }
.speaker-photo .initials {
    width: 100%; height: 100%; display: grid; place-items: center;
    background: linear-gradient(160deg, var(--emerald), #0f172a); font-weight: 900; font-size: 1.8rem; color: var(--gold);
}

.stepper-nav { display: flex; gap: 0.6rem; margin-bottom: 1.4rem; flex-wrap: wrap; }
.step-tab {
    flex: 1; min-width: 140px; padding: 0.75rem 1rem; border-radius: 14px;
    border: 1px solid var(--line); background: rgba(2,6,23,0.4); color: var(--muted);
    font-weight: 800; cursor: pointer; font-family: inherit;
}
.step-tab.active {
    color: #0f172a; background: linear-gradient(180deg, #f3d98a, var(--gold));
    box-shadow: 0 8px 22px rgba(212,175,55,0.25);
}
.step-tab.done { border-color: var(--accent); color: var(--accent-glow); }
.stepper-actions { display: flex; justify-content: space-between; gap: 0.8rem; margin-top: 1.2rem; }
.tier-card.featured, .tier-platinum { border-color: var(--gold); box-shadow: 0 0 40px rgba(212,175,55,0.18); }
.tier-gold { border-color: rgba(245,158,11,0.55); }
.tier-silver { border-color: rgba(148,163,184,0.45); }

.speaker-modal {
    position: fixed; inset: 0; z-index: 95; display: none; place-items: center;
    background: rgba(2,6,23,0.72); padding: 1.2rem; backdrop-filter: blur(10px);
}
.speaker-modal.open { display: grid; }
.speaker-modal-card { width: min(420px, 100%); text-align: center; }
.speaker-modal-card .speaker-photo { width: 160px; height: 160px; }

@media (prefers-reduced-motion: reduce) {
    .marquee-track, .booth, .btn, .portfolio-item img, .speaker-photo img { animation: none !important; transition: none !important; }
}

.modal {
    position: fixed; inset: 0; background: rgba(0,0,0,0.72); display: none; z-index: 80;
    overflow: auto; padding: 2rem 1rem;
}
.modal.open { display: block; }

.truncate {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 100%;
}
.card h3, .ticker h4, .table td, .speaker-card h3, .booth h3 {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 100%;
}

.auth-shell a:not(.btn):not(.social-links a) { color: inherit; text-decoration: none; }
.auth-links {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-top: 1.15rem;
    flex-wrap: wrap;
}
.auth-link,
a.auth-link,
.text-emerald-500 {
    color: #10b981;
    text-decoration: none;
    font-weight: 500;
}
.font-medium { font-weight: 500; }
.transition-colors { transition: color 0.2s ease, opacity 0.2s ease; }
.auth-link:hover,
.auth-link:focus-visible,
.hover\:text-emerald-400:hover {
    color: #34d399;
    text-decoration: none;
}
.auth-link-accent { color: var(--gold); }
.auth-link-accent:hover, .auth-link-accent:focus-visible { color: #f3d98a; }

.admin-page .card {
    padding: 1.55rem 1.7rem;
    box-shadow: 0 18px 40px rgba(0,0,0,0.28);
}
.admin-page .form { gap: 1.15rem; }
.admin-page .form label { display: grid; gap: 0.45rem; color: var(--muted); font-weight: 700; }
.admin-card-head {
    display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: 1rem;
}
.floorplan-card { padding: 1.2rem; }
.badge-pending { background: rgba(245, 158, 11, 0.16); color: var(--warn); }
.stat-num { display: block; font-size: 2rem; margin-top: 0.35rem; }
.soft-card {
    padding: 1.1rem 1.2rem;
    border-radius: 18px;
    background: #0f172a;
    border: 1px solid #1e293b;
}

body.admin-ui {
    background: #020617;
    color: #f1f5f9;
}
body.admin-ui #fx-canvas { opacity: 0.35; }
body.admin-ui .wrap { background: transparent; }
body.admin-ui .nav.admin-nav {
    background: rgba(2, 6, 23, 0.92);
    border-bottom: 1px solid #1e293b;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.45);
}
body.admin-ui .nav.admin-nav .nav-links a { color: #e2e8f0; opacity: 0.88; }
body.admin-ui .nav.admin-nav .nav-links a:hover,
body.admin-ui .nav.admin-nav .nav-links a.active { color: #d4af37; opacity: 1; }
body.admin-ui .brand-name { color: #f8fafc; }
body.admin-ui .section { color: #f1f5f9; }
body.admin-ui .muted { color: #94a3b8; }
body.admin-ui .admin-page .card,
body.admin-ui .card,
body.admin-ui .soft-card {
    background: #0f172a;
    color: #f1f5f9;
    border: 1px solid #1e293b;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
}
body.admin-ui .admin-page .form label { color: #94a3b8; }
body.admin-ui .table th,
body.admin-ui .table td { border-bottom: 1px solid #1e293b; color: #e2e8f0; }
body.admin-ui .badge-received,
body.admin-ui .badge-review,
body.admin-ui .badge-payment,
body.admin-ui .badge-visas,
body.admin-ui .badge-pending {
    background: #fef3c7;
    color: #b45309;
}
body.admin-ui .badge-approved {
    background: #d1fae5;
    color: #047857;
}
body.admin-ui .badge-rejected {
    background: #fee2e2;
    color: #b91c1c;
}
body.admin-ui .alert { color: #f8fafc; }
body.admin-ui input,
body.admin-ui textarea,
body.admin-ui select {
    background: #1e293b;
    color: #ffffff;
    border-color: #1e293b;
}

@media (max-width: 960px) {
    .split, .stats { grid-template-columns: 1fr; }
    .menu-btn { display: grid; place-items: center; }
    .nav-links {
        display: none; position: absolute; top: 72px; inset-inline: 0;
        background: rgba(2,6,23,0.96); flex-direction: column; padding: 1.2rem; gap: 0.9rem;
        max-height: calc(100vh - 72px); overflow-y: auto;
    }
    .nav-links.open { display: flex; }
    .nav-social { display: block; width: 100%; padding-top: 0.85rem; margin-top: 0.35rem; border-top: 1px solid var(--line); }
    .hero, .section, .nav, .footer { padding-left: 5%; padding-right: 5%; }
    .step-tab { min-width: 100%; }
    .auth-split { grid-template-columns: 1fr; }
    .auth-visual { min-height: 180px; }
}

@media (max-width: 768px) {
    html, body, .wrap { overflow-x: hidden; max-width: 100%; }
    .hero, .section { padding: 2.6rem 4%; }
    .hero {
        min-height: auto;
        padding-top: 3.6rem;
        padding-bottom: 2.2rem;
    }
    .hero-inner { max-width: 100%; }
    .hero h1,
    .section-title {
        font-size: clamp(1.35rem, 6.2vw, 2.05rem);
        line-height: 1.35;
        overflow-wrap: break-word;
        word-break: normal;
        max-width: 100%;
    }
    h2 {
        font-size: clamp(1.2rem, 5.4vw, 1.7rem);
        line-height: 1.35;
    }
    h3, .card h3 {
        font-size: clamp(1.05rem, 4.4vw, 1.28rem);
        line-height: 1.4;
    }
    .lead, .muted, p, .card p, .hero .lead {
        line-height: 1.8;
        font-size: clamp(0.92rem, 3.5vw, 1.02rem);
    }
    html[dir="rtl"] .hero h1,
    html[dir="rtl"] .section-title { line-height: 1.4; }
    html[dir="rtl"] .lead,
    html[dir="rtl"] .muted,
    html[dir="rtl"] p { line-height: 1.8; }
    .card, .split.card, .active-event-card, .photo-card { padding: 1rem; }
    .active-event-card { min-height: 180px; }
    .hero-actions {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        width: 100%;
        gap: 0.75rem;
    }
    .hero-actions .btn {
        width: 100%;
        justify-content: center;
        padding: 0.85rem 1rem;
    }
    .brand-name { font-size: clamp(0.72rem, 3vw, 0.82rem); letter-spacing: 0.04em; }
    .stats { padding: 1rem; gap: 0.7rem; }
    .stats strong { font-size: 1.55rem; }
    .footer { padding: 2rem 4%; }
    .nav { padding: 0.7rem 4%; }
    .kicker-pill { letter-spacing: 0.08em; font-size: 0.66rem; }
}
