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

:root {
    --bg-dark: #080811;
    --bg-card: rgba(13, 13, 25, 0.65);
    --bg-card-hover: rgba(22, 22, 40, 0.85);
    --border-glass: rgba(255, 255, 255, 0.07);
    --border-glass-hover: rgba(255, 255, 255, 0.15);
    
    --primary: #8b5cf6;       /* Neon Violet */
    --primary-glow: rgba(139, 92, 246, 0.3);
    --secondary: #3b82f6;     /* Electric Blue */
    --secondary-glow: rgba(59, 130, 246, 0.3);
    
    --success: #10b981;       /* Neon Buy Green */
    --success-glow: rgba(16, 185, 129, 0.2);
    --danger: #ef4444;        /* Neon Sell Red */
    --danger-glow: rgba(239, 68, 68, 0.2);
    
    --text-main: #f3f4f6;     /* Bright Grey/White */
    --text-muted: #9ca3af;    /* Muted Grey */
    --text-glow: #ffffff;
    
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Light Theme Variables (Frosted Ice Theme) */
body.light-theme {
    --bg-dark: #f1f5f9;
    --bg-card: rgba(255, 255, 255, 0.55);
    --bg-card-hover: rgba(255, 255, 255, 0.8);
    --border-glass: rgba(15, 23, 42, 0.06);
    --border-glass-hover: rgba(15, 23, 42, 0.12);
    
    --primary: #6d28d9;       /* Deep Royal Violet */
    --primary-glow: rgba(109, 40, 217, 0.15);
    --secondary: #1d4ed8;     /* Royal Electric Blue */
    --secondary-glow: rgba(29, 78, 216, 0.15);
    
    --success: #047857;       /* Deep Emerald Green */
    --success-glow: rgba(4, 120, 87, 0.12);
    --danger: #b91c1c;        /* Rich Crimson Red */
    --danger-glow: rgba(185, 28, 28, 0.12);
    
    --text-main: #0f172a;     /* Slate 900 */
    --text-muted: #475569;    /* Slate 600 */
    --text-glow: rgba(15, 23, 42, 0.05);
}

body.light-theme {
    background-color: var(--bg-dark);
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(109, 40, 217, 0.05) 0%, transparent 45%),
        radial-gradient(circle at 90% 80%, rgba(29, 78, 216, 0.05) 0%, transparent 45%),
        linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}

/* Silky smooth transition overrides for all visual elements */
body, .glass-panel, .status-badge, .lang-switcher, .kpi-card, .btn-utility, .scorecard-item, .faq-item, table, th, td, tr, .faq-trigger, h1, h2, h3, h4, h5, h6, .text-muted, input, select {
    transition: background-color 0.4s ease, background-image 0.4s ease, border-color 0.4s ease, color 0.3s ease, box-shadow 0.3s ease;
}

/* Theme Toggle Button */
.theme-toggle-btn {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-glass);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text-main);
    transition: var(--transition-smooth);
}

.theme-toggle-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--border-glass-hover);
    color: var(--primary);
    box-shadow: 0 0 10px var(--primary-glow);
    transform: rotate(15deg);
}

.theme-toggle-btn .sun-icon {
    display: none;
}
.theme-toggle-btn .moon-icon {
    display: block;
}

body.light-theme .theme-toggle-btn .sun-icon {
    display: block;
    color: #f59e0b; /* Golden Yellow */
    filter: drop-shadow(0 0 4px rgba(245, 158, 11, 0.5));
}
body.light-theme .theme-toggle-btn .moon-icon {
    display: none;
}

