/* index.css */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;800&display=swap');

:root {
    --primary: #00f0ff;
    --secondary: #7000ff;
    --bg-dark: #07090e;
    --bg-card: rgba(15, 20, 35, 0.6);
    --text-main: #ffffff;
    --text-muted: #8b9bb4;
    --glow: 0 5px 15px rgba(0, 0, 0, 0.4);
    --card-border: 1px solid rgba(255, 255, 255, 0.05);
    --header-bg: rgba(7, 9, 14, 0.85);
}

.light-mode {
    --primary: #00b4d8;
    --secondary: #480ca8;
    --bg-dark: #f8f9fa;
    --bg-card: rgba(255, 255, 255, 0.9);
    --text-main: #212529;
    --text-muted: #6c757d;
    --glow: 0 0 20px rgba(0, 180, 216, 0.2);
    --card-border: 1px solid rgba(0, 0, 0, 0.05);
    --header-bg: rgba(255, 255, 255, 0.85);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', sans-serif;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    overflow-x: hidden;
    background-image: radial-gradient(circle at 50% 0%, rgba(112, 0, 255, 0.15), transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(0, 240, 255, 0.1), transparent 50%);
    min-height: 100vh;
}

/* Header */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 5%;
    background: var(--header-bg);
    backdrop-filter: blur(10px);
    border-bottom: var(--card-border);
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo {
    font-size: 28px;
    font-weight: 800;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: 2px;
}

.nav-links a {
    color: var(--text-main);
    text-decoration: none;
    margin-left: 30px;
    font-weight: 600;
    transition: 0.3s;
}

.nav-links a:hover {
    color: var(--primary);
    text-shadow: 0 0 10px var(--primary);
}

.btn-connect {
    background: linear-gradient(45deg, var(--primary), var(--secondary));
    border: none;
    padding: 10px 25px;
    border-radius: 30px;
    color: white;
    font-weight: 800;
    cursor: pointer;
    box-shadow: var(--glow);
    transition: transform 0.3s, box-shadow 0.3s;
}

.btn-connect:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 30px rgba(0, 240, 255, 0.6);
}

/* Hero Section */
.hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 100px 20px;
    min-height: 80vh;
}

.hero h1 {
    font-size: 64px;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 20px;
}

.hero h1 span {
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: 20px;
    color: var(--text-muted);
    max-width: 700px;
    margin-bottom: 40px;
    line-height: 1.6;
}

.badge-new {
    display: inline-block;
    background: rgba(0, 240, 255, 0.1);
    color: var(--primary);
    border: 1px solid var(--primary);
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 800;
    margin-bottom: 20px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.stats-container {
    display: flex;
    gap: 30px;
    margin-top: 50px;
}

.stat-box {
    background: var(--bg-card);
    border: var(--card-border);
    padding: 30px 40px;
    border-radius: 20px;
    text-align: center;
    transition: transform 0.3s, border-color 0.3s;
}

.stat-box:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
}

.stat-value {
    font-size: 36px;
    font-weight: 800;
    color: var(--primary);
    text-shadow: 0 0 10px rgba(0, 240, 255, 0.3);
}

.stat-label {
    font-size: 14px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 5px;
}

/* Architecture Section */
.architecture-section {
    padding: 80px 5%;
    background: linear-gradient(180deg, rgba(7, 9, 14, 0) 0%, rgba(15, 20, 35, 0.4) 100%);
    border-top: var(--card-border);
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 42px;
    font-weight: 800;
    margin-bottom: 10px;
}

.section-header h2 span {
    color: var(--primary);
}

.section-header p {
    color: var(--text-muted);
    font-size: 18px;
}

.arch-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
}

.arch-card {
    background: var(--bg-card);
    border: var(--card-border);
    border-radius: 24px;
    padding: 40px;
    flex: 1;
    min-width: 350px;
    transition: transform 0.4s ease;
}

.arch-card:hover {
    transform: translateY(-10px);
}

.nexgen-contract {
    border-top: 4px solid var(--primary);
    box-shadow: 0 -10px 30px rgba(0, 240, 255, 0.05);
}

.trading-contract {
    border-top: 4px solid var(--secondary);
    box-shadow: 0 -10px 30px rgba(112, 0, 255, 0.05);
}

.arch-icon {
    font-size: 40px;
    margin-bottom: 20px;
}

.nexgen-contract .arch-icon {
    color: var(--primary);
}

.trading-contract .arch-icon {
    color: var(--secondary);
}

.arch-card h3 {
    font-size: 28px;
    margin-bottom: 5px;
}

.arch-subtitle {
    color: var(--text-muted);
    margin-bottom: 25px;
    font-size: 15px;
}

.arch-features {
    list-style: none;
}

.arch-features li {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 16px;
    color: #e2e8f0;
}

.nexgen-contract .arch-features li i {
    color: var(--primary);
}

.trading-contract .arch-features li i {
    color: var(--secondary);
}

.arch-split-icon {
    font-size: 30px;
    color: var(--text-muted);
    background: var(--bg-card);
    width: 60px;
    height: 60px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    border: var(--card-border);
}

@media (max-width: 900px) {
    .arch-grid {
        flex-direction: column;
    }

    .arch-split-icon {
        transform: rotate(90deg);
    }
}

/* Smart Contract Info Section */
.contract-section {
    padding: 80px 5%;
    background: var(--bg-dark);
}

.contract-grid {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
}

.contract-box {
    background: var(--bg-card);
    border: var(--card-border);
    border-radius: 16px;
    padding: 30px;
    flex: 1;
    min-width: 320px;
    text-align: center;
}

.contract-box h3 {
    color: var(--primary);
    margin-bottom: 15px;
}

.contract-address-bar {
    display: flex;
    background: rgba(0, 0, 0, 0.6);
    border-radius: 8px;
    padding: 10px;
    align-items: center;
    margin-bottom: 20px;
}

.contract-address-bar input {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 14px;
    width: 100%;
    outline: none;
    font-family: monospace;
}

.icon-btn {
    background: transparent;
    border: none;
    color: var(--text-main);
    cursor: pointer;
    font-size: 16px;
    padding: 0 10px;
    transition: 0.3s;
}

