/* ==============================================================================
   CPCOIN MASTER STYLESHEET — ULTRA-PREMIUM CRYPTO MOBILE & DESKTOP SUITE
   Colors:
     Deep Navy: #07152F | Royal Blue: #153F91 | Indigo: #302A79
     Purple: #681E83    | Neon Cyan: #00E5FF  | Neon Pink: #FF3FA4
     Mint Green: #21E6B8 | White: #FFFFFF     | Muted: #AAB7D4
   ============================================================================== */

:root {
    --bg-dark: #07152F;
    --bg-card: rgba(21, 63, 145, 0.22);
    --bg-card-hover: rgba(21, 63, 145, 0.35);
    --bg-surface: rgba(7, 21, 47, 0.75);
    
    --royal-blue: #153F91;
    --indigo: #302A79;
    --purple: #681E83;
    --neon-cyan: #00E5FF;
    --neon-pink: #FF3FA4;
    --mint-green: #21E6B8;
    --white: #FFFFFF;
    --text-muted: #AAB7D4;
    --text-dim: #7B8BAF;
    
    --border-subtle: rgba(0, 229, 255, 0.12);
    --border-card: rgba(21, 63, 145, 0.4);
    --border-glow: rgba(0, 229, 255, 0.45);
    --border-pink: rgba(255, 63, 164, 0.4);
    
    --font-main: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-heading: 'Space Grotesk', var(--font-main);
    
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --radius-full: 9999px;
    
    --shadow-card: 0 10px 30px rgba(0, 0, 0, 0.4);
    --shadow-glow: 0 0 25px rgba(0, 229, 255, 0.25);
    --shadow-pink: 0 0 30px rgba(255, 63, 164, 0.35);
}

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

html {
    scroll-behavior: smooth;
}

body.crypto-theme {
    background-color: var(--bg-dark);
    background-image: 
        radial-gradient(circle at 15% 15%, rgba(104, 30, 131, 0.28) 0%, transparent 45%),
        radial-gradient(circle at 85% 25%, rgba(21, 63, 145, 0.35) 0%, transparent 50%),
        radial-gradient(circle at 50% 85%, rgba(48, 42, 121, 0.3) 0%, transparent 55%),
        linear-gradient(180deg, #07152F 0%, #050E22 100%);
    background-attachment: fixed;
    color: var(--white);
    font-family: var(--font-main);
    min-height: 100vh;
    overflow-x: hidden;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
}

/* ==============================================================================
   RESPONSIVE APP CONTAINER
   ============================================================================== */
.app-wrapper {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
    padding-bottom: 90px;
    background: rgba(7, 21, 47, 0.65);
    box-shadow: 0 0 60px rgba(0, 0, 0, 0.6);
}

@media (max-width: 768px) {
    .app-wrapper {
        max-width: 100%;
        padding-bottom: 85px;
        box-shadow: none;
    }
}

/* ==============================================================================
   HEADER & TOPBAR
   ============================================================================== */
.app-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(7, 21, 47, 0.88);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-subtle);
    padding: 14px 20px;
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1100px;
    margin: 0 auto;
    width: 100%;
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--white);
}

.logo-coin-icon {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-full);
    background: linear-gradient(135deg, var(--neon-pink), var(--purple), var(--royal-blue));
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.9rem;
    color: var(--white);
    box-shadow: 0 0 16px rgba(255, 63, 164, 0.55);
    border: 1.5px solid rgba(255, 255, 255, 0.3);
}

.logo-text {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.35rem;
    letter-spacing: 0.5px;
}

.logo-text span {
    background: linear-gradient(90deg, var(--neon-cyan), var(--mint-green));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

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

.user-balance-pill {
    background: rgba(21, 63, 145, 0.4);
    border: 1px solid var(--border-glow);
    border-radius: var(--radius-full);
    padding: 6px 14px;
    font-size: 0.8rem;
    display: flex;
    gap: 12px;
    font-weight: 600;
    backdrop-filter: blur(10px);
    box-shadow: 0 0 15px rgba(0, 229, 255, 0.15);
}

.pill-coin {
    color: var(--neon-cyan);
    display: flex;
    align-items: center;
    gap: 4px;
}

.pill-usdt {
    color: var(--mint-green);
    display: flex;
    align-items: center;
    gap: 4px;
}

.header-icon-btn {
    position: relative;
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-full);
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.2s ease;
}

.header-icon-btn:hover {
    color: var(--neon-cyan);
    border-color: var(--neon-cyan);
    background: rgba(0, 229, 255, 0.15);
    box-shadow: 0 0 12px rgba(0, 229, 255, 0.3);
}

.notif-badge {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 8px;
    height: 8px;
    background: var(--neon-pink);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--neon-pink);
}

/* ==============================================================================
   BUTTONS & TYPOGRAPHY
   ============================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    border-radius: var(--radius-md);
    padding: 10px 22px;
    cursor: pointer;
    border: none;
    text-decoration: none;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    font-size: 0.9rem;
    font-family: var(--font-main);
    gap: 8px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--royal-blue), var(--purple), var(--neon-pink));
    color: var(--white);
    box-shadow: 0 6px 20px rgba(255, 63, 164, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(255, 63, 164, 0.55);
    filter: brightness(1.08);
}

.btn-secondary {
    background: rgba(21, 63, 145, 0.7);
    color: var(--white);
    border: 1px solid var(--border-card);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: var(--royal-blue);
    border-color: var(--neon-cyan);
    transform: translateY(-2px);
}

.btn-outline {
    background: rgba(0, 229, 255, 0.05);
    border: 1px solid var(--border-glow);
    color: var(--neon-cyan);
}

.btn-outline:hover {
    background: rgba(0, 229, 255, 0.15);
    box-shadow: 0 0 18px rgba(0, 229, 255, 0.35);
    transform: translateY(-2px);
}

.btn-success {
    background: linear-gradient(135deg, #159178, var(--mint-green));
    color: #07152F;
    font-weight: 700;
}

.btn-warning {
    background: linear-gradient(135deg, #FFB800, #FF8C00);
    color: #07152F;
    font-weight: 700;
}

.btn-danger {
    background: linear-gradient(135deg, #FF334B, #C21328);
    color: var(--white);
}

.btn-sm { padding: 6px 14px; font-size: 0.82rem; border-radius: var(--radius-sm); }
.btn-xs { padding: 4px 10px; font-size: 0.72rem; border-radius: var(--radius-sm); }
.btn-lg { padding: 14px 28px; font-size: 1.05rem; border-radius: var(--radius-lg); font-weight: 700; }
.btn-block { width: 100%; }

/* Form inputs */
.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;
    margin-bottom: 7px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-muted);
}

