@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

:root {
    --bg: #0f172a;
    --card: #1e293b;
    --gold: #fbbf24;
    --gold-hover: #f59e0b;
    --white: #ffffff;
    --border: #334155;
    --success: #22c55e;
    --danger: #ef4444;
    --text-muted: #94a3b8;
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    background: var(--bg);
    color: var(--white);
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 16px; /* Mobile-first padding */
}

/* Responsive Tables */
.table-wrapper {
    width: 100%;
    overflow-x: auto;
    background: var(--card);
    border-radius: 12px;
    border: 1px solid var(--border);
    margin-top: 20px;    -webkit-overflow-scrolling: touch; /* Smooth iOS scrolling */
}

table {
    width: 100%;
    border-collapse: collapse;
    min-width: 600px;
}

th, td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid var(--border);
    white-space: nowrap; /* Keeps crypto addresses/prices intact */
}

th {
    color: var(--gold);
    text-transform: uppercase;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    background: rgba(0, 0, 0, 0.15);
    position: sticky;
    top: 0;
}

td {
    font-size: 0.9rem;
    color: #e2e8f0;
}

/* Admin Stats Cards */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.stat-card {
    background: var(--card);
    padding: 20px;
    border-radius: 12px;
    border: 1px solid var(--border);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.stat-card:hover {
    transform: translateY(-2px);    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

/* Copy Icon Styling */
.copy-btn {
    background: none;
    border: none;
    color: var(--gold);
    cursor: pointer;
    font-size: 1.1rem;
    margin-left: 8px;
    padding: 8px; /* Larger tap target */
    border-radius: 6px;
    transition: background 0.2s;
}

.copy-btn:hover, .copy-btn:focus {
    background: rgba(251, 191, 36, 0.15);
    outline: none;
}

/* Buttons */
.btn-gold {
    background: var(--gold);
    color: #0f172a;
    padding: 12px 24px;
    border-radius: 8px;
    border: none;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px; /* Mobile touch-friendly */
}

.btn-gold:hover { background: var(--gold-hover); }
.btn-gold:active { transform: scale(0.98); }
.btn-gold:disabled { opacity: 0.6; cursor: not-allowed; }

/* Mobile Optimizations */
@media (max-width: 768px) {
    html { font-size: 15px; }
    .container { padding: 12px; }
    .stats-grid { grid-template-columns: 1fr; gap: 12px; }
    .stat-card { padding: 16px; }
    th, td { padding: 10px 12px; font-size: 0.85rem; }
    .btn-gold { width: 100%; } /* Full-width buttons on phones */}

/* Accessibility Focus States */
:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 2px;
}

/* Custom Scrollbar for Tables */
.table-wrapper::-webkit-scrollbar { height: 6px; }
.table-wrapper::-webkit-scrollbar-track { background: var(--card); }
.table-wrapper::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
.table-wrapper::-webkit-scrollbar-thumb:hover { background: var(--gold); }
/* DASHBOARD SPECIFIC STYLES */
.dashboard-header { text-align: left; padding: 24px 0 16px; }
.dashboard-header h2 { font-size: 1.5rem; margin-bottom: 8px; }
.dashboard-header span { color: var(--gold); }
.status-text { color: var(--text-muted); font-size: 0.9rem; }
.status-verified { color: var(--success); font-weight: 600; }

.balance-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
    margin: 20px 0;
}
.balance-card {
    background: var(--card);
    padding: 20px;
    border-radius: 12px;
    border: 1px solid var(--border);
}
.balance-card.border-gold { border-left: 4px solid var(--gold); }
.balance-card.border-success { border-left: 4px solid var(--success); }
.balance-card small { color: var(--text-muted); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.5px; }
.balance-amount { font-size: 2rem; font-weight: 700; margin-top: 8px; }
.balance-amount.profit { color: var(--success); }

