/* ==========================================
   RandyAI Website Styles - Premium Refresh
   Aesthetics: Modern Tech, Glassmorphism, Vibrant Gradients
   ========================================== */

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

:root {
    /* Premium V2 Palette - Elite Dark Mode */
    --v2-bg: #030712;
    --v2-card-bg: rgba(17, 24, 39, 0.4);
    --v2-cyan: #06b6d4;
    --v2-violet: #7c3aed;
    --v2-emerald: #10b981;
    --v2-warning: #f59e0b;
    --v2-danger: #ef4444;
    --v2-white: #f3f4f6;
    --v2-muted: #94a3b8;
    --v2-border-color: rgba(255, 255, 255, 0.08);
    --grad-deep: linear-gradient(135deg, #020617 0%, #0f172a 100%);

    /* V2 Accents & Glass */
    --v2-grad-main: linear-gradient(135deg, var(--v2-cyan) 0%, var(--v2-violet) 100%);
    --v2-blur: blur(20px);
    --v2-border: 1px solid var(--v2-border-color);
    --v2-radius: 24px;
    --v2-transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);

    /* Original V1 Helpers (Legacy Compatibility) */
    --primary-green: #4a9b7f;
    --primary-orange: #f59e42;
    --grad-primary: linear-gradient(135deg, var(--primary-green) 0%, #b8d8be 100%);
    --grad-accent: linear-gradient(135deg, var(--primary-orange) 0%, #fbbf24 100%);
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    color: var(--v2-white);
    line-height: 1.6;
    background-color: var(--v2-bg);
    overflow-x: hidden;
    position: relative;
}

/* Background Atmosphere */
.v2-atmosphere {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.blob {
    position: absolute;
    width: 800px;
    height: 800px;
    background: var(--v2-cyan);
    filter: blur(150px);
    opacity: 0.05;
    border-radius: 50%;
    animation: move 30s infinite alternate;
}

.blob-2 {
    background: var(--v2-violet);
    right: -100px;
    top: -100px;
    animation-delay: -5s;
}

.blob-3 {
    background: var(--v2-emerald);
    left: -100px;
    bottom: -100px;
    animation-delay: -10s;
}

@keyframes move {
    from {
        transform: translate(0, 0) rotate(0);
    }

    to {
        transform: translate(100px, 100px) rotate(360deg);
    }
}

h1,
h2,
h3,
h4 {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 800;
    letter-spacing: -0.02em;
    text-align: center;
}

/* Typography Scale */
h1 {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    line-height: 1.1;
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1.2;
}

h3 {
    font-size: 1.75rem;
}

p {
    font-size: 1.1rem;
    color: var(--text-muted);
}

/* Layout Components */
/* Layout Components & Centering */
.container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

/* Section Divider "The Black Line" */
.section-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    width: 100%;
    margin: 4rem 0;
}

.section-divider.dark {
    background: linear-gradient(90deg, transparent, rgba(0, 0, 0, 0.5), transparent);
}


/* ==========================================
   Navigation
   ========================================== */
.navbar {
    background: rgba(2, 6, 23, 0.5);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 1rem 0;
}

.nav-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
}

.logo img {
    height: 60px;
    /* Randy favicon looks better slightly larger */
    width: auto;
    transition: var(--v2-transition);
    filter: drop-shadow(0 0 10px rgba(6, 182, 212, 0.2));
}

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

.nav-link {
    color: #ffffff;
    /* pure white for primary contrast */
    text-decoration: none;
    font-weight: 700;
    font-size: 0.95rem;
    padding: 0.5rem 0;
    position: relative;
    transition: var(--v2-transition);
    opacity: 0.9;
}

.nav-link:hover,
.nav-link.active {
    color: var(--v2-cyan);
    opacity: 1;
    text-shadow: none;
    /* remove blurry shadow for clarity */
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--grad-accent);
    transition: var(--transition);
}

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

.chat-link {
    color: var(--primary-orange) !important;
}