.form-control {
    width: 100%;
    background: rgba(7, 21, 47, 0.7);
    border: 1px solid var(--border-card);
    border-radius: var(--radius-md);
    padding: 12px 16px;
    color: var(--white);
    font-family: var(--font-main);
    font-size: 0.92rem;
    transition: all 0.2s ease;
}

.form-control:focus {
    outline: none;
    border-color: var(--neon-cyan);
    box-shadow: 0 0 16px rgba(0, 229, 255, 0.3);
    background: rgba(15, 35, 75, 0.7);
}

.form-control-sm { padding: 8px 12px; font-size: 0.82rem; }
.form-hint { font-size: 0.75rem; color: var(--text-dim); margin-top: 5px; display: block; }

.form-row { display: flex; gap: 14px; }
.col-6 { flex: 1; min-width: 0; }
.col-8 { flex: 2; min-width: 0; }
.col-4 { flex: 1; min-width: 0; }
.flex-bottom { display: flex; align-items: flex-end; }
.flex-between { display: flex; justify-content: space-between; align-items: center; }

/* Main content wrapper */
.main-content {
    padding: 24px 20px;
    flex: 1;
}

@media (max-width: 768px) {
    .main-content {
        padding: 16px 14px;
    }
}

/* ==============================================================================
   LANDING PAGE — HERO SECTION (BEAUTIFUL 3D COIN + DUAL LAYOUT)
   ============================================================================== */
.landing-page {
    display: flex;
    flex-direction: column;
    gap: 48px;
}

.hero-section {
    position: relative;
    padding: 40px 10px 20px;
    display: grid;
    grid-template-columns: 1fr;
    align-items: center;
    gap: 30px;
    text-align: center;
    overflow: visible;
}

@media (min-width: 768px) {
    .hero-section {
        grid-template-columns: 1.1fr 0.9fr;
        text-align: left;
        padding: 50px 10px 30px;
    }
}

.hero-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(0, 229, 255, 0.18) 0%, rgba(255, 63, 164, 0.12) 40%, transparent 70%);
    filter: blur(50px);
    pointer-events: none;
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.crypto-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    align-self: flex-start;
    margin: 0 auto;
    background: rgba(0, 229, 255, 0.1);
    border: 1px solid var(--border-glow);
    color: var(--neon-cyan);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1px;
    padding: 6px 14px;
    border-radius: var(--radius-full);
    box-shadow: 0 0 15px rgba(0, 229, 255, 0.2);
}

@media (min-width: 768px) {
    .crypto-badge {
        margin: 0;
    }
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 2.4rem;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.5px;
}

@media (min-width: 768px) {
    .hero-title {
        font-size: 3.2rem;
    }
}

.hero-title span {
    background: linear-gradient(135deg, var(--white), var(--neon-cyan), var(--mint-green));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 30px rgba(0, 229, 255, 0.4);
}

.hero-subtitle {
    font-size: 1rem;
    color: var(--text-muted);
    max-width: 520px;
    line-height: 1.6;
    margin: 0 auto;
}

@media (min-width: 768px) {
    .hero-subtitle {
        margin: 0;
    }
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    margin-top: 8px;
}

@media (min-width: 768px) {
    .hero-buttons {
        justify-content: flex-start;
    }
}

/* Hero 3D Coin Rendering (No clipping!) */
.hero-coin-container {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px 0;
}