.action-buttons {
    display: flex;
    gap: 16px;
    margin-top: 24px;
}
.btn {
    flex: 1;
    padding: 14px 20px;
    border-radius: 8px;
    text-align: center;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s;
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.btn-primary { background: var(--gold); color: var(--bg); }
.btn-primary:hover { background: var(--gold-hover); transform: translateY(-1px); }
.btn-secondary { background: var(--card); color: var(--white); border: 1px solid var(--border); }
.btn-secondary:hover { background: var(--border); }
.btn-outline { background: transparent; color: var(--gold); border: 1px solid var(--gold); }.btn-outline:hover { background: var(--gold); color: var(--bg); }

.plans-section { margin-top: 40px; }
.plans-section h3 { margin-bottom: 20px; font-size: 1.3rem; }
.plan-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
}
.plan-card {
    background: var(--card);
    border-radius: 12px;
    border: 1px solid var(--border);
    padding: 24px 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
}
.plan-card:hover { transform: translateY(-4px); box-shadow: 0 12px 24px rgba(0,0,0,0.3); }
.plan-featured { background: rgba(129, 140, 248, 0.08); border-color: rgba(129, 140, 248, 0.3); }
.plan-header { height: 4px; width: 100%; margin-bottom: 16px; }
.border-starter { background: #94a3b8; }
.border-silver { background: #e2e8f0; }
.border-gold-plan { background: var(--gold); }
.border-platinum { background: #818cf8; }
.plan-title { font-size: 1.1rem; margin-bottom: 12px; }
.plan-title.starter { color: #94a3b8; }
.plan-title.silver { color: #e2e8f0; }
.plan-title.gold-plan { color: var(--gold); }
.plan-title.platinum { color: #818cf8; }
.plan-rate { font-size: 2.2rem; font-weight: 800; margin: 8px 0; }
.plan-duration { color: var(--text-muted); font-size: 0.85rem; margin-bottom: 12px; }
.plan-range { margin-bottom: 20px; font-size: 0.95rem; }
.plan-card .btn { width: 100%; margin-top: 8px; }

.notification-area {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* MOBILE OPTIMIZATIONS */
@media (max-width: 768px) {
    .balance-grid { grid-template-columns: 1fr; }
    .action-buttons { flex-direction: column; }    .plan-grid { grid-template-columns: 1fr; gap: 16px; }
    .plans-section { margin-top: 28px; }
    .notification-area { left: 16px; right: 16px; bottom: 16px; }
}
/* HOME PAGE STYLES */
.hero { text-align: center; padding: 48px 16px 32px; }
.hero h1 { font-size: clamp(2.2rem, 7vw, 4rem); margin-bottom: 10px; line-height: 1.1; }
.hero h1 span { color: var(--gold); }
.hero-subtitle { color: var(--gold); letter-spacing: 2px; font-weight: 700; font-size: clamp(0.75rem, 2vw, 0.95rem); margin-bottom: 20px; text-transform: uppercase; }

.opportunity { background: var(--card); padding: 24px 20px; border-radius: 12px; border: 1px solid var(--border); margin: 20px 0; line-height: 1.7; color: #cbd5e1; }
.opportunity strong { color: var(--white); }

.section-title { color: var(--gold); font-size: clamp(1.4rem, 3.5vw, 1.8rem); margin-bottom: 16px; }
.section-title.center { text-align: center; margin-top: 40px; }

.founders-section { margin-top: 32px; }
.founders-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; margin-top: 16px; }
.founder-card { background: var(--card); padding: 20px 16px; border-radius: 10px; border: 1px solid var(--border); text-align: center; transition: transform 0.2s, box-shadow 0.2s; }
.founder-card h3 { color: var(--gold); font-size: 1rem; margin-bottom: 4px; }
.founder-card p { color: var(--text-muted); font-size: 0.85rem; }

.dark-section { background: #0a0f18; padding: 40px 16px; border-top: 2px solid var(--gold); margin-top: 40px; }

/* Ticker */
.ticker-wrapper { overflow: hidden; background: #111827; padding: 12px 0; border-radius: 8px; margin: 16px 0 32px; border: 1px solid var(--success); position: relative; }
.ticker-wrapper::before, .ticker-wrapper::after { content: ""; position: absolute; top: 0; bottom: 0; width: 30px; z-index: 2; pointer-events: none; }
.ticker-wrapper::before { left: 0; background: linear-gradient(to right, #111827, transparent); }
.ticker-wrapper::after { right: 0; background: linear-gradient(to left, #111827, transparent); }

.ticker-track { display: flex; gap: 32px; animation: scroll 30s linear infinite; width: max-content; will-change: transform; }
.ticker-wrapper:hover .ticker-track { animation-play-state: paused; }
@keyframes scroll { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }
.payout-item { white-space: nowrap; color: #e2e8f0; font-size: 0.9rem; display: flex; align-items: center; gap: 6px; }
.payout-item span { color: var(--success); font-weight: 600; }

/* Reviews */
.reviews-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; margin-top: 16px; }
.review-card { background: var(--card); padding: 20px; border-radius: 10px; border: 1px solid var(--border); color: #cbd5e1; line-height: 1.5; }
.stars { margin-bottom: 8px; letter-spacing: 1px; }
.review-card p { font-size: 0.95rem; margin-bottom: 10px; }
.review-card small { display: block; color: var(--text-muted); font-style: normal; }

/* MOBILE OPTIMIZATIONS */
@media (max-width: 768px) {
    .container { padding: 0 12px; }
    .hero { padding: 32px 0 24px; }
    .hero h1 { font-size: 2rem; }
    .btn-gold.btn-full-mobile { width: 100%; }
    .opportunity { padding: 18px 16px; font-size: 0.95rem; }
    .founders-grid { grid-template-columns: 1fr; gap: 12px; }
    .dark-section { padding: 28px 12px; margin-top: 32px; }
    .reviews-grid { grid-template-columns: 1fr; }
    .ticker-wrapper::before, .ticker-wrapper::after { width: 16px; }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    .ticker-track { animation: none; flex-wrap: wrap; justify-content: center; gap: 16px; padding: 10px; }
    .payout-item { margin: 4px 0; }
}
/* DEPOSIT PAGE STYLES */
.deposit-header { margin-bottom: 24px; }
.deposit-header h1 { font-size: clamp(1.5rem, 4vw, 2rem); margin-bottom: 8px; }
.deposit-header h1 span { color: var(--gold); }
.deposit-subtitle { color: var(--text-muted); font-size: 0.95rem; line-height: 1.5; }

.deposit-warning {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid var(--danger);
    color: #fca5a5;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 0.85rem;
    line-height: 1.5;
    margin-bottom: 24px;
}

.asset-list { display: flex; flex-direction: column; gap: 16px; }

.asset-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 20px;
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 16px;
    align-items: center;
    transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}
.asset-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
    border-color: var(--gold);
}

.asset-info { display: flex; align-items: center; gap: 12px; }
.asset-icon {
    width: 48px; height: 48px;
    background: rgba(251, 191, 36, 0.12);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.4rem; font-weight: bold; color: var(--gold);
    flex-shrink: 0;
}
.asset-details h3 { margin: 0; font-size: 1rem; color: var(--white); font-weight: 600; }
.network-badge {
    display: inline-block;
    background: rgba(148, 163, 184, 0.15);
    color: var(--text-muted);    font-size: 0.7rem;
    padding: 2px 8px;
    border-radius: 4px;
    margin-top: 4px;
    font-weight: 500;
    letter-spacing: 0.5px;
}

.asset-address code {
    background: transparent;
    color: #cbd5e1;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    word-break: break-all;
}

.copy-btn {
    background: var(--gold);
    color: var(--bg);
    border: none;
    padding: 10px 18px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    min-height: 44px;
    transition: background 0.2s, transform 0.1s;
    white-space: nowrap;
}
.copy-btn:hover { background: var(--gold-hover); }
.copy-btn:active { transform: scale(0.96); }

.hidden-addresses { display: none; }

.toast {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: var(--success);
    color: var(--bg);
    padding: 14px 28px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.95rem;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 9999;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* MOBILE OPTIMIZATIONS */
@media (max-width: 640px) {
    .container { padding: 0 12px; }
    .asset-card {
        grid-template-columns: 1fr;
        gap: 12px;
        padding: 16px;
    }
    .asset-info { justify-content: flex-start; }
    .asset-address { order: 2; }
    .copy-btn { width: 100%; order: 3; }
}
/* Differentiate toast types */
.toast-notification {
    background: var(--card);
    border: 1px solid var(--border);
    color: var(--white);
    padding: 12px 20px;
    border-radius: 10px;
    font-size: 0.9rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    animation: slideIn 0.3s ease-out;
}

.toast {
    /* Deposit page toast - already defined earlier */
    background: var(--success);
    color: var(--bg);
    /* ... rest of your existing .toast styles */
}

@keyframes slideIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
/* AUTH PAGES (Register/Login) */
.auth-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px 16px;
    background: linear-gradient(135deg, var(--bg) 0%, #1a2335 100%);
}

.auth-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 32px 24px;
    width: 100%;
    max-width: 480px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.auth-header { text-align: center; margin-bottom: 28px; }
.auth-header h1 { font-size: clamp(1.5rem, 4vw, 2rem); margin-bottom: 8px; }
.auth-header h1 span { color: var(--gold); }
.auth-subtitle { color: var(--text-muted); font-size: 0.9rem; }

/* Form Groups */
.form-group { margin-bottom: 20px; }
.form-group label {
    display: block;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 8px;
    color: #e2e8f0;
}

.form-group input {
    width: 100%;
    padding: 14px 16px;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid var(--border);
    border-radius: 10px;
    color: var(--white);
    font-size: 1rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.form-group input:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(251, 191, 36, 0.15);
}.form-group input::placeholder { color: var(--text-muted); }

/* Password Input with Toggle */
.password-input { position: relative; }
.toggle-password {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 1.1rem;
    padding: 4px;
    border-radius: 4px;
    transition: color 0.2s;
}
.toggle-password:hover { color: var(--gold); }

/* Password Strength Meter */
.password-strength { margin-top: 8px; }
.strength-bar {
    height: 4px;
    background: var(--border);
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 4px;
}
.strength-bar::after {
    content: '';
    display: block;
    height: 100%;
    width: 0%;
    background: var(--danger);
    transition: width 0.3s, background 0.3s;
}
.strength-bar.weak::after { width: 33%; background: var(--danger); }
.strength-bar.medium::after { width: 66%; background: var(--gold); }
.strength-bar.strong::after { width: 100%; background: var(--success); }
.strength-text { font-size: 0.75rem; color: var(--text-muted); }

/* Checkbox */
.form-check {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 24px 0;
    font-size: 0.85rem;
    color: var(--text-muted);}
.form-check input {
    width: 18px;
    height: 18px;
    margin-top: 2px;
    accent-color: var(--gold);
    cursor: pointer;
}
.form-check label { line-height: 1.4; }
.form-check a { color: var(--gold); text-decoration: none; }
.form-check a:hover { text-decoration: underline; }

/* Buttons */
.btn-full { width: 100%; margin-top: 8px; }
.btn-gold:disabled { opacity: 0.7; cursor: not-allowed; }

/* Error Messages */
.error-msg {
    display: block;
    color: var(--danger);
    font-size: 0.8rem;
    margin-top: 6px;
    min-height: 18px;
}
.form-group input.error { border-color: var(--danger); }

/* Footer & Badge */
.auth-footer { text-align: center; margin-top: 24px; font-size: 0.9rem; color: var(--text-muted); }
.link-gold { color: var(--gold); text-decoration: none; font-weight: 500; }
.link-gold:hover { text-decoration: underline; }

.security-badge {
    text-align: center;
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Toast for form feedback */
.toast {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: var(--success);
    color: var(--bg);
    padding: 14px 28px;
    border-radius: 10px;    font-weight: 600;
    font-size: 0.95rem;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 9999;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast.error { background: var(--danger); color: white; }

/* Mobile Optimizations */
@media (max-width: 480px) {
    .auth-card { padding: 24px 20px; border-radius: 14px; }
    .auth-header h1 { font-size: 1.6rem; }
    .form-group input { padding: 12px 14px; font-size: 0.95rem; }
    .btn-gold { padding: 14px; font-size: 1rem; }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    * { transition: none !important; animation: none !important; }
}
:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 2px;
}
/* SECURITY / TOKEN PAGE STYLES */
.security-card { border-color: var(--danger) !important; }
.security-card .auth-header h1 span { color: var(--danger); }

.security-header { text-align: center; margin-bottom: 24px; }
.security-icon {
    font-size: 2.5rem;
    margin-bottom: 12px;
    display: block;
}
.security-header h1 { font-size: clamp(1.4rem, 4vw, 1.8rem); margin-bottom: 8px; }
.security-header h1 span { color: var(--danger); }
.security-badge {
    display: inline-block;
    background: rgba(239, 68, 68, 0.15);
    color: var(--danger);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.security-notice {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid var(--danger);
    border-radius: 10px;
    padding: 16px;
    margin-bottom: 24px;
    font-size: 0.9rem;
    line-height: 1.6;
    color: #fca5a5;
}
.security-notice strong { color: var(--white); }

.summary-card {
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 24px;
}
.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
}
.summary-label { color: var(--text-muted); font-size: 0.9rem; }.summary-value { font-weight: 700; font-size: 1.1rem; }
.summary-value.positive { color: var(--success); }
.summary-divider {
    height: 1px;
    background: var(--border);
    margin: 12px 0;
}
.summary-note {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.5;
    margin-top: 8px;
}

.address-section { margin-bottom: 24px; }
.address-section label {
    display: block;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 10px;
    color: #e2e8f0;
}
.address-box {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #0a0f18;
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 12px 14px;
}
.address-box code {
    flex: 1;
    font-family: 'Courier New', monospace;
    font-size: 0.85rem;
    color: var(--gold);
    word-break: break-all;
    background: transparent;
}
.address-hint {
    font-size: 0.8rem;
    color: var(--success);
    margin-top: 8px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.token-form { margin-bottom: 20px; }
.form-hint {    display: block;
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 6px;
}

.form-check {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 20px 0;
    font-size: 0.85rem;
    color: var(--text-muted);
}
.form-check input {
    width: 18px;
    height: 18px;
    margin-top: 2px;
    accent-color: var(--gold);
    cursor: pointer;
}
.form-check label { line-height: 1.4; }

.security-footer {
    font-size: 0.75rem;
    color: var(--text-muted);
    line-height: 1.5;
    padding-top: 16px;
    border-top: 1px solid var(--border);
    margin-top: 16px;
}

.auth-footer { text-align: center; margin-top: 16px; font-size: 0.9rem; }
.auth-footer .link-gold { font-weight: 500; }

/* Mobile Optimizations */
@media (max-width: 480px) {
    .auth-card { padding: 24px 20px; }
    .summary-row { flex-direction: column; align-items: flex-start; gap: 4px; }
    .address-box { flex-direction: column; align-items: stretch; }
    .copy-btn { width: 100%; margin-top: 8px; }
    .btn-gold { padding: 14px; font-size: 1rem; }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    * { transition: none !important; animation: none !important; }
}
:focus-visible {
    outline: 2px solid var(--gold);    outline-offset: 2px;
}
/* ADMIN PANEL STYLES */
.admin-header {
    background: var(--card);
    border-bottom: 1px solid var(--border);
    padding: 16px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}
.admin-header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}
.admin-header h1 { font-size: clamp(1.3rem, 4vw, 1.6rem); margin: 0; }
.admin-actions { display: flex; gap: 10px; }

.admin-section { margin: 32px 0; }
.section-title { font-size: clamp(1.2rem, 3vw, 1.4rem); margin-bottom: 16px; color: var(--white); }
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 16px;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
}
.stat-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    transition: transform 0.2s, box-shadow 0.2s;
}
.stat-card:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(0,0,0,0.2); }
.stat-icon { font-size: 1.8rem; }
.stat-content small { color: var(--text-muted); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.5px; }
.stat-value { font-size: 1.4rem; font-weight: 700; margin: 4px 0; }.stat-delta { font-size: 0.75rem; color: var(--text-muted); }
.stat-delta.positive { color: var(--success); }

.stat-primary .stat-icon { color: var(--gold); }
.stat-warning .stat-icon { color: var(--danger); }
.stat-info .stat-icon { color: #818cf8; }
.stat-success .stat-icon { color: var(--success); }

/* Admin Forms */
.form-card { background: var(--card); border: 1px solid var(--border); border-radius: 12px; padding: 24px; }
.admin-form .form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 16px;
}
.form-group label {
    display: block;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 8px;
    color: #e2e8f0;
}
.form-group input, .form-group select {
    width: 100%;
    padding: 12px 14px;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--white);
    font-size: 0.95rem;
}
.form-group input:focus, .form-group select:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(251, 191, 36, 0.15);
}
.form-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 8px; }

/* Table Controls */
.table-controls { display: flex; gap: 10px; flex-wrap: wrap; }
.search-input, .filter-select {
    padding: 10px 14px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--white);
    font-size: 0.9rem;
}
.search-input { min-width: 200px; flex: 1; }.filter-select { min-width: 140px; }

/* Data Table */
.table-wrapper { overflow-x: auto; border-radius: 12px; }
.data-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    min-width: 700px;
}
.data-table th {
    background: rgba(0,0,0,0.2);
    color: var(--gold);
    font-weight: 600;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 14px 16px;
    text-align: left;
    border-bottom: 1px solid var(--border);
}
.data-table td {
    padding: 14px 16px;
    border-bottom: 1px solid var(--border);
    font-size: 0.9rem;
    color: #e2e8f0;
}
.data-table tr:last-child td { border-bottom: none; }
.data-table tr:hover { background: rgba(251, 191, 36, 0.05); }

.user-cell { display: flex; align-items: center; gap: 10px; }
.user-avatar {
    width: 32px; height: 32px;
    background: var(--gold);
    color: var(--bg);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: 0.8rem;
    flex-shrink: 0;
}
.amount-cell.positive { color: var(--success); font-weight: 600; }
.asset-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;}
.asset-badge.btc { background: rgba(247, 147, 26, 0.15); color: #f7931a; }
.asset-badge.usdt { background: rgba(34, 197, 94, 0.15); color: var(--success); }
.asset-badge.eth { background: rgba(108, 119, 211, 0.15); color: #6c77d3; }

.txid { background: rgba(0,0,0,0.2); padding: 4px 8px; border-radius: 4px; font-family: monospace; font-size: 0.85rem; }
.copy-txid {
    background: none; border: none; color: var(--gold);
    cursor: pointer; padding: 4px; margin-left: 6px; font-size: 1rem;
}

.time-cell { color: var(--text-muted); font-size: 0.85rem; }
.status-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}
.status-badge.pending { background: rgba(251, 191, 36, 0.15); color: var(--gold); }
.status-badge.confirmed { background: rgba(34, 197, 94, 0.15); color: var(--success); }
.status-badge.rejected { background: rgba(239, 68, 68, 0.15); color: var(--danger); }

.actions-cell { display: flex; gap: 8px; }
.btn-action {
    width: 36px; height: 36px;
    border: none; border-radius: 8px;
    font-weight: 700; font-size: 1rem;
    cursor: pointer; display: flex; align-items: center; justify-content: center;
    transition: transform 0.1s;
}
.btn-action:active { transform: scale(0.95); }
.btn-approve { background: var(--success); color: white; }
.btn-reject { background: var(--danger); color: white; }
.checkmark { color: var(--success); font-weight: 700; }

/* Mobile Card View (hidden on desktop) */
.mobile-cards { display: none; flex-direction: column; gap: 16px; }
.tx-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 16px;
}
.tx-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    padding-bottom: 12px;    border-bottom: 1px solid var(--border);
}
.tx-user { display: flex; align-items: center; gap: 10px; font-weight: 500; }
.tx-card-body { margin-bottom: 16px; }
.tx-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 0;
    font-size: 0.9rem;
}
.tx-label { color: var(--text-muted); }
.tx-value.positive { color: var(--success); font-weight: 600; }
.tx-card-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}
.tx-card-actions .btn-full { flex: 1; min-width: 120px; }

/* Modal */
.admin-modal {
    position: fixed;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    .deposit-proof-section {
    margin-top: 40px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 24px 20px;
}
.deposit-proof-section h3 { margin-bottom: 8px; }
.section-hint { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 20px; }
.proof-form .form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 16px;
}
.proof-form select, .proof-form input {
    width: 100%;
    padding: 12px 14px;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--white);
    font-size: 0.95rem;
}
.proof-form select:focus, .proof-form input:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(251, 191, 36, 0.15);
}
.form-hint { display: block; font-size: 0.8rem; color: var(--text-muted); margin-top: 6px; }
.proof-status {
    margin-top: 16px;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 0.9rem;
}
.proof-status.success { background: rgba(34, 197, 94, 0.15); color: var(--success); border: 1px solid var(--success); }
.proof-status.error { background: rgba(239, 68, 68, 0.15); color: var(--danger); border: 1px solid var(--danger); }
/* REFERRAL PAGE STYLES */
.referral-card { border-color: var(--gold) !important; max-width: 520px; }
.referral-header { text-align: center; margin-bottom: 24px; }
.referral-icon { font-size: 2.2rem; margin-bottom: 10px; display: block; }
.referral-header h1 { font-size: clamp(1.4rem, 4vw, 1.8rem); margin-bottom: 6px; }
.referral-subtitle { color: var(--text-muted); font-size: 0.9rem; }