.icon-btn:hover {
    color: var(--primary);
}

.btn-bscscan {
    display: inline-block;
    padding: 8px 20px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    text-decoration: none;
    font-size: 14px;
    transition: 0.3s;
}

.btn-bscscan:hover {
    background: var(--primary);
    color: black;
}

/* Live Trading Section */
.trading-section {
    padding: 80px 5%;
    background: linear-gradient(180deg, var(--bg-dark) 0%, rgba(15, 20, 35, 0.4) 100%);
    border-top: var(--card-border);
    position: relative;
    overflow: hidden;
}

.trading-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    gap: 50px;
    align-items: center;
}

/* Modal Overlays & Glassmorphism */
.modal-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    z-index: 2000000;
    display: none; /* Toggled by JS */
    align-items: center;
    justify-content: center;
    animation: fadeInOverlay 0.3s ease-out;
}

.modal-overlay.visible {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    z-index: 10000000 !important;
}

@keyframes fadeInOverlay {
    from { opacity: 0; backdrop-filter: blur(0px); }
    to { opacity: 1; backdrop-filter: blur(15px); }
}

.glass-panel {
    background: rgba(20, 25, 40, 0.7);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 242, 254, 0.2);
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
}

.trading-content {
    flex: 1;
}

.trading-content h2 {
    font-size: 42px;
    margin-bottom: 20px;
}

.trading-content h2 span {
    color: #10b981;
}

.trading-content p {
    color: var(--text-muted);
    font-size: 18px;
    line-height: 1.6;
    margin-bottom: 30px;
}

.trading-chart-wrapper {
    flex: 1;
    background: var(--bg-card);
    border: var(--card-border);
    border-radius: 20px;
    padding: 20px;
    box-shadow: 0 10px 40px rgba(16, 185, 129, 0.1);
    position: relative;
}

.live-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(16, 185, 129, 0.2);
    color: #10b981;
    border: 1px solid #10b981;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 8px;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background: #10b981;
    border-radius: 50%;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(16, 185, 129, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
    }
}

.chart-svg {
    width: 100%;
    height: 250px;
    margin-top: 30px;
}

.chart-line {
    fill: none;
    stroke: url(#chart-gradient);
    stroke-width: 4;
    stroke-linecap: round;
    animation: dash 5s linear infinite;
}

.chart-area {
    fill: url(#area-gradient);
}

@keyframes dash {
    to {
        stroke-dashoffset: 0;
    }
}

@media (max-width: 900px) {
    .trading-container {
        flex-direction: column;
    }
}

/* Features Section */
.features-section {
    padding: 80px 5%;
    background: var(--bg-dark);
}

.features-grid {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
}

.feature-box {
    background: var(--bg-card);
    border: var(--card-border);
    border-radius: 16px;
    padding: 30px;
    flex: 1;
    min-width: 250px;
    text-align: center;
    transition: transform 0.3s;
}

.feature-box:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
}

.feature-icon {
    font-size: 36px;
    color: var(--primary);
    margin-bottom: 20px;
}

.feature-box h3 {
    margin-bottom: 15px;
    font-size: 22px;
}

.feature-box p {
    color: var(--text-muted);
    font-size: 15px;
    line-height: 1.5;
}

/* How It Works Section */
.how-it-works-section {
    padding: 80px 5%;
    background: linear-gradient(180deg, rgba(15, 20, 35, 0.4) 0%, rgba(7, 9, 14, 0) 100%);
    border-top: var(--card-border);
    border-bottom: var(--card-border);
}

.timeline {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 30px;
    height: 100%;
    width: 2px;
    background: var(--card-border);
}

.timeline-step {
    position: relative;
    padding-left: 80px;
    margin-bottom: 40px;
}

.timeline-step:last-child {
    margin-bottom: 0;
}

.step-number {
    position: absolute;
    left: 10px;
    top: 0;
    width: 40px;
    height: 40px;
    background: var(--bg-card);
    border: 2px solid var(--primary);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: 800;
    color: var(--primary);
    box-shadow: 0 0 15px rgba(0, 240, 255, 0.2);
    z-index: 2;
}

.step-content h3 {
    color: white;
    font-size: 22px;
    margin-bottom: 10px;
}

.step-content p {
    color: var(--text-muted);
    line-height: 1.6;
}

/* Global Trading Map */
.global-map-section {
    padding: 60px 5%;
    background: var(--bg-dark);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.map-container {
    max-width: 1000px;
    margin: 40px auto 0;
    position: relative;
    height: 400px;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 500"><path fill="rgba(8, 20, 45, 0.8)" stroke="rgba(0, 240, 255, 0.2)" stroke-width="1" d="M150,150 Q180,130 200,160 T250,140 T300,180 T350,120 T400,200 T450,150 T500,220 T550,180 T600,250 T650,200 T700,230 T750,170 T800,240 T850,210 T900,280 L900,500 L100,500 Z"/></svg>');
    background-size: cover;
    background-position: center;
    border-radius: 20px;
    border: var(--card-border);
}

.map-node {
    position: absolute;
    width: 12px;
    height: 12px;
    background: var(--primary);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--primary);
    animation: mapPulse 2s infinite;
}

@keyframes mapPulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.5);
        opacity: 0.5;
    }

    100% {
        transform: scale(1);
        opacity: 0;
        box-shadow: 0 0 20px var(--primary);
    }
}

.node-1 {
    top: 30%;
    left: 20%;
    animation-delay: 0s;
}

.node-2 {
    top: 45%;
    left: 45%;
    animation-delay: 0.5s;
    background: var(--secondary);
    box-shadow: 0 0 10px var(--secondary);
}

.node-3 {
    top: 25%;
    left: 75%;
    animation-delay: 1s;
}

.node-4 {
    top: 60%;
    left: 85%;
    animation-delay: 1.5s;
    background: var(--secondary);
    box-shadow: 0 0 10px var(--secondary);
}

.node-5 {
    top: 55%;
    left: 30%;
    animation-delay: 0.8s;
}

