/* ===== MODERN DARK CRYPTO EXCHANGE THEME ===== */

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

:root {
    /* Primary Colors - Premium Gold */
    --primary: #06b6d4;
    --primary-dark: #0891b2;
    --primary-light: #22d3ee;
    --primary-glow: rgba(6,182,212, 0.2);
    --primary-gradient: linear-gradient(135deg, #06b6d4 0%, #22d3ee 100%);

    /* Accent */
    --accent-blue: #1e90ff;
    --accent-purple: #0891b2;
    --accent-orange: #0891b2;
    --accent: var(--primary);

    /* Status */
    --green: #06b6d4;
    --red: #f6465d;
    --yellow: #06b6d4;

    /* Background layers */
    --bg-primary: #0b0e11;
    --bg-secondary: #12161c;
    --bg-card: #1e2329;
    --bg-card-hover: #252930;
    --bg-elevated: #2b3139;
    --bg-input: #0b0e11;
    --bg-modal: rgba(0, 0, 0, 0.85);

    /* Glass effect */
    --glass-bg: rgba(30, 35, 41, 0.65);
    --glass-border: rgba(255, 255, 255, 0.05);
    --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);

    /* Text */
    --text-primary: #eaecef;
    --text-secondary: #848e9c;
    --text-muted: #5e6673;
    --text-bright: #ffffff;

    /* Borders */
    --border: #2b3139;
    --border-light: #363c45;
    --border-active: var(--primary);

    /* Spacing */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --radius-full: 50%;

    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.15);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.25);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.35);
    --shadow-glow: 0 0 20px var(--primary-glow);
}

/* ===== RESET & BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-tap-highlight-color: transparent;
    overscroll-behavior-y: none;
    scrollbar-gutter: stable both-edges;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Keep viewport width stable between pages with/without vertical scroll */
@media (min-width: 481px) {

    html,
    body {
        overflow-y: scroll;
    }
}

/* ===== APP CONTAINER ===== */
.app {
    max-width: 100%;
    width: 100%;
    margin: 0 auto;
    min-height: 100vh;
    position: relative;
    background: var(--bg-primary);
    overflow-x: clip;
    padding-top: 72px;
    padding-bottom: calc(76px + env(safe-area-inset-bottom, 0px));
    box-sizing: border-box;
}

.app.defi-page {
    padding-top: 72px;
}

.app.markets-page {
    padding-top: 64px;
}

.app.trade-page {
    padding-top: 60px;
}

.app.news-page {
    padding-top: 64px;
}

.app.assets-page {
    padding-top: 98px;
}

.app.convert-page,
.app.support-page {
    padding-top: 64px;
}

@media (min-width: 481px) {
    .app {
        max-width: 480px;
        width: 480px;
        margin: 0 auto;
        box-shadow: 0 0 60px rgba(0, 0, 0, 0.5);
    }
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar {
    width: 4px;
}

::-webkit-scrollbar-track {
    background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
    background: var(--border-light);
    border-radius: 4px;
}

/* ===== FIXED TOP HEADERS ===== */
.header,
.defi-header,
.markets-top-header,
.trade-header,
.news-header,
.assets-header-wrapper,
.convert-header,
.chat-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 9995;
    box-sizing: border-box;
}

@media (min-width: 481px) {

    .header,
    .defi-header,
    .markets-top-header,
    .trade-header,
    .news-header,
    .assets-header-wrapper,
    .convert-header,
    .chat-header,
    .bottom-nav {
        max-width: 480px !important;
        width: 480px !important;
        left: 50% !important;
        right: auto !important;
        transform: translateX(-50%) !important;
    }
}

/* ===== MAIN HOME HEADER ===== */
.header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: rgba(11, 14, 17, 0.95);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    border-bottom: 1px solid rgba(6,182,212, 0.08);
    box-shadow: 0 1px 20px rgba(0, 0, 0, 0.4);
}

.header-left {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    flex: 1;
}

.header-logo {
    width: 36px;
    height: 36px;
    min-width: 36px;
    background: #000000;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow:
        0 0 12px rgba(6,182,212, 0.5),
        0 0 30px rgba(6,182,212, 0.25),
        0 4px 15px rgba(0, 0, 0, 0.3);
    border: 2px solid #06b6d4;
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
}

.header-logo::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent 40%, rgba(255, 255, 255, 0.15) 50%, transparent 60%);
    animation: logoShine 4s ease-in-out infinite;
}

@keyframes logoShimmer {

    0%,
    100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

@keyframes logoShine {
    0% {
        transform: translateX(-100%) rotate(45deg);
    }

    30%,
    100% {
        transform: translateX(100%) rotate(45deg);
    }
}

.header-title {
    font-size: 14px;
    font-weight: 800;
    background: linear-gradient(135deg, #22d3ee, #06b6d4, #fff, #22d3ee);
    background-size: 300% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: titleGlow 4s ease infinite;
    letter-spacing: -0.3px;
    text-shadow: none;
    filter: drop-shadow(0 0 8px rgba(6,182,212, 0.4));
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

@keyframes titleGlow {

    0%,
    100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

.header-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
}

.header-right-top {
    display: flex;
    align-items: center;
    gap: 8px;
}

.header-btn {
    width: 38px;
    height: 38px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    background: var(--bg-card);
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.header-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: rgba(6,182,212, 0.06);
    box-shadow: 0 0 15px rgba(6,182,212, 0.15);
    transform: translateY(-1px);
}

/* UID display */
.uid-display {
    background: rgba(6,182,212, 0.1);
    border: 1px solid rgba(6,182,212, 0.2);
    color: var(--primary);
    padding: 4px 10px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    transition: all 0.2s;
}

.uid-display .uid-kyc-inline #userUid {
    color: var(--primary);
    font-weight: 700;
}

.uid-kyc-inline {
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    gap: 3px;
    line-height: 1;
    vertical-align: middle;
}

.uid-kyc-inline #userUid,
.uid-kyc-inline #defiUserUid,
.uid-kyc-inline #assetsUid {
    display: inline-block;
    line-height: 1;
}

.kyc-verified-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 12px;
    height: 12px;
    min-width: 12px;
    max-width: 12px;
    min-height: 12px;
    max-height: 12px;
    margin: 0;
    padding: 0;
    line-height: 0;
    flex-shrink: 0;
    vertical-align: middle;
    color: var(--primary);
    filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.22));
}

.kyc-verified-badge__icon {
    display: block;
    width: 12px;
    height: 12px;
    max-width: 12px;
    max-height: 12px;
}

.kyc-verified-badge__check,
.kyc-verified-badge path:not(.kyc-verified-badge__seal):not(.kyc-verified-badge__ring) {
    fill: #ffffff !important;
    stroke: none !important;
}

.kyc-verified-badge__ring {
    vector-effect: non-scaling-stroke;
}

.uid-display,
.defi-uid-display,
.assets-uid-bar>div,
.markets-top-header .uid-badge {
    align-items: center;
}

.kyc-verified-badge[hidden] {
    display: none !important;
}

/* ===== HERO BANNER ===== */
.hero-banner {
    margin: 16px 16px 0;
    padding: 28px 24px;
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, #0b0e11 0%, #1a1510 40%, #1e2329 70%, #12161c 100%);
    position: relative;
    overflow: visible;
    border: 1px solid rgba(6,182,212, 0.12);
    box-shadow: 0 4px 30px rgba(6,182,212, 0.06);
}

.hero-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -30%;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, var(--primary-glow) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.hero-banner::after {
    content: '';
    position: absolute;
    bottom: -40%;
    left: -20%;
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, rgba(0, 153, 255, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.hero-title {
    font-size: 22px;
    font-weight: 800;
    color: var(--text-bright);
    margin-bottom: 6px;
    position: relative;
    z-index: 1;
    line-height: 1.3;
}

.hero-subtitle {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 18px;
    position: relative;
    z-index: 1;
}

.hero-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 22px;
    background: var(--primary-gradient);
    color: var(--bg-primary);
    font-weight: 700;
    font-size: 14px;
    border-radius: var(--radius-md);
    border: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    z-index: 1;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(6,182,212, 0.25);
    overflow: hidden;
}

.hero-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
    z-index: 2;
}

.hero-btn:hover::before {
    left: 100%;
}

.hero-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(6,182,212, 0.4);
}

/* ===== PRICE TICKERS ===== */
.tickers {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    padding: 16px 16px 8px;
}

.tickers::-webkit-scrollbar {
    display: none;
}

.ticker-card {
    min-width: 0;
    padding: 12px 10px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    position: relative;
}

.ticker-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--primary-gradient);
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

.ticker-card:hover {
    border-color: rgba(6,182,212, 0.3);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(6,182,212, 0.1);
    background: var(--bg-card-hover);
}

.ticker-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}

.ticker-icon {
    width: 24px;
    height: 24px;
    min-width: 24px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    overflow: hidden;
    padding: 0;
}

.ticker-icon.btc {
    background: transparent;
}

.ticker-icon.eth {
    background: transparent;
}

.ticker-icon.sol {
    background: transparent;
}

.ticker-name {
    font-size: 10px;
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ticker-price {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-bright);
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ticker-change {
    font-size: 12px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 6px;
    display: inline-block;
}

.ticker-change.positive {
    color: var(--green);
    background: rgba(6,182,212, 0.12);
}

.ticker-change.negative {
    color: var(--red);
    background: rgba(246, 70, 93, 0.12);
}

/* ===== SECTION TITLES ===== */
.section-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-bright);
    padding: 0 16px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.section-title .see-all {
    font-size: 13px;
    font-weight: 500;
    color: var(--primary);
    text-decoration: none;
    cursor: pointer;
}

/* ===== QUICK ACTIONS GRID ===== */
.quick-actions {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
    padding: 4px 16px 20px;
}

.action-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 14px 4px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.action-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 0%, rgba(6,182,212, 0.06) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.action-item:hover::after {
    opacity: 1;
}

.action-item:hover {
    border-color: rgba(6,182,212, 0.25);
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(6,182,212, 0.08);
}

.action-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.action-icon.mining {
    background: linear-gradient(135deg, rgba(6,182,212, 0.12), rgba(34,211,238, 0.12));
    color: var(--primary);
}

.action-icon.convert {
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.15), rgba(168, 85, 247, 0.15));
    color: var(--accent-purple);
}

.action-icon.promo {
    background: linear-gradient(135deg, rgba(6,182,212, 0.15), rgba(34,211,238, 0.15));
    color: var(--accent-orange);
}

.action-icon.contract {
    background: linear-gradient(135deg, rgba(0, 153, 255, 0.15), rgba(59, 130, 246, 0.15));
    color: var(--accent-blue);
}

.action-icon.smartcontract {
    background: linear-gradient(135deg, rgba(6,182,212, 0.15), rgba(252, 212, 53, 0.15));
    color: #22d3ee;
}

.action-icon.cs {
    background: linear-gradient(135deg, rgba(236, 72, 153, 0.15), rgba(244, 114, 182, 0.15));
    color: #f472b6;
}

.action-label {
    font-size: 10px;
    font-weight: 500;
    color: var(--text-secondary);
    text-align: center;
    line-height: 1.2;
    word-break: break-word;
    max-width: 100%;
}

/* ===== JOURNEY / INFO BANNER ===== */
.journey-banner {
    margin: 0 16px 20px;
    padding: 18px 18px 18px 16px;
    background:
        radial-gradient(circle at top right, rgba(59, 130, 246, 0.16), transparent 40%),
        linear-gradient(135deg, rgba(17, 24, 39, 0.96), rgba(15, 23, 42, 0.98));
    border: 1px solid rgba(59, 130, 246, 0.18);
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    cursor: pointer;
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 16px 36px rgba(2, 6, 23, 0.34);
    width: calc(100% - 32px);
    max-width: calc(100% - 32px);
}

.journey-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.04), transparent 45%, rgba(6,182,212, 0.08));
    pointer-events: none;
}

.journey-banner::after {
    content: '';
    position: absolute;
    width: 150px;
    height: 150px;
    right: -52px;
    bottom: -78px;
    background: radial-gradient(circle, rgba(6,182,212, 0.18), transparent 68%);
    pointer-events: none;
}

.journey-banner:hover {
    border-color: rgba(96, 165, 250, 0.34);
    box-shadow: 0 18px 42px rgba(15, 23, 42, 0.44);
    transform: translateY(-2px);
}

.journey-icon {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.16), rgba(15, 23, 42, 0.24));
    border: 1px solid rgba(96, 165, 250, 0.18);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    flex-shrink: 0;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 10px 24px rgba(15, 23, 42, 0.24);
    position: relative;
    z-index: 1;
}

.journey-info {
    flex: 1;
    min-width: 0;
    position: relative;
    z-index: 1;
}

.journey-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-bright);
    margin-bottom: 5px;
    line-height: 1.3;
}

.journey-desc {
    font-size: 12px;
    color: rgba(226, 232, 240, 0.68);
    line-height: 1.5;
    max-width: 230px;
}

.journey-arrow {
    width: 34px;
    height: 34px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #93c5fd;
    font-size: 20px;
    background: rgba(59, 130, 246, 0.12);
    border: 1px solid rgba(96, 165, 250, 0.18);
    position: relative;
    z-index: 1;
    flex-shrink: 0;
}

/* ===== CRYPTO NEWS ===== */
.crypto-news {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 0 16px 24px;
}

.news-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 14px 16px;
    display: flex;
    gap: 12px;
    align-items: flex-start;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.news-card:hover {
    border-color: rgba(6,182,212, 0.2);
    box-shadow: 0 4px 20px rgba(6,182,212, 0.06);
    transform: translateX(4px);
}

.news-badge {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 4px 8px;
    border-radius: 6px;
    white-space: nowrap;
    flex-shrink: 0;
    margin-top: 2px;
}

.news-badge.bullish {
    background: rgba(6,182,212, 0.15);
    color: #06b6d4;
}

.news-badge.bearish {
    background: rgba(255, 75, 75, 0.15);
    color: #ff4b4b;
}

.news-badge.neutral {
    background: rgba(6,182,212, 0.15);
    color: #06b6d4;
}

.news-content {
    flex: 1;
    min-width: 0;
}

.news-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 6px;
    line-height: 1.4;
}

.news-desc {
    font-size: 11px;
    color: var(--text-muted);
    margin: 0 0 8px;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-meta {
    display: flex;
    align-items: center;
    gap: 12px;
}

.news-source {
    font-size: 10px;
    font-weight: 600;
    color: var(--primary);
}

.news-time {
    font-size: 10px;
    color: var(--text-muted);
}

/* ===== BOTTOM NAVIGATION ===== */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    max-width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0;
    padding: 8px 0;
    padding-bottom: max(8px, env(safe-area-inset-bottom, 8px));
    background: rgba(11, 14, 17, 0.96);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    backdrop-filter: blur(24px) saturate(180%);
    border-top: 1px solid rgba(6,182,212, 0.08);
    z-index: 9995;
    box-shadow: 0 -2px 20px rgba(0, 0, 0, 0.4);
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    will-change: transform;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 4px 0;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 12px;
    font-weight: 500;
    transition: color 0.2s ease;
    position: relative;
    flex: 1 1 0;
    max-width: 20%;
    min-width: 20%;
    text-align: center;
}

.nav-item span {
    display: block;
    width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.nav-item svg {
    width: 22px;
    height: 22px;
    transition: all 0.2s ease;
}

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

.nav-item.active::before {
    content: '';
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 24px;
    height: 3px;
    background: var(--primary-gradient);
    border-radius: 0 0 4px 4px;
    box-shadow: 0 2px 8px rgba(6,182,212, 0.4);
}

.nav-item:hover {
    color: var(--primary);
}

/* ===== ASSETS PAGE ===== */
.assets-header-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 500;
    background: var(--bg-secondary);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    box-sizing: border-box;
}

.assets-uid-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
    background: transparent;
    border-bottom: none;
    position: relative;
    z-index: unset;
}

.assets-uid-bar .uid-label {
    font-size: 13px;
    color: var(--text-muted);
}

.assets-uid-bar .uid-value {
    font-size: 13px;
    font-weight: 600;
    color: var(--primary);
}

.assets-tabs {
    display: flex;
    gap: 0;
    padding: 0 16px;
    border-bottom: none;
    background: transparent;
    position: relative;
    top: unset;
    z-index: unset;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

.asset-tab {
    flex: 1;
    text-align: center;
    padding: 14px 16px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-muted);
    cursor: pointer;
    border: none;
    background: none;
    position: relative;
    transition: all 0.2s ease;
    font-family: inherit;
}

.asset-tab.active {
    color: var(--primary);
    font-weight: 600;
}

.asset-tab.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 32px;
    height: 3px;
    background: var(--primary);
    border-radius: 3px 3px 0 0;
}