.coin-3d-wrapper {
    perspective: 1000px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.coin-3d-disc {
    width: 190px;
    height: 190px;
    border-radius: 50%;
    position: relative;
    transform-style: preserve-3d;
    box-shadow: 
        0 0 40px rgba(0, 229, 255, 0.4),
        0 0 70px rgba(255, 63, 164, 0.3),
        inset 0 0 25px rgba(0, 229, 255, 0.5);
    background: linear-gradient(135deg, #153F91 0%, #302A79 40%, #681E83 80%, #FF3FA4 100%);
    border: 4px solid var(--neon-cyan);
    display: flex;
    align-items: center;
    justify-content: center;
}

@media (min-width: 768px) {
    .coin-3d-disc {
        width: 230px;
        height: 230px;
    }
}

.coin-front {
    width: 82%;
    height: 82%;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 35%, #302A79 0%, #07152F 85%);
    border: 2px dashed rgba(0, 229, 255, 0.6);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.coin-symbol {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 800;
    background: linear-gradient(180deg, #FFFFFF, var(--neon-cyan));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 15px rgba(0, 229, 255, 0.6);
    line-height: 1;
}

.coin-rim-text {
    font-size: 0.6rem;
    font-weight: 800;
    letter-spacing: 2px;
    color: var(--neon-pink);
    margin-top: 6px;
    text-transform: uppercase;
}

.floating-anim {
    animation: coin-floating 4s ease-in-out infinite;
}

@keyframes coin-floating {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-16px) rotate(4deg); }
}

/* ==============================================================================
   DISCLOSURE BANNER
   ============================================================================== */
.disclosure-banner {
    width: 100%;
}

.disclosure-card {
    background: rgba(21, 63, 145, 0.25);
    border: 1px solid var(--border-glow);
    border-radius: var(--radius-lg);
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    backdrop-filter: blur(14px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.disc-icon {
    font-size: 1.8rem;
    flex-shrink: 0;
}

.disc-text {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.disc-text strong {
    color: var(--white);
}

/* ==============================================================================
   PACKAGES SECTION & CARDS
   ============================================================================== */
.packages-preview-section {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.section-header {
    text-align: center;
    margin-bottom: 8px;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
}

.section-title span {
    color: var(--neon-cyan);
}

.section-desc {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-top: 6px;
}

.packages-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

@media (min-width: 640px) {
    .packages-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 980px) {
    .packages-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.package-card {
    background: rgba(21, 63, 145, 0.28);
    border: 1px solid var(--border-card);
    border-radius: var(--radius-lg);
    padding: 24px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    backdrop-filter: blur(16px);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.35);
    position: relative;
    overflow: hidden;
}

.package-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--neon-cyan), var(--purple), var(--neon-pink));
    opacity: 0.8;
}

.package-card:hover {
    border-color: var(--neon-cyan);
    transform: translateY(-4px);
    box-shadow: 0 14px 40px rgba(0, 229, 255, 0.25);
}

.pkg-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 10px;
}

.pkg-name {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--white);
}

.pkg-price {
    font-family: var(--font-heading);
    font-size: 1.45rem;
    font-weight: 800;
    color: var(--neon-cyan);
}

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

.pkg-desc {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 20px;
    line-height: 1.5;
}

.pkg-specs {
    background: rgba(7, 21, 47, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--radius-md);
    padding: 12px 16px;
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.spec-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.82rem;
    padding: 4px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

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

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

.spec-row strong {
    color: var(--white);
    font-weight: 600;
}

/* ==============================================================================
   HOW IT WORKS SECTION (BEAUTIFUL 4-CARD GRID)
   ============================================================================== */
.how-it-works-section {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.steps-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
}

@media (min-width: 640px) {
    .steps-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 980px) {
    .steps-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.step-card {
    background: rgba(21, 63, 145, 0.22);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 24px 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    backdrop-filter: blur(14px);
    transition: all 0.25s ease;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.3);
}

.step-card:hover {
    border-color: var(--neon-cyan);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 229, 255, 0.2);
}

.step-number {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, rgba(0, 229, 255, 0.2), rgba(104, 30, 131, 0.3));
    border: 1px solid var(--neon-cyan);
    color: var(--neon-cyan);
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.15rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 15px rgba(0, 229, 255, 0.3);
}

.step-card h3 {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--white);
}

.step-card p {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.55;
}

/* ==============================================================================
   FOOTER
   ============================================================================== */
.app-footer {
    padding: 32px 20px 20px;
    text-align: center;
    border-top: 1px solid var(--border-subtle);
    margin-top: 40px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-items: center;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: var(--neon-cyan);
}

.footer-copy {
    font-size: 0.78rem;
    color: var(--text-dim);
    max-width: 580px;
    line-height: 1.5;
}

/* ==============================================================================
   AUTHENTICATION PAGES (LOGIN / REGISTER)
   ============================================================================== */
.auth-page {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 10px;
    min-height: calc(100vh - 180px);
}

.auth-card {
    background: rgba(21, 63, 145, 0.3);
    border: 1px solid var(--border-glow);
    border-radius: var(--radius-xl);
    padding: 36px 28px;
    max-width: 440px;
    width: 100%;
    backdrop-filter: blur(20px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), 0 0 30px rgba(0, 229, 255, 0.15);
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.auth-header {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.auth-logo {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--neon-pink), var(--purple), var(--royal-blue));
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.2rem;
    box-shadow: 0 0 20px rgba(255, 63, 164, 0.6);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.auth-header h2 {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
}

.auth-header h2 span {
    color: var(--neon-cyan);
}

.auth-header p {
    font-size: 0.88rem;
    color: var(--text-muted);
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.captcha-badge {
    background: rgba(0, 229, 255, 0.15);
    border: 1px dashed var(--neon-cyan);
    color: var(--neon-cyan);
    font-family: monospace;
    font-size: 1.1rem;
    letter-spacing: 4px;
    padding: 4px 10px;
    border-radius: var(--radius-sm);
    font-weight: bold;
    display: inline-block;
}

.checkbox-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: var(--text-muted);
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    accent-color: var(--neon-cyan);
    width: 16px;
    height: 16px;
}

.auth-link {
    color: var(--neon-cyan);
    font-size: 0.85rem;
    text-decoration: none;
}

.auth-link:hover {
    text-decoration: underline;
}

.auth-footer {
    text-align: center;
    font-size: 0.88rem;
    color: var(--text-muted);
}

.auth-footer a {
    color: var(--neon-pink);
    font-weight: 600;
    text-decoration: none;
}

.auth-footer a:hover {
    text-decoration: underline;
}

/* ==============================================================================
   USER DASHBOARD PAGE
   ============================================================================== */
.dashboard-page {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.dashboard-header-card {
    background: linear-gradient(135deg, rgba(21, 63, 145, 0.35), rgba(48, 42, 121, 0.35));
    border: 1px solid var(--border-glow);
    border-radius: var(--radius-lg);
    padding: 20px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    backdrop-filter: blur(16px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.35);
}

@media (max-width: 600px) {
    .dashboard-header-card {
        flex-direction: column;
        gap: 16px;
        align-items: flex-start;
    }
}

.user-greeting {
    display: flex;
    align-items: center;
    gap: 14px;
}

.user-avatar-circle {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--neon-pink), var(--purple), var(--royal-blue));
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 800;
    box-shadow: 0 0 20px rgba(255, 63, 164, 0.5);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.user-info h3 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
}

.user-ref-tag {
    font-size: 0.78rem;
    color: var(--text-muted);
}