.live-feed {
    position: absolute;
    bottom: 20px;
    left: 20px;
    background: rgba(0, 0, 0, 0.6);
    padding: 10px 15px;
    border-radius: 8px;
    border-left: 3px solid #10b981;
    font-family: monospace;
    font-size: 13px;
    text-align: left;
}

/* Professional Footer */
footer {
    background: rgba(7, 9, 14, 0.95);
    border-top: var(--card-border);
    padding: 60px 5% 30px;
    margin-top: 40px;
}

.footer-grid {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
    gap: 40px;
}

.footer-col {
    flex: 1;
    min-width: 200px;
}

.footer-col.brand {
    flex: 2;
    min-width: 300px;
}

.footer-col h4 {
    color: white;
    font-size: 18px;
    margin-bottom: 20px;
    font-weight: 600;
}

.footer-col p {
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 20px;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 14px;
    transition: 0.3s;
}

.footer-links a:hover {
    color: var(--primary);
    padding-left: 5px;
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icons a {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    color: white;
    text-decoration: none;
    transition: 0.3s;
}

.social-icons a:hover {
    background: var(--primary);
    color: black;
    transform: translateY(-3px);
}

.footer-bottom {
    max-width: 1200px;
    margin: 40px auto 0;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    text-align: center;
    color: var(--text-muted);
    font-size: 13px;
}

#dashboard {
    display: none;
    padding: 10px 5% 60px;
}

/* App-like Dashboard System */
.app-header {
    text-align: center;
    padding: 5px 20px 20px;
    background: linear-gradient(180deg, rgba(7, 9, 14, 0.8) 0%, rgba(15, 20, 35, 0.4) 100%);
    border-bottom: var(--card-border);
    margin-bottom: 12px;
}

.badge {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
    letter-spacing: 0.5px;
}

.badge-pioneer {
    background: linear-gradient(45deg, #ffd700, #ffa500);
    color: #000;
    font-weight: 800;
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.3);
}

.badge-kyc {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
    border: 1px solid #10b981;
}

.app-content {
    max-width: 600px;
    /* Mobile App feel */
    margin: 0 auto;
    padding: 0 15px;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 30px;
}

.dash-panel {
    background: var(--bg-card);
    border: var(--card-border);
    border-radius: 20px;
    padding: 25px;
    backdrop-filter: blur(20px);
    margin-bottom: 20px;
}

.dash-panel h2 {
    margin-bottom: 20px;
    color: var(--primary);
}

.info-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

/* Dashboard Progress Bars */
.progress-container {
    width: 100%;
    height: 12px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 6px;
    overflow: hidden;
    margin-top: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--secondary), var(--primary));
    border-radius: 6px;
    width: 0%;
    /* Default */
    transition: width 1s ease-in-out;
}

/* Dashboard Data Tables */
.data-table-wrapper {
    overflow-x: auto;
    margin-top: 20px;
}

.data-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 10px;
    color: white;
}

.data-table th {
    text-align: left;
    padding: 12px 15px;
    color: var(--text-muted);
    font-size: 13px;
    background: transparent;
    border: none;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.data-table td {
    padding: 18px 15px;
    font-size: 14px;
    background: rgba(255, 255, 255, 0.02);
    border-top: 1px solid rgba(255, 255, 255, 0.03);
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.data-table td:first-child {
    border-left: 1px solid rgba(255, 255, 255, 0.03);
    border-radius: 12px 0 0 12px;
}

.data-table td:last-child {
    border-right: 1px solid rgba(255, 255, 255, 0.03);
    border-radius: 0 12px 12px 0;
}

.data-table tr:hover td {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(0, 240, 255, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 240, 255, 0.05);
}

.status-badge {
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: bold;
}

.status-completed {
    background: rgba(16, 185, 129, 0.2);
    color: #10b981;
    border: 1px solid #10b981;
}

.status-pending {
    background: rgba(247, 37, 133, 0.2);
    color: #f72585;
    border: 1px solid #f72585;
}

/* Status Banners */
.banner {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 20px;
    border-radius: 12px;
    font-size: 14px;
    line-height: 1.4;
    margin-bottom: 20px;
    animation: slideDown 0.4s ease-out;
}

.banner-warning {
    background: rgba(247, 37, 133, 0.1);
    border: 1px solid #f72585;
    color: #f72585;
}

.banner-warning i {
    font-size: 24px;
}

@keyframes slideDown {
    from {
        transform: translateY(-20px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Tab Animations */
.app-tab {
    animation: fadeInScale 0.4s ease-out;
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.98);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Bottom Navigation */
.bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 75px;
    background: linear-gradient(0deg, rgba(7, 9, 14, 0.98) 0%, rgba(15, 20, 35, 0.95) 100%);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    justify-content: space-around;
    align-items: center;
    z-index: 1000;
    padding-bottom: env(safe-area-inset-bottom);
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.5);
}

.nav-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: var(--text-muted);
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    flex: 1;
    height: 100%;
    position: relative;
}

.nav-btn i {
    font-size: 20px;
    margin-bottom: 4px;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-btn:hover {
    color: white;
}

.nav-btn:hover i {
    transform: translateY(-2px);
    color: var(--primary);
}

.nav-btn.active {
    color: var(--primary);
}

.nav-btn.active i {
    filter: drop-shadow(0 0 8px rgba(0, 240, 255, 0.6));
    transform: translateY(-2px);
}

.nav-btn.active::after {
    content: '';
    position: absolute;
    bottom: 0px;
    width: 30px;
    height: 3px;
    background: var(--primary);
    border-radius: 3px 3px 0 0;
    box-shadow: 0 -2px 10px var(--primary);
    animation: slideUpNav 0.3s ease-out;
}

@keyframes slideUpNav {
    from { opacity: 0; transform: translateY(5px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 768px) {
    .bottom-nav {
        display: flex;
    }

    header .nav-links {
        display: none;
    }

    #dashboard {
        padding-bottom: 100px;
    }
}

.ticket-item {
    background: rgba(0, 0, 0, 0.4);
    border: var(--card-border);
    border-radius: 12px;
    padding: 15px;
}

.input-group {
    margin-bottom: 20px;
}

.input-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-muted);
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.input-group input {
    width: 100%;
    padding: 14px 18px;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: white;
    font-size: 16px;
    outline: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.2);
}

.input-group input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(0, 240, 255, 0.1), inset 0 2px 4px rgba(0,0,0,0.2);
    background: rgba(0, 0, 0, 0.6);
}

.btn-action {
    width: 100%;
    background: linear-gradient(135deg, var(--secondary), var(--primary));
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 15px;
    border-radius: 12px !important;
    color: white;
    font-weight: 700 !important;
    font-size: 16px;
    letter-spacing: 0.5px !important;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 5px 15px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
}

.btn-action::after {
    content: '';
    position: absolute;
    top: 0; left: -100%; width: 50%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transform: skewX(-20deg);
    transition: 0.5s;
}

.btn-action:hover::after {
    left: 150%;
}

.btn-action:hover {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

/* Notifications */
#toast {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: var(--bg-card);
    border: 1px solid var(--primary);
    padding: 15px 25px;
    border-radius: 10px;
    background: rgba(15, 20, 35, 0.95);
    color: white;
    transform: translateX(150%);
    transition: transform 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    z-index: 1000;
}

#toast.show {
    transform: translateX(0);
}