.btn-shop {
    background: var(--grad-accent);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.9rem;
    box-shadow: 0 4px 15px rgba(245, 158, 66, 0.3);
    transition: var(--transition);
}

.btn-shop:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(245, 158, 66, 0.4);
}

/* ==========================================
   Hero Section
   ========================================== */
.hero {
    padding: 16rem 0 6rem;
    background: var(--grad-deep);
    position: relative;
    overflow: hidden;
    color: white;
}

.hero::before {
    content: '';
    position: absolute;
    top: -20%;
    right: -10%;
    width: 50vw;
    height: 50vw;
    background: radial-gradient(circle, rgba(74, 155, 127, 0.2) 0%, transparent 70%);
    z-index: 1;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 3rem;
    position: relative;
    z-index: 2;
}

.hero-text {
    width: 100%;
}

.hero-title {
    margin-bottom: 1.5rem;
}

.highlight {
    background: var(--grad-accent);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 2px 10px rgba(245, 158, 66, 0.2));
}

.hero-subtitle {
    font-size: 1.25rem;
    line-height: 1.6;
    opacity: 0.9;
    margin: 0 auto 2.5rem;
    max-width: 800px;
    text-align: center;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 1.25rem;
    flex-wrap: wrap;
}

.hero-buttons .btn {
    min-width: 240px;
}

.btn {
    padding: 1rem 2.25rem;
    border-radius: 12px;
    font-weight: 700;
    transition: var(--transition);
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    font-size: 1.1rem;
}

.btn-primary {
    background: var(--grad-accent);
    color: white;
    box-shadow: 0 10px 30px rgba(245, 158, 66, 0.2);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(245, 158, 66, 0.3);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary-green);
    color: var(--primary-green);
}

.btn-outline:hover {
    background: var(--primary-green);
    color: white;
}

.logo-showcase {
    max-width: 650px;
    width: 90%;
    border-radius: 30px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
    animation: floating 6s ease-in-out infinite;
}

@keyframes floating {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-20px);
    }
}

/* ==========================================
   Features
   ========================================== */
.features {
    padding: 3rem 0;
    background: transparent;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.feature-card {
    padding: 2.5rem 2rem;
    background: var(--v2-card-bg);
    backdrop-filter: var(--v2-blur);
    border-radius: 32px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid #f1f5f9;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at top right, rgba(74, 155, 127, 0.05), transparent 70%);
    opacity: 0;
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-20px) scale(1.02);
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.1), 0 0 30px rgba(74, 155, 127, 0.15);
    border-color: var(--primary-green-light);
}

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

.feature-icon {
    width: 100px;
    height: 100px;
    background: rgba(74, 155, 127, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(74, 155, 127, 0.2);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
}

.feature-card:hover .feature-icon {
    background: var(--grad-primary);
    transform: rotate(10deg) scale(1.15);
    box-shadow: 0 15px 30px rgba(74, 155, 127, 0.3);
    border-color: transparent;
}

.feature-icon img {
    width: 60px;
    height: 60px;
    border-radius: 0;
    margin-bottom: 0;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.1));
    transition: var(--transition);
}

.feature-card:hover .feature-icon img {
    filter: brightness(0) invert(1) drop-shadow(0 4px 6px rgba(0, 0, 0, 0.2));
}

.feature-card h3 {
    margin-bottom: 1rem;
    color: var(--v2-white, #ffffff);
}

/* ==========================================
   Team Section
   ========================================== */
.team-section {
    padding: 6rem 0;
    background: var(--v2-bg, #030712);
    position: relative;
    overflow: hidden;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 3rem;
}

.team-card {
    background: var(--v2-card-bg, rgba(17, 24, 39, 0.6));
    border: 1px solid var(--v2-border-color, rgba(255, 255, 255, 0.1));
    backdrop-filter: var(--v2-blur, blur(20px));
    -webkit-backdrop-filter: var(--v2-blur, blur(20px));
    padding: 3.5rem 3rem;
    border-radius: 40px;
    text-align: center;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3), 0 0 20px rgba(6, 182, 212, 0.05);
    transition: var(--v2-transition);
    position: relative;
    overflow: hidden;
}

.team-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--v2-grad-main);
    opacity: 0.5;
}

