/* ==========================================================================
   1. CORE RESET & BASE STYLING
   ========================================================================== */
:root {
    /* Dark charcoal background */
    --bg-dark-start: #0B0C0E;
    --bg-dark-end: #14151A;
    --bg-charcoal: #0E0F13;
    
    /* Bright yellow #F5C400 (accent and button) */
    --accent-yellow: #F5C400;
    --accent-yellow-bright: #FFD51A;
    --accent-yellow-glow: rgba(245, 196, 0, 0.45);
    
    /* Deep maroon #6B1E2E (secondary and glows) */
    --secondary-maroon: #6B1E2E;
    --secondary-maroon-bright: #8B273C;
    --secondary-maroon-glow: rgba(107, 30, 46, 0.5);
    
    /* Off-white #F5F1EA (text) */
    --text-offwhite: #F5F1EA;
    --text-silver: #F5F1EA;
    --text-muted: #A8A6A0;
    
    /* Card Glassmorphism */
    --card-bg: rgba(18, 19, 24, 0.82);
    --card-border: rgba(245, 196, 0, 0.22);
    
    /* Keep green & red for trading chart / arrows */
    --accent-green: #22C55E;
    --accent-green-bright: #4ADE80;
    --accent-red: #EF4444;
    --accent-red-bright: #F87171;
    
    /* Legacy aliases for compatibility */
    --accent-gold: #F5C400;
    --accent-gold-bright: #FFD51A;
    
    /* Typography Hierarchy */
    --font-headline: 'Rajdhani', sans-serif;
    --font-sans: 'Sora', 'Space Grotesk', system-ui, sans-serif;
    --font-btn: 'Montserrat', 'Poppins', sans-serif;
}

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

html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    overflow: hidden; /* Lock to viewport without scrollbars */
    background: linear-gradient(165deg, var(--bg-dark-start) 0%, #101116 50%, var(--bg-dark-end) 100%);
    color: var(--text-offwhite);
    font-family: var(--font-sans);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ==========================================================================
   2. BACKGROUND LAYERS (FIXED INSET 0)
   ========================================================================== */
.ambient-glow {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

.glow-orb {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    will-change: transform, opacity;
}

/* Deep Maroon Ambient Glow (Asymmetrical Top-Left Position) */
.glow-orb-white {
    top: -12%;
    left: -10%;
    width: clamp(300px, 45vh, 600px);
    height: clamp(300px, 45vh, 600px);
    background: radial-gradient(circle, rgba(107, 30, 46, 0.35) 0%, rgba(107, 30, 46, 0.1) 40%, transparent 68%);
    filter: blur(90px);
    -webkit-filter: blur(90px);
    animation: orb-drift-white 11s infinite alternate ease-in-out;
}

/* Bright Yellow Ambient Glow (Asymmetrical Bottom-Right Position) */
.glow-orb-green {
    bottom: -15%;
    right: -10%;
    width: clamp(320px, 50vh, 680px);
    height: clamp(320px, 50vh, 680px);
    background: radial-gradient(circle, rgba(245, 196, 0, 0.16) 0%, rgba(107, 30, 46, 0.08) 45%, transparent 70%);
    filter: blur(100px);
    -webkit-filter: blur(100px);
    animation: orb-drift-green 13s infinite alternate ease-in-out;
}

@keyframes orb-drift-white {
    0% { transform: translate(0, 0) scale(1); opacity: 0.65; }
    100% { transform: translate(35px, 25px) scale(1.12); opacity: 0.95; }
}

@keyframes orb-drift-green {
    0% { transform: translate(0, 0) scale(1); opacity: 0.7; }
    100% { transform: translate(-40px, -30px) scale(1.15); opacity: 1; }
}

/* Realistic Two-Color Candlestick Background */
.candlestick-bg {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 2;
    opacity: 0.16;
    display: flex;
    justify-content: space-around;
    align-items: flex-end;
    padding: 0 6px;
}

.candle-column {
    display: flex;
    flex-direction: column-reverse;
    align-items: center;
    gap: 10px;
    width: 10px;
    height: 100%;
    justify-content: flex-end;
}

.candle {
    width: 7px;
    border-radius: 2px;
    position: relative;
    animation: candle-pulse linear infinite alternate;
    will-change: transform;
}

.candle::before {
    content: '';
    position: absolute;
    top: -5px;
    bottom: -5px;
    left: 50%;
    width: 1.5px;
    transform: translateX(-50%);
    background: inherit;
    opacity: 0.7;
}

.candle.bull {
    background: var(--accent-green);
    box-shadow: 0 0 7px rgba(34, 197, 94, 0.45);
}

.candle.bear {
    background: var(--accent-red);
    box-shadow: 0 0 7px rgba(239, 68, 68, 0.45);
}

@keyframes candle-pulse {
    0% { transform: scaleY(0.75) translateY(0); }
    50% { transform: scaleY(1.18) translateY(-4px); }
    100% { transform: scaleY(0.82) translateY(3px); }
}

/* ==========================================================================
   3. UNIVERSAL VIEWPORT CENTERING ARCHITECTURE (STRICT 100VH NO SCROLL)
   ========================================================================== */
.page-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100vh;
    height: 100dvh;
    width: 100%;
    padding: clamp(6px, 1.5vh, 16px) clamp(10px, 3vw, 16px);
    box-sizing: border-box;
    position: relative;
    z-index: 10;
    overflow: hidden; /* Guaranteed no scrollbar on container */
}

.page-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 480px;
    height: 100%;
    justify-content: space-between;
    overflow: hidden;
}