/* Global App Loader */
.app-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-dark);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s ease;
}

.app-loader-content {
    text-align: center;
}

.pulse-logo {
    font-size: 60px;
    color: var(--primary);
    margin-bottom: 20px;
    filter: drop-shadow(var(--glow));
    animation: loaderPulse 2s infinite ease-in-out;
}

@keyframes loaderPulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 0.8;
    }

    50% {
        transform: scale(1.1);
        opacity: 1;
    }
}

.loader-text {
    font-size: 32px;
    font-weight: 800;
    letter-spacing: 5px;
    margin-bottom: 10px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.loader-status {
    color: var(--text-muted);
    font-size: 14px;
    letter-spacing: 1px;
}

/* Phase 5: Hero and Pulse Feed Animations */
@keyframes pulseBg {
    0% {
        transform: scale(1);
        opacity: 0.8;
    }

    100% {
        transform: scale(1.1);
        opacity: 1;
    }
}

.hero-bg-anim {
    animation: pulseBg 10s ease-in-out infinite alternate;
}

@keyframes scrollUp {
    0% {
        transform: translateY(0);
    }

    100% {
        transform: translateY(-50%);
    }
}

.pulse-feed {
    animation: scrollUp 20s linear infinite;
    display: flex;
    flex-direction: column;
}

.pulse-feed:hover {
    animation-play-state: paused;
}

/* Glassmorphism & Animations */
.dash-panel {
    background: rgba(15, 20, 35, 0.6) !important;
    backdrop-filter: blur(4px) !important;
    -webkit-backdrop-filter: blur(4px) !important;
    border: 1px solid rgba(255, 255, 255, 0.05) !important;
    border-radius: 20px !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    overflow: hidden; /* Prevent content overflow */
}

.dash-panel:hover {
    background: rgba(20, 25, 40, 0.8) !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
}

.data-table-wrapper {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(5px);
}

.btn-action {
    border-radius: 12px !important;
    font-weight: 600 !important;
    letter-spacing: 0.5px !important;
    transition: all 0.3s ease !important;
}

.btn-action:active {
    transform: scale(0.96);
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.app-tab {
    animation: slideInUp 0.5s ease-out;
}

/* Premium highlighting for core panels */
.panel-highlight {
    position: relative;
    background: linear-gradient(135deg, rgba(15, 20, 35, 0.8), rgba(7, 9, 14, 0.9)) !important;
    border: 1px solid rgba(0, 240, 255, 0.3) !important;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.6) !important;
}

@keyframes panelGlow {
    0% { border-color: rgba(0, 240, 255, 0.1); }
    100% { border-color: rgba(112, 0, 255, 0.3); }
}

.pulse-primary {
    animation: none;
    transition: all 0.3s ease;
}

.pulse-primary:hover {
    box-shadow: 0 5px 15px rgba(0, 240, 255, 0.2);
}

/* --- PHASE 2 UI ENHANCEMENTS --- */

/* Primary Text Glow */
.text-glow-primary {
    color: var(--primary) !important;
    text-shadow: 0 0 15px rgba(0, 240, 255, 0.5) !important;
}

/* User Profile Header & Badges */
.user-profile-header {
    display: flex;
    align-items: center;
    gap: 15px;
}

.user-avatar {
    width: 55px;
    height: 55px;
    border-radius: 18px;
    background: linear-gradient(135deg, var(--secondary), var(--primary));
    box-shadow: 0 8px 16px rgba(0, 242, 254, 0.2);
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    font-size: 24px;
    transition: all 0.3s ease;
}

.user-avatar:hover {
    transform: rotate(5deg) scale(1.05);
    box-shadow: 0 12px 20px rgba(0, 242, 254, 0.4);
}

.badge-pioneer {
    background: rgba(255, 215, 0, 0.1) !important;
    color: #ffd700 !important;
    border: 1px solid rgba(255, 215, 0, 0.2) !important;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.3);
    font-weight: 800;
}

.badge-kyc {
    background: rgba(16, 185, 129, 0.1) !important;
    color: #10b981 !important;
    border: 1px solid rgba(16, 185, 129, 0.2) !important;
    font-weight: 700;
}

/* User Profile Card Base Styles */
.user-profile-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    background: rgba(255, 255, 255, 0.02);
    padding: 20px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.user-profile-header {
    display: flex;
    align-items: center;
    gap: 15px;
}

.user-profile-info {
    margin-left: 0px;
}

.user-address-h2 {
    font-size: 20px;
    font-weight: 900;
    color: white;
    margin: 0px 0px 5px 0px;
    line-height: 1.2;
}

