/* Metafastest Riders Club - Premium Web3 DApp Design System */
/* Fonts loaded via preconnect link in index.html head for fast mobile rendering */
:root {
    --bg-main: #061428;
    --bg-sidebar: #051022;
    --bg-card: #0b1e38;
    --bg-card-hover: #102a4d;
    --bg-card-header: #0d2444;
    --border-card: rgba(56, 189, 248, 0.28);
    --border-gold: rgba(56, 189, 248, 0.45);
    
    --gold-primary: #38bdf8;
    --gold-secondary: #0ea5e9;
    --gold-light: #bae6fd;
    --gold-dark: #0284c7;
    --gold-gradient: linear-gradient(135deg, #e0f2fe 0%, #7dd3fc 45%, #38bdf8 100%);
    --gold-btn-gradient: linear-gradient(180deg, #7dd3fc 0%, #38bdf8 100%);
    
    --text-primary: #ffffff;
    --text-secondary: #b6d0ec;
    --text-muted: #7da0c4;
    --text-gold: #7dd3fc;
    
    --accent-blue: #38bdf8;
    --accent-green: #10b981;
    --accent-purple: #8b5cf6;
    --accent-orange: #f97316;
    
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    
    --shadow-gold: 0 4px 20px rgba(56, 189, 248, 0.28);
    --shadow-card: 0 8px 32px rgba(3, 18, 38, 0.48);
    --surface-inset: rgba(5, 16, 34, 0.72);
    --surface-subtle: rgba(16, 42, 77, 0.55);
    --surface-elevated: rgba(11, 30, 56, 0.9);
    --tint-blue-bg: rgba(56, 189, 248, 0.12);
    --tint-blue-border: rgba(56, 189, 248, 0.32);
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
}

/* ==========================================================
   LIGHT MODE THEME SYSTEM (ICE LIGHT BLUE)
   ========================================================== */
html.light-theme {
    --bg-main: #e8f4ff;
    --bg-sidebar: #f4faff;
    --bg-card: #ffffff;
    --bg-card-hover: #f0f9ff;
    --bg-card-header: #f0f9ff;
    --border-card: rgba(56, 189, 248, 0.28);
    --border-gold: rgba(14, 165, 233, 0.45);
    
    --gold-primary: #0284c7;
    --gold-secondary: #0369a1;
    --gold-light: #0369a1;
    --gold-dark: #075985;
    --gold-gradient: linear-gradient(135deg, #38bdf8 0%, #0ea5e9 50%, #0284c7 100%);
    --gold-btn-gradient: linear-gradient(180deg, #38bdf8 0%, #0ea5e9 100%);
    
    --text-primary: #0c1f3a;
    --text-secondary: #2c4a6e;
    --text-muted: #4b6b8f;
    --text-gold: #0369a1;
    
    --shadow-gold: 0 4px 18px rgba(14, 165, 233, 0.22);
    --shadow-card: 0 4px 20px rgba(14, 165, 233, 0.1);
    --surface-inset: #f0f9ff;
    --surface-subtle: #e6f4ff;
    --surface-elevated: #ffffff;
    --tint-blue-bg: rgba(14, 165, 233, 0.1);
    --tint-blue-border: rgba(14, 165, 233, 0.32);
}

html.light-theme body {
    background-color: var(--bg-main);
    color: var(--text-primary);
}

html.light-theme .landing-nav {
    background: rgba(240, 249, 255, 0.94);
    border-bottom: 1px solid rgba(56, 189, 248, 0.3);
    box-shadow: 0 4px 20px rgba(14, 165, 233, 0.08);
}
html.light-theme .landing-brand-title {
    color: #0c1f3a;
}
html.light-theme .landing-nav-links a {
    color: #2c4a6e;
}
html.light-theme .landing-nav-links a:hover {
    color: #0284c7;
}
html.light-theme .landing-page-wrapper {
    background: linear-gradient(180deg, #e0f2fe 0%, #f0f9ff 45%, #e8f4ff 100%);
}
html.light-theme .landing-ambient-glow {
    opacity: 0.25;
}
html.light-theme .top-header {
    background: rgba(240, 249, 255, 0.94);
    border-bottom: 1px solid rgba(56, 189, 248, 0.28);
    box-shadow: 0 2px 10px rgba(14, 165, 233, 0.06);
}
html.light-theme .sidebar {
    background: #f4faff;
    border-right: 1px solid rgba(56, 189, 248, 0.25);
}
html.light-theme .brand-title {
    color: #0c1f3a;
}
html.light-theme .brand-title span {
    color: #0284c7;
}
html.light-theme .nav-item {
    color: #35547a;
}
html.light-theme .nav-item:hover {
    background: rgba(56, 189, 248, 0.12);
    color: #0369a1;
}
html.light-theme .nav-item.active {
    background: linear-gradient(90deg, rgba(56, 189, 248, 0.2) 0%, rgba(56, 189, 248, 0.04) 100%);
    color: #0369a1;
    border-left-color: #0284c7;
}
html.light-theme .card {
    background: #ffffff;
    border: 1px solid rgba(56, 189, 248, 0.28);
    box-shadow: 0 4px 20px rgba(14, 165, 233, 0.08);
}
html.light-theme .card-header {
    background: #f0f9ff;
    border-bottom: 1px solid rgba(56, 189, 248, 0.2);
}
html.light-theme .stat-chip {
    background: #f0f9ff;
    border: 1px solid rgba(56, 189, 248, 0.3);
}
html.light-theme .stat-chip-info span {
    color: #527399;
}
html.light-theme .stat-chip-info strong {
    color: #0c1f3a;
}
html.light-theme .modal-content {
    background: #ffffff;
    border: 1px solid rgba(56, 189, 248, 0.35);
    color: #0c1f3a;
    box-shadow: 0 20px 40px rgba(14, 165, 233, 0.16);
}
html.light-theme input, html.light-theme select {
    background: #f0f9ff;
    color: #0c1f3a;
    border-color: rgba(56, 189, 248, 0.4);
}
html.light-theme .landing-mobile-drawer {
    background: #f4faff;
    color: #0c1f3a;
}
html.light-theme .landing-mobile-nav-links a {
    color: #2c4a6e;
    border-bottom-color: rgba(56, 189, 248, 0.2);
}
html.light-theme .package-card, html.light-theme .package-preview-card {
    background: #ffffff;
    border-color: rgba(56, 189, 248, 0.3);
    box-shadow: 0 4px 16px rgba(14, 165, 233, 0.08);
}
html.light-theme .hero-title {
    color: #0c1f3a;
}
html.light-theme .hero-description {
    color: #2c4a6e;
}
html.light-theme .section-main-title {
    color: #0c1f3a;
}
html.light-theme .section-main-desc {
    color: #4b6b8f;
}
html.light-theme .btn-gold,
html.light-theme .btn-claim-big,
html.light-theme .how-step-num,
html.light-theme .pkg-featured-badge,
html.light-theme .sub-tab-btn.active,
html.light-theme .btn-outline-gold:hover,
html.light-theme .gateway-manual-btn:hover,
html.light-theme .ranking-step.current .ranking-step-circle {
    color: #ffffff;
}
html.light-theme .gold-gradient-text {
    background: linear-gradient(135deg, #0284c7 0%, #0ea5e9 55%, #0369a1 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
html.light-theme .hero-pill-badge,
html.light-theme .section-pill-tag {
    background: rgba(14, 165, 233, 0.12);
    border-color: rgba(14, 165, 233, 0.35);
    color: #0369a1;
}
html.light-theme .hero-pwa-install-btn {
    background: rgba(255, 255, 255, 0.9);
    border-color: rgba(14, 165, 233, 0.4);
    box-shadow: 0 4px 16px rgba(14, 165, 233, 0.16);
    color: #0284c7;
}
html.light-theme .landing-gateway-card {
    background: rgba(255, 255, 255, 0.96);
    border-color: rgba(14, 165, 233, 0.35);
    box-shadow: 0 20px 50px rgba(14, 165, 233, 0.14);
}
html.light-theme .gateway-divider::before,
html.light-theme .gateway-divider::after {
    background: rgba(14, 165, 233, 0.22);
}
html.light-theme .gateway-card-footer {
    border-top-color: rgba(14, 165, 233, 0.18);
}
html.light-theme .landing-stats-ribbon {
    background: rgba(255, 255, 255, 0.94);
    border-color: rgba(14, 165, 233, 0.3);
    box-shadow: 0 10px 30px rgba(14, 165, 233, 0.12);
}
html.light-theme .landing-stat-box:not(:last-child)::after {
    background: rgba(14, 165, 233, 0.18);
}
html.light-theme .eco-card,
html.light-theme .nft-horse-card,
html.light-theme .unilevel-tier-card,
html.light-theme .how-step-card,
html.light-theme .faq-accordion-item {
    background: rgba(255, 255, 255, 0.95);
    border-color: rgba(14, 165, 233, 0.26);
    box-shadow: 0 8px 24px rgba(14, 165, 233, 0.08);
}
html.light-theme .eco-card:hover,
html.light-theme .nft-horse-card:hover,
html.light-theme .how-step-card:hover {
    border-color: #0284c7;
    box-shadow: 0 14px 30px rgba(14, 165, 233, 0.16);
}
html.light-theme .faq-accordion-item.active,
html.light-theme .unilevel-tier-card:hover,
html.light-theme .package-preview-card.featured {
    background: #f0f9ff;
    border-color: #0284c7;
}
html.light-theme .tier-badge-number {
    background: rgba(14, 165, 233, 0.12);
    color: #0284c7;
}
html.light-theme .landing-footer {
    background: #dbeeff;
    border-top-color: rgba(14, 165, 233, 0.28);
}
html.light-theme .footer-bottom-row,
html.light-theme .brand-header,
html.light-theme .wallet-sub-row {
    border-color: rgba(14, 165, 233, 0.16);
}
html.light-theme .profile-info-item,
html.light-theme .rev-item,
html.light-theme .admin-metric-card,
html.light-theme .admin-vault-info-card,
html.light-theme .stable-card,
html.light-theme .ranking-item {
    background: #f4faff;
    border-color: rgba(14, 165, 233, 0.24);
    box-shadow: none;
}
html.light-theme .copy-box {
    background: #f0f9ff;
    border-color: rgba(14, 165, 233, 0.35);
}
html.light-theme .data-table th {
    background: #e0f2fe;
    color: #0c4a6e;
    border-bottom-color: rgba(14, 165, 233, 0.25);
}
html.light-theme .data-table td {
    border-bottom-color: rgba(14, 165, 233, 0.14);
}
html.light-theme .form-control,
html.light-theme select.form-control {
    background: #f8fcff;
    border-color: rgba(14, 165, 233, 0.35);
    color: #0c1f3a;
}
html.light-theme .attribute-bar,
html.light-theme .nft-stat-bar-container {
    background: rgba(14, 165, 233, 0.16);
}
html.light-theme .toast {
    background: #ffffff;
    color: #0c1f3a;
    border-color: #0284c7;
    box-shadow: 0 8px 24px rgba(14, 165, 233, 0.18);
}
html.light-theme .badge-gold {
    background: rgba(14, 165, 233, 0.14);
    color: #0369a1;
    border-color: rgba(14, 165, 233, 0.35);
}
html.light-theme .badge-outline {
    background: #f0f9ff;
    color: #0c4a6e;
    border-color: rgba(14, 165, 233, 0.35);
}
html.light-theme .sub-tab-btn {
    background: #ffffff;
    color: #2c4a6e;
    border-color: rgba(14, 165, 233, 0.3);
}
html.light-theme .member-rank-banner {
    background: #ffffff;
    border-color: rgba(14, 165, 233, 0.35);
    box-shadow: 0 4px 12px rgba(14, 165, 233, 0.12);
}
html.light-theme .admin-security-modal-content,
html.light-theme .admin-override-modal-content {
    background: #ffffff !important;
    border-color: rgba(14, 165, 233, 0.35) !important;
    box-shadow: 0 20px 50px rgba(14, 165, 233, 0.2) !important;
}
html.light-theme .admin-security-input {
    background: #f0f9ff !important;
    color: #0c1f3a !important;
    border-color: rgba(14, 165, 233, 0.4) !important;
}
html.light-theme .admin-inspect-banner {
    background: linear-gradient(90deg, #e0f2fe 0%, #bae6fd 50%, #e0f2fe 100%);
}
html.light-theme .admin-inspect-banner .inspect-text {
    color: #0c1f3a;
}
html.light-theme .admin-inspect-banner .inspect-wallet {
    background: #ffffff;
    color: #0369a1;
}
html.light-theme .mobile-bottom-nav {
    background: rgba(244, 250, 255, 0.96);
    border-top-color: rgba(14, 165, 233, 0.28);
    box-shadow: 0 -6px 20px rgba(14, 165, 233, 0.12);
}
html.light-theme .mobile-more-content {
    background: linear-gradient(180deg, #f4faff 0%, #e8f4ff 100%);
    border-top-color: rgba(14, 165, 233, 0.3);
    box-shadow: 0 -8px 28px rgba(14, 165, 233, 0.16);
}
html.light-theme .mobile-more-card {
    background: #ffffff;
    border-color: rgba(14, 165, 233, 0.28);
    color: #0c1f3a;
}
html.light-theme .mobile-more-close,
html.light-theme .landing-mobile-drawer-close,
html.light-theme .landing-mobile-menu-btn {
    background: rgba(14, 165, 233, 0.12);
    color: #0369a1;
}
html.light-theme .btn-wallet-option {
    background: rgba(14, 165, 233, 0.08) !important;
    border-color: rgba(14, 165, 233, 0.32) !important;
    color: #0c1f3a !important;
}
html.light-theme .referral-highlight-box {
    background: #ffffff !important;
    border-color: rgba(14, 165, 233, 0.35) !important;
    box-shadow: 0 10px 30px rgba(14, 165, 233, 0.1) !important;
}
html.light-theme .admin-gold-card {
    background: #ffffff !important;
    border-color: rgba(14, 165, 233, 0.35) !important;
    box-shadow: 0 4px 20px rgba(14, 165, 233, 0.1) !important;
    color: var(--text-primary) !important;
}
html.light-theme .kpi-container-dark {
    background: #f0f9ff !important;
    border-bottom-color: rgba(14, 165, 233, 0.2) !important;
}
html.light-theme .kpi-sub-box {
    background: #ffffff !important;
    border-color: rgba(14, 165, 233, 0.25) !important;
    box-shadow: 0 2px 8px rgba(14, 165, 233, 0.06) !important;
    color: var(--text-primary) !important;
}
html.light-theme #override-member-preview,
html.light-theme #direct-credit-member-preview {
    background: #f0f9ff !important;
    border-color: rgba(14, 165, 233, 0.35) !important;
    color: var(--text-primary) !important;
}
html.light-theme .data-table td {
    color: var(--text-primary) !important;
}
html.light-theme .data-table code {
    color: #0284c7 !important;
    background: rgba(56, 189, 248, 0.12) !important;
    padding: 2px 6px;
    border-radius: 4px;
}
html.light-theme label {
    color: var(--text-secondary) !important;
}
html.light-theme .card-title {
    color: #0284c7 !important;
}
html.light-theme .card-title i {
    color: #0284c7 !important;
}
html.light-theme #card-admin-accounts-management,
html.light-theme #card-persistent-manual-credits-ledger,
html.light-theme #card-admin-treasury-deposits-ledger {
    background: #ffffff !important;
    border-color: rgba(14, 165, 233, 0.35) !important;
    box-shadow: 0 4px 20px rgba(14, 165, 233, 0.1) !important;
    color: var(--text-primary) !important;
}
html.light-theme #rewards > div:not(.landing-section-header) {
    background: #ffffff !important;
    border-color: rgba(14, 165, 233, 0.35) !important;
    box-shadow: 0 10px 30px rgba(14, 165, 233, 0.1) !important;
}
html.light-theme #modal-admin-member-details [style*="rgba(10,14,26"],
html.light-theme #modal-admin-member-details [style*="rgba(10, 14, 26"] {
    background: #f0f9ff !important;
    border-color: rgba(14, 165, 233, 0.25) !important;
}
html.light-theme .card [style*="rgba(10, 14, 26"],
html.light-theme .card [style*="rgba(10,14,26"] {
    background: #f0f9ff !important;
    border-color: rgba(14, 165, 233, 0.2) !important;
}
html.light-theme .card [style*="rgba(15, 23, 42"],
html.light-theme .card [style*="rgba(15,23,42"] {
    background: #ffffff !important;
    border-color: rgba(14, 165, 233, 0.25) !important;
    box-shadow: 0 2px 8px rgba(14, 165, 233, 0.06) !important;
    color: var(--text-primary) !important;
}
html.light-theme [style*="rgba(0,0,0,0.6)"],
html.light-theme [style*="rgba(0, 0, 0, 0.6)"] {
    background: #f0f9ff !important;
    border-color: rgba(14, 165, 233, 0.4) !important;
    color: var(--text-primary) !important;
}
html.light-theme [style*="rgba(0,0,0,0.5)"],
html.light-theme [style*="rgba(0, 0, 0, 0.5)"] {
    background: #f0f9ff !important;
    border-color: rgba(14, 165, 233, 0.35) !important;
}
html.light-theme [style*="rgba(0,0,0,0.35)"],
html.light-theme [style*="rgba(0, 0, 0, 0.35)"] {
    background: #f0f9ff !important;
    border-color: rgba(14, 165, 233, 0.3) !important;
}
html.light-theme #override-member-preview *,
html.light-theme #direct-credit-member-preview * {
    color: var(--text-primary) !important;
}
html.light-theme #override-member-preview .badge-pill,
html.light-theme #direct-credit-member-preview .badge-pill {
    color: #0284c7 !important;
}
html.light-theme #wallet-kyc-lock-banner {
    background: linear-gradient(90deg, rgba(239, 68, 68, 0.12) 0%, rgba(220, 38, 38, 0.18) 100%) !important;
    border-color: rgba(239, 68, 68, 0.35) !important;
}
html.light-theme #withdraw-fee-preview-box {
    background: rgba(14, 165, 233, 0.06) !important;
    border-color: rgba(14, 165, 233, 0.25) !important;
}
/* Comprehensive text contrast safety in light theme */
html.light-theme [style*="color: #fff"]:not(.btn-gold):not(.btn-gold *):not(.btn-claim-big):not(.btn-claim-big *):not(.badge-pill):not(.badge-pill *):not(.nft-tier-pill):not(.nft-tier-pill *):not(.rank-banner-icon-box):not(.rank-banner-icon-box *),
html.light-theme [style*="color: #ffffff"]:not(.btn-gold):not(.btn-gold *):not(.btn-claim-big):not(.btn-claim-big *):not(.badge-pill):not(.badge-pill *):not(.nft-tier-pill):not(.nft-tier-pill *):not(.rank-banner-icon-box):not(.rank-banner-icon-box *),
html.light-theme [style*="color:white"]:not(.btn-gold):not(.btn-gold *):not(.btn-claim-big):not(.btn-claim-big *):not(.badge-pill):not(.badge-pill *):not(.nft-tier-pill):not(.nft-tier-pill *):not(.rank-banner-icon-box):not(.rank-banner-icon-box *),
html.light-theme [style*="color: white"]:not(.btn-gold):not(.btn-gold *):not(.btn-claim-big):not(.btn-claim-big *):not(.badge-pill):not(.badge-pill *):not(.nft-tier-pill):not(.nft-tier-pill *):not(.rank-banner-icon-box):not(.rank-banner-icon-box *) {
    color: var(--text-primary) !important;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden !important;
    position: relative;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-main);
    color: var(--text-primary);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Scrollbar styling */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: var(--bg-sidebar);
}
::-webkit-scrollbar-thumb {
    background: var(--border-gold);
    border-radius: 4px;
}