/* ==========================================================================
   4. SINGLE UNIFIED CARD (LIQUID GLASS / GLASSMORPHISM)
   ========================================================================== */
.unified-card {
    position: relative;
    width: 100%;
    flex: 1; /* Expand within page-content height */
    min-height: 0; /* Allow shrinking to fit small screens */
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(25, 26, 32, 0.72) 40%, rgba(13, 14, 18, 0.88) 100%);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(245, 196, 0, 0.22); /* Soft yellow glass edge highlight */
    border-radius: clamp(16px, 3vh, 28px);
    padding: clamp(8px, 1.8vh, 22px) clamp(12px, 3.5vw, 24px);
    box-shadow: 
        0 20px 50px rgba(0, 0, 0, 0.85),
        0 0 40px rgba(107, 30, 46, 0.3), /* Deep maroon glow */
        inset 0 1.5px 0 rgba(245, 241, 234, 0.2), /* Glass depth specular highlight */
        inset 0 -1px 0 rgba(245, 196, 0, 0.2);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    will-change: transform;
}

/* Graceful Fallback for Browsers Without backdrop-filter Support */
@supports not ((-webkit-backdrop-filter: blur(20px)) or (backdrop-filter: blur(20px))) {
    .unified-card {
        background: rgba(18, 19, 24, 0.95);
    }
}

/* Spark Canvas Particle Layer */
.spark-layer {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;
    opacity: 0.65;
}

.card-inner-stack {
    position: relative;
    z-index: 5;
    width: 100%;
    height: 100%;
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-evenly; /* Evenly distribute content vertically */
    gap: clamp(1px, 0.4vh, 6px);
}

/* 1. PROFILE PHOTO (EXCLUDED FROM GLASS BLUR — Sharp & Pristine) */
.profile-aura-container {
    position: relative;
    width: clamp(48px, 12vh, 120px);
    height: clamp(48px, 12vh, 120px);
    margin-bottom: clamp(0px, 0.2vh, 2px);
    will-change: transform;
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
}

.aura-layer-1 {
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    background: conic-gradient(from 0deg, #F5C400, #6B1E2E, #F5C400, #6B1E2E, #F5C400);
    filter: blur(6px);
    -webkit-filter: blur(6px);
    opacity: 0.9;
    animation: aura-spin 5s linear infinite;
    will-change: transform;
}

.aura-layer-2 {
    position: absolute;
    inset: -10px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(245, 196, 0, 0.55) 0%, rgba(107, 30, 46, 0.45) 50%, transparent 70%);
    filter: blur(12px);
    -webkit-filter: blur(12px);
    animation: aura-breathe 3s ease-in-out infinite alternate;
    will-change: transform, opacity;
}

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

@keyframes aura-breathe {
    0% { transform: scale(0.96); opacity: 0.6; }
    100% { transform: scale(1.06); opacity: 0.95; }
}

.profile-img-box {
    position: relative;
    z-index: 5;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid #0D0E12;
    background: #14151A;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.9), 0 0 14px rgba(245, 196, 0, 0.35);
}

.profile-img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    display: block;
}

.live-dot-badge {
    position: absolute;
    bottom: 2px;
    right: 2px;
    z-index: 10;
    width: clamp(14px, 2.5vh, 20px);
    height: clamp(14px, 2.5vh, 20px);
    border-radius: 50%;
    background: #0D0E12;
    border: 2px solid var(--accent-yellow);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 10px var(--accent-yellow);
}

.live-dot-badge::after {
    content: '';
    width: clamp(6px, 1.2vh, 9px);
    height: clamp(6px, 1.2vh, 9px);
    border-radius: 50%;
    background: var(--accent-yellow);
    animation: live-ping 1.8s infinite ease-in-out;
    will-change: transform, opacity;
}

@keyframes live-ping {
    0%, 100% { transform: scale(0.85); opacity: 1; }
    50% { transform: scale(1.25); opacity: 0.7; }
}