.success-banner {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(34, 197, 94, 0.12);
    border: 1px solid var(--success);
    border-radius: 10px;
    padding: 14px 16px;
    margin-bottom: 20px;
}
.success-banner .checkmark { font-size: 1.4rem; }
.success-banner strong { display: block; color: var(--success); font-size: 0.95rem; }
.banner-text { color: var(--text-muted); font-size: 0.8rem; margin: 0; }

.instruction-box {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 16px;
    margin-bottom: 20px;
    font-size: 0.95rem;
    line-height: 1.6;
}
.instruction-box strong { color: var(--gold); }

.bonus-card {
    display: flex;
    align-items: center;
    gap: 14px;
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.15), rgba(251, 191, 36, 0.05));
    border: 1px solid var(--gold);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 24px;
}
.bonus-icon { font-size: 1.8rem; }
.bonus-content h3 { color: var(--gold); margin: 0 0 4px; font-size: 1rem; }
.bonus-content p { margin: 0; color: var(--text-muted); font-size: 0.85rem; }
.bonus-amount { color: var(--success); font-size: 1.1rem; }

.referral-link-section { margin-bottom: 24px; }
.referral-link-section label {
    display: block;    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 10px;
    color: var(--gold);
}
.link-box {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #0a0f18;
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 12px 14px;
}
.link-box code {
    flex: 1;
    font-family: 'Courier New', monospace;
    font-size: 0.85rem;
    color: var(--white);
    word-break: break-all;
    background: transparent;
}
.link-hint { font-size: 0.8rem; color: var(--text-muted); margin-top: 8px; }

