/* ========================================================
   TBC — THE BURNING COIN
   Premium Fire & Gold Web3 DApp Design System
   ======================================================== */

:root {
    --bg-dark: #070709;
    --bg-card: rgba(18, 18, 24, 0.75);
    --bg-card-hover: rgba(28, 28, 38, 0.85);
    --border-gold: rgba(255, 185, 0, 0.25);
    --border-gold-bright: #ffb900;
    --border-fire: rgba(255, 68, 0, 0.35);

    --primary-gold: #ffb900;
    --primary-fire: #ff4500;
    --fire-gradient: linear-gradient(135deg, #ff4500 0%, #ff8c00 50%, #ffb900 100%);
    --gold-gradient: linear-gradient(135deg, #ffd700 0%, #ffaa00 100%);
    --card-gradient: linear-gradient(145deg, rgba(26, 20, 15, 0.85) 0%, rgba(12, 10, 10, 0.9) 100%);

    --text-main: #ffffff;
    --text-muted: #a0a5b5;
    --text-gold: #ffd700;

    --glow-fire: 0 0 25px rgba(255, 69, 0, 0.45);
    --glow-gold: 0 0 25px rgba(255, 185, 0, 0.4);
    --radius-lg: 18px;
    --radius-md: 12px;
    --radius-sm: 8px;
}

html {
    overflow-x: hidden !important;
    width: 100% !important;
    max-width: 100vw !important;
    box-sizing: border-box;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    min-height: 100vh;
    overflow-x: hidden !important;
    width: 100% !important;
    max-width: 100vw !important;
    position: relative;
}

#fireCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.app-wrapper {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    width: 100% !important;
    max-width: 100vw !important;
    overflow-x: hidden !important;
}

/* Ensure all long strings / hashes / addresses break cleanly on all screens */
.font-monospace,
.wallet-full-addr,
[id^="addr"],
.contract-card-addr,
code,
pre {
    word-break: break-all !important;
    overflow-wrap: anywhere !important;
    word-wrap: break-word !important;
    white-space: normal !important;
    max-width: 100% !important;
}

/* Header & Nav */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem 2.5rem;
    background: rgba(10, 10, 14, 0.8);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid var(--border-gold);
    position: sticky;
    top: 0;
    z-index: 100;
    width: 100%;
    max-width: 100vw;
    box-sizing: border-box;
}

.brand-container {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.2s ease, opacity 0.2s ease;
    flex-shrink: 0;
}

.brand-container:hover {
    transform: scale(1.02);
    opacity: 0.95;
}

.brand-logo {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    box-shadow: var(--glow-gold);
    border: 2px solid var(--primary-gold);
    flex-shrink: 0;
}

.brand-text-wrap {
    display: flex;
    flex-direction: column;
    justify-content: center;
    line-height: 1.1;
}

.brand-name-top {
    font-size: 1.05rem;
    font-weight: 800;
    background: var(--gold-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: 0.5px;
    white-space: nowrap;
    text-transform: uppercase;
}

.brand-name-bottom {
    font-size: 0.95rem;
    font-weight: 900;
    color: #ff8c00;
    letter-spacing: 1.8px;
    white-space: nowrap;
    text-transform: uppercase;
}

.brand-tagline {
    font-size: 0.68rem;
    color: var(--text-muted);
    letter-spacing: 1.2px;
    text-transform: uppercase;
    margin-top: 2px;
}

.nav-links {
    display: flex;
    gap: 1rem;
}

.nav-item {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 0.95rem;
    font-weight: 600;
    padding: 0.6rem 1.1rem;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.25s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-item:hover, .nav-item.active {
    color: #fff;
    background: rgba(255, 185, 0, 0.12);
    border: 1px solid var(--border-gold);
    box-shadow: 0 0 15px rgba(255, 185, 0, 0.2);
}

.nav-item.active {
    color: var(--primary-gold);
    border-color: var(--primary-gold);
}

.mobile-menu-toggle {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: var(--text-gold, #ffd700);
    padding: 0.65rem 0.85rem;
    border-radius: var(--radius-sm, 8px);
    font-size: 1.1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.mobile-menu-toggle:hover {
    background: rgba(255, 185, 0, 0.15);
    border-color: var(--primary-gold);
    box-shadow: 0 0 12px rgba(255, 185, 0, 0.25);
}

.wallet-btn {
    background: var(--fire-gradient);
    color: #fff;
    font-weight: 700;
    border: none;
    padding: 0.7rem 1.4rem;
    border-radius: var(--radius-md);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    box-shadow: var(--glow-fire);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.wallet-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 30px rgba(255, 69, 0, 0.7);
}

/* Main Container */
.main-content {
    flex: 1;
    max-width: 1280px;
    width: 100%;
    margin: 0 auto;
    padding: 2rem 1.5rem;
}

/* Hero Section */
.hero-banner {
    background: var(--card-gradient);
    border: 1px solid var(--border-gold);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    margin-bottom: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    backdrop-filter: blur(12px);
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}

.hero-banner::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255, 69, 0, 0.25) 0%, transparent 70%);
    pointer-events: none;
}

.hero-left h1 {
    font-size: 2.3rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, #ffffff 0%, #ffd700 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-left p {
    color: var(--text-muted);
    font-size: 1.05rem;
    max-width: 600px;
    line-height: 1.6;
}

.price-pill-badge {
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid var(--primary-gold);
    border-radius: 50px;
    padding: 0.8rem 1.6rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: var(--glow-gold);
}

.price-pill-badge .label {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-transform: uppercase;
}

.price-pill-badge .value {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary-gold);
}