/* 2. OFFICIAL TELEGRAM CHANNEL BADGE */
.badge-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: rgba(245, 196, 0, 0.09);
    border: 1px solid rgba(245, 196, 0, 0.32);
    padding: clamp(3px, 0.7vh, 8px) clamp(8px, 2.2vw, 16px);
    border-radius: 30px;
    font-size: clamp(0.56rem, 1.2vh, 0.85rem);
    font-weight: 700;
    color: var(--accent-yellow);
    letter-spacing: clamp(1.2px, 0.4vw, 2.2px);
    text-transform: uppercase;
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
}

.badge-dot {
    width: clamp(4px, 0.8vh, 6px);
    height: clamp(4px, 0.8vh, 6px);
    border-radius: 50%;
    background: var(--accent-yellow);
    box-shadow: 0 0 8px var(--accent-yellow);
}

/* 3. VIP NIKHIL HEADING */
.heading-name {
    font-family: var(--font-headline);
    font-weight: 700;
    font-size: clamp(1.4rem, 4.2vh, 3.6rem);
    line-height: 1.0;
    letter-spacing: clamp(2px, 1vw, 5px);
    text-transform: uppercase;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(4px, 1.5vw, 14px);
    margin-top: 1px;
}

.name-vip {
    color: var(--text-offwhite);
    letter-spacing: clamp(2px, 1vw, 5px);
    display: inline-block;
    text-shadow: 
        0 0 12px rgba(245, 241, 234, 0.95),
        0 0 25px rgba(245, 241, 234, 0.55),
        0 0 45px rgba(245, 241, 234, 0.28);
}

.name-nikhil {
    color: var(--accent-yellow);
    letter-spacing: clamp(2px, 1vw, 5px);
    display: inline-block;
    text-shadow: 
        0 0 15px rgba(245, 196, 0, 0.98),
        0 0 32px rgba(245, 196, 0, 0.68),
        0 0 52px rgba(245, 196, 0, 0.38);
}

/* 4. SUBTEXT */
.subtext-line {
    font-family: var(--font-sans);
    font-size: clamp(0.6rem, 1.4vh, 1.05rem);
    font-weight: 600;
    color: var(--text-offwhite);
    letter-spacing: clamp(0.5px, 0.3vw, 1.3px);
    opacity: 0.9;
}

/* 5. DIVIDER LINE */
.card-divider {
    width: 85%;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, rgba(245, 196, 0, 0.45) 35%, rgba(107, 30, 46, 0.55) 65%, transparent 100%);
    margin: clamp(1px, 0.3vh, 4px) 0;
}

/* 6. EYEBROW TEXT */
.eyebrow-text {
    font-family: var(--font-sans);
    font-size: clamp(0.55rem, 1.1vh, 0.85rem);
    font-weight: 800;
    color: var(--accent-yellow);
    letter-spacing: clamp(1.2px, 0.4vw, 2.5px);
    text-transform: uppercase;
    text-shadow: 0 0 10px rgba(245, 196, 0, 0.45);
}

/* 7. CARD HEADING */
.card-heading {
    font-family: var(--font-sans);
    font-size: clamp(0.92rem, 2.2vh, 1.85rem);
    font-weight: 800;
    color: var(--text-offwhite);
    letter-spacing: -0.3px;
    line-height: 1.15;
}

/* 8. DESCRIPTION LINE */
.card-desc {
    font-family: var(--font-sans);
    font-size: clamp(0.58rem, 1.3vh, 0.98rem);
    color: var(--text-muted);
    line-height: clamp(1.15, 1.3, 1.42);
    max-width: clamp(260px, 85vw, 420px);
}

/* 9. THREE PILL BADGES */
.pill-badges-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: clamp(3px, 0.8vw, 8px);
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.pill-badge {
    background: rgba(18, 19, 24, 0.75);
    border: 1px solid rgba(245, 196, 0, 0.25);
    padding: clamp(2px, 0.5vh, 6px) clamp(6px, 1.8vw, 12px);
    border-radius: 10px;
    font-size: clamp(0.52rem, 1.1vh, 0.8rem);
    font-weight: 700;
    color: var(--accent-yellow);
    letter-spacing: clamp(0.5px, 0.3vw, 1.2px);
    text-transform: uppercase;
    white-space: nowrap;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
}