/* App Container Layout */
.app-container {
    display: flex;
    flex-direction: row;
    width: 100%;
    max-width: 100%;
    min-height: 100vh;
    overflow-x: hidden;
}

/* Sidebar Styling */
.sidebar {
    width: 260px;
    background: var(--bg-sidebar);
    border-right: 1px solid rgba(56, 189, 248, 0.15);
    display: flex;
    flex-direction: column;
    padding: 20px 16px;
    z-index: 100;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

@media (min-width: 769px) {
    .brand-header {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        padding-bottom: 20px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
        margin-bottom: 18px;
    }

    .brand-identity-cluster {
        display: flex;
        align-items: center;
        gap: 10px;
        order: 1;
    }

    .sidebar #theme-toggle-brand {
        order: 2;
    }

    .sidebar .member-rank-banner {
        order: 3;
        width: 100% !important;
        max-width: 100%;
        box-sizing: border-box;
        border-radius: 12px;
        padding: 7px 12px;
        display: flex;
        align-items: center;
        gap: 10px;
        margin-top: 4px;
    }
}

.brand-logo {
    width: 52px;
    height: 52px;
    border-radius: 10px;
    border: 2px solid var(--gold-primary);
    box-shadow: 0 0 16px rgba(56, 189, 248, 0.35);
    object-fit: cover;
    background: #000;
}

.brand-title {
    font-family: var(--font-heading);
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: var(--text-primary);
    line-height: 1.2;
}

.brand-title span {
    color: var(--gold-primary);
    font-size: 11px;
    display: block;
    font-weight: 500;
    letter-spacing: 1px;
}

.nav-menu {
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
    overflow-y: auto;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
}

.nav-item:hover {
    background: rgba(56, 189, 248, 0.08);
    color: var(--gold-light);
}

.nav-item.active {
    background: linear-gradient(90deg, rgba(56, 189, 248, 0.2) 0%, rgba(56, 189, 248, 0.03) 100%);
    color: var(--gold-primary);
    border-left: 3px solid var(--gold-primary);
    font-weight: 600;
}

.nav-item i {
    font-size: 18px;
    width: 20px;
    text-align: center;
}

.sidebar-banner {
    margin-top: 20px;
    background: linear-gradient(180deg, rgba(11, 30, 56, 0.85) 0%, rgba(5, 8, 20, 0.96) 100%), url('assets/metafastest-logo.jpg?v=3');
    background-size: cover;
    background-position: center;
    border: 1px solid var(--border-gold);
    border-radius: var(--radius-lg);
    padding: 20px 16px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.sidebar-banner img {
    width: 70px;
    height: 70px;
    margin: 0 auto 10px;
    filter: drop-shadow(0 4px 10px rgba(0,0,0,0.6));
    border-radius: 50%;
    border: 1px solid var(--gold-primary);
}

.banner-slogan {
    font-family: var(--font-heading);
    font-size: 11px;
    font-weight: 800;
    color: var(--gold-light);
    letter-spacing: 1px;
    line-height: 1.5;
    text-transform: uppercase;
}

/* Main Content Area */
.main-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    background: radial-gradient(circle at 80% 0%, rgba(56, 189, 248, 0.05) 0%, transparent 50%),
                radial-gradient(circle at 10% 90%, rgba(59, 130, 246, 0.04) 0%, transparent 50%);
}

/* Top Header Bar */
.top-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 32px;
    background: rgba(8, 14, 32, 0.9);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    position: sticky;
    top: 0;
    z-index: 90;
}

.user-welcome {
    display: flex;
    align-items: center;
    gap: 10px;
}

.welcome-title {
    font-size: 16px;
    color: var(--text-secondary);
}

.user-name {
    font-weight: 700;
    color: var(--text-primary);
}