/* Stats Cards Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.25rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border-gold);
    border-radius: var(--radius-md);
    padding: 1.4rem;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.stat-card:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-gold-bright);
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
}

.stat-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-muted);
    font-size: 0.85rem;
    text-transform: uppercase;
    font-weight: 600;
}

.stat-icon {
    color: var(--primary-gold);
    font-size: 1.1rem;
}

.stat-value {
    font-size: 1.6rem;
    font-weight: 800;
    color: #fff;
    margin-top: 0.2rem;
}

.stat-sub {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Sections & Tabs */
.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.35s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Glass Card */
.glass-card {
    background: var(--bg-card);
    border: 1px solid var(--border-gold);
    border-radius: var(--radius-lg);
    padding: 2rem;
    backdrop-filter: blur(14px);
    margin-bottom: 2rem;
}

.card-title {
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--primary-gold);
}

/* Deposit / Package Matrix */
.package-selector {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 0.9rem;
    margin: 1.5rem 0;
}

.pkg-choice-btn {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-gold);
    border-radius: var(--radius-sm);
    padding: 1rem 0.5rem;
    color: #fff;
    font-size: 1.15rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
}

.pkg-choice-btn:hover, .pkg-choice-btn.selected {
    background: rgba(255, 185, 0, 0.2);
    border-color: var(--primary-gold);
    color: var(--primary-gold);
    box-shadow: 0 0 15px rgba(255, 185, 0, 0.3);
}

/* Action Buttons */
.btn-fire-action {
    width: 100%;
    background: var(--fire-gradient);
    color: #fff;
    font-size: 1.1rem;
    font-weight: 700;
    border: none;
    border-radius: var(--radius-md);
    padding: 1rem;
    cursor: pointer;
    box-shadow: var(--glow-fire);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
}

.btn-fire-action:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 0 30px rgba(255, 69, 0, 0.8);
}

.btn-fire-action:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    box-shadow: none;
}

/* Progress bar */
.progress-bar-container {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    height: 10px;
    overflow: hidden;
    margin: 0.6rem 0;
}

.progress-bar-fill {
    background: var(--fire-gradient);
    height: 100%;
    border-radius: 20px;
    transition: width 0.4s ease;
}

/* Premium Package Cards */
.package-item-card {
    background: linear-gradient(135deg, rgba(20, 20, 25, 0.85) 0%, rgba(10, 10, 12, 0.95) 100%);
    border: 1px solid rgba(255, 185, 0, 0.25);
    border-radius: 14px;
    padding: 1.4rem;
    margin-bottom: 1.2rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.package-item-card:hover {
    border-color: var(--primary-gold);
    box-shadow: 0 12px 30px rgba(255, 185, 0, 0.15);
    transform: translateY(-2px);
}

.package-item-card.is-active::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--fire-gradient);
}

.package-item-card.is-closed::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: #64748b;
}

.pkg-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.pkg-id-title {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--primary-gold);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.pkg-status-badge {
    padding: 0.35rem 0.85rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.pkg-status-badge.active-badge {
    background: rgba(16, 185, 129, 0.15);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.4);
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.2);
}

.pkg-status-badge.closed-badge {
    background: rgba(148, 163, 184, 0.15);
    color: #94a3b8;
    border: 1px solid rgba(148, 163, 184, 0.3);
}

.pkg-metrics-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
    background: rgba(0, 0, 0, 0.45);
    padding: 0.9rem 1rem;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    margin-bottom: 1rem;
}

@media (max-width: 600px) {
    .pkg-metrics-grid {
        grid-template-columns: 1fr;
        gap: 0.6rem;
    }
}

.pkg-metric-item {
    display: flex;
    flex-direction: column;
}

.pkg-metric-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.2rem;
}

.pkg-metric-val {
    font-size: 1.05rem;
    font-weight: 700;
    color: #fff;
}

.pkg-progress-wrap {
    margin-top: 0.6rem;
}

.pkg-progress-bar {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    height: 8px;
    overflow: hidden;
    position: relative;
    margin-bottom: 0.5rem;
}

