:root {
    --bg-dark: #0b0f19;
    --bg-card: #141b2d;
    --gold: #f5c518;
    --gold-glow: rgba(245, 197, 24, 0.4);
    --text-white: #ffffff;
    --text-dim: #94a3b8;
    --gradient-gold: linear-gradient(135deg, #f5c518 0%, #d4a008 100%);
    --gradient-dark: linear-gradient(to bottom, #0b0f19, #02040a);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-white);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- Typography --- */
h1,
h2,
h3 {
    font-weight: 800;
    letter-spacing: -0.02em;
}

h1 {
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

p {
    color: var(--text-dim);
    font-size: 1.125rem;
}

.text-gradient {
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.gold {
    color: var(--gold);
}

/* --- Navigation --- */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 0;
    transition: 0.3s;
    background: rgba(11, 15, 25, 0.85);
    /* Slightly opaque initially */
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: 1px;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.btn-link {
    color: var(--text-white);
    font-weight: 600;
    font-size: 0.9rem;
    transition: 0.3s;
}

.btn-link:hover {
    color: var(--gold);
}

/* --- Buttons --- */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 8px;
    font-weight: 700;
    transition: all 0.3s ease;
    cursor: pointer;
    font-size: 1rem;
}

.btn-sm {
    padding: 8px 20px;
    font-size: 0.9rem;
}

.btn-gold {
    background: var(--gold);
    color: #000;
    border: none;
}

.btn-gold:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px var(--gold-glow);
    background: #ffd633;
}

.btn-outline {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--text-white);
    margin-left: 15px;
}

.btn-outline:hover {
    border-color: var(--text-white);
    background: rgba(255, 255, 255, 0.05);
}

.btn-block {
    display: block;
    width: 100%;
    text-align: center;
}

.glow {
    animation: pulse-glow 3s infinite;
}

@keyframes pulse-glow {
    0% {
        box-shadow: 0 0 0 0 rgba(245, 197, 24, 0.4);
    }

    70% {
        box-shadow: 0 0 0 15px rgba(245, 197, 24, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(245, 197, 24, 0);
    }
}

/* --- Hero Section --- */
.hero {
    position: relative;
    padding: 180px 0 100px;
    overflow: hidden;
    background: radial-gradient(circle at top right, #1a233a 0%, var(--bg-dark) 60%);
}

.hero-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 50px;
}

.hero-text {
    flex: 1;
    max-width: 600px;
}

.badge {
    background: rgba(245, 197, 24, 0.1);
    color: var(--gold);
    padding: 6px 14px;
    border-radius: 50px;
    text-transform: uppercase;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1px;
    display: inline-block;
    margin-bottom: 20px;
    border: 1px solid rgba(245, 197, 24, 0.2);
}

.cta-group {
    margin-top: 40px;
    margin-bottom: 50px;
}

.hero-stats {
    display: flex;
    gap: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 30px;
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-num {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-white);
}

.stat-desc {
    font-size: 0.875rem;
    color: var(--text-dim);
}

.hero-visual {
    flex: 1;
    position: relative;
}

.interface-mockup {
    background: rgba(20, 27, 45, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    position: relative;
    transform: perspective(1000px) rotateY(-10deg) rotateX(5deg);
    transition: transform 0.5s ease;
}

.interface-mockup:hover {
    transform: perspective(1000px) rotateY(0) rotateX(0);
}

.chat-bubble {
    background: rgba(255, 255, 255, 0.05);
    padding: 15px;
    border-radius: 12px;
    margin-bottom: 15px;
    font-size: 0.9rem;
    position: relative;
}

.chat-bubble.vantage {
    background: rgba(245, 197, 24, 0.1);
    border-left: 3px solid var(--gold);
    color: var(--text-white);
}

.mood-indicator,
.ai-tag {
    position: absolute;
    top: -10px;
    right: 10px;
    font-size: 0.7rem;
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: bold;
}

.mood-doubt {
    background: #ff4757;
    color: white;
}

.ai-tag {
    background: var(--gold);
    color: black;
}

.ai-processing {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    font-size: 0.8rem;
    color: var(--gold);
}

.processing-dot {
    width: 8px;
    height: 8px;
    background: var(--gold);
    border-radius: 50%;
    animation: blink 1s infinite;
}

@keyframes blink {
    50% {
        opacity: 0;
    }
}

/* --- Features Section --- */
.section-padding {
    padding: 100px 0;
}

.text-center {
    text-align: center;
}

.section-header {
    max-width: 700px;
    margin: 0 auto 60px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.feature-card {
    background: var(--bg-card);
    padding: 40px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: 0.3s;
}

.feature-card:hover {
    transform: translateY(-10px);
    border-color: var(--gold);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.feature-card .icon {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.feature-card h3 {
    margin-bottom: 15px;
    font-size: 1.5rem;
}

/* --- Audience Section --- */
.bg-darker {
    background: #05080f;
}

.row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 50px;
}

.col-text,
.col-visual {
    flex: 1;
    min-width: 300px;
}

.check-list {
    list-style: none;
    margin-top: 30px;
}

.check-list li {
    display: flex;
    gap: 20px;
    margin-bottom: 25px;
}

.check {
    background: var(--gold);
    color: #000;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    flex-shrink: 0;
    margin-top: 5px;
}

.visual-card {
    background: #1e1e1e;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    border: 1px solid #333;
}

code {
    font-family: 'Fira Code', monospace;
    color: #d4d4d4;
    font-size: 0.9rem;
}

.var {
    color: #9cdcfe;
}

.val {
    color: #ce9178;
}

.func {
    color: #dcdcaa;
}

.str {
    color: #ce9178;
}

.comment {
    color: #6a9955;
    display: block;
    margin-top: 10px;
}

/* --- Pricing --- */
.cta-section {
    position: relative;
    overflow: hidden;
}

.background-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(245, 197, 24, 0.15) 0%, transparent 70%);
    z-index: 0;
    pointer-events: none;
}

.relative {
    position: relative;
    z-index: 1;
}

.pricing-card {
    max-width: 500px;
    margin: 50px auto 0;
    background: linear-gradient(145deg, #1a2236, #141b2d);
    padding: 50px;
    border-radius: 30px;
    border: 1px solid rgba(245, 197, 24, 0.3);
    box-shadow: 0 0 50px rgba(245, 197, 24, 0.1);
}

.price {
    font-size: 4rem;
    font-weight: 800;
    color: var(--gold);
    margin: 20px 0;
}

.price .currency {
    font-size: 2rem;
    vertical-align: top;
}

.price .period {
    font-size: 1rem;
    color: var(--text-dim);
    display: block;
    margin-top: -10px;
    font-weight: 400;
}

.benefits-list {
    list-style: none;
    margin-bottom: 40px;
    text-align: left;
    display: inline-block;
}

.benefits-list li {
    margin-bottom: 15px;
    position: relative;
    padding-left: 25px;
}

.benefits-list li::before {
    content: "★";
    color: var(--gold);
    position: absolute;
    left: 0;
}

.guarantee {
    margin-top: 20px;
    font-size: 0.8rem;
    color: var(--text-dim);
}

/* --- Footer --- */
footer {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 50px 0;
    margin-top: 50px;
    text-align: center;
}

.footer-logo {
    font-weight: 800;
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.copyright {
    font-size: 0.8rem;
    color: var(--text-dim);
}

/* --- Animations --- */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s forwards;
}

.delay-1 {
    animation-delay: 0.1s;
}

.delay-2 {
    animation-delay: 0.2s;
}

.delay-3 {
    animation-delay: 0.3s;
}

.delay-4 {
    animation-delay: 0.4s;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- Testimonials Section (New) --- */
.testimonials-section {
    position: relative;
    overflow: hidden;
}

.testimonials-slider {
    width: 100%;
    margin-top: 50px;
    position: relative;
    overflow: hidden;
    padding: 20px 0;
    /* Fade mask on edges */
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.testimonials-track {
    display: flex;
    gap: 30px;
    width: max-content;
    animation: scroll 40s linear infinite;
}

.testimonials-track:hover {
    animation-play-state: paused;
}

/* Duplicating content logic handled in HTML manually or JS, 
   but for this pure CSS loop, we assume content is duplicated 
   enough to cover the scroll. Ideally width=50% transform if perfectly doubled.
   Here we just scroll a long distance and reset.
   Better approach for perfect loop:
   The track width should be big. transform translateX(-50%) means 
   we move half the total width.
   HTML structure has: [Items A] [Items A duplicated]
*/
@keyframes scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(calc(-50% - 15px));
        /* -50% of track width minus half gap */
    }
}

.testimonial-card {
    background: linear-gradient(145deg, rgba(20, 27, 45, 0.9), rgba(11, 15, 25, 0.95));
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 30px;
    border-radius: 20px;
    width: 350px;
    /* Fixed width for consistent slide */
    flex-shrink: 0;
    user-select: none;
    transition: 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-5px) scale(1.02);
    border-color: var(--gold);
    box-shadow: 0 15px 40px rgba(245, 197, 24, 0.15);
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.avatar {
    width: 50px;
    height: 50px;
    background: var(--gradient-gold);
    color: #000;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.1rem;
    box-shadow: 0 5px 15px rgba(245, 197, 24, 0.3);
}

.info h4 {
    color: var(--text-white);
    margin-bottom: 2px;
    font-size: 1rem;
}

.info span {
    color: var(--gold);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.testimonial-text {
    font-style: italic;
    color: #cbd5e1;
    line-height: 1.6;
    font-size: 0.95rem;
    margin-bottom: 20px;
}

.stats-badge {
    background: rgba(245, 197, 24, 0.1);
    color: var(--gold);
    display: inline-block;
    padding: 6px 14px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.8rem;
    border: 1px solid rgba(245, 197, 24, 0.2);
}

.cta-banner {
    margin-top: 80px;
    text-align: center;
    padding: 60px 20px;
    background: linear-gradient(180deg, rgba(20, 27, 45, 0) 0%, rgba(20, 27, 45, 0.8) 100%);
    border-radius: 30px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.cta-banner h3 {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.btn-lg {
    padding: 18px 40px;
    font-size: 1.2rem;
    margin-top: 30px;
}

/* Responsive */
@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }

    .hero-content {
        flex-direction: column;
        text-align: center;
    }

    .hero-stats {
        justify-content: center;
        flex-direction: column;
        gap: 20px;
    }

    .interface-mockup {
        transform: none;
        margin-top: 40px;
    }

    .interface-mockup:hover {
        transform: none;
    }

    .nav-container {
        padding: 0 20px;
    }

    .logo {
        font-size: 1.2rem;
    }

    .cta-banner h3 {
        font-size: 1.8rem;
    }
}

/* --- FAQ Section --- */
.faq-section {
    position: relative;
    background: radial-gradient(circle at center, #1a233a 0%, var(--bg-dark) 70%);
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: rgba(20, 27, 45, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    margin-bottom: 15px;
    overflow: hidden;
    transition: 0.3s ease;
}

.faq-item:hover {
    border-color: rgba(245, 197, 24, 0.3);
    background: rgba(20, 27, 45, 0.9);
}

.faq-item.active {
    border-color: var(--gold);
    background: rgba(20, 27, 45, 1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.faq-question {
    width: 100%;
    padding: 20px 25px;
    background: none;
    border: none;
    color: var(--text-white);
    text-align: left;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: 600;
    font-family: 'Plus Jakarta Sans', sans-serif;
    transition: 0.3s;
}

.faq-item.active .faq-question {
    color: var(--gold);
}

.faq-icon {
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--gold);
    transition: transform 0.3s ease;
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0, 1, 0, 1);
    padding: 0 25px;
}

.faq-item.active .faq-answer {
    max-height: 200px;
    /* Adjust based on content length */
    transition: max-height 0.4s cubic-bezier(1, 0, 1, 0);
    padding-bottom: 25px;
}

.faq-answer p {
    font-size: 1rem;
    color: #cbd5e1;
    line-height: 1.6;
}

/* Ensure glass effect is consistent */
.glass {
    backdrop-filter: blur(10px);
}

/* --- LOGIN PAGE V4 (Clean, Stable & Responsive) --- */

.login-page-v4 {
    margin: 0;
    padding: 0;
    top: 50%;
    left: 50%;
    width: 200vmax;
    /* Massive cover */
    height: 200vmax;
    background: radial-gradient(circle, rgba(16, 21, 34, 1) 0%, rgba(2, 2, 5, 1) 60%);
    transform: translate(-50%, -50%);
    z-index: 0;
    /* Lower z-index */
}

.auth-bg-glow {
    position: absolute;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(245, 197, 24, 0.06) 0%, transparent 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1;
    /* Lower z-index */
    animation: stablePulse 10s infinite alternate ease-in-out;
    pointer-events: none;
}

@keyframes stablePulse {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.5;
    }

    100% {
        transform: translate(-50%, -50%) scale(1.1);
        opacity: 0.8;
    }
}

.auth-container {
    width: 90%;
    max-width: 440px;
    padding: 20px;
    z-index: 10;
    position: relative;
    /* FIX: Removed opacity: 0 to guarantee visibility even if animation fails */
    animation: safeFadeIn 1s cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* Ensure visibility is locked after animation */
@keyframes safeFadeIn {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Glass Premium Card */
.glass-premium {
    background: rgba(13, 17, 28, 0.85);
    /* Slightly more opaque for readability */
    backdrop-filter: blur(40px);
    -webkit-backdrop-filter: blur(40px);
    border-radius: 28px;
    padding: 50px 40px;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 40px 100px -20px rgba(0, 0, 0, 0.9),
        inset 0 0 0 1px rgba(255, 255, 255, 0.05);
    /* Inner rim light */
    overflow: hidden;
}

/* Glowing Top Border */
.card-glow-line {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, transparent, #F5C518, transparent);
    box-shadow: 0 2px 20px rgba(245, 197, 24, 0.4);
    opacity: 0.9;
}

.auth-header {
    text-align: center;
    margin-bottom: 40px;
}

.brand-badge {
    display: inline-block;
    background: rgba(245, 197, 24, 0.1);
    color: var(--gold);
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 2px;
    margin-bottom: 25px;
    border: 1px solid rgba(245, 197, 24, 0.25);
    box-shadow: 0 0 20px rgba(245, 197, 24, 0.1);
}

.auth-header h1 {
    font-size: 2.2rem;
    color: white;
    font-weight: 800;
    margin-bottom: 15px;
    letter-spacing: -1px;
    background: linear-gradient(to bottom right, #ffffff, #cbd5e1);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.auth-header p {
    color: #94a3b8;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Input Styles */
.input-wrapper {
    margin-bottom: 25px;
}

.input-wrapper label {
    display: block;
    color: var(--gold);
    font-size: 0.7rem;
    font-weight: 700;
    margin-bottom: 10px;
    letter-spacing: 1.5px;
    padding-left: 5px;
    text-transform: uppercase;
}

.input-container {
    position: relative;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 12px;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.input-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.2rem;
    opacity: 0.6;
    pointer-events: none;
    transition: 0.3s;
}

.input-container input {
    width: 100%;
    padding: 18px 18px 18px 50px;
    /* Space for icon */
    background: transparent;
    border: none;
    color: white;
    font-family: 'Courier New', monospace;
    /* Professional tech look */
    font-weight: 700;
    font-size: 1.15rem;
    letter-spacing: 2px;
    outline: none;
}

/* Animated Border */
.input-border {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0%;
    height: 2px;
    background: var(--gold);
    transition: 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    box-shadow: 0 -2px 10px rgba(245, 197, 24, 0.5);
}

.input-container:focus-within {
    background: rgba(0, 0, 0, 0.7);
    border-color: rgba(245, 197, 24, 0.3);
    transform: translateY(-1px);
}

.input-container:focus-within .input-border {
    width: 100%;
}

.input-container:focus-within .input-icon {
    opacity: 1;
    filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.5));
}

/* Actions */
.btn-glitch {
    position: relative;
    overflow: hidden;
    font-weight: 800;
    letter-spacing: 1.5px;
    transition: 0.3s;
    background: linear-gradient(135deg, #F5C518 0%, #D4A017 100%);
    color: #000;
    border: none;
    box-shadow: 0 10px 30px -5px rgba(245, 197, 24, 0.3);
}

.btn-glitch:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 40px -5px rgba(245, 197, 24, 0.5);
    filter: brightness(1.1);
}

.btn-glitch:active {
    transform: translateY(1px);
}

/* Footer Links */
.auth-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 35px;
    padding-top: 25px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 0.85rem;
}

.back-link {
    color: #64748b;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: 0.3s;
    font-weight: 600;
}

.back-link .arrow {
    transition: transform 0.3s;
}

.back-link:hover {
    color: white;
}

.back-link:hover .arrow {
    transform: translateX(-3px);
}

.help-link {
    color: var(--gold);
    font-weight: 600;
    opacity: 0.8;
    transition: 0.3s;
}

.help-link:hover {
    opacity: 1;
    text-shadow: 0 0 15px rgba(245, 197, 24, 0.4);
    text-decoration: none;
}

.security-badge {
    text-align: center;
    margin-top: 30px;
    color: #475569;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    opacity: 0.8;
}

/* --- DASHBOARD REDESIGN (Professional V3) --- */
.dashboard-body {
    background-color: #05080F;
    color: #e2e8f0;
    font-family: 'Plus Jakarta Sans', sans-serif;
    min-height: 100vh;
}

.dashboard-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    min-height: 100vh;
    transition: 0.3s ease;
}

/* Sidebar Styling */
.sidebar {
    background: rgba(10, 14, 23, 0.95);
    border-right: 1px solid rgba(255, 255, 255, 0.03);
    padding: 30px 24px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: sticky;
    top: 0;
    height: 100vh;
}

.sidebar-header {
    margin-bottom: 40px;
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px 18px;
    color: #94a3b8;
    border-radius: 12px;
    transition: all 0.2s ease;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
}

.nav-item:hover {
    background: rgba(255, 255, 255, 0.03);
    color: white;
    transform: translateX(5px);
}

.nav-item.active {
    background: rgba(245, 197, 24, 0.1);
    color: var(--gold);
    border: 1px solid rgba(245, 197, 24, 0.15);
}

.btn-logout {
    margin-top: auto;
    width: 100%;
    padding: 14px 18px;
    background: rgba(239, 68, 68, 0.05);
    /* Very subtle red bg */
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.1);
    border-radius: 12px;
    cursor: pointer;
    text-align: left;
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: 0.3s;
}

.btn-logout:hover {
    background: rgba(239, 68, 68, 0.15);
    border-color: rgba(239, 68, 68, 0.3);
}

/* Main Content Area */
.main-content {
    padding: 40px 60px;
    max-width: 1800px;
    /* Wider for pro look */
    margin: 0 auto;
    width: 100%;
}

.top-bar {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 50px;
    animation: safeFadeIn 0.8s ease backwards;
}

.welcome-text h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: white;
    letter-spacing: -0.03em;
}

.welcome-text p {
    color: #64748b;
    font-size: 1.1rem;
}

/* User Pill Top Right */
.user-pill {
    display: flex;
    align-items: center;
    gap: 15px;
    background: rgba(255, 255, 255, 0.03);
    padding: 8px 10px 8px 20px;
    border-radius: 60px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.avatar-small {
    width: 42px;
    height: 42px;
    background: var(--gold);
    color: #000;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.1rem;
    box-shadow: 0 0 15px rgba(245, 197, 24, 0.3);
}

.badge-pill.platinum {
    background: linear-gradient(135deg, #FFD700 0%, #FDB931 100%);
    color: #000;
    font-size: 0.75rem;
    font-weight: 800;
    padding: 6px 14px;
    border-radius: 20px;
    box-shadow: 0 3px 10px rgba(253, 185, 49, 0.3);
}

/* Dashboard Cards Grid */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    /* Wider cards */
    gap: 30px;
    animation: safeFadeIn 1s ease 0.2s backwards;
}

.dash-card {
    background: rgba(15, 20, 30, 0.6);
    padding: 40px;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.04);
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 240px;
}

.dash-card:hover {
    transform: translateY(-8px);
    border-color: rgba(255, 255, 255, 0.1);
    background: rgba(20, 25, 40, 0.8);
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.5);
}

.dash-card h3 {
    font-size: 0.85rem;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 700;
    margin-bottom: 25px;
}

/* Specific Card Styling */
.status-indicator {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-size: 1.1rem;
    font-weight: 700;
    color: #2ED573;
    background: rgba(46, 213, 115, 0.08);
    /* More visible bg */
    padding: 12px 24px;
    border-radius: 12px;
    border: 1px solid rgba(46, 213, 115, 0.15);
    width: fit-content;
    margin-bottom: 10px;
}

.status-indicator .dot {
    width: 10px;
    height: 10px;
    background: #2ED573;
    border-radius: 50%;
    box-shadow: 0 0 15px rgba(46, 213, 115, 0.5);
    animation: pulse 2s infinite;
}

.plan-nametag {
    font-size: 2.2rem;
    /* Larger */
    font-weight: 800;
    color: white;
    letter-spacing: -1px;
}

.license-box {
    background: rgba(2, 2, 5, 0.5);
    /* Darker contrast */
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 16px 20px;
    border-radius: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 15px 0;
}

.license-box code {
    font-family: 'Fira Code', 'Courier New', monospace;
    font-size: 1.1rem;
    color: #e2e8f0;
    letter-spacing: 1px;
}

/* Mobile Responsive Adjustments */
@media (max-width: 900px) {
    .dashboard-layout {
        grid-template-columns: 1fr;
    }

    .sidebar {
        height: auto;
        padding: 15px 20px;
        flex-direction: row;
        align-items: center;
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        position: relative;
    }

    .sidebar-nav,
    .sidebar-footer {
        display: none;
    }

    /* Professional Mobile Menu Trigger */
    .sidebar::after {
        content: '☰';
        font-size: 1.5rem;
        color: white;
        cursor: pointer;
        padding: 5px;
    }

    .sidebar:hover .sidebar-nav {
        display: flex;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: #0B0F19;
        z-index: 100;
        padding: 20px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    }

    .main-content {
        padding: 30px 20px;
    }

    .top-bar {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }

    100% {
        transform: translateY(0px);
    }
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* Login Page Redesign */
.auth-body {
    background: radial-gradient(circle at top right, #1a233a 0%, #05080F 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    font-family: 'Plus Jakarta Sans', sans-serif;
    color: white;
    position: relative;
    overflow: hidden;
}

/* Background animated element */
.auth-body::before {
    content: '';
    position: absolute;
    width: 200vw;
    height: 200vh;
    background: radial-gradient(circle, rgba(245, 197, 24, 0.03) 0%, transparent 50%);
    animation: rotate 60s linear infinite;
    z-index: 0;
}

.auth-container {
    width: 100%;
    max-width: 420px;
    padding: 20px;
    z-index: 10;
    animation: slideInUp 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.auth-card {
    background: rgba(15, 20, 30, 0.6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 40px;
    border-radius: 30px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 40px 80px -12px rgba(0, 0, 0, 0.6);
    text-align: center;
    position: relative;
    overflow: hidden;
}

/* Gold glow line top */
.auth-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
    opacity: 0.5;
}

.auth-header {
    margin-bottom: 40px;
}

.logo-small {
    font-weight: 800;
    font-size: 0.9rem;
    letter-spacing: 3px;
    margin-bottom: 20px;
    color: var(--text-dim);
    text-transform: uppercase;
}

.auth-header h1 {
    font-size: 2.2rem;
    background: linear-gradient(135deg, #fff 0%, #cbd5e1 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 10px;
    letter-spacing: -1px;
}

.auth-header p {
    font-size: 0.95rem;
    color: var(--text-dim);
}

.input-group {
    margin-bottom: 25px;
    text-align: left;
    position: relative;
}

.input-group label {
    display: block;
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--gold);
    margin-bottom: 10px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-left: 5px;
}

.input-group input {
    width: 100%;
    padding: 18px;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    color: white;
    font-family: 'Courier New', monospace;
    font-weight: 600;
    font-size: 1.1rem;
    text-align: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    letter-spacing: 2px;
}

.input-group input:focus {
    outline: none;
    background: rgba(0, 0, 0, 0.4);
    border-color: var(--gold);
    box-shadow: 0 0 0 4px rgba(245, 197, 24, 0.1);
    transform: translateY(-2px);
}

.input-group input::placeholder {
    color: rgba(255, 255, 255, 0.2);
    letter-spacing: 1px;
}

.auth-feedback {
    min-height: 20px;
    margin-bottom: 20px;
    font-size: 0.9rem;
    text-align: center;
    opacity: 0;
    transition: 0.3s;
}

.auth-feedback.visible {
    opacity: 1;
}

.auth-feedback.error {
    color: #ff4757;
}

.auth-feedback.success {
    color: #2ed573;
}

.auth-feedback.neutral {
    color: var(--text-dim);
}

.glow-hover:hover {
    box-shadow: 0 0 25px rgba(245, 197, 24, 0.4);
}

.btn-block {
    width: 100%;
    padding: 16px;
    font-size: 1rem;
    border-radius: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.auth-footer {
    margin-top: 35px;
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 20px;
}

.auth-footer a {
    color: #64748b;
    transition: 0.2s;
    font-weight: 500;
}

.auth-footer a:hover {
    color: var(--gold);
}

/* --- DASHBOARD REDESIGN (Responsive & Minimalist) --- */
.dashboard-body {
    background-color: #05080F;
    color: #e2e8f0;
    font-family: 'Plus Jakarta Sans', sans-serif;
    min-height: 100vh;
}

.dashboard-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    min-height: 100vh;
    transition: 0.3s ease;
}

/* Sidebar Styling */
.sidebar {
    background: rgba(10, 14, 23, 0.9);
    border-right: 1px solid rgba(255, 255, 255, 0.03);
    padding: 30px 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: sticky;
    top: 0;
    height: 100vh;
}

.sidebar-header {
    padding-left: 10px;
    margin-bottom: 40px;
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px 16px;
    color: #94a3b8;
    border-radius: 12px;
    transition: all 0.2s ease;
    font-weight: 500;
    font-size: 0.95rem;
    text-decoration: none;
}

.nav-item:hover {
    background: rgba(255, 255, 255, 0.03);
    color: white;
    transform: translateX(5px);
}

.nav-item.active {
    background: rgba(245, 197, 24, 0.08);
    color: var(--gold);
    border: 1px solid rgba(245, 197, 24, 0.1);
}

.nav-item .icon {
    font-size: 1.1rem;
    opacity: 0.8;
}

.nav-item.active .icon {
    opacity: 1;
}

.btn-logout {
    margin-top: auto;
    width: 100%;
    padding: 14px 16px;
    background: transparent;
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.1);
    border-radius: 12px;
    cursor: pointer;
    text-align: left;
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: 0.3s;
}

.btn-logout:hover {
    background: rgba(239, 68, 68, 0.1);
    border-color: rgba(239, 68, 68, 0.2);
}

/* Main Content Area */
.main-content {
    padding: 40px 60px;
    max-width: 1600px;
    margin: 0 auto;
    width: 100%;
}

.top-bar {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 50px;
    animation: slideInUp 0.6s ease;
}

.welcome-text h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: white;
    letter-spacing: -0.03em;
}

.welcome-text p {
    color: #64748b;
    font-size: 1.1rem;
}

/* User Pill Top Right */
.user-pill {
    display: flex;
    align-items: center;
    gap: 15px;
    background: rgba(255, 255, 255, 0.03);
    padding: 8px 10px 8px 20px;
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.avatar-small {
    width: 38px;
    height: 38px;
    background: var(--gold);
    color: #000;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1rem;
}

.badge-pill {
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 1px;
    padding: 6px 14px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.badge-pill.platinum {
    background: linear-gradient(135deg, #FFD700 0%, #FDB931 100%);
    color: #000;
    box-shadow: 0 4px 15px rgba(253, 185, 49, 0.3);
}

/* Dashboard Cards Grid */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 30px;
    animation: slideInUp 0.8s ease;
}

.dash-card {
    background: rgba(15, 20, 30, 0.5);
    padding: 35px;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.03);
    transition: transform 0.3s ease, border-color 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 220px;
}

.dash-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.08);
    background: rgba(15, 20, 30, 0.8);
}

.dash-card h3 {
    font-size: 0.85rem;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 700;
    margin-bottom: 20px;
}

/* Specific Card Styling */
.status-indicator {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-size: 1.1rem;
    font-weight: 700;
    color: #2ED573;
    background: rgba(46, 213, 115, 0.05);
    padding: 10px 20px;
    border-radius: 12px;
    border: 1px solid rgba(46, 213, 115, 0.1);
    width: fit-content;
    margin-bottom: 10px;
}

.status-indicator .dot {
    width: 10px;
    height: 10px;
    background: #2ED573;
    border-radius: 50%;
    box-shadow: 0 0 15px rgba(46, 213, 115, 0.5);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(46, 213, 115, 0.4);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(46, 213, 115, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(46, 213, 115, 0);
    }
}

.plan-nametag {
    font-size: 2rem;
    font-weight: 800;
    color: white;
    letter-spacing: -1px;
}

.plan-type {
    display: block;
    font-size: 0.8rem;
    color: var(--gold);
    font-weight: 600;
    letter-spacing: 1px;
    margin-top: 5px;
}

.plan-dates {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 15px;
}

.plan-dates .label {
    display: block;
    color: var(--text-dim);
    font-size: 0.75rem;
}

.license-box {
    background: rgba(0, 0, 0, 0.3);
    border: 1px dashed rgba(255, 255, 255, 0.1);
    padding: 15px 20px;
    border-radius: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 15px 0;
}

.license-box code {
    font-family: 'Fira Code', 'Courier New', monospace;
    font-size: 1rem;
    color: #e2e8f0;
    letter-spacing: 1px;
}

.btn-icon {
    opacity: 0.6;
    transition: 0.2s;
}

.btn-icon:hover {
    opacity: 1;
    color: white;
}

/* Mobile Responsive Adjustments */
@media (max-width: 900px) {
    .dashboard-layout {
        grid-template-columns: 1fr;
    }

    .sidebar {
        height: auto;
        padding: 15px 20px;
        flex-direction: row;
        align-items: center;
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        position: relative;
    }

    .sidebar-nav,
    .sidebar-footer {
        display: none;
    }

    /* Simple mobile nav implementation */
    .sidebar::after {
        content: '☰';
        font-size: 1.5rem;
        color: white;
        cursor: pointer;
    }

    .sidebar:hover .sidebar-nav {
        display: flex;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: #0B0F19;
        z-index: 100;
        padding: 20px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }

    .main-content {
        padding: 30px 20px;
    }

    .top-bar {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }
}

/* --- VANTAGE AI CHAT WIDGET (Global) --- */
.vantage-chat-widget {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 9999;
    font-family: 'Inter', sans-serif;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

/* Toggle Button */
.chat-toggle-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #f5c518, #d4a017);
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(245, 197, 24, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
}

.chat-toggle-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 25px rgba(245, 197, 24, 0.6);
}

.chat-toggle-btn svg {
    width: 32px;
    height: 32px;
    fill: #0B0F19;
    transition: transform 0.3s ease;
}

.chat-toggle-btn.open svg {
    transform: rotate(135deg);
}

/* Chat Window */
.chat-window {
    width: 380px;
    height: 500px;
    background: rgba(18, 24, 38, 0.95);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    transform-origin: bottom right;
    transform: scale(0);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.4, 0.0, 0.2, 1);
    pointer-events: none;
}

.chat-window.active {
    transform: scale(1);
    opacity: 1;
    pointer-events: all;
}

/* Chat Header */
.chat-header {
    padding: 20px;
    background: rgba(255, 255, 255, 0.03);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    gap: 15px;
}

.bot-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #f5c518, #d4a017);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    color: #0B0F19;
    font-size: 18px;
    border: 2px solid rgba(255, 255, 255, 0.1);
}

.bot-info h3 {
    font-size: 16px;
    margin: 0;
    color: white;
    display: flex;
    align-items: center;
    gap: 6px;
}

.bot-status {
    font-size: 12px;
    color: #25D366;
    display: flex;
    align-items: center;
    gap: 4px;
}

.bot-status::before {
    content: '';
    width: 6px;
    height: 6px;
    background: #25D366;
    border-radius: 50%;
    box-shadow: 0 0 8px #25D366;
}

/* Chat Messages */
.chat-messages {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.message {
    max-width: 85%;
    padding: 12px 16px;
    font-size: 14px;
    line-height: 1.5;
    position: relative;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message.bot {
    align-self: flex-start;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px 12px 12px 2px;
    color: #e2e8f0;
}

.message.user {
    align-self: flex-end;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: white;
    border-radius: 12px 12px 2px 12px;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.message.system {
    align-self: center;
    font-size: 11px;
    color: #64748b;
    margin-top: 10px;
}

/* Typing Indicator */
.typing-indicator {
    display: inline-flex;
    gap: 4px;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    width: fit-content;
}

.typing-dot {
    width: 6px;
    height: 6px;
    background: #8b92a7;
    border-radius: 50%;
    animation: bounce 1.4s infinite ease-in-out both;
}

.typing-dot:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-dot:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes bounce {

    0%,
    80%,
    100% {
        transform: scale(0);
    }

    40% {
        transform: scale(1);
    }
}

/* Chat Input */
.chat-input-area {
    padding: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    gap: 10px;
    background: rgba(0, 0, 0, 0.2);
}

.chat-input {
    flex: 1;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    padding: 10px 15px;
    border-radius: 20px;
    outline: none;
    transition: 0.2s;
}

.chat-input:focus {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

.chat-send-btn {
    background: transparent;
    border: none;
    color: #f5c518;
    cursor: pointer;
    padding: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.2s;
}

.chat-send-btn:hover {
    transform: scale(1.1);
    color: #fff;
}

.btn-whatsapp-mini {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #25D366;
    color: white;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    margin-top: 8px;
    text-decoration: none;
    font-weight: 700;
}

@media (max-width: 480px) {
    .chat-window {
        width: calc(100vw - 40px);
        bottom: 80px;
        right: 20px;
        height: 60vh;
    }

    .vantage-chat-widget {
        right: 20px;
        bottom: 20px;
    }
}

/* --- Pricing Section (New) --- */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 50px;
}

.pricing-card {
    position: relative;
    padding: 30px 20px;
    border-radius: 20px;
    transition: all 0.4s ease;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.pricing-card:hover {
    transform: translateY(-10px);
}

.card-header h3 {
    font-size: 1.5rem;
    margin-bottom: 5px;
    font-weight: 800;
}

.plan-desc {
    font-size: 0.9rem;
    color: var(--text-dim);
    margin-bottom: 25px;
    min-height: 48px;
    /* Align heights */
}

.plan-features {
    list-style: none;
    text-align: left;
    margin-bottom: 30px;
    flex-grow: 1;
}

.plan-features li {
    margin-bottom: 12px;
    font-size: 0.9rem;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: #cbd5e1;
    line-height: 1.4;
}

.plan-features li span {
    color: var(--gold);
    font-weight: bold;
    flex-shrink: 0;
}

.micro-copy {
    font-size: 0.75rem;
    color: var(--text-dim);
    margin-top: 10px;
    font-style: italic;
    text-align: center;
}

/* Variants */
.card-trial {
    border-color: rgba(255, 255, 255, 0.1);
}

.card-silver {
    border-color: rgba(192, 192, 192, 0.3);
    background: linear-gradient(145deg, rgba(192, 192, 192, 0.05), rgba(11, 15, 25, 0.8));
}

.card-gold {
    border-color: var(--gold);
    box-shadow: 0 0 30px rgba(245, 197, 24, 0.1);
    background: linear-gradient(145deg, rgba(245, 197, 24, 0.05), rgba(11, 15, 25, 0.9));
    z-index: 10;
    transform: scale(1.02);
}

.card-gold:hover {
    transform: translateY(-10px) scale(1.02);
}

.card-ultra {
    background: linear-gradient(160deg, #000 0%, #0a0a0a 100%);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.5);
}

/* Badges */
.badge-popular,
.badge-ultra {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    white-space: nowrap;
}

.badge-popular {
    background: var(--gold);
    color: #000;
    box-shadow: 0 5px 15px rgba(245, 197, 24, 0.4);
}

.badge-ultra {
    background: #fff;
    color: #000;
    box-shadow: 0 5px 20px rgba(255, 255, 255, 0.3);
    border: 1px solid #000;
}

/* Custom Buttons */
.btn-silver {
    background: #cbd5e1;
    color: #0f172a;
    border: none;
}

.btn-silver:hover {
    background: #fff;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.3);
}

.btn-ultra {
    background: linear-gradient(90deg, #fff 0%, #cbd5e1 100%);
    color: #000;
    border: none;
}

.btn-ultra:hover {
    background: #fff;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
}

/* Responsive */
@media (max-width: 1024px) {
    .pricing-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .card-gold {
        transform: none;
        margin-top: 15px;
        /* Add space if stacked */
    }

    .card-gold:hover {
        transform: translateY(-10px);
    }
}

@media (max-width: 600px) {
    .pricing-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .pricing-card {
        margin-bottom: 20px;
    }
}

/* --- Pricing Refinements (New) --- */
.pricing-header-extras {
    margin-bottom: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.badge-launch {
    background: rgba(255, 71, 87, 0.1);
    color: #ff4757;
    border: 1px solid #ff4757;
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 1px;
    animation: pulse-red 2s infinite;
}

@keyframes pulse-red {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 71, 87, 0.4);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(255, 71, 87, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(255, 71, 87, 0);
    }
}

.billing-toggle {
    display: flex;
    align-items: center;
    gap: 15px;
    background: rgba(255, 255, 255, 0.05);
    padding: 8px 20px;
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.billing-toggle span {
    font-size: 0.9rem;
    cursor: pointer;
    font-weight: 500;
}

.billing-toggle .active {
    color: var(--text-white);
    font-weight: 700;
}

.discount-pill {
    background: var(--gold);
    color: #000;
    font-size: 0.65rem;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 800;
    margin-left: 5px;
    vertical-align: middle;
}

.price-box {
    margin: 15px 0 20px;
    display: flex;
    align-items: baseline;
    color: var(--text-white);
}

.price-box .currency {
    font-size: 1rem;
    margin-right: 2px;
    font-weight: 600;
}

.price-box .amount {
    font-size: 2.2rem;
    font-weight: 800;
    line-height: 1;
}

.price-box .duration {
    font-size: 0.8rem;
    color: var(--text-dim);
    margin-left: 5px;
}

.card-gold .price-box .amount {
    color: var(--gold);
}

/* Adjust card content spacing */
.pricing-card .card-header {
    margin-bottom: 10px;
}

.pricing-card .plan-desc {
    margin-bottom: 20px;
    min-height: 60px;
    /* Increased for longer copy */
    font-size: 0.85rem;
    line-height: 1.5;
}

/* --- Annual Offer Strategic Placement --- */
.annual-offer {
    background: rgba(245, 197, 24, 0.1);
    color: var(--gold);
    display: inline-block;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 15px;
    border: 1px dashed rgba(245, 197, 24, 0.4);
}

.card-ultra .annual-offer {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.3);
}

.text-glow {
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

/* --- Persuasive Tooltips (Brutal) --- */
.persuasion-tooltip {
    position: absolute;
    top: -50px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    width: 100%;
    padding: 10px 15px;
    background: rgba(0, 0, 0, 0.9);
    border: 1px solid var(--gold);
    color: #fff;
    font-size: 0.8rem;
    font-weight: 700;
    text-align: center;
    border-radius: 8px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 20;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    pointer-events: none;
}

.pricing-card:hover .persuasion-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
    animation: brutal-shake 0.5s ease-in-out;
}

.tooltip-gold {
    background: var(--gold);
    color: #000;
    border-color: #fff;
    box-shadow: 0 0 20px rgba(245, 197, 24, 0.5);
}

.tooltip-ultra {
    background: #fff;
    color: #000;
    border-color: #000;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Brutal Shake Animation */
@keyframes brutal-shake {
    0% {
        transform: translateX(-50%) rotate(0deg);
    }

    25% {
        transform: translateX(-50%) rotate(-2deg);
    }

    50% {
        transform: translateX(-50%) rotate(2deg);
    }

    75% {
        transform: translateX(-50%) rotate(-1deg);
    }

    100% {
        transform: translateX(-50%) rotate(0deg);
    }
}

/* Ensure card doesn't overflow/clip the tooltip */
.pricing-card {
    overflow: visible !important;
}

/* FIX: Reset margin for outline button inside pricing card to center it */
.pricing-card .btn-outline {
    margin-left: 0;
}

/* FIX: Ensure Trial card sizing consistency on mobile */
@media (max-width: 600px) {
    .pricing-card {
        width: 100%;
        max-width: none;
        /* Override legacy max-width */
    }
}

/* FIX: Smoother FAQ Accordion Animation */
.faq-answer {
    max-height: 0;
    overflow: hidden;
    /* Use standard smooth easing and slightly faster time */
    transition: max-height 0.3s ease-in-out, opacity 0.3s ease-in-out, padding 0.3s ease-in-out;
    padding: 0 25px;
    opacity: 0;
    /* Fade out text when closed */
}

.faq-item.active .faq-answer {
    max-height: 500px;
    /* Increased safe limit to prevent cutting off text */
    padding-bottom: 25px;
    opacity: 1;
    /* Fade in text when open */
    /* Remove the weird cubic-bezier override, let it inherit the smooth one */
    transition: max-height 0.3s ease-in-out, opacity 0.3s ease-in-out, padding 0.3s ease-in-out;
}

/* FIX: Force Stacking Context for Pricing Cards */
.pricing-card {
    position: relative;
    z-index: 5;
    /* Ensure all cards are above background layers */
}

/* Ensure VULTRA is accessible even if overlapping with GOLD */
.card-ultra {
    z-index: 20 !important;
    /* Higher than Gold (10) */
    position: relative;
}

/* Ensure the button is clickable (redundant but safe) */
.card-ultra .btn {
    position: relative;
    z-index: 50 !important;
    pointer-events: auto;
}

/* FINAL FIX: Ultimate Clickability for VULTRA Card */
#pricing {
    position: relative;
    z-index: 10;
}

.card-ultra {
    z-index: 999 !important;
    /* Extremely high to beat any accidental overlaps */
    position: relative !important;
    pointer-events: auto !important;
}

.card-ultra * {
    pointer-events: auto !important;
}

/* FIX: Ensure chat widget container doesn't block background clicks */
.vantage-chat-widget {
    pointer-events: none !important;
}

.vantage-chat-widget>* {
    pointer-events: auto !important;
}

/* Ensure testimonials doesn't overlap pricing if layout is tight */
.testimonials-section {
    z-index: 1;
    position: relative;
}

/* --- Pain Section (Brutal) --- */
.pain-section {
    background: radial-gradient(circle at center, #1a0b0b 0%, var(--bg-dark) 80%);
    border-top: 1px solid rgba(255, 71, 87, 0.1);
    border-bottom: 1px solid rgba(255, 71, 87, 0.1);
    position: relative;
    overflow: hidden;
}

.pain-badge {
    color: #ff4757;
    background: rgba(255, 71, 87, 0.1);
    border: 1px solid #ff4757;
    padding: 10px 20px;
    display: table;
    margin: 0 auto 25px;
    border-radius: 4px;
    font-weight: 800;
    font-size: 0.8rem;
    letter-spacing: 2px;
}

.pain-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin: 60px 0;
}

.pain-card {
    background: rgba(11, 15, 25, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 40px 30px;
    border-radius: 20px;
    position: relative;
    transition: 0.3s;
    overflow: hidden;
    text-align: center;
}

.pain-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, #ff4757, transparent);
    opacity: 0.3;
}

.pain-card:hover {
    background: rgba(255, 71, 87, 0.03);
    border-color: rgba(255, 71, 87, 0.3);
    transform: translateY(-10px);
}

.pain-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    display: block;
}

.pain-card h3 {
    color: #fff;
    font-size: 1.4rem;
    margin-bottom: 15px;
    font-weight: 800;
}

.pain-card p {
    font-size: 0.95rem;
    color: #94a3b8;
    line-height: 1.6;
}

.pain-cta p {
    font-size: 1.5rem;
    color: #fff;
    font-weight: 800;
    margin-bottom: 30px;
    text-shadow: 0 0 20px rgba(255, 71, 87, 0.3);
}

@media (max-width: 992px) {
    .pain-grid {
        grid-template-columns: 1fr;
        max-width: 500px;
        margin: 40px auto;
    }
}


/* --- Intelligence Lab (Unique Tool Feel) --- */
.lab-section {
    background: radial-gradient(circle at top left, #0e1525 0%, var(--bg-dark) 100%);
    position: relative;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.lab-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.lab-visual {
    position: relative;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(245, 197, 24, 0.2);
    border-radius: 30px;
    padding: 40px;
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.5);
    overflow: hidden;
}

.scanner-line {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent 48%, rgba(245, 197, 24, 0.2) 50%, transparent 52%);
    background-size: 100% 20px;
    animation: scan 8s linear infinite;
    pointer-events: none;
    z-index: 2;
}

@keyframes scan {
    from {
        background-position: 0 0;
    }

    to {
        background-position: 0 1000px;
    }
}



.lab-features-list {
    list-style: none;
}

.lab-feature-item {
    margin-bottom: 30px;
    display: flex;
    gap: 20px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 12px;
    border-left: 3px solid var(--gold);
    transition: 0.3s;
}

.lab-feature-item:hover {
    background: rgba(255, 255, 255, 0.05);
    transform: translateX(10px);
}

.lab-feature-item h4 {
    color: var(--gold);
    margin-bottom: 5px;
    font-size: 1.1rem;
}

.lab-feature-item p {
    font-size: 0.85rem;
    color: var(--text-dim);
}

@media (max-width: 992px) {
    .lab-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}


/* --- Profit Lens (The Superpower) --- */
.lens-section {
    background: #020617;
    overflow: hidden;
}

.lens-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    margin-top: 50px;
}

.lens-view {
    border-radius: 24px;
    padding: 30px;
    min-height: 400px;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.view-human {
    background: rgba(15, 23, 42, 0.4);
    filter: grayscale(1) blur(1px);
    opacity: 0.7;
}

.view-vantage {
    background: radial-gradient(circle at top right, rgba(245, 197, 24, 0.05), transparent);
    border-color: var(--gold);
    box-shadow: 0 0 40px rgba(245, 197, 24, 0.05), inset 0 0 20px rgba(245, 197, 24, 0.05);
}

.view-label {
    position: absolute;
    top: 20px;
    left: 20px;
    padding: 5px 12px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
}

.label-human {
    background: #334155;
    color: #94a3b8;
}

.label-vantage {
    background: var(--gold);
    color: #000;
    box-shadow: 0 0 15px var(--gold);
}

.lens-chat-mock {
    margin-top: 40px;
}

.mock-bubble {
    padding: 12px 16px;
    border-radius: 12px;
    margin-bottom: 20px;
    font-size: 0.9rem;
    max-width: 80%;
}

.mock-human .bubble {
    background: rgba(255, 255, 255, 0.05);
    color: #64748b;
}

.mock-vantage .bubble {
    background: rgba(245, 197, 24, 0.1);
    border: 1px solid rgba(245, 197, 24, 0.2);
    color: #fff;
    position: relative;
}

.sentiment-tag {
    position: absolute;
    right: -100px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 255, 255, 0.1);
    color: #00f2fe;
    border: 1px solid #00f2fe;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.7rem;
    white-space: nowrap;
    animation: pulse-cyan 2s infinite;
}

@keyframes pulse-cyan {
    0% {
        box-shadow: 0 0 0 0 rgba(0, 255, 252, 0.4);
    }

    70% {
        box-shadow: 0 0 0 8px rgba(0, 255, 252, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(0, 255, 252, 0);
    }
}

.neural-line {
    position: absolute;
    width: 2px;
    background: var(--gold);
    box-shadow: 0 0 10px var(--gold);
    top: 0;
    bottom: 0;
    left: 100%;
    opacity: 0.3;
}

@media (max-width: 768px) {
    .lens-grid {
        grid-template-columns: 1fr;
    }

    .sentiment-tag {
        position: static;
        transform: none;
        display: inline-block;
        margin-top: 10px;
    }
}


/* --- Enhanced Profit Lens (Brutal Visuals) --- */
.view-human {
    background: radial-gradient(circle at center, #0f172a, #020617);
    overflow: hidden;
}

/* Static Noise Effect for Human View */
.view-human::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url("https://grainy-gradients.vercel.app/noise.svg");
    opacity: 0.15;
    pointer-events: none;
    z-index: 1;
}

.view-vantage {
    background: linear-gradient(145deg, #0f172a 0%, #020617 100%);
    border: 1px solid rgba(245, 197, 24, 0.4) !important;
    box-shadow: 0 0 60px rgba(245, 197, 24, 0.1), inset 0 0 30px rgba(245, 197, 24, 0.05) !important;
}

/* Neural Data Points Animation */
.neural-data-point {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--gold);
    border-radius: 50%;
    filter: blur(1px);
    box-shadow: 0 0 10px var(--gold);
    animation: float-data 4s infinite linear;
    opacity: 0;
}

@keyframes float-data {
    0% {
        transform: translate(0, 0);
        opacity: 0;
    }

    20% {
        opacity: 0.8;
    }

    80% {
        opacity: 0.8;
    }

    100% {
        transform: translate(50px, -100px);
        opacity: 0;
    }
}

.view-vantage .mock-vantage .bubble {
    background: rgba(245, 197, 24, 0.1);
    border: 1px solid rgba(245, 197, 24, 0.3);
    backdrop-filter: blur(5px);
    z-index: 3;
}

/* High-Tech Scanning Pulse */
.vantage-scan-pulse {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent 40%, rgba(245, 197, 24, 0.1) 50%, transparent 60%);
    background-size: 200% 200%;
    animation: scan-pulse-fade 4s infinite linear;
    pointer-events: none;
}

@keyframes scan-pulse-fade {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

.sentiment-tag {
    background: rgba(0, 0, 0, 0.8) !important;
    backdrop-filter: blur(10px);
    font-family: monospace;
    letter-spacing: 1px;
}

.view-vantage h3 {
    text-shadow: 0 0 20px var(--gold);
}


/* --- Re-Structuring Profit Lens (Professional Brutal) --- */
.view-vantage {
    background: #020617 !important;
    display: flex;
    flex-direction: column;
    padding: 40px !important;
}

.lens-chat-mock.mock-vantage {
    display: flex;
    flex-direction: column;
    gap: 25px;
    margin-top: 30px;
}

/* Clearer Analysis Rows */
.analysis-row {
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.05);
    background: rgba(255, 255, 255, 0.02);
    border-radius: 12px;
    padding: 20px;
    transition: 0.3s;
}

.analysis-row:hover {
    border-color: rgba(245, 197, 24, 0.2);
    background: rgba(245, 197, 24, 0.02);
}

.analysis-label {
    position: absolute;
    top: -10px;
    right: 15px;
    font-size: 0.65rem;
    font-weight: 900;
    padding: 3px 10px;
    border-radius: 4px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.label-red {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #f87171;
}

.label-gold {
    background: var(--gold);
    color: #000;
    box-shadow: 0 0 15px var(--gold-glow);
}

.chat-text {
    font-size: 0.95rem;
    line-height: 1.5;
    color: #cbd5e1;
}

.vantage-insight {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px dashed rgba(245, 197, 24, 0.2);
    font-size: 0.85rem;
    color: var(--gold);
    display: flex;
    align-items: center;
    gap: 8px;
}

.vantage-insight strong {
    font-weight: 800;
}

/* Professional Probability Footer */
.probability-footer {
    margin-top: auto;
    padding-top: 30px;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.prob-container {
    display: inline-flex;
    align-items: center;
    gap: 15px;
}

.prob-bar {
    width: 150px;
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
}

.prob-fill {
    height: 100%;
    width: 92%;
    background: var(--gold);
    box-shadow: 0 0 15px var(--gold);
    animation: grow-bar 2s ease-out;
}

@keyframes grow-bar {
    from {
        width: 0;
    }

    to {
        width: 92%;
    }
}


/* --- CONSOLIDATED LAB & CODE ANIMATIONS (CLEAN & PROFESSIONAL) --- */

/* Intelligence Lab (HUD Display) */
.lab-visual {
    background: #0B0F19 !important;
    border: 1px solid rgba(245, 197, 24, 0.15) !important;
    position: relative;
    overflow: hidden;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    padding: 60px 40px !important;
    min-height: 500px;
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.5);
}

.lab-bg-animation {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    opacity: 0.1;
}

.neural-grid {
    position: absolute;
    width: 200%;
    height: 200%;
    background-image:
        linear-gradient(rgba(245, 197, 24, 0.2) 1px, transparent 1px),
        linear-gradient(90deg, rgba(245, 197, 24, 0.2) 1px, transparent 1px);
    background-size: 30px 30px;
    animation: grid-slide 10s linear infinite;
}

@keyframes grid-slide {
    from {
        background-position: 0 0;
    }

    to {
        background-position: 30px 30px;
    }
}

.closing-score-meter {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    border: 8px solid rgba(255, 255, 255, 0.03);
    position: relative;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 0 30px 0 !important;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
    background: transparent !important;
    z-index: 5;
}

.closing-score-meter::before {
    content: "";
    position: absolute;
    top: -8px;
    left: -8px;
    right: -8px;
    bottom: -8px;
    border-radius: 50%;
    border: 8px solid transparent;
    border-top-color: var(--gold);
    border-right-color: var(--gold);
    animation: progress-spin 4s ease-in-out infinite alternate;
    z-index: 2;
    filter: drop-shadow(0 0 10px var(--gold));
    box-sizing: border-box;
}

@keyframes progress-spin {
    0% {
        transform: rotate(-45deg);
    }

    100% {
        transform: rotate(225deg);
    }
}

.closing-score-meter span {
    font-size: 3rem;
    font-weight: 900;
    color: white;
    text-shadow: 0 0 20px var(--gold-glow);
    z-index: 10;
    line-height: 1;
    transform: translateY(2px);
}

/* Code Block (Audience Section) - Strictly Contained */
.code-block {
    background: #0f172a !important;
    border-radius: 12px;
    padding: 25px;
    border-left: 3px solid var(--gold);
    position: relative;
    overflow: hidden;
    /* Animación solo adentro */
}

/* Subtle Data Wave inside code block */
.code-block::after {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(245, 197, 24, 0.05), transparent);
    animation: internal-wave 5s infinite ease-in-out;
    z-index: 1;
    pointer-events: none;
}

@keyframes internal-wave {
    0% {
        left: -100%;
    }

    50% {
        left: 100%;
    }

    100% {
        left: 100%;
    }

    /* Pausa al final */
}

.code-block code {
    position: relative;
    z-index: 5;
    font-family: monospace;
    color: #94a3b8;
}

/* Clean Cursor */
.code-block code::after {
    content: "|";
    color: var(--gold);
    animation: blink-cursor 1s infinite;
    margin-left: 4px;
}

@keyframes blink-cursor {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

/* Remove card-level visual effects that was liked */
.visual-card::before,
.visual-card::after {
    display: none !important;
}

.visual-card:hover {
    transform: none !important;
}
/* --- MOBILE RESPONSIVENESS FIX: Profit Lens --- */
@media (max-width: 768px) {
    .lens-grid {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        gap: 40px !important;
        padding: 0 10px !important; /* Ensure some breathing room */
    }

    .lens-view {
        width: 100% !important;
        max-width: 450px !important; /* Cap width for better readability on phones */
        margin: 0 auto !important;
        padding: 30px 20px !important; /* Slightly tighter padding for mobile */
    }

    .view-label {
        left: 50% !important;
        transform: translateX(-50%) !important;
        top: -15px !important; /* Move label to the top center */
        width: max-content;
    }

    .analysis-label {
        position: relative !important;
        display: inline-table !important;
        top: 0 !important;
        right: 0 !important;
        margin-bottom: 10px !important;
    }

    .analysis-row {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
    }

    .prob-container {
        flex-direction: column !important;
        gap: 10px !important;
    }

    .prob-bar {
        width: 100% !important;
        max-width: 200px !important;
    }
}


/* --- MOBILE VISIBILITY CORRECTION: Lens Labels --- */
@media (max-width: 768px) {
    .view-label {
        top: 15px !important; /* Keep it INSIDE the card to avoid being cut off */
        font-size: 0.65rem !important; /* Slightly smaller for mobile context */
    }
    
    .lens-view {
        margin-top: 20px !important; /* Add space between stacked cards */
        overflow: visible !important; /* Ensure nothing is cut off */
    }

    .lens-chat-mock {
        margin-top: 60px !important; /* Ensure content doesn"t overlap with the label */
    }
}


/* --- BRUTAL INTRO CURTAIN --- */
#intro-curtain {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    pointer-events: none; /* Allows click through if it fails to remove, but usually we want it blocking */
    pointer-events: all; 
}

/* Initially lock scroll on body via JS, but we can also do it here if needed */

.curtain-panel {
    position: absolute;
    top: 0;
    width: 51%; /* Slight overlap to prevent gap lines */
    height: 100%;
    background: #000000; /* Pure black for brutal contrast */
    z-index: 1;
    transition: transform 1.2s cubic-bezier(0.77, 0, 0.175, 1);
}

.curtain-panel.left {
    left: 0;
    border-right: 1px solid rgba(245, 197, 24, 0.1);
}

.curtain-panel.right {
    right: 0;
    border-left: 1px solid rgba(245, 197, 24, 0.1);
}

/* Open State */
#intro-curtain.open .curtain-panel.left {
    transform: translateX(-100%);
}

#intro-curtain.open .curtain-panel.right {
    transform: translateX(100%);
}

/* Content centered */
.curtain-content {
    position: relative;
    z-index: 2;
    text-align: center;
    transition: opacity 0.5s ease;
}

#intro-curtain.open .curtain-content {
    opacity: 0;
    transition-delay: 0s;
}

.curtain-logo {
    font-size: 3rem;
    font-weight: 800;
    letter-spacing: 4px;
    color: white;
    margin-bottom: 20px;
    text-shadow: 0 0 20px rgba(245, 197, 24, 0.3);
    clip-path: inset(0 0 0 0);
    animation: glitch-skew 3s infinite linear alternate-reverse;
}

.curtain-loader {
    width: 200px;
    height: 2px;
    background: rgba(255, 255, 255, 0.1);
    margin: 0 auto 15px;
    position: relative;
    overflow: hidden;
}

.loader-bar {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0%;
    background: var(--gold);
    box-shadow: 0 0 10px var(--gold);
    animation: load-progress 2.5s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.curtain-text {
    font-family: 'Fira Code', monospace;
    font-size: 0.8rem;
    color: var(--gold);
    opacity: 0.8;
    text-transform: uppercase;
    letter-spacing: 2px;
    animation: blink-text 0.5s infinite alternate;
}

/* Animations */
@keyframes load-progress {
    0% { width: 0%; }
    40% { width: 40%; }
    70% { width: 50%; }
    100% { width: 100%; }
}

@keyframes blink-text {
    from { opacity: 0.4; }
    to { opacity: 1; }
}

@keyframes glitch-skew {
    0% { transform: skew(0deg); }
    20% { transform: skew(0deg); }
    21% { transform: skew(-2deg); }
    22% { transform: skew(2deg); }
    23% { transform: skew(0deg); }
    100% { transform: skew(0deg); }
}