.team-card:hover {
    transform: translateY(-15px);
    border-color: var(--v2-cyan);
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.5), 0 0 40px rgba(6, 182, 212, 0.2);
}

.team-image {
    width: 200px;
    height: 200px;
    border-radius: 30px;
    margin-bottom: 2.5rem;
    border: 4px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    object-fit: cover;
}

.placeholder-image {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    margin: 0 auto 2rem;
    background: var(--grad-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    color: white;
}

.team-card h3 {
    color: var(--v2-white, #ffffff);
    font-size: 2.5rem;
    margin-bottom: 1.25rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.team-card p {
    color: var(--v2-muted, rgba(255, 255, 255, 0.7));
    line-height: 1.8;
    font-size: 1.15rem;
}

.team-role {
    color: var(--primary-orange);
    text-transform: uppercase;
    font-size: 0.85rem;
    font-weight: 800;
    letter-spacing: 0.15em;
    margin-bottom: 1.5rem;
    display: block;
}

/* ==========================================
   CTA Section
   ========================================== */
.cta-section {
    padding: 4rem 0;
    background: var(--grad-deep);
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-content h2 {
    margin-bottom: 1.5rem;
}

.cta-content p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 3rem;
}

/* ==========================================
   Modals
   ========================================== */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(8px);
    z-index: 2000;
    padding: 2rem;
}

.modal-content {
    background: var(--v2-bg, #030712);
    width: 95vw;
    max-width: 1200px;
    height: 90vh;
    margin: 0 auto;
    border-radius: 24px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 25px 75px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-header {
    padding: 1.5rem 2rem;
    background: var(--v2-bg, #030712);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: white;
}

.modal-header h3 {
    margin: 0;
}

.close-modal {
    font-size: 2rem;
    cursor: pointer;
    line-height: 1;
}

.modal-body {
    flex: 1;
}

.modal-body iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* ==========================================
   Footer - V2 Premium
   ========================================== */
.footer {
    padding: 6rem 0;
    background: rgba(2, 6, 23, 0.9);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 4rem;
    text-align: center;
    width: 100%;
    align-items: start;
}

.footer-logo {
    max-height: 35px;
    max-width: 100%;
    width: auto;
    object-fit: contain;
    margin: 0 auto 2rem;
    display: block;
    filter: brightness(1.1);
    opacity: 0.9;
}

.download-section {
    padding: 6rem 0;
    text-align: center;
    background: rgba(255, 255, 255, 0.02);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.app-badges {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.download-badge img {
    height: 48px;
    transition: var(--transition);
}

.download-badge:hover img {
    transform: translateY(-2px);
    filter: brightness(1.2);
}

.footer-section h4 {
    color: var(--v2-white);
    margin-bottom: 2rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 1rem;
}

.footer-links a {
    color: var(--v2-muted);
    text-decoration: none;
    transition: var(--v2-transition);
}

.footer-links a:hover {
    color: var(--v2-cyan);
    padding-left: 0;
    /* Reset hover padding for centering */
}

.footer-bottom {
    padding-top: 3rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
}

/* ==========================================
   Responsive
   ========================================== */
@media (max-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-text {
        text-align: center;
    }

    .hero-buttons {
        justify-content: center;
    }

    .footer-content {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .mobile-menu-toggle {
        display: flex;
        flex-direction: column;
        gap: 6px;
    }

    .mobile-menu-toggle span {
        width: 30px;
        height: 3px;
        background: var(--text-dark);
        border-radius: 3px;
    }

    .hero {
        padding-top: 14rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
}

/* Mobile Menu Visibility Overlay */
.nav-links.active {
    display: flex;
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background: #0f172a;
    flex-direction: column;
    padding: 2rem;
    gap: 1.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.app-badge {
    transition: var(--transition);
}

.app-badge:hover {
    transform: scale(1.05);
    filter: brightness(1.1);
}

/* Fixed Global Modal Custom Styles */
body #chatModal {
    z-index: 10000 !important;
}

body .modal-content {
    height: 92vh !important;
    width: 95vw !important;

}

/* ==========================================
   Quiz Ad Section (Home Page Refresh)
   ========================================== */
.quiz-ad-section {
    padding: 10rem 0;
    background: radial-gradient(circle at bottom left, #1e293b, #020617);
    position: relative;
    overflow: hidden;
}

.quiz-ad-section::before {
    content: '';
    position: absolute;
    top: -20%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(241, 179, 65, 0.05) 0%, transparent 70%);
}

.quiz-ad-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 48px;
    padding: 3rem 4rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 4rem;
    color: white;
    position: relative;
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.6), inset 0 0 20px rgba(255, 255, 255, 0.02);
    overflow: hidden;
    max-width: 1000px;
    margin: 0 auto;
}

.quiz-ad-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--grad-accent);
}

.quiz-ad-image-container {
    width: 260px;
    height: 260px;
    flex-shrink: 0;
    position: relative;
    z-index: 2;
    margin: 0 auto;
}

.quiz-ad-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 40px;
    transition: all 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 4px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
}

.quiz-ad-card:hover .quiz-ad-image-container img {
    transform: translateY(-10px) rotate(3deg) scale(1.05);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 50px 100px rgba(0, 0, 0, 0.6);
}

.quiz-ad-tag {
    display: inline-block;
    padding: 0.4rem 1rem;
    background: rgba(59, 130, 246, 0.1);
    color: #60a5fa;
    border-radius: 100px;
    font-weight: 700;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(59, 130, 246, 0.2);
}

.quiz-ad-title {
    font-size: 2.8rem;
    margin-bottom: 1.25rem;
    line-height: 1.1;
    font-weight: 800;
    color: white !important;
}

.quiz-ad-text {
    font-size: 1.15rem;
    opacity: 0.9;
    margin: 0 auto 2.5rem;
    max-width: 650px;
    line-height: 1.6;
    color: #cbd5e1 !important;
}

/* ==========================================
   Alarm Frenzy Section (Animated Teaser)
   ========================================== */
.alarm-frenzy-ad {
    padding: 12rem 0;
    background: linear-gradient(to bottom, rgba(2, 6, 23, 0.8), rgba(2, 6, 23, 0.9)),
        url('../images/alarm-frenzy-teaser.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
    border-top: 2px solid rgba(239, 68, 68, 0.3);
    border-bottom: 2px solid rgba(239, 68, 68, 0.3);
    box-shadow: inset 0 0 100px rgba(0, 0, 0, 0.8);
    animation: alarmPulse 4s infinite alternate;
}

@keyframes alarmPulse {
    0% {
        border-color: rgba(239, 68, 68, 0.3);
        box-shadow: inset 0 0 100px rgba(0, 0, 0, 0.8);
    }

    100% {
        border-color: rgba(239, 68, 68, 0.6);
        box-shadow: inset 0 0 120px rgba(239, 68, 68, 0.1);
    }
}

.alarm-frenzy-content {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.alarm-frenzy-title {
    font-size: 4.5rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: -0.02em;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #fff 0%, #ff4d4d 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 30px rgba(239, 68, 68, 0.5));
    animation: titleGlow 2s ease-in-out infinite alternate;
}

@keyframes titleGlow {
    from {
        filter: drop-shadow(0 0 20px rgba(239, 68, 68, 0.4));
        transform: scale(1);
    }

    to {
        filter: drop-shadow(0 0 40px rgba(239, 68, 68, 0.8));
        transform: scale(1.02);
    }
}

.alarm-frenzy-text {
    font-size: 1.8rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 4rem;
    line-height: 1.2;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.alarm-frenzy-btn {
    background: linear-gradient(135deg, #ef4444 0%, #991b1b 100%);
    box-shadow: 0 15px 40px rgba(220, 38, 38, 0.4);
    border: 2px solid rgba(255, 255, 255, 0.2);
    padding: 1.5rem 4rem;
    font-size: 1.35rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.alarm-frenzy-btn:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 20px 50px rgba(220, 38, 38, 0.6);
    border-color: white;
}



/* ==========================================
   NFT Showcase Section (Water is Life)
   ========================================== */
.nft-showcase-section {
    padding: 8rem 0;
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    position: relative;
    overflow: hidden;
}

.nft-showcase-section::before {
    content: '';
    position: absolute;
    top: -30%;
    left: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(245, 158, 66, 0.08) 0%, transparent 70%);
}

.nft-showcase-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 48px;
    padding: 5rem 3rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    color: white;
    position: relative;
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.6);
    max-width: 1200px;
    margin: 0 auto;
}

.nft-showcase-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--grad-accent);
}

.nft-content {
    z-index: 2;
}

.nft-badge {
    display: inline-block;
    padding: 0.6rem 1.2rem;
    background: rgba(245, 158, 66, 0.15);
    color: #fbbf24;
    border-radius: 100px;
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1.5rem;
}

.nft-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    margin-bottom: 0.5rem;
    font-weight: 800;
    line-height: 1.1;
}

.nft-subtitle {
    font-size: 1.5rem;
    color: #cbd5e1;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.nft-description {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #cbd5e1;
    margin-bottom: 2.5rem;
}

.nft-features {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.nft-feature {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.nft-feature-icon {
    font-size: 2rem;
    flex-shrink: 0;
}

.nft-feature-text strong {
    display: block;
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
    color: white;
}

.nft-feature-text p {
    color: #94a3b8;
    font-size: 0.95rem;
    margin: 0;
}

.nft-cta-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.nft-status {
    color: #fbbf24;
    font-weight: 700;
    font-size: 1.1rem;
    margin: 0;
}

.nft-image-showcase {
    position: relative;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nft-plunger {
    position: absolute;
    object-fit: contain;
    filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.3));
    transition: transform 0.3s ease;
}

.nft-plunger-main {
    width: 250px;
    height: 250px;
    z-index: 3;
    animation: floatMain 4s ease-in-out infinite;
}

.nft-plunger-secondary {
    width: 180px;
    height: 180px;
    top: 20px;
    left: -40px;
    z-index: 2;
    opacity: 0.7;
    animation: floatSecondary 5s ease-in-out infinite;
}

.nft-plunger-tertiary {
    width: 160px;
    height: 160px;
    bottom: 30px;
    right: -30px;
    z-index: 1;
    opacity: 0.6;
    animation: floatTertiary 6s ease-in-out infinite;
}

.nft-plunger:hover {
    transform: scale(1.1) rotate(5deg);
}

@keyframes floatMain {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(-20px) rotate(5deg);
    }
}

@keyframes floatSecondary {

    0%,
    100% {
        transform: translateY(0) rotate(-10deg);
    }

    50% {
        transform: translateY(-15px) rotate(-5deg);
    }
}

@keyframes floatTertiary {

    0%,
    100% {
        transform: translateY(0) rotate(10deg);
    }

    50% {
        transform: translateY(-25px) rotate(15deg);
    }
}

@media (max-width: 1024px) {
    .nft-showcase-card {
        grid-template-columns: 1fr;
        gap: 3rem;
        padding: 4rem 2rem;
    }

    .nft-image-showcase {
        height: 300px;
    }

    .nft-plunger-main {
        width: 200px;
        height: 200px;
    }

    .nft-plunger-secondary {
        width: 140px;
        height: 140px;
    }

    .nft-plunger-tertiary {
        width: 120px;
        height: 120px;
    }
}

@media (max-width: 640px) {
    .nft-cta-buttons {
        flex-direction: column;
    }

    .nft-cta-buttons .btn {
        width: 100%;
    }
}

/* ==========================================
   Leaderboard Styles - VIBRANT NEON EDITION
   ========================================== */
.leaderboard-section {
    padding: 6rem 0;
    background: linear-gradient(135deg, #0a0a1f 0%, #1a0f2e 50%, #150a2e 100%);
    position: relative;
    overflow: hidden;
    border-top: 3px solid rgba(147, 51, 234, 0.5);
}

.leaderboard-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 20% 20%, rgba(147, 51, 234, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(236, 72, 153, 0.1) 0%, transparent 50%);
    animation: pulseGlow 8s ease-in-out infinite alternate;
}

@keyframes pulseGlow {
    0% {
        opacity: 0.3;
    }

    100% {
        opacity: 0.7;
    }
}

.leaderboard-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 2;
}

.leaderboards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
    gap: 3rem;
    margin-top: 2rem;
}

