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

:root {
    --primary: #a855f7;
    --primary-light: #c084fc;
    --secondary: #06b6d4;
    --secondary-light: #22d3ee;
    --dark-bg: #0f0f1a;
    --card-bg: rgba(255, 255, 255, 0.05);
    --card-border: rgba(255, 255, 255, 0.1);
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.7);
    --text-muted: rgba(255, 255, 255, 0.5);
    --success: #22c55e;
    --warning: #f59e0b;
    --gold: #d4af37;
}

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

::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.3);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--primary) 0%, var(--secondary) 100%);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, var(--primary-light) 0%, var(--secondary-light) 100%);
}

/* Firefox scrollbar */
* {
    scrollbar-width: thin;
    scrollbar-color: var(--primary) rgba(0, 0, 0, 0.3);
}

/* ===== BODY & BACKGROUND ===== */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--dark-bg);
    min-height: 100vh;
    color: var(--text-primary);
    overflow-x: hidden;
    position: relative;
}

/* Animated gradient orbs */
.bg-orbs {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.5;
    animation: float 20s ease-in-out infinite;
}

.orb-1 {
    width: 600px;
    height: 600px;
    background: var(--primary);
    top: -200px;
    right: -200px;
    animation-delay: 0s;
}

.orb-2 {
    width: 500px;
    height: 500px;
    background: var(--secondary);
    bottom: -150px;
    left: -150px;
    animation-delay: -7s;
}

.orb-3 {
    width: 400px;
    height: 400px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: -14s;
}

@keyframes float {

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

    25% {
        transform: translate(30px, -30px) scale(1.05);
    }

    50% {
        transform: translate(-20px, 20px) scale(0.95);
    }

    75% {
        transform: translate(20px, 30px) scale(1.02);
    }
}

/* ===== CONTAINER ===== */
.container {
    max-width: 520px;
    margin: 0 auto;
    padding: 10px 20px;
    position: relative;
    z-index: 1;
}

/* ===== HEADER (Now inside card) ===== */
.brand-logos {
    position: absolute;
    top: -45px; /* Half of 90px logo height */
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    z-index: 10;
    /* Optional: background to hide border line behind it */
    /* background: var(--dark-bg); */ 
    padding: 0 15px;
    border-radius: 20px;
    margin-bottom: 10px; /* ensure no extra space */
}

.brand-logo {
    height: 90px;
    width: auto;
    filter: drop-shadow(0 0 20px rgba(168, 85, 247, 0.3));
}

.brand-logo[alt="POPVAI"] {
    height: 75px; /* Smaller than POPLUZ logo */
}

.brand-divider {
    font-size: 24px;
    font-weight: 300;
    color: var(--text-muted);
}

/* ===== CARDS ===== */
.card {
    background: var(--card-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--card-border);
    border-radius: 24px;
    padding: 32px 24px;
    margin-bottom: 24px;
    position: relative;
    /* overflow: hidden; - Removed to let logos stick out */
}

/* Specific styling for Mentor Card to accommodate logos */
.card-mentor {
    margin-top: 35px; /* Reduced from 50px */
    padding-top: 45px; /* Increased to 45px to add 10px spacing */
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
}

/* ===== LAUNCH CARD ===== */
.card-launch {
    text-align: center;
}

.launch-badge {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    font-size: 12px;
    font-weight: 700;
    padding: 8px 20px;
    border-radius: 50px;
    margin-bottom: 8px;
    letter-spacing: 2px;
}