.user-address-h2 span {
    font-family: 'Space Mono', monospace;
    letter-spacing: -1px;
    background: linear-gradient(90deg, #fff, var(--primary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.user-badge-row {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.badge-standard {
    background: rgba(0, 242, 254, 0.1) !important;
    color: var(--primary) !important;
    border: 1px solid rgba(0, 242, 254, 0.2) !important;
}

.user-rank-info {
    text-align: right;
    min-width: 150px;
}

.rank-value {
    font-size: 24px;
    font-weight: 900;
    color: white;
    letter-spacing: -1px;
}

.rank-value i {
    color: var(--primary);
}

.rank-value span {
    font-family: 'Space Mono', monospace;
}

/* Inline Referral Input Group */
.ref-input-group {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
}

.ref-input-group input {
    width: 100%;
    padding: 15px 60px 15px 20px !important;
    background: rgba(0, 0, 0, 0.4) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 12px !important;
    color: var(--primary) !important;
    font-size: 14px !important;
    font-family: monospace;
    outline: none;
    box-shadow: inset 0 2px 5px rgba(0,0,0,0.5);
    transition: all 0.3s ease;
}

.ref-input-group input:hover {
    border-color: rgba(0, 240, 255, 0.3) !important;
    background: rgba(0, 0, 0, 0.6) !important;
}

.ref-copy-btn {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: linear-gradient(135deg, var(--secondary), var(--primary));
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    color: white;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    transition: all 0.2s ease;
    display: flex;
    justify-content: center;
    align-items: center;
}

.ref-copy-btn:hover {
    transform: translateY(-50%) scale(1.05);
    box-shadow: 0 0 15px rgba(0, 240, 255, 0.5);
}

.ref-copy-btn:active {
    transform: translateY(-50%) scale(0.95);
}

/* Skeleton Loading Animation */
.skeleton-loader {
    width: 100%;
    height: 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 6px;
    position: relative;
    overflow: hidden;
}

.skeleton-loader::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.08), transparent);
    animation: skeletonShimmer 1.5s linear infinite;
}