.leaderboard-header {
    text-align: center;
    margin-bottom: 4rem;
}

.leaderboard-header h2 {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    background: linear-gradient(135deg, #fbbf24, #f59e0b, #ec4899, #8b5cf6);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1rem;
    font-weight: 900;
    text-shadow: 0 0 40px rgba(139, 92, 246, 0.5);
    animation: rainbowShift 5s ease-in-out infinite;
    filter: drop-shadow(0 0 20px rgba(236, 72, 153, 0.4));
}

@keyframes rainbowShift {

    0%,
    100% {
        filter: drop-shadow(0 0 20px rgba(139, 92, 246, 0.6));
    }

    50% {
        filter: drop-shadow(0 0 30px rgba(236, 72, 153, 0.8));
    }
}

.leaderboard-card-wrapper {
    flex: 1;
}

.leaderboard-type-title {
    font-size: 1.6rem;
    font-weight: 900;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: #ffffff;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
}

.leaderboard-type-title i,
.leaderboard-type-title .emoji {
    font-size: 2rem;
    filter: drop-shadow(0 0 10px currentColor);
}

.leaderboard-card {
    background: rgba(17, 24, 39, 0.8);
    backdrop-filter: blur(20px);
    border-radius: 32px;
    overflow: hidden;
    box-shadow:
        0 25px 50px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(139, 92, 246, 0.3),
        inset 0 0 30px rgba(139, 92, 246, 0.05);
    border: 2px solid rgba(139, 92, 246, 0.4);
    position: relative;
    transition: all 0.3s ease;
}

.leaderboard-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(139, 92, 246, 0.1), transparent);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% {
        left: -100%;
    }

    100% {
        left: 100%;
    }
}