.progress-section { margin-bottom: 24px; }
.progress-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}
.progress-label { font-size: 0.9rem; font-weight: 500; }
.progress-count { font-size: 0.85rem; color: var(--gold); font-weight: 600; }
.progress-bar {
    height: 8px;
    background: var(--border);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 12px;
}
.progress-fill {
    height: 100%;
    background: var(--gold);
    border-radius: 4px;
    transition: width 0.4s ease;
}
.progress-steps {
    display: flex;
    justify-content: space-between;
    max-width: 200px;    margin: 0 auto;
}
.step {
    width: 32px; height: 32px;
    border-radius: 50%;
    background: var(--border);
    color: var(--text-muted);
    display: flex; align-items: center; justify-content: center;
    font-size: 0.85rem; font-weight: 600;
    position: relative;
}
.step::after {
    content: "";
    position: absolute;
    top: 50%; right: -20px;
    width: 20px; height: 2px;
    background: var(--border);
    transform: translateY(-50%);
}
.step:last-child::after { display: none; }
.step.completed { background: var(--success); color: white; }
.step.active { background: var(--gold); color: var(--bg); box-shadow: 0 0 0 3px rgba(251, 191, 36, 0.3); }

.referrals-list { margin-bottom: 24px; }
.referrals-list h4 { margin-bottom: 12px; font-size: 1rem; }
.referral-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px;
    background: rgba(15, 23, 42, 0.4);
    border: 1px solid var(--border);
    border-radius: 10px;
    margin-bottom: 10px;
}
.referral-item:last-child { margin-bottom: 0; }
.referral-avatar {
    width: 40px; height: 40px;
    border-radius: 50%;
    background: var(--gold);
    color: var(--bg);
    display: flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: 0.9rem;
    flex-shrink: 0;
}
.referral-avatar.placeholder { background: var(--border); color: var(--text-muted); font-size: 1.2rem; }
.referral-info { flex: 1; min-width: 0; }
.referral-name { display: block; font-size: 0.9rem; font-weight: 500; color: var(--white); }
.referral-date { display: block; font-size: 0.75rem; color: var(--text-muted); }
.status-badge {    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
}
.status-badge.completed { background: rgba(34, 197, 94, 0.15); color: var(--success); }
.status-badge.pending { background: rgba(251, 191, 36, 0.15); color: var(--gold); }
.status-badge.empty { background: var(--border); color: var(--text-muted); }