/* Glassmorphism Classes */
.glass-panel {
    background: rgba(255, 255, 255, 0.03) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

.panel-highlight {
    background: linear-gradient(135deg, rgba(0, 242, 254, 0.08), transparent) !important;
    border: 1px solid rgba(0, 242, 254, 0.2) !important;
}

@keyframes skeletonShimmer {
    0% { left: -50%; }
    100% { left: 150%; }
}

/* =============================================
   DASHBOARD GRID SYSTEM (REUSABLE)
   ============================================= */
.dash-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.dash-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.stat-grid-compact {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

/* =============================================
   MOBILE RESPONSIVE STYLES
   ============================================= */

/* --- Hamburger Menu --- */
.hamburger-btn {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    z-index: 200;
}

.hamburger-btn span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-main);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.hamburger-btn.open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.hamburger-btn.open span:nth-child(2) {
    opacity: 0;
}

.hamburger-btn.open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Mobile overlay nav menu */
.mobile-nav-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(7, 9, 14, 0.97);
    backdrop-filter: blur(20px);
    z-index: 150;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 30px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.mobile-nav-overlay.open {
    display: flex;
    opacity: 1;
    pointer-events: all;
}

.mobile-nav-overlay a {
    color: var(--text-main);
    text-decoration: none;
    font-size: 28px;
    font-weight: 700;
    letter-spacing: 2px;
    transition: color 0.3s;
}

.mobile-nav-overlay a:hover {
    color: var(--primary);
}

/* =============================================
   BREAKPOINT: max-width 768px
   ============================================= */
@media (max-width: 768px) {

    /* Header */
    header {
        padding: 15px 4%;
        gap: 10px;
    }

    .logo {
        font-size: 22px;
    }

    .hamburger-btn {
        display: flex;
    }

    /* Compact header actions on mobile */
    #header-actions {
        gap: 8px !important;
    }

    .network-selector {
        display: none !important;
    }

    /* Hero */
    .hero {
        padding: 70px 20px 50px !important;
        min-height: auto;
    }

    .hero h1,
    section .hero h1 {
        font-size: 2rem !important;
        line-height: 1.2 !important;
    }

    .hero p {
        font-size: 15px !important;
    }

    /* Hero CTA buttons stack vertically */
    .hero-content > div[style*="display: flex"] {
        flex-direction: column !important;
        align-items: center !important;
    }

    .hero-content > div[style*="display: flex"] a,
    .hero-content > div[style*="display: flex"] button {
        width: 100% !important;
        max-width: 320px;
        justify-content: center;
    }

    /* Stats container */
    .stats-container {
        flex-direction: column;
        gap: 15px;
    }

    .stat-box {
        padding: 20px 25px;
    }

    /* Section headers */
    .section-header h2 {
        font-size: 28px;
    }

    .section-header p {
        font-size: 15px;
    }

    /* Architecture cards */
    .arch-card {
        min-width: unset;
        width: 100%;
    }

    /* Contract grid */
    .contract-box {
        min-width: unset;
        width: 100%;
    }

    /* Trading Section */
    .trading-section {
        padding: 50px 4%;
    }

    .trading-content h2 {
        font-size: 26px !important;
    }

    /* Feature grid single column */
    .feature-box {
        min-width: unset;
        width: 100%;
    }

    /* Platform-Wide High Density Gap Reductions */
    section {
        padding: 40px 20px !important;
    }

    .hero {
        padding: 80px 15px 40px 15px !important;
    }

    .hero h1 {
        font-size: 2.2rem !important;
    }

    .hero p {
        font-size: 1rem !important;
        margin-bottom: 20px !important;
    }

    h2 {
        font-size: 1.8rem !important;
    }

    /* Footer */
    .footer-grid {
        flex-direction: column;
        gap: 25px;
    }

    .footer-col.brand {
        min-width: unset;
    }

    /* Dashboard grid stacks */
    .dashboard-grid {
        grid-template-columns: 1fr !important;
        gap: 15px !important;
    }

    /* App Header Profile */
    .app-header {
        padding: 5px 15px 15px !important;
    }

    .user-profile-header {
        flex-direction: row !important;
        align-items: center !important;
    }

    .user-avatar {
        width: 45px !important;
        height: 45px !important;
        font-size: 18px !important;
        border-radius: 12px !important;
    }

    #val-user-address {
        font-size: 14px !important;
    }

    .dash-label,
    .app-header .dash-label {
        display: none !important;
    }

    /* Grid System Mobile Overrides */
    .dash-grid-2 {
        grid-template-columns: 1fr !important;
        gap: 15px !important;
    }

    .dash-grid-3 {
        grid-template-columns: 1fr !important;
        gap: 15px !important;
    }

    .stat-grid-compact {
        grid-template-columns: 1fr !important;
        gap: 15px !important;
    }

    .user-profile-card {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 20px !important;
        padding: 18px !important;
    }

    .user-profile-header {
        width: 100%;
    }

    .user-address-h2 {
        font-size: 16px !important;
        word-break: break-all;
    }

    .user-rank-info {
        text-align: left !important;
        width: 100% !important;
        padding-top: 15px;
        border-top: 1px solid rgba(255, 255, 255, 0.05);
    }

    .rank-value {
        font-size: 20px !important;
    }

    /* Global Dashboard Grid Refinement (Force vertical stacking) */
    div[style*="grid-template-columns: repeat(auto-fit, minmax(280px, 1fr))"],
    div[style*="grid-template-columns: repeat(auto-fit, minmax(250px, 1fr))"],
    div[style*="grid-template-columns: repeat(auto-fit, minmax(350px, 1fr))"],
    div[style*="grid-template-columns: repeat(auto-fit, minmax(300px, 1fr))"] {
        grid-template-columns: 1fr !important;
        gap: 15px !important;
    }

    /* Stats Panel Compactness */
    .dash-panel {
        padding: 15px !important;
        margin-bottom: 15px !important;
    }

    .dash-panel h3, .dash-panel h4 {
        font-size: 14px !important;
        margin-bottom: 12px !important;
    }

    [id$="-earned-dash"], [id^="val-dash-"], [id="val-invested"], [id="val-total-yield"], [id^="val-total-earned"] {
        font-size: 20px !important;
        word-break: break-all;
        line-height: 1.1;
    }

    /* Form Compactness */
    .input-group {
        margin-bottom: 12px !important;
    }

    .input-group label {
        font-size: 11px !important;
        margin-bottom: 5px !important;
    }

    .input-group input, .input-group select {
        padding: 10px 12px !important;
        font-size: 13px !important;
    }

    .btn-action {
        padding: 12px !important;
        font-size: 14px !important;
    }

    /* ROI Section Compact */
    .progress-container {
        height: 8px !important;
        margin-bottom: 8px !important;
    }

    .dash-compact-row {
        gap: 10px;
    }

    /* Yield Distribution Grid (1 column on mobile for clarity) */
    div[style*="grid-template-columns: repeat(auto-fit, minmax(300px, 1fr))"] {
        grid-template-columns: 1fr !important;
        gap: 12px !important;
    }

    div[style*="grid-template-columns: repeat(auto-fit, minmax(300px, 1fr))"] .dash-panel {
        padding: 15px !important;
        flex-direction: row !important;
        align-items: center !important;
        text-align: left !important;
        gap: 15px !important;
    }

    div[style*="grid-template-columns: repeat(auto-fit, minmax(300px, 1fr))"] .dash-panel > div:first-child {
        width: 45px !important;
        height: 45px !important;
        font-size: 18px !important;
        border-radius: 12px !important;
    }

    div[style*="grid-template-columns: repeat(auto-fit, minmax(300px, 1fr))"] .dash-panel > div:nth-child(2) {
        text-align: center !important;
    }

    #val-roi-timer {
        font-size: 16px !important;
    }

    div[style*="font-size: 20px"][style*="color: white"][style*="font-weight: bold"] {
        font-size: 13px !important;
    }

    /* Hide redundant badge */
    div[style*="grid-template-columns: repeat(auto-fit, minmax(300px, 1fr))"] .badge {
        display: none !important;
    }

    /* App Bottom Nav for Mobile — Improved Scroll Hint */
    .app-bottom-nav {
        display: flex !important;
        height: 70px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        justify-content: flex-start !important;
        padding: 0 15px !important;
        gap: 8px;
        scrollbar-width: none;
        /* Visual hint: fade out the right edge if there is more content */
        -webkit-mask-image: linear-gradient(to right, 
            transparent 0%, 
            black 5%, 
            black 92%, 
            transparent 100%);
        mask-image: linear-gradient(to right, 
            transparent 0%, 
            black 5%, 
            black 92%, 
            transparent 100%);
    }

    .app-bottom-nav::-webkit-scrollbar {
        display: none;
    }

    .nav-btn {
        flex: 0 0 72px; /* Fixed width to ensure at least one item is partially cut off */
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        color: var(--text-muted);
        font-size: 10px;
        gap: 4px;
        transition: all 0.3s ease;
        padding: 5px 0;
    }

    .nav-btn i {
        font-size: 18px;
    }

    .nav-btn.active {
        color: var(--primary);
    }

    .nav-btn.active i {
        transform: translateY(-2px);
        filter: drop-shadow(0 0 5px var(--primary));
    }

    /* App header profile */
    .app-header {
        padding: 20px 15px;
    }

    /* Pulse feed container */
    section div[style*="height: 400px"] {
        height: auto !important;
        min-height: 250px;
    }

    /* Roadmap */
    .roadmap-container {
        padding-left: 25px !important;
    }

    /* Section padding reduction */
    .architecture-section,
    .contract-section,
    .features-section,
    .how-it-works-section,
    .global-map-section {
        padding: 50px 4%;
    }

    /* Map container height */
    .map-container {
        height: 250px;
    }

    /* Toast position */
    #toast {
        bottom: 90px;
        right: 15px;
        left: 15px;
        font-size: 13px;
    }

    /* Protocol stats ticker overflow */
    div[style*="animation: ticker"] {
        animation-duration: 12s !important;
    }

    /* Sections with inline padding */
    section[style*="padding: 80px 20px"],
    section[style*="padding: 60px 20px"],
    section[style*="padding: 100px 20px"] {
        padding-top: 50px !important;
        padding-bottom: 50px !important;
    }

    /* ROI Estimator section heading */
    section h2[style*="font-size: 2.5rem"],
    section h2[style*="font-size: 2.2rem"] {
        font-size: 1.6rem !important;
    }

    /* Calculator card */
    .calculator-card {
        padding: 25px !important;
    }

    /* About image section */
    section#about img {
        border-radius: 20px;
    }

    /* Video iframe */
    section#presentation div[style*="padding-bottom: 56.25%"] {
        border-radius: 15px !important;
    }

    /* Contact section */
    section#contact {
        padding: 60px 15px !important;
    }

    /* Social grid */
    div[style*="grid-template-columns: 1fr 1fr"] {
        grid-template-columns: 1fr !important;
    }

    div[style*="grid-column: span 2"] {
        grid-column: span 1 !important;
    }

    /* Large h1 inline style */
    h1[style*="font-size: 3.5rem"] {
        font-size: 2.2rem !important;
    }
    h1[style*="font-size: 64px"] {
        font-size: 36px !important;
    }

    /* Live feed inside map */
    .live-feed {
        font-size: 11px;
        padding: 8px 10px;
        bottom: 10px;
        left: 10px;
        right: 10px;
    }

    /* General section paddings */
    .trading-section,
    .features-section,
    .how-it-works-section,
    .global-map-section,
    .contract-section,
    .architecture-section {
        padding-left: 4% !important;
        padding-right: 4% !important;
    }

    /* Table adjustments handled below in standardized section */

    /* Modal Mobile */
    .modal {
        padding: 10px !important;
    }

    .input-group {
        margin-bottom: 12px !important;
    }

    .stat-grid-compact .dash-panel {
        padding: 15px !important;
    }

    .modal .dash-panel {
        padding: 20px 15px !important;
        max-height: 85vh;
        overflow-y: auto;
        /* Improved scroll hint */
        scrollbar-width: thin;
        scrollbar-color: var(--primary) transparent;
    }

    .modal .dash-panel::-webkit-scrollbar {
        width: 4px;
    }

    .modal .dash-panel::-webkit-scrollbar-thumb {
        background: var(--primary);
        border-radius: 4px;
    }

    .data-table {
        min-width: 100% !important;
        width: max-content !important; /* Force table to expand based on content */
        table-layout: auto !important;
        border-spacing: 0 8px !important;
    }

    .data-table th, .data-table td {
        white-space: nowrap !important;
        padding: 12px 18px !important;
        font-size: 14px !important;
        text-align: left !important;
    }

    .data-table-wrapper, .table-container {
        display: block !important;
        width: 100% !important;
        overflow-x: auto !important;
        overflow-y: hidden !important;
        -webkit-overflow-scrolling: touch !important;
        margin-bottom: 20px !important;
        padding-bottom: 10px !important; /* Space for scrollbar */
        border-radius: 12px;
    }

    /* Style the scrollbar for mobile to act as a clear hint */
    .data-table-wrapper::-webkit-scrollbar,
    .table-container::-webkit-scrollbar {
        height: 6px !important;
        display: block !important;
    }

    .data-table-wrapper::-webkit-scrollbar-thumb,
    .table-container::-webkit-scrollbar-thumb {
        background: var(--primary) !important;
        border-radius: 10px !important;
        box-shadow: 0 0 10px var(--primary);
    }

    .data-table-wrapper::-webkit-scrollbar-track,
    .table-container::-webkit-scrollbar-track {
        background: rgba(255, 255, 255, 0.05) !important;
        border-radius: 10px !important;
    }
}