.leaderboard-card:hover {
    transform: translateY(-5px);
    box-shadow:
        0 35px 60px rgba(0, 0, 0, 0.6),
        0 0 0 2px rgba(139, 92, 246, 0.6),
        0 0 40px rgba(139, 92, 246, 0.3);
}

.leaderboard-table {
    width: 100%;
    border-collapse: collapse;
}

.leaderboard-table th {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.2), rgba(236, 72, 153, 0.2));
    padding: 1.5rem 1.5rem;
    text-align: left;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: #fbbf24;
    font-weight: 900;
    border-bottom: 2px solid rgba(139, 92, 246, 0.5);
    text-shadow: 0 0 10px rgba(251, 191, 36, 0.5);
}

.leaderboard-table td {
    padding: 1.5rem 1.5rem;
    border-bottom: 1px solid rgba(139, 92, 246, 0.15);
    vertical-align: middle;
    transition: all 0.3s ease;
}

.leaderboard-table tr:last-child td {
    border-bottom: none;
}

.leaderboard-table tr:hover td {
    background: linear-gradient(90deg, rgba(139, 92, 246, 0.15), rgba(236, 72, 153, 0.1));
    box-shadow: inset 0 0 20px rgba(139, 92, 246, 0.2);
}

/* Alarm Frenzy Specific Row Highlight */
.alarm-frenzy-board tr:hover td {
    background: linear-gradient(90deg, rgba(236, 72, 153, 0.15), rgba(139, 92, 246, 0.1));
    box-shadow: inset 0 0 20px rgba(236, 72, 153, 0.2);
}

