@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

:root {
    /* ─ Brand palette (warm brown / cream) ─ */
    --brown:        #7B4F2E;
    --brown-dark:   #5C3518;
    --brown-light:  #A0714F;
    --brown-pale:   #D4A97A;
    --brown-xpale:  #EDD9C0;
    --cream:        #FDF6EE;
    --cream2:       #F5EBE0;
    --cream3:       #EDD9C4;
    --white:        #FFFFFF;

    /* ─ Semantic ─ */
    --primary:      var(--brown);
    --primary-dark: var(--brown-dark);
    --primary-light:var(--brown-light);
    --accent:       #1A9E6A;
    --danger:       #D94040;
    --warning:      #D97706;
    --info:         #2563EB;

    /* ─ Text ─ */
    --text:         #2C1A0E;
    --text-mid:     #7B5B3A;
    --text-muted:   #A08060;

    /* ─ UI ─ */
    --border:       #EAD9C8;
    --card:         #FFFFFF;
    --card-alt:     #FDF6EE;
    --shadow:       0 2px 12px rgba(92,53,24,0.10);
    --shadow-md:    0 4px 20px rgba(92,53,24,0.14);

    /* ─ Layout ─ */
    --radius:       16px;
    --radius-sm:    10px;
    --header-h:     52px;
    --bar-h:        66px;
    --sidebar-w:    270px;
}

/* ══════════════════════════════════════════
   RESET & BASE
══════════════════════════════════════════ */
*, *::before, *::after { margin:0; padding:0; box-sizing:border-box; -webkit-tap-highlight-color:transparent; }
html { scroll-behavior:smooth; }

body {
    font-family: 'Inter', sans-serif;
    background: var(--cream);
    color: var(--text);
    min-height: 100vh;
    overflow-x: hidden;
    max-width: 480px;
    margin: 0 auto;
}

::-webkit-scrollbar { width: 3px; }
::-webkit-scrollbar-track { background: var(--cream2); }
::-webkit-scrollbar-thumb { background: var(--brown-pale); border-radius: 3px; }

/* ══════════════════════════════════════════
   APP WRAPPER
══════════════════════════════════════════ */
.app-wrapper { min-height:100vh; position:relative; }

/* ══════════════════════════════════════════
   SIDEBAR OVERLAY
══════════════════════════════════════════ */
.sidebar-overlay {
    display: none;
    position: fixed; inset: 0;
    background: rgba(0,0,0,0.45);
    z-index: 999;
    backdrop-filter: blur(2px);
}
.sidebar-overlay.show { display: block; }

/* ══════════════════════════════════════════
   SIDEBAR
══════════════════════════════════════════ */
.sidebar {
    position: fixed;
    top: 0; left: -100%;
    width: var(--sidebar-w);
    height: 100vh;
    background: var(--white);
    border-right: 1px solid var(--border);
    z-index: 1000;
    transition: left 0.32s cubic-bezier(0.4,0,0.2,1);
    display: flex; flex-direction: column;
    overflow-y: auto;
    box-shadow: 4px 0 28px rgba(92,53,24,0.15);
}
.sidebar.open { left: 0; }

.sidebar-logo {
    background: linear-gradient(135deg, var(--brown-dark), var(--brown));
    padding: 24px 18px 18px;
    display: flex; align-items: center; gap: 10px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}
.sidebar-logo-icon {
    width: 40px; height: 40px;
    background: rgba(255,255,255,0.18);
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    font-size: 18px;
}
.sidebar-logo-text {
    font-size: 17px; font-weight: 800;
    color: white; letter-spacing: 0.2px;
}
.sidebar-logo-sub { font-size: 10px; color: rgba(255,255,255,0.55); margin-top: 1px; }

.sidebar-user {
    padding: 14px 16px;
    display: flex; align-items: center; gap: 10px;
    background: rgba(123,79,46,0.07);
    margin: 10px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
}
.sidebar-avatar {
    width: 40px; height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--brown-light), var(--brown-dark));
    display: flex; align-items: center; justify-content: center;
    font-weight: 800; font-size: 16px; color: white;
    overflow: hidden; flex-shrink: 0;
}
.sidebar-avatar img { width:100%; height:100%; object-fit:cover; }
.sidebar-user-name { font-size: 14px; font-weight: 700; color: var(--text); }
.sidebar-user-plan { font-size: 11px; color: var(--brown); margin-top: 1px; font-weight: 600; }