.pkg-progress-fill {
    background: linear-gradient(90deg, #ff4500 0%, #ff8c00 50%, #ffb900 100%);
    height: 100%;
    border-radius: 20px;
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 0 10px rgba(255, 69, 0, 0.5);
}

.pkg-progress-footer {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Swap Box */
.swap-container {
    max-width: 520px;
    margin: 0 auto;
    background: var(--card-gradient);
    border: 1px solid var(--border-gold);
    border-radius: var(--radius-lg);
    padding: 2.2rem;
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.6);
}

.swap-input-group {
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    padding: 1rem 1.2rem;
    margin-bottom: 1.2rem;
}

.swap-input-header {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 0.4rem;
}

.swap-input-field {
    width: 100%;
    background: none;
    border: none;
    outline: none;
    font-size: 1.4rem;
    font-weight: 700;
    color: #fff;
}

.swap-quote-box {
    background: rgba(255, 185, 0, 0.05);
    border: 1px dashed var(--border-gold);
    border-radius: var(--radius-sm);
    padding: 1rem;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    color: var(--text-muted);
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.swap-quote-row {
    display: flex;
    justify-content: space-between;
}

/* Dashboard Quick Filter Bar */
.dashboard-quick-bar {
    display: flex;
    gap: 0.6rem;
    overflow-x: auto;
    padding: 0.5rem 0.2rem 1rem 0.2rem;
    margin-bottom: 2rem;
    scrollbar-width: thin;
    scrollbar-color: var(--primary-gold) rgba(0,0,0,0.5);
}

.dashboard-quick-bar::-webkit-scrollbar {
    height: 5px;
}

.dashboard-quick-bar::-webkit-scrollbar-thumb {
    background: var(--primary-gold);
    border-radius: 4px;
}

.section-filter-btn {
    white-space: nowrap;
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.04);
}

.section-filter-btn:hover, .section-filter-btn.active {
    background: rgba(255, 185, 0, 0.15);
    border-color: var(--primary-gold);
    color: var(--primary-gold);
    box-shadow: 0 0 15px rgba(255, 185, 0, 0.25);
}

/* Rank Active Row Highlight */
.active-rank-row {
    background: rgba(255, 185, 0, 0.18) !important;
    border-left: 4px solid var(--primary-gold) !important;
    box-shadow: inset 0 0 15px rgba(255, 185, 0, 0.2);
}

.active-rank-badge {
    background: var(--gold-gradient);
    color: #000;
    font-weight: 800;
    font-size: 0.75rem;
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    margin-left: 0.5rem;
}

/* Toast Notification System */
.tbc-toast-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 99999;
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 400px;
    width: calc(100% - 48px);
    pointer-events: none;
}

.tbc-toast {
    pointer-events: auto;
    background: rgba(18, 18, 24, 0.95);
    border: 1px solid var(--border-gold);
    backdrop-filter: blur(16px);
    border-radius: var(--radius-md);
    padding: 1rem 1.2rem;
    color: #fff;
    box-shadow: 0 10px 30px rgba(0,0,0,0.7);
    display: flex;
    align-items: center;
    gap: 0.8rem;
    animation: slideInRight 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.tbc-toast.fade-out {
    opacity: 0;
    transform: translateX(100px);
}

.tbc-toast-info {
    border-left: 4px solid #3b82f6;
}
.tbc-toast-info .toast-icon {
    color: #3b82f6;
}

.tbc-toast-success {
    border-left: 4px solid #10b981;
}
.tbc-toast-success .toast-icon {
    color: #10b981;
}

.tbc-toast-warning {
    border-left: 4px solid #f59e0b;
}
.tbc-toast-warning .toast-icon {
    color: #f59e0b;
}

.tbc-toast-error {
    border-left: 4px solid #ef4444;
}
.tbc-toast-error .toast-icon {
    color: #ef4444;
}

.toast-icon {
    font-size: 1.3rem;
}

.toast-content {
    flex: 1;
    font-size: 0.9rem;
    line-height: 1.4;
}

.toast-close {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.3rem;
    cursor: pointer;
    padding: 0 0.3rem;
    transition: color 0.2s;
}

.toast-close:hover {
    color: #fff;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(100px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Wallet Connected Pill */
.wallet-badge-env {
    background: rgba(255, 185, 0, 0.2);
    border: 1px solid var(--primary-gold);
    color: var(--primary-gold);
    font-size: 0.7rem;
    font-weight: 800;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    margin-left: 0.4rem;
    text-transform: uppercase;
}

/* Wallet Dropdown Menu */
.wallet-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: 290px;
    background: rgba(18, 18, 24, 0.96);
    border: 1px solid var(--border-gold);
    backdrop-filter: blur(20px);
    border-radius: var(--radius-md);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.85), var(--glow-gold);
    z-index: 1000;
    padding: 0.9rem;
    animation: fadeInDown 0.25s ease;
}

@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}

.wallet-dropdown-header {
    background: rgba(0, 0, 0, 0.5);
    padding: 0.7rem 0.9rem;
    border-radius: 8px;
    margin-bottom: 0.6rem;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.wallet-full-addr {
    font-size: 0.8rem;
    color: var(--primary-gold);
    word-break: break-all;
    margin-top: 0.25rem;
    line-height: 1.3;
}

.wallet-dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    width: 100%;
    background: none;
    border: none;
    color: #fff;
    padding: 0.65rem 0.8rem;
    font-size: 0.88rem;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.wallet-dropdown-item:hover {
    background: rgba(255, 255, 255, 0.08);
}

.wallet-dropdown-item.text-danger {
    color: #ef4444;
}

.wallet-dropdown-item.text-danger:hover {
    background: rgba(239, 68, 68, 0.15);
}

.wallet-dropdown-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.08);
    margin: 0.5rem 0;
}

/* Mobile Hamburger Menu Toggle Button */
.mobile-menu-toggle {
    display: none;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-gold);
    color: var(--primary-gold);
    font-size: 1.25rem;
    padding: 0.55rem 0.8rem;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.25s ease;
    align-items: center;
    justify-content: center;
}

.mobile-menu-toggle:hover, .mobile-menu-toggle:active {
    background: rgba(255, 185, 0, 0.2);
    border-color: var(--border-gold-bright);
    box-shadow: 0 0 15px rgba(255, 185, 0, 0.35);
}

/* Mobile Off-Canvas Navigation Drawer */
.mobile-nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(8px);
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.mobile-nav-overlay.open {
    opacity: 1;
    visibility: visible;
}