/* Light mode style overrides */
body.light-theme th {
    background: #e2e8f0;
}
body.light-theme .table-wrapper::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.1);
}
body.light-theme .table-wrapper::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.2);
}
body.light-theme .text-gradient-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%) !important;
    -webkit-background-clip: text !important;
    background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
}
body.light-theme .text-gradient-buy {
    background: linear-gradient(135deg, var(--success) 0%, #059669 100%) !important;
    -webkit-background-clip: text !important;
    background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
}
body.light-theme .text-gradient-sell {
    background: linear-gradient(135deg, var(--danger) 0%, #dc2626 100%) !important;
    -webkit-background-clip: text !important;
    background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
}
body.light-theme .legend-item,
body.light-theme .faq-item,
body.light-theme .scorecard-item {
    background: rgba(15, 23, 42, 0.03);
    border-color: rgba(15, 23, 42, 0.06);
}
body.light-theme .legend-item:hover,
body.light-theme .faq-item:hover,
body.light-theme .scorecard-item:hover {
    background: rgba(15, 23, 42, 0.06);
    border-color: rgba(15, 23, 42, 0.12);
}

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

body {
    background-color: var(--bg-dark);
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(139, 92, 246, 0.08) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(59, 130, 246, 0.08) 0%, transparent 40%),
        radial-gradient(circle at 50% 50%, rgba(8, 8, 17, 1) 0%, rgba(3, 3, 7, 1) 100%);
    background-attachment: fixed;
    color: var(--text-main);
    font-family: var(--font-body);
    min-height: 100vh;
    overflow-x: hidden;
    padding-bottom: 3rem;
}

/* Glassmorphism Container */
.glass-panel {
    background: var(--bg-card);
    backdrop-filter: blur(14px) saturate(190%);
    -webkit-backdrop-filter: blur(14px) saturate(190%);
    border: 1px solid var(--border-glass);
    border-radius: 16px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
    transition: var(--transition-smooth);
}

.glass-panel:hover {
    border-color: var(--border-glass-hover);
    box-shadow: 0 12px 40px 0 rgba(139, 92, 246, 0.08);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    letter-spacing: -0.02em;
}

.text-gradient-primary {
    background: linear-gradient(135deg, #a78bfa 0%, #60a5fa 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.text-gradient-buy {
    background: linear-gradient(135deg, #34d399 0%, #10b981 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.text-gradient-sell {
    background: linear-gradient(135deg, #f87171 0%, #ef4444 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.text-muted {
    color: var(--text-muted);
}

/* Main Layout */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1.5rem;
}

/* Header */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding: 1.25rem 2rem;
}

.brand-section {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-img {
    height: 44px;
    width: auto;
    object-fit: contain;
    animation: float 4s ease-in-out infinite;
    filter: drop-shadow(0 0 8px var(--primary-glow));
    transition: var(--transition-smooth);
}

.logo-img:hover {
    transform: scale(1.08) rotate(-2deg);
    filter: drop-shadow(0 0 15px var(--primary-glow));
}

.brand-info h1 {
    font-size: 1.6rem;
    font-weight: 700;
}

.brand-info span {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.status-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-glass);
    padding: 8px 16px;
    border-radius: 99px;
    font-size: 0.85rem;
    font-weight: 500;
}

/* Language Switcher */
.lang-switcher {
    display: flex;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-glass);
    padding: 3px;
    border-radius: 12px;
    gap: 2px;
}

.lang-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.78rem;
    padding: 6px 14px;
    border-radius: 9px;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.lang-btn:hover {
    color: var(--text-main);
    background: rgba(255, 255, 255, 0.03);
}

.lang-btn.active {
    color: #fff;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    box-shadow: 0 0 10px var(--primary-glow);
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background-color: var(--success);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--success-glow);
    position: relative;
}

.pulse-dot::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: var(--success);
    border-radius: 50%;
    animation: pulse 1.8s infinite;
    top: 0;
    left: 0;
}

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

.kpi-card {
    padding: 1.5rem;
    position: relative;
    overflow: hidden;
}

.kpi-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(to bottom, var(--primary), var(--secondary));
    opacity: 0.8;
}

.kpi-card.buy-card::before {
    background: var(--success);
}

.kpi-card.sell-card::before {
    background: var(--danger);
}

.kpi-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 8px;
}

.kpi-val {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 6px;
}