.btn-gold:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    position: relative;
}
.btn-locked { margin-left: 6px; }

.referral-footer {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-align: center;
    padding-top: 16px;
    border-top: 1px solid var(--border);
    margin-top: 16px;
    line-height: 1.5;
}

/* Mobile Optimizations */
@media (max-width: 480px) {
    .auth-card { padding: 24px 20px; }
    .bonus-card { flex-direction: column; text-align: center; }
    .link-box { flex-direction: column; align-items: stretch; }
    .copy-btn { width: 100%; margin-top: 8px; }
    .progress-steps { max-width: 160px; }
    .step { width: 28px; height: 28px; font-size: 0.8rem; }
    .step::after { right: -16px; width: 16px; }
    .referral-item { padding: 12px; gap: 10px; }
    .referral-avatar { width: 36px; height: 36px; font-size: 0.85rem; }
    .btn-gold { padding: 14px; font-size: 1rem; }
}

/* Animation for bonus card */
@keyframes pulse-gold {
    0%, 100% { box-shadow: 0 0 0 0 rgba(251, 191, 36, 0.4); }
    50% { box-shadow: 0 0 0 8px rgba(251, 191, 36, 0); }
}
.bonus-card { animation: pulse-gold 2s infinite; }
@media (prefers-reduced-motion: reduce) {
    .bonus-card { animation: none; }
}
// --- REFERRAL PAGE: PROGRESS + COPY LOGIC ---
document.addEventListener('DOMContentLoaded', () => {
    // Copy referral link with toast feedback
    const copyBtn = document.querySelector('.referral-link-section .copy-btn');
    if (copyBtn) {
        copyBtn.addEventListener('click', function() {
            const fullLink = document.getElementById('referral-link-full')?.innerText.trim();
            if (!fullLink) return;
            
            navigator.clipboard.writeText(fullLink).then(() => {
                showToast('✅ Referral link copied! Share it now 🚀');
                this.textContent = '✅ Copied';
                setTimeout(() => { this.textContent = 'Copy'; }, 2000);
            }).catch(() => {
                // Fallback
                const textarea = document.createElement('textarea');
                textarea.value = fullLink;
                document.body.appendChild(textarea);
                textarea.select();
                document.execCommand('copy');
                document.body.removeChild(textarea);
                showToast('✅ Link copied!');
            });
        });
    }
    
    // Dynamic progress update (backend would inject these values)
    const progressData = window.REFERRAL_DATA || {
        completed: 1,
        required: 3,
        referrals: [
            { email: 'john.doe@email.com', date: '2 days ago', status: 'completed' },
            { email: 'sara.k@email.com', date: '5 hours ago', status: 'pending' },
            { email: null, date: 'Waiting...', status: 'empty' }
        ]
    };
    
    // Update progress bar
    const progressFill = document.getElementById('progress-fill');
    const progressCount = document.getElementById('progress-count');
    const claimBtn = document.getElementById('claim-btn');
    
    if (progressFill && progressCount) {
        const percent = (progressData.completed / progressData.required) * 100;
        progressFill.style.width = `${percent}%`;
        progressCount.textContent = `${progressData.completed} of ${progressData.required} Completed`;
        
        // Enable claim button only when complete
        if (claimBtn) {
            if (progressData.completed >= progressData.required) {
                claimBtn.disabled = false;
                claimBtn.querySelector('.btn-text').textContent = '🎉 Claim Your Withdrawal';
                claimBtn.querySelector('.btn-locked').style.display = 'none';
            } else {
                const remaining = progressData.required - progressData.completed;
                claimBtn.querySelector('.btn-text').textContent = `Unlock Withdrawal (${remaining} More Needed)`;
            }
        }
    }
    
    // Claim button handler
    if (claimBtn && !claimBtn.disabled) {
        claimBtn.addEventListener('click', async () => {
            claimBtn.disabled = true;
            claimBtn.querySelector('.btn-text').textContent = 'Processing...';
            
            try {
                // Simulate API call to mark referral complete
                await new Promise(resolve => setTimeout(resolve, 1500));
                
                showToast('✅ Withdrawal unlocked! Processing your payout...');
                setTimeout(() => {
                    window.location.href = 'dashboard.html';
                }, 2000);
            } catch (err) {
                showToast('❌ Claim failed. Contact support.', true);
                claimBtn.disabled = false;
                claimBtn.querySelector('.btn-text').textContent = '🎉 Claim Your Withdrawal';
            }
        });
    }
});
/* ========== ADMIN: PAYOUT AUTHORIZATIONS ========== */
.section-subtitle { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 16px; }