.mobile-nav-drawer {
    position: fixed;
    top: 0;
    right: 0;
    width: 320px;
    max-width: 85vw;
    height: 100vh;
    background: linear-gradient(180deg, #121018 0%, #08080c 100%);
    border-left: 1px solid var(--border-gold);
    box-shadow: -10px 0 35px rgba(0, 0, 0, 0.9), var(--glow-gold);
    z-index: 10001;
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.mobile-nav-drawer.open {
    transform: translateX(0);
}

.drawer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 1.2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.drawer-close-btn {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-muted);
    font-size: 1.1rem;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.drawer-close-btn:hover {
    color: #fff;
    border-color: var(--primary-gold);
    background: rgba(255, 185, 0, 0.15);
}

.drawer-body {
    padding: 1.2rem;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    flex: 1;
}

.drawer-nav-item {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    padding: 0.85rem 1rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-sm);
    color: var(--text-main);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 600;
    transition: all 0.25s ease;
}

.drawer-nav-item i {
    font-size: 1.1rem;
    width: 24px;
    color: var(--primary-gold);
    text-align: center;
}

.drawer-nav-item:hover, .drawer-nav-item.active {
    background: rgba(255, 185, 0, 0.15);
    border-color: var(--primary-gold);
    color: var(--primary-gold);
    transform: translateX(4px);
    box-shadow: 0 0 15px rgba(255, 185, 0, 0.2);
}

.drawer-footer {
    padding: 1.2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

/* Mobile Fixed Bottom Navigation Bar */
.mobile-bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 64px;
    background: rgba(10, 10, 14, 0.94);
    backdrop-filter: blur(20px);
    border-top: 1px solid var(--border-gold);
    z-index: 999;
    justify-content: space-around;
    align-items: center;
    padding: 0 0.5rem;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.6);
}

.mobile-bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.2rem;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.68rem;
    font-weight: 600;
    padding: 0.4rem 0.6rem;
    border-radius: 8px;
    transition: all 0.2s ease;
    flex: 1;
    cursor: pointer;
    background: none;
    border: none;
}

.mobile-bottom-nav-item i {
    font-size: 1.15rem;
    transition: transform 0.2s;
}

.mobile-bottom-nav-item.active, .mobile-bottom-nav-item:hover {
    color: var(--primary-gold);
}

.mobile-bottom-nav-item.active i {
    color: var(--primary-gold);
    transform: translateY(-2px);
    filter: drop-shadow(0 0 8px rgba(255, 185, 0, 0.6));
}

/* Responsive Grid Helper Classes */
.responsive-two-col-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.responsive-three-col-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

/* Table Responsive Horizontal Scroll Wrapper & Hint */
.table-responsive-wrapper {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: 8px;
    margin-bottom: 0.5rem;
}

.table-scroll-hint {
    display: none;
    font-size: 0.75rem;
    color: var(--text-muted);
    text-align: right;
    margin-bottom: 0.5rem;
}

/* Footer */
.footer {
    text-align: center;
    padding: 2rem 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-top: auto;
}

/* ========================================================
   RESPONSIVE BREAKPOINTS
   ======================================================== */

/* Tablet & Smaller Desktops (<= 991px) */
@media (max-width: 991px) {
    .header {
        padding: 0.75rem 1rem;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        gap: 0.5rem;
        width: 100%;
        max-width: 100vw;
        box-sizing: border-box;
    }

    .brand-container {
        gap: 0.5rem;
        flex-shrink: 0;
    }

    .brand-logo {
        width: 38px;
        height: 38px;
        flex-shrink: 0;
    }

    .brand-name-top {
        font-size: 0.95rem;
    }

    .brand-name-bottom {
        font-size: 0.88rem;
    }

    .brand-tagline {
        display: none;
    }

    /* Hide desktop nav links; display mobile drawer toggle */
    .nav-links {
        display: none;
    }

    .mobile-menu-toggle {
        display: inline-flex;
        flex-shrink: 0;
    }

    .header-actions {
        display: flex;
        align-items: center;
        gap: 0.5rem;
        flex-shrink: 0;
    }

    .hero-banner {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
        padding: 1.8rem 1.5rem;
    }

    .hero-left h1 {
        font-size: 1.8rem;
    }

    .hero-left p {
        font-size: 0.95rem;
        margin: 0 auto;
    }

    .tbc-toast-container {
        right: 12px;
        bottom: 12px;
        width: calc(100% - 24px);
    }
}