.vip-badge {
    background: linear-gradient(135deg, #38bdf8 0%, #0284c7 100%);
    color: #050814;
    font-size: 11px;
    font-weight: 800;
    padding: 2px 8px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.header-left-cluster {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.brand-identity-cluster {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* ==========================================================
   THEME TOGGLE BUTTON (QUARTER MOON 🌙 / SUN ☀️)
   ========================================================== */
.theme-toggle-btn {
    position: relative;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    border: 1.5px solid rgba(56, 189, 248, 0.4);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    flex-shrink: 0;
    overflow: hidden;
    padding: 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
}

.theme-toggle-btn:hover {
    transform: scale(1.1) rotate(10deg);
    border-color: var(--gold-primary);
    box-shadow: 0 0 14px rgba(56, 189, 248, 0.5);
}

.theme-toggle-btn:active {
    transform: scale(0.95);
}

.theme-toggle-btn .theme-icon {
    position: absolute;
    font-size: 17px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    user-select: none;
}

/* Dark mode: show moon 🌙, hide sun ☀️ */
.theme-toggle-btn .moon-symbol {
    opacity: 1;
    transform: rotate(0deg) scale(1);
}
.theme-toggle-btn .sun-symbol {
    opacity: 0;
    transform: rotate(90deg) scale(0.3);
}

/* Light mode: show sun ☀️, hide moon 🌙 */
html.light-theme .theme-toggle-btn {
    background: #ffffff;
    border-color: #0284c7;
    box-shadow: 0 2px 10px rgba(14, 165, 233, 0.25);
}
html.light-theme .theme-toggle-btn .moon-symbol {
    opacity: 0;
    transform: rotate(-90deg) scale(0.3);
}
html.light-theme .theme-toggle-btn .sun-symbol {
    opacity: 1;
    transform: rotate(0deg) scale(1);
}

/* ==========================================================
   DYNAMIC MEMBER RANK BANNER & 6-TIER COLOR SYSTEM
   ========================================================== */
.member-rank-banner {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border-radius: 28px;
    background: rgba(11, 30, 56, 0.88);
    border: 1.5px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
    cursor: default;
    user-select: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    max-width: 240px;
    flex-shrink: 0;
}


.rank-banner-icon-box {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
    transition: transform 0.3s ease;
}

.member-rank-banner:hover .rank-banner-icon-box {
    transform: scale(1.15) rotate(6deg);
}

.rank-banner-info {
    display: flex;
    flex-direction: column;
    min-width: 0;
    line-height: 1.15;
}

.rank-banner-tag {
    font-size: 8.5px;
    font-weight: 800;
    letter-spacing: 0.7px;
    text-transform: uppercase;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    opacity: 0.9;
}

.rank-banner-title {
    font-size: 13px;
    font-weight: 800;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    letter-spacing: 0.3px;
    font-family: var(--font-heading);
}

.rank-banner-badge {
    font-size: 8px;
    font-weight: 800;
    padding: 2px 7px;
    border-radius: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-left: auto;
    flex-shrink: 0;
}

/* --- TIER 0: NEW RIDER (Warm Cyber Amber & Bronze) --- */
.rank-tier-0 {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.22) 0%, rgba(180, 83, 9, 0.32) 100%) !important;
    border-color: rgba(245, 158, 11, 0.75) !important;
    box-shadow: 0 0 16px rgba(245, 158, 11, 0.3), 0 4px 12px rgba(0, 0, 0, 0.4) !important;
}
.rank-tier-0 .rank-banner-icon-box {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: #fff;
    box-shadow: 0 0 10px rgba(245, 158, 11, 0.6);
}
.rank-tier-0 .rank-banner-tag { color: #fcd34d; }
.rank-tier-0 .rank-banner-title { color: #fbbf24; text-shadow: 0 0 8px rgba(245, 158, 11, 0.45); }
.rank-tier-0 .rank-banner-badge {
    background: rgba(245, 158, 11, 0.25);
    color: #fbbf24;
    border: 1px solid rgba(245, 158, 11, 0.55);
}

/* --- TIER 1: KNIGHT (Electric Sapphire & Cobalt Cyan) --- */
.rank-tier-1 {
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.24) 0%, rgba(37, 99, 235, 0.35) 100%) !important;
    border-color: rgba(6, 182, 212, 0.8) !important;
    box-shadow: 0 0 18px rgba(6, 182, 212, 0.4), 0 4px 12px rgba(0, 0, 0, 0.4) !important;
}
.rank-tier-1 .rank-banner-icon-box {
    background: linear-gradient(135deg, #06b6d4, #2563eb);
    color: #fff;
    box-shadow: 0 0 12px rgba(6, 182, 212, 0.7);
}
.rank-tier-1 .rank-banner-tag { color: #67e8f9; }
.rank-tier-1 .rank-banner-title { color: #38bdf8; text-shadow: 0 0 8px rgba(6, 182, 212, 0.55); }
.rank-tier-1 .rank-banner-badge {
    background: rgba(6, 182, 212, 0.25);
    color: #38bdf8;
    border: 1px solid rgba(6, 182, 212, 0.6);
}

/* --- TIER 2: EARL (Imperial Emerald & Jade Dynasty) --- */
.rank-tier-2 {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.24) 0%, rgba(5, 150, 105, 0.36) 100%) !important;
    border-color: rgba(16, 185, 129, 0.8) !important;
    box-shadow: 0 0 18px rgba(16, 185, 129, 0.4), 0 4px 12px rgba(0, 0, 0, 0.4) !important;
}
.rank-tier-2 .rank-banner-icon-box {
    background: linear-gradient(135deg, #10b981, #059669);
    color: #fff;
    box-shadow: 0 0 12px rgba(16, 185, 129, 0.7);
}
.rank-tier-2 .rank-banner-tag { color: #6ee7b7; }
.rank-tier-2 .rank-banner-title { color: #34d399; text-shadow: 0 0 8px rgba(16, 185, 129, 0.55); }
.rank-tier-2 .rank-banner-badge {
    background: rgba(16, 185, 129, 0.25);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.6);
}

/* --- TIER 3: GRAND MASTER (Royal Violet & Amethyst Flame) --- */
.rank-tier-3 {
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.26) 0%, rgba(124, 58, 237, 0.4) 100%) !important;
    border-color: rgba(168, 85, 247, 0.85) !important;
    box-shadow: 0 0 22px rgba(168, 85, 247, 0.45), 0 4px 12px rgba(0, 0, 0, 0.4) !important;
}
.rank-tier-3 .rank-banner-icon-box {
    background: linear-gradient(135deg, #a855f7, #7c3aed);
    color: #fff;
    box-shadow: 0 0 14px rgba(168, 85, 247, 0.8);
}
.rank-tier-3 .rank-banner-tag { color: #d8b4fe; }
.rank-tier-3 .rank-banner-title { color: #c084fc; text-shadow: 0 0 10px rgba(168, 85, 247, 0.65); }
.rank-tier-3 .rank-banner-badge {
    background: rgba(168, 85, 247, 0.25);
    color: #c084fc;
    border: 1px solid rgba(168, 85, 247, 0.6);
}

/* --- TIER 4: ROYAL RIDER (Imperial Crimson & Scarlet Ruby) --- */
.rank-tier-4 {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.28) 0%, rgba(220, 38, 38, 0.42) 100%) !important;
    border-color: rgba(239, 68, 68, 0.88) !important;
    box-shadow: 0 0 24px rgba(239, 68, 68, 0.5), 0 4px 12px rgba(0, 0, 0, 0.4) !important;
}
.rank-tier-4 .rank-banner-icon-box {
    background: linear-gradient(135deg, #ef4444, #b91c1c);
    color: #fff;
    box-shadow: 0 0 16px rgba(239, 68, 68, 0.8);
}
.rank-tier-4 .rank-banner-tag { color: #fca5a5; }
.rank-tier-4 .rank-banner-title { color: #f87171; text-shadow: 0 0 10px rgba(239, 68, 68, 0.65); }
.rank-tier-4 .rank-banner-badge {
    background: rgba(239, 68, 68, 0.25);
    color: #f87171;
    border: 1px solid rgba(239, 68, 68, 0.6);
}

/* --- TIER 5: METAFASTEST LEGEND (Quantum Aurora Prismatic Gold) --- */
.rank-tier-5 {
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.35) 0%, rgba(236, 72, 153, 0.28) 50%, rgba(0, 240, 255, 0.35) 100%) !important;
    border: 1.5px solid rgba(56, 189, 248, 0.9) !important;
    box-shadow: 0 0 28px rgba(56, 189, 248, 0.55), 0 0 40px rgba(0, 240, 255, 0.3), 0 4px 12px rgba(0, 0, 0, 0.4) !important;
    animation: legendAuraPulse 3s infinite alternate;
}
@keyframes legendAuraPulse {
    0% {
        box-shadow: 0 0 20px rgba(56, 189, 248, 0.4), 0 0 30px rgba(0, 240, 255, 0.2);
    }
    100% {
        box-shadow: 0 0 32px rgba(56, 189, 248, 0.7), 0 0 45px rgba(236, 72, 153, 0.45);
    }
}
.rank-tier-5 .rank-banner-icon-box {
    background: linear-gradient(135deg, #38bdf8, #ff8c00);
    color: #fff;
    box-shadow: 0 0 18px rgba(56, 189, 248, 0.85);
    animation: crownFloat 2s infinite ease-in-out;
}
@keyframes crownFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-2px) scale(1.06); }
}
.rank-tier-5 .rank-banner-tag { color: #fde047; }
.rank-tier-5 .rank-banner-title {
    background: linear-gradient(90deg, #fff, #bae6fd, #38bdf8, #ff69b4, #00f0ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 12px rgba(56, 189, 248, 0.65);
}
.rank-tier-5 .rank-banner-badge {
    background: linear-gradient(90deg, rgba(56, 189, 248, 0.45), rgba(236, 72, 153, 0.45));
    color: #fff;
    border: 1px solid rgba(56, 189, 248, 0.75);
    box-shadow: 0 0 8px rgba(56, 189, 248, 0.55);
}

/* Quick Stats Ribbon in Top Bar */
.top-stats-ribbon {
    display: flex;
    align-items: center;
    gap: 16px;
}

.stat-chip {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(11, 30, 56, 0.8);
    border: 1px solid var(--border-card);
    padding: 8px 16px;
    border-radius: var(--radius-lg);
}

.stat-chip-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

.stat-chip-icon.usdt {
    background: rgba(16, 185, 129, 0.15);
    color: var(--accent-green);
    border: 1px solid var(--accent-green);
}

.stat-chip-info span {
    font-size: 10px;
    color: var(--text-muted);
    text-transform: uppercase;
    display: block;
    letter-spacing: 0.5px;
}

.stat-chip-info strong {
    font-size: 14px;
    color: var(--text-primary);
    font-family: var(--font-heading);
}

.top-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.icon-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

.icon-btn:hover {
    background: rgba(56, 189, 248, 0.15);
    color: var(--gold-primary);
    border-color: var(--border-gold);
}

.icon-btn .badge-dot {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 8px;
    height: 8px;
    background: var(--gold-primary);
    border-radius: 50%;
}

.btn-gold {
    background: var(--gold-gradient);
    color: #050814;
    font-weight: 700;
    font-size: 14px;
    padding: 10px 20px;
    border-radius: var(--radius-md);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 15px rgba(56, 189, 248, 0.25);
    transition: all 0.25s ease;
}

.btn-gold.btn-large {
    padding: 14px 28px;
    font-size: 16px;
    border-radius: var(--radius-lg);
    box-shadow: 0 6px 25px rgba(56, 189, 248, 0.35);
}

.btn-gold:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(56, 189, 248, 0.4);
}

.btn-gold:disabled, .btn-outline-gold:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
}

.btn-outline,
.btn-outline-gold {
    background: rgba(56, 189, 248, 0.08);
    color: var(--gold-primary);
    border: 1px solid var(--gold-primary);
    font-weight: 600;
    font-size: 13px;
    padding: 8px 16px;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-outline:hover,
.btn-outline-gold:hover {
    background: var(--gold-primary);
    color: #050814;
}

/* Dashboard Body View Grid */
.dashboard-content {
    padding: 24px 32px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* Grid Layout matching the mockup image */
.dashboard-grid {
    display: grid;
    grid-template-columns: 280px 1fr 340px;
    gap: 20px;
}

.grid-col-left {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.grid-col-center {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.grid-col-right {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Card Styling */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: var(--radius-lg);
    padding: 20px;
    position: relative;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-card);
}

.card:hover {
    border-color: rgba(56, 189, 248, 0.3);
}

.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.card-title {
    font-family: var(--font-heading);
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--text-gold);
    display: flex;
    align-items: center;
    gap: 8px;
}

.card-title i {
    font-size: 16px;
    color: var(--gold-primary);
}

/* Member Profile Card */
.profile-card-header {
    text-align: center;
    margin-bottom: 16px;
}

.profile-avatar {
    width: 96px;
    height: 96px;
    border-radius: 16px;
    border: 2px solid var(--gold-primary);
    box-shadow: var(--shadow-gold);
    margin: 0 auto 12px;
    object-fit: cover;
    background: #000;
}

.profile-info-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.profile-info-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.profile-info-item label {
    font-size: 11px;
    color: var(--text-muted);
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 6px;
}

.profile-info-item p {
    font-size: 13px;
    color: var(--text-primary);
    font-weight: 500;
    word-break: break-all;
}

.copy-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 6px 10px;
    border-radius: var(--radius-sm);
    font-size: 12px;
}

.copy-btn {
    background: transparent;
    border: none;
    color: var(--gold-primary);
    cursor: pointer;
    font-size: 14px;
    padding: 2px 4px;
}

.copy-btn:hover {
    color: var(--gold-light);
}

/* Packages Card List */
.package-item {
    background: rgba(8, 14, 32, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-md);
    padding: 16px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
}

.package-item:last-child {
    margin-bottom: 0;
}

.package-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 1px solid var(--gold-primary);
    background: rgba(56, 189, 248, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.package-details {
    flex: 1;
    margin: 0 16px;
}

.package-name {
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 700;
    color: var(--text-primary);
    text-transform: uppercase;
}

.package-price {
    font-size: 16px;
    font-weight: 800;
    color: var(--gold-primary);
    margin: 2px 0;
}

.package-yield {
    font-size: 11px;
    color: var(--accent-green);
    font-weight: 600;
}

.progress-bar-bg {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    margin-top: 8px;
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    background: var(--gold-gradient);
    border-radius: 3px;
}

/* Wallet Balance Card */
.balance-display-main {
    text-align: center;
    padding: 12px 0;
}

.balance-label {
    font-size: 12px;
    color: var(--text-muted);
    text-transform: uppercase;
}

.balance-value-big {
    font-family: var(--font-heading);
    font-size: 28px;
    font-weight: 800;
    color: var(--gold-primary);
    margin: 4px 0 16px;
}

.wallet-sub-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 13px;
}

.wallet-sub-row span {
    color: var(--text-secondary);
}

.wallet-sub-row strong {
    color: var(--text-primary);
}

.wallet-actions-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 16px;
}

.btn-claim-big {
    width: 100%;
    margin-top: 12px;
    padding: 12px;
    background: var(--gold-gradient);
    color: #050814;
    font-weight: 800;
    font-size: 14px;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    box-shadow: var(--shadow-gold);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

/* Rankings Card */
.ranking-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.ranking-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: var(--radius-sm);
    border: 1px solid transparent;
}

.ranking-item.active {
    background: rgba(56, 189, 248, 0.12);
    border-color: var(--gold-primary);
}

.ranking-icon {
    font-size: 20px;
}

.ranking-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
}

/* Referral Overview */
.qr-code-box {
    background: #fff;
    padding: 10px;
    border-radius: var(--radius-md);
    width: 120px;
    height: 120px;
    margin: 12px auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.qr-code-box img {
    width: 100%;
    height: 100%;
}

.referral-stats-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 12px;
}

.ref-stat-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 12px;
    color: var(--text-secondary);
}

.ref-stat-row strong {
    color: var(--gold-light);
}

/* Quick Actions 6-Grid */
.quick-actions-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.quick-action-btn {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-md);
    padding: 12px 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    color: var(--text-secondary);
    font-size: 11px;
    font-weight: 600;
    transition: all 0.2s ease;
}