/* Wallet Card Frame */
.wallet-card-frame {
    margin: 16px;
    border: 1px solid rgba(6,182,212, 0.2);
    border-radius: 20px;
    background: linear-gradient(180deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
    overflow: hidden;
    position: relative;
}

.wallet-card-frame .balance-section,
.wallet-card-frame .action-buttons {
    position: relative;
    z-index: 1;
}

/* ETH orbit around card border - clockwise */
@keyframes ethOrbitCW {
    0% {
        top: 5%;
        left: 10%;
    }

    12.5% {
        top: 5%;
        left: 50%;
    }

    25% {
        top: 5%;
        left: 90%;
    }

    37.5% {
        top: 50%;
        left: 90%;
    }

    50% {
        top: 90%;
        left: 90%;
    }

    62.5% {
        top: 90%;
        left: 50%;
    }

    75% {
        top: 90%;
        left: 10%;
    }

    87.5% {
        top: 50%;
        left: 10%;
    }

    100% {
        top: 5%;
        left: 10%;
    }
}

/* ETH orbit around card border - counter-clockwise */
@keyframes ethOrbitCCW {
    0% {
        top: 90%;
        left: 10%;
    }

    12.5% {
        top: 90%;
        left: 50%;
    }

    25% {
        top: 90%;
        left: 90%;
    }

    37.5% {
        top: 50%;
        left: 90%;
    }

    50% {
        top: 5%;
        left: 90%;
    }

    62.5% {
        top: 5%;
        left: 50%;
    }

    75% {
        top: 5%;
        left: 10%;
    }

    87.5% {
        top: 50%;
        left: 10%;
    }

    100% {
        top: 90%;
        left: 10%;
    }
}

/* ETH orbit - diagonal path */
@keyframes ethOrbitDiag {
    0% {
        top: 5%;
        left: 5%;
    }

    16.6% {
        top: 5%;
        left: 70%;
    }

    33.3% {
        top: 40%;
        left: 90%;
    }

    50% {
        top: 90%;
        left: 70%;
    }

    66.6% {
        top: 90%;
        left: 20%;
    }

    83.3% {
        top: 40%;
        left: 5%;
    }

    100% {
        top: 5%;
        left: 5%;
    }
}

/* Balance Section */
.balance-section {
    padding: 16px 20px;
    text-align: center;
    background: transparent;
}

.balance-label {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.balance-amount {
    font-size: 38px;
    font-weight: 800;
    color: var(--text-bright);
    line-height: 1;
    margin-bottom: 6px;
    letter-spacing: -1px;
    text-shadow: 0 0 40px rgba(6,182,212, 0.15);
}

.balance-usd {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.currency-selector {
    position: relative;
    display: inline-flex;
}

.currency-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 3px 10px;
    font-size: 12px;
    font-weight: 600;
    color: var(--accent-gold);
    cursor: pointer;
    transition: background 0.2s;
    font-family: inherit;
}

.currency-btn:hover {
    background: var(--bg-hover);
}

.currency-list {
    display: none;
    position: fixed;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    z-index: 11000;
    min-width: 130px;
    max-height: calc(9px * 2 + 13px * 3 + 18px * 3);
    overflow-y: auto;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    padding: 6px 0;
    scrollbar-width: thin;
    scrollbar-color: rgba(148, 163, 184, 0.42) transparent;
    -webkit-overflow-scrolling: touch;
}

.currency-list.show {
    display: block;
}

.currency-list::-webkit-scrollbar {
    width: 4px;
}

.currency-list::-webkit-scrollbar-track {
    background: transparent;
    margin: 6px 0;
}

.currency-list::-webkit-scrollbar-thumb {
    background: rgba(148, 163, 184, 0.42);
    border: 0;
    border-radius: 999px;
}

.currency-list::-webkit-scrollbar-thumb:hover {
    background: rgba(203, 213, 225, 0.62);
}

.currency-list-item {
    padding: 9px 16px;
    font-size: 13px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: background 0.15s;
    white-space: nowrap;
}

.currency-list-item:hover {
    background: var(--bg-hover);
}

.currency-list-item.active {
    color: var(--accent-gold);
    font-weight: 600;
    background: rgba(6,182,212, 0.08);
}

/* Action Buttons */
.action-buttons {
    display: flex;
    gap: 0;
    padding: 4px 8px 16px;
    justify-content: space-evenly;
    align-items: flex-start;
}

.action-btn {
    flex: none;
    width: 80px;
    min-width: unset;
    padding: 0;
    border: none;
    background: transparent;
    color: var(--text-secondary);
    font-size: 11.5px;
    font-weight: 500;
    cursor: pointer;
    text-align: center;
    transition: color 0.2s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    font-family: inherit;
    text-decoration: none;
}

.btn-icon-wrap {
    width: 74px;
    height: 74px;
    border-radius: 20px;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.07) 0%, rgba(255, 255, 255, 0.03) 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.06);
    transition: all 0.28s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.action-btn svg {
    width: 30px;
    height: 30px;
    color: var(--primary);
    transition: transform 0.2s ease;
}

.action-btn:hover {
    color: var(--text-primary);
    background: transparent;
    box-shadow: none;
    transform: none;
}

.action-btn:hover .btn-icon-wrap {
    background: linear-gradient(145deg, rgba(6,182,212, 0.14) 0%, rgba(6,182,212, 0.07) 100%);
    border-color: rgba(6,182,212, 0.28);
    box-shadow: 0 8px 22px rgba(6,182,212, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.08);
    transform: translateY(-4px);
}

.action-btn:active .btn-icon-wrap {
    transform: translateY(-1px) scale(0.95);
    box-shadow: 0 2px 8px rgba(6,182,212, 0.12);
}

.action-btn.primary {
    background: var(--primary-gradient);
    color: var(--bg-primary);
    border: 2px solid var(--primary);
    position: relative;
    overflow: hidden;
    box-shadow: 0 0 12px rgba(6,182,212, 0.25);
}

.action-btn.primary::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.12), transparent);
    transform: translateX(-100%);
    transition: transform 0.4s ease;
}

.action-btn.primary:hover::before {
    transform: translateX(100%);
}

.action-btn.primary svg {
    color: var(--bg-primary);
}

.action-btn.primary:hover {
    box-shadow: 0 4px 25px rgba(6,182,212, 0.35);
    transform: translateY(-2px);
}

/* Asset List */
.asset-list {
    padding: 0 16px;
}

.asset-list-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-bright);
    padding: 16px 4px 12px;
    border-bottom: 1px solid var(--border);
}

.asset-item {
    display: flex;
    align-items: center;
    padding: 16px 4px;
    border-bottom: 1px solid var(--border);
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.asset-item:hover {
    background: rgba(6,182,212, 0.03);
    border-radius: var(--radius-sm);
    padding-left: 8px;
}

.asset-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-full);
    overflow: hidden;
    margin-right: 12px;
    flex-shrink: 0;
}

.asset-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.asset-info {
    flex: 1;
}

.asset-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-bright);
}

.asset-full-name {
    font-size: 12px;
    color: var(--text-muted);
}

.asset-values {
    text-align: right;
}

.asset-balance {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-bright);
}

.asset-usd-value {
    font-size: 12px;
    color: var(--text-muted);
}

/* ===== WITHDRAW SECTION ===== */
.withdraw-section {
    padding: 16px 16px 24px;
}

.withdraw-section h3 {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-bright);
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
}

.withdraw-item {
    padding: 14px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    margin-bottom: 10px;
}

.withdraw-item .wi-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 6px;
    font-size: 13px;
}

.withdraw-item .wi-label {
    color: var(--text-muted);
}

.withdraw-item .wi-value {
    color: var(--text-primary);
    font-weight: 500;
}

.withdraw-status {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
}

.withdraw-status.pending {
    background: rgba(6,182,212, 0.12);
    color: var(--yellow);
}

.withdraw-status.approved {
    background: rgba(6,182,212, 0.12);
    color: var(--green);
}

.withdraw-status.rejected {
    background: rgba(246, 70, 93, 0.12);
    color: var(--red);
}

/* ===== MODAL / OVERLAY ===== */
.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: var(--bg-modal);
    z-index: 10000;
    align-items: flex-end;
    justify-content: center;
    padding: 0;
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
}

.modal-overlay.active {
    display: flex;
}

.home-modal-overlay {
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.home-modal-overlay .modal-content,
.home-modal-overlay .sc-modal-content,
.home-modal-overlay .support-modal-content,
.home-modal-overlay .promo-modal-content {
    width: min(480px, calc(100vw - 32px));
    max-width: 480px;
    margin: 0 auto;
    border-radius: 20px;
    border-bottom: 1px solid rgba(6,182,212, 0.1);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55), 0 0 32px rgba(6,182,212, 0.05);
    animation: homeModalIn 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes homeModalIn {
    from {
        transform: translateY(12px) scale(0.98);
        opacity: 0;
    }

    to {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

.modal-content {
    width: 100%;
    max-width: 560px;
    background: var(--bg-card);
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
    padding: 24px 20px 32px;
    max-height: 85vh;
    overflow-y: auto;
    animation: slideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    border: 1px solid rgba(6,182,212, 0.1);
    border-bottom: none;
    box-shadow: 0 -8px 40px rgba(0, 0, 0, 0.5), 0 0 30px rgba(6,182,212, 0.05);
}

.modal-content.modal-content-clean {
    padding: 0;
    overflow: hidden;
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

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

.modal-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-bright);
}

.modal-close {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-full);
    border: 1px solid var(--border);
    background: var(--bg-elevated);
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 18px;
    transition: all 0.2s ease;
}

.modal-close:hover {
    border-color: var(--red);
    color: var(--red);
}

.modal-scroll {
    flex: 1;
    overflow-y: auto;
    overscroll-behavior: contain;
}

.modal-scroll::-webkit-scrollbar {
    width: 6px;
}

.modal-scroll::-webkit-scrollbar-track {
    background: transparent;
}

.modal-scroll::-webkit-scrollbar-thumb {
    background: rgba(148, 163, 184, 0.22);
    border-radius: 999px;
}

.support-modal-content {
    width: min(calc(100vw - 32px), 100%);
    max-width: 480px;
    background:
        radial-gradient(circle at top, rgba(244, 114, 182, 0.1), transparent 36%),
        linear-gradient(180deg, rgba(30, 35, 41, 1) 0%, rgba(18, 22, 28, 1) 100%);
}

.support-modal-header {
    margin-bottom: 0;
    padding: 18px 18px 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.support-modal-title {
    display: flex;
    align-items: center;
    gap: 8px;
}

.support-modal-body {
    padding: 18px;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.support-modal-hero {
    width: 84px;
    height: 84px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(236, 72, 153, 0.2), rgba(244, 114, 182, 0.12));
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    border: 1px solid rgba(244, 114, 182, 0.18);
    box-shadow: 0 16px 36px rgba(15, 23, 42, 0.26);
}

.support-modal-heading {
    color: var(--text-primary);
    font-size: 21px;
    font-weight: 700;
    margin-bottom: -4px;
}

.support-modal-subtext {
    color: rgba(226, 232, 240, 0.66);
    font-size: 13px;
    line-height: 1.7;
    margin: 0 auto;
    max-width: 420px;
}

.support-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 4px;
}

.support-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 14px 14px 12px;
    border-radius: 18px;
    text-decoration: none;
    color: var(--text-primary);
    text-align: left;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.04);
    transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
    cursor: pointer;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.support-option:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 30px rgba(2, 6, 23, 0.26);
}

.support-option-online {
    background: rgba(16, 185, 129, 0.08);
    border-color: rgba(16, 185, 129, 0.2);
}

.support-option-email {
    background: rgba(59, 130, 246, 0.08);
    border-color: rgba(59, 130, 246, 0.2);
}

.support-option-mail {
    background: rgba(168, 85, 247, 0.08);
    border-color: rgba(168, 85, 247, 0.22);
}

.support-option-icon {
    width: 46px;
    height: 46px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.support-option-online .support-option-icon {
    background: rgba(16, 185, 129, 0.14);
}

.support-option-email .support-option-icon {
    background: rgba(59, 130, 246, 0.14);
}

.support-option-mail .support-option-icon {
    background: rgba(168, 85, 247, 0.14);
}

.support-option-content {
    flex: 1;
    min-width: 0;
}

.support-option-title {
    font-weight: 700;
    font-size: 14px;
    margin-bottom: 4px;
}

.support-option-desc {
    font-size: 12px;
    color: rgba(226, 232, 240, 0.62);
    line-height: 1.5;
    word-break: break-word;
}

.support-option-arrow {
    opacity: 0.86;
    flex-shrink: 0;
    width: 30px;
    height: 30px;
    padding: 7px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.04);
}

.support-modal-response {
    font-size: 11px;
    color: rgba(226, 232, 240, 0.6);
    margin-top: 2px;
    padding: 10px 12px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.promo-modal-content {
    width: min(calc(100vw - 32px), 100%);
    max-width: 480px;
    padding: 0;
    overflow: hidden;
    background: linear-gradient(180deg, #111b2d 0%, #0e1726 100%);
    border: 1px solid rgba(148, 163, 184, 0.2);
}

.sc-modal-content {
    width: 100%;
    max-width: 480px;
    padding: 0;
    overflow: hidden;
    background: var(--bg-card);
    border: 1px solid var(--border);
}

.sc-modal-shell {
    max-height: min(92vh, 820px);
    display: flex;
    flex-direction: column;
}

.sc-modal-header {
    margin-bottom: 0;
    padding: 16px 16px 14px;
    border-bottom: 1px solid var(--border);
    flex-shrink: 0;
}

.sc-modal-scroll {
    flex: 1;
    overflow-y: auto;
    overscroll-behavior: contain;
}

.sc-modal-scroll::-webkit-scrollbar {
    width: 5px;
}

.sc-modal-scroll::-webkit-scrollbar-thumb {
    background: rgba(148, 163, 184, 0.22);
    border-radius: 999px;
}

.sc-modal-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 16px;
    font-weight: 800;
    letter-spacing: -0.2px;
}

.sc-modal-title-icon {
    width: 36px;
    height: 36px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    background: rgba(6,182,212, 0.1);
    border: 1px solid rgba(6,182,212, 0.2);
}

.sc-modal-close {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
}

.sc-section {
    padding: 12px 16px;
    border-bottom: 1px solid var(--border);
}

.sc-section--source {
    border-bottom: none;
    padding-bottom: 16px;
}

.sc-hero {
    padding-top: 14px;
}

.sc-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    margin-bottom: 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    color: var(--primary);
    background: rgba(6,182,212, 0.08);
    border: 1px solid rgba(6,182,212, 0.18);
}

.sc-hero-desc {
    margin: 0;
    font-size: 12px;
    line-height: 1.55;
    color: var(--text-muted);
}

.sc-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}

.sc-stat-pill {
    text-align: center;
    padding: 12px 6px;
    border-radius: 14px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
}

.sc-stat-num {
    font-size: 20px;
    font-weight: 800;
    line-height: 1.2;
    font-variant-numeric: tabular-nums;
    color: var(--primary);
}

.sc-stat-label {
    margin-top: 4px;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.4px;
    text-transform: uppercase;
    color: var(--text-muted);
}

.sc-audit-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px;
    border-radius: 16px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
}

.sc-audit-icon {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--bg-primary);
    background: var(--primary-gradient);
}

.sc-audit-title {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.sc-audit-desc {
    font-size: 11px;
    line-height: 1.45;
    color: var(--text-muted);
}

.sc-section-head {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.sc-section-head--compact {
    margin-bottom: 10px;
}

.sc-section-icon {
    width: 28px;
    height: 28px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--primary);
    background: rgba(6,182,212, 0.1);
    border: 1px solid rgba(6,182,212, 0.18);
}

.sc-section-icon--muted {
    color: var(--text-secondary);
    background: var(--bg-secondary);
    border: 1px solid var(--border);
}

.sc-section-title {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-primary);
}

.sc-trusted-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.sc-trusted-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 12px;
    border-radius: 14px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    transition: background 0.2s ease, border-color 0.2s ease;
}

.sc-trusted-item:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-light);
}

.sc-trusted-icon {
    width: 36px;
    height: 36px;
    border-radius: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--primary);
    background: rgba(6,182,212, 0.1);
    border: 1px solid rgba(6,182,212, 0.15);
}

.sc-trusted-info {
    flex: 1;
    min-width: 0;
}

.sc-trusted-name {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-primary);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sc-trusted-addr {
    font-size: 10px;
    color: var(--text-muted);
    margin-top: 2px;
    line-height: 1.35;
}

.sc-trusted-badge {
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    color: var(--primary);
    background: rgba(6,182,212, 0.08);
    border: 1px solid rgba(6,182,212, 0.18);
    padding: 4px 8px;
    border-radius: 999px;
    white-space: nowrap;
    flex-shrink: 0;
}

.sc-info-card {
    padding: 14px;
    border-radius: 16px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
}

.sc-info-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    padding: 7px 0;
    font-size: 12px;
    border-bottom: 1px solid var(--border);
}

.sc-info-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.sc-info-label {
    color: var(--text-muted);
    flex-shrink: 0;
}

.sc-info-value {
    color: var(--text-primary);
    font-weight: 600;
    font-size: 11px;
    text-align: right;
    max-width: 62%;
    word-break: break-word;
}

.sc-info-value--accent {
    color: var(--primary);
}