/* Mobile Phones (<= 768px) */
@media (max-width: 768px) {
    body {
        padding-bottom: 74px; /* Space for bottom navigation bar */
    }

    .header {
        padding: 0.55rem 0.75rem;
        gap: 0.35rem;
    }

    .brand-container {
        gap: 0.45rem;
        flex-shrink: 0;
    }

    .brand-logo {
        width: 34px;
        height: 34px;
        flex-shrink: 0;
    }

    .brand-name-top {
        font-size: 0.78rem;
        font-weight: 800;
        letter-spacing: 0.3px;
    }

    .brand-name-bottom {
        font-size: 0.72rem;
        font-weight: 900;
        letter-spacing: 1.2px;
    }

    .brand-tagline {
        display: none;
    }

    .header-actions {
        display: flex;
        align-items: center;
        gap: 0.35rem;
        flex-shrink: 0;
    }

    .wallet-btn {
        padding: 0.42rem 0.6rem;
        font-size: 0.75rem;
        max-width: 140px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        gap: 0.35rem;
        border-radius: 8px;
    }

    .wallet-badge-env {
        display: none;
    }

    .mobile-menu-toggle {
        padding: 0.42rem 0.6rem;
        font-size: 1.05rem;
        flex-shrink: 0;
        border-radius: 8px;
    }

    .mobile-bottom-nav {
        display: flex;
    }

    .main-content {
        padding: 1rem 0.75rem;
        max-width: 100vw;
        box-sizing: border-box;
        overflow-x: hidden;
    }

    .hero-banner {
        padding: 1.25rem 1rem;
        border-radius: var(--radius-md);
        margin-bottom: 1.25rem;
    }

    .hero-left h1 {
        font-size: 1.4rem;
        line-height: 1.3;
    }

    .hero-left p {
        font-size: 0.85rem;
        line-height: 1.5;
    }

    .price-pill-badge {
        padding: 0.5rem 1rem;
        gap: 0.7rem;
        margin: 0 auto;
    }

    .price-pill-badge .value {
        font-size: 1.25rem;
    }

    /* 2-Column Balanced Stats Grid for Mobile */
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.65rem;
        margin-bottom: 1.25rem;
    }

    .stat-card {
        padding: 0.85rem 0.75rem;
    }

    .stat-value {
        font-size: 1.2rem;
        word-break: break-all;
    }

    .stat-header {
        font-size: 0.72rem;
    }

    .stat-sub {
        font-size: 0.7rem;
    }



    /* Dashboard Quick Filter Bar */
    .dashboard-quick-bar {
        margin-bottom: 1.25rem;
        padding-bottom: 0.5rem;
        gap: 0.45rem;
        -webkit-overflow-scrolling: touch;
    }

    .section-filter-btn {
        padding: 0.45rem 0.85rem;
        font-size: 0.82rem;
        flex-shrink: 0;
    }

    /* Glass Cards on Mobile */
    .glass-card {
        padding: 1.1rem 0.85rem;
        border-radius: 14px;
        margin-bottom: 1.25rem;
        max-width: 100%;
        box-sizing: border-box;
        overflow: hidden;
    }

    .card-title {
        font-size: 1.1rem;
        margin-bottom: 1rem;
        gap: 0.5rem;
    }

    /* Responsive Package Selector (3-4 per row on mobile) */
    .package-selector {
        grid-template-columns: repeat(auto-fill, minmax(70px, 1fr));
        gap: 0.5rem;
        margin: 1.1rem 0;
    }

    .pkg-choice-btn {
        padding: 0.7rem 0.2rem;
        font-size: 0.95rem;
        border-radius: 6px;
    }

    /* Action Buttons */
    .btn-fire-action {
        padding: 0.85rem 1rem;
        font-size: 0.95rem;
    }

    /* Swap Container */
    .swap-container {
        padding: 1.15rem 0.85rem;
    }

    .swap-input-group {
        padding: 0.8rem 0.85rem;
    }

    .swap-input-field {
        font-size: 1.2rem;
    }

    /* 10-Star Rank Table */
    .table-scroll-hint {
        display: block;
    }

    table th, table td {
        padding: 0.65rem 0.55rem !important;
        font-size: 0.8rem !important;
        white-space: nowrap;
    }

    .wallet-dropdown {
        width: calc(100vw - 30px);
        max-width: 290px;
        right: 0;
    }

    .tbc-toast-container {
        bottom: 74px; /* Above bottom nav */
        right: 12px;
        left: 12px;
        width: auto;
    }

    .footer {
        padding: 1.5rem 1rem;
        font-size: 0.78rem;
    }
}

/* Small Smart Phones (<= 480px) */
@media (max-width: 480px) {
    .header {
        padding: 0.5rem 0.6rem;
        gap: 0.3rem;
    }

    .brand-container {
        gap: 0.35rem;
    }

    .brand-logo {
        width: 30px;
        height: 30px;
    }

    .brand-name-top {
        font-size: 0.72rem;
        letter-spacing: 0.2px;
    }

    .brand-name-bottom {
        font-size: 0.68rem;
        letter-spacing: 1px;
    }

    .wallet-btn {
        padding: 0.38rem 0.5rem;
        font-size: 0.7rem;
        max-width: 120px;
    }

    .mobile-menu-toggle {
        padding: 0.38rem 0.55rem;
        font-size: 1rem;
    }

    .main-content {
        padding: 0.85rem 0.5rem;
    }

    .glass-card {
        padding: 0.95rem 0.7rem;
    }

    .card-title {
        font-size: 1.05rem;
    }

    .package-selector {
        grid-template-columns: repeat(auto-fill, minmax(62px, 1fr));
        gap: 0.4rem;
    }

    .pkg-choice-btn {
        padding: 0.6rem 0.15rem;
        font-size: 0.88rem;
    }

    /* Referral link row responsive */
    .referral-input-container {
        flex-direction: column !important;
    }

    .referral-input-container input {
        width: 100% !important;
    }

    .referral-input-container button {
        width: 100% !important;
    }

    /* Referral QR Code container */
    .referral-qr-box {
        flex-direction: column !important;
        text-align: center;
    }

    /* Deep links flex */
    .deep-links-wrapper {
        flex-direction: column !important;
    }
}