.quick-action-btn:hover {
    background: rgba(56, 189, 248, 0.15);
    border-color: var(--gold-primary);
    color: var(--gold-primary);
    transform: translateY(-2px);
}

.quick-action-btn i {
    font-size: 20px;
    color: var(--gold-primary);
}

/* NFT Horse System Section */
.nft-horses-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 16px;
}

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

.nft-card {
    background: var(--bg-card);
    border: 1px solid var(--border-gold);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.nft-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.7), 0 0 22px rgba(56, 189, 248, 0.25);
    border-color: var(--gold-primary);
}

.tier-card-common { border-color: rgba(59, 130, 246, 0.4); }
.tier-card-rare { border-color: rgba(245, 158, 11, 0.4); }
.tier-card-epic { border-color: rgba(168, 85, 247, 0.4); }
.tier-card-legendary { border-color: rgba(56, 189, 248, 0.6); box-shadow: 0 0 15px rgba(56, 189, 248, 0.15); }

.tier-card-common:hover { border-color: #3b82f6; box-shadow: 0 12px 30px rgba(59, 130, 246, 0.35); }
.tier-card-rare:hover { border-color: #f59e0b; box-shadow: 0 12px 30px rgba(245, 158, 11, 0.35); }
.tier-card-epic:hover { border-color: #a855f7; box-shadow: 0 12px 30px rgba(168, 85, 247, 0.4); }
.tier-card-legendary:hover { border-color: #38bdf8; box-shadow: 0 16px 40px rgba(56, 189, 248, 0.5); }

.nft-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(5, 8, 20, 0.85);
    border: 1px solid var(--gold-primary);
    color: var(--gold-primary);
    font-size: 10px;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: 4px;
    text-transform: uppercase;
}

.nft-title {
    font-family: var(--font-heading);
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.nft-price-tag {
    font-size: 18px;
    font-weight: 800;
    color: var(--gold-primary);
    margin-bottom: 8px;
}

.nft-yield-tag {
    font-size: 12px;
    color: var(--accent-green);
    font-weight: 600;
    margin-bottom: 14px;
}

/* Revenue Breakdown Chart Box */
.revenue-breakdown-box {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 12px;
    margin-top: 16px;
}

.rev-item {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--radius-md);
    padding: 12px;
    text-align: center;
}

.rev-percent {
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 800;
    color: var(--gold-primary);
}

.rev-label {
    font-size: 11px;
    color: var(--text-secondary);
    margin-top: 4px;
}

/* Modal Popup Overlay */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(5, 8, 20, 0.85);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.modal-content {
    background: var(--bg-card);
    border: 1px solid var(--border-gold);
    border-radius: var(--radius-xl);
    width: 100%;
    max-width: 480px;
    padding: 24px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8);
    position: relative;
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 20px;
    cursor: pointer;
}

.modal-close:hover {
    color: var(--text-primary);
}

.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 6px;
    text-transform: uppercase;
}

.form-control {
    width: 100%;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    padding: 12px 16px;
    color: var(--text-primary);
    font-size: 14px;
    outline: none;
}

.form-control:focus {
    border-color: var(--gold-primary);
}

/* Toast Notifications */
.toast-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 1000;
}

.toast {
    background: var(--bg-card);
    border: 1px solid var(--gold-primary);
    border-radius: var(--radius-md);
    padding: 12px 20px;
    color: var(--text-primary);
    font-size: 13px;
    box-shadow: var(--shadow-gold);
    display: flex;
    align-items: center;
    gap: 10px;
    animation: slideIn 0.3s ease;
}

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

/* Responsive Breakpoints */
@media (max-width: 1200px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
    .sidebar {
        width: 80px;
        padding: 16px 8px;
    }
    .brand-title, .nav-item span, .sidebar-banner {
        display: none;
    }
    .nav-item {
        justify-content: center;
    }
}

/* ==========================================================
   ENHANCED DESIGN SYSTEM: TABLES, BADGES, TABS, WIDGETS
   ========================================================== */

/* Data Table Styling */
.table-responsive {
    width: 100%;
    overflow-x: auto;
    border-radius: var(--radius-md);
    margin-top: 12px;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    text-align: left;
}

.data-table th {
    background: rgba(0, 0, 0, 0.4);
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 11px;
    letter-spacing: 0.5px;
    padding: 12px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.data-table td {
    padding: 14px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    color: var(--text-primary);
}

.data-table tr:hover td {
    background: rgba(56, 189, 248, 0.03);
}

/* Badge Pills */
.badge-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-success {
    background: rgba(16, 185, 129, 0.15);
    color: var(--accent-green);
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.badge-warning {
    background: rgba(249, 115, 22, 0.15);
    color: var(--accent-orange);
    border: 1px solid rgba(249, 115, 22, 0.3);
}

.badge-gold {
    background: rgba(56, 189, 248, 0.15);
    color: var(--gold-primary);
    border: 1px solid var(--gold-primary);
}

.badge-purple {
    background: rgba(139, 92, 246, 0.15);
    color: var(--accent-purple);
    border: 1px solid rgba(139, 92, 246, 0.3);
}

.badge-blue {
    background: rgba(59, 130, 246, 0.15);
    color: var(--accent-blue);
    border: 1px solid rgba(59, 130, 246, 0.3);
}

/* Secondary Filter / Sub-Nav Tabs */
.sub-tabs-bar {
    display: flex;
    gap: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding-bottom: 12px;
    margin-bottom: 20px;
    overflow-x: auto;
}

.sub-tab-btn {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-secondary);
    padding: 8px 16px;
    border-radius: var(--radius-md);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.sub-tab-btn:hover {
    background: rgba(56, 189, 248, 0.08);
    color: var(--gold-light);
    border-color: var(--gold-primary);
}

.sub-tab-btn.active {
    background: var(--gold-gradient);
    color: #050814;
    border-color: transparent;
    font-weight: 700;
}

/* Package Catalog Grid */
.packages-catalog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 16px;
}

.package-catalog-card {
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: var(--radius-lg);
    padding: 24px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.package-catalog-card:hover {
    transform: translateY(-4px);
    border-color: var(--gold-primary);
    box-shadow: var(--shadow-gold);
}

.package-catalog-card.featured {
    border: 2px solid var(--gold-primary);
    background: radial-gradient(circle at top right, rgba(56, 189, 248, 0.08) 0%, var(--bg-card) 70%);
}

.pkg-header-badge {
    position: absolute;
    top: 16px;
    right: 16px;
}

.pkg-header-title {
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.pkg-header-price {
    font-family: var(--font-heading);
    font-size: 28px;
    font-weight: 800;
    color: var(--gold-primary);
    margin-bottom: 12px;
}

.pkg-feature-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 16px 0 24px;
}

.pkg-feature-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: var(--text-secondary);
}

.pkg-feature-item i {
    color: var(--accent-green);
    font-size: 14px;
}

/* Stables Horse Cards */
.stables-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 16px;
}

.stable-card {
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all 0.3s ease;
}

.stable-card:hover {
    border-color: var(--gold-primary);
    box-shadow: var(--shadow-gold);
}

.stable-card-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    transition: transform 0.4s ease;
    display: block;
}

.stable-card:hover .stable-card-img {
    transform: scale(1.04);
}

.stable-card-body {
    padding: 16px;
}

.attribute-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 6px;
    font-size: 12px;
    color: var(--text-secondary);
}

.attribute-bar {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 10px;
}

.attribute-fill {
    height: 100%;
    background: var(--gold-gradient);
    border-radius: 3px;
}