.kpi-badge {
    font-size: 0.78rem;
    padding: 3px 8px;
    border-radius: 6px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.kpi-badge.up {
    background-color: var(--success-glow);
    color: var(--success);
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.kpi-badge.down {
    background-color: var(--danger-glow);
    color: var(--danger);
    border: 1px solid rgba(239, 68, 68, 0.3);
}

/* Chart & Tokenomics Layout */
.chart-tokenomics-section {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

@media (max-width: 1024px) {
    .chart-tokenomics-section {
        grid-template-columns: 1fr;
    }
    .tokenomics-wrapper {
        height: auto;
    }
}

.chart-wrapper {
    min-height: 540px;
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
}

.chart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.chart-iframe-container {
    flex-grow: 1;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border-glass);
}

.tokenomics-wrapper {
    min-height: 540px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.tokenomics-header {
    margin-bottom: 1rem;
}

.chart-container {
    position: relative;
    height: 220px;
    margin: 1rem auto;
    width: 100%;
}

.tokenomics-legend {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.legend-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.82rem;
    padding: 6px 10px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.03);
}

.legend-label-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

.legend-color {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.legend-val {
    font-weight: 600;
}

/* Two Column On-Chain Grid */
.onchain-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

@media (max-width: 960px) {
    .onchain-section {
        grid-template-columns: 1fr;
    }
}

.section-card {
    padding: 1.5rem;
    min-height: 480px;
    display: flex;
    flex-direction: column;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border-glass);
}

.section-title {
    font-size: 1.2rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.section-filter {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-glass);
    padding: 4px 12px;
    border-radius: 8px;
    font-size: 0.78rem;
}

.section-filter select {
    background: transparent;
    border: none;
    color: var(--text-main);
    font-weight: 600;
    outline: none;
    cursor: pointer;
}

.table-filter-select {
    padding: 6px 12px;
    font-size: 0.78rem;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-glass);
    color: var(--text-main);
    font-weight: bold;
    outline: none;
    cursor: pointer;
}

body.light-theme .table-filter-select {
    background: rgba(15, 23, 42, 0.05);
    border: 1px solid rgba(15, 23, 42, 0.08);
}

.table-filter-select option,
.section-filter select option,
select option {
    background-color: #0d0d1a;
    color: #f3f4f6;
}

body.light-theme .table-filter-select option,
body.light-theme .section-filter select option,
body.light-theme select option {
    background-color: #ffffff;
    color: #0f172a;
}

.table-wrapper {
    flex-grow: 1;
    overflow-y: auto;
    max-height: 380px;
}

/* Custom Scrollbar for Glass Tables */
.table-wrapper::-webkit-scrollbar {
    width: 6px;
}
.table-wrapper::-webkit-scrollbar-track {
    background: transparent;
}
.table-wrapper::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 99px;
}
.table-wrapper::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.15);
}

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
}

th {
    position: sticky;
    top: 0;
    background: #0d0d1a;
    color: var(--text-muted);
    font-weight: 500;
    text-align: left;
    padding: 10px 12px;
    border-bottom: 1px solid var(--border-glass);
    z-index: 10;
}

td {
    padding: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.02);
    vertical-align: middle;
}

tr:hover td {
    background: rgba(255, 255, 255, 0.02);
}

.hash-link {
    color: var(--secondary);
    text-decoration: none;
    font-family: monospace;
    font-size: 0.85rem;
    transition: var(--transition-smooth);
}

.hash-link:hover {
    color: var(--primary);
    text-shadow: 0 0 8px var(--primary-glow);
}

.copy-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    margin-left: 6px;
    transition: var(--transition-smooth);
}

.copy-btn:hover {
    color: var(--text-main);
}

/* Progress bar inside table cell */
.progress-container {
    width: 80px;
    height: 5px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 99px;
    overflow: hidden;
    margin-top: 4px;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    border-radius: 99px;
}

/* Bottom Grid: FAQ & Security */
.info-section {
    display: grid;
    grid-template-columns: 3fr 2fr;
    gap: 1.5rem;
}

@media (max-width: 960px) {
    .info-section {
        grid-template-columns: 1fr;
    }
}

/* Accordion FAQ */
.faq-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.faq-item {
    border: 1px solid var(--border-glass);
    border-radius: 12px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.01);
    transition: var(--transition-smooth);
}

.faq-item:hover {
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 255, 255, 0.12);
}