.sc-tabs-track {
    display: flex;
    gap: 6px;
    padding: 4px;
    margin-bottom: 12px;
    border-radius: 14px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    overflow-x: auto;
    scrollbar-width: none;
}

.sc-tabs-track::-webkit-scrollbar {
    display: none;
}

.sc-tab {
    padding: 8px 12px;
    border: none;
    border-radius: 10px;
    background: transparent;
    color: var(--text-muted);
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.sc-tab:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
}

.sc-tab.active {
    color: var(--bg-primary);
    background: var(--primary-gradient);
}

.sc-code-wrap {
    padding: 0;
}

.sc-code-block {
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 14px;
    overflow-x: auto;
    font-family: 'SF Mono', 'Fira Code', 'Courier New', monospace;
    font-size: 11px;
    line-height: 1.6;
    color: #e2e8f0;
    white-space: pre;
    tab-size: 4;
    max-height: 300px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

@media (max-width: 360px) {
    .sc-stats-grid {
        gap: 6px;
    }

    .sc-stat-pill {
        padding: 10px 4px;
    }

    .sc-stat-num {
        font-size: 17px;
    }
}

.promo-modal-shell {
    max-height: min(88vh, 760px);
    display: flex;
    flex-direction: column;
}

.promo-modal-header {
    margin-bottom: 0;
    padding: 16px 16px 14px;
    background: rgba(15, 23, 42, 0.78);
    border-bottom: 1px solid rgba(148, 163, 184, 0.14);
    box-shadow: 0 10px 24px rgba(2, 6, 23, 0.18);
}

.promo-modal-title {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #f8fafc;
    font-size: 16px;
    letter-spacing: -0.15px;
}

.promo-modal-title svg {
    width: 34px;
    height: 34px;
    padding: 7px;
    flex-shrink: 0;
    border-radius: 11px;
    background: rgba(20, 184, 166, 0.12);
    border: 1px solid rgba(45, 212, 191, 0.24);
    stroke: #2dd4bf;
}

.promo-modal-scroll {
    padding: 0 0 18px;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    scrollbar-color: rgba(148, 163, 184, 0.28) transparent;
}

.promo-modal-scroll::-webkit-scrollbar {
    width: 5px;
}

.promo-modal-scroll::-webkit-scrollbar-thumb {
    background: rgba(148, 163, 184, 0.28);
    border-radius: 999px;
}

.promo-hero {
    background:
        radial-gradient(circle at top center, rgba(6,182,212, 0.14), transparent 44%),
        linear-gradient(180deg, rgba(59, 130, 246, 0.16) 0%, rgba(17, 24, 39, 0.52) 100%);
    position: relative;
    margin: 14px 12px 12px;
    padding: 24px 18px 20px;
    text-align: center;
    border-radius: 17px;
    border: 1px solid rgba(96, 165, 250, 0.28);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 14px 28px rgba(2, 6, 23, 0.22);
    overflow: hidden;
}

.promo-hero::after {
    content: '';
    position: absolute;
    left: 18%;
    right: 18%;
    bottom: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, #38bdf8, transparent);
    opacity: 0.8;
}

.promo-hero-title {
    font-size: clamp(19px, 5vw, 22px);
    font-weight: 800;
    color: #60a5fa;
    letter-spacing: -0.25px;
    margin-bottom: 8px;
}

.promo-hero-desc {
    font-size: 13px;
    color: #a9b7ca;
    line-height: 1.6;
    max-width: 330px;
    margin-left: auto;
    margin-right: auto;
}

.promo-grid {
    padding: 0 12px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.promo-card {
    text-decoration: none;
    display: flex;
    align-items: center;
    position: relative;
    gap: 12px;
    padding: 14px 13px;
    border-radius: 16px;
    transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.promo-card::before,
.promo-card-gold::before {
    content: '';
    width: 3px;
    align-self: stretch;
    flex-shrink: 0;
    border-radius: 999px;
    background: currentColor;
    opacity: 0.75;
}

.promo-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 30px rgba(15, 23, 42, 0.18);
}

.promo-card:focus-visible,
.promo-card-gold:focus-visible {
    outline: 2px solid #67e8f9;
    outline-offset: 2px;
}

.promo-card-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.promo-card-body {
    flex: 1;
    min-width: 0;
}

.promo-card-title {
    font-size: 14px;
    font-weight: 700;
    color: #f1f5f9;
    letter-spacing: -0.05px;
    margin-bottom: 4px;
}

.promo-card-desc {
    font-size: 12px;
    color: #aebbd0;
    line-height: 1.5;
}

.promo-card-arrow {
    opacity: 0.68;
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    padding: 6px;
    border-radius: 9px;
    background: rgba(255, 255, 255, 0.05);
    color: #cbd5e1;
}

.promo-card:hover .promo-card-arrow {
    opacity: 1;
    background: rgba(255, 255, 255, 0.09);
}

.promo-card-green {
    color: #10b981;
    background: rgba(16, 185, 129, 0.06);
    border: 1px solid rgba(16, 185, 129, 0.15);
}

.promo-card-green .promo-card-icon {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.15), rgba(16, 185, 129, 0.05));
}

.promo-card-blue {
    color: #3b82f6;
    background: rgba(59, 130, 246, 0.06);
    border: 1px solid rgba(59, 130, 246, 0.15);
}

.promo-card-blue .promo-card-icon {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.15), rgba(59, 130, 246, 0.05));
}

.promo-card-purple {
    color: #a855f7;
    background: rgba(168, 85, 247, 0.06);
    border: 1px solid rgba(168, 85, 247, 0.15);
}

.promo-card-purple .promo-card-icon {
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.15), rgba(168, 85, 247, 0.05));
}

.promo-card-orange {
    color: #0891b2;
    background: rgba(6,182,212, 0.06);
    border: 1px solid rgba(6,182,212, 0.15);
}

.promo-card-orange .promo-card-icon {
    background: linear-gradient(135deg, rgba(6,182,212, 0.15), rgba(6,182,212, 0.05));
}

.promo-card-pink {
    color: #ec4899;
    background: rgba(236, 72, 153, 0.06);
    border: 1px solid rgba(236, 72, 153, 0.15);
}

.promo-card-pink .promo-card-icon {
    background: linear-gradient(135deg, rgba(236, 72, 153, 0.15), rgba(236, 72, 153, 0.05));
}

.promo-card-gold {
    color: #06b6d4;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px;
    background: rgba(6,182,212, 0.06);
    border: 1px solid rgba(6,182,212, 0.15);
    border-radius: 16px;
}

.promo-card-gold .promo-card-icon {
    background: linear-gradient(135deg, rgba(6,182,212, 0.15), rgba(6,182,212, 0.05));
}

.promo-why {
    padding: 16px 14px 0;
}

.promo-why-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-bright);
    margin-bottom: 12px;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.promo-stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.promo-stat-box {
    padding: 14px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    text-align: center;
}

.promo-stat-value {
    font-size: 20px;
    font-weight: 700;
}

.promo-stat-green {
    color: #10b981;
}

.promo-stat-blue {
    color: #3b82f6;
}

.promo-stat-purple {
    color: #a855f7;
}

.promo-stat-gold {
    color: #06b6d4;
}

.promo-stat-label {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 4px;
}

.promo-cta-wrap {
    padding: 16px 14px 0;
}

.promo-cta-btn {
    display: block;
    text-align: center;
    padding: 14px;
    background: linear-gradient(135deg, #06b6d4, #0891b2);
    color: #0b0e11;
    border-radius: 12px;
    font-weight: 800;
    font-size: 14px;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.promo-cta-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 26px rgba(6,182,212, 0.22);
}

@media (max-width: 640px) {

    .journey-banner {
        margin-bottom: 18px;
        width: calc(100% - 24px);
        max-width: calc(100% - 24px);
        margin-left: 12px;
        margin-right: 12px;
        padding: 15px 12px;
        gap: 12px;
        border-radius: 18px;
    }

    .journey-icon {
        width: 46px;
        height: 46px;
        border-radius: 14px;
    }

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

    .journey-desc {
        font-size: 11px;
        max-width: none;
    }

    .journey-arrow {
        width: 30px;
        height: 30px;
        font-size: 18px;
    }

    .support-modal-header,
    .promo-modal-header {
        padding: 16px 16px 12px;
    }

    .support-modal-body {
        padding: 16px 14px 18px;
    }

    .support-option {
        padding: 14px 14px 14px 12px;
        gap: 10px;
    }

    .support-option-icon {
        width: 42px;
        height: 42px;
    }

    .support-option-arrow {
        width: 28px;
        height: 28px;
        padding: 6px;
    }

    .promo-hero,
    .promo-grid,
    .promo-why,
    .promo-cta-wrap {
        margin-left: 0;
        margin-right: 0;
        padding-left: 14px;
        padding-right: 14px;
    }

    .promo-hero {
        margin-top: 14px;
    }
}

@media (min-width: 769px) {
    .modal-overlay {
        align-items: center;
        padding: 20px;
    }

    .modal-content {
        width: min(560px, calc(100vw - 40px));
        max-height: min(88vh, 820px);
        border-radius: 24px;
        border-bottom: 1px solid rgba(6,182,212, 0.1);
        box-shadow: 0 24px 70px rgba(0, 0, 0, 0.55), 0 0 40px rgba(6,182,212, 0.06);
    }

    .home-modal-overlay .modal-content,
    .home-modal-overlay .sc-modal-content,
    .home-modal-overlay .support-modal-content,
    .home-modal-overlay .promo-modal-content,
    .support-modal-content,
    .promo-modal-content,
    .sc-modal-content {
        width: min(480px, calc(100vw - 32px));
        max-width: 480px;
    }
}

/* Form Elements */
.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.form-input,
.form-select {
    width: 100%;
    padding: 14px 16px;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 15px;
    font-family: inherit;
    transition: all 0.2s ease;
    outline: none;
}

.form-input:focus,
.form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(6,182,212, 0.12), 0 0 15px rgba(6,182,212, 0.08);
}

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

.form-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%238b95a5' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
}

.form-select option {
    background: var(--bg-card);
    color: var(--text-primary);
}

/* Buttons */
.btn-primary {
    width: 100%;
    padding: 16px 24px;
    background: var(--primary-gradient);
    color: var(--bg-primary);
    font-size: 15px;
    font-weight: 700;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: inherit;
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
    transition: left 0.5s ease;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:hover {
    box-shadow: 0 4px 25px rgba(6,182,212, 0.35);
    transform: translateY(-2px);
}

.btn-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* ===== MARKETS PAGE ===== */
.markets-page {
    background: var(--bg-primary);
    min-height: 100vh;
}

.markets-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border);
}

.markets-header-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.markets-header-right {
    font-size: 14px;
    color: var(--text-muted);
}

.markets-list {
    padding: 0;
}

.market-item {
    display: grid;
    grid-template-columns: auto 1fr auto auto;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.market-item:hover {
    background: rgba(6,182,212, 0.03);
    border-bottom-color: rgba(6,182,212, 0.15);
}

.market-icon {
    width: 42px;
    height: 42px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
}

.market-icon.btc {
    background: linear-gradient(135deg, #f7931a, #ffb347);
    color: #fff;
}

.market-icon.eth {
    background: linear-gradient(135deg, #06b6d4, #22d3ee);
    color: #fff;
}

.market-icon.xrp {
    background: linear-gradient(135deg, #23292f, #3a4553);
    color: #fff;
}

.market-icon.ltc {
    background: linear-gradient(135deg, #345d9d, #5a8fd8);
    color: #fff;
}

.market-icon.bnb {
    background: linear-gradient(135deg, #06b6d4, #22d3ee);
    color: #1a1a2e;
}

.market-icon.sol {
    background: linear-gradient(135deg, #9945ff, #14f195);
    color: #fff;
}

.market-icon.doge {
    background: linear-gradient(135deg, #0891b2, #e8d174);
    color: #fff;
}

.market-icon.trx {
    background: linear-gradient(135deg, #eb0a29, #ff6b6b);
    color: #fff;
}

.market-pair {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-bright);
}

.market-chart {
    width: 100px;
    height: 40px;
}

.market-chart svg {
    width: 100%;
    height: 100%;
}

.market-info {
    text-align: right;
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 100px;
}

.market-price {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-bright);
}

.market-change {
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 700;
    text-align: center;
}

.market-change.positive {
    background: rgba(6,182,212, 0.12);
    color: var(--green);
}

.market-change.negative {
    background: rgba(246, 70, 93, 0.12);
    color: var(--red);
}

.market-change.neutral {
    background: rgba(156, 163, 175, 0.1);
    color: var(--text-muted);
}

/* ===== TRADE PAGE ===== */
.trade-page {
    background: var(--bg-primary);
    min-height: 100vh;
}

.trade-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 500;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-sizing: border-box;
}

.back-btn {
    color: var(--text-primary);
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    padding: 8px;
    text-decoration: none;
    transition: color 0.2s;
}

.back-btn:hover {
    color: var(--primary);
}

.trade-tabs {
    display: flex;
    gap: 0;
    flex: 1;
}

.trade-tab {
    flex: 1;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-muted);
    padding-bottom: 8px;
    cursor: pointer;
    border: none;
    background: none;
    position: relative;
    transition: color 0.2s;
    font-family: inherit;
    text-align: center;
}

.trade-tab.active {
    color: var(--primary);
}

.trade-tab.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 24px;
    height: 3px;
    background: var(--primary);
    border-radius: 2px;
}

.pair-selector {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: var(--bg-primary);
}

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

.menu-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    color: var(--text-primary);
}

.pair-name {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-bright);
}

.info-btn {
    width: 28px;
    height: 28px;
    border-radius: var(--radius-full);
    border: 2px solid var(--primary);
    background: rgba(6,182,212, 0.1);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.info-btn:hover {
    background: rgba(6,182,212, 0.2);
    box-shadow: var(--shadow-glow);
}

.price-section {
    display: flex;
    justify-content: space-between;
    padding: 8px 16px 16px;
    background: var(--bg-primary);
}

.price-left {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.current-price {
    font-size: 32px;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
    letter-spacing: -1px;
    text-shadow: 0 0 30px rgba(6,182,212, 0.2);
}

.price-change {
    font-size: 14px;
    font-weight: 600;
    color: var(--red);
}

.price-change.positive {
    color: var(--green);
}

.price-stats {
    display: flex;
    flex-direction: column;
    gap: 4px;
    text-align: right;
}

.stat-row {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    align-items: center;
}

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

.stat-value {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-primary);
}

.time-tabs {
    display: flex;
    gap: 4px;
    padding: 8px 16px;
    background: var(--bg-primary);
    overflow-x: auto;
    scrollbar-width: none;
}

.time-tabs::-webkit-scrollbar {
    display: none;
}

.time-tab {
    padding: 6px 14px;
    font-size: 13px;
    color: var(--text-muted);
    background: none;
    border: none;
    cursor: pointer;
    white-space: nowrap;
    font-family: inherit;
    border-radius: 6px;
    transition: all 0.2s;
}

.time-tab.active {
    color: var(--primary);
    font-weight: 600;
    background: rgba(6,182,212, 0.08);
}

.chart-info {
    padding: 8px 16px;
    background: var(--bg-primary);
}

.chart-pair-label {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.chart-pair-label svg {
    width: 18px;
    height: 18px;
    color: var(--text-muted);
}

.chart-pair-label span {
    font-size: 13px;
    color: var(--text-primary);
}

.ma-indicators {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.ma-line {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
}

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

.ma-value {
    font-weight: 500;
}

.ma-value.yellow {
    color: #0891b2;
}

.ma-value.blue {
    color: #3b82f6;
}

.ma-value.purple {
    color: #0891b2;
}

.chart-container {
    height: 280px;
    padding: 0 8px;
    background: var(--bg-primary);
    position: relative;
}

.u-chart-container {
    height: 300px;
    margin: 0 4px 8px;
    padding: 0;
    border-radius: 8px;
    overflow: hidden;
    background: #0d1117;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.u-chart-container #uChartContainer {
    width: 100%;
    height: 100%;
}

.spot-chart-pro,
.contract-chart-pro,
.u-chart-pro {
    background: linear-gradient(180deg, #0c1018 0%, #070b12 100%);
    border-bottom: 1px solid rgba(45, 212, 191, 0.08);
    position: relative;
}

.spot-chart-pro::before,
.contract-chart-pro::before,
.u-chart-pro::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(45, 212, 191, 0.45), transparent);
    pointer-events: none;
}

.spot-chart-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 4px 6px;
    padding: 8px 10px;
    background: rgba(10, 14, 23, 0.92);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(45, 212, 191, 0.08);
}

.bn-chart-canvas {
    width: 100%;
    height: 100%;
    min-height: 320px;
}

.spot-chart-toolbar::-webkit-scrollbar {
    display: none;
}

.spot-toolbar-left {
    display: flex;
    align-items: center;
    gap: 2px;
    flex: 1 1 100%;
    min-width: 0;
    overflow: visible;
    position: relative;
    z-index: 20;
    scrollbar-width: none;
}

.spot-toolbar-left::-webkit-scrollbar {
    display: none;
}

.spot-toolbar-right {
    display: flex;
    align-items: center;
    gap: 2px;
    flex: 1 1 100%;
    justify-content: flex-start;
}

.spot-tf-btn,
.spot-tool-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    height: 28px;
    padding: 0 8px;
    font-size: 12px;
    font-weight: 500;
    color: #94a3b8;
    background: transparent;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-family: inherit;
    transition: background 0.15s, color 0.15s;
}

.spot-tf-btn:hover,
.spot-tool-btn:hover {
    color: #e2e8f0;
    background: rgba(255, 255, 255, 0.06);
}

.spot-tf-btn.active,
.spot-tool-btn.active {
    color: #2dd4bf;
    background: rgba(45, 212, 191, 0.12);
    box-shadow: 0 0 0 1px rgba(45, 212, 191, 0.25);
}

.bn-tool-label {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.04em;
}

.spot-tf-more-wrap {
    position: relative;
    flex-shrink: 0;
}

.spot-tf-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 2px);
    left: 50%;
    z-index: 100;
    min-width: 118px;
    max-width: calc(100vw - 24px);
    margin-top: 4px;
    padding: 4px;
    background: linear-gradient(145deg, rgba(30, 41, 59, 0.98), rgba(15, 23, 42, 0.98));
    border: 1px solid rgba(45, 212, 191, 0.28);
    border-radius: 10px;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.48), 0 0 16px rgba(45, 212, 191, 0.08);
    transform: translateX(-50%);
}