/* Rankings Progression Steps */
.ranking-track {
    display: flex;
    justify-content: space-between;
    position: relative;
    margin: 32px 0 24px;
}

.ranking-track::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 40px;
    right: 40px;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    z-index: 1;
}

.ranking-step {
    position: relative;
    z-index: 2;
    text-align: center;
    flex: 1;
}

.ranking-step-circle {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--bg-card);
    border: 2px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    margin: 0 auto 8px;
    transition: all 0.3s ease;
}

.ranking-step.completed .ranking-step-circle {
    border-color: var(--accent-green);
    background: rgba(16, 185, 129, 0.15);
    color: var(--accent-green);
}

.ranking-step.current .ranking-step-circle {
    border-color: var(--gold-primary);
    background: var(--gold-primary);
    color: #050814;
    box-shadow: var(--shadow-gold);
    transform: scale(1.15);
}

.ranking-step-label {
    font-size: 12px;
    font-weight: 700;
    color: var(--text-secondary);
}

.ranking-step.current .ranking-step-label {
    color: var(--gold-primary);
}

/* Admin Dashboard Widgets */
.admin-metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.admin-metric-card {
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: var(--radius-md);
    padding: 16px;
}

.admin-metric-title {
    font-size: 11px;
    text-transform: uppercase;
    color: var(--text-muted);
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}

.admin-metric-value {
    font-family: var(--font-heading);
    font-size: 24px;
    font-weight: 800;
    color: var(--gold-primary);
}

/* Admin Member Inspection Banner & Directory */
.admin-inspect-banner {
    position: sticky;
    top: 0;
    z-index: 9999;
    background: linear-gradient(90deg, #1b1302 0%, #2f2005 50%, #1b1302 100%);
    border-bottom: 2px solid var(--gold-primary);
    box-shadow: 0 4px 25px rgba(56, 189, 248, 0.35);
    padding: 10px 20px;
    animation: slideDownInspectBanner 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideDownInspectBanner {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.admin-inspect-banner .inspect-banner-content {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}

.admin-inspect-banner .inspect-banner-info {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    font-size: 14px;
}

.admin-inspect-banner .inspect-text {
    color: #fff;
    font-weight: 500;
}

.admin-inspect-banner .inspect-text strong {
    color: var(--gold-primary);
    font-weight: 700;
}

.admin-inspect-banner .inspect-wallet {
    background: rgba(0, 0, 0, 0.5);
    padding: 3px 8px;
    border-radius: 6px;
    border: 1px solid rgba(56, 189, 248, 0.4);
    font-family: monospace;
    font-size: 12px;
    color: var(--gold-light);
}

.admin-member-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.2), rgba(56, 189, 248, 0.05));
    border: 1px solid rgba(56, 189, 248, 0.4);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 13px;
    color: var(--gold-primary);
    margin-right: 10px;
    flex-shrink: 0;
}

.admin-member-name-cell {
    display: flex;
    align-items: center;
}

/* Profile Form Grid */
.profile-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

@media (max-width: 768px) {
    .profile-form-grid {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================
   METAFASTEST PUBLIC LANDING PAGE (HOMEPAGE BEFORE WALLET CONNECT)
   ========================================================== */

.landing-page-wrapper {
    min-height: 100vh;
    width: 100%;
    max-width: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
    background: radial-gradient(circle at 50% 12%, #12335c 0%, #091c38 48%, #040d1d 100%);
    color: var(--text-primary);
    overflow-x: hidden !important;
    overflow: hidden;
}

.landing-ambient-glow {
    position: absolute;
    width: 520px;
    max-width: 80vw;
    height: 520px;
    background: radial-gradient(circle, rgba(56, 189, 248, 0.18) 0%, rgba(125, 211, 252, 0.1) 45%, transparent 72%);
    pointer-events: none;
    z-index: 0;
    filter: blur(80px);
}
.landing-ambient-glow.top-left { top: -100px; left: 0; }
.landing-ambient-glow.mid-right { top: 35%; right: 0; background: radial-gradient(circle, rgba(14, 165, 233, 0.16) 0%, rgba(56, 189, 248, 0.1) 50%, transparent 72%); }
.landing-ambient-glow.bottom-center { bottom: 5%; left: 20%; }

.landing-container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
    z-index: 1;
}

/* 1. Public Top Navigation */
.landing-nav {
    position: sticky;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(7, 23, 46, 0.88);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(56, 189, 248, 0.25);
    padding: 14px 0;
}

.landing-nav-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.landing-brand {
    display: flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
}

.landing-brand-logo {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    border: 2px solid var(--gold-primary);
    box-shadow: 0 0 16px rgba(56, 189, 248, 0.35);
    object-fit: cover;
}

.landing-brand-text {
    display: flex;
    flex-direction: column;
}

.landing-brand-title {
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: 0.5px;
    line-height: 1.1;
}

.landing-brand-sub {
    font-size: 10px;
    font-weight: 700;
    color: var(--gold-primary);
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.landing-nav-links {
    display: flex;
    align-items: center;
    gap: 18px;
    list-style: none;
    white-space: nowrap;
    flex-shrink: 0;
}

.landing-nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 13.5px;
    font-weight: 500;
    white-space: nowrap;
    transition: all 0.2s ease;
}

.landing-nav-links a:hover {
    color: var(--gold-primary);
}

.landing-nav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* 2. Hero Section */
.landing-hero {
    padding: 60px 0 40px;
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 40px;
    align-items: center;
}

.hero-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.hero-pill-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(56, 189, 248, 0.12);
    border: 1px solid rgba(56, 189, 248, 0.35);
    border-radius: 30px;
    padding: 6px 16px;
    font-size: 12px;
    font-weight: 700;
    color: var(--gold-light);
    width: fit-content;
    letter-spacing: 0.5px;
    box-shadow: 0 0 15px rgba(56, 189, 248, 0.15);
}

.hero-pill-badge i {
    color: var(--gold-primary);
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 46px;
    font-weight: 800;
    line-height: 1.15;
    color: #fff;
}

.hero-title .gold-gradient-text {
    background: var(--gold-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.hero-description {
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-secondary);
    max-width: 580px;
}

.hero-highlights-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 4px;
}

.hero-highlight-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    color: var(--text-secondary);
}

.hero-highlight-icon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: rgba(56, 189, 248, 0.15);
    border: 1px solid var(--gold-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold-primary);
    font-size: 11px;
    flex-shrink: 0;
}

.hero-cta-group {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 10px;
    flex-wrap: wrap;
}

/* VIP Gateway Connect Card */
.landing-gateway-card {
    background: rgba(11, 30, 56, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(56, 189, 248, 0.42);
    border-radius: 24px;
    padding: 36px 30px;
    box-shadow: 0 25px 50px -12px rgba(2, 16, 36, 0.7), 0 0 35px rgba(56, 189, 248, 0.18);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.landing-gateway-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--gold-primary), transparent);
}

.gateway-card-header {
    margin-bottom: 20px;
}

.gateway-medallion-logo {
    width: 84px;
    height: 84px;
    border-radius: 50%;
    border: 3px solid var(--gold-primary);
    box-shadow: 0 0 25px rgba(56, 189, 248, 0.45);
    margin-bottom: 12px;
    object-fit: cover;
    display: inline-block;
    transition: transform 0.3s ease;
}

.gateway-medallion-logo:hover {
    transform: scale(1.06) rotate(6deg);
}

.gateway-card-title {
    font-family: var(--font-heading);
    font-size: 22px;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.gateway-card-sub {
    font-size: 12px;
    color: var(--text-secondary);
}

.login-referral-banner {
    background: rgba(56, 189, 248, 0.12);
    border: 1px solid var(--gold-primary);
    border-radius: 12px;
    padding: 10px 14px;
    font-size: 13px;
    color: var(--gold-light);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 18px;
    font-weight: 600;
}

.gateway-form-body {
    display: flex;
    flex-direction: column;
}

.gateway-connect-btn {
    width: 100%;
    padding: 14px 20px;
    font-size: 15px;
    font-weight: 700;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(56, 189, 248, 0.35);
    transition: all 0.25s ease;
}

.gateway-connect-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(56, 189, 248, 0.5);
}

.gateway-divider {
    display: flex;
    align-items: center;
    margin: 18px 0 14px;
    color: var(--text-muted);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.gateway-divider::before,
.gateway-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
}

.gateway-divider span {
    padding: 0 10px;
}

.gateway-input-group {
    text-align: left;
    margin-bottom: 10px;
}

.gateway-input-group label {
    display: block;
    font-size: 11px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 5px;
    letter-spacing: 0.3px;
}

.gateway-input-group label i {
    color: var(--gold-primary);
    margin-right: 4px;
}

.gateway-input-group .form-control {
    width: 100%;
    padding: 11px 14px;
    border-radius: 10px;
    border: 1px solid rgba(56, 189, 248, 0.3);
    outline: none;
    transition: all 0.2s ease;
}

.gateway-input-group .form-control:focus {
    border-color: var(--gold-primary);
    box-shadow: 0 0 12px rgba(56, 189, 248, 0.35);
}

.gateway-manual-btn {
    width: 100%;
    padding: 12px;
    font-weight: 700;
    margin-top: 10px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.gateway-manual-btn:hover {
    background: var(--gold-primary);
    color: #000;
}

.gateway-status-hint {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 12px;
    line-height: 1.4;
}

.gateway-card-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 11px;
    color: var(--text-muted);
}

/* 3. Live Stats Ribbon */
.landing-stats-ribbon {
    margin: 40px 0;
    background: rgba(14, 21, 38, 0.7);
    border: 1px solid rgba(56, 189, 248, 0.25);
    border-radius: 18px;
    padding: 24px 30px;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.landing-stat-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
}

.landing-stat-box:not(:last-child)::after {
    content: '';
    position: absolute;
    right: -10px;
    top: 15%;
    height: 70%;
    width: 1px;
    background: rgba(255, 255, 255, 0.08);
}

.stat-box-label {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-muted);
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.stat-box-value {
    font-family: var(--font-heading);
    font-size: 22px;
    font-weight: 800;
    color: var(--text-primary);
}

.stat-box-value.gold {
    color: var(--gold-primary);
}

.stat-box-sub {
    font-size: 11px;
    color: var(--accent-green);
    font-weight: 600;
    margin-top: 2px;
}

/* 4. Section Standard Styles */
.landing-section {
    padding: 70px 0;
    position: relative;
}

.landing-section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 50px;
}

.section-pill-tag {
    display: inline-block;
    padding: 4px 14px;
    background: rgba(56, 189, 248, 0.12);
    border: 1px solid rgba(56, 189, 248, 0.35);
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    color: var(--gold-light);
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.section-main-title {
    font-family: var(--font-heading);
    font-size: 36px;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1.2;
    margin-bottom: 12px;
}

.section-main-desc {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* 5. Ecosystem Features Grid */
.ecosystem-features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.eco-card {
    background: rgba(11, 30, 56, 0.65);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(38, 70, 140, 0.4);
    border-radius: 18px;
    padding: 30px 24px;
    display: flex;
    flex-direction: column;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.eco-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--border-gold), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.eco-card:hover {
    transform: translateY(-6px);
    border-color: rgba(56, 189, 248, 0.5);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5), 0 0 20px rgba(56, 189, 248, 0.15);
}

.eco-card:hover::before {
    opacity: 1;
}

.eco-icon-wrap {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.2), rgba(56, 189, 248, 0.05));
    border: 1px solid rgba(56, 189, 248, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: var(--gold-primary);
    margin-bottom: 20px;
}

.eco-card-title {
    font-family: var(--font-heading);
    font-size: 19px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 10px;
}

.eco-card-desc {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.55;
    flex: 1;
}

/* 6. NFT Thoroughbreds Showcase */
.nft-showcase-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.nft-horse-card {
    background: rgba(11, 30, 56, 0.8);
    border: 1px solid rgba(38, 70, 140, 0.5);
    border-radius: 20px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
}