.faq-trigger {
    padding: 1rem 1.25rem;
    width: 100%;
    background: transparent;
    border: none;
    color: var(--text-main);
    text-align: left;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition-smooth);
}

.faq-icon {
    font-size: 0.8rem;
    transition: transform 0.3s ease;
    color: var(--text-muted);
}

.faq-item.active .faq-icon {
    transform: rotate(180deg);
    color: var(--primary);
}

.faq-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s cubic-bezier(0, 1, 0, 1);
    color: var(--text-muted);
    font-size: 0.88rem;
    line-height: 1.5;
}

.faq-content-inner {
    padding: 0 1.25rem 1rem 1.25rem;
}

.faq-item.active .faq-content {
    max-height: 1000px;
    transition: max-height 0.3s cubic-bezier(1, 0, 1, 0);
}

/* Security Scorecard */
.scorecard-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-glass);
    border-radius: 12px;
    margin-bottom: 10px;
    transition: var(--transition-smooth);
}

.scorecard-item:hover {
    background: rgba(255, 255, 255, 0.04);
}

.scorecard-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.scorecard-icon {
    font-size: 1.2rem;
}

.scorecard-name {
    font-size: 0.88rem;
    font-weight: 500;
}

.scorecard-desc {
    font-size: 0.72rem;
    color: var(--text-muted);
}

.scorecard-badge {
    font-size: 0.78rem;
    padding: 4px 10px;
    border-radius: 8px;
    font-weight: 600;
}

.scorecard-badge.secure {
    background: var(--success-glow);
    color: var(--success);
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.scorecard-badge.warning {
    background: rgba(245, 158, 11, 0.2);
    color: #f59e0b;
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.scorecard-badge.danger {
    background: var(--danger-glow);
    color: var(--danger);
    border: 1px solid rgba(239, 68, 68, 0.3);
}

/* Social & Utility Links */
.links-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    margin-top: 1.25rem;
}

.btn-utility {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-glass);
    border-radius: 10px;
    color: var(--text-main);
    text-decoration: none;
    font-size: 0.82rem;
    font-weight: 500;
    transition: var(--transition-smooth);
}

.btn-utility:hover {
    background: var(--primary-glow);
    border-color: var(--primary);
    box-shadow: 0 0 10px var(--primary-glow);
}

/* Animations */
@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-5px); }
    100% { transform: translateY(0px); }
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 0.8; }
    50% { transform: scale(1.6); opacity: 0; }
    100% { transform: scale(1); opacity: 0; }
}

/* ==========================================
   RESPONSIVE DESIGN & MOBILE OPTIMIZATIONS
   ========================================== */

/* Header controls list */
.header-controls {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
}

/* Buys/Whales section controls */
.section-controls {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
}