.payout-card { background: var(--card); border: 1px solid var(--border); border-radius: 12px; padding: 20px; }

.data-table .ref-code { background: rgba(251, 191, 36, 0.15); padding: 4px 8px; border-radius: 4px; font-family: monospace; font-size: 0.85rem; }
.ref-count { font-weight: 600; }
.ref-count.complete { color: var(--success); }
.ref-count.pending { color: var(--gold); }
.bonus-tag { color: var(--success); font-weight: 600; font-size: 0.8rem; }

.status-badge.ready { background: rgba(34, 197, 94, 0.15); color: var(--success); }
.status-badge.waiting { background: rgba(251, 191, 36, 0.15); color: var(--gold); }
.status-text { color: var(--text-muted); font-size: 0.85rem; }
.status-text.mobile { display: block; text-align: center; margin-top: 10px; }

.btn-process {
    background: var(--success);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    min-height: 40px;
    transition: background 0.2s;
}
.btn-process:hover { background: #16a34a; }

/* Mobile Payout Cards */
.mobile-cards { display: none; flex-direction: column; gap: 16px; }
.payout-card-mobile {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 16px;
}
.payout-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 12px;
}
.payout-user { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 0; }
.payout-user .user-avatar { width: 36px; height: 36px; font-size: 0.85rem; }
.payout-user strong { display: block; font-size: 0.9rem; }.payout-user .ref-code { font-size: 0.8rem; }
.payout-body { margin-bottom: 16px; }
.payout-row { display: flex; justify-content: space-between; padding: 6px 0; font-size: 0.9rem; }
.payout-label { color: var(--text-muted); }
.payout-amount { font-weight: 600; }
.payout-card-mobile .btn-full { width: 100%; }