/* 10. CTA BUTTON */
.cta-gold-green {
    position: relative;
    z-index: 1;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(6px, 1.5vw, 10px);
    background: linear-gradient(135deg, #FFF080 0%, #F5C400 45%, #E5B400 100%);
    color: #000000 !important;
    font-family: var(--font-btn) !important;
    font-weight: 900 !important;
    font-size: clamp(0.76rem, 2.0vh, 1.25rem);
    letter-spacing: clamp(0.5px, 0.3vw, 1.4px);
    text-transform: uppercase;
    text-decoration: none;
    padding: clamp(6px, 1.6vh, 15px) clamp(12px, 3vw, 24px);
    border-radius: clamp(10px, 2vh, 16px);
    border: none;
    cursor: pointer;
    box-shadow: 0 0 25px rgba(245, 196, 0, 0.55), 0 0 45px rgba(107, 30, 46, 0.35), 0 8px 20px rgba(0, 0, 0, 0.6);
    transition: transform 0.15s ease, opacity 0.15s ease, box-shadow 0.15s ease;
    transition-delay: 0s;
    overflow: hidden;
    margin-top: 1px;
    will-change: transform;
    -webkit-tap-highlight-color: transparent;
}

.cta-gold-green::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: clamp(10px, 2vh, 16px);
    background: linear-gradient(135deg, #FFFFFF 0%, #FFD53D 45%, #F5C400 100%);
    z-index: -1;
    opacity: 0;
    transition: opacity 0.15s ease;
    transition-delay: 0s;
    will-change: opacity;
}

.cta-gold-green:hover {
    cursor: pointer;
    transform: scale(1.03) translateY(-2px);
    color: #000000 !important;
    box-shadow: 0 0 35px rgba(245, 196, 0, 0.75), 0 0 50px rgba(107, 30, 46, 0.5), 0 10px 24px rgba(0, 0, 0, 0.7);
}

.cta-gold-green:hover::before {
    opacity: 1;
}

.cta-gold-green:active {
    transform: scale(0.99) translateY(0);
}

.paper-plane-icon {
    width: clamp(14px, 2.2vh, 22px);
    height: clamp(14px, 2.2vh, 22px);
    fill: #000000 !important;
    transition: transform 0.15s ease;
    transition-delay: 0s;
}

.cta-gold-green:hover .paper-plane-icon {
    fill: #000000 !important;
    transform: translateX(3px) translateY(-2px) scale(1.12);
}

/* 11. CAPTION */
.btn-caption {
    font-family: var(--font-sans);
    font-size: clamp(0.52rem, 1.1vh, 0.82rem);
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 4px;
}

/* ==========================================================================
   5. FOOTER TEXT
   ========================================================================== */
.footer-text {
    font-family: var(--font-sans);
    font-size: clamp(0.55rem, 1.1vh, 0.82rem);
    font-weight: 700;
    color: rgba(245, 241, 234, 0.6);
    letter-spacing: clamp(1.2px, 0.4vw, 2.4px);
    text-transform: uppercase;
    margin-top: clamp(2px, 0.5vh, 6px);
    margin-bottom: clamp(2px, 0.4vh, 6px);
    text-align: center;
}

/* ==========================================================================
   6. BOTTOM-RIGHT FIXED CREATOR CREDIT BADGE
   ========================================================================== */
.creator-credit-badge {
    position: fixed;
    bottom: clamp(4px, 0.8vh, 10px);
    right: clamp(4px, 1vw, 10px);
    z-index: 20;
    display: flex;
    align-items: center;
    gap: 4px;
    padding: clamp(2px, 0.5vh, 5px) clamp(6px, 1.5vw, 12px);
    background: rgba(13, 14, 18, 0.85);
    border: 1px solid rgba(245, 196, 0, 0.18);
    border-radius: 20px;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    font-family: var(--font-sans);
    font-size: clamp(0.55rem, 1.1vh, 0.82rem);
    font-weight: 500;
    color: rgba(245, 241, 234, 0.7);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
    white-space: nowrap;
    user-select: none;
    -webkit-user-select: none;
}

.credit-logo {
    height: clamp(11px, 2vh, 16px);
    width: auto;
    object-fit: contain;
    vertical-align: middle;
    filter: drop-shadow(0 0 4px rgba(255, 255, 255, 0.3));
    -webkit-filter: drop-shadow(0 0 4px rgba(255, 255, 255, 0.3));
}

/* ==========================================================================
   7. RESPONSIVE OPTIMIZATIONS & MEDIA QUERIES
   ========================================================================== */
@media (max-width: 768px) {
    .candlestick-bg {
        display: none !important;
    }
    .spark-layer {
        display: none !important;
    }

    .page-container {
        padding: clamp(4px, 1.2vh, 10px) clamp(6px, 2.5vw, 12px);
    }

    .unified-card {
        padding: clamp(6px, 1.5vh, 14px) clamp(8px, 3vw, 14px);
    }
}

@media (max-width: 480px) {
    .page-container {
        padding: clamp(4px, 1vh, 8px) clamp(6px, 2vw, 8px);
    }
    
    .unified-card {
        padding: clamp(6px, 1.2vh, 12px) clamp(6px, 2.5vw, 12px);
        border-radius: clamp(14px, 2vh, 20px);
    }

    .card-inner-stack {
        gap: clamp(1px, 0.3vh, 4px);
    }
}