.sidebar-nav { padding: 6px 10px; flex: 1; }
.sidebar-section-label {
    font-size: 10px; font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase; letter-spacing: 1.5px;
    padding: 10px 10px 5px;
}
.sidebar-link {
    display: flex; align-items: center; gap: 11px;
    padding: 11px 13px;
    border-radius: var(--radius-sm);
    color: var(--text-mid);
    text-decoration: none;
    font-size: 14px; font-weight: 500;
    transition: all 0.18s;
    margin-bottom: 1px;
}
.sidebar-link:hover { background: var(--cream2); color: var(--brown-dark); }
.sidebar-link.active {
    background: rgba(123,79,46,0.1);
    color: var(--brown-dark);
    font-weight: 600;
    border-left: 3px solid var(--brown);
}
.sidebar-link-icon { font-size: 17px; width: 20px; text-align: center; }
.sidebar-badge {
    margin-left: auto;
    background: var(--brown);
    color: white;
    font-size: 10px; font-weight: 700;
    padding: 2px 7px; border-radius: 20px;
}

.sidebar-footer {
    padding: 14px 18px;
    border-top: 1px solid var(--border);
}
.sidebar-logout {
    display: flex; align-items: center; gap: 10px;
    color: var(--danger); text-decoration: none;
    font-size: 14px; font-weight: 600;
    padding: 10px 13px; border-radius: var(--radius-sm);
    transition: background 0.18s;
}
.sidebar-logout:hover { background: rgba(217,64,64,0.07); }

/* ══════════════════════════════════════════
   HEADER
══════════════════════════════════════════ */
.app-header {
    position: sticky; top: 0;
    height: var(--header-h);
    background: var(--white);
    border-bottom: 1px solid var(--border);
    z-index: 100;
    display: flex; align-items: center;
    padding: 0 14px; gap: 10px;
    box-shadow: 0 1px 6px rgba(92,53,24,0.07);
}
.header-menu-btn {
    background: none; border: none;
    width: 36px; height: 36px;
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; font-size: 19px;
    color: var(--brown-dark);
    transition: background 0.15s;
    flex-shrink: 0;
}
.header-menu-btn:hover { background: var(--cream2); }

.header-logo-chip {
    display: flex; align-items: center; gap: 6px;
    background: linear-gradient(135deg, var(--brown-dark), var(--brown));
    padding: 5px 12px 5px 8px;
    border-radius: 20px;
}
.header-logo-chip-icon { font-size: 14px; }
.header-logo-chip-text { font-size: 14px; font-weight: 800; color: white; letter-spacing: 0.3px; }

.header-title {
    font-size: 16px; font-weight: 700;
    color: var(--text); flex: 1;
}
.header-actions { display: flex; gap: 7px; margin-left: auto; }
.header-btn {
    display: flex; align-items: center; gap: 5px;
    padding: 5px 11px;
    border-radius: 20px;
    border: 1.5px solid var(--brown-pale);
    background: transparent;
    color: var(--brown); font-size: 12px; font-weight: 600;
    cursor: pointer; text-decoration: none;
    transition: background 0.15s; font-family: 'Inter', sans-serif;
}
.header-btn:hover { background: var(--cream2); color: var(--brown-dark); }
.header-notif-dot {
    position: absolute; top: 6px; right: 6px;
    width: 7px; height: 7px;
    background: var(--danger); border-radius: 50%;
    border: 2px solid var(--white);
}

/* ══════════════════════════════════════════
   MAIN CONTENT
══════════════════════════════════════════ */
.main-content {
    padding: 14px 14px calc(var(--bar-h) + 14px);
}

/* ══════════════════════════════════════════
   BOTTOM MINING BAR
══════════════════════════════════════════ */
.mining-bar {
    position: fixed; bottom: 0; left: 50%; transform: translateX(-50%);
    width: 100%; max-width: 480px;
    height: var(--bar-h);
    background: linear-gradient(135deg, var(--brown-dark) 0%, var(--brown) 100%);
    border-top: none;
    z-index: 200;
    display: flex; align-items: stretch;
    box-shadow: 0 -4px 20px rgba(92,53,24,0.28);
}
.bar-item {
    flex: 1;
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    gap: 4px;
    text-decoration: none;
    color: rgba(255,255,255,0.55);
    font-size: 10px; font-weight: 600;
    text-transform: uppercase; letter-spacing: 0.3px;
    transition: color 0.18s;
    cursor: pointer; position: relative;
    border: none; background: transparent; font-family: 'Inter', sans-serif;
}
.bar-item:hover, .bar-item.active { color: white; }
.bar-item.active::before {
    content: '';
    position: absolute; top: 0; left: 50%; transform: translateX(-50%);
    width: 28px; height: 3px;
    background: var(--brown-pale);
    border-radius: 0 0 4px 4px;
}
.bar-icon {
    font-size: 20px; line-height: 1;
    width: 28px; height: 28px;
    display: flex; align-items: center; justify-content: center;
}