.user-ref-tag strong {
    color: var(--neon-cyan);
    font-family: monospace;
    font-size: 0.9rem;
}

.header-action-links {
    display: flex;
    gap: 10px;
}

/* KPI Cards Grid */
.kpi-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
}

@media (min-width: 768px) {
    .kpi-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.kpi-card {
    background: rgba(21, 63, 145, 0.24);
    border: 1px solid var(--border-card);
    border-radius: var(--radius-lg);
    padding: 18px;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(14px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.kpi-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2.5px;
    background: linear-gradient(90deg, transparent, var(--neon-cyan), transparent);
    opacity: 0.7;
}

.kpi-card.kpi-accent::after {
    background: linear-gradient(90deg, transparent, var(--mint-green), transparent);
}

.kpi-card.kpi-primary::after {
    background: linear-gradient(90deg, transparent, var(--neon-pink), transparent);
}

.kpi-label {
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-bottom: 6px;
    font-weight: 500;
}

.kpi-value {
    font-family: var(--font-heading);
    font-size: 1.45rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 4px;
}

.kpi-accent .kpi-value {
    color: var(--mint-green);
}

.kpi-sub {
    font-size: 0.74rem;
    color: var(--text-dim);
}

/* Activity Carousel */
.activity-carousel-wrapper {
    background: rgba(7, 21, 47, 0.75);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 10px 16px;
    display: flex;
    align-items: center;
    gap: 14px;
    overflow: hidden;
}

.carousel-title {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--neon-cyan);
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.carousel-track {
    display: flex;
    gap: 24px;
    overflow-x: auto;
    white-space: nowrap;
    scrollbar-width: none;
}

.carousel-track::-webkit-scrollbar {
    display: none;
}

.carousel-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.badge-dot {
    width: 6px;
    height: 6px;
    background: var(--mint-green);
    border-radius: 50%;
    box-shadow: 0 0 6px var(--mint-green);
}

.act-name {
    color: var(--white);
    font-weight: 600;
}

.act-pkg {
    color: var(--neon-cyan);
}

.act-price {
    color: var(--mint-green);
    font-weight: 700;
}

/* Shortcuts Grid */
.shortcuts-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.shortcut-btn {
    background: rgba(21, 63, 145, 0.25);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 16px 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: var(--white);
    transition: all 0.2s ease;
}

.shortcut-btn:hover {
    border-color: var(--neon-cyan);
    background: rgba(21, 63, 145, 0.45);
    transform: translateY(-2px);
    box-shadow: 0 0 15px rgba(0, 229, 255, 0.2);
}

.shortcut-icon {
    font-size: 1.6rem;
}

.shortcut-btn span {
    font-size: 0.75rem;
    font-weight: 600;
    text-align: center;
}

/* Recent Transactions Card */
.recent-tx-card {
    background: rgba(21, 63, 145, 0.22);
    border: 1px solid var(--border-card);
    border-radius: var(--radius-lg);
    padding: 20px;
}

.card-header {
    margin-bottom: 16px;
}

.card-header h4 {
    font-family: var(--font-heading);
    font-size: 1.15rem;
}

.view-all-link {
    color: var(--neon-cyan);
    font-size: 0.8rem;
    text-decoration: none;
    font-weight: 600;
}

.view-all-link:hover {
    text-decoration: underline;
}

.tx-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.tx-row {
    background: rgba(7, 21, 47, 0.65);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-md);
    padding: 12px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

.tx-info strong {
    font-size: 0.88rem;
    color: var(--white);
}

.tx-time {
    font-size: 0.72rem;
    color: var(--text-dim);
}

.tx-amount {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1rem;
}

.text-success { color: var(--mint-green); }
.text-danger  { color: var(--neon-pink); }

.empty-state {
    text-align: center;
    padding: 30px 16px;
    font-size: 0.88rem;
    color: var(--text-dim);
}

/* ==============================================================================
   TRADE SECTION — 3D COIN CLAIM SYSTEM
   ============================================================================== */
.trade-page {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.trade-header {
    text-align: center;
}

.trade-header h2 {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 800;
}

.trade-header h2 span {
    color: var(--neon-cyan);
}

.trade-header p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-top: 4px;
}

.claim-arena {
    background: radial-gradient(circle at 50% 40%, rgba(21, 63, 145, 0.35) 0%, rgba(7, 21, 47, 0.8) 70%);
    border: 1px solid var(--border-glow);
    border-radius: var(--radius-xl);
    padding: 40px 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 28px;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.5), inset 0 0 40px rgba(0, 229, 255, 0.1);
}

.claim-coin-outer {
    perspective: 1200px;
}

.coin-interactive-disc {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    position: relative;
    cursor: pointer;
    transform-style: preserve-3d;
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

.coin-interactive-disc:hover {
    transform: scale(1.06) rotateY(18deg);
}

.coin-interactive-disc:active {
    transform: scale(0.94);
}

.coin-glow-aura {
    position: absolute;
    inset: -20px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 63, 164, 0.45), rgba(0, 229, 255, 0.25), transparent 70%);
    animation: pulse-glow 3s infinite alternate;
}