.nft-horse-card:hover {
    transform: translateY(-8px);
    border-color: var(--gold-primary);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6), 0 0 25px rgba(56, 189, 248, 0.2);
}

.nft-card-img-wrap {
    width: 100%;
    aspect-ratio: 1 / 1;
    max-height: 260px;
    position: relative;
    overflow: hidden;
    background: #040714;
    border-bottom: 1px solid rgba(56, 189, 248, 0.2);
}

.nft-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    display: block;
}

.nft-card:hover .nft-card-img,
.nft-horse-card:hover .nft-card-img {
    transform: scale(1.08);
}

.nft-tier-pill {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    backdrop-filter: blur(8px);
}

.nft-tier-pill.tier-common { background: rgba(59, 130, 246, 0.7); color: #fff; }
.nft-tier-pill.tier-rare { background: rgba(245, 158, 11, 0.7); color: #fff; }
.nft-tier-pill.tier-epic { background: rgba(139, 92, 246, 0.7); color: #fff; }
.nft-tier-pill.tier-legendary { background: linear-gradient(135deg, #38bdf8, #0284c7); color: #ffffff; }

.nft-card-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    flex: 1;
}

.nft-card-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nft-horse-name {
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
}

.nft-horse-price {
    font-family: var(--font-heading);
    font-size: 16px;
    font-weight: 800;
    color: var(--gold-primary);
}

.nft-stats-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 12px;
}

.nft-stat-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: var(--text-secondary);
}

.nft-stat-row strong {
    color: var(--text-primary);
}

.nft-stat-bar-container {
    width: 100%;
    height: 5px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
    margin-top: 3px;
}

.nft-stat-bar-fill {
    height: 100%;
    background: var(--gold-gradient);
    border-radius: 4px;
}

.nft-card-action-btn {
    width: 100%;
    padding: 10px;
    font-size: 13px;
    font-weight: 700;
    border-radius: 8px;
    margin-top: auto;
}

/* 7. Staking Packages Grid */
.packages-preview-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.package-preview-card {
    background: rgba(11, 30, 56, 0.7);
    border: 1px solid rgba(38, 70, 140, 0.4);
    border-radius: 20px;
    padding: 30px 24px;
    display: flex;
    flex-direction: column;
    position: relative;
    transition: all 0.3s ease;
}

.package-preview-card.featured {
    border-color: var(--gold-primary);
    background: rgba(16, 26, 56, 0.85);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5), 0 0 25px rgba(56, 189, 248, 0.2);
}

.package-preview-card:hover {
    transform: translateY(-6px);
    border-color: var(--gold-primary);
}

.pkg-featured-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--gold-gradient);
    color: #000;
    font-size: 10px;
    font-weight: 800;
    padding: 4px 14px;
    border-radius: 20px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.pkg-card-top {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.pkg-icon-sphere {
    font-size: 28px;
}

.pkg-name-text {
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
}

.pkg-price-tag {
    font-family: var(--font-heading);
    font-size: 32px;
    font-weight: 800;
    color: var(--gold-primary);
    margin-bottom: 16px;
}

.pkg-price-tag span {
    font-size: 14px;
    color: var(--text-secondary);
    font-weight: 500;
}

.pkg-perks-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 24px;
    flex: 1;
}

.pkg-perk-item {
    font-size: 13px;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.pkg-perk-item i {
    color: var(--accent-green);
    font-size: 12px;
}

/* 8. Unilevel Rewards Section */
.unilevel-tier-cards-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
}