/* Center mine button */
.bar-mine-btn {
    flex: 1;
    display: flex; flex-direction: column;
    align-items: center; justify-content: center; gap: 0;
    cursor: pointer; border: none; background: transparent;
    font-family: 'Inter', sans-serif; color: rgba(255,255,255,0.7);
    position: relative;
}
.bar-mine-circle {
    width: 52px; height: 52px; border-radius: 50%;
    background: linear-gradient(135deg, var(--brown-xpale), var(--brown-pale));
    border: 3px solid rgba(255,255,255,0.28);
    display: flex; align-items: center; justify-content: center;
    font-size: 22px;
    box-shadow: 0 0 16px rgba(212,169,122,0.5);
    transition: all 0.3s;
    position: relative; top: -7px;
}
.bar-mine-circle.mining {
    background: linear-gradient(135deg, #4ADE80, #16A34A);
    box-shadow: 0 0 22px rgba(74,222,128,0.55);
    animation: mine-pulse 1.4s ease-in-out infinite;
}
@keyframes mine-pulse {
    0%,100% { transform: scale(1); }
    50% { transform: scale(1.08); }
}
.bar-mine-label {
    font-size: 10px; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.4px;
    color: white; margin-top: -5px;
}

/* ══════════════════════════════════════════
   CARDS
══════════════════════════════════════════ */
.card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 18px;
    margin-bottom: 14px;
    box-shadow: var(--shadow);
}

/* Balance card */
.balance-card {
    background: linear-gradient(135deg, var(--brown-dark) 0%, var(--brown) 60%, #C0855A 100%);
    border-radius: var(--radius);
    padding: 22px 18px;
    margin-bottom: 14px;
    position: relative; overflow: hidden;
    box-shadow: var(--shadow-md);
}
.balance-card::before {
    content: '';
    position: absolute; top: -25px; right: -25px;
    width: 110px; height: 110px; border-radius: 50%;
    background: rgba(255,255,255,0.07);
}
.balance-card::after {
    content: '';
    position: absolute; bottom: -30px; left: -15px;
    width: 90px; height: 90px; border-radius: 50%;
    background: rgba(255,255,255,0.04);
}
.balance-label {
    font-size: 11px; color: rgba(255,255,255,0.6);
    text-transform: uppercase; letter-spacing: 1px; margin-bottom: 7px;
}
.balance-amount {
    font-size: 30px; font-weight: 900; color: white;
    letter-spacing: -0.5px; position: relative; z-index: 1;
}
.balance-usd { font-size: 13px; color: rgba(255,255,255,0.5); margin-top: 3px; }
.balance-actions {
    display: flex; gap: 10px;
    margin-top: 18px; position: relative; z-index: 1;
}
.balance-btn {
    flex: 1; padding: 10px;
    border-radius: var(--radius-sm);
    border: none; cursor: pointer;
    display: flex; align-items: center; justify-content: center; gap: 6px;
    font-family: 'Inter', sans-serif; font-size: 13px; font-weight: 600;
    text-decoration: none; transition: all 0.18s;
}
.btn-deposit { background: var(--accent); color: white; }
.btn-deposit:hover { background: #158a5b; color: white; }
.btn-withdraw { background: rgba(255,255,255,0.14); color: white; border: 1px solid rgba(255,255,255,0.18); }
.btn-withdraw:hover { background: rgba(255,255,255,0.22); color: white; }

/* Mining status card */
.mining-status-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 18px; margin-bottom: 14px;
    box-shadow: var(--shadow);
}
.mining-status-header {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 14px;
}
.mining-status-title { font-size: 15px; font-weight: 700; }
.status-badge {
    padding: 4px 12px; border-radius: 20px;
    font-size: 11px; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.4px;
}
.status-active {
    background: rgba(26,158,106,0.12); color: var(--accent);
    border: 1px solid rgba(26,158,106,0.28);
}
.status-idle {
    background: rgba(160,128,96,0.1); color: var(--text-muted);
    border: 1px solid var(--border);
}
.mining-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.mining-stat {
    background: var(--cream);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm); padding: 13px;
}
.mining-stat-label {
    font-size: 10px; color: var(--text-muted);
    text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 5px;
}
.mining-stat-value { font-size: 15px; font-weight: 800; color: var(--text); }
.mining-stat-value.green { color: var(--accent); }
.mining-stat-value.yellow { color: var(--warning); }

