/* =============================================================
   pages.css — Page-specific styles extracted from inline <style>
   ============================================================= */

/* ═══════════════════════════════════════════════════════════════
   INDEX.HTML — Home page
   ═══════════════════════════════════════════════════════════════ */

/* Hero */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 100px 0 60px;
    position: relative;
    overflow: hidden;
}
.hero-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    opacity: .25;
    pointer-events: none;
}
.hero-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 20% 50%, rgba(201,168,76,0.06) 0%, transparent 60%),
        radial-gradient(ellipse at 80% 20%, rgba(232,213,163,0.05) 0%, transparent 60%);
    pointer-events: none;
    z-index: 1;
}
.hero-section .container { position: relative; z-index: 2; }
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(201,168,76,0.10);
    border: 1px solid var(--gold);
    color: var(--gold);
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}
.hero-title {
    font-size: clamp(2.2rem, 5vw, 3.8rem);
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}
.text-gradient {
    background: linear-gradient(135deg, var(--gold), var(--gold-light));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.hero-features { display: flex; flex-direction: column; gap: 10px; margin-bottom: 2rem; }
.feature-item { color: var(--text-body); font-size: 1rem; }
.hero-buttons { display: flex; flex-wrap: wrap; gap: 1rem; }

/* Trading Widget */
.trading-widget {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow-warm);
}
.widget-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.2rem;
    padding-bottom: 0.8rem;
    border-bottom: 1px solid var(--border-light);
}
.live-dot {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    color: #10b981;
}
.live-dot::before {
    content: '';
    width: 8px;
    height: 8px;
    background: #10b981;
    border-radius: 50%;
    animation: blink 1.5s infinite;
}
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:0.3} }
.price-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 1.2rem; }
.price-card {
    background: var(--bg-light);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
    padding: 12px;
    text-align: center;
}
.pair-name { font-size: 0.8rem; color: var(--text-muted); margin-bottom: 4px; }
.pair-price { font-size: 1.15rem; font-weight: 700; font-family: monospace; color: var(--text-dark); }
.pair-price.up, .pair-change.up { color: #10b981; }
.pair-price.down, .pair-change.down { color: #ef4444; }
.pair-change { font-size: 0.75rem; margin-top: 2px; }

/* Stats */
.stats-section {
    padding: 60px 0;
    background: var(--bg-warm);
    border-top: 1px solid var(--border-light);
    border-bottom: 1px solid var(--border-light);
}
.stat-card { text-align: center; padding: 2rem; }
.stat-icon {
    width: 70px; height: 70px;
    margin: 0 auto 1rem;
    background: linear-gradient(135deg, var(--gold), var(--gold-light));
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.8rem; color: var(--primary-dark);
}

/* Sections */
.section-header { text-align: center; margin-bottom: 3rem; }
.section-tag {
    display: inline-block;
    background: rgba(201,168,76,0.10);
    color: var(--gold);
    padding: 4px 14px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    border: 1px solid rgba(201,168,76,0.22);
}
.service-features { list-style: none; padding: 0; margin: 1rem 0 0; }
.service-features li { padding: 6px 0; color: var(--text-body); font-size: 0.95rem; }
.service-features li i { color: var(--gold); }

/* Broker Cards */
@keyframes brokerFadeIn {
    from { opacity: 0; transform: translateY(18px); }
    to   { opacity: 1; transform: translateY(0); }
}
.broker-card {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    text-align: center;
    transition: var(--transition-normal);
    height: 100%;
    box-shadow: var(--shadow-warm);
    opacity: 0;
    animation: brokerFadeIn 0.4s ease forwards;
}
.broker-card:hover { transform: translateY(-6px); border-color: rgba(201,168,76,0.3); box-shadow: 0 12px 40px rgba(201,168,76,0.1); }
.broker-subtitle { font-size: 0.78rem; color: var(--text-muted); margin: -2px 0 4px; }
.broker-logo-wrap { height: 90px; display: flex; align-items: center; justify-content: center; margin-bottom: 1rem; padding: 0 1rem; }
.broker-logo-wrap img { max-height: 72px; max-width: 180px; width: auto; object-fit: contain; border-radius: 12px; padding: 6px 12px; filter: drop-shadow(0 0 10px rgba(180,200,255,0.6)) drop-shadow(0 0 24px rgba(180,200,255,0.25)); transition: filter 0.3s; }
.broker-stars { color: #ffc107; font-size: 0.85rem; margin-bottom: 0.75rem; }
.broker-info-row { display: flex; justify-content: space-between; padding: 4px 0; font-size: 0.85rem; color: var(--text-muted); }
.broker-info-row span:last-child { color: var(--gold); font-weight: 600; }
.referral-code { font-size: 0.78rem; color: var(--text-muted); display: flex; align-items: center; justify-content: center; gap: 6px; }
.copy-code { background: rgba(201,168,76,0.08); border: 1px dashed rgba(201,168,76,0.3); padding: 2px 10px; border-radius: 6px; font-family: monospace; font-size: 0.82rem; color: var(--gold); cursor: pointer; transition: all 0.3s; letter-spacing: 1px; }
.copy-code:hover { background: rgba(201,168,76,0.15); border-color: var(--gold); }
.copy-code.copied { background: rgba(40,167,69,0.12); border-color: #28a745; color: #28a745; }
.copy-code.copied::after { content: ' ✓ تم النسخ'; font-family: inherit; }

/* Signup */
.signup-section {
    padding: 80px 0;
    background: var(--bg-warm);
    border-top: 1px solid var(--border-light);
    border-bottom: 1px solid var(--border-light);
}
.signup-form-card { background: var(--bg-card); border: 1px solid var(--border-light); border-radius: var(--radius-xl); padding: 2.5rem; box-shadow: var(--shadow-warm); }
.form-control-modern {
    background: var(--bg-light);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    color: var(--text-dark);
    padding: 0.8rem 1.2rem;
    font-size: 1rem;
    transition: var(--transition-fast);
    width: 100%;
}
.form-control-modern:focus { background: #fff; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(201,168,76,0.1); color: var(--text-dark); outline: none; }
.form-control-modern::placeholder { color: var(--text-muted); }

/* Testimonials */
.testimonial-card { background: var(--bg-card); border: 1px solid var(--border-light); border-radius: var(--radius-lg); padding: 2rem; height: 100%; position: relative; box-shadow: var(--shadow-warm); }
.testimonial-card::before { content: "\201C"; position: absolute; top: 0.5rem; right: 1.5rem; font-size: 5rem; color: var(--gold); opacity: 0.15; font-family: serif; line-height: 1; }
.testimonial-text { color: var(--text-body); font-size: 0.95rem; line-height: 1.8; margin-bottom: 1.5rem; }
.testimonial-author { display: flex; align-items: center; gap: 12px; }
.author-avatar { width: 48px; height: 48px; background: linear-gradient(135deg, var(--gold), var(--gold-light)); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; color: #fff; font-size: 1.2rem; }
.author-name { font-weight: 700; color: var(--text-dark); font-size: 0.95rem; }
.author-title { font-size: 0.8rem; color: var(--text-muted); }
.stars-small { color: #ffc107; font-size: 0.8rem; margin-top: 2px; }

/* CTA and Risk */
.cta-section { padding: 80px 0; }
.cta-card { background: var(--bg-card); border: 1px solid var(--border-light); border-radius: var(--radius-xl); padding: 3rem; text-align: center; box-shadow: var(--shadow-warm); }
.risk-section { background: rgba(255,193,7,0.05); border-top: 2px solid rgba(255,193,7,0.3); padding: 28px 0; }
.risk-text { font-size: 0.82rem; color: var(--text-muted); line-height: 1.6; }
.risk-text strong { color: #ffc107; }

/* Tool cards (home page) */
.tool-card { background: var(--bg-card); border: 1px solid var(--border-light); border-radius: var(--radius-lg); padding: 2rem; text-align: center; transition: var(--transition-normal); height: 100%; display: flex; flex-direction: column; gap: 1rem; box-shadow: var(--shadow-warm); }
.tool-card:hover { transform: translateY(-5px); border-color: rgba(201,168,76,0.3); box-shadow: 0 12px 40px rgba(201,168,76,0.1); }
.tool-icon { width: 70px; height: 70px; margin: 0 auto; background: linear-gradient(135deg, var(--gold), var(--gold-light)); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.8rem; color: #fff; }
.tool-card h4 { margin-bottom: 0; }
.tool-card p { color: var(--text-body); font-size: 0.9rem; flex-grow: 1; margin: 0; }

@media (max-width: 768px) {
    .hero-buttons .btn { width: 100%; justify-content: center; }
    .hero-section { padding: 80px 0 40px; }
    .trading-widget { margin-top: 2rem; }
    .signup-form-card { padding: 1.5rem; }
    .cta-card { padding: 2rem 1.5rem; }
}


/* ═══════════════════════════════════════════════════════════════
   TOOLS.HTML — Trading tools page
   ═══════════════════════════════════════════════════════════════ */

/* Page structure */
.tools-hero {
    padding: 110px 0 0;
    background: linear-gradient(135deg, rgba(201,168,76,.03), rgba(232,213,163,.03));
    border-bottom: 1px solid var(--border-color);
}

/* Tab bar */
.tool-tabs {
    background: var(--glass-bg);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 70px;
    z-index: 100;
    backdrop-filter: blur(20px);
}
.tool-tabs .nav { gap: 0; }
.tool-tab-btn {
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    padding: 18px 28px;
    color: var(--text-muted);
    font-weight: 600;
    font-size: .9rem;
    font-family: 'El Messiri', sans-serif;
    cursor: pointer;
    transition: all .2s;
    white-space: nowrap;
}
.tool-tab-btn i { margin-left: .4rem; }
.tool-tab-btn:hover { color: var(--text-dark, #1a1a2e); }
.tool-tab-btn.active { color: var(--gold); border-bottom-color: var(--gold); }

/* Tab panes */
.tool-pane { display: none; padding: 2.5rem 0 4rem; }
.tool-pane.active { display: block; }

/* Shared card (tools page variant) */
.tools-hero ~ * .tool-card,
.tool-pane .tool-card {
    background: var(--glass-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 2rem;
    margin-bottom: 1.5rem;
    transition: border-color .2s;
    text-align: initial;
    display: block;
    height: auto;
    gap: 0;
    box-shadow: none;
}
.tool-pane .tool-card:hover { border-color: rgba(201,168,76,.25); transform: none; box-shadow: none; }
.tool-card-title {
    color: var(--gold);
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: .5rem;
    padding-bottom: .75rem;
    border-bottom: 1px solid var(--border-color);
}

/* Form controls */
.field-label { color: var(--text-muted); font-size: .82rem; margin-bottom: .4rem; display: block; }
.field-help { color: var(--text-muted, #7a7a8a); font-size: .75rem; margin-top: .25rem; }
.tc {
    width: 100%;
    background: #fff;
    border: 1px solid var(--border-light, rgba(201,168,76,.12));
    border-radius: var(--radius-sm);
    padding: .7rem .9rem;
    color: var(--text-dark, #1a1a2e);
    font-size: .9rem;
    font-family: 'IBM Plex Sans Arabic', sans-serif;
    outline: none;
    transition: border-color .2s, box-shadow .2s;
}
.tc:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(201,168,76,.1); background: #fff; }
.tc option { background: #fff; }

/* Dark mode form controls */
[data-theme="dark"] .tc {
    background: var(--glass-bg, #12122a);
    border-color: rgba(212,182,90,0.15);
    color: var(--text-body, #c8c8d4);
}
[data-theme="dark"] .tc:focus {
    background: var(--glass-bg, #16162a) !important;
    border-color: var(--gold);
    color: var(--text-body, #e8e8f0) !important;
    box-shadow: 0 0 0 3px rgba(201,168,76,.15);
}
[data-theme="dark"] .tc option {
    background: #1a1a2e;
    color: #e8e8f0;
}
[data-theme="dark"] .tc::placeholder {
    color: rgba(200,200,212,0.45);
}
[data-theme="dark"] .form-control {
    background: var(--glass-bg, #12122a);
    border-color: rgba(212,182,90,0.15);
    color: var(--text-body, #c8c8d4);
}
[data-theme="dark"] .form-control:focus {
    background: var(--glass-bg, #16162a) !important;
    border-color: var(--gold);
    color: var(--text-body, #e8e8f0);
}
[data-theme="dark"] .form-control::placeholder {
    color: rgba(200,200,212,0.45);
}

/* Buttons */
.btn-calc {
    padding: .8rem 2rem;
    background: linear-gradient(135deg, var(--gold) 0%, #e8d5a3 100%);
    border: none;
    border-radius: var(--radius-sm);
    color: var(--primary-dark);
    font-weight: 700;
    font-size: .95rem;
    font-family: 'El Messiri', sans-serif;
    cursor: pointer;
    transition: transform .2s, box-shadow .2s;
}
.btn-calc:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(201,168,76,.35); }
.btn-calc:active { transform: none; }

/* Results box */
.results-box {
    background: var(--bg-warm, #f5f2ed);
    border: 1px solid var(--border-light, rgba(201,168,76,.12));
    border-radius: var(--radius-md);
    padding: 1.5rem;
    min-height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.results-placeholder { text-align: center; color: var(--text-muted); }
.results-placeholder i { font-size: 2rem; margin-bottom: .5rem; opacity: .5; display: block; }

.result-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 1rem; width: 100%; }
.result-tile {
    background: rgba(201,168,76,.05);
    border: 1px solid rgba(201,168,76,.15);
    border-radius: var(--radius-md);
    padding: 1rem;
    text-align: center;
}
.result-tile.primary { border-color: rgba(201,168,76,.4); background: rgba(201,168,76,.1); }
.result-tile .val {
    font-family: 'DM Mono', monospace;
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--gold);
    line-height: 1.2;
}
.result-tile.primary .val { font-size: 1.6rem; }
.result-tile .lbl { font-size: .75rem; color: var(--text-muted); margin-top: .3rem; }

/* Alert */
.tool-alert { padding: .7rem 1rem; border-radius: var(--radius-sm); font-size: .87rem; margin-bottom: 1rem; display: none; }
.tool-alert.e { background: rgba(220,53,69,.06); border: 1px solid rgba(220,53,69,.2); color: #c0392b; display: block; }
.tool-alert.s { background: rgba(201,168,76,.08); border: 1px solid rgba(201,168,76,.3); color: var(--gold); display: block; }

/* Risk gauge */
.risk-gauge-wrap { text-align: center; padding: 1rem 0; }
.risk-bar-track { height: 14px; border-radius: 7px; background: rgba(0,0,0,.06); overflow: hidden; margin: 1rem 0; }
.risk-bar-fill { height: 100%; border-radius: 7px; transition: width .6s ease, background .4s; width: 0%; }
.risk-level-badge {
    display: inline-block;
    padding: .35rem 1.2rem;
    border-radius: 20px;
    font-weight: 700;
    font-size: .85rem;
    margin-bottom: .75rem;
}
.zones-legend { display: grid; grid-template-columns: 1fr 1fr; gap: .4rem; margin-top: .75rem; }
.zone-item { display: flex; align-items: center; gap: .35rem; font-size: .77rem; color: var(--text-muted); }
.zone-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }

/* Risk rules list */
.rule-row {
    display: flex;
    align-items: flex-start;
    gap: .75rem;
    padding: .75rem 0;
    border-bottom: 1px solid var(--border-color);
}
.rule-row:last-child { border-bottom: none; }
.rule-num { width: 26px; height: 26px; border-radius: 50%; background: rgba(201,168,76,.1); border: 1px solid rgba(201,168,76,.3); display: flex; align-items: center; justify-content: center; font-size: .75rem; font-weight: 700; color: var(--gold); flex-shrink: 0; }
.rule-text h6 { color: var(--text-dark, #1a1a2e); font-size: .88rem; margin-bottom: .2rem; }
.rule-text p { color: var(--text-muted); font-size: .8rem; margin: 0; line-height: 1.5; }


/* ═══════════════════════════════════════════════════════════════
   CALENDAR.HTML — Economic calendar
   ═══════════════════════════════════════════════════════════════ */

.cal-hero {
    padding: 120px 0 30px;
    text-align: center;
}
.cal-hero h1 {
    font-family: 'El Messiri', sans-serif;
    font-size: clamp(1.6rem, 4vw, 2.4rem);
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: .5rem;
}
.cal-hero h1 i { color: var(--gold); margin-left: .5rem; }
.cal-hero p {
    color: var(--text-muted);
    font-size: 0.95rem;
    max-width: 520px;
    margin: 0 auto;
}
.cal-widget-wrap {
    max-width: 1200px;
    margin: 0 auto 60px;
    padding: 0 15px;
}
.cal-widget-frame {
    background: var(--bg-card, #fff);
    border: 1px solid var(--border-light, #e5e5e5);
    border-radius: var(--radius-lg, 16px);
    box-shadow: var(--shadow-warm, 0 4px 24px rgba(0,0,0,.06));
    overflow: hidden;
    height: 75vh;
    min-height: 500px;
}
#tv-calendar-container { height: 100%; }
.cal-widget-frame .tradingview-widget-container { height: 100%; }
.cal-widget-frame .tradingview-widget-container__widget { height: calc(100% - 32px); }
.tradingview-widget-copyright { padding: 4px 12px; font-size: 0.75rem; }

@media (max-width: 768px) {
    .cal-widget-frame { height: 70vh; min-height: 400px; }
    .cal-hero { padding: 100px 0 20px; }
}


/* ═══════════════════════════════════════════════════════════════
   DASHBOARD.HTML — User profile
   ═══════════════════════════════════════════════════════════════ */

.profile-page { padding-top: 100px; min-height: 80vh; }
.profile-avatar {
    width: 88px; height: 88px; border-radius: 50%;
    background: linear-gradient(135deg, rgba(212,182,90,0.2), rgba(212,182,90,0.05));
    border: 2px solid rgba(212,182,90,0.35);
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 16px; font-size: 2.4rem; color: var(--gold);
}
.profile-card { border: 1px solid rgba(212,182,90,0.18); border-radius: 16px; }
.info-row {
    display: flex; align-items: center; gap: 12px;
    padding: 12px 0; border-bottom: 1px solid rgba(201,168,76,0.08);
}
.info-row:last-child { border-bottom: none; }
.info-icon {
    width: 36px; height: 36px; border-radius: 10px; flex-shrink: 0;
    background: rgba(212,182,90,0.1); display: flex; align-items: center;
    justify-content: center; color: var(--gold); font-size: 0.85rem;
}
.info-label { font-size: 0.75rem; color: var(--text-muted); margin-bottom: 2px; }
.info-value { font-size: 0.95rem; color: var(--text-body); font-weight: 500; }
.section-divider {
    display: flex; align-items: center; gap: 12px;
    font-size: 0.78rem; color: var(--text-muted); margin: 1.5rem 0 1rem;
    text-transform: uppercase; letter-spacing: 0.06em;
}
.section-divider::before, .section-divider::after {
    content: ''; flex: 1; height: 1px; background: rgba(201,168,76,0.12);
}
.pass-strength { height: 4px; border-radius: 2px; transition: all 0.3s; margin-top: 6px; }


/* ═══════════════════════════════════════════════════════════════
   LEGAL.HTML — Privacy policy & terms
   ═══════════════════════════════════════════════════════════════ */

.legal-hero {
    padding: 120px 0 60px;
    background: linear-gradient(135deg, rgba(201,168,76,0.04), rgba(232,213,163,0.04));
    border-bottom: 1px solid var(--border-color);
}
.legal-hero h1 { font-weight: 900; font-size: 2.5rem; }
.legal-hero p { color: var(--text-body, #4a4a5a); max-width: 600px; margin: 1rem auto 0; font-size: 1rem; }

/* Tab navigation */
.legal-tabs {
    background: var(--glass-bg);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 70px;
    z-index: 100;
}
.legal-tabs .nav-link {
    color: var(--text-muted);
    font-weight: 600;
    font-size: 0.95rem;
    padding: 18px 30px;
    border-radius: 0;
    border-bottom: 3px solid transparent;
    transition: all 0.25s ease;
}
.legal-tabs .nav-link:hover { color: var(--gold); }
.legal-tabs .nav-link.active {
    color: var(--gold);
    background: transparent;
    border-bottom-color: var(--gold);
}

/* Content */
.legal-section { padding: 60px 0 80px; }
.tab-content { min-height: 60vh; }

.legal-card {
    background: var(--glass-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    margin-bottom: 1.5rem;
    transition: border-color 0.2s;
}
.legal-card:hover { border-color: rgba(201,168,76,0.3); }
.legal-card h3 {
    color: var(--gold);
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.legal-card p, .legal-card li {
    color: var(--text-body, #4a4a5a);
    line-height: 1.9;
    font-size: 0.95rem;
}
.legal-card ul { padding-right: 1.5rem; }
.legal-card a { color: var(--gold); text-decoration: none; }
.legal-card a:hover { text-decoration: underline; }
.legal-card table { width: 100%; border-collapse: collapse; margin-top: 0.75rem; }
.legal-card table th,
.legal-card table td {
    border: 1px solid var(--border-color);
    padding: 10px 14px;
    font-size: 0.9rem;
    color: var(--text-body, #4a4a5a);
}
.legal-card table th {
    background: rgba(201,168,76,0.07);
    color: var(--gold);
    font-weight: 600;
}
.last-updated {
    background: rgba(201,168,76,0.06);
    border: 1px solid rgba(201,168,76,0.25);
    border-radius: var(--radius-md);
    padding: 10px 20px;
    margin-bottom: 2rem;
    font-size: 0.88rem;
    color: var(--gold);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}
.risk-warning {
    background: rgba(255, 100, 100, 0.06);
    border: 1px solid rgba(255, 100, 100, 0.3);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}
.risk-warning p, .risk-warning li {
    color: #c0392b;
    font-size: 0.92rem;
    line-height: 1.8;
}
.risk-warning strong { color: #a93226; }


/* ═══════════════════════════════════════════════════════════════
   404.HTML — Error page
   ═══════════════════════════════════════════════════════════════ */

.error-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 80px);
    padding: 2rem 1rem;
}
.error-container {
    text-align: center;
    max-width: 600px;
    padding: 2rem;
}
.error-code {
    font-size: clamp(4rem, 15vw, 8rem);
    font-weight: 900;
    color: var(--gold, #c9a84c);
    margin: 0;
    text-shadow: none;
}
.error-title {
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    margin: 1rem 0;
    color: #1a1a2e;
}
.error-message {
    font-size: 1.1rem;
    margin: 1.5rem 0;
    color: #7a7a8a;
    line-height: 1.6;
}
.error-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 2rem;
}
.error-wrapper .btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}
.error-wrapper .btn-primary {
    background: #c9a84c;
    color: #fff;
}
.error-wrapper .btn-secondary {
    background: transparent;
    border: 2px solid #c9a84c;
    color: var(--gold, #c9a84c);
}
.error-wrapper .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(201, 168, 76, 0.15);
}
.helpful-links {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(201, 168, 76, 0.2);
}
.helpful-links h3 {
    color: var(--gold, #c9a84c);
    margin-bottom: 1rem;
}
.links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}
.link-item {
    background: #fff;
    border: 1px solid rgba(201, 168, 76, 0.2);
    border-radius: 8px;
    padding: 1rem;
    text-decoration: none;
    color: #1a1a2e;
    transition: all 0.3s ease;
}
.link-item:hover {
    border-color: var(--gold, #c9a84c);
    background: rgba(201, 168, 76, 0.06);
    color: #1a1a2e;
}
.link-item i {
    color: var(--gold, #c9a84c);
    margin-left: 0.5rem;
}

@media (max-width: 768px) {
    .error-actions { flex-direction: column; align-items: center; }
    .error-wrapper .btn { width: 100%; max-width: 250px; }
    .links-grid { grid-template-columns: 1fr; }
}


/* ═══════════════════════════════════════════════════════════════
   LOGIN.HTML — Authentication shared styles
   ═══════════════════════════════════════════════════════════════ */

.auth-card{background:var(--bg-card,#fff);border:1px solid var(--border-color);border-radius:var(--radius-lg);box-shadow:0 8px 40px rgba(26,26,46,0.08);width:100%;max-width:500px;overflow:hidden;}
.auth-brand{text-align:center;padding:2.5rem 2.5rem 1.5rem;}
.auth-brand img{max-height:64px;width:auto;border-radius:12px;border:2px solid var(--border-color);margin-bottom:.75rem;object-fit:contain;}
.auth-brand h1{color:var(--text-dark,#1a1a2e);font-size:1.5rem;font-weight:900;margin-bottom:.25rem;}
.auth-brand p{color:var(--text-muted);font-size:.85rem;}
.auth-tabs{display:flex;border-bottom:1px solid var(--border-color);margin:0 2.5rem;}
.auth-tab-btn{flex:1;background:none;border:none;border-bottom:2px solid transparent;padding:.85rem;color:var(--text-muted);font-weight:600;font-size:.95rem;font-family:'IBM Plex Sans Arabic',sans-serif;cursor:pointer;transition:all .2s;}
.auth-tab-btn:hover{color:var(--text-dark,#1a1a2e);}
.auth-tab-btn.active{color:var(--gold);border-bottom-color:var(--gold);}
.auth-pane{display:none;padding:2rem 2.5rem 2.5rem;}
.auth-pane.active{display:block;}
.auth-card .form-group{margin-bottom:1.1rem;}
.auth-card .form-label{display:block;color:var(--text-muted);font-size:.83rem;margin-bottom:.4rem;}
.auth-card .form-control{width:100%;background:var(--bg-light,#faf8f5);border:1px solid var(--border-color);border-radius:var(--radius-sm);padding:.75rem 1rem;color:var(--text-dark,#1a1a2e);font-size:.9rem;font-family:'IBM Plex Sans Arabic',sans-serif;transition:border-color .2s,box-shadow .2s;outline:none;}
.auth-card .form-control:focus{border-color:var(--gold);box-shadow:0 0 0 3px rgba(201,168,76,.12);background:#fff;color:var(--text-dark,#1a1a2e);}
.auth-card .form-control::placeholder{color:rgba(122,122,138,0.5);}
.auth-card .form-control.is-invalid{border-color:#ff6b6b;}
[data-theme="dark"] .auth-card .form-control{background:var(--glass-bg, #12122a);border-color:rgba(212,182,90,0.15);color:var(--text-body, #c8c8d4);}
[data-theme="dark"] .auth-card .form-control:focus{background:var(--glass-bg, #16162a) !important;border-color:var(--gold);color:var(--text-body, #e8e8f0) !important;box-shadow:0 0 0 3px rgba(201,168,76,.12);}
[data-theme="dark"] .auth-card .form-control::placeholder{color:rgba(200,200,212,0.45);}
.auth-card .input-group{position:relative;}
.auth-card .input-group .form-control{padding-left:2.8rem;}
.toggle-pass{position:absolute;left:.75rem;top:50%;transform:translateY(-50%);background:none;border:none;color:var(--text-muted);cursor:pointer;padding:0;line-height:1;transition:color .2s;}
.toggle-pass:hover{color:var(--gold);}
.form-row{display:grid;grid-template-columns:1fr 1fr;gap:.75rem;}
@media(max-width:400px){.form-row{grid-template-columns:1fr;}}
.btn-auth{width:100%;padding:.85rem;background:var(--gold);border:none;border-radius:var(--radius-sm);color:#fff;font-weight:700;font-size:1rem;font-family:'IBM Plex Sans Arabic',sans-serif;cursor:pointer;transition:transform .2s,box-shadow .2s;margin-top:.5rem;}
.btn-auth:hover{transform:translateY(-2px);box-shadow:0 8px 24px rgba(201,168,76,0.2);}
.btn-auth:disabled{opacity:.7;cursor:not-allowed;transform:none;}
.auth-alert{padding:.75rem 1rem;border-radius:var(--radius-sm);font-size:.88rem;margin-bottom:1rem;display:none;}
.auth-alert.error{background:rgba(220,53,69,.06);border:1px solid rgba(220,53,69,.2);color:#c0392b;display:block;}
.auth-alert.success{background:rgba(201,168,76,0.06);border:1px solid rgba(201,168,76,.3);color:var(--gold);display:block;}
.auth-link{color:var(--gold);text-decoration:none;font-size:.85rem;}
.auth-link:hover{opacity:.8;text-decoration:underline;color:var(--gold);}
.auth-footer-text{text-align:center;margin-top:1.5rem;color:var(--text-muted);font-size:.88rem;}
.divider{display:flex;align-items:center;gap:.75rem;margin:1.25rem 0;}
.divider::before,.divider::after{content:'';flex:1;height:1px;background:var(--border-color);}
.divider span{color:var(--text-muted);font-size:.8rem;white-space:nowrap;}
.terms-note{color:var(--text-muted);font-size:.8rem;text-align:center;margin-top:1rem;line-height:1.6;}
.terms-note a{color:var(--gold);text-decoration:none;}
.back-home{text-align:center;padding:0 2.5rem 1.5rem;}
.back-home a{color:var(--text-muted);text-decoration:none;font-size:.85rem;}
.back-home a:hover{color:var(--gold);}
.pw-label-row{display:flex;justify-content:space-between;align-items:center;margin-bottom:.4rem;}
.pw-label-row .form-label{margin-bottom:0;}


/* ═══════════════════════════════════════════════════════════════
   FORGOT-PASSWORD.HTML — Password recovery extras
   ═══════════════════════════════════════════════════════════════ */

.auth-header{text-align:center;padding:2.5rem 2.5rem 1rem;}
.auth-header .icon{width:64px;height:64px;border-radius:16px;background:rgba(201,168,76,0.06);border:1px solid var(--border-color);display:flex;align-items:center;justify-content:center;font-size:1.75rem;color:var(--gold);margin:0 auto .75rem;}
.auth-header h1{color:var(--text-dark,#1a1a2e);font-size:1.4rem;font-weight:900;margin-bottom:.35rem;}
.auth-header p{color:var(--text-muted);font-size:.88rem;line-height:1.6;}

/* Steps indicator */
.steps{display:flex;align-items:center;justify-content:center;gap:0;padding:.75rem 2.5rem;border-bottom:1px solid var(--border-color);}
.step-dot{width:32px;height:32px;border-radius:50%;display:flex;align-items:center;justify-content:center;font-size:.8rem;font-weight:700;flex-shrink:0;}
.step-dot.active{background:var(--gold);color:#fff;}
.step-dot.done{background:rgba(201,168,76,0.1);color:var(--gold);border:1px solid var(--gold);}
.step-dot.pending{background:rgba(255,255,255,.05);color:var(--text-muted);border:1px solid var(--border-color);}
.step-line{flex:1;height:2px;background:var(--border-color);}
.step-line.active{background:var(--gold);}

/* Panes */
.wizard-pane{display:none;padding:2rem 2.5rem 2.5rem;}
.wizard-pane.active{display:block;}

/* Success panel */
.success-panel{text-align:center;padding:2rem 2.5rem 2.5rem;}
.success-icon{width:72px;height:72px;border-radius:50%;background:rgba(201,168,76,0.06);border:2px solid var(--gold);display:flex;align-items:center;justify-content:center;font-size:2rem;color:var(--gold);margin:0 auto 1.25rem;}
.success-panel h2{color:var(--text-dark,#1a1a2e);font-size:1.3rem;margin-bottom:.5rem;}
.success-panel p{color:var(--text-muted);font-size:.9rem;line-height:1.7;}


/* ═══════════════════════════════════════════════════════════════
   CONTACT.HTML — Contact page
   ═══════════════════════════════════════════════════════════════ */

.contact-hero {
    padding: 120px 0 40px;
    background: linear-gradient(135deg, rgba(201,168,76,0.04), rgba(232,213,163,0.04));
    border-bottom: 1px solid var(--border-color, rgba(201,168,76,0.12));
}
.contact-hero h1 {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 900;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}
.contact-hero-desc {
    color: var(--text-body);
    font-size: 1rem;
    max-width: 560px;
    margin: 0 auto;
}

.contact-card {
    background: var(--glass-bg, #fff);
    border: 1px solid var(--border-color, rgba(201,168,76,0.12));
    border-radius: var(--radius-lg, 20px);
    padding: 2rem;
    box-shadow: var(--shadow-warm, 0 4px 24px rgba(0,0,0,.06));
}
.contact-card-title {
    color: var(--gold);
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border-color, rgba(201,168,76,0.12));
}

.contact-info-card {
    background: var(--glass-bg, #fff);
    border: 1px solid var(--border-color, rgba(201,168,76,0.12));
    border-radius: var(--radius-lg, 20px);
    padding: 2rem;
    box-shadow: var(--shadow-warm, 0 4px 24px rgba(0,0,0,.06));
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}
.info-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}
.info-item-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(201,168,76,0.08);
    border: 1px solid rgba(201,168,76,0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: var(--gold);
    flex-shrink: 0;
}
.info-item strong {
    display: block;
    color: var(--text-dark);
    font-size: 0.9rem;
    margin-bottom: 2px;
}
.info-item a,
.info-item span {
    color: var(--text-body);
    font-size: 0.88rem;
    text-decoration: none;
}
.info-item a:hover {
    color: var(--gold);
}

@media (max-width: 768px) {
    .contact-hero { padding: 100px 0 30px; }
    .contact-card,
    .contact-info-card { padding: 1.5rem; }
}


/* ═══════════════════════════════════════════════════════════════
   TICKETS.HTML — Withdrawal & Deposit Requests
   ═══════════════════════════════════════════════════════════════ */

.tickets-hero {
    padding: 120px 0 40px;
    background: linear-gradient(135deg, rgba(201,168,76,0.04), rgba(232,213,163,0.04));
    border-bottom: 1px solid var(--border-color, rgba(201,168,76,0.12));
}
.tickets-hero h1 {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 900;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}
.tickets-hero-desc {
    color: var(--text-body);
    font-size: 1rem;
    max-width: 560px;
    margin: 0 auto;
}

.tickets-card {
    margin-top: -20px;
    position: relative;
    z-index: 2;
}

/* Type selector tabs */
.tkt-type-selector {
    display: flex;
    gap: 12px;
    justify-content: center;
}
.tkt-type-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 20px;
    border-radius: var(--radius-md, 14px);
    border: 2px solid var(--border-color, rgba(201,168,76,0.15));
    background: var(--glass-bg, #fff);
    color: var(--text-body);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
}
.tkt-type-btn:hover {
    border-color: var(--gold);
    background: rgba(201,168,76,0.04);
}
.tkt-type-btn.active {
    border-color: var(--gold);
    background: rgba(201,168,76,0.08);
    color: var(--gold);
    box-shadow: 0 2px 12px rgba(201,168,76,0.15);
}
.tkt-type-btn.active i {
    color: var(--gold);
}
.tkt-type-btn i {
    font-size: 1.1rem;
    color: var(--text-muted);
    transition: color 0.25s ease;
}

/* deposit green tint when active */
.tkt-type-btn[data-type="deposit"].active {
    border-color: #22c55e;
    background: rgba(34,197,94,0.06);
    color: #16a34a;
    box-shadow: 0 2px 12px rgba(34,197,94,0.12);
}
.tkt-type-btn[data-type="deposit"].active i {
    color: #22c55e;
}

/* withdrawal red tint when active */
.tkt-type-btn[data-type="withdrawal"].active {
    border-color: #ef4444;
    background: rgba(239,68,68,0.06);
    color: #dc2626;
    box-shadow: 0 2px 12px rgba(239,68,68,0.12);
}
.tkt-type-btn[data-type="withdrawal"].active i {
    color: #ef4444;
}

/* Success state */
.tkt-success-state {
    text-align: center;
    padding: 2rem 1rem;
}
.tkt-success-icon {
    font-size: 4rem;
    color: #22c55e;
    margin-bottom: 1rem;
    animation: tkt-pop 0.4s ease;
}
.tkt-success-state h3 {
    color: var(--text-heading, var(--text-dark));
    font-weight: 700;
    margin-bottom: 0.5rem;
}
.tkt-success-state p {
    color: var(--text-muted);
    font-size: 0.92rem;
}
.tkt-ticket-id {
    font-weight: 700;
    color: var(--gold);
    font-size: 1.1rem;
    margin: 1rem 0;
    direction: ltr;
}

@keyframes tkt-pop {
    0%   { transform: scale(0.3); opacity: 0; }
    70%  { transform: scale(1.15); }
    100% { transform: scale(1); opacity: 1; }
}

@media (max-width: 768px) {
    .tickets-hero { padding: 100px 0 30px; }
    .tkt-type-selector { gap: 8px; }
    .tkt-type-btn { padding: 12px 14px; font-size: 0.88rem; }
}