.rank-col {
    width: 70px;
    text-align: center !important;
}

.rank-badge {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 1.1rem;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.3), rgba(236, 72, 153, 0.3));
    color: #a78bfa;
    box-shadow: 0 0 15px rgba(139, 92, 246, 0.4);
    border: 2px solid rgba(167, 139, 250, 0.3);
}

.rank-1 .rank-badge {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    color: #1a1a1a;
    box-shadow:
        0 8px 20px rgba(251, 191, 36, 0.4),
        0 0 30px rgba(251, 191, 36, 0.6),
        inset 0 0 10px rgba(255, 255, 255, 0.3);
    border: 2px solid #fcd34d;
    animation: goldPulse 2s ease-in-out infinite;
    font-size: 1.3rem;
}

@keyframes goldPulse {

    0%,
    100% {
        box-shadow:
            0 8px 20px rgba(251, 191, 36, 0.4),
            0 0 30px rgba(251, 191, 36, 0.6);
    }

    50% {
        box-shadow:
            0 8px 25px rgba(251, 191, 36, 0.6),
            0 0 50px rgba(251, 191, 36, 0.9);
    }
}

.rank-2 .rank-badge {
    background: linear-gradient(135deg, #e0e7ff 0%, #c7d2fe 100%);
    color: #1e1b4b;
    box-shadow:
        0 6px 18px rgba(199, 210, 254, 0.4),
        0 0 25px rgba(224, 231, 255, 0.5);
    border: 2px solid #e0e7ff;
    font-size: 1.2rem;
}

.rank-3 .rank-badge {
    background: linear-gradient(135deg, #fdba74 0%, #fb923c 100%);
    color: #1a0a00;
    box-shadow:
        0 6px 16px rgba(253, 186, 116, 0.4),
        0 0 20px rgba(251, 146, 60, 0.5);
    border: 2px solid #fcd34d;
    font-size: 1.2rem;
}

.player-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.player-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, #8b5cf6 0%, #ec4899 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    box-shadow:
        0 0 20px rgba(139, 92, 246, 0.5),
        inset 0 0 15px rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(167, 139, 250, 0.4);
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
}

.alarm-frenzy-board .player-avatar {
    background: linear-gradient(135deg, #ec4899 0%, #f43f5e 100%);
    box-shadow:
        0 0 20px rgba(236, 72, 153, 0.5),
        inset 0 0 15px rgba(255, 255, 255, 0.1);
}

.player-name {
    font-weight: 800;
    color: #ffffff;
    font-size: 1.1rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    letter-spacing: 0.02em;
}

.score-col {
    font-weight: 900;
    color: #10b981;
    font-size: 1.3rem;
    text-align: right !important;
    text-shadow: 0 0 15px rgba(16, 185, 129, 0.6);
    filter: drop-shadow(0 0 8px rgba(16, 185, 129, 0.4));
}

.alarm-frenzy-board .score-col {
    color: #ec4899;
    text-shadow: 0 0 15px rgba(236, 72, 153, 0.6);
    filter: drop-shadow(0 0 8px rgba(236, 72, 153, 0.4));
}

.date-col {
    color: #a78bfa;
    font-size: 0.85rem;
    text-align: right !important;
    text-shadow: 0 0 10px rgba(167, 139, 250, 0.3);
}

@media (max-width: 1024px) {
    .leaderboards-grid {
        grid-template-columns: 1fr;
        max-width: 700px;
        margin-left: auto;
        margin-right: auto;
    }
}

@media (max-width: 640px) {
    .date-col {
        display: none;
    }

    .leaderboard-container {
        padding: 0 1rem;
    }
}