/* Footer donation address layout */
.footer-donation-controls {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.footer-donation-badges {
    display: flex;
    gap: 6px;
}

.donation-addr-badge {
    background: rgba(139, 92, 246, 0.05);
    border-color: rgba(139, 92, 246, 0.15);
    padding: 8px 16px;
}

/* Sticky Navbar & Nav links */
.sticky-navbar {
    position: sticky;
    top: 1rem;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding: 1rem 2rem;
}

.nav-links {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.nav-link {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.95rem;
    position: relative;
    padding: 4px 0;
    transition: var(--transition-smooth);
}

.nav-link:hover, .nav-link.active {
    color: var(--primary);
    text-shadow: 0 0 8px var(--primary-glow);
}

/* Underline effect for active link */
.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    transition: var(--transition-smooth);
}

.nav-link:hover::after, .nav-link.active::after {
    width: 100%;
}

/* 1. Laptops and Medium Desktops (max-width: 1200px) */
@media (max-width: 1200px) {
    .container {
        padding: 1.25rem;
    }
    
    .kpi-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* 2. Tablets and Small Laptops (max-width: 992px) */
@media (max-width: 992px) {
    header, .sticky-navbar {
        flex-direction: column;
        align-items: stretch;
        gap: 1.25rem;
        padding: 1.5rem;
    }
    
    .header-controls {
        justify-content: space-between;
        width: 100%;
    }
    
    .chart-tokenomics-section {
        grid-template-columns: 1fr;
    }
    
    .onchain-section {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }
    
    .info-section {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }
    
    .footer-section {
        flex-direction: column;
        align-items: flex-start;
        padding: 1.5rem;
    }
    
    .footer-donation-controls {
        width: 100%;
        justify-content: space-between;
    }
}

/* 3. Smartphones / Mobile Devices (max-width: 768px) */
@media (max-width: 768px) {
    .container {
        padding: 0.85rem;
    }
    
    .brand-section {
        justify-content: center;
        text-align: center;
        flex-direction: column;
        gap: 8px;
    }
    
    header, .sticky-navbar {
        align-items: center;
        text-align: center;
        padding: 1.25rem 1rem;
    }
    
    .nav-links {
        justify-content: center;
        width: 100%;
        margin: 5px 0;
        gap: 20px;
    }
    
    .header-controls {
        flex-direction: column;
        gap: 10px;
        width: 100%;
        align-items: center;
    }
    
    .header-controls .status-badge {
        width: 100%;
        justify-content: center;
    }
    
    .header-controls .lang-switcher {
        width: 100%;
        justify-content: center;
    }
    
    .header-controls .lang-btn {
        flex: 1;
        text-align: center;
    }
    
    .theme-toggle-btn {
        width: 100%;
        height: 42px;
    }
    
    .kpi-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .kpi-card {
        padding: 1.25rem;
    }
    
    .chart-wrapper {
        height: 380px; /* Slimmer height for smaller screens */
    }
    
    .section-card {
        padding: 1.15rem;
        min-height: auto;
    }
    
    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .section-controls {
        width: 100%;
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }
    
    .section-controls .lang-switcher,
    .section-controls .section-filter {
        width: 100%;
        justify-content: space-between;
    }
    
    .section-controls .lang-btn {
        flex: 1;
        text-align: center;
    }
    
    /* Table Responsive wrapping */
    table {
        font-size: 0.8rem;
    }
    
    th, td {
        padding: 8px 6px;
    }
    
    .table-wrapper {
        max-height: 320px;
    }
    
    /* FAQ adjustment */
    .faq-trigger {
        padding: 0.85rem 1rem;
        font-size: 0.88rem;
    }
    
    .faq-content-inner {
        padding: 0 1rem 0.85rem 1rem;
        font-size: 0.82rem;
    }
    
    /* Donation footer adjustment */
    .footer-section {
        text-align: center;
        align-items: center;
        padding: 1.25rem 1rem;
    }
    
    .footer-info {
        text-align: center;
    }
    
    .footer-donation-controls {
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }
    
    .donation-addr-badge {
        width: 100%;
        justify-content: center;
        font-size: 0.72rem;
        padding: 8px 10px;
    }
    
    .donation-addr-badge span {
        word-break: break-all;
        font-size: 0.75rem;
    }
    
    .footer-donation-badges {
        width: 100%;
        justify-content: center;
    }
}

/* 4. Foldables & Very Small Devices (max-width: 360px) */
@media (max-width: 360px) {
    .container {
        padding: 0.5rem;
    }
    
    .brand-info h1 {
        font-size: 1.3rem;
    }
    
    .kpi-val {
        font-size: 1.5rem;
    }
    
    .donation-addr-badge span {
        font-size: 0.65rem;
    }
}

/* ==========================================
   HYBRID SWAP ENGINE STYLING
   ========================================== */

.swap-wrapper {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 1.5rem;
    position: relative;
    overflow: visible;
}

/* Elegant radial background glow in dark mode for the swap card */
body:not(.light-theme) .swap-wrapper::before {
    content: '';
    position: absolute;
    top: -10%;
    right: -10%;
    width: 120px;
    height: 120px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.15) 0%, transparent 70%);
    z-index: -1;
    pointer-events: none;
}

.swap-settings-dropdown {
    background: #0d0d1a;
    border: 1px solid var(--border-glass);
    border-radius: 10px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
    animation: fadeIn 0.2s ease-out;
}

body.light-theme .swap-settings-dropdown {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.1);
}

.small-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-glass);
    color: var(--text-main);
    padding: 4px 8px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.72rem;
    transition: var(--transition-smooth);
}