.mine-progress-wrap { margin-top: 13px; }
.mine-progress-label {
    display: flex; justify-content: space-between;
    font-size: 12px; color: var(--text-muted); margin-bottom: 6px;
}
.mine-progress-bar {
    height: 6px; background: var(--cream3);
    border-radius: 10px; overflow: hidden;
}
.mine-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--brown), var(--accent));
    border-radius: 10px;
    transition: width 1s linear;
}

/* Section header */
.section-header {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 12px;
}
.section-title { font-size: 15px; font-weight: 700; color: var(--text); }
.section-link { font-size: 12px; color: var(--brown); text-decoration: none; font-weight: 600; }

/* Stats grid */
.stats-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 14px; }
.stat-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius); padding: 14px;
    box-shadow: var(--shadow);
}
.stat-icon {
    width: 36px; height: 36px; border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    font-size: 17px; margin-bottom: 10px;
}
.icon-purple { background: rgba(123,79,46,0.12); }
.icon-green  { background: rgba(26,158,106,0.12); }
.icon-yellow { background: rgba(217,119,6,0.12); }
.icon-blue   { background: rgba(37,99,235,0.10); }
.stat-value { font-size: 17px; font-weight: 900; color: var(--text); }
.stat-label { font-size: 11px; color: var(--text-muted); margin-top: 3px; }

/* ══════════════════════════════════════════
   TRANSACTION LIST
══════════════════════════════════════════ */
.txn-list {}
.txn-item {
    display: flex; align-items: center; gap: 12px;
    padding: 13px 0;
    border-bottom: 1px solid var(--border);
}
.txn-item:last-child { border-bottom: none; }
.txn-icon {
    width: 40px; height: 40px; border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    font-size: 18px; flex-shrink: 0;
}
.txn-info { flex: 1; min-width: 0; }
.txn-type { font-size: 13px; font-weight: 600; color: var(--text); }
.txn-date { font-size: 11px; color: var(--text-muted); margin-top: 2px; }
.txn-amount { font-size: 13px; font-weight: 700; }
.txn-amount.credit { color: var(--accent); }
.txn-amount.debit  { color: var(--danger); }
.txn-status { font-size: 10px; margin-top: 2px; text-align: right; }
.s-pending   { color: var(--warning); }
.s-completed { color: var(--accent); }
.s-failed    { color: var(--danger); }

/* ══════════════════════════════════════════
   PLANS
══════════════════════════════════════════ */
.plans-grid { display: flex; flex-direction: column; gap: 12px; }
.plan-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius); padding: 18px;
    position: relative; overflow: hidden;
    box-shadow: var(--shadow);
    transition: border-color 0.2s;
}
.plan-card.featured {
    border-color: var(--brown);
    background: linear-gradient(135deg, rgba(123,79,46,0.07), var(--card));
}
.plan-badge {
    position: absolute; top: 14px; right: 14px;
    background: var(--brown); color: white;
    font-size: 10px; font-weight: 700;
    padding: 3px 10px; border-radius: 20px; text-transform: uppercase;
}
.plan-name { font-size: 18px; font-weight: 900; margin-bottom: 3px; color: var(--text); }
.plan-rate { font-size: 13px; color: var(--accent); margin-bottom: 10px; font-weight: 600; }
.plan-price { font-size: 24px; font-weight: 900; color: var(--text); }
.plan-price span { font-size: 14px; color: var(--text-muted); font-weight: 400; }
.plan-features { margin: 10px 0; }
.plan-feature {
    display: flex; align-items: center; gap: 8px;
    font-size: 13px; color: var(--text-mid); margin-bottom: 5px;
}
.plan-feature::before { content: '✓'; color: var(--accent); font-weight: 700; }

/* ══════════════════════════════════════════
   FORMS
══════════════════════════════════════════ */
.form-group { margin-bottom: 14px; }
.form-label {
    display: block; font-size: 12px; font-weight: 700;
    color: var(--text-muted); margin-bottom: 7px;
    text-transform: uppercase; letter-spacing: 0.5px;
}
.form-input, .form-select {
    width: 100%; padding: 12px 14px;
    background: var(--cream);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text); font-family: 'Inter', sans-serif;
    font-size: 15px; outline: none;
    transition: border-color 0.18s, background 0.18s;
    -webkit-appearance: none;
}
.form-input:focus, .form-select:focus {
    border-color: var(--brown);
    background: var(--white);
}
.form-input::placeholder { color: var(--text-muted); }
.form-select option { background: var(--white); }
.form-hint { font-size: 11px; color: var(--text-muted); margin-top: 5px; }

/* ══════════════════════════════════════════
   BUTTONS
══════════════════════════════════════════ */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 12px 22px;
    border-radius: var(--radius-sm); border: none;
    font-family: 'Inter', sans-serif; font-size: 14px; font-weight: 700;
    cursor: pointer; transition: all 0.18s;
    text-decoration: none; width: 100%;
}
.btn-primary {
    background: linear-gradient(135deg, var(--brown-dark), var(--brown));
    color: white;
    box-shadow: 0 3px 14px rgba(92,53,24,0.28);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 5px 20px rgba(92,53,24,0.38); color: white; }
.btn-outline {
    background: transparent; color: var(--brown);
    border: 1.5px solid var(--brown);
}
.btn-outline:hover { background: rgba(123,79,46,0.07); }
.btn-danger  { background: var(--danger); color: white; }
.btn-success { background: var(--accent); color: white; }
.btn-sm { padding: 8px 16px; font-size: 13px; }

/* ══════════════════════════════════════════
   ALERTS
══════════════════════════════════════════ */
.alert {
    padding: 12px 14px; border-radius: var(--radius-sm);
    margin-bottom: 14px; font-size: 13px;
    display: flex; align-items: flex-start; gap: 9px;
}
.alert-success { background: rgba(26,158,106,0.1); border: 1px solid rgba(26,158,106,0.28); color: #0F7A52; }
.alert-error   { background: rgba(217,64,64,0.09); border: 1px solid rgba(217,64,64,0.28); color: var(--danger); }
.alert-info    { background: rgba(123,79,46,0.09); border: 1px solid rgba(123,79,46,0.25); color: var(--brown-dark); }
.alert-warning { background: rgba(217,119,6,0.1);  border: 1px solid rgba(217,119,6,0.28);  color: var(--warning); }

/* ══════════════════════════════════════════
   PROFILE
══════════════════════════════════════════ */
.profile-hero {
    background: linear-gradient(135deg, var(--brown-dark) 0%, var(--brown) 60%, #C0855A 100%);
    border-radius: var(--radius); padding: 26px 18px;
    text-align: center; margin-bottom: 14px;
    position: relative; overflow: hidden;
    box-shadow: var(--shadow-md);
}
.profile-avatar {
    width: 76px; height: 76px; border-radius: 50%;
    background: rgba(255,255,255,0.2);
    display: flex; align-items: center; justify-content: center;
    font-weight: 900; font-size: 30px; color: white;
    margin: 0 auto 12px;
    border: 3px solid rgba(255,255,255,0.3);
    overflow: hidden;
}
.profile-avatar img { width:100%; height:100%; object-fit:cover; }
.profile-name  { font-size: 21px; font-weight: 900; color: white; }
.profile-email { font-size: 13px; color: rgba(255,255,255,0.5); margin-top: 3px; }
.profile-plan  {
    display: inline-flex; align-items: center; gap: 5px;
    margin-top: 10px;
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.25);
    color: white; padding: 5px 14px; border-radius: 20px;
    font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.4px;
}
.profile-stats {
    display: grid; grid-template-columns: 1fr 1fr 1fr;
    gap: 10px; margin-bottom: 14px;
}
.profile-stat {
    background: var(--card); border: 1px solid var(--border);
    border-radius: var(--radius-sm); padding: 13px; text-align: center;
    box-shadow: var(--shadow);
}
.profile-stat-value { font-size: 15px; font-weight: 900; color: var(--text); }
.profile-stat-label { font-size: 10px; color: var(--text-muted); margin-top: 3px; text-transform: uppercase; }

/* ══════════════════════════════════════════
   AUTH PAGES
══════════════════════════════════════════ */
body.auth-body {
    max-width: 100%;
    background: var(--cream2);
    display: flex; align-items: center; justify-content: center;
    min-height: 100vh; padding: 20px;
}
.auth-page { width: 100%; max-width: 400px; margin: 0 auto; }
.auth-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 20px; padding: 30px 24px;
    box-shadow: var(--shadow-md);
}
.auth-logo { text-align: center; margin-bottom: 24px; }
.auth-logo-icon {
    width: 60px; height: 60px;
    background: linear-gradient(135deg, var(--brown-dark), var(--brown));
    border-radius: 18px;
    display: flex; align-items: center; justify-content: center;
    font-size: 26px; margin: 0 auto 10px;
    box-shadow: 0 4px 16px rgba(92,53,24,0.3);
}
.auth-logo-name {
    font-size: 22px; font-weight: 900; color: var(--brown-dark);
    letter-spacing: 0.3px;
}
.auth-logo-sub { font-size: 12px; color: var(--text-muted); margin-top: 3px; }
.auth-title { font-size: 20px; font-weight: 800; margin-bottom: 4px; }
.auth-sub   { font-size: 13px; color: var(--text-muted); margin-bottom: 22px; }
.auth-footer {
    text-align: center; margin-top: 18px;
    font-size: 13px; color: var(--text-muted);
}
.auth-footer a { color: var(--brown); text-decoration: none; font-weight: 700; }
.divider {
    text-align: center; color: var(--text-muted);
    font-size: 12px; margin: 14px 0; position: relative;
}
.divider::before, .divider::after {
    content: ''; position: absolute; top: 50%;
    width: 42%; height: 1px; background: var(--border);
}
.divider::before { left: 0; }
.divider::after  { right: 0; }

/* ══════════════════════════════════════════
   REFERRAL COPY BOX
══════════════════════════════════════════ */
.referral-code-box {
    display: flex; align-items: center; gap: 10px;
    background: rgba(123,79,46,0.07);
    border: 1.5px dashed var(--brown-pale);
    border-radius: var(--radius-sm); padding: 14px 15px;
}
.referral-code {
    font-size: 22px; font-weight: 900;
    letter-spacing: 4px; color: var(--brown-dark); flex: 1;
}
.copy-btn {
    background: rgba(123,79,46,0.12);
    border: 1px solid var(--brown-pale);
    border-radius: 8px; color: var(--brown);
    padding: 7px 12px; cursor: pointer;
    font-size: 13px; font-weight: 600;
    transition: background 0.18s; font-family: 'Inter', sans-serif;
    white-space: nowrap;
}
.copy-btn:hover { background: rgba(123,79,46,0.22); }
.copy-btn.copied { background: rgba(26,158,106,0.15); color: var(--accent); border-color: rgba(26,158,106,0.35); }

/* ══════════════════════════════════════════
   NOTICE MARQUEE
══════════════════════════════════════════ */
.notice-bar {
    background: linear-gradient(90deg, var(--brown-dark), var(--brown));
    color: white; padding: 7px 14px;
    display: flex; align-items: center; gap: 8px;
    font-size: 12px; font-weight: 500; overflow: hidden;
}
.notice-icon { font-size: 13px; flex-shrink: 0; }
.marquee-wrap { overflow: hidden; flex: 1; }
.marquee-inner {
    display: inline-block;
    animation: marquee 22s linear infinite;
    white-space: nowrap;
}
@keyframes marquee { 0%{transform:translateX(100%)} 100%{transform:translateX(-100%)} }

/* ══════════════════════════════════════════
   UTILITY
══════════════════════════════════════════ */
.text-center  { text-align: center; }
.text-muted   { color: var(--text-muted); }
.text-green   { color: var(--accent); }
.text-yellow  { color: var(--warning); }
.text-red     { color: var(--danger); }
.text-brown   { color: var(--brown); }
.mb-0  { margin-bottom: 0 !important; }
.mb-8  { margin-bottom: 8px; }
.mb-14 { margin-bottom: 14px; }
.mt-8  { margin-top: 8px; }
.mt-14 { margin-top: 14px; }
.fw-700 { font-weight: 700; }
.fw-900 { font-weight: 900; }
.fs-12 { font-size: 12px; }
.fs-13 { font-size: 13px; }
.d-flex { display: flex; }
.align-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-8  { gap: 8px; }
.gap-12 { gap: 12px; }
.w-100  { width: 100%; }
.hidden { display: none !important; }

/* password toggle */
.toggle-pass {
    position: absolute; right: 13px; top: 50%; transform: translateY(-50%);
    background: none; border: none; cursor: pointer;
    font-size: 16px; color: var(--text-muted);
}