/* =============================================
   BREAKPOINT: max-width 480px (small phones)
   ============================================= */
@media (max-width: 480px) {

    /* Logo smaller */
    .logo {
        font-size: 18px;
        letter-spacing: 1px;
    }

    /* Hero */
    .hero h1,
    section .hero h1 {
        font-size: 1.7rem !important;
    }

    h1[style*="font-size: 3.5rem"],
    h1[style*="font-size: 2.2rem"] {
        font-size: 1.7rem !important;
    }

    h1[style*="font-size: 64px"] {
        font-size: 28px !important;
    }

    .hero p {
        font-size: 14px !important;
    }

    /* Section headers */
    .section-header h2 {
        font-size: 22px;
    }

    /* Stat value large text */
    .stat-value {
        font-size: 28px;
    }

    #val-total-earned-dash,
    #val-withdrawable-dash,
    #val-invested,
    #val-total-yield,
    #val-direct-earned,
    #val-level-earned,
    #val-dash-team-volume,
    #val-dash-direct-count,
    #val-dash-team-size {
        font-size: 22px !important;
    }

    .app-bottom-nav {
        height: 65px;
    }

    .nav-btn {
        font-size: 9px;
    }

    .nav-btn i {
        font-size: 16px;
    }

    /* Btn connect paddings */
    .btn-connect {
        padding: 10px 18px;
        font-size: 13px;
    }

    /* Calculator section heading */
    section h2[style*="font-size: 36px"] {
        font-size: 22px !important;
    }

    /* App header profile info */
    #val-user-address {
        font-size: 14px !important;
    }

    /* Bottom nav at 480px */
    .bottom-nav {
        height: 65px;
    }

    .nav-btn {
        font-size: 9px;
    }

    .nav-btn i {
        font-size: 17px;
    }

    /* Activity Hub Compact */
    .activity-feed-wrapper {
        max-height: 250px !important;
    }

    .activity-item {
        padding: 10px !important;
        font-size: 11px !important;
        margin-bottom: 8px !important;
    }
    .footer-col {
        min-width: unset;
    }

    /* Map container */
    .map-container {
        height: 200px;
    }

    /* Partnerships logos gap */
    div#partnerships-logos,
    section.partnerships div[style*="display: flex"] {
        gap: 20px !important;
    }

    section.partnerships div[style*="font-size: 20px"] {
        font-size: 15px !important;
    }

    /* Roadmap border left */
    .roadmap-container {
        padding-left: 20px !important;
    }
}

/* ============================
   Mobile Navigation Overlay (Sliding Drawer)
   ============================ */