.launch-title {
    font-size: 32px;
    font-weight: 900;
    background: linear-gradient(135deg, #fff, var(--text-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 4px;
}

.launch-subtitle {
    color: var(--text-secondary);
    font-size: 16px;
    margin-bottom: 4px; /* Reduced from 8px to pull date higher */
}

.launch-date {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    gap: 0px; /* Remove default gap if any */
}

.date-day {
    font-size: 72px;
    font-weight: 900;
    background: linear-gradient(135deg, var(--secondary-light), var(--primary-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 0.9; /* Tighter line height to pull month closer */
    margin-bottom: -5px; /* Pull month up closer */
}

.date-month {
    font-size: 28px;
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: 8px;
    margin-top: 0;
    text-align: center;
}

/* ===== IMAGE BANNER SLIDER ===== */
.banner-slider {
    position: relative;
    width: 100%;
    margin-bottom: 28px;
    border-radius: 16px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid var(--gold); /* Golden outline */
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.2); /* Slight golden glow */
}

.banner-track {
    display: flex;
    /* 28s total: 7 slides × 4s each (3s display + 1s transition) */
    animation: bannerSlide 28s ease-in-out infinite;
}

.banner-slide {
    flex-shrink: 0;
    width: 100%;
    position: relative;
    overflow: hidden;
}

.banner-slide img {
    width: 100%;
    height: 100%; /* Ensure it takes full height of container */
    min-height: 150px; /* Maintain height */
    display: block;
    object-fit: fill; /* Stretch to fill container, ignoring aspect ratio */
}

/* Diagonal Light Sweep Effect for Banner Slides */
.banner-slide::after {
    content: '';
    position: absolute;
    top: 0;
    left: -150%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        120deg,
        transparent 0%,
        transparent 40%,
        rgba(255, 255, 255, 0.25) 50%,
        transparent 60%,
        transparent 100%
    );
    animation: lightSweepDiagonal 2.5s ease-in-out infinite;
    pointer-events: none;
}

@keyframes lightSweepDiagonal {
    0% {
        left: -150%;
    }
    100% {
        left: 150%;
    }
}

/* Slide animation: pause on each slide, then slide to next */
/* 7 slides: each slide shows for ~3.43s, transitions for ~0.57s */
@keyframes bannerSlide {
    0% { transform: translateX(0); }
    12.14% { transform: translateX(0); }
    14.28% { transform: translateX(-100%); }
    26.42% { transform: translateX(-100%); }
    28.57% { transform: translateX(-200%); }
    40.71% { transform: translateX(-200%); }
    42.85% { transform: translateX(-300%); }
    55% { transform: translateX(-300%); }
    57.14% { transform: translateX(-400%); }
    69.28% { transform: translateX(-400%); }
    71.42% { transform: translateX(-500%); }
    83.57% { transform: translateX(-500%); }
    85.71% { transform: translateX(-600%); }
    97.85% { transform: translateX(-600%); }
    100% { transform: translateX(-700%); }
}

/* Banner Glow Effect */
.banner-slider::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(135deg, var(--primary), var(--secondary), var(--primary));
    border-radius: 18px;
    z-index: -1;
    opacity: 0.5;
    filter: blur(8px);
}

/* Primary Button */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    text-decoration: none;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 3px;
    padding: 18px 36px;
    border-radius: 50px;
    transition: all 0.3s ease;
    box-shadow: 0 8px 32px rgba(168, 85, 247, 0.3);
    position: relative;
    overflow: hidden;
}

/* Diagonal Light Sweep Effect for Button */
.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        120deg,
        transparent 0%,
        transparent 40%,
        rgba(255, 255, 255, 0.4) 50%,
        transparent 60%,
        transparent 100%
    );
    animation: btnLightSweepDiagonal 2s ease-in-out infinite;
    pointer-events: none;
}

@keyframes btnLightSweepDiagonal {
    0% {
        left: -100%;
    }
    100% {
        left: 200%;
    }
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(168, 85, 247, 0.4);
}

.btn-arrow {
    font-size: 18px;
    transition: transform 0.3s ease;
}

.btn-primary:hover .btn-arrow {
    transform: translateX(4px);
}

/* ===== MENTOR CARD ===== */
.mentor-header-top {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 8px; /* Drastically reduced from 12px */
}

.mentor-avatar {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 800;
    color: white;
    flex-shrink: 0;
}

.mentor-identity {
    display: flex;
    flex-direction: column;
}

.mentor-label {
    font-size: 15px;
    font-weight: 600;
    color: var(--primary-light);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 4px;
    display: block;
}

.mentor-name {
    font-size: 30px;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1.1;
    margin-bottom: 0;
}

.mentor-bio-text {
    font-size: 18px; /* Large base font size */
    color: var(--text-secondary);
    line-height: 1.2;
    margin-bottom: 10px;
    width: 100%;
    max-width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 12px 12px;
    position: relative;
    overflow: hidden;
    font-weight: 700;
    text-transform: uppercase;
}