/* ========== ASSISTANT / CHAT BOT STYLES ========== */
.assistant-wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: linear-gradient(135deg, var(--bg) 0%, #1a2335 100%);
    padding: 20px;
}

.assistant-header {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 0;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--border);
}
.bot-avatar {
    width: 56px; height: 56px;
    background: linear-gradient(135deg, var(--gold), #f59e0b);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.8rem;
    flex-shrink: 0;
}
.bot-info h1 { font-size: clamp(1.2rem, 4vw, 1.5rem); margin: 0; }
.bot-status { color: var(--success); font-size: 0.85rem; margin: 4px 0 0; }

.chat-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding-bottom: 20px;
    overflow-y: auto;
    max-height: calc(100vh - 220px);
}

.chat-bubble {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 16px 20px;    max-width: 90%;
    animation: fadeIn 0.4s ease-out;
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}
.bot-message {
    border-left: 4px solid var(--gold);
    align-self: flex-start;
}
.bot-message strong { color: var(--gold); display: block; margin-bottom: 6px; }
.bot-message p { margin: 0; line-height: 1.6; color: #e2e8f0; }
.bot-message .hint { color: var(--text-muted); font-size: 0.85rem; margin-top: 8px; font-style: italic; }

.quick-action { margin-top: 12px; }
.btn-sm { padding: 8px 16px; font-size: 0.9rem; min-height: 40px; }

.plan-details {
    margin-top: 12px;
    background: rgba(15, 23, 42, 0.6);
    border-radius: 8px;
    padding: 12px 16px;
}
.plan-details summary {
    cursor: pointer;
    color: var(--gold);
    font-weight: 500;
    outline: none;
}
.plan-details[open] summary { margin-bottom: 10px; }
.plan-list {
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 0.9rem;
    color: #cbd5e1;
}
.plan-list li { padding: 4px 0; border-bottom: 1px dashed var(--border); }
.plan-list li:last-child { border-bottom: none; }

.chat-bubble.highlight {
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.15), rgba(251, 191, 36, 0.05));
    border-color: var(--gold);
    text-align: center;
}
.cta-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;    flex-wrap: wrap;
    margin-top: 16px;
}

.assistant-footer {
    text-align: center;
    padding: 20px 0 30px;
    border-top: 1px solid var(--border);
    font-size: 0.85rem;
    color: var(--text-muted);
}
.assistant-footer .link-gold { font-weight: 500; }
.assistant-footer .disclaimer {
    margin-top: 10px;
    font-size: 0.75rem;
    color: var(--text-muted);
    line-height: 1.5;
}

/* Mobile Optimizations */
@media (max-width: 640px) {
    .assistant-wrapper { padding: 16px 12px; }
    .assistant-header { flex-direction: column; text-align: center; padding: 16px 0; }
    .chat-container { max-height: calc(100vh - 260px); }
    .chat-bubble { max-width: 100%; border-radius: 14px; padding: 14px 16px; }
    .cta-buttons { flex-direction: column; }
    .cta-buttons .btn-gold, .cta-buttons .btn-outline { width: 100%; }
    
    /* Admin mobile: switch to card view */
    .desktop-view { display: none; }
    .mobile-cards { display: flex; }
    .form-card { padding: 20px 16px; }
    .admin-form .form-row { grid-template-columns: 1fr; }
    .form-actions { flex-direction: column; }
    .btn-gold, .btn-outline, .btn-danger { width: 100%; }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    * { animation: none !important; transition: none !important; }
}
:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 2px;
}
/* ========== NAVIGATION BAR ========== */
.navbar {
    background: #1e293b;
    border-bottom: 1px solid #334155;
    padding: 16px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}
.navbar-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.navbar-brand {
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    text-decoration: none;
}
.navbar-brand span { color: #fbbf24; }
.navbar-menu {
    display: flex;
    list-style: none;
    gap: 24px;
    align-items: center;
    margin: 0;
    padding: 0;
}
.navbar-menu a {
    color: #e2e8f0;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.2s;
    padding: 8px 12px;
    border-radius: 6px;
}
.navbar-menu a:hover {
    color: #fbbf24;
    background: rgba(251, 191, 36, 0.1);
}
.navbar-menu .btn-gold {
    padding: 8px 20px;
    font-size: 0.9rem;
    min-height: 40px;}
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}
.hamburger span {
    width: 25px;
    height: 3px;
    background: #e2e8f0;
    border-radius: 3px;
    transition: all 0.3s;
}
.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(7px, -6px); }