.mobile-nav-overlay {
    display: flex !important;
    position: fixed;
    top: 0;
    left: 0;
    width: 280px;
    height: 100%;
    background: rgba(10, 14, 23, 0.75) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    border-right: 1px solid rgba(255, 255, 255, 0.08);
    z-index: 10000000 !important;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 40px 15px;
    gap: 12px;
    transform: translateX(-100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 1 !important;
    pointer-events: auto !important;
    overflow-y: auto;
    scrollbar-width: none;
}

.mobile-nav-overlay::-webkit-scrollbar {
    display: none;
}

.mobile-nav-overlay.open {
    transform: translateX(0);
}

.mobile-nav-overlay a {
    color: white !important;
    text-decoration: none;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 10px 20px;
    border-radius: 12px;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    width: 90%;
    max-width: 240px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.mobile-nav-overlay a i {
    width: 20px;
    text-align: center;
    font-size: 16px;
    color: var(--primary);
}

.mobile-nav-overlay a:hover,
.mobile-nav-overlay a.active {
    background: rgba(0, 240, 255, 0.15) !important;
    border-color: var(--primary) !important;
    color: var(--primary) !important;
    transform: translateY(-2px);
    box-shadow: 0 0 15px rgba(0, 240, 255, 0.2);
}

/* Backdrop for Mobile Nav */
.mobile-nav-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    z-index: 9999999 !important;
    opacity: 0;
    transition: opacity 0.3s ease;
}

/* Hamburger Button */
.hamburger-btn {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 42px;
    height: 42px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    cursor: pointer;
    padding: 8px;
    transition: background 0.3s ease;
    z-index: 100000;
}

.hamburger-btn:hover {
    background: rgba(0, 240, 255, 0.1);
    border-color: var(--primary);
}

.hamburger-btn span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text-main);
    border-radius: 2px;
    transition: all 0.3s ease;
    transform-origin: center;
}

/* Animate hamburger to X when open */
.hamburger-btn.open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.hamburger-btn.open span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.hamburger-btn.open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 768px) {
    header {
        padding: 10px 15px !important;
        gap: 5px !important;
        flex-wrap: nowrap !important;
    }

    .logo {
        font-size: 18px !important;
        flex-shrink: 0 !important;
    }

    .hamburger-btn {
        display: flex !important;
        order: -1; /* Place on the left side of flex header */
        margin-right: 10px !important;
        flex-shrink: 0 !important;
    }

    .nav-links {
        display: none !important;
    }

    header #btn-connect, header .btn-connect {
        padding: 8px 16px !important;
        font-size: 13px !important;
        border-radius: 20px !important;
        flex-shrink: 0 !important;
    }

    #header-actions {
        gap: 8px !important;
    }

    #header-actions div[style*="gap: 15px"] {
        gap: 8px !important;
    }

    #theme-toggle {
        width: 32px !important;
        height: 32px !important;
        font-size: 12px !important;
    }

    .notification-bell i {
        font-size: 14px !important;
    }

    #btn-profile {
        width: 32px !important;
        height: 32px !important;
    }

    #btn-profile i {
        font-size: 12px !important;
    }

    #btn-logout {
        width: 32px !important;
        height: 32px !important;
    }

    #btn-logout i {
        font-size: 12px !important;
    }
}

/* ============================================================
   Connect Wallet Prompt Modal
   ============================================================ */
@keyframes fadeInOverlay {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes glowPulse {
    0%, 100% { box-shadow: 0 0 15px rgba(0,240,255,0.4); }
    50%       { box-shadow: 0 0 35px rgba(0,240,255,0.8), 0 0 60px rgba(112,0,255,0.3); }
}

#connect-prompt-modal .btn-connect {
    animation: glowPulse 2.5s ease-in-out infinite;
    font-size: 15px;
    letter-spacing: 0.5px;
}

#connect-prompt-modal .btn-connect:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 0 50px rgba(0,240,255,0.9);
}

/* ============================================================
   Light Mode Overrides for Header and Mobile Navigation
   ============================================================ */
.light-mode header {
    background: rgba(255, 255, 255, 0.85) !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08) !important;
}

.light-mode .hamburger-btn {
    background: rgba(0, 0, 0, 0.05) !important;
    border: 1px solid rgba(0, 0, 0, 0.1) !important;
}

.light-mode .hamburger-btn:hover {
    background: rgba(0, 180, 216, 0.1) !important;
    border-color: var(--primary) !important;
}

.light-mode .hamburger-btn span {
    background: var(--text-main) !important; /* Resolves to #212529 (dark) */
}

.light-mode #theme-toggle {
    background: rgba(0, 0, 0, 0.05) !important;
    border: 1px solid rgba(0, 0, 0, 0.1) !important;
}

.light-mode #theme-toggle:hover {
    background: rgba(0, 180, 216, 0.1) !important;
    border-color: var(--primary) !important;
}

.light-mode .network-selector {
    background: rgba(0, 0, 0, 0.05) !important;
    border: 1px solid rgba(0, 0, 0, 0.1) !important;
    color: var(--text-main) !important;
}

.light-mode .network-selector:hover {
    background: rgba(0, 0, 0, 0.08) !important;
}

/* Light mode overlay drawer adaptions */
.light-mode .mobile-nav-overlay {
    background: rgba(255, 255, 255, 0.85) !important;
    border-right: 1px solid rgba(0, 0, 0, 0.08) !important;
}

.light-mode .mobile-nav-overlay a {
    color: var(--text-main) !important; /* Resolves to #212529 */
    background: rgba(0, 0, 0, 0.03) !important;
    border: 1px solid rgba(0, 0, 0, 0.05) !important;
}

.light-mode .mobile-nav-overlay a:hover,
.light-mode .mobile-nav-overlay a.active {
    background: rgba(0, 180, 216, 0.15) !important;
    color: var(--primary) !important;
    border-color: var(--primary) !important;
}

.light-mode .mobile-nav-overlay a i {
    color: var(--primary) !important;
}

.light-mode #close-mob-nav {
    border: 1px solid rgba(0, 0, 0, 0.1) !important;
    color: var(--text-muted) !important;
    background: transparent !important;
}

.light-mode #close-mob-nav:hover {
    background: rgba(0, 0, 0, 0.03) !important;
    color: var(--text-main) !important;
}