.bio-main-text {
    display: block;
    text-align: center !important; /* CENTERED on all versions */
    white-space: nowrap !important;
    width: 100%;
    font-size: 18px; /* Base font size - JS will override dynamically */
    overflow: visible; /* Allow text to be visible during scaling */
}

.bio-receba {
    display: block;
    text-align: center !important; /* Force center alignment */
    white-space: nowrap !important;
    width: 100%;
    margin-top: 8px; /* Space between lines */
    font-size: 18px; /* Base font size - JS will override to match main text dynamically */
    margin-left: auto;
    margin-right: auto;
}

.mentor-bio-text::after {
    content: '';
    position: absolute;
    top: 0;
    left: -150%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        120deg,
        transparent 0%,
        transparent 40%,
        rgba(255, 255, 255, 0.1) 50%,
        transparent 60%,
        transparent 100%
    );
    animation: lightSweepDiagonal 3s ease-in-out infinite;
    pointer-events: none;
}

.mentor-desc {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 24px;
}

/* Features Grid */
.features-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 24px;
}

.feature {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.2);
    border-radius: 12px;
    padding: 14px 16px;
}

.feature-icon {
    font-size: 16px;
    flex-shrink: 0;
}

.feature-text {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-primary);
    line-height: 1.5;
}

/* CTA Box */
.cta-box {
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.15), rgba(6, 182, 212, 0.15));
    border: 1px solid rgba(168, 85, 247, 0.3);
    border-radius: 16px;
    padding: 20px;
    display: flex;
    gap: 14px;
    margin-bottom: 24px;
}

.cta-icon {
    font-size: 24px;
    flex-shrink: 0;
}

.cta-text {
    font-size: 12px;
    font-weight: 500;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* Contact Buttons */
.contact-btns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 12px;
    height: 42px;
}

.contact-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 0px;
    border-radius: 14px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
    color: white;
    transition: all 0.3s ease;
    height: 42px;
}

.contact-btn img {
    width: 20px;
    height: 20px;
}

.contact-btn.whatsapp {
    background: linear-gradient(180deg, #25D366, #128C7E);
}

.contact-btn.telegram {
    background: linear-gradient(180deg, #0088cc, #005f99);
}

.contact-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.group-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, var(--primary), #ff6f00);
    border-radius: 14px;
    text-decoration: none;
    font-size: 12px;
    font-weight: 700;
    color: white;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.group-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(168, 85, 247, 0.3);
}

/* ===== RTP IFRAME ===== */
.rtp-iframe-wrapper {
    position: relative;
    margin-bottom: 24px;
}

/* Shockwave effect - multiple ripples emanating from border */
.rtp-iframe-wrapper::before,
.rtp-iframe-wrapper::after {
    content: '';
    position: absolute;
    top: -4px;
    left: -4px;
    right: -4px;
    bottom: -4px;
    border: 2px solid rgba(212, 175, 55, 0.6);
    border-radius: 16px;
    pointer-events: none;
    animation: shockwave 3s ease-out infinite;
}

.rtp-iframe-wrapper::after {
    animation-delay: 1.5s;
}

@keyframes shockwave {
    0% {
        transform: scale(1);
        opacity: 0.8;
        border-color: rgba(212, 175, 55, 0.8);
    }
    50% {
        transform: scale(1.03);
        opacity: 0.4;
        border-color: rgba(212, 175, 55, 0.5);
    }
    100% {
        transform: scale(1.06);
        opacity: 0;
        border-color: rgba(212, 175, 55, 0);
    }
}

.rtp-iframe-container {
    border-radius: 12px;
    overflow: hidden;
    background: #0a0a14;
    border: 2px solid #d4af37;
    box-shadow: 0 0 25px rgba(212, 175, 55, 0.2), 
                0 0 50px rgba(212, 175, 55, 0.1),
                inset 0 0 0 1px rgba(212, 175, 55, 0.15);
    position: relative;
    z-index: 1;
    margin-bottom: 15px;

}

.rtp-iframe {
    width: 100%;
    height: 800px;
    border: none;
    display: block;
}

/* Hide iframe internal scrollbar if possible */
.rtp-iframe-container::-webkit-scrollbar {
    display: none;
    margin-bottom: 15px;
}

/* ===== BONUS CARD ===== */
.card-bonus {
    background: linear-gradient(135deg, rgba(156, 39, 176, 0.15), rgba(255, 111, 0, 0.1));
    border-color: rgba(156, 39, 176, 0.3);
}

.bonus-header {
    text-align: center;
    margin-bottom: 16px;
}

.bonus-emoji {
    font-size: 40px;
    display: block;
    margin-bottom: 12px;
}

.bonus-title {
    font-size: 20px;
    font-weight: 800;
    background: linear-gradient(135deg, #ff6f00, var(--primary-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.bonus-subtitle {
    text-align: center;
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 24px;
}

/* Steps List */
.steps-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 24px;
}

.step-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;
}