.spot-tf-dropdown.open {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 3px;
}

.spot-tf-dropdown-item {
    display: block;
    width: 100%;
    padding: 7px 4px;
    font-size: 11px;
    font-weight: 600;
    color: #cbd5e1;
    background: rgba(148, 163, 184, 0.07);
    border: 1px solid transparent;
    border-radius: 6px;
    text-align: center;
    cursor: pointer;
    font-family: inherit;
}

.spot-tf-dropdown-item:hover {
    background: rgba(45, 212, 191, 0.13);
    border-color: rgba(45, 212, 191, 0.26);
    color: #5eead4;
}

.spot-tf-dropdown-item.active {
    color: #071817;
    background: linear-gradient(135deg, #2dd4bf, #14b8a6);
    border-color: #5eead4;
    box-shadow: 0 2px 8px rgba(45, 212, 191, 0.26);
}

.spot-tf-dropdown-item:last-child:nth-child(odd) {
    grid-column: 1 / -1;
    width: calc(50% - 1px);
    justify-self: center;
}

.spot-toolbar-divider {
    width: 1px;
    height: 18px;
    margin: 0 4px;
    background: rgba(255, 255, 255, 0.1);
    flex-shrink: 0;
}

.spot-ohlc-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 14px;
    padding: 8px 12px;
    font-size: 11px;
    color: #94a3b8;
    background: rgba(7, 11, 18, 0.95);
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    transition: background 0.35s ease;
}

.spot-ohlc-bar.bn-flash {
    background: rgba(45, 212, 191, 0.06);
}

.bn-change-pill {
    font-size: 10px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 999px;
    margin-left: 4px;
}

.bn-change-pill.up {
    color: #0ecb81;
    background: rgba(14, 203, 129, 0.12);
}

.bn-change-pill.down {
    color: #f6465d;
    background: rgba(246, 70, 93, 0.12);
}

.bn-stats-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    padding: 6px 12px 8px;
    background: #070b12;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.bn-stat-chip {
    font-size: 10px;
    font-weight: 600;
    color: #94a3b8;
    padding: 3px 8px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.bn-stat-chip.up {
    color: #0ecb81;
    border-color: rgba(14, 203, 129, 0.2);
}

.bn-stat-chip.down {
    color: #f6465d;
    border-color: rgba(246, 70, 93, 0.2);
}

.bn-stat-chip.bn-live {
    color: #2dd4bf;
    border-color: rgba(45, 212, 191, 0.25);
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.bn-live-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #2dd4bf;
    box-shadow: 0 0 8px #2dd4bf;
    animation: bn-pulse 1.5s ease-in-out infinite;
}

@keyframes bn-pulse {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.5;
        transform: scale(0.85);
    }
}

.bn-chart-wrap {
    position: relative;
}

.bn-crosshair-tip {
    position: absolute;
    top: 8px;
    left: 8px;
    z-index: 5;
    padding: 6px 10px;
    font-size: 10px;
    color: #e2e8f0;
    background: rgba(15, 23, 42, 0.88);
    border: 1px solid rgba(45, 212, 191, 0.2);
    border-radius: 8px;
    backdrop-filter: blur(6px);
    pointer-events: none;
    opacity: 0;
    transform: translateY(-4px);
    transition: opacity 0.15s, transform 0.15s;
}

.bn-crosshair-tip.visible {
    opacity: 1;
    transform: translateY(0);
}

.bn-crosshair-tip b {
    color: #64748b;
    font-weight: 600;
    margin-right: 2px;
}

.bn-chart-loading {
    position: absolute;
    inset: 0;
    z-index: 4;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(7, 11, 18, 0.55);
    backdrop-filter: blur(2px);
}

.bn-chart-loading.active {
    display: flex;
}

.bn-loader {
    width: 28px;
    height: 28px;
    border: 2px solid rgba(45, 212, 191, 0.2);
    border-top-color: #2dd4bf;
    border-radius: 50%;
    animation: bn-spin 0.7s linear infinite;
}

@keyframes bn-spin {
    to {
        transform: rotate(360deg);
    }
}

.bn-chart-wrap:fullscreen {
    background: #070b12;
    padding: 8px;
}

.bn-chart-wrap:fullscreen .bn-chart-canvas {
    min-height: calc(100vh - 16px);
}

.bn-chart-watermark {
    position: absolute;
    right: 14px;
    bottom: 52px;
    z-index: 2;
    font-size: 28px;
    font-weight: 800;
    letter-spacing: 0.06em;
    color: rgba(45, 212, 191, 0.07);
    pointer-events: none;
    user-select: none;
    text-transform: uppercase;
}

.bn-ind-legend {
    display: none;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    padding: 4px 12px 6px;
    background: #070b12;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.bn-leg {
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.05em;
    padding: 2px 7px;
    border-radius: 4px;
    text-transform: uppercase;
}

.bn-leg.ema9 {
    color: #22d3ee;
    background: rgba(34, 211, 238, 0.1);
}

.bn-leg.ema21 {
    color: #f472b6;
    background: rgba(244, 114, 182, 0.1);
}

.bn-leg.vwap {
    color: #fb923c;
    background: rgba(251, 146, 60, 0.1);
}

.bn-leg.bb {
    color: #ec4899;
    background: rgba(236, 72, 153, 0.1);
}

.bn-leg.ma {
    color: #0891b2;
    background: rgba(8,145,178, 0.1);
}

.bn-leg.sr {
    color: #94a3b8;
    background: rgba(148, 163, 184, 0.12);
}

.bn-sub-panels {
    background: #070b12;
    border-bottom: 1px solid rgba(45, 212, 191, 0.08);
}

.bn-rsi-panel,
.bn-macd-panel {
    display: none;
    position: relative;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.bn-rsi-panel.active,
.bn-macd-panel.active {
    display: block;
}

.bn-panel-title {
    position: absolute;
    top: 6px;
    left: 10px;
    z-index: 3;
    font-size: 9px;
    font-weight: 600;
    color: #64748b;
    letter-spacing: 0.04em;
    pointer-events: none;
}

.bn-panel-title b {
    color: #a78bfa;
    font-weight: 800;
    margin-left: 4px;
}

.bn-panel-title b.ob {
    color: #f6465d;
}

.bn-panel-title b.os {
    color: #0ecb81;
}

#contractMacdPanel .bn-panel-title b,
#spotMacdPanel .bn-panel-title b,
#uMacdPanel .bn-panel-title b {
    color: #2dd4bf;
}

.bn-sub-canvas {
    width: 100%;
    height: 88px;
}

.bn-crosshair-tip .up {
    color: #0ecb81;
    font-weight: 700;
}

.bn-crosshair-tip .down {
    color: #f6465d;
    font-weight: 700;
}

.spot-ohlc-bar.up .spot-ohlc-values b,
.spot-ohlc-bar.up .spot-ohlc-vol {
    color: #22c55e;
}

.spot-ohlc-bar.down .spot-ohlc-values b,
.spot-ohlc-bar.down .spot-ohlc-vol {
    color: #ef4444;
}

.spot-ohlc-pair {
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
}

.spot-ohlc-icon {
    font-size: 14px;
    line-height: 1;
}

.spot-ohlc-name {
    font-size: 11px;
    font-weight: 600;
    color: #e2e8f0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.spot-ohlc-values {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.spot-ohlc-values b {
    font-weight: 600;
    margin-left: 2px;
}

.spot-ohlc-vol {
    margin-left: auto;
    font-weight: 500;
    white-space: nowrap;
}

.spot-chart-container,
.contract-chart-container,
.u-chart-container {
    height: 420px;
    margin: 0;
    padding: 0;
    border-radius: 0;
    overflow: hidden;
    background: #0d1117;
    border: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

@media (max-width: 480px) {
    .spot-ohlc-bar {
        font-size: 10px;
        gap: 6px 10px;
    }

    .spot-ohlc-vol {
        margin-left: 0;
        width: 100%;
    }

    .spot-chart-container,
    .contract-chart-container,
    .u-chart-container {
        height: 360px;
    }

    .spot-tf-btn,
    .spot-tool-btn {
        min-width: 28px;
        height: 26px;
        padding: 0 6px;
    }
}

.chart-canvas {
    width: 100%;
    height: 100%;
    position: relative;
}

.price-labels {
    position: absolute;
    right: 0;
    top: 0;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 10px 8px;
    font-size: 11px;
    color: var(--text-muted);
}

.current-price-label {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    background: var(--primary);
    color: var(--bg-primary);
    padding: 4px 8px;
    font-size: 11px;
    font-weight: 700;
    border-radius: 4px;
}

.volume-section {
    padding: 8px 16px;
    background: var(--bg-primary);
}

.volume-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: var(--text-muted);
}

.volume-label .vol-green {
    color: var(--green);
}

.volume-label .vol-red {
    color: var(--red);
}

.trade-buttons {
    display: flex;
    gap: 12px;
    padding: 16px;
    background: var(--bg-primary);
}

.trade-btn {
    flex: 1;
    padding: 16px 24px;
    border-radius: var(--radius-md);
    font-size: 15px;
    font-weight: 700;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
    letter-spacing: 0.3px;
}

.trade-btn.bullish {
    background: linear-gradient(135deg, #06b6d4, #0891b2);
    color: #fff;
    box-shadow: 0 4px 15px rgba(6,182,212, 0.3);
    position: relative;
    overflow: hidden;
}

.trade-btn.bullish::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.4s ease;
}

.trade-btn.bullish:hover::before {
    left: 100%;
}

.trade-btn.bullish:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(6,182,212, 0.4);
}

.trade-btn.bearish {
    background: linear-gradient(135deg, #f6465d, #dc2626);
    color: #fff;
    box-shadow: 0 4px 15px rgba(246, 70, 93, 0.3);
    position: relative;
    overflow: hidden;
}

.trade-btn.bearish::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.4s ease;
}

.trade-btn.bearish:hover::before {
    left: 100%;
}

.trade-btn.bearish:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(246, 70, 93, 0.4);
}

/* ===== DEFI MINING PAGE ===== */
.defi-page {
    background: linear-gradient(180deg, #0a0e17 0%, #111827 100%);
    min-height: 100vh;
}

.defi-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    background: transparent;
}

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

.defi-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-bright);
}

.defi-header-right {
    display: flex;
    gap: 16px;
}

.header-icon-btn {
    color: var(--primary);
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

/* ===== CONNECT WALLET ===== */
.wallet-section {
    padding: 20px 16px;
    text-align: center;
}

.wallet-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    background: var(--primary-gradient);
    color: var(--bg-primary);
    font-size: 15px;
    font-weight: 700;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 20px rgba(6,182,212, 0.25);
    font-family: inherit;
    position: relative;
    overflow: hidden;
}

.wallet-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
    transition: left 0.5s ease;
}

.wallet-btn:hover::before {
    left: 100%;
}

.wallet-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(6,182,212, 0.4);
}

.wallet-info {
    padding: 16px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    margin: 0 16px;
}

.wallet-address {
    font-size: 13px;
    color: var(--text-secondary);
    word-break: break-all;
    font-family: 'Courier New', monospace;
}

/* ===== STATUS MESSAGES ===== */
.status-message {
    padding: 12px 16px;
    border-radius: var(--radius-md);
    margin: 12px 16px;
    font-size: 14px;
    font-weight: 500;
    display: none;
}

.status-message.success {
    display: block;
    background: rgba(6,182,212, 0.1);
    border: 1px solid rgba(6,182,212, 0.2);
    color: var(--green);
}

.status-message.error {
    display: block;
    background: rgba(246, 70, 93, 0.1);
    border: 1px solid rgba(246, 70, 93, 0.2);
    color: var(--red);
}

.status-message.info {
    display: block;
    background: rgba(0, 153, 255, 0.1);
    border: 1px solid rgba(0, 153, 255, 0.2);
    color: var(--accent-blue);
}

/* ===== ALERT / TOAST ===== */
.alert-toast {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(-100px);
    padding: 14px 24px;
    border-radius: var(--radius-md);
    font-size: 14px;
    font-weight: 600;
    z-index: 9999;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: var(--shadow-lg);
    max-width: 90%;
    text-align: center;
}

.alert-toast.show {
    transform: translateX(-50%) translateY(0);
}