.unilevel-tier-card {
    background: rgba(11, 30, 56, 0.7);
    border: 1px solid rgba(38, 70, 140, 0.4);
    border-radius: 16px;
    padding: 24px 16px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.unilevel-tier-card:hover {
    transform: translateY(-4px);
    border-color: var(--gold-primary);
    background: rgba(16, 28, 60, 0.85);
}

.tier-badge-number {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(56, 189, 248, 0.15);
    border: 1px solid var(--gold-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-size: 16px;
    font-weight: 800;
    color: var(--gold-primary);
}

.tier-rate-pct {
    font-family: var(--font-heading);
    font-size: 28px;
    font-weight: 800;
    color: var(--text-primary);
}

.tier-title-label {
    font-size: 12px;
    font-weight: 700;
    color: var(--gold-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.tier-desc-text {
    font-size: 11px;
    color: var(--text-muted);
}

/* 9. How It Works Steps */
.how-it-works-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    position: relative;
}

.how-step-card {
    background: rgba(11, 30, 56, 0.65);
    border: 1px solid rgba(38, 70, 140, 0.4);
    border-radius: 20px;
    padding: 36px 26px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 14px;
    position: relative;
    transition: all 0.3s ease;
}

.how-step-card:hover {
    transform: translateY(-6px);
    border-color: var(--gold-primary);
}

.how-step-num {
    position: absolute;
    top: -16px;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--gold-gradient);
    color: #000;
    font-family: var(--font-heading);
    font-size: 15px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(56, 189, 248, 0.4);
}

.how-icon-box {
    font-size: 36px;
    color: var(--gold-primary);
    margin-top: 6px;
}

.how-step-title {
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
}

.how-step-desc {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* 10. FAQ Accordion */
.faq-accordion-list {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.faq-accordion-item {
    background: rgba(11, 30, 56, 0.65);
    border: 1px solid rgba(38, 70, 140, 0.35);
    border-radius: 14px;
    overflow: hidden;
    transition: all 0.2s ease;
}

.faq-accordion-item.active {
    border-color: rgba(56, 189, 248, 0.45);
    background: rgba(16, 26, 56, 0.85);
}

.faq-question-btn {
    width: 100%;
    padding: 18px 24px;
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-family: var(--font-heading);
    font-size: 16px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: space-between;
    text-align: left;
    cursor: pointer;
    gap: 16px;
}

.faq-question-btn i {
    font-size: 14px;
    color: var(--gold-primary);
    transition: transform 0.3s ease;
}

.faq-accordion-item.active .faq-question-btn i {
    transform: rotate(180deg);
}

.faq-answer-panel {
    display: none;
    padding: 0 24px 20px;
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
}

.faq-accordion-item.active .faq-answer-panel {
    display: block;
}

/* 11. Public Footer */
.landing-footer {
    background: rgba(5, 8, 16, 0.95);
    border-top: 1px solid rgba(56, 189, 248, 0.2);
    padding: 50px 0 30px;
    margin-top: 40px;
}

.landing-footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col-desc {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-top: 12px;
    max-width: 320px;
}

.footer-col-title {
    font-family: var(--font-heading);
    font-size: 15px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 16px;
    letter-spacing: 0.5px;
}

.footer-links-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-links-list a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 13px;
    transition: color 0.2s ease;
}

.footer-links-list a:hover {
    color: var(--gold-primary);
}

.footer-bottom-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 12px;
    color: var(--text-muted);
}

/* ==========================================================
   COMPREHENSIVE MOBILE & TABLET RESPONSIVE SYSTEM
   ========================================================== */

/* Universal word wrap & address overflow protection */
code, .copy-box, .wallet-address, .address-display, pre, .break-all {
    word-break: break-all !important;
    overflow-wrap: anywhere !important;
    max-width: 100% !important;
}

.copy-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid var(--border-gold);
    border-radius: var(--radius-sm);
    padding: 8px 10px;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

.copy-box span {
    word-break: break-all;
    overflow-wrap: anywhere;
    font-size: 11px;
    line-height: 1.4;
    min-width: 0;
    flex: 1 1 auto;
    color: var(--text-primary);
}

.copy-box .copy-btn {
    flex-shrink: 0;
    padding: 6px 10px;
    background: rgba(56, 189, 248, 0.1);
    border: 1px solid var(--gold-primary);
    color: var(--gold-light);
    border-radius: var(--radius-xs);
    cursor: pointer;
    transition: all 0.2s ease;
}

.copy-box .copy-btn:hover {
    background: var(--gold-primary);
    color: #000;
}

/* Laptop/Tablet Navigation Breakpoint (max-width: 1200px) */
@media (max-width: 1200px) {
    .landing-nav-links {
        display: none !important;
    }
    .landing-nav-content {
        justify-content: space-between;
    }
}

/* Tablet Breakpoint (max-width: 1100px) */
@media (max-width: 1100px) {
    .landing-hero {
        grid-template-columns: 1fr;
        gap: 36px;
    }
    .landing-stats-ribbon {
        grid-template-columns: repeat(3, 1fr);
    }
    .ecosystem-features-grid,
    .nft-showcase-grid,
    .packages-preview-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .unilevel-tier-cards-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .landing-footer-grid {
        grid-template-columns: 1fr 1fr;
    }
    .top-header {
        flex-wrap: wrap;
        gap: 12px;
    }
    .top-stats-ribbon {
        order: 3;
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
}

/* Mobile Breakpoint (max-width: 768px) */
@media (max-width: 768px) {
    /* 1. App Container & Mobile Navigation */
    .app-container {
        flex-direction: column;
        width: 100%;
        max-width: 100vw;
        min-height: 100vh;
        overflow-x: hidden;
        box-sizing: border-box;
    }

    .sidebar {
        width: 100%;
        max-width: 100vw;
        height: auto;
        border-right: none;
        border-bottom: 1px solid var(--border-gold);
        padding: 8px 12px;
        flex-direction: column;
        gap: 0;
        position: sticky;
        top: 0;
        z-index: 1000;
        background: rgba(5, 8, 20, 0.96);
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
        box-sizing: border-box !important;
        overflow-x: hidden;
    }

    .brand-header {
        padding: 0;
        margin: 0;
        border-bottom: none;
        width: 100%;
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        align-items: center !important;
        justify-content: space-between !important;
        gap: 8px !important;
        box-sizing: border-box !important;
        height: 42px !important;
    }

    .brand-identity-cluster {
        order: 1 !important;
        display: flex !important;
        align-items: center !important;
        flex-shrink: 0 !important;
    }

    .brand-logo {
        width: 36px !important;
        height: 36px !important;
        border-radius: 8px !important;
        flex-shrink: 0 !important;
    }

    .brand-title {
        display: none !important;
    }

    .sidebar .member-rank-banner,
    .member-rank-banner {
        order: 2 !important;
        flex: 1 1 0% !important;
        min-width: 0 !important;
        width: auto !important;
        max-width: calc(100% - 88px) !important;
        height: 38px !important;
        padding: 0 10px !important;
        display: flex !important;
        align-items: center !important;
        gap: 6px !important;
        border-radius: 20px !important;
        box-sizing: border-box !important;
        margin: 0 !important;
        cursor: default !important;
    }

    .sidebar #theme-toggle-brand,
    #theme-toggle-brand {
        order: 3 !important;
        width: 36px !important;
        height: 36px !important;
        min-width: 36px !important;
        flex: 0 0 36px !important;
        margin-left: auto !important;
    }

    #theme-toggle-header {
        display: none !important;
    }

    .rank-banner-icon-box {
        width: 26px;
        height: 26px;
        font-size: 14px;
        flex-shrink: 0;
        border-radius: 50%;
    }

    .rank-banner-info {
        display: flex;
        flex-direction: column;
        min-width: 0;
        flex: 1;
        justify-content: center;
        line-height: 1.15;
        overflow: hidden;
    }

    .rank-banner-tag {
        font-size: 8px;
        font-weight: 800;
        letter-spacing: 0.5px;
        text-transform: uppercase;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        display: block !important;
    }

    .rank-banner-title {
        font-size: 13.5px;
        font-weight: 800;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        font-family: var(--font-heading);
    }

    .rank-banner-badge {
        display: none !important;
    }

    .theme-toggle-btn {
        width: 36px !important;
        height: 36px !important;
        flex-shrink: 0 !important;
    }
    .theme-toggle-btn .theme-icon {
        font-size: 15px;
    }

    .header-left-cluster {
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 8px;
    }

    .nav-menu {
        flex-direction: row;
        overflow-x: auto;
        white-space: nowrap;
        width: 100%;
        gap: 6px;
        -webkit-overflow-scrolling: touch;
        padding: 4px 0 6px 0;
    }

    .nav-menu::-webkit-scrollbar {
        height: 3px;
    }

    .nav-menu::-webkit-scrollbar-thumb {
        background: var(--gold-primary);
        border-radius: 3px;
    }

    .nav-item {
        padding: 6px 10px;
        font-size: 12px;
        flex-shrink: 0;
        display: inline-flex;
        align-items: center;
        gap: 6px;
        border-radius: var(--radius-sm);
    }

    .nav-item span {
        display: inline-block !important;
    }

    .nav-item.active {
        border-left: none;
        border-bottom: 2px solid var(--gold-primary);
    }

    .sidebar-banner {
        display: none;
    }

    /* 2. Main Wrapper & Header */
    .main-wrapper {
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
    }

    .top-header {
        padding: 10px 12px;
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
        position: relative;
        width: 100%;
        box-sizing: border-box;
    }

    .user-welcome {
        display: flex;
        justify-content: space-between;
        align-items: center;
        flex-wrap: wrap;
        gap: 6px;
    }

    .welcome-title {
        font-size: 13px;
    }

    .top-stats-ribbon {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 6px;
        width: 100%;
        box-sizing: border-box;
    }

    .stat-chip {
        padding: 6px 8px;
        gap: 8px;
        min-width: 0;
        border-radius: var(--radius-md);
    }

    .stat-chip-icon {
        width: 26px;
        height: 26px;
        font-size: 12px;
        flex-shrink: 0;
    }

    .stat-chip-info {
        min-width: 0;
        overflow: hidden;
    }

    .stat-chip-info span {
        font-size: 8.5px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .stat-chip-info strong {
        font-size: 11px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        display: block;
    }

    .top-actions {
        display: flex;
        align-items: center;
        justify-content: flex-start;
        flex-wrap: wrap;
        width: 100%;
        gap: 6px;
        box-sizing: border-box;
    }

    .top-actions .btn-outline-gold {
        padding: 6px 10px;
        font-size: 11px;
        white-space: nowrap;
        gap: 5px;
    }

    .top-actions .icon-btn {
        width: 34px;
        height: 34px;
        font-size: 13px;
        flex-shrink: 0;
    }

    .top-actions #btn-connect-wallet {
        padding: 6px 12px;
        font-size: 11px;
        max-width: 140px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        gap: 5px;
        flex-shrink: 1;
    }

    .top-actions #wallet-btn-text {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        max-width: 95px;
        display: inline-block;
        vertical-align: middle;
    }

    /* 3. Content Area & Grids */
    .content-area {
        padding: 12px 10px;
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
        box-sizing: border-box;
    }

    .page-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        margin-bottom: 16px;
    }

    .page-title {
        font-size: 20px;
    }

    .dashboard-grid,
    .stats-grid,
    .packages-grid,
    .nft-grid,
    .wallet-overview-grid,
    .profile-grid,
    .ecosystem-features-grid,
    .nft-showcase-grid,
    .packages-preview-grid,
    .how-it-works-grid {
        grid-template-columns: 1fr !important;
        gap: 12px !important;
        width: 100%;
    }

    .unilevel-tier-cards-grid {
        grid-template-columns: 1fr !important;
        gap: 10px !important;
    }

    .card {
        padding: 14px 12px;
        max-width: 100%;
        min-width: 0;
        box-sizing: border-box;
        overflow: hidden;
    }

    .card-header {
        flex-wrap: wrap;
        gap: 8px;
    }

    .card-title {
        font-size: 14px;
    }

    .dash-balance-hero {
        padding: 16px 12px;
    }

    .dash-main-amount {
        font-size: 24px;
        word-break: break-all;
    }

    .dash-hero-actions {
        flex-direction: column;
        width: 100%;
        gap: 8px;
    }

    .dash-hero-actions .btn-gold,
    .dash-hero-actions .btn-outline-gold {
        width: 100%;
        justify-content: center;
    }

    /* 4. Tokenomics & Address Cards */
    [style*="grid-template-columns: repeat(3, 1fr)"] {
        grid-template-columns: 1fr !important;
        gap: 10px !important;
    }

    [style*="justify-content: space-between"] {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 10px !important;
    }

    [style*="justify-content: space-between"] > div:last-child {
        width: 100%;
        display: flex;
        gap: 8px;
    }

    [style*="justify-content: space-between"] > div:last-child button,
    [style*="justify-content: space-between"] > div:last-child a {
        flex: 1;
        text-align: center;
        justify-content: center;
    }

    /* 5. Responsive Tables */
    .table-responsive {
        width: 100%;
        max-width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        margin-top: 8px;
        display: block;
        border-radius: var(--radius-sm);
    }

    .data-table {
        min-width: 540px;
        width: 100%;
        font-size: 11px;
    }

    .data-table th,
    .data-table td {
        padding: 8px 10px;
        white-space: nowrap;
    }

    /* 6. Modals on Mobile */
    .modal-box {
        width: 92% !important;
        max-width: 440px !important;
        padding: 18px 14px !important;
        max-height: 88vh !important;
        overflow-y: auto !important;
        box-sizing: border-box;
    }

    /* 7. Public Landing Page */
    .landing-nav {
        padding: 8px 12px;
    }

    .landing-nav-content {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 8px;
    }

    .landing-brand-sub {
        display: none !important;
    }

    .landing-brand-title {
        font-size: 14px;
        letter-spacing: 0.5px;
    }

    .landing-nav-links {
        display: none;
    }

    .landing-nav-actions {
        display: flex;
        align-items: center;
        gap: 6px;
    }

    .landing-nav-actions #landing-connected-bar {
        display: none !important;
    }

    .landing-nav-actions .btn-gold {
        padding: 6px 12px !important;
        font-size: 11px !important;
        white-space: nowrap;
    }

    .landing-mobile-menu-btn {
        display: flex !important;
        width: 34px !important;
        height: 34px !important;
        font-size: 14px !important;
        flex-shrink: 0 !important;
    }

    .hero-title {
        font-size: 26px;
        line-height: 1.25;
    }

    .hero-subtitle {
        font-size: 14px;
    }

    .hero-cta-group {
        flex-direction: column;
        width: 100%;
        gap: 10px;
    }

    .hero-cta-group .btn-gold,
    .hero-cta-group .btn-outline-gold {
        width: 100%;
        text-align: center;
        justify-content: center;
    }

    .landing-stats-ribbon {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .landing-stat-box:not(:last-child)::after {
        display: none;
    }

    .landing-footer-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .footer-bottom-row {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }

    .toast {
        left: 12px;
        right: 12px;
        bottom: 12px;
        font-size: 12px;
        padding: 10px 14px;
    }

    /* Narrow Screen Rules - Guarantee Clean Expansion & Zero Boundary Overlap */
    @media (max-width: 480px) {
        .brand-header {
            gap: 8px !important;
            flex-wrap: nowrap !important;
        }
        .brand-identity-cluster {
            flex-shrink: 0 !important;
        }
        .brand-logo {
            width: 36px !important;
            height: 36px !important;
            flex-shrink: 0 !important;
        }
        .sidebar .member-rank-banner,
        .member-rank-banner {
            flex: 1 1 0% !important;
            min-width: 0 !important;
            max-width: calc(100% - 88px) !important;
            height: 38px !important;
            padding: 0 8px !important;
            gap: 6px !important;
        }
        .sidebar #theme-toggle-brand,
        #theme-toggle-brand {
            width: 36px !important;
            height: 36px !important;
            flex-shrink: 0 !important;
            margin-left: auto !important;
        }
        .rank-banner-icon-box {
            width: 24px !important;
            height: 24px !important;
            font-size: 13px !important;
        }
        .rank-banner-tag {
            font-size: 7.5px !important;
        }
        .rank-banner-title {
            font-size: 13px !important;
        }
        .rank-banner-badge {
            display: none !important;
        }
        .landing-brand-sub {
            display: none !important;
        }
    }

    @media (max-width: 360px) {
        .brand-header {
            gap: 6px !important;
        }
        .brand-logo {
            width: 34px !important;
            height: 34px !important;
        }
        .member-rank-banner {
            flex: 1 1 0% !important;
            max-width: calc(100% - 84px) !important;
            height: 36px !important;
            padding: 0 8px !important;
            gap: 5px !important;
        }
        .rank-banner-icon-box {
            width: 22px !important;
            height: 22px !important;
            font-size: 12px !important;
        }
        .rank-banner-title {
            font-size: 12px !important;
        }
        .rank-banner-badge {
            display: none !important;
        }
        .theme-toggle-btn {
            width: 34px !important;
            height: 34px !important;
        }
    }
}

/* ==========================================================
   LUCKY PICK & MASTER PACKAGES ENHANCEMENTS
   ========================================================== */
.lucky-ball-input-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.lucky-ball-input-box label {
    font-size: 11px;
    font-weight: 700;
    color: var(--gold-primary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.lucky-number-input {
    width: 68px;
    height: 68px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 35%, #bae6fd, #0ea5e9 60%, #0284c7 100%);
    color: #0c152e;
    font-size: 26px;
    font-weight: 900;
    text-align: center;
    border: 3px solid #ffffff;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.6), inset 0 2px 4px rgba(255, 255, 255, 0.6);
    outline: none;
    transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.2s ease;
    -moz-appearance: textfield;
}

.lucky-number-input::-webkit-outer-spin-button,
.lucky-number-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.lucky-number-input:focus {
    transform: scale(1.12);
    box-shadow: 0 0 25px rgba(56, 189, 248, 0.85), inset 0 2px 4px rgba(255, 255, 255, 0.9);
}

.pkg-header-badge {
    position: absolute;
    top: 14px;
    right: 14px;
    font-size: 10px;
}

/* ==========================================================
   INTERACTIVE 1 TO 12 LUCKY PICK NUMBER SELECTOR
   ========================================================== */
.lucky-12-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 12px;
    max-width: 480px;
    margin: 16px auto 20px auto;
    padding: 14px;
    background: rgba(10, 13, 22, 0.7);
    border: 1px solid rgba(56, 189, 248, 0.25);
    border-radius: 16px;
}

@media (max-width: 540px) {
    .lucky-12-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 10px;
    }
}

.lucky-select-ball {
    aspect-ratio: 1;
    border-radius: 50%;
    background: linear-gradient(145deg, #1a2035, #101423);
    border: 2px solid rgba(56, 189, 248, 0.3);
    color: #cbd5e1;
    font-size: 18px;
    font-weight: 800;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.22s cubic-bezier(0.34, 1.56, 0.64, 1);
    user-select: none;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
    position: relative;
    overflow: hidden;
}

.lucky-select-ball::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 8px;
    width: 35%;
    height: 35%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.4), transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.lucky-select-ball:hover {
    transform: translateY(-3px) scale(1.1);
    border-color: var(--gold-primary);
    color: #ffffff;
    box-shadow: 0 6px 16px rgba(56, 189, 248, 0.4);
}

.lucky-select-ball.selected {
    background: radial-gradient(circle at 35% 35%, #bae6fd, #0ea5e9 60%, #0284c7 100%);
    color: #0c152e;
    border-color: #ffffff;
    font-weight: 900;
    transform: translateY(-4px) scale(1.14);
    box-shadow: 0 0 20px rgba(56, 189, 248, 0.85), inset 0 2px 4px rgba(255, 255, 255, 0.8);
    animation: luckyPulse 1.8s infinite alternate;
}

@keyframes luckyPulse {
    0% { box-shadow: 0 0 12px rgba(56, 189, 248, 0.6); }
    100% { box-shadow: 0 0 24px rgba(56, 189, 248, 0.95); }
}

/* ==========================================================
   PWA (PROGRESSIVE WEB APP) STYLING
   ========================================================== */
.btn-pwa-install {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    font-size: 12px;
    font-weight: 700;
    color: var(--gold-primary);
    background: rgba(56, 189, 248, 0.08);
    border: 1px solid rgba(56, 189, 248, 0.35);
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: all 0.25s ease;
}

.btn-pwa-install:hover {
    background: rgba(56, 189, 248, 0.18);
    border-color: var(--gold-primary);
    box-shadow: 0 0 16px rgba(56, 189, 248, 0.3);
    transform: translateY(-1px);
}

#mobile-pwa-floating-bar {
    animation: slideUpFloat 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

body.in-dapp-view #mobile-pwa-floating-bar {
    bottom: 74px !important;
}

@keyframes slideUpFloat {
    from {
        opacity: 0;
        transform: translate(-50%, 30px);
    }
    to {
        opacity: 1;
        transform: translate(-50%, 0);
    }
}

@media (max-width: 768px) {
    .btn-pwa-install span {
        display: none;
    }
    .btn-pwa-install {
        padding: 8px 10px;
    }
}

.hero-pwa-install-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 9px 20px;
    font-size: 13px;
    font-weight: 700;
    color: var(--gold-primary);
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.12), rgba(56, 189, 248, 0.05));
    border: 1px solid rgba(56, 189, 248, 0.45);
    border-radius: var(--radius-full);
    cursor: pointer;
    width: fit-content;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.4), 0 0 16px rgba(56, 189, 248, 0.2);
    transition: all 0.25s ease;
    text-decoration: none;
    margin-bottom: -6px;
}

.hero-pwa-install-btn:hover {
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.22), rgba(56, 189, 248, 0.14));
    border-color: var(--gold-primary);
    box-shadow: 0 6px 24px rgba(56, 189, 248, 0.35);
    transform: translateY(-2px);
}

.hero-pwa-install-btn span {
    display: inline !important;
}

/* ==========================================================
   ADMIN VAULT SECURITY PASSWORD MODAL & ACCESS CONTROLS
   ========================================================== */
.admin-security-modal-content {
    background: radial-gradient(circle at 50% 0%, rgba(56, 189, 248, 0.08) 0%, rgba(7, 23, 46, 0.98) 75%);
    border: 1px solid rgba(56, 189, 248, 0.45);
    border-radius: 24px;
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.95), 0 0 35px rgba(56, 189, 248, 0.2);
    position: relative;
    overflow: hidden;
}

.admin-security-modal-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--gold-primary), var(--gold-light), transparent);
}

.admin-security-shield-wrap {
    position: relative;
    width: 76px;
    height: 76px;
    margin: 4px auto 14px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.admin-security-shield-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.25), rgba(56, 189, 248, 0.08));
    border: 2px solid var(--gold-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: var(--gold-primary);
    box-shadow: 0 0 30px rgba(56, 189, 248, 0.45);
    z-index: 2;
    transition: transform 0.3s ease;
}

.admin-security-shield-ring {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 1px dashed rgba(56, 189, 248, 0.5);
    animation: security-ring-spin 16s linear infinite;
}

@keyframes security-ring-spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.admin-vault-info-card {
    background: rgba(11, 30, 56, 0.75);
    border: 1px solid rgba(56, 189, 248, 0.3);
    border-radius: 14px;
    padding: 12px 16px;
    text-align: left;
    box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.4);
}

.vault-type-tag {
    font-size: 13px;
    font-weight: 700;
    color: var(--gold-light);
    display: flex;
    align-items: center;
    gap: 7px;
}

.password-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
}

.admin-security-input {
    width: 100%;
    padding: 12px 42px 12px 14px !important;
    background: rgba(5, 8, 20, 0.9) !important;
    border: 1px solid rgba(56, 189, 248, 0.35) !important;
    border-radius: 12px !important;
    color: #fff !important;
    font-size: 14px !important;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.admin-security-input:focus {
    outline: none;
    border-color: var(--gold-primary) !important;
    box-shadow: 0 0 16px rgba(56, 189, 248, 0.35) !important;
}

.btn-toggle-password {
    position: absolute;
    right: 12px;
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6px;
    transition: color 0.2s ease;
}

.btn-toggle-password:hover {
    color: var(--gold-primary);
}

.admin-security-error {
    margin-top: 10px;
    padding: 10px 14px;
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.45);
    border-radius: 10px;
    color: #fca5a5;
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    text-align: left;
    animation: security-shake 0.4s ease-in-out;
}

@keyframes security-shake {
    0%, 100% { transform: translateX(0); }
    20%, 60% { transform: translateX(-6px); }
    40%, 80% { transform: translateX(6px); }
}

.vault-fast-chips {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 6px;
    margin-bottom: 12px;
}

.vault-quick-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(56, 189, 248, 0.08);
    border: 1px solid rgba(56, 189, 248, 0.25);
    border-radius: 20px;
    padding: 4px 10px;
    font-size: 11px;
    color: var(--gold-light);
    cursor: pointer;
    transition: all 0.2s ease;
}

.vault-quick-chip:hover {
    background: rgba(56, 189, 248, 0.2);
    border-color: var(--gold-primary);
    transform: translateY(-1px);
    color: #fff;
}

.nav-admin-locked {
    border-left: 3px solid rgba(56, 189, 248, 0.4) !important;
}

.nav-admin-unlocked {
    border-left: 3px solid var(--accent-green) !important;
}

.admin-override-modal-content {
    background: linear-gradient(145deg, rgba(16, 24, 39, 0.96), rgba(8, 12, 22, 0.98)) !important;
    border: 1px solid rgba(56, 189, 248, 0.3) !important;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8), 0 0 30px rgba(0, 229, 255, 0.1) !important;
    border-radius: 16px !important;
}

.referral-highlight-box {
    background: rgba(12, 21, 46, 0.75);
    border: 1px solid var(--border-gold);
    border-radius: 20px;
    padding: 32px;
    max-width: 780px;
    margin: 0 auto;
    text-align: center;
}

.admin-gold-card {
    border: 1px solid rgba(56, 189, 248, 0.4);
    background: linear-gradient(180deg, rgba(13, 36, 68, 0.95), rgba(6, 20, 40, 0.95));
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.kpi-container-dark {
    padding: 16px;
    border-bottom: 1px solid var(--border-card);
    background: rgba(10, 14, 26, 0.4);
}

.kpi-sub-box {
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid var(--border-card);
    border-radius: 8px;
    padding: 10px 14px;
}

/* ==========================================================
   MOBILE UX ENHANCEMENTS: BOTTOM NAV, DRAWERS & ACCELERATION
   ========================================================== */

/* 1. Content-Visibility & Rendering Performance */
.landing-features-grid,
.nft-showcase-grid,
.faq-grid,
.tab-view:not(.active) {
    content-visibility: auto;
    contain-intrinsic-size: auto 500px;
}

/* 2. Landing Mobile Navigation Hamburger & Drawer */
.landing-mobile-menu-btn {
    display: none;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(56, 189, 248, 0.35);
    color: var(--gold-primary);
    width: 38px;
    height: 38px;
    border-radius: 8px;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.2s ease;
    -webkit-tap-highlight-color: transparent;
}

.landing-mobile-menu-btn:active {
    transform: scale(0.92);
    background: rgba(56, 189, 248, 0.2);
}

.landing-mobile-drawer {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 290px;
    max-width: 82vw;
    background: linear-gradient(180deg, #091024 0%, #040714 100%);
    border-left: 1px solid var(--border-gold);
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.85);
    z-index: 1200;
    padding: 20px;
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: none;
    visibility: hidden;
    box-sizing: border-box;
}

.landing-mobile-drawer.active {
    transform: translateX(0);
    pointer-events: auto;
    visibility: visible;
}

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

.landing-mobile-drawer-close {
    background: rgba(255, 255, 255, 0.08);
    border: none;
    color: #fff;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 14px;
}

.landing-mobile-nav-links {
    display: flex;
    flex-direction: column;
    gap: 4px;
    overflow-y: auto;
    flex: 1;
}

.landing-mobile-nav-links a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.landing-mobile-nav-links a i {
    width: 18px;
    color: var(--gold-primary);
    font-size: 14px;
}

.landing-mobile-nav-links a:hover,
.landing-mobile-nav-links a:active {
    color: #fff;
    background: rgba(56, 189, 248, 0.08);
}

.landing-mobile-drawer-cta {
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

/* 3. Mobile Bottom Navigation Bar (Dashboard Members View) */
.mobile-bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 62px;
    background: rgba(6, 11, 25, 0.96);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-top: 1px solid rgba(56, 189, 248, 0.35);
    box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.7);
    z-index: 990;
    align-items: center;
    justify-content: space-around;
    padding: 0 4px calc(env(safe-area-inset-bottom, 0px) + 2px);
    box-sizing: border-box;
}

.mobile-nav-btn {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 10px;
    font-weight: 600;
    cursor: pointer;
    padding: 6px 0;
    transition: all 0.2s ease;
    -webkit-tap-highlight-color: transparent;
}

.mobile-nav-btn i {
    font-size: 17px;
    transition: transform 0.2s ease, color 0.2s ease;
}

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

.mobile-nav-btn.active i {
    transform: translateY(-2px);
    color: var(--gold-primary);
    filter: drop-shadow(0 0 6px rgba(56, 189, 248, 0.5));
}

/* 4. Mobile More Menu Drawer */
.mobile-more-drawer {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 1050;
}

.mobile-more-drawer.active {
    display: block;
}

.mobile-more-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    animation: fadeIn 0.25s ease;
}

.mobile-more-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    max-height: 82vh;
    overflow-y: auto;
    background: linear-gradient(180deg, #0d2444 0%, #061428 100%);
    border-top: 1px solid var(--border-gold);
    border-radius: 20px 20px 0 0;
    padding: 18px 18px calc(env(safe-area-inset-bottom, 0px) + 20px);
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.9);
    animation: slideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-sizing: border-box;
}

.mobile-more-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    margin-bottom: 14px;
}

.mobile-more-close {
    background: rgba(255, 255, 255, 0.08);
    border: none;
    color: #fff;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 14px;
}

.mobile-more-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.mobile-more-card {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(18, 30, 66, 0.6);
    border: 1px solid rgba(38, 70, 140, 0.4);
    border-radius: 12px;
    padding: 12px 14px;
    color: var(--text-primary);
    font-size: 12px;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
    transition: all 0.2s ease;
    -webkit-tap-highlight-color: transparent;
}

.mobile-more-card i {
    font-size: 16px;
    flex-shrink: 0;
}

.mobile-more-card:active {
    transform: scale(0.97);
    background: rgba(56, 189, 248, 0.12);
    border-color: var(--gold-primary);
}

/* 5. Mobile Responsive Rules */
@media (max-width: 768px) {
    .landing-mobile-menu-btn {
        display: flex;
    }

    body.in-dapp-view .mobile-bottom-nav {
        display: flex;
    }

    body.in-dapp-view .dashboard-content {
        padding-bottom: 84px !important;
    }

    .landing-ambient-glow {
        width: 260px !important;
        height: 260px !important;
        filter: blur(36px) !important;
        opacity: 0.55 !important;
    }

    .landing-ambient-glow.mid-right,
    .landing-ambient-glow.bottom-center {
        display: none !important;
    }

    .hero-title {
        font-size: 24px !important;
        line-height: 1.25 !important;
        margin-bottom: 12px !important;
    }

    .hero-description {
        font-size: 13px !important;
        line-height: 1.5 !important;
        margin-bottom: 16px !important;
    }

    .hero-highlights-list {
        margin-bottom: 20px !important;
    }

    .hero-highlight-item {
        font-size: 12px !important;
        gap: 8px !important;
    }

    .landing-container,
    .dashboard-content,
    .main-wrapper,
    .app-container {
        max-width: 100vw !important;
        overflow-x: hidden !important;
    }
}