.step-num {
    width: 28px;
    height: 28px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
    color: white;
    flex-shrink: 0;
}

.step-text {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-primary);
    line-height: 1.6;
}

/* ===== FOOTER ===== */
.footer {
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.3);
    border-radius: 16px;
    padding: 24px;
    text-align: center;
}

.footer-icon {
    font-size: 24px;
    margin-bottom: 12px;
}

.footer-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--warning);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 12px;
}

.footer-text {
    font-size: 12px;
    font-weight: 500;
    color: var(--text-secondary);
    line-height: 1.8;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 480px) {
    .container {
        padding: 0px 16px; /* User set */
    }

    .brand-logos {
        top: -35px; /* Half of 70px logo height */
        gap: 15px;
    }

    .brand-logo {
        height: 70px; /* Reduced from 90px for compact mobile view */
    }

    .brand-logo[alt="POPVAI"] {
        height: 60px; /* Smaller than POPLUZ logo on mobile */
    }

    .card {
        padding: 16px 14px; /* Reduced padding from 24px 20px */
        border-radius: 20px;
        margin-bottom: 16px; /* Reduced bottom margin */
        overflow: visible; /* Ensure logos are visible */
    }

    .card-mentor {
        margin-top: 30px; /* Reduced from 40px */
        padding-top: 35px; /* Increased to 35px to add 10px spacing */
    }

    /* Mentor Section Compaction */
    .mentor-header-top {
        margin-bottom: 8px; /* Reduced from 8px */
    }

    .mentor-label {
        font-size: 13px; /* Slightly smaller on mobile but still readable */
        margin-bottom: 2px;
    }

    .mentor-name {
        font-size: 24px; /* Reduced from 30px to fit better */
    }

    .mentor-bio-text {
        font-size: 13px;
        padding: 10px 12px;
        padding-right: 12px;
        margin-bottom: 10px;
        overflow: hidden; /* Clip overflow but JS ensures text fits */
    }

    .bio-main-text {
        font-size: 13px; /* Base font size - JS will override dynamically */
        text-align: center !important; /* CENTERED on mobile */
        white-space: nowrap !important; /* KEEP SINGLE LINE */
        overflow: visible !important; /* Allow text to be visible - JS will scale it */
        max-width: 100%;
    }

    .bio-receba {
        font-size: 13px; /* Base font size - JS will override to match main text dynamically */
        text-align: center !important; /* Ensure centered on mobile */
        white-space: nowrap !important;
    }

    .contact-btns {
        gap: 8px;
        margin-bottom: 10px;
    }

    .contact-btn {
        padding: 14px; /* Reduced padding */
    }

    .group-btn {
        padding: 14px;
    }

    /* Launch Section Compaction */
    .launch-badge {
        padding: 6px 16px;
        margin-bottom: 8px;
        font-size: 11px;
    }

    .launch-title {
        font-size: 24px;
        margin-bottom: 2px;
    }

    .launch-subtitle {
        font-size: 14px;
        margin-bottom: 4px;
    }

    .launch-date {
        margin-bottom: 16px; /* Reduced from 24px */
    }

    .date-day {
        font-size: 56px;
        margin-bottom: 0px;
        line-height: 0.9;
    }

    .date-month {
        font-size: 20px;
        letter-spacing: 4px;
    }

    .banner-slider {
        margin-bottom: 16px; /* Reduced from 28px */
        border-radius: 12px;
    }

    .btn-primary {
        padding: 14px 24px;
        font-size: 12px;
        letter-spacing: 2px;
    }

    .footer {
        padding: 16px;
    }
}