/* Assistant Floating Button */
.assistant-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    color: #0f172a;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    box-shadow: 0 8px 20px rgba(251, 191, 36, 0.4);
    cursor: pointer;
    z-index: 999;
    transition: transform 0.2s, box-shadow 0.2s;
    text-decoration: none;
    animation: pulse 2s infinite;
}
.assistant-float:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(251, 191, 36, 0.5);
}
@keyframes pulse {
    0%, 100% { box-shadow: 0 8px 20px rgba(251, 191, 36, 0.4); }
    50% { box-shadow: 0 8px 28px rgba(251, 191, 36, 0.6); }
}
/* ========== FOOTER ========== */
.footer {
    background: #0f172a;
    border-top: 1px solid #334155;
    padding: 50px 0 30px;
    margin-top: 80px;
}
.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}
.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}
.footer-section h3 {
    color: #fbbf24;
    margin-bottom: 16px;
    font-size: 1.1rem;
}
.footer-section p, .footer-section a {
    color: #94a3b8;
    text-decoration: none;
    line-height: 1.8;
    font-size: 0.9rem;
}
.footer-section a:hover { color: #fbbf24; }
.footer-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.footer-section ul li { margin-bottom: 10px; }
.footer-bottom {
    border-top: 1px solid #334155;
    padding-top: 24px;
    text-align: center;
    color: #64748b;
    font-size: 0.85rem;
}
.social-links {
    display: flex;
    gap: 16px;
    margin-top: 16px;
}
.social-links a {    width: 40px;
    height: 40px;
    background: #1e293b;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #e2e8f0;
    font-size: 1.2rem;
    transition: background 0.2s, transform 0.2s;
}
.social-links a:hover {
    background: #fbbf24;
    color: #0f172a;
    transform: translateY(-3px);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .hamburger { display: flex; }
    .navbar-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #1e293b;
        flex-direction: column;
        padding: 20px;
        gap: 12px;
        border-bottom: 1px solid #334155;
        box-shadow: 0 8px 20px rgba(0,0,0,0.3);
    }
    .navbar-menu.active { display: flex; }
    .navbar-menu a {
        padding: 12px 16px;
        border-radius: 8px;
        width: 100%;
    }
    .navbar-menu .btn-gold { text-align: center; }
    .assistant-float {
        bottom: 20px;
        right: 20px;
        width: 56px;
        height: 56px;
        font-size: 1.5rem;
    }
    .footer-grid { grid-template-columns: 1fr; gap: 30px; }
    .footer { padding: 40px 0 24px; margin-top: 60px; }
}
/* ========== NAVBAR FIX (Append This) ========== */
.navbar-menu {
    list-style: none !important;
    display: flex !important;
    gap: 24px;
    margin: 0;
    padding: 0;
    align-items: center;
}
.navbar-menu li {
    display: inline-block;
}
.navbar-menu a {
    text-decoration: none !important;
    color: #e2e8f0;
    font-weight: 500;
    padding: 8px 12px;
    border-radius: 6px;
    transition: color 0.2s;
}
.navbar-menu a:hover {
    color: var(--gold);
}
.navbar-menu .btn-gold {
    text-decoration: none !important;
    color: #0f172a !important;
}
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}
.hamburger span {
    width: 25px;
    height: 3px;
    background: #e2e8f0;
    border-radius: 3px;
}

/* Mobile Menu */
@media (max-width: 768px) {
    .hamburger { display: flex !important; }
    .navbar-menu {
        display: none !important;
        flex-direction: column !important;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #1e293b;
        padding: 20px;
        gap: 12px;
        border-bottom: 1px solid #334155;
    }
    .navbar-menu.active { display: flex !important; }
    .navbar-menu a { padding: 12px 16px; width: 100%; }
}

/* Ensure btn-gold never has underline */
a.btn-gold, .btn-gold {
    text-decoration: none !important;
}
/* CURRENCY SELECTOR */
.currency-selector {
    position: relative;
    display: inline-block;
}
.currency-btn {
    background: rgba(251, 191, 36, 0.15);
    color: #fbbf24;
    border: 1px solid #fbbf24;
    padding: 8px 14px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s;
}
.currency-btn:hover {
    background: rgba(251, 191, 36, 0.25);
}
.currency-dropdown {
    display: none;
    position: absolute;
    right: 0;
    top: 100%;
    background: #1e293b;
    border: 1px solid #334155;
    border-radius: 8px;
    margin-top: 8px;
    min-width: 220px;
    max-height: 400px;
    overflow-y: auto;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    z-index: 1001;
}
.currency-dropdown.active { display: block; }
.currency-option {
    padding: 10px 16px;
    cursor: pointer;
    transition: background 0.2s;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.currency-option:hover { background: rgba(251, 191, 36, 0.1); }
.currency-option.active { background: rgba(251, 191, 36, 0.2); color: #fbbf24; }
.currency-flag { margin-right: 8px; }
.currency-code { font-weight: 600; }
.currency-name { font-size: 0.8rem; color: #94a3b8; }

/* Mobile adjustments */
@media (max-width: 768px) {
    .currency-dropdown {
        right: -10px;
        min-width: 200px;
        max-height: 300px;
    }
}
/* Language & Currency Selectors */
.lang-selector, .currency-selector {
    position: relative;
    display: inline-block;
}

.currency-btn {
    background: rgba(251, 191, 36, 0.15);
    color: #fbbf24;
    border: 1px solid #fbbf24;
    padding: 8px 14px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s;
}

.currency-btn:hover {
    background: rgba(251, 191, 36, 0.25);
}

.currency-dropdown {
    display: none;
    position: absolute;
    right: 0;
    top: 100%;
    background: #1e293b;
    border: 1px solid #334155;
    border-radius: 8px;
    margin-top: 8px;
    min-width: 200px;
    max-height: 400px;
    overflow-y: auto;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    z-index: 1001;
}

.currency-dropdown.active {
    display: block;
}

.currency-option {
    padding: 10px 16px;
    cursor: pointer;
    transition: background 0.2s;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
}

.currency-option:hover {
    background: rgba(251, 191, 36, 0.1);
}

.currency-option.active {
    background: rgba(251, 191, 36, 0.2);
    color: #fbbf24;
}

/* RTL Support */
[dir="rtl"] {
    text-align: right;
}

[dir="rtl"] .navbar-menu {
    flex-direction: row-reverse;
}

[dir="rtl"] .currency-dropdown {
    right: auto;
    left: 0;
}