.small-btn:hover {
    background: var(--primary-glow);
    border-color: var(--primary);
    box-shadow: 0 0 6px var(--primary-glow);
}

.small-btn.active {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
    box-shadow: 0 0 8px var(--primary-glow);
}

body.light-theme .small-btn {
    background: rgba(15, 23, 42, 0.04);
}

body.light-theme .small-btn.active {
    background: var(--primary);
    color: #fff;
}

.swap-input-group input::-webkit-outer-spin-button,
.swap-input-group input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
.swap-input-group input[type=number] {
    -moz-appearance: textfield;
}

#swap-switch-btn:hover {
    transform: rotate(180deg) scale(1.1);
}

.btn-connect-wallet {
    transition: var(--transition-smooth);
}

.btn-connect-wallet:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(139, 92, 246, 0.4);
}

.btn-connect-wallet:active {
    transform: translateY(0);
}

/* Modal styling */
.modal-overlay {
    animation: fadeIn 0.3s ease-out;
}

.modal-content {
    animation: scaleUp 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes scaleUp {
    from { transform: scale(0.9); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Symmetrical Trend Section */
.distribution-trend-section {
    display: flex;
    gap: 2rem;
    margin-bottom: 2rem;
}

@media (max-width: 992px) {
    .distribution-trend-section {
        flex-direction: column;
        gap: 1.25rem;
    }
}

/* ==========================================================================
   Toast Notification System (UX Polish)
   ========================================================================== */
.toast-container {
    position: fixed;
    top: 24px;
    right: 24px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}

.toast-msg {
    pointer-events: auto;
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 280px;
    max-width: 420px;
    padding: 12px 18px;
    border-radius: 12px;
    background: rgba(13, 13, 26, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-glass);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 15px rgba(139, 92, 246, 0.15);
    color: var(--text-main);
    font-size: 0.84rem;
    font-weight: 500;
    animation: toastSlideIn 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    transition: all 0.35s ease;
}

body.light-theme .toast-msg {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.12), 0 0 15px rgba(109, 40, 217, 0.1);
    border-color: rgba(15, 23, 42, 0.1);
}

.toast-icon {
    font-size: 1.1rem;
    flex-shrink: 0;
}

.toast-text {
    flex: 1;
    line-height: 1.4;
}

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

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

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

.toast-info {
    border-left: 4px solid var(--primary);
}

.toast-exit {
    opacity: 0;
    transform: translateX(40px) scale(0.95);
    pointer-events: none;
}

@keyframes toastSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px) scale(0.92);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* ==========================================================================
   Table Search Input & Header Controls
   ========================================================================== */
.table-search-input {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-glass);
    border-radius: 8px;
    padding: 5px 12px;
    font-size: 0.75rem;
    color: var(--text-main);
    outline: none;
    width: 170px;
    transition: var(--transition-smooth);
}

.table-search-input:focus {
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.07);
    box-shadow: 0 0 10px var(--primary-glow);
}

body.light-theme .table-search-input {
    background: rgba(15, 23, 42, 0.04);
    border-color: rgba(15, 23, 42, 0.12);
}

body.light-theme .table-search-input:focus {
    background: #ffffff;
    border-color: var(--primary);
}

/* ==========================================================================
   Sync Button & Dynamic Animations
   ========================================================================== */
.btn-sync-icon {
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 0.95rem;
    padding: 0 2px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--text-main);
    transition: transform 0.2s ease;
}

.btn-sync-icon:hover {
    transform: scale(1.2);
}

.spin-anim {
    animation: spin 0.8s linear infinite;
    display: inline-block;
}

.pulse-anim {
    animation: pulseHighlight 0.6s ease-in-out;
}

@keyframes pulseHighlight {
    0% { transform: scale(1); }
    50% { transform: scale(1.08); color: var(--secondary); text-shadow: 0 0 10px rgba(59, 130, 246, 0.5); }
    100% { transform: scale(1); }
}

/* ==========================================================================
   Loop V2 Live Launch Radar & Infrastructure Watcher Styles
   ========================================================================== */