.coin-front-face {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: linear-gradient(135deg, #153F91 0%, #302A79 40%, #681E83 80%, #FF3FA4 100%);
    border: 5px solid var(--neon-cyan);
    box-shadow: 
        inset 0 0 25px rgba(0, 229, 255, 0.7),
        0 0 35px rgba(255, 63, 164, 0.6),
        0 15px 45px rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
}

.coin-metallic-center {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 35%, #302A79, #07152F);
    border: 2px dashed rgba(0, 229, 255, 0.6);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.coin-emblem {
    font-family: var(--font-heading);
    font-size: 3.2rem;
    font-weight: 800;
    background: linear-gradient(180deg, #FFFFFF, var(--neon-cyan));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 15px rgba(0, 229, 255, 0.6);
}

.coin-tag {
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 2px;
    color: var(--neon-pink);
    margin-top: 2px;
}

.coin-spinning {
    animation: coin-spin-claim 0.85s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes coin-spin-claim {
    0% { transform: scale(1) rotateY(0deg); }
    50% { transform: scale(1.22) rotateY(360deg); }
    100% { transform: scale(1) rotateY(720deg); }
}

.claim-status-panel {
    width: 100%;
    max-width: 480px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.no-package-notice {
    background: rgba(7, 21, 47, 0.75);
    border: 1px dashed var(--neon-pink);
    border-radius: var(--radius-md);
    padding: 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.active-packages-section {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.active-packages-section h3 {
    font-family: var(--font-heading);
    font-size: 1.3rem;
}

.user-pkg-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
}

@media (min-width: 640px) {
    .user-pkg-list {
        grid-template-columns: repeat(2, 1fr);
    }
}

.user-pkg-card {
    background: rgba(21, 63, 145, 0.25);
    border: 1px solid var(--border-card);
    border-radius: var(--radius-md);
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.pkg-card-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.pkg-card-top strong {
    font-size: 0.95rem;
    color: var(--white);
}

.pkg-card-stats {
    display: flex;
    justify-content: space-between;
    font-size: 0.78rem;
    color: var(--text-muted);
}

.pkg-completed {
    border-color: var(--mint-green);
    background: rgba(33, 230, 184, 0.08);
}

/* ==============================================================================
   WALLET SECTION (DUAL BALANCES + CONVERSION + WITHDRAWAL)
   ============================================================================== */
.wallet-page {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.wallet-cards-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

@media (min-width: 640px) {
    .wallet-cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.wallet-card {
    border-radius: var(--radius-lg);
    padding: 24px;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(16px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.wallet-cp {
    background: linear-gradient(135deg, rgba(21, 63, 145, 0.4), rgba(104, 30, 131, 0.4));
    border: 1px solid var(--border-glow);
}

.wallet-usdt {
    background: linear-gradient(135deg, rgba(21, 63, 145, 0.4), rgba(21, 145, 120, 0.4));
    border: 1px solid rgba(33, 230, 184, 0.4);
}

.w-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 600;
    margin-bottom: 8px;
}

.w-balance {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--white);
    line-height: 1.1;
    margin-bottom: 6px;
}

.wallet-cp .w-balance { color: var(--neon-cyan); }
.wallet-usdt .w-balance { color: var(--mint-green); }

.w-balance .unit {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-muted);
}

.w-sub {
    font-size: 0.78rem;
    color: var(--text-dim);
}

.wallet-action-box {
    background: rgba(21, 63, 145, 0.22);
    border: 1px solid var(--border-card);
    border-radius: var(--radius-lg);
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.wallet-action-box h3 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    color: var(--white);
}

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

.wallet-links-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

@media (min-width: 600px) {
    .wallet-links-row {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ==============================================================================
   REFERRALS PAGE
   ============================================================================== */
.referrals-page {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.referral-hero-card {
    background: linear-gradient(135deg, rgba(21, 63, 145, 0.4), rgba(48, 42, 121, 0.4));
    border: 1px solid var(--border-glow);
    border-radius: var(--radius-lg);
    padding: 28px 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.referral-hero-card h2 {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
}

.referral-hero-card h2 span {
    color: var(--neon-cyan);
}

.share-box {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 6px;
}

.share-input-wrapper {
    display: flex;
    gap: 10px;
}

.ref-code-display {
    font-size: 0.88rem;
    color: var(--text-muted);
}

.ref-code-display strong {
    color: var(--neon-pink);
    font-family: monospace;
    font-size: 1.1rem;
    letter-spacing: 1px;
}

.ref-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.ref-stat-card {
    background: rgba(21, 63, 145, 0.25);
    border: 1px solid var(--border-card);
    border-radius: var(--radius-md);
    padding: 16px 12px;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.stat-lvl {
    font-family: var(--font-heading);
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--neon-cyan);
}

.stat-count {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--white);
}

.stat-rate {
    font-size: 0.72rem;
    color: var(--mint-green);
}

.team-members-box {
    background: rgba(21, 63, 145, 0.22);
    border: 1px solid var(--border-card);
    border-radius: var(--radius-lg);
    padding: 20px;
}

.member-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 14px;
}

.member-row {
    background: rgba(7, 21, 47, 0.65);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-md);
    padding: 12px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.member-info strong {
    display: block;
    font-size: 0.88rem;
}

.member-info span {
    font-size: 0.72rem;
    color: var(--text-dim);
}

.member-tags {
    display: flex;
    gap: 6px;
}

/* ==============================================================================
   PROFILE PAGE
   ============================================================================== */
.profile-page {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.profile-card {
    background: rgba(21, 63, 145, 0.3);
    border: 1px solid var(--border-glow);
    border-radius: var(--radius-xl);
    padding: 30px 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    text-align: center;
}

.profile-avatar-big {
    width: 76px;
    height: 76px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--neon-pink), var(--purple), var(--royal-blue));
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 800;
    box-shadow: 0 0 30px rgba(255, 63, 164, 0.6);
    border: 3px solid rgba(255, 255, 255, 0.3);
}

.profile-details-list {
    width: 100%;
    max-width: 440px;
    background: rgba(7, 21, 47, 0.65);
    border-radius: var(--radius-md);
    padding: 14px 18px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 10px;
}

.pd-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    padding: 6px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

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

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

.pd-row strong {
    color: var(--white);
    word-break: break-all;
}

.profile-action-box {
    background: rgba(21, 63, 145, 0.22);
    border: 1px solid var(--border-card);
    border-radius: var(--radius-lg);
    padding: 24px;
}

.profile-links-box {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.profile-nav-link {
    background: rgba(21, 63, 145, 0.25);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 14px 18px;
    color: var(--white);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.2s ease;
}

.profile-nav-link:hover {
    border-color: var(--neon-cyan);
    background: rgba(21, 63, 145, 0.4);
}

.profile-logout-link {
    background: rgba(255, 51, 75, 0.12);
    border: 1px solid rgba(255, 51, 75, 0.4);
    border-radius: var(--radius-md);
    padding: 14px 18px;
    color: #FF7081;
    text-align: center;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 700;
}

/* ==============================================================================
   SUPPORT CHAT INTERFACE
   ============================================================================== */
.support-page {
    display: flex;
    flex-direction: column;
}

.support-chat-card {
    background: rgba(21, 63, 145, 0.25);
    border: 1px solid var(--border-glow);
    border-radius: var(--radius-xl);
    display: flex;
    flex-direction: column;
    height: 600px;
    overflow: hidden;
}

.chat-header {
    background: rgba(7, 21, 47, 0.85);
    border-bottom: 1px solid var(--border-subtle);
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.chat-status-dot.online {
    width: 10px;
    height: 10px;
    background: var(--mint-green);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--mint-green);
}

.chat-messages-container {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.chat-bubble {
    max-width: 78%;
    padding: 12px 16px;
    border-radius: var(--radius-lg);
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.bubble-user {
    align-self: flex-end;
    background: linear-gradient(135deg, var(--royal-blue), var(--purple));
    border: 1px solid rgba(255, 63, 164, 0.35);
    color: var(--white);
    border-bottom-right-radius: 4px;
}

.bubble-admin {
    align-self: flex-start;
    background: rgba(7, 21, 47, 0.85);
    border: 1px solid var(--border-subtle);
    color: var(--white);
    border-bottom-left-radius: 4px;
}

.bubble-sender {
    font-size: 0.7rem;
    color: var(--neon-cyan);
    font-weight: 700;
}

.bubble-text {
    font-size: 0.88rem;
    line-height: 1.45;
}

.bubble-time {
    font-size: 0.65rem;
    color: var(--text-dim);
    align-self: flex-end;
}

.chat-input-form {
    padding: 14px 20px;
    background: rgba(7, 21, 47, 0.85);
    border-top: 1px solid var(--border-subtle);
    display: flex;
    gap: 10px;
}

/* ==============================================================================
   MOBILE BOTTOM NAVIGATION (DOCK STYLE)
   ============================================================================== */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    background: rgba(7, 21, 47, 0.94);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid var(--border-subtle);
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 8px 16px 12px;
    z-index: 1000;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.4);
}

@media (min-width: 980px) {
    /* Hide bottom nav on wide desktop monitors because top header has everything */
    .bottom-nav {
        display: none;
    }
    .app-wrapper {
        padding-bottom: 20px;
    }
}

.bottom-nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: var(--text-muted);
    font-size: 0.72rem;
    font-weight: 600;
    gap: 5px;
    padding: 6px 0;
    transition: all 0.2s ease;
}

.bottom-nav-item svg {
    stroke: var(--text-muted);
    transition: all 0.2s ease;
}

.bottom-nav-item.active,
.bottom-nav-item:hover {
    color: var(--neon-cyan);
}

.bottom-nav-item.active svg,
.bottom-nav-item:hover svg {
    stroke: var(--neon-cyan);
    transform: translateY(-2px);
}

/* ==============================================================================
   TOAST ALERTS & BADGES
   ============================================================================== */
.toast-alert {
    padding: 12px 18px;
    border-radius: var(--radius-md);
    margin: 12px 20px 0;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.88rem;
    font-weight: 500;
}

.toast-success {
    background: rgba(33, 230, 184, 0.15);
    border: 1px solid var(--mint-green);
    color: var(--mint-green);
}

.toast-error {
    background: rgba(255, 51, 75, 0.15);
    border: 1px solid #FF334B;
    color: #FF7081;
}

.badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: var(--radius-full);
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-primary { background: rgba(0, 229, 255, 0.15); color: var(--neon-cyan); border: 1px solid rgba(0, 229, 255, 0.3); }
.badge-success { background: rgba(33, 230, 184, 0.15); color: var(--mint-green); border: 1px solid rgba(33, 230, 184, 0.3); }
.badge-warning { background: rgba(255, 184, 0, 0.15); color: #FFB800; border: 1px solid rgba(255, 184, 0, 0.3); }
.badge-danger  { background: rgba(255, 51, 75, 0.15); color: #FF7081; border: 1px solid rgba(255, 51, 75, 0.3); }
.badge-secondary { background: rgba(255, 255, 255, 0.1); color: var(--text-muted); }

/* Data tables */
.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.82rem;
}

.data-table th, .data-table td {
    padding: 12px 14px;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.data-table th {
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.7rem;
    letter-spacing: 0.5px;
}

/* Popup Modal */
.popup-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(7, 21, 47, 0.88);
    backdrop-filter: blur(12px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.popup-modal-card {
    background: linear-gradient(135deg, #153F91, #302A79);
    border: 1px solid var(--border-glow);
    border-radius: var(--radius-xl);
    max-width: 400px;
    width: 100%;
    padding: 28px;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.7);
    text-align: center;
}

.popup-close-btn {
    position: absolute;
    top: 14px;
    right: 14px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: var(--white);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1rem;
}

/* ==============================================================================
   ALERTS, PROGRESS BARS & REMAINING COMPONENTS
   ============================================================================== */
.alert {
    padding: 14px 18px;
    border-radius: var(--radius-md);
    margin-bottom: 16px;
    font-size: 0.88rem;
    line-height: 1.5;
}

.alert-warning {
    background: rgba(255, 184, 0, 0.15);
    border: 1px solid rgba(255, 184, 0, 0.45);
    color: #FFD066;
}

.alert-info {
    background: rgba(0, 229, 255, 0.12);
    border: 1px solid var(--border-glow);
    color: var(--neon-cyan);
}

.alert-danger {
    background: rgba(255, 51, 75, 0.15);
    border: 1px solid rgba(255, 51, 75, 0.45);
    color: #FF7081;
}

/* Progress Bar & Claim Meta */
.progress-bar-container {
    width: 100%;
    margin-bottom: 14px;
}

.progress-bar-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-bottom: 6px;
    font-weight: 500;
}

.progress-track {
    width: 100%;
    height: 10px;
    background: rgba(7, 21, 47, 0.85);
    border: 1px solid var(--border-card);
    border-radius: var(--radius-full);
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--neon-cyan), var(--mint-green));
    border-radius: var(--radius-full);
    transition: width 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 0 12px var(--mint-green);
}

.claim-meta-details {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: var(--text-muted);
    padding: 4px 0;
}

.claim-meta-details strong {
    color: var(--neon-cyan);
}

.notice-buttons {
    margin-top: 10px;
}

/* Payment Checkout & QR Code */
.payment-checkout-page {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px 10px;
}

.checkout-card {
    background: rgba(21, 63, 145, 0.28);
    border: 1px solid var(--border-glow);
    border-radius: var(--radius-xl);
    padding: 32px 24px;
    max-width: 520px;
    width: 100%;
    backdrop-filter: blur(20px);
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    gap: 20px;
    text-align: center;
}

.checkout-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.checkout-header h2 {
    font-family: var(--font-heading);
    font-size: 1.8rem;
}

.checkout-header h2 span {
    color: var(--neon-cyan);
}

.checkout-details {
    background: rgba(7, 21, 47, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-md);
    padding: 16px 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    text-align: left;
}

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

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

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

.detail-row strong {
    color: var(--white);
    word-break: break-all;
}

.copyable-address {
    color: var(--neon-cyan) !important;
    cursor: pointer;
    font-family: monospace;
    font-size: 0.88rem;
    background: rgba(0, 229, 255, 0.1);
    padding: 2px 8px;
    border-radius: var(--radius-sm);
    transition: background 0.2s ease;
}

.copyable-address:hover {
    background: rgba(0, 229, 255, 0.25);
}

.qr-container {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 12px 0;
}

.qr-image {
    width: 200px;
    height: 200px;
    border-radius: var(--radius-md);
    border: 4px solid var(--white);
    box-shadow: 0 0 25px rgba(0, 229, 255, 0.4);
}

.qr-placeholder {
    width: 200px;
    height: 200px;
    background: var(--white);
    color: #07152F;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

.checkout-instructions {
    font-size: 0.82rem;
    color: var(--text-muted);
    line-height: 1.5;
    text-align: left;
    background: rgba(0, 229, 255, 0.06);
    border: 1px dashed var(--border-glow);
    border-radius: var(--radius-md);
    padding: 14px 18px;
}

/* Bind Wallet Page & Items */
.bind-wallet-page, .packages-page, .notifications-page, .transactions-page {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.card-box {
    background: rgba(21, 63, 145, 0.25);
    border: 1px solid var(--border-card);
    border-radius: var(--radius-lg);
    padding: 24px;
    backdrop-filter: blur(16px);
}

.saved-wallets-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.saved-wallets-list h3 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
}

.wallet-item-card {
    background: rgba(7, 21, 47, 0.7);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 14px 18px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    transition: all 0.2s ease;
}

.wallet-item-card:hover {
    border-color: var(--neon-cyan);
    background: rgba(21, 63, 145, 0.35);
}

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

.wi-header strong {
    font-size: 0.95rem;
    color: var(--white);
}

.wi-address {
    font-family: monospace;
    font-size: 0.85rem;
    color: var(--neon-cyan);
    word-break: break-all;
}

/* Notifications Feed */
.notif-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.notif-card {
    background: rgba(21, 63, 145, 0.22);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 16px 18px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    transition: all 0.2s ease;
}

.notif-card.unread {
    border-color: var(--neon-cyan);
    background: rgba(0, 229, 255, 0.08);
}

.notif-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.notif-top strong {
    font-size: 0.92rem;
    color: var(--white);
}

.notif-time {
    font-size: 0.72rem;
    color: var(--text-dim);
}

.notif-card p {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.notif-link {
    color: var(--neon-cyan);
    font-size: 0.78rem;
    font-weight: 600;
    text-decoration: none;
    align-self: flex-start;
    margin-top: 4px;
}

.notif-link:hover {
    text-decoration: underline;
}

/* Transaction tables */
.tx-tables-container {
    background: rgba(21, 63, 145, 0.22);
    border: 1px solid var(--border-card);
    border-radius: var(--radius-lg);
    padding: 24px;
    overflow-x: auto;
}

.tx-tables-container h3 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    margin-bottom: 14px;
}

/* Popup Modal Addons */
.popup-illustration {
    padding: 20px 0;
}

.popup-modal-body {
    display: flex;
    flex-direction: column;
    gap: 14px;
    align-items: center;
}

.popup-modal-body h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
}

.popup-modal-body p {
    font-size: 0.88rem;
    color: var(--text-muted);
}

/* Welcome Success Banner */
.welcome-success-banner {
    background: linear-gradient(135deg, rgba(33, 230, 184, 0.22), rgba(21, 63, 145, 0.45));
    border: 1.5px solid var(--mint-green);
    border-radius: var(--radius-lg);
    padding: 20px 24px;
    display: flex;
    align-items: center;
    gap: 18px;
    box-shadow: 0 0 35px rgba(33, 230, 184, 0.3);
    margin-bottom: 20px;
    backdrop-filter: blur(16px);
}

.ws-icon {
    font-size: 2.4rem;
    flex-shrink: 0;
}

.ws-info h4 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    color: var(--mint-green);
    font-weight: 700;
}

.ws-info p {
    font-size: 0.92rem;
    color: var(--white);
    margin-top: 2px;
}

/* ==============================================================================
   ADMIN CONSOLE MASTER STYLESHEET (PROFESSIONAL DESKTOP & MOBILE SIDEBAR)
   ============================================================================== */

body.admin-layout-body {
    background-color: #040C1E;
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(104, 30, 131, 0.18) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(21, 63, 145, 0.22) 0%, transparent 50%),
        linear-gradient(180deg, #040C1E 0%, #061229 100%);
    color: var(--white);
    min-height: 100vh;
    font-family: var(--font-main);
    overflow-x: hidden;
}

.admin-wrapper {
    display: flex;
    min-height: 100vh;
    width: 100%;
    position: relative;
}

/* Sidebar */
.admin-sidebar {
    width: 260px;
    min-width: 260px;
    background: rgba(7, 21, 47, 0.96);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-right: 1px solid rgba(0, 229, 255, 0.14);
    display: flex;
    flex-direction: column;
    position: sticky;
    top: 0;
    height: 100vh;
    padding: 24px 18px;
    z-index: 1000;
    box-shadow: 4px 0 30px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.admin-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-bottom: 22px;
    margin-bottom: 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.admin-brand-info {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.admin-badge {
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    background: rgba(0, 229, 255, 0.15);
    color: var(--neon-cyan);
    border: 1px solid rgba(0, 229, 255, 0.35);
    padding: 2px 8px;
    border-radius: var(--radius-full);
    display: inline-block;
    align-self: flex-start;
    letter-spacing: 0.5px;
}

.admin-nav {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
    overflow-y: auto;
    padding-right: 4px;
}

.admin-nav::-webkit-scrollbar {
    width: 4px;
}

.admin-nav::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 4px;
}

.admin-nav-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 16px;
    color: var(--text-muted);
    text-decoration: none;
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    border: 1px solid transparent;
}

.admin-nav-item svg {
    stroke: var(--text-muted);
    transition: stroke 0.2s ease, transform 0.2s ease;
    flex-shrink: 0;
}

.admin-nav-item:hover {
    color: var(--white);
    background: rgba(21, 63, 145, 0.4);
    border-color: rgba(0, 229, 255, 0.2);
    transform: translateX(4px);
}

.admin-nav-item:hover svg {
    stroke: var(--neon-cyan);
}

.admin-nav-item.active {
    color: var(--neon-cyan);
    background: linear-gradient(90deg, rgba(21, 63, 145, 0.65), rgba(104, 30, 131, 0.35));
    border-color: var(--border-glow);
    box-shadow: 0 0 20px rgba(0, 229, 255, 0.22);
}

.admin-nav-item.active svg {
    stroke: var(--neon-cyan);
}

.admin-sidebar-footer {
    padding-top: 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.admin-footer-link {
    color: var(--neon-cyan);
    font-size: 0.82rem;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s ease;
}

.admin-footer-link:hover {
    text-decoration: underline;
}

.admin-logout-btn {
    color: #FF7081;
    font-size: 0.82rem;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s ease;
}

.admin-logout-btn:hover {
    text-decoration: underline;
}

/* Main Content Area */
.admin-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
    background: transparent;
}

.admin-topbar {
    background: rgba(7, 21, 47, 0.88);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-subtle);
    padding: 16px 32px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 900;
}

.sidebar-toggle {
    display: none;
    background: transparent;
    border: none;
    color: var(--white);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 4px;
}

.topbar-title {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--white);
}

.topbar-admin-profile {
    font-size: 0.88rem;
    color: var(--text-muted);
    background: rgba(21, 63, 145, 0.35);
    border: 1px solid var(--border-subtle);
    padding: 6px 16px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    gap: 8px;
}

.admin-content {
    padding: 32px;
    flex: 1;
    max-width: 1400px;
    width: 100%;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .admin-content {
        padding: 20px 14px;
    }
}

.admin-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 26px;
    flex-wrap: wrap;
    gap: 14px;
}

.admin-section-header h2 {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
}

/* Admin KPI Grid — 3 or 4 responsive columns (NOT stretched 1-col lines!) */
.admin-kpi-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 20px;
    margin-bottom: 32px;
}

@media (min-width: 640px) {
    .admin-kpi-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1040px) {
    .admin-kpi-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 1300px) {
    .admin-kpi-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Admin 2-Column Split Cards */
.admin-grid-2col {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}

@media (min-width: 980px) {
    .admin-grid-2col {
        grid-template-columns: repeat(2, 1fr);
    }
}

.admin-card {
    background: rgba(21, 63, 145, 0.25);
    border: 1px solid var(--border-card);
    border-radius: var(--radius-xl);
    padding: 26px;
    backdrop-filter: blur(16px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

.admin-card h3 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--white);
}

/* Audit logs inside admin dashboard */
.audit-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.audit-item {
    background: rgba(7, 21, 47, 0.65);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-md);
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.audit-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.audit-details {
    font-family: monospace;
    font-size: 0.78rem;
    color: var(--neon-cyan);
    background: rgba(0, 0, 0, 0.35);
    padding: 6px 10px;
    border-radius: var(--radius-sm);
    word-break: break-all;
}

.audit-time {
    font-size: 0.72rem;
    color: var(--text-dim);
}

/* Filter forms in tables */
.filter-form {
    display: flex;
    gap: 10px;
    align-items: center;
}

/* Chat bubble internal admin note */
.bubble-internal {
    background: rgba(255, 184, 0, 0.12) !important;
    border: 1px dashed rgba(255, 184, 0, 0.5) !important;
}

/* Mobile responsive drawer for admin sidebar */
@media (max-width: 992px) {
    .admin-sidebar {
        position: fixed;
        left: 0;
        top: 0;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
    }

    .admin-sidebar.show {
        transform: translateX(0);
    }

    .sidebar-toggle {
        display: block;
    }

    .admin-topbar {
        padding: 14px 18px;
    }
}