/* ==========================================================================
   PREMIUM STYLISH COMPONENTS (Main Contract, Pools, Statements & Ranks)
   ========================================================================== */

/* Main Contract Card */
.main-contract-glass-card {
    background: radial-gradient(circle at top right, rgba(255, 140, 0, 0.08), rgba(15, 15, 20, 0.95)) !important;
    border: 1px solid rgba(255, 185, 0, 0.3) !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 215, 0, 0.2) !important;
    position: relative;
    overflow: hidden;
}

.main-contract-glass-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #ff4500, #ff8c00, #ffd700, #10b981);
}

.main-contract-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.2rem;
    flex-wrap: wrap;
}

.main-contract-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid rgba(16, 185, 129, 0.4);
    color: #10b981;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.3rem 0.75rem;
    border-radius: 20px;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.main-contract-network-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: rgba(255, 215, 0, 0.1);
    border: 1px solid rgba(255, 215, 0, 0.25);
    color: #ffd700;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 0.35rem 0.85rem;
    border-radius: 20px;
}

.live-dot {
    width: 8px;
    height: 8px;
    background: #10b981;
    border-radius: 50%;
    box-shadow: 0 0 8px #10b981;
    display: inline-block;
    animation: pulse 2s infinite;
}

.main-contract-box {
    background: rgba(0, 0, 0, 0.55);
    border: 1px solid rgba(255, 185, 0, 0.2);
    border-radius: 12px;
    padding: 1.25rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 1.2rem;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.main-contract-box:hover {
    border-color: rgba(255, 215, 0, 0.45);
    box-shadow: 0 4px 20px rgba(255, 140, 0, 0.15);
}

.main-contract-box-left {
    flex: 1;
    min-width: 0;
}

.main-contract-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    display: block;
    margin-bottom: 0.35rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.main-contract-address-text {
    font-size: 1.05rem;
    font-weight: 700;
    color: #ffd700;
    letter-spacing: 0.5px;
}

.main-contract-actions {
    display: flex;
    gap: 0.75rem;
    flex-shrink: 0;
}

.btn-contract-action {
    padding: 0.65rem 1.1rem;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.25s ease;
}

.btn-copy-contract {
    background: linear-gradient(135deg, rgba(255, 140, 0, 0.25) 0%, rgba(255, 69, 0, 0.25) 100%);
    border: 1px solid rgba(255, 185, 0, 0.4);
    color: #fff;
}

.btn-copy-contract:hover {
    background: linear-gradient(135deg, rgba(255, 140, 0, 0.4) 0%, rgba(255, 69, 0, 0.4) 100%);
    border-color: #ffd700;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 140, 0, 0.3);
}

.btn-view-explorer {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #38bdf8;
}

.btn-view-explorer:hover {
    background: rgba(56, 189, 248, 0.15);
    border-color: #38bdf8;
    color: #fff;
    transform: translateY(-2px);
}

.main-contract-features-row {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    padding-top: 0.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.mcf-item {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.82rem;
    color: var(--text-muted);
}

/* Pool Feature Cards */
.pool-feature-card {
    background: rgba(18, 18, 24, 0.7) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 12px;
    padding: 1.4rem;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.pool-feature-card:hover {
    transform: translateY(-3px);
    border-color: rgba(255, 185, 0, 0.35) !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.pool-accent-bar {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
}

.pool-accent-daily { background: linear-gradient(90deg, #10b981, #059669); }
.pool-accent-weekly { background: linear-gradient(90deg, #a855f7, #6366f1); }
.pool-accent-admin { background: linear-gradient(90deg, #ffd700, #ff8c00); }

.pool-timer-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.22rem 0.65rem;
    background: rgba(255, 215, 0, 0.08);
    border: 1px solid rgba(255, 215, 0, 0.25);
    border-radius: 20px;
    font-size: 0.74rem;
    font-weight: 700;
    color: #ffd700;
    letter-spacing: 0.3px;
    font-family: monospace;
    white-space: nowrap;
}

.pool-meta-box {
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 0.9rem 1rem;
    border-radius: 8px;
    margin-top: 1rem;
}

.pool-meta-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
}

.pool-meta-row:not(:last-child) {
    margin-bottom: 0.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

/* Stylish Tables */
.stylish-table-container {
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 10px;
    overflow: hidden;
}

.stylish-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 0.86rem;
}

.stylish-table th {
    background: rgba(255, 185, 0, 0.08);
    color: var(--primary-gold);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.74rem;
    letter-spacing: 0.8px;
    padding: 0.85rem 1rem;
    border-bottom: 1px solid rgba(255, 185, 0, 0.2);
}

.stylish-table td {
    padding: 0.8rem 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    vertical-align: middle;
}

.stylish-table tbody tr {
    transition: background 0.2s ease;
}

.stylish-table tbody tr:hover {
    background: rgba(255, 215, 0, 0.04);
}

/* 10-Star Rank Highlights */
.rank-badge-cell {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.25rem 0.65rem;
    border-radius: 6px;
    font-weight: 700;
    font-size: 0.78rem;
    letter-spacing: 0.4px;
}

.rank-tier-bronze {
    background: rgba(205, 127, 50, 0.15);
    border: 1px solid rgba(205, 127, 50, 0.4);
    color: #e59866;
}

.rank-tier-gold {
    background: rgba(255, 215, 0, 0.15);
    border: 1px solid rgba(255, 215, 0, 0.4);
    color: #ffd700;
}

.rank-tier-diamond {
    background: rgba(168, 85, 247, 0.15);
    border: 1px solid rgba(168, 85, 247, 0.4);
    color: #c084fc;
}

.rank-tier-crown {
    background: linear-gradient(135deg, rgba(255, 69, 0, 0.25) 0%, rgba(255, 215, 0, 0.25) 100%);
    border: 1px solid #ffd700;
    color: #fff;
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.3);
}

.active-rank-row {
    background: linear-gradient(90deg, rgba(255, 140, 0, 0.18) 0%, rgba(255, 215, 0, 0.1) 100%) !important;
    border-left: 3px solid #ffd700 !important;
    font-weight: 700;
}

@media (max-width: 768px) {
    .main-contract-box {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    .main-contract-actions {
        width: 100%;
        flex-direction: column;
    }
    .btn-contract-action {
        width: 100%;
        justify-content: center;
    }
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 1; filter: drop-shadow(0 0 2px #ff4500); }
    50% { transform: scale(1.15); opacity: 0.8; filter: drop-shadow(0 0 6px #ffd700); }
    100% { transform: scale(1); opacity: 1; filter: drop-shadow(0 0 2px #ff4500); }
}

.package-item-card.is-active {
    border-color: rgba(255, 215, 0, 0.4);
    box-shadow: 0 4px 20px rgba(255, 140, 0, 0.12);
}

/* ==========================================================================
   UNIFIED WALLET BUTTON & DROPDOWN COMPONENT (IDENTICAL TO FRONTEND)
   ========================================================================== */
.wallet-container {
    position: relative;
    display: inline-block;
}

.wallet-btn {
    background: linear-gradient(135deg, #f15a0a 0%, #f7ba23 100%);
    color: #fff;
    font-family: 'Outfit', 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 0.875rem;
    border: none;
    padding: 8px 18px;
    border-radius: 9999px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 15px rgba(241, 90, 10, 0.35);
    transition: all 0.25s ease;
    text-decoration: none;
    line-height: 1.2;
}

.wallet-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(241, 90, 10, 0.5);
}

.wallet-btn.connected {
    background: linear-gradient(135deg, #065f46 0%, #047857 100%) !important;
    border: 1px solid #10b981 !important;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3) !important;
}

.wallet-btn.connected:hover {
    box-shadow: 0 6px 22px rgba(16, 185, 129, 0.5) !important;
}

.wallet-badge-env {
    background: rgba(255, 185, 0, 0.2);
    border: 1px solid #f7ba23;
    color: #f7ba23;
    font-size: 0.7rem;
    font-weight: 800;
    padding: 0.15rem 0.4rem;
    border-radius: 4px;
    margin-left: 0.3rem;
    text-transform: uppercase;
}

.wallet-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: 280px;
    background: rgba(18, 18, 24, 0.98);
    border: 1px solid rgba(247, 186, 35, 0.35);
    backdrop-filter: blur(20px);
    border-radius: 12px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.9), 0 0 20px rgba(247, 186, 35, 0.2);
    z-index: 1000;
    padding: 0.8rem;
    animation: fadeInDown 0.25s ease;
}

@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}

.wallet-dropdown-header {
    background: rgba(0, 0, 0, 0.6);
    padding: 0.7rem 0.85rem;
    border-radius: 8px;
    margin-bottom: 0.5rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.wallet-full-addr {
    font-size: 0.78rem;
    color: #f7ba23;
    word-break: break-all;
    margin-top: 0.25rem;
    line-height: 1.3;
    font-family: monospace;
}

.wallet-dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    width: 100%;
    background: none;
    border: none;
    color: #fff;
    padding: 0.65rem 0.8rem;
    font-size: 0.88rem;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.wallet-dropdown-item:hover {
    background: rgba(255, 255, 255, 0.1);
}

.wallet-dropdown-item.text-danger {
    color: #ef4444;
}

.wallet-dropdown-item.text-danger:hover {
    background: rgba(239, 68, 68, 0.15);
}

.wallet-dropdown-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
    margin: 0.45rem 0;
}

/* ==========================================================================
   DASHBOARD MOBILE RESPONSIVE ENHANCEMENTS
   ========================================================================== */
@media (max-width: 768px) {
    .header {
        padding: 0.8rem 1rem !important;
        width: 100% !important;
        max-width: 100vw !important;
    }
    .header-actions .nav-item {
        display: none !important;
    }
    .header-actions {
        gap: 0.5rem !important;
    }
    .wallet-btn {
        padding: 6px 12px !important;
        font-size: 0.78rem !important;
        height: 36px;
    }
    .wallet-btn .wallet-badge-env {
        display: none !important;
    }
    .wallet-dropdown {
        right: 0 !important;
        left: auto !important;
        width: calc(100vw - 24px) !important;
        max-width: 280px !important;
    }
    .brand-logo {
        width: 38px !important;
        height: 38px !important;
    }
    .brand-name-top, .brand-name-bottom {
        font-size: 0.85rem !important;
    }
    .brand-tagline {
        display: none !important;
    }
}

/* ==========================================================================
   ECOSYSTEM TRANSPARENCY & LIVE TOKENOMICS REPORT STYLES
   ========================================================================== */
.analytics-hero-card {
    background: linear-gradient(135deg, rgba(20, 15, 25, 0.85) 0%, rgba(30, 20, 35, 0.7) 100%);
    border: 1px solid rgba(255, 170, 0, 0.25);
    border-radius: 16px;
    padding: 1.8rem;
    margin-bottom: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.08);
    position: relative;
    overflow: hidden;
}

.analytics-hero-card::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(255, 69, 0, 0.15) 0%, transparent 70%);
    pointer-events: none;
}

/* Tokenomics Architecture Flowchart */
.tokenomics-flow-wrap {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin: 1.5rem 0;
    position: relative;
}

.flow-node-card {
    background: rgba(15, 12, 22, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 1.2rem 1rem;
    text-align: center;
    position: relative;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.flow-node-card:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 170, 0, 0.4);
    box-shadow: 0 8px 25px rgba(255, 100, 0, 0.2);
}

.flow-node-card.accent-gold {
    border-top: 3px solid #ffaa00;
}

.flow-node-card.accent-fire {
    border-top: 3px solid #ff4500;
}

.flow-node-card.accent-emerald {
    border-top: 3px solid #10b981;
}

.flow-node-card.accent-blue {
    border-top: 3px solid #3b82f6;
}

.flow-node-card.accent-purple {
    border-top: 3px solid #a855f7;
}

.flow-node-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    margin-bottom: 0.6rem;
    background: rgba(255, 255, 255, 0.05);
}

.flow-node-title {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    margin-bottom: 0.4rem;
}

.flow-node-val {
    font-size: 1.35rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 0.3rem;
    font-family: 'Outfit', sans-serif;
}

.flow-node-sub {
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.5);
    line-height: 1.3;
}

/* Donut & Analytics Dual Grid */
.analytics-dual-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

@media (max-width: 900px) {
    .analytics-dual-grid {
        grid-template-columns: 1fr;
    }
}

/* Donut Chart Visual */
.donut-chart-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    padding: 1rem 0;
}

.donut-svg-wrap {
    position: relative;
    width: 170px;
    height: 170px;
}

.donut-svg-wrap svg {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.donut-circle-bg {
    fill: none;
    stroke: rgba(255, 255, 255, 0.06);
    stroke-width: 16;
}

.donut-circle-circulating {
    fill: none;
    stroke: url(#circulatingGrad);
    stroke-width: 16;
    stroke-linecap: round;
    transition: stroke-dashoffset 1s ease-in-out;
}

.donut-circle-burned {
    fill: none;
    stroke: url(#burnedGrad);
    stroke-width: 16;
    stroke-linecap: round;
    transition: stroke-dashoffset 1s ease-in-out;
}

.donut-center-label {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

.donut-center-label .tbc-price-val {
    font-size: 1.4rem;
    font-weight: 800;
    color: #ffd700;
    font-family: 'Outfit', sans-serif;
    line-height: 1.1;
}

.donut-center-label .tbc-price-sub {
    font-size: 0.68rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.donut-legend-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    flex: 1;
    min-width: 180px;
}

.donut-legend-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(0, 0, 0, 0.3);
    padding: 0.5rem 0.8rem;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 0.82rem;
}

.legend-badge-color {
    width: 10px;
    height: 10px;
    border-radius: 3px;
    display: inline-block;
    margin-right: 8px;
}

/* Formula Mathematical Invariant Card */
.formula-glass-card {
    background: rgba(0, 0, 0, 0.45);
    border: 1px dashed rgba(255, 170, 0, 0.3);
    border-radius: 12px;
    padding: 1.2rem;
    font-family: 'Inter', monospace;
    margin-top: 1rem;
}

.formula-display {
    background: rgba(255, 255, 255, 0.04);
    border-radius: 8px;
    padding: 0.8rem 1rem;
    font-size: 0.95rem;
    font-weight: 600;
    color: #ffd700;
    text-align: center;
    margin: 0.6rem 0;
    border: 1px solid rgba(255, 215, 0, 0.15);
    letter-spacing: 0.5px;
}

.formula-breakdown-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.78rem;
    padding: 0.3rem 0;
    color: rgba(255, 255, 255, 0.7);
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.formula-breakdown-row:last-child {
    border-bottom: none;
}

/* Plain English Guide Styles */
.tokenomics-simple-guide {
    margin-top: 1.5rem;
    background: rgba(15, 15, 20, 0.65);
    border: 1px solid rgba(255, 215, 0, 0.18);
    border-radius: 14px;
    padding: 1.4rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.simple-guide-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-top: 1rem;
}

@media (max-width: 1200px) {
    .simple-guide-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .simple-guide-grid {
        grid-template-columns: 1fr;
    }
}

.simple-guide-card {
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 10px;
    padding: 1rem;
    transition: all 0.25s ease;
    display: flex;
    flex-direction: column;
}

.simple-guide-card:hover {
    background: rgba(255, 255, 255, 0.045);
    border-color: rgba(255, 215, 0, 0.35);
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(255, 170, 0, 0.08);
}

.simple-guide-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.65rem;
}

.simple-guide-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    flex-shrink: 0;
}

.simple-guide-title {
    display: block;
    font-size: 0.84rem;
    font-weight: 700;
    color: #fff;
    line-height: 1.25;
}

.simple-guide-badge {
    font-size: 0.68rem;
    font-weight: 600;
    margin-top: 0.15rem;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.simple-guide-desc {
    font-size: 0.78rem;
    color: var(--text-muted);
    line-height: 1.45;
    margin: 0;
    flex-grow: 1;
}