.v2-radar-panel {
    border-left: 5px solid #8b5cf6 !important;
    position: relative;
    overflow: hidden;
}

/* Background Radar Sweep Animation */
.radar-sweep-bg {
    position: absolute;
    top: -50%;
    right: -20%;
    width: 350px;
    height: 350px;
    border-radius: 50%;
    background: conic-gradient(from 0deg, rgba(139, 92, 246, 0.15) 0deg, rgba(59, 130, 246, 0.05) 60deg, transparent 90deg, transparent 360deg);
    animation: radarSweep 6s linear infinite;
    pointer-events: none;
    z-index: 0;
    opacity: 0.6;
}

@keyframes radarSweep {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Hero Target Banner */
.v2-hero-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    border-width: 1px;
    border-style: solid;
}

.v2-card-pending {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.08), rgba(217, 119, 6, 0.03));
    border-color: rgba(245, 158, 11, 0.3);
    box-shadow: 0 4px 20px rgba(245, 158, 11, 0.06);
}

.v2-card-resolved {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(139, 92, 246, 0.05));
    border-color: rgba(59, 130, 246, 0.4);
    box-shadow: 0 4px 20px rgba(59, 130, 246, 0.12);
}

.v2-card-live {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.12), rgba(5, 150, 105, 0.05));
    border-color: rgba(16, 185, 129, 0.45);
    box-shadow: 0 0 25px rgba(16, 185, 129, 0.2);
}

/* Status Indicator Dots */
.v2-indicator-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: inline-block;
}

.v2-dot-pending {
    background: #f59e0b;
    box-shadow: 0 0 10px #f59e0b;
    animation: pulseAmber 1.8s infinite;
}

.v2-dot-resolved {
    background: #3b82f6;
    box-shadow: 0 0 10px #3b82f6;
    animation: pulseBlue 1.6s infinite;
}

.v2-dot-live {
    background: #10b981;
    box-shadow: 0 0 14px #10b981;
    animation: pulseGreen 1.2s infinite;
}

@keyframes pulseAmber {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.7); }
    70% { transform: scale(1.1); box-shadow: 0 0 0 8px rgba(245, 158, 11, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(245, 158, 11, 0); }
}

@keyframes pulseBlue {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.7); }
    70% { transform: scale(1.1); box-shadow: 0 0 0 8px rgba(59, 130, 246, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(59, 130, 246, 0); }
}

@keyframes pulseGreen {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.8); }
    70% { transform: scale(1.15); box-shadow: 0 0 0 10px rgba(16, 185, 129, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

/* Navbar Status Badges */
.v2-nav-badge {
    transition: all 0.25s ease;
}

.v2-nav-badge:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.v2-nav-pending {
    background: rgba(245, 158, 11, 0.08) !important;
    border-color: rgba(245, 158, 11, 0.3) !important;
}

.v2-nav-resolved {
    background: rgba(59, 130, 246, 0.08) !important;
    border-color: rgba(59, 130, 246, 0.3) !important;
}

.v2-nav-live {
    background: rgba(16, 185, 129, 0.12) !important;
    border-color: rgba(16, 185, 129, 0.4) !important;
}

.pulse-pending {
    background: #f59e0b !important;
}

.pulse-resolved {
    background: #3b82f6 !important;
}

.pulse-live {
    background: #10b981 !important;
}

/* Cluster Target Row Highlight */
.v2-row-target {
    background: rgba(139, 92, 246, 0.06);
    border-left: 3px solid var(--primary);
}

.v2-probe-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    font-size: 0.82rem;
    font-weight: 700;
}

/* Light Mode Overrides */
body.light-theme .v2-radar-panel {
    background: #ffffff;
    border-color: rgba(15, 23, 42, 0.08);
}

body.light-theme .v2-card-pending {
    background: #fffbeb;
    border-color: #fde68a;
}

body.light-theme .v2-card-resolved {
    background: #eff6ff;
    border-color: #bfdbfe;
}

body.light-theme .v2-card-live {
    background: #ecfdf5;
    border-color: #a7f3d0;
}

body.light-theme .v2-row-target {
    background: rgba(109, 40, 217, 0.04);
}