.alert-toast.success {
    background: linear-gradient(135deg, #06b6d4, #0891b2);
    color: #fff;
}

.alert-toast.error {
    background: linear-gradient(135deg, #f6465d, #dc2626);
    color: #fff;
}

.alert-toast.warning {
    background: linear-gradient(135deg, #06b6d4, #0891b2);
    color: #0b0e11;
}

/* ===== ANIMATIONS ===== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }

    100% {
        background-position: 200% 0;
    }
}

.animate-in {
    animation: fadeIn 0.5s ease forwards;
}

/* === CARD SCROLL ENTRANCE ANIMATIONS === */
.card-anim {
    opacity: 0;
    transform: translateY(30px) scale(0.97);
    transition: opacity 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94),
        transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.card-anim.card-visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.loading-shimmer {
    background: linear-gradient(90deg, var(--bg-card) 25%, var(--bg-elevated) 50%, var(--bg-card) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

/* ===== RESPONSIVE - AUTO DEVICE DETECTION ===== */

/* === Extra small phones (iPhone SE, Galaxy A01 etc - under 360px) === */
@media (max-width: 359px) {
    .app {
        max-width: 100%;
    }

    .hero-title {
        font-size: 18px;
    }

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

    .hero-btn {
        padding: 8px 16px;
        font-size: 12px;
    }

    .tickers {
        grid-template-columns: repeat(2, 1fr);
        gap: 6px;
        padding: 12px;
    }

    .ticker-card {
        padding: 10px;
    }

    .ticker-name {
        font-size: 11px;
    }

    .ticker-price {
        font-size: 12px;
    }

    .quick-actions {
        grid-template-columns: repeat(3, 1fr);
        gap: 6px;
        padding: 0 12px 16px;
    }

    .action-icon {
        width: 36px;
        height: 36px;
        border-radius: 10px;
        font-size: 16px;
    }

    .action-label {
        font-size: 10px;
    }

    .action-item {
        padding: 12px 4px;
    }

    .section-title {
        font-size: 14px;
        padding: 0 12px;
    }

    .balance-amount {
        font-size: 24px;
    }

    .action-buttons {
        gap: 12px;
        padding: 4px 12px 24px;
    }

    .btn-icon-wrap {
        width: 64px;
        height: 64px;
        border-radius: 18px;
    }

    /* Trade page */
    .trade-tab {
        font-size: 11px;
        padding: 8px 4px;
    }

    .current-price {
        font-size: 24px;
    }

    .price-section {
        padding: 8px 12px 12px;
    }

    .stat-label {
        font-size: 10px;
    }

    .stat-value {
        font-size: 11px;
    }

    .trade-buttons {
        gap: 8px;
        padding: 12px;
    }

    .trade-btn {
        padding: 12px 16px;
        font-size: 13px;
    }

    .time-tabs {
        gap: 2px;
        padding: 4px 8px;
    }

    .time-tab {
        font-size: 11px;
        padding: 4px 6px;
    }

    /* Spot */
    .spot-content {
        flex-direction: column;
        padding: 8px;
        gap: 8px;
    }

    .spot-orderbook {
        flex: 1;
    }

    .orderbook-current .current-price {
        font-size: 16px;
    }

    .side-btn {
        padding: 8px;
        font-size: 12px;
    }

    /* Bottom nav */
    .bottom-nav {
        max-width: 100%;
    }

    .nav-item {
        font-size: 10px;
    }

    .nav-item svg {
        width: 20px;
        height: 20px;
    }

    /* News */
    .news-card {
        padding: 10px 12px;
    }

    .news-title {
        font-size: 12px;
    }

    /* Market */
    .market-chart {
        width: 70px;
        height: 30px;
    }

    .market-info {
        min-width: 80px;
    }

    .market-pair {
        font-size: 13px;
    }

    .market-price {
        font-size: 12px;
    }

    /* Modal */
    .modal-content {
        padding: 16px 14px 24px;
    }

    /* Header */
    .header-logo {
        width: 34px;
        height: 34px;
        border-radius: 10px;
    }

    .header-title {
        font-size: 12px;
    }

    .header-btn {
        width: 32px;
        height: 32px;
    }
}

/* === Small phones (iPhone 8, Galaxy S8, Pixel 4a - 360px to 389px) === */
@media (min-width: 360px) and (max-width: 389px) {
    .app {
        max-width: 100%;
    }

    .quick-actions {
        grid-template-columns: repeat(5, 1fr);
        gap: 6px;
        padding: 4px 12px 16px;
    }

    .action-icon {
        width: 36px;
        height: 36px;
    }

    .action-label {
        font-size: 9px;
    }

    .action-item {
        padding: 12px 2px;
        gap: 5px;
    }

    .tickers {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
        padding: 12px 12px 6px;
    }

    .ticker-card {
        padding: 10px 8px;
    }

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

    .hero-banner {
        padding: 22px 18px;
        margin: 12px 12px 0;
    }

    .current-price {
        font-size: 28px;
    }

    .balance-amount {
        font-size: 28px;
    }

    .trade-tab {
        font-size: 12px;
    }

    .bottom-nav {
        max-width: 100%;
    }

    .spot-content {
        flex-direction: column;
        gap: 10px;
    }

    .spot-orderbook {
        flex: 1;
    }
}

/* === Standard phones (iPhone 12/13/14, Galaxy S21/S22, Pixel 6 - 390px to 430px) === */
@media (min-width: 390px) and (max-width: 430px) {
    .app {
        max-width: 100%;
    }

    .bottom-nav {
        max-width: 100%;
    }

    .quick-actions {
        grid-template-columns: repeat(5, 1fr);
        gap: 8px;
    }

    .action-icon {
        width: 42px;
        height: 42px;
    }

    .action-label {
        font-size: 10px;
    }

    .tickers {
        grid-template-columns: repeat(3, 1fr);
    }

    .spot-content {
        flex-direction: column;
        gap: 10px;
    }

    .spot-orderbook {
        flex: 1;
    }
}

/* === Large phones (iPhone Plus/Max, Galaxy S Ultra, Note - 431px to 480px) === */
@media (min-width: 431px) and (max-width: 480px) {
    .app {
        max-width: 100%;
    }

    .bottom-nav {
        max-width: 100%;
    }
}

/* === Small tablets & foldables (Galaxy Fold inner, iPad Mini - 481px to 768px) === */
@media (min-width: 481px) and (max-width: 768px) {
    .app {
        max-width: 480px;
        margin: 0 auto;
    }

    .header,
    .defi-header,
    .markets-top-header,
    .trade-header,
    .news-header,
    .assets-header-wrapper,
    .convert-header,
    .chat-header,
    .bottom-nav {
        max-width: 480px !important;
        width: 480px !important;
        left: 50% !important;
        right: auto !important;
        transform: translateX(-50%) !important;
    }
}

/* === Tablets (769px to 1023px) - keep mobile layout === */
@media (min-width: 769px) and (max-width: 1023px) {
    .app {
        max-width: 480px;
        margin: 0 auto;
    }

    .header,
    .defi-header,
    .markets-top-header,
    .trade-header,
    .news-header,
    .assets-header-wrapper,
    .convert-header,
    .chat-header,
    .bottom-nav {
        max-width: 480px !important;
        width: 480px !important;
        left: 50% !important;
        right: auto !important;
        transform: translateX(-50%) !important;
    }
}

/* === Desktop (1024px+) === */
@media (min-width: 1024px) {
    .app {
        max-width: 480px;
        margin: 0 auto;
        box-shadow: 0 0 60px rgba(0, 0, 0, 0.5);
    }

    .header,
    .defi-header,
    .markets-top-header,
    .trade-header,
    .news-header,
    .assets-header-wrapper,
    .convert-header,
    .chat-header,
    .bottom-nav {
        max-width: 480px !important;
        width: 480px !important;
        left: 50% !important;
        right: auto !important;
        transform: translateX(-50%) !important;
    }
}

/* === Large Desktop (1440px+) === */
@media (min-width: 1440px) {
    .app {
        max-width: 480px;
        margin: 0 auto;
    }

    .header,
    .defi-header,
    .markets-top-header,
    .trade-header,
    .news-header,
    .assets-header-wrapper,
    .convert-header,
    .chat-header,
    .bottom-nav {
        max-width: 480px !important;
        width: 480px !important;
        left: 50% !important;
        right: auto !important;
        transform: translateX(-50%) !important;
    }
}

/* === Landscape mode adjustment === */
@media (orientation: landscape) and (max-height: 500px) {
    .app {
        padding-bottom: 60px;
    }

    .bottom-nav {
        padding: 4px 0;
    }

    .nav-item {
        padding: 4px 0;
    }

    .nav-item svg {
        width: 18px;
        height: 18px;
    }

    .nav-item span {
        font-size: 9px;
    }

    .hero-banner {
        padding: 12px 16px;
    }

    .hero-title {
        font-size: 18px;
        margin-bottom: 4px;
    }

    .hero-subtitle {
        font-size: 12px;
        margin-bottom: 10px;
    }

    .chart-container {
        height: 200px;
    }

    .price-section {
        padding: 6px 16px 8px;
    }

    .current-price {
        font-size: 26px;
    }

    .trade-buttons {
        padding: 8px 16px;
    }

    .trade-btn {
        padding: 10px 16px;
    }
}

/* === Safe area for notched phones (iPhone X+, modern Android) === */
@supports (padding: env(safe-area-inset-bottom)) {
    .bottom-nav {
        padding-bottom: env(safe-area-inset-bottom, 8px);
    }

    .app {
        padding-bottom: calc(80px + env(safe-area-inset-bottom, 0px));
    }

    .trade-buttons {
        padding-bottom: calc(16px + env(safe-area-inset-bottom, 0px));
    }
}

/* === High DPI / Retina display optimizations === */
@media (-webkit-min-device-pixel-ratio: 2),
(min-resolution: 192dpi) {
    .header-logo {
        image-rendering: -webkit-optimize-contrast;
    }

    .ticker-card,
    .action-item,
    .news-card {
        border-width: 0.5px;
    }
}

/* === Dark mode preference (ensure consistency) === */
@media (prefers-color-scheme: dark) {
    body {
        background: var(--bg-primary);
        color: var(--text-primary);
    }
}

/* === Touch device optimizations === */
@media (hover: none) and (pointer: coarse) {

    .trade-btn,
    .side-btn,
    .hero-btn,
    .action-item,
    .nav-item,
    .ticker-card {
        -webkit-tap-highlight-color: transparent;
    }

    .trade-btn:hover,
    .side-btn:hover,
    .action-item:hover,
    .hero-btn:hover {
        transform: none;
    }

    .trade-btn:active,
    .side-btn:active,
    .action-item:active {
        transform: scale(0.97);
        transition: transform 0.1s;
    }

    .asset-tab,
    .hist-tab,
    .ch-tab,
    .orders-tab,
    .tx-pro-row.clickable,
    .tx-pro-compact.clickable {
        -webkit-tap-highlight-color: transparent;
    }
}

/* ===== Mobile responsiveness (20260634) ===== */
html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

@supports (height: 100dvh) {

    body,
    .app {
        min-height: 100dvh;
    }
}

body {
    overflow-x: clip;
}

@media (max-width: 480px) {
    .header {
        padding: 12px 14px;
        gap: 8px;
    }

    .wallet-card-frame {
        margin: 12px;
        border-radius: 16px;
    }

    .asset-tab {
        padding: 12px 8px;
        font-size: 13px;
        min-height: 44px;
    }

    .form-input,
    .form-select,
    input[type="text"],
    input[type="number"],
    input[type="email"],
    input[type="password"],
    textarea,
    select {
        font-size: 16px;
    }

    .modal-content {
        max-height: min(92dvh, 900px);
    }

    .spot-orders-section {
        margin: 8px;
    }

    .orders-tab,
    .hist-tab,
    .ch-tab {
        min-height: 44px;
    }

    .action-grid {
        gap: 8px;
    }

    .action-item {
        min-height: 72px;
    }
}

/* Additional mobile layout guardrails */
@media (max-width: 480px) {

    html,
    body {
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
    }

    .app {
        width: 100%;
        max-width: 100%;
        min-width: 0;
        padding-top: 68px;
        padding-bottom: calc(72px + env(safe-area-inset-bottom, 0px));
    }

    .app.defi-page {
        padding-top: 72px;
    }

    .app.markets-page {
        padding-top: 64px;
    }

    .app.trade-page {
        padding-top: 58px;
    }

    .app.news-page {
        padding-top: 64px;
    }

    .app.assets-page {
        padding-top: 98px;
    }

    .app.convert-page,
    .app.support-page {
        padding-top: 64px;
    }

    .header,
    .assets-header-wrapper,
    .defi-header,
    .markets-top-header,
    .trade-header,
    .news-header,
    .convert-header,
    .chat-header {
        width: 100%;
        min-width: 0;
    }

    .header-title,
    .hero-title,
    .section-title,
    .card-title {
        overflow-wrap: anywhere;
    }

    .tickers {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .bottom-nav {
        width: 100%;
        max-width: 100%;
        padding-bottom: env(safe-area-inset-bottom);
    }

    .modal-overlay {
        padding: 8px;
        align-items: flex-end;
    }

    .modal-content,
    .transfer-modal-content,
    .withdraw-modal-content,
    .coin-history-modal-content,
    .receipt-card {
        width: 100%;
        max-width: 100%;
        max-height: calc(100dvh - 16px);
        overflow-y: auto;
        border-radius: 18px 18px 10px 10px;
    }

    .table-container,
    .history-table-wrap,
    .orders-table-wrap {
        max-width: 100%;
        overflow-x: auto;
    }
}

@media (max-width: 380px) {
    .nav-item {
        padding: 4px 2px;
        min-width: 0;
        flex: 1;
    }

    .nav-item span {
        font-size: 10px;
        line-height: 1.2;
    }

    .nav-item svg {
        width: 22px;
        height: 22px;
    }
}

@media (max-width: 360px) {
    .header-title {
        font-size: 15px;
    }

    .asset-tab {
        font-size: 12px;
        padding: 10px 6px;
    }

    .hist-tab,
    .ch-tab {
        min-width: 56px;
        padding: 10px 8px;
        font-size: 11px;
    }
}

@media (max-width: 420px) {
    .tx-pro-compact {
        gap: 8px;
        padding-left: 12px;
        padding-right: 12px;
    }

    .tx-pro-compact-right {
        min-width: 72px;
    }

    .tx-pro-row-top {
        flex-wrap: wrap;
    }

    .tx-pro-row-top .tx-pro-status {
        margin-left: auto;
    }

    .tx-pro-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 6px 10px;
    }

    .tx-pro-grid.cols-2 {
        grid-template-columns: 1fr;
    }

    .tx-pro-amt {
        font-size: 17px;
    }

    .tx-pro-symbol {
        font-size: 13px;
    }

    .tx-pro-row {
        padding: 12px 14px;
    }

    .tx-pro-compact {
        padding: 10px 14px;
        gap: 10px;
    }

    .tx-pro-compact-icon {
        width: 32px;
        height: 32px;
        font-size: 10px;
    }

    .coin-history-modal-content {
        width: 100%;
        max-width: 100%;
        border-radius: 16px 16px 0 0;
    }
}

@media (max-width: 340px) {
    .tx-pro-grid {
        grid-template-columns: 1fr;
    }

    .tx-pro-row-top {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }
}

@media (max-height: 520px) and (orientation: landscape) {

    .modal-content,
    .coin-history-modal-content,
    .receipt-card {
        max-height: 92vh;
    }

    .bottom-nav {
        padding-top: 4px;
        padding-bottom: max(4px, env(safe-area-inset-bottom, 4px));
    }
}

/* ===== UTILITY ===== */
.text-green {
    color: var(--green);
}

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

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

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

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

.fw-600 {
    font-weight: 600;
}

.fw-700 {
    font-weight: 700;
}

.mt-8 {
    margin-top: 8px;
}

.mt-16 {
    margin-top: 16px;
}

.mb-8 {
    margin-bottom: 8px;
}

.mb-16 {
    margin-bottom: 16px;
}

.hidden {
    display: none !important;
}

/* ===== CONNECT WALLET OVERLAY ===== */
.connect-overlay {
    position: fixed;
    inset: 0;
    background: rgba(10, 14, 23, 0.95);
    backdrop-filter: blur(12px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: fadeIn 0.3s ease;
}

.connect-overlay.hidden {
    display: none !important;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.connect-modal {
    background: var(--bg-card);
    border: 1px solid rgba(6,182,212, 0.15);
    border-radius: 24px;
    padding: 40px 32px;
    max-width: 400px;
    width: 100%;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 40px rgba(6,182,212, 0.08);
    animation: slideUp 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.connect-modal-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 24px;
    background: var(--primary-gradient);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    box-shadow: 0 8px 30px rgba(6,182,212, 0.3);
}

.connect-modal-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.connect-modal-desc {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 28px;
}

.connect-modal-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 24px;
    background: var(--primary-gradient);
    color: var(--bg-primary);
    font-size: 16px;
    font-weight: 700;
    border: none;
    border-radius: 14px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 20px rgba(6,182,212, 0.25);
    position: relative;
    overflow: hidden;
}

.connect-modal-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
    transition: left 0.5s ease;
}

.connect-modal-btn:hover::before {
    left: 100%;
}

.connect-modal-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(6,182,212, 0.4);
}

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

.connect-modal-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.connect-modal-note {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 16px;
}

/* ===== SPOT TRADING STYLES ===== */
.trade-view {
    display: block;
}

.trade-view:not(.active) {
    display: none !important;
}

.spot-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: var(--bg-card);
    border-bottom: 1px solid var(--border);
}

.spot-pair-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.spot-menu-btn {
    background: none;
    border: none;
    color: var(--text-primary);
    padding: 4px;
    cursor: pointer;
}

.spot-pair-name {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
}

.spot-pair-change {
    font-size: 13px;
    font-weight: 500;
    padding: 2px 8px;
    border-radius: 4px;
}

.spot-pair-change.positive {
    color: var(--green);
}

.spot-pair-change.negative {
    color: var(--red);
}

.spot-pair-icons {
    display: flex;
    gap: 8px;
}

.icon-btn {
    background: none;
    border: none;
    color: var(--text-secondary);
    padding: 6px;
    cursor: pointer;
    border-radius: 6px;
    transition: all 0.2s;
}

.icon-btn:hover {
    background: var(--bg-elevated);
    color: var(--text-primary);
}

.spot-content {
    display: flex;
    gap: 12px;
    padding: 12px;
    background: var(--bg-primary);
}

.spot-orderbook {
    flex: 0 0 45%;
    background: var(--bg-card);
    border-radius: var(--radius-md);
    padding: 12px;
}

.orderbook-header {
    display: flex;
    justify-content: space-between;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 8px;
}

.orderbook-col {
    font-size: 11px;
    color: var(--text-muted);
    line-height: 1.3;
}

.orderbook-row {
    display: flex;
    justify-content: space-between;
    padding: 4px 0;
    font-size: 12px;
    font-family: 'SF Mono', 'Consolas', monospace;
}

.orderbook-row.sell .price {
    color: var(--red);
}

.orderbook-row.buy .price {
    color: var(--green);
}

.orderbook-row .vol {
    color: var(--text-secondary);
}

.orderbook-current {
    padding: 8px 0;
    margin: 8px 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    text-align: center;
}

.orderbook-current .current-price {
    font-size: 18px;
    font-weight: 700;
    color: var(--green);
}

.orderbook-current .current-usd {
    display: block;
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 2px;
}

.orderbook-depth {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding-top: 8px;
    font-size: 12px;
    color: var(--text-secondary);
    cursor: pointer;
}

.spot-trading-panel {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.spot-side-toggle {
    display: flex;
    background: var(--bg-card);
    border-radius: var(--radius-md);
    padding: 4px;
}

.side-btn {
    flex: 1;
    padding: 10px;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    background: transparent;
    color: var(--text-secondary);
}

.side-btn.active[data-side="buy"] {
    background: var(--green);
    color: white;
}

.side-btn.active[data-side="sell"] {
    background: var(--red);
    color: white;
}

.spot-order-type select {
    width: 100%;
    padding: 10px 14px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 13px;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%238b95a5' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
}

.spot-market-price-btn {
    width: 100%;
    padding: 10px 14px;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-size: 13px;
    cursor: pointer;
    text-align: center;
}

.spot-percent-selector {
    display: flex;
    gap: 6px;
}

.percent-btn {
    flex: 1;
    padding: 8px 4px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s;
}

.percent-btn:hover,
.percent-btn.active {
    border-color: var(--primary);
    color: var(--primary);
}

.spot-input-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.spot-input-group label {
    font-size: 11px;
    color: var(--text-muted);
}

.spot-input-group input {
    padding: 10px 14px;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 14px;
}

.spot-input-group input:focus {
    outline: none;
    border-color: var(--primary);
}

.spot-available {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: var(--text-muted);
}

.spot-submit-btn {
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: var(--radius-md);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.spot-submit-btn.buy {
    background: var(--green);
    color: white;
}

.spot-submit-btn.sell {
    background: var(--red);
    color: white;
}

.spot-submit-btn:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

.spot-orders-section {
    background: var(--bg-card);
    margin: 12px;
    border-radius: var(--radius-md);
    overflow: hidden;
}

.spot-orders-tabs {
    display: flex;
    border-bottom: 1px solid var(--border);
}

.orders-tab {
    flex: 1;
    padding: 12px;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    border-bottom: 2px solid transparent;
}

.orders-tab.active {
    color: var(--text-primary);
    border-bottom-color: var(--primary);
}

.spot-orders-content {
    min-height: 120px;
    padding: 20px;
}

.empty-orders {
    text-align: center;
    color: var(--text-muted);
}

.empty-orders svg {
    margin-bottom: 8px;
    opacity: 0.5;
}

.empty-orders p {
    font-size: 13px;
}

.spot-refresh-icons {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    padding: 8px 12px;
    border-top: 1px solid var(--border);
}

/* Order list styling */
.order-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    border-bottom: 1px solid var(--border);
}

.order-item:last-child {
    border-bottom: none;
}

.order-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.order-pair {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}

.order-details {
    font-size: 12px;
    color: var(--text-muted);
}

.order-amount {
    text-align: right;
}

.order-amount .value {
    font-size: 14px;
    font-weight: 600;
}

.order-amount .status {
    font-size: 11px;
    padding: 2px 6px;
    border-radius: 4px;
}

.order-amount .status.filled {
    background: rgba(6,182,212, 0.2);
    color: var(--green);
}

.order-amount .status.pending {
    background: rgba(6,182,212, 0.2);
    color: var(--yellow);
}

.order-amount .status.cancelled {
    background: rgba(246, 70, 93, 0.2);
    color: var(--red);
}

/* ===== LANGUAGE SWITCHER ===== */
.lang-switcher {
    position: relative;
}

.lang-btn {
    background: rgba(6,182,212, 0.1);
    border: 1px solid rgba(6,182,212, 0.2);
    color: var(--primary);
    padding: 4px 10px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: all 0.2s;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    -webkit-user-select: none;
    user-select: none;
}

.lang-btn:hover {
    background: rgba(6,182,212, 0.2);
    border-color: rgba(6,182,212, 0.4);
}

.lang-btn svg {
    width: 10px;
    height: 10px;
    transition: transform 0.2s;
}

.lang-switcher.open .lang-btn svg {
    transform: rotate(180deg);
}

.lang-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    background: rgba(15, 23, 42, 0.97);
    border: 1px solid var(--border);
    border-radius: 10px;
    overflow: hidden;
    min-width: 140px;
    z-index: 999;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
}

.lang-switcher.open .lang-dropdown {
    display: block;
    animation: langFadeIn 0.15s ease;
}

@keyframes langFadeIn {
    from {
        opacity: 0;
        transform: translateY(-4px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.lang-option {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    cursor: pointer;
    transition: background 0.15s;
    color: var(--text-muted);
    font-size: 13px;
    font-weight: 500;
    border-bottom: 1px solid rgba(30, 41, 59, 0.5);
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    -webkit-user-select: none;
    user-select: none;
}

.lang-option:last-child {
    border-bottom: none;
}

.lang-option:hover {
    background: rgba(6,182,212, 0.08);
    color: var(--text-secondary);
}

.lang-option.active {
    color: var(--primary);
    background: rgba(6,182,212, 0.1);
}

.lang-flag {
    font-size: 16px;
    line-height: 1;
}

/* ===== WELCOME PROMO POPUP STYLES ===== */
.airdrop-overlay {
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: rgba(0, 0, 0, 0.78);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.airdrop-overlay.airdrop-visible {
    opacity: 1;
    pointer-events: auto;
}

.airdrop-overlay.airdrop-hiding {
    opacity: 0;
    pointer-events: none;
}

.airdrop-popup {
    position: relative;
    width: 100%;
    max-width: 400px;
    height: 92vh;
    max-height: 92vh;
    overflow: hidden;
    background:
        linear-gradient(170deg, rgba(26, 30, 46, 0.65) 0%, rgba(13, 17, 23, 0.72) 40%, rgba(18, 24, 32, 0.68) 100%),
        url('airdrop-bg.png') center/cover no-repeat;
    border-radius: 22px;
    border: 1px solid rgba(6,182,212, 0.2);
    box-shadow:
        0 0 40px rgba(6,182,212, 0.08),
        0 25px 80px rgba(0, 0, 0, 0.6);
    padding: 14px 16px 12px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-evenly;
    transform: scale(0.85) translateY(30px);
    animation: airdropPopIn 0.5s 0.3s ease forwards;
}

@keyframes airdropPopIn {
    to {
        transform: scale(1) translateY(0);
    }
}

.airdrop-overlay.airdrop-hiding .airdrop-popup {
    transform: scale(0.85) translateY(30px);
    transition: transform 0.4s ease;
}

/* Close Button */
.airdrop-close {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 10;
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    color: #848e9c;
    font-size: 22px;
    line-height: 36px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.airdrop-close:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    transform: rotate(90deg);
}

/* Badge */
.airdrop-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 14px;
    border-radius: 20px;
    background: rgba(0, 212, 170, 0.08);
    border: 1px solid rgba(0, 212, 170, 0.2);
    margin: 0;
    position: relative;
    flex-shrink: 0;
}

.airdrop-badge-pulse {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #00d4aa;
    animation: airdropPulse 2s ease infinite;
    box-shadow: 0 0 8px rgba(0, 212, 170, 0.5);
}

@keyframes airdropPulse {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.5;
        transform: scale(1.3);
    }
}

.airdrop-badge-text {
    font-size: 11px;
    font-weight: 700;
    color: #00d4aa;
    letter-spacing: 2px;
    text-transform: uppercase;
    text-shadow: 0 0 8px rgba(0, 212, 170, 0.4);
}

/* Header */
.airdrop-header {
    margin: 0;
    flex-shrink: 0;
}

/* Meteor Wrapper */
.airdrop-meteor-wrap {
    position: relative;
    width: 180px;
    height: 100px;
    margin: -6px auto -12px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: visible;
    z-index: 1;
}

.airdrop-eth-icon {
    width: 62px;
    height: 62px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 35%, #1a1400, #000000);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    border: 2px solid rgba(6,182,212, 0.7);
    box-shadow:
        0 0 15px rgba(6,182,212, 0.4),
        0 0 40px rgba(6,182,212, 0.2),
        0 0 80px rgba(6,182,212, 0.1),
        inset 0 0 20px rgba(6,182,212, 0.05);
    animation: airdropMeteorBob 3s ease-in-out infinite;
    z-index: 3;
}

@keyframes airdropMeteorBob {

    0%,
    100% {
        transform: translate(0, 0);
        box-shadow:
            0 0 15px rgba(6,182,212, 0.4),
            0 0 40px rgba(6,182,212, 0.2),
            0 0 80px rgba(6,182,212, 0.1);
    }

    25% {
        transform: translate(2px, -3px);
    }

    50% {
        transform: translate(0, -1px);
        box-shadow:
            0 0 25px rgba(6,182,212, 0.6),
            0 0 60px rgba(6,182,212, 0.3),
            0 0 100px rgba(6,182,212, 0.15);
    }

    75% {
        transform: translate(-2px, -2px);
    }
}

/* Front glow - impact point */
.airdrop-eth-icon::before {
    content: '';
    position: absolute;
    top: -4px;
    right: -4px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 230, 120, 0.9), rgba(6,182,212, 0.4), transparent);
    filter: blur(3px);
    z-index: 4;
    animation: airdropHeadFlicker 1.5s ease-in-out infinite alternate;
}

@keyframes airdropHeadFlicker {
    0% {
        opacity: 0.7;
        transform: scale(0.8);
    }

    100% {
        opacity: 1;
        transform: scale(1.2);
    }
}

/* Circular heat haze around icon */
.airdrop-eth-icon::after {
    content: '';
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    background: transparent;
    border: 1px solid rgba(6,182,212, 0.15);
    box-shadow: 0 0 12px rgba(6,182,212, 0.1);
    animation: airdropHeatHaze 2s ease-in-out infinite;
    z-index: -1;
}

@keyframes airdropHeatHaze {

    0%,
    100% {
        transform: scale(1);
        opacity: 0.5;
    }

    50% {
        transform: scale(1.12);
        opacity: 0.8;
    }
}

/* Meteor Tails */
.airdrop-meteor-tail {
    position: absolute;
    top: 50%;
    right: 55%;
    width: 90px;
    height: 4px;
    transform: translateY(-50%) rotate(-25deg);
    transform-origin: right center;
    background: linear-gradient(to left,
            rgba(6,182,212, 0.8),
            rgba(255, 160, 20, 0.5) 20%,
            rgba(255, 100, 20, 0.3) 50%,
            rgba(255, 60, 10, 0.1) 80%,
            transparent);
    border-radius: 0 4px 4px 0;
    filter: blur(1.5px);
    z-index: 1;
    animation: airdropTailPulse 2s ease-in-out infinite;
}

.airdrop-meteor-tail2 {
    width: 70px;
    height: 6px;
    transform: translateY(-50%) rotate(-20deg);
    background: linear-gradient(to left,
            rgba(6,182,212, 0.6),
            rgba(255, 140, 0, 0.4) 30%,
            rgba(255, 80, 0, 0.15) 70%,
            transparent);
    filter: blur(2.5px);
    animation-delay: 0.3s;
    top: 48%;
}

.airdrop-meteor-tail3 {
    width: 55px;
    height: 3px;
    transform: translateY(-50%) rotate(-30deg);
    background: linear-gradient(to left,
            rgba(255, 220, 100, 0.7),
            rgba(6,182,212, 0.3) 40%,
            transparent);
    filter: blur(1px);
    animation-delay: 0.6s;
    top: 45%;
}

@keyframes airdropTailPulse {

    0%,
    100% {
        opacity: 0.7;
    }

    50% {
        opacity: 1;
    }
}

/* Sparks flying off the meteor */
.airdrop-meteor-sparks {
    position: absolute;
    top: 50%;
    left: 10%;
    width: 50px;
    height: 50px;
    z-index: 2;
    pointer-events: none;
}

.airdrop-meteor-sparks span {
    position: absolute;
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: #06b6d4;
    box-shadow: 0 0 6px rgba(6,182,212, 0.8);
    animation: airdropSparkFly 2s ease-out infinite;
    opacity: 0;
}

.airdrop-meteor-sparks span:nth-child(1) {
    animation-delay: 0s;
    --spark-x: -20px;
    --spark-y: -15px;
}

.airdrop-meteor-sparks span:nth-child(2) {
    animation-delay: 0.25s;
    --spark-x: -25px;
    --spark-y: 10px;
}

.airdrop-meteor-sparks span:nth-child(3) {
    animation-delay: 0.5s;
    --spark-x: -15px;
    --spark-y: -25px;
}

.airdrop-meteor-sparks span:nth-child(4) {
    animation-delay: 0.75s;
    --spark-x: -30px;
    --spark-y: 5px;
}

.airdrop-meteor-sparks span:nth-child(5) {
    animation-delay: 1s;
    --spark-x: -22px;
    --spark-y: -8px;
}

.airdrop-meteor-sparks span:nth-child(6) {
    animation-delay: 1.25s;
    --spark-x: -18px;
    --spark-y: 18px;
}

.airdrop-meteor-sparks span:nth-child(7) {
    animation-delay: 1.5s;
    --spark-x: -28px;
    --spark-y: -20px;
}

.airdrop-meteor-sparks span:nth-child(8) {
    animation-delay: 1.75s;
    --spark-x: -12px;
    --spark-y: 12px;
}

@keyframes airdropSparkFly {
    0% {
        transform: translate(0, 0) scale(1);
        opacity: 1;
    }

    100% {
        transform: translate(var(--spark-x), var(--spark-y)) scale(0);
        opacity: 0;
    }
}

/* Burst Container */
.airdrop-burst-container {
    position: absolute;
    inset: -60px;
    z-index: 2;
    pointer-events: none;
}

/* Mini ETH Meteors */
.airdrop-mini-meteor {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 22px;
    height: 22px;
    margin: -11px 0 0 -11px;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: airdropBurstOut 3.5s linear infinite;
    filter: drop-shadow(0 0 5px rgba(6,182,212, 0.7));
    will-change: transform, opacity;
    z-index: 2;
}

.airdrop-mini-meteor svg {
    position: relative;
    z-index: 2;
    filter: drop-shadow(0 0 3px rgba(6,182,212, 0.8));
}

/* Fiery trail behind each mini meteor */
.airdrop-mini-trail {
    position: absolute;
    width: 40px;
    height: 4px;
    background: linear-gradient(to left,
            rgba(255, 220, 80, 0.9),
            rgba(6,182,212, 0.6) 25%,
            rgba(255, 140, 20, 0.35) 50%,
            rgba(255, 80, 10, 0.12) 80%,
            transparent);
    border-radius: 4px;
    transform-origin: right center;
    filter: blur(1.5px);
    top: 50%;
    right: 50%;
    margin-top: -2px;
    z-index: 1;
}

@keyframes airdropBurstOut {
    0% {
        transform: translate(0, 0) scale(0);
        opacity: 0;
    }

    6% {
        opacity: 1;
        transform: translate(0, 0) scale(1);
    }

    20% {
        opacity: 1;
        transform: translate(calc(var(--burst-x) * 0.35), calc(var(--burst-y) * 0.35)) scale(1);
    }

    40% {
        opacity: 0.95;
        transform: translate(calc(var(--burst-x) * 0.7), calc(var(--burst-y) * 0.7)) scale(0.95);
    }

    60% {
        opacity: 0.75;
        transform: translate(var(--burst-x), var(--burst-y)) scale(0.85);
    }

    80% {
        opacity: 0.35;
        transform: translate(calc(var(--burst-x) * 1.5), calc(var(--burst-y) * 1.5)) scale(0.55);
    }

    100% {
        opacity: 0;
        transform: translate(calc(var(--burst-x) * 2), calc(var(--burst-y) * 2)) scale(0.3);
    }
}

.airdrop-eth-icon svg {
    position: relative;
    z-index: 2;
}

.airdrop-title {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 0;
}

.airdrop-title-glow {
    font-size: 34px;
    font-weight: 900;
    background: linear-gradient(90deg, #06b6d4, #22d3ee, #0891b2, #06b6d4, #22d3ee);
    background-size: 300% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.15;
    letter-spacing: -0.5px;
    animation: airdropTitleShimmer 4s linear infinite;
    filter: drop-shadow(0 0 12px rgba(6,182,212, 0.3));
}

@keyframes airdropTitleShimmer {
    0% {
        background-position: 0% 50%;
    }

    100% {
        background-position: 300% 50%;
    }
}

.airdrop-title-sub {
    font-size: 15px;
    font-weight: 800;
    letter-spacing: 7px;
    text-transform: uppercase;
    background: linear-gradient(90deg, #00d4aa, #00b8ff, #a855f7, #00d4aa);
    background-size: 200% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: airdropSubShimmer 3s linear infinite;
}

@keyframes airdropSubShimmer {
    0% {
        background-position: 0% 50%;
    }

    100% {
        background-position: 200% 50%;
    }
}

.airdrop-desc {
    font-size: 12px;
    color: #9ca3af;
    line-height: 1.5;
    max-width: 320px;
    margin: 0 auto;
    letter-spacing: 0.2px;
}

.airdrop-desc strong {
    color: #22d3ee;
    font-weight: 700;
}

/* Stats / Feature Icons */
.airdrop-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin: 0;
    padding: 10px 0;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.04);
    flex-shrink: 0;
    width: 100%;
}

.airdrop-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.airdrop-stat-num {
    font-size: 17px;
    font-weight: 800;
    background: linear-gradient(135deg, #22d3ee 0%, #06b6d4 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: flex;
    align-items: center;
    justify-content: center;
    filter: drop-shadow(0 0 6px rgba(6,182,212, 0.25));
}

.airdrop-stat-label {
    font-size: 10px;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 700;
}

.airdrop-stat-divider {
    width: 1px;
    height: 28px;
    background: rgba(255, 255, 255, 0.06);
}

/* CTA Button */
.airdrop-cta {
    width: 100%;
    padding: 10px 12px;
    border: none;
    border-radius: 10px;
    background: linear-gradient(135deg, #06b6d4 0%, #22d3ee 50%, #06b6d4 100%);
    background-size: 200% 100%;
    color: #0b0e11;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.5px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s ease;
    box-shadow:
        0 4px 20px rgba(6,182,212, 0.3),
        0 0 40px rgba(6,182,212, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    margin: 0;
    flex-shrink: 0;
    animation: airdropCtaPulse 2.5s ease infinite;
}

@keyframes airdropCtaPulse {

    0%,
    100% {
        box-shadow: 0 4px 20px rgba(6,182,212, 0.3), 0 0 40px rgba(6,182,212, 0.1);
    }

    50% {
        box-shadow: 0 4px 30px rgba(6,182,212, 0.5), 0 0 60px rgba(6,182,212, 0.2);
    }
}

.airdrop-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 35px rgba(6,182,212, 0.5), 0 0 60px rgba(6,182,212, 0.2);
    background-position: 100% 50%;
}

.airdrop-cta:active {
    transform: translateY(0) scale(0.98);
}

.airdrop-footer-note {
    font-size: 10px;
    color: #475569;
    letter-spacing: 0.3px;
    margin: 0;
    flex-shrink: 0;
}

/* Popup scrollbar */
.airdrop-popup::-webkit-scrollbar {
    width: 3px;
}

.airdrop-popup::-webkit-scrollbar-track {
    background: transparent;
}

.airdrop-popup::-webkit-scrollbar-thumb {
    background: rgba(6,182,212, 0.2);
    border-radius: 3px;
}

/* ETH Icon Rings */
.airdrop-eth-ring {
    position: absolute;
    inset: -8px;
    border-radius: 50%;
    border: 2px solid transparent;
    border-top-color: rgba(6,182,212, 0.5);
    border-right-color: rgba(6,182,212, 0.2);
    animation: airdropRingSpin 3s linear infinite;
    filter: drop-shadow(0 0 4px rgba(6,182,212, 0.3));
}

.airdrop-eth-ring2 {
    inset: -14px;
    border-top-color: rgba(6,182,212, 0.3);
    border-right-color: rgba(6,182,212, 0.1);
    border-left-color: rgba(6,182,212, 0.15);
    animation-duration: 5s;
    animation-direction: reverse;
    filter: drop-shadow(0 0 6px rgba(6,182,212, 0.2));
}

@keyframes airdropRingSpin {
    to {
        transform: rotate(360deg);
    }
}

/* Countdown */
.airdrop-countdown {
    margin: 0;
    flex-shrink: 0;
    width: 100%;
}

.airdrop-countdown-label {
    font-size: 11px;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 2.5px;
    font-weight: 700;
    margin-bottom: 6px;
    text-shadow: 0 0 6px rgba(100, 116, 139, 0.3);
}

.airdrop-timer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.airdrop-timer-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 54px;
    padding: 8px 6px;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.airdrop-timer-num {
    font-size: 28px;
    font-weight: 800;
    background: linear-gradient(180deg, #ffffff 40%, #94a3b8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-variant-numeric: tabular-nums;
    line-height: 1.2;
    filter: drop-shadow(0 0 4px rgba(255, 255, 255, 0.15));
}

.airdrop-timer-label {
    font-size: 9px;
    color: #5e6673;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
    margin-top: 2px;
}

.airdrop-timer-sep {
    font-size: 24px;
    font-weight: 700;
    color: rgba(6,182,212, 0.5);
    line-height: 1;
    padding-bottom: 14px;
}

/* Winners Section */
.airdrop-winners-section {
    margin: 0;
    flex-shrink: 0;
    width: 100%;
}

.airdrop-winners-label {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 600;
    color: #848e9c;
    margin-bottom: 6px;
}

.airdrop-live-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #00d4aa;
    animation: airdropPulse 1.5s ease infinite;
}

.airdrop-live-text {
    font-size: 10px;
    font-weight: 700;
    color: #00d4aa;
    letter-spacing: 1px;
}

/* Winners Marquee */
.airdrop-winners-marquee {
    overflow: hidden;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.04);
    padding: 8px 0;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.airdrop-winners-track {
    display: flex;
    gap: 12px;
    will-change: transform;
    padding: 0 8px;
}

.airdrop-winner-card {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    min-width: 200px;
    transition: transform 0.3s ease;
}

.airdrop-winner-card:hover {
    transform: scale(1.02);
}

.airdrop-winner-new {
    animation: airdropWinnerIn 0.4s ease;
}

@keyframes airdropWinnerIn {
    from {
        opacity: 0;
        transform: translateY(8px) scale(0.95);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.airdrop-winner-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
    color: #fff;
    flex-shrink: 0;
}

.airdrop-winner-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.airdrop-winner-addr {
    font-size: 12px;
    color: #eaecef;
    font-weight: 600;
    font-family: 'Courier New', monospace;
    white-space: nowrap;
}

.airdrop-winner-amount {
    font-size: 11px;
    color: #00d4aa;
    font-weight: 700;
}

.airdrop-winner-time {
    font-size: 10px;
    color: #5e6673;
    white-space: nowrap;
    margin-left: auto;
    flex-shrink: 0;
}

/* Progress Bar */
.airdrop-progress-wrap {
    margin: 0;
    flex-shrink: 0;
    width: 100%;
}

.airdrop-progress-bar {
    height: 8px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 6px;
}

.airdrop-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #06b6d4, #22d3ee);
    border-radius: 8px;
    transition: width 0.5s ease;
    position: relative;
}

.airdrop-progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: airdropProgressShine 2s ease infinite;
}

@keyframes airdropProgressShine {
    0% {
        transform: translateX(-100%);
    }

    100% {
        transform: translateX(100%);
    }
}

.airdrop-progress-text {
    font-size: 11px;
    color: #06b6d4;
    font-weight: 600;
    text-align: center;
}

/* Particles */
.airdrop-particles {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    border-radius: 24px;
    z-index: 0;
}

.airdrop-particle {
    position: absolute;
    bottom: -10px;
    border-radius: 50%;
    background: rgba(6,182,212, 0.3);
    animation: airdropFloat linear infinite;
    opacity: 0;
}

@keyframes airdropFloat {
    0% {
        transform: translateY(0) scale(1);
        opacity: 0;
    }

    10% {
        opacity: 0.6;
    }

    90% {
        opacity: 0.2;
    }

    100% {
        transform: translateY(-500px) scale(0.3);
        opacity: 0;
    }
}

/* Responsive */
@media (max-width: 380px) {
    .airdrop-popup {
        padding: 10px 10px 8px;
    }

    .airdrop-title-glow {
        font-size: 24px;
    }

    .airdrop-timer-block {
        min-width: 44px;
        padding: 6px 4px;
    }

    .airdrop-timer-num {
        font-size: 18px;
    }

    .airdrop-winner-card {
        min-width: 170px;
        padding: 6px 8px;
    }
}

/* =========================================
   ROMANTIC LOVE NODE POPUP
   ========================================= */
.love-overlay {
    position: fixed;
    inset: 0;
    z-index: 99998;
    background: rgba(0, 0, 0, 0.82);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.love-overlay.love-visible {
    opacity: 1;
    pointer-events: auto;
}

.love-overlay.love-hiding {
    opacity: 0;
    pointer-events: none;
}

.love-popup {
    position: relative;
    width: 100%;
    max-width: 400px;
    height: 92vh;
    max-height: 92vh;
    overflow-y: auto;
    background:
        linear-gradient(180deg, rgba(10, 2, 8, 0.55) 0%, rgba(10, 2, 8, 0.3) 30%, rgba(10, 2, 8, 0.25) 60%, rgba(10, 2, 8, 0.5) 100%),
        url('love-bg.png') center/cover no-repeat;
    border-radius: 22px;
    border: 1px solid rgba(255, 40, 80, 0.25);
    box-shadow:
        0 0 50px rgba(255, 20, 60, 0.15),
        0 20px 60px rgba(0, 0, 0, 0.6);
    padding: 16px 14px 14px;
    text-align: center;
    overflow-x: hidden;
    transform: scale(0.85) translateY(30px);
    animation: lovePopIn 0.5s 0.3s ease forwards;
}

@keyframes lovePopIn {
    to {
        transform: scale(1) translateY(0);
    }
}

.love-overlay.love-hiding .love-popup {
    transform: scale(0.85) translateY(30px);
    transition: transform 0.4s ease;
}

.love-popup::-webkit-scrollbar {
    width: 3px;
}

.love-popup::-webkit-scrollbar-thumb {
    background: rgba(255, 40, 80, 0.3);
    border-radius: 3px;
}

/* Close Button */
.love-close {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 10;
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    color: #848e9c;
    font-size: 20px;
    line-height: 32px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.love-close:hover {
    background: rgba(255, 40, 80, 0.25);
    color: #fff;
    transform: rotate(90deg);
}

/* Particles */
.love-particles {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    border-radius: 22px;
    z-index: 0;
}

.love-heart-particle {
    position: absolute;
    bottom: -20px;
    color: rgba(255, 40, 80, 0.6);
    animation: loveFloat linear infinite;
    pointer-events: none;
}

@keyframes loveFloat {
    0% {
        transform: translateY(0) scale(1) rotate(0deg);
        opacity: 0;
    }

    10% {
        opacity: 0.7;
    }

    90% {
        opacity: 0.15;
    }

    100% {
        transform: translateY(-600px) scale(0.3) rotate(45deg);
        opacity: 0;
    }
}

/* Header */
.love-header {
    position: relative;
    z-index: 1;
    margin-bottom: 10px;
    padding-top: 6px;
}

.love-main-title {
    font-size: 22px;
    font-weight: 900;
    letter-spacing: 5px;
    text-transform: uppercase;
    background: linear-gradient(135deg, #ff4466 0%, #ff6688 30%, #ff2244 60%, #cc1133 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
    margin: 0 0 4px;
    text-shadow: none;
    filter: drop-shadow(0 0 12px rgba(255, 40, 60, 0.4));
}

.love-sub-title {
    font-size: 20px;
    font-weight: 900;
    letter-spacing: 8px;
    text-transform: uppercase;
    background: linear-gradient(135deg, #ff2244 0%, #ff6688 50%, #ff2244 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0;
    line-height: 1.2;
    filter: drop-shadow(0 0 10px rgba(255, 40, 60, 0.3));
}

/* Artwork section removed - background image used instead */

/* Table */
.love-table {
    position: relative;
    z-index: 1;
    background: rgba(15, 5, 15, 0.2);
    border: 1px solid rgba(255, 40, 80, 0.12);
    border-radius: 14px;
    overflow: hidden;
    margin-top: 14px;
    margin-bottom: 14px;
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
}

.love-table-header {
    display: grid;
    grid-template-columns: 1.2fr 1.3fr 1fr;
    padding: 10px 12px;
    background: rgba(100, 40, 120, 0.08);
    border-bottom: 1px solid rgba(255, 160, 60, 0.25);
}

.love-th {
    font-size: 9.5px;
    font-weight: 700;
    color: rgba(255, 150, 170, 0.75);
    letter-spacing: 1px;
    text-transform: uppercase;
    text-align: center;
}

.love-table-body {
    display: flex;
    flex-direction: column;
}

.love-table-row {
    display: grid;
    grid-template-columns: 1.2fr 1.3fr 1fr;
    padding: 10px 12px;
    border-bottom: 1px solid rgba(255, 160, 60, 0.18);
    transition: background 0.2s ease;
}

.love-table-row:last-child {
    border-bottom: none;
}

.love-table-row:hover {
    background: rgba(255, 40, 80, 0.08);
}

.love-td {
    font-size: 11px;
    text-align: center;
    font-weight: 600;
}

.love-td-name {
    color: #ff8899;
    font-weight: 700;
    letter-spacing: 0.3px;
    font-size: 11.5px;
}

.love-td-amount {
    color: #c8c8c8;
    font-family: 'Inter', monospace;
    font-size: 11px;
}

.love-td-reward {
    color: #ff4466;
    font-weight: 800;
    font-size: 12.5px;
}

/* Quote */
.love-quote {
    position: relative;
    z-index: 1;
    font-size: 12px;
    color: #d4b0b8;
    line-height: 1.65;
    font-style: italic;
    padding: 12px 16px;
    margin-bottom: 16px;
    background: rgba(15, 5, 15, 0.55);
    border-radius: 10px;
    border: 1px solid rgba(255, 40, 80, 0.1);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
}

/* CTA Button */
.love-cta {
    position: relative;
    z-index: 1;
    width: 100%;
    padding: 14px 20px;
    border: none;
    border-radius: 12px;
    background: linear-gradient(135deg, #ff2244 0%, #ff4466 40%, #cc1133 100%);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(255, 34, 68, 0.25);
    letter-spacing: 0.3px;
}

.love-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 28px rgba(255, 34, 68, 0.45);
}

.love-cta:active {
    transform: translateY(0) scale(0.98);
}

/* Responsive */
@media (max-width: 380px) {
    .love-popup {
        padding: 14px 10px 12px;
    }

    .love-main-title {
        font-size: 16px;
        letter-spacing: 3px;
    }

    .love-sub-title {
        font-size: 14px;
        letter-spacing: 5px;
    }



    .love-td,
    .love-td-name {
        font-size: 10px;
    }

    .love-td-amount {
        font-size: 9px;
    }

    .love-td-reward {
        font-size: 11px;
    }
}

/* =========================================
   VIP RECHARGE REWARD EVENT POPUP
   ========================================= */
.vip-overlay {
    position: fixed;
    inset: 0;
    z-index: 99997;
    background: rgba(0, 0, 0, 0.85);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.vip-overlay.vip-visible {
    opacity: 1;
    pointer-events: auto;
}

.vip-overlay.vip-hiding {
    opacity: 0;
    pointer-events: none;
}

.vip-popup {
    position: relative;
    width: 100%;
    max-width: 400px;
    height: 92vh;
    max-height: 92vh;
    overflow-y: auto;
    background:
        linear-gradient(180deg, rgba(4, 12, 30, 0.68) 0%, rgba(2, 8, 22, 0.75) 50%, rgba(4, 12, 30, 0.70) 100%),
        url('vip-bg.png') center/cover no-repeat;
    border-radius: 22px;
    border: 1px solid rgba(var(--primary-rgb), 0.2);
    box-shadow:
        0 0 60px rgba(var(--primary-rgb), 0.1),
        0 0 120px rgba(var(--primary-dark-rgb), 0.08),
        0 25px 80px rgba(0, 0, 0, 0.7),
        inset 0 0 80px rgba(0, 10, 30, 0.3);
    padding: 16px 14px 14px;
    text-align: center;
    overflow-x: hidden;
    transform: scale(0.85) translateY(30px);
    animation: vipPopIn 0.5s 0.3s ease forwards;
}

@keyframes vipPopIn {
    to {
        transform: scale(1) translateY(0);
    }
}

.vip-overlay.vip-hiding .vip-popup {
    transform: scale(0.85) translateY(30px);
    transition: transform 0.4s ease;
}

.vip-popup::-webkit-scrollbar {
    width: 3px;
}

.vip-popup::-webkit-scrollbar-thumb {
    background: rgba(var(--primary-rgb), 0.3);
    border-radius: 3px;
}

/* Scan lines overlay */
.vip-scanlines {
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(0deg,
            transparent,
            transparent 2px,
            rgba(var(--primary-rgb), 0.015) 2px,
            rgba(var(--primary-rgb), 0.015) 4px);
    pointer-events: none;
    border-radius: 22px;
    z-index: 0;
}

/* Close */
.vip-close {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 10;
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    color: #64748b;
    font-size: 20px;
    line-height: 32px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.vip-close:hover {
    background: rgba(var(--primary-rgb), 0.15);
    color: #fff;
    transform: rotate(90deg);
}

/* Particles */
.vip-particles {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    border-radius: 22px;
    z-index: 0;
}

.vip-particle {
    position: absolute;
    bottom: -10px;
    background: rgba(var(--primary-rgb), 0.6);
    border-radius: 50%;
    animation: vipFloat linear infinite;
    pointer-events: none;
    box-shadow: 0 0 6px rgba(var(--primary-rgb), 0.4);
}

@keyframes vipFloat {
    0% {
        transform: translateY(0) scale(1);
        opacity: 0;
    }

    10% {
        opacity: 0.8;
    }

    90% {
        opacity: 0.1;
    }

    100% {
        transform: translateY(-500px) scale(0.2);
        opacity: 0;
    }
}

/* Header */
.vip-header {
    position: relative;
    z-index: 1;
    margin-bottom: 8px;
}

/* Flying ETH Logos Galaxy */
.vip-eth-galaxy {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
    border-radius: 16px;
}

.vip-fly-eth {
    position: absolute;
    pointer-events: none;
    filter: drop-shadow(0 0 10px rgba(var(--primary-rgb), 0.9)) drop-shadow(0 0 22px rgba(var(--primary-rgb), 0.5));
}

.vip-fly-eth path {
    fill: rgba(var(--primary-rgb), 0.18);
}

.vip-title {
    font-size: 24px;
    font-weight: 900;
    letter-spacing: 4px;
    text-transform: uppercase;
    background: linear-gradient(90deg, var(--primary), var(--primary-light), var(--primary));
    background-size: 200% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: vipTitleShimmer 3s linear infinite;
    margin: 0 0 2px;
    line-height: 1.1;
    filter: drop-shadow(0 0 10px rgba(var(--primary-rgb), 0.4));
}

@keyframes vipTitleShimmer {
    0% {
        background-position: 0% 50%;
    }

    100% {
        background-position: 200% 50%;
    }
}

.vip-subtitle {
    font-size: 15px;
    font-weight: 800;
    letter-spacing: 3px;
    text-transform: uppercase;
    background: linear-gradient(90deg, #ff1744, #ff5252, #ff8a80, #ff1744);
    background-size: 200% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: vipSubShimmer 4s linear infinite;
    margin: 0;
    line-height: 1.3;
}

@keyframes vipSubShimmer {
    0% {
        background-position: 0% 50%;
    }

    100% {
        background-position: 200% 50%;
    }
}

/* Table */
.vip-table {
    position: relative;
    z-index: 1;
    background: rgba(0, 20, 40, 0.4);
    border: 1px solid rgba(var(--primary-rgb), 0.12);
    border-radius: 14px;
    overflow: hidden;
    margin-bottom: 10px;
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.vip-table-header {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr 1fr;
    padding: 8px 12px;
    background: rgba(var(--primary-rgb), 0.05);
    border-bottom: 1px solid rgba(var(--primary-rgb), 0.15);
}

.vip-th {
    font-size: 10px;
    font-weight: 800;
    color: rgba(var(--primary-rgb), 0.7);
    letter-spacing: 2px;
    text-transform: uppercase;
    text-align: center;
}

.vip-table-body {
    display: flex;
    flex-direction: column;
}

.vip-table-row {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr 1fr;
    padding: 7px 12px;
    border-bottom: 1px solid rgba(var(--primary-rgb), 0.06);
    transition: background 0.2s ease;
}

.vip-table-row:last-child {
    border-bottom: none;
}

.vip-table-row:hover {
    background: rgba(var(--primary-rgb), 0.05);
}

.vip-td {
    font-size: 12px;
    text-align: center;
    font-weight: 600;
}

.vip-td-level {
    font-weight: 800;
    letter-spacing: 1px;
}

.vip-tier-low .vip-td-level {
    color: #cfd8dc;
}

.vip-tier-mid .vip-td-level {
    color: #22d3ee;
    text-shadow: 0 0 8px rgba(34,211,238, 0.3);
}

.vip-tier-high .vip-td-level {
    color: #ff5252;
    font-size: 13px;
    text-shadow: 0 0 10px rgba(255, 82, 82, 0.4);
}

.vip-td-recharge {
    color: #e0e0e0;
    font-family: 'Inter', monospace;
    font-size: 11.5px;
}

.vip-tier-high .vip-td-recharge {
    color: #e0e0e0;
}

.vip-td-reward {
    color: var(--primary);
    font-weight: 800;
    font-size: 12.5px;
    text-shadow: 0 0 6px rgba(var(--primary-rgb), 0.25);
}

.vip-tier-high .vip-td-reward {
    color: var(--primary);
    font-size: 13px;
    font-weight: 900;
    text-shadow: 0 0 10px rgba(var(--primary-rgb), 0.4);
}

/* Rules */
.vip-rules {
    position: relative;
    z-index: 1;
    margin-bottom: 10px;
    padding: 8px 12px;
    background: rgba(0, 20, 40, 0.4);
    border: 1px solid rgba(var(--primary-rgb), 0.1);
    border-radius: 10px;
    text-align: left;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
}

.vip-rules-title {
    font-size: 11px;
    font-weight: 800;
    color: rgba(var(--primary-rgb), 0.7);
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 5px;
    text-align: center;
}

.vip-rules-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.vip-rules-list li {
    font-size: 10px;
    color: rgba(200, 210, 220, 0.8);
    line-height: 1.45;
    padding-left: 14px;
    position: relative;
    margin-bottom: 1px;
}

.vip-rules-list li::before {
    content: '•';
    position: absolute;
    left: 2px;
    color: rgba(var(--primary-rgb), 0.5);
}

/* CTA */
.vip-cta {
    position: relative;
    z-index: 1;
    width: 100%;
    padding: 12px 18px;
    border: none;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 50%, var(--primary-dark) 100%);
    color: #001a2e;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 1px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s ease;
    box-shadow:
        0 4px 20px rgba(var(--primary-rgb), 0.3),
        0 0 40px rgba(var(--primary-rgb), 0.1);
    animation: vipCtaPulse 2.5s ease infinite;
}

@keyframes vipCtaPulse {

    0%,
    100% {
        box-shadow: 0 4px 20px rgba(var(--primary-rgb), 0.3), 0 0 40px rgba(var(--primary-rgb), 0.1);
    }

    50% {
        box-shadow: 0 4px 30px rgba(var(--primary-rgb), 0.5), 0 0 60px rgba(var(--primary-rgb), 0.2);
    }
}

.vip-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 35px rgba(var(--primary-rgb), 0.5);
}

.vip-cta:active {
    transform: translateY(0) scale(0.98);
}

/* Responsive */
@media (max-width: 380px) {
    .vip-popup {
        padding: 18px 10px 16px;
    }

    .vip-title {
        font-size: 18px;
        letter-spacing: 2px;
    }

    .vip-subtitle {
        font-size: 12px;
        letter-spacing: 2px;
    }

    .vip-td,
    .vip-td-level {
        font-size: 11px;
    }

    .vip-td-recharge {
        font-size: 10px;
    }
}

/* ===== ETH GALAXY FLOATING COINS (injected by server) ===== */
.eth-galaxy {
    position: absolute;
    inset: -10px;
    overflow: visible;
    pointer-events: none;
    z-index: 1;
}

.eth-float {
    position: absolute;
    opacity: 0.55;
    will-change: transform, opacity;
}

.eth-float svg {
    width: 100%;
    height: 100%;
    display: block;
    filter: drop-shadow(0 0 6px rgba(59, 130, 246, 0.5));
}

/* Large variant (hero-banner) */
.eth-galaxy--lg .eth-f1 {
    top: 10%;
    left: 5%;
    animation: ethFlyNE 25s linear infinite, ethPulse 8s ease-in-out infinite;
}

.eth-galaxy--lg .eth-f2 {
    top: 70%;
    right: 8%;
    animation: ethFlySW 32s linear infinite, ethPulse 10s ease-in-out infinite;
    animation-delay: 2s;
}

.eth-galaxy--lg .eth-f3 {
    top: 30%;
    right: 30%;
    animation: ethFlyNW 38s linear infinite, ethPulse 12s ease-in-out infinite;
    animation-delay: 4s;
}

.eth-galaxy--lg .eth-f4 {
    top: 80%;
    left: 20%;
    animation: ethFlySE 28s linear infinite, ethPulse 9s ease-in-out infinite;
    animation-delay: 6s;
}

.eth-galaxy--lg .eth-f5 {
    top: 50%;
    right: 15%;
    animation: ethFlyZigzag 42s linear infinite, ethPulse 11s ease-in-out infinite;
    animation-delay: 3s;
}

.eth-galaxy--lg .eth-f6 {
    top: 15%;
    right: 50%;
    animation: ethFlyCircle 22s linear infinite, ethPulse 8s ease-in-out infinite;
    animation-delay: 5s;
}

.eth-galaxy--lg .eth-f7 {
    top: 85%;
    right: 45%;
    animation: ethFlyNE 35s linear infinite reverse, ethPulse 10s ease-in-out infinite;
    animation-delay: 7s;
}

.eth-galaxy--lg .eth-f8 {
    top: 40%;
    left: 8%;
    animation: ethFlySW 30s linear infinite reverse, ethPulse 9s ease-in-out infinite;
    animation-delay: 1s;
}

.eth-galaxy--lg .eth-f9 {
    top: 60%;
    right: 55%;
    animation: ethFlyNW 45s linear infinite, ethPulse 12s ease-in-out infinite;
    animation-delay: 8s;
}

.eth-galaxy--lg .eth-f10 {
    top: 5%;
    right: 60%;
    animation: ethFlySE 33s linear infinite reverse, ethPulse 10s ease-in-out infinite;
    animation-delay: 4s;
}

.eth-galaxy--lg .eth-f11 {
    top: 90%;
    right: 20%;
    animation: ethFlyZigzag 27s linear infinite reverse, ethPulse 8s ease-in-out infinite;
    animation-delay: 6s;
}

.eth-galaxy--lg .eth-f12 {
    top: 45%;
    right: 65%;
    animation: ethFlyCircle 40s linear infinite reverse, ethPulse 11s ease-in-out infinite;
    animation-delay: 3s;
}

/* Medium variant (journey, news, balance, promo) */
.eth-galaxy--md .eth-f1 {
    top: 10%;
    right: 8%;
    animation: ethFlyNE 28s linear infinite, ethPulse 9s ease-in-out infinite;
}

.eth-galaxy--md .eth-f2 {
    top: 55%;
    left: 5%;
    animation: ethFlySW 35s linear infinite, ethPulse 10s ease-in-out infinite;
    animation-delay: 3s;
}

.eth-galaxy--md .eth-f3 {
    top: 25%;
    right: 25%;
    animation: ethFlyNW 30s linear infinite reverse, ethPulse 12s ease-in-out infinite;
    animation-delay: 5s;
}

.eth-galaxy--md .eth-f4 {
    top: 75%;
    right: 15%;
    animation: ethFlySE 25s linear infinite, ethPulse 8s ease-in-out infinite;
    animation-delay: 2s;
}

.eth-galaxy--md .eth-f5 {
    top: 40%;
    left: 15%;
    animation: ethFlyZigzag 38s linear infinite reverse, ethPulse 11s ease-in-out infinite;
    animation-delay: 7s;
}

.eth-galaxy--md .eth-f6 {
    top: 80%;
    right: 30%;
    animation: ethFlyCircle 32s linear infinite, ethPulse 10s ease-in-out infinite;
    animation-delay: 4s;
}

.eth-galaxy--md .eth-f7 {
    top: 5%;
    right: 40%;
    animation: ethFlyNE 42s linear infinite reverse, ethPulse 12s ease-in-out infinite;
    animation-delay: 6s;
}

.eth-galaxy--md .eth-f8 {
    top: 60%;
    right: 35%;
    animation: ethFlySW 27s linear infinite, ethPulse 9s ease-in-out infinite;
    animation-delay: 1s;
}

/* Small variant (ticker-card, action-item) */
.eth-galaxy--sm .eth-f1 {
    top: 15%;
    right: 8%;
    animation: ethFlyNE 22s linear infinite, ethPulse 8s ease-in-out infinite;
}

.eth-galaxy--sm .eth-f2 {
    top: 60%;
    left: 5%;
    animation: ethFlySW 30s linear infinite reverse, ethPulse 9s ease-in-out infinite;
    animation-delay: 2s;
}

.eth-galaxy--sm .eth-f3 {
    top: 35%;
    right: 20%;
    animation: ethFlyNW 26s linear infinite, ethPulse 10s ease-in-out infinite;
    animation-delay: 4s;
}

.eth-galaxy--sm .eth-f4 {
    top: 75%;
    right: 12%;
    animation: ethFlySE 34s linear infinite reverse, ethPulse 8s ease-in-out infinite;
    animation-delay: 3s;
}

.eth-galaxy--sm .eth-f5 {
    top: 10%;
    left: 15%;
    animation: ethFlyZigzag 38s linear infinite, ethPulse 11s ease-in-out infinite;
    animation-delay: 5s;
}

.eth-galaxy--sm .eth-f6 {
    top: 50%;
    right: 25%;
    animation: ethFlyCircle 28s linear infinite reverse, ethPulse 9s ease-in-out infinite;
    animation-delay: 1s;
}

/* === ETH ORBITAL KEYFRAMES - Seperti planet mengelilingi poros === */

/* Orbit 1 - Ellipse horizontal (a=640, b=280) */
@keyframes ethFlyNE {
    0% {
        transform: translate(640px, 0) scale(1.2);
    }

    12.5% {
        transform: translate(453px, 198px) scale(1.1);
    }

    25% {
        transform: translate(0, 280px) scale(0.88);
    }

    37.5% {
        transform: translate(-453px, 198px) scale(0.78);
    }

    50% {
        transform: translate(-640px, 0) scale(0.75);
    }

    62.5% {
        transform: translate(-453px, -198px) scale(0.78);
    }

    75% {
        transform: translate(0, -280px) scale(0.88);
    }

    87.5% {
        transform: translate(453px, -198px) scale(1.1);
    }

    100% {
        transform: translate(640px, 0) scale(1.2);
    }
}

/* Orbit 2 - Ellipse vertikal (a=320, b=560) */
@keyframes ethFlySW {
    0% {
        transform: translate(320px, 0) scale(1.18);
    }

    12.5% {
        transform: translate(226px, 396px) scale(1.05);
    }

    25% {
        transform: translate(0, 560px) scale(0.85);
    }

    37.5% {
        transform: translate(-226px, 396px) scale(0.75);
    }

    50% {
        transform: translate(-320px, 0) scale(0.75);
    }

    62.5% {
        transform: translate(-226px, -396px) scale(0.85);
    }

    75% {
        transform: translate(0, -560px) scale(1.05);
    }

    87.5% {
        transform: translate(226px, -396px) scale(1.12);
    }

    100% {
        transform: translate(320px, 0) scale(1.18);
    }
}

/* Orbit 3 - Ellipse miring 30° (a=520, b=360) */
@keyframes ethFlyNW {
    0% {
        transform: translate(450px, 260px) scale(1.2);
    }

    12.5% {
        transform: translate(192px, 408px) scale(1.05);
    }

    25% {
        transform: translate(-180px, 312px) scale(0.85);
    }

    37.5% {
        transform: translate(-450px, 40px) scale(0.75);
    }

    50% {
        transform: translate(-450px, -260px) scale(0.75);
    }

    62.5% {
        transform: translate(-192px, -408px) scale(0.85);
    }

    75% {
        transform: translate(180px, -312px) scale(1.05);
    }

    87.5% {
        transform: translate(450px, -40px) scale(1.12);
    }

    100% {
        transform: translate(450px, 260px) scale(1.2);
    }
}

/* Orbit 4 - Ellipse miring -30° (a=480, b=400) */
@keyframes ethFlySE {
    0% {
        transform: translate(416px, -240px) scale(1.2);
    }

    12.5% {
        transform: translate(432px, 72px) scale(1.1);
    }

    25% {
        transform: translate(200px, 346px) scale(0.88);
    }

    37.5% {
        transform: translate(-152px, 416px) scale(0.78);
    }

    50% {
        transform: translate(-416px, 240px) scale(0.75);
    }

    62.5% {
        transform: translate(-432px, -72px) scale(0.78);
    }

    75% {
        transform: translate(-200px, -346px) scale(0.88);
    }

    87.5% {
        transform: translate(152px, -416px) scale(1.1);
    }

    100% {
        transform: translate(416px, -240px) scale(1.2);
    }
}

/* Orbit 5 - Ellipse besar miring 15° (a=720, b=440) */
@keyframes ethFlyZigzag {
    0% {
        transform: translate(696px, 187px) scale(1.2);
    }

    12.5% {
        transform: translate(408px, 432px) scale(1.05);
    }

    25% {
        transform: translate(-112px, 425px) scale(0.85);
    }

    37.5% {
        transform: translate(-576px, 168px) scale(0.75);
    }

    50% {
        transform: translate(-696px, -187px) scale(0.72);
    }

    62.5% {
        transform: translate(-408px, -432px) scale(0.85);
    }

    75% {
        transform: translate(112px, -425px) scale(1.05);
    }

    87.5% {
        transform: translate(576px, -168px) scale(1.15);
    }

    100% {
        transform: translate(696px, 187px) scale(1.2);
    }
}

/* Orbit 6 - Lingkaran sempurna (r=520) */
@keyframes ethFlyCircle {
    0% {
        transform: translate(520px, 0) scale(1.2);
    }

    12.5% {
        transform: translate(368px, 368px) scale(1.05);
    }

    25% {
        transform: translate(0, 520px) scale(0.85);
    }

    37.5% {
        transform: translate(-368px, 368px) scale(0.75);
    }

    50% {
        transform: translate(-520px, 0) scale(0.75);
    }

    62.5% {
        transform: translate(-368px, -368px) scale(0.85);
    }

    75% {
        transform: translate(0, -520px) scale(1.05);
    }

    87.5% {
        transform: translate(368px, -368px) scale(1.12);
    }

    100% {
        transform: translate(520px, 0) scale(1.2);
    }
}

/* Opacity pulse perlahan untuk efek kedalaman galaxy */
@keyframes ethPulse {
    0% {
        opacity: 0.35;
    }

    50% {
        opacity: 0.7;
    }

    100% {
        opacity: 0.35;
    }
}

/* ===== DECORATIVE PAGE GLOW FRAMES ===== */
/* Top U-frame: borders on left, right, bottom — open at top */