/* ==========================================
   TRADING PLUS - ULTRA ENHANCED META ADS LANDING PAGE
   Aesthetics: Modern SaaS Glassmorphism & High-Glow UI
   Layout: 100vh Single Screen View (No Scroll)
   ========================================== */

:root {
    --font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    
    --bg-dark: #060911;
    --card-bg: rgba(255, 255, 255, 0.96);
    
    --whatsapp-green: #25D366;
    --whatsapp-dark: #128C7E;
    --whatsapp-gradient: linear-gradient(135deg, #25D366 0%, #128C7E 50%, #075E54 100%);
    --whatsapp-hover: linear-gradient(135deg, #20bd5a 0%, #0e7568 50%, #054c44 100%);

    --text-main: #0b132a;
    --text-muted: #526078;
    --text-light: #8896ab;
    
    --badge-bg: rgba(16, 185, 129, 0.08);
    --badge-border: rgba(16, 185, 129, 0.28);
    --badge-text: #047857;

    --pill-bg: #f8fafc;
    --pill-border: #e2e8f0;
}

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

html, body {
    width: 100%;
    height: 100%;
    height: 100dvh;
    overflow: hidden; /* Lock scrollbar for single screen experience */
}

body {
    font-family: var(--font-family);
    background-color: var(--bg-dark);
    color: var(--text-main);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px;
    position: relative;
}

/* ================= Ambient Glow Background & Canvas ================= */
.bg-glow {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.chart-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.35;
}

.glow-circle {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.38;
    animation: floatGlow 14s infinite alternate ease-in-out;
}

.glow-1 {
    width: 480px;
    height: 480px;
    background: radial-gradient(circle, #25D366, #0284c7);
    top: -90px;
    left: -90px;
}

.glow-2 {
    width: 520px;
    height: 520px;
    background: radial-gradient(circle, #7c3aed, #128C7E);
    bottom: -110px;
    right: -90px;
    animation-delay: -5s;
}

.glow-3 {
    width: 380px;
    height: 380px;
    background: radial-gradient(circle, #06b6d4, #10b981);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0.22;
}

.bg-grid {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px);
    background-size: 28px 28px;
}

@keyframes floatGlow {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(30px, 20px) scale(1.08); }
}

/* ================= Card Container ================= */
.page-wrapper {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 430px;
    height: 100%;
    max-height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-card {
    background: var(--card-bg);
    border-radius: 28px;
    padding: 22px 20px 14px 20px;
    box-shadow: 
        0 24px 50px -10px rgba(0, 0, 0, 0.45),
        0 0 0 1px rgba(255, 255, 255, 0.8) inset,
        0 0 40px rgba(37, 211, 102, 0.18);
    backdrop-filter: blur(25px) saturate(180%);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    width: 100%;
    max-height: 98dvh;
    overflow-y: auto;
    scrollbar-width: none;
}

.hero-card::-webkit-scrollbar {
    display: none;
}

.card-shimmer-border {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, #25D366, #0284c7, #7c3aed, #ec4899, #25D366);
    background-size: 300% 100%;
    border-top-left-radius: 28px;
    border-top-right-radius: 28px;
    animation: borderShimmer 6s infinite linear;
}

@keyframes borderShimmer {
    0% { background-position: 0% 0%; }
    100% { background-position: 300% 0%; }
}

/* ================= Badges ================= */
.badge-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 13px;
    border-radius: 50px;
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.7px;
    text-transform: uppercase;
    margin-bottom: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

.top-pill {
    background-color: var(--badge-bg);
    border: 1px solid var(--badge-border);
    color: var(--badge-text);
}

.pulse-dot {
    width: 7px;
    height: 7px;
    background-color: #10b981;
    border-radius: 50%;
    position: relative;
}

.pulse-dot::after {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    border-radius: 50%;
    background-color: rgba(16, 185, 129, 0.4);
    animation: pulseRing 1.8s infinite ease-out;
}

@keyframes pulseRing {
    0% { transform: scale(1); opacity: 0.8; }
    100% { transform: scale(2.2); opacity: 0; }
}

.secondary-pill {
    background-color: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: #15803d;
    margin-bottom: 12px;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: none;
    letter-spacing: 0;
    padding: 5px 14px;
}

.verified-icon {
    color: #16a34a;
}

/* ================= Logo Section ================= */
.logo-section {
    margin-bottom: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.logo-aura-ring {
    position: relative;
    margin-bottom: 6px;
    padding: 3px;
    border-radius: 22px;
    background: linear-gradient(135deg, #25D366 0%, #3b82f6 50%, #7c3aed 100%);
    box-shadow: 0 8px 24px rgba(37, 211, 102, 0.3);
    animation: floatLogo 4s infinite ease-in-out;
}

@keyframes floatLogo {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-4px); }
}

.logo-wrapper {
    width: 78px;
    height: 78px;
    border-radius: 19px;
    background: #090d16;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 6px;
    position: relative;
    overflow: hidden;
}

.logo-wrapper::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent,
        rgba(255, 255, 255, 0.2),
        transparent
    );
    transform: rotate(30deg);
    animation: shineEffect 5s infinite;
}

@keyframes shineEffect {
    0% { transform: translateX(-100%) rotate(30deg); }
    25%, 100% { transform: translateX(100%) rotate(30deg); }
}

.brand-logo-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 13px;
}

.brand-name {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-main);
    letter-spacing: -0.4px;
    margin-bottom: 2px;
}

.brand-tagline {
    font-size: 0.76rem;
    color: var(--text-muted);
    font-weight: 600;
}

/* ================= Headline & Content ================= */
.headline-container {
    margin-bottom: 12px;
}

.main-headline {
    font-size: 1.32rem;
    font-weight: 800;
    line-height: 1.25;
    color: var(--text-main);
    margin-bottom: 6px;
    letter-spacing: -0.3px;
}

.gradient-text {
    background: linear-gradient(135deg, #059669 0%, #0284c7 50%, #25D366 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradientShift 6s infinite ease-in-out;
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.main-subtext {
    font-size: 0.78rem;
    color: var(--text-muted);
    line-height: 1.42;
    font-weight: 400;
    max-width: 360px;
    margin: 0 auto;
}

/* ================= Feature Pills ================= */
.feature-pills {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
    margin-bottom: 14px;
    width: 100%;
}

.feature-pill {
    background-color: var(--pill-bg);
    border: 1px solid var(--pill-border);
    padding: 5px 11px;
    border-radius: 10px;
    font-size: 0.7rem;
    font-weight: 700;
    color: #334155;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: all 0.2s ease;
}

.feature-pill:hover {
    background-color: #ffffff;
    border-color: #cbd5e1;
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.04);
}

.icon-box {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--whatsapp-dark);
}

/* ================= High-Glow WhatsApp CTA Button ================= */
.cta-wrapper {
    width: 100%;
    margin-bottom: 10px;
}

.cta-button {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 15px 20px;
    background: var(--whatsapp-gradient);
    color: #ffffff;
    font-size: 1.02rem;
    font-weight: 800;
    text-decoration: none;
    border-radius: 15px;
    box-shadow: 
        0 12px 30px -4px rgba(37, 211, 102, 0.5),
        0 4px 12px rgba(18, 140, 126, 0.35);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.cta-button:hover {
    background: var(--whatsapp-hover);
    transform: translateY(-2px) scale(1.01);
    box-shadow: 
        0 16px 36px -4px rgba(37, 211, 102, 0.65),
        0 6px 16px rgba(18, 140, 126, 0.45);
}

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

.btn-shimmer-beam {
    position: absolute;
    top: 0;
    left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.35),
        transparent
    );
    transform: skewX(-20deg);
    animation: ctaBeam 3.5s infinite;
}

@keyframes ctaBeam {
    0% { left: -100%; }
    30%, 100% { left: 200%; }
}

.whatsapp-icon {
    flex-shrink: 0;
}

.btn-sparkle {
    font-size: 0.9rem;
    color: #fef08a;
    animation: spinSparkle 4s linear infinite;
}

@keyframes spinSparkle {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.pulse-btn {
    animation: gentlePulse 2.8s infinite ease-in-out;
}

@keyframes gentlePulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.02); }
}

.trust-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    font-size: 0.68rem;
    color: #059669;
    font-weight: 700;
    margin-top: 6px;
}

/* ================= Live Counter Pill ================= */
.live-counter {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: #f1f5f9;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.68rem;
    color: var(--text-muted);
    margin-bottom: 10px;
    border: 1px solid #e2e8f0;
}

.live-indicator {
    width: 6px;
    height: 6px;
    background-color: #22c55e;
    border-radius: 50%;
    box-shadow: 0 0 8px #22c55e;
}

.live-counter strong {
    color: var(--text-main);
    font-weight: 800;
}

/* ================= Meta Ads Compliance Footer ================= */
.card-footer {
    width: 100%;
    border-top: 1px solid #e2e8f0;
    padding-top: 8px;
    margin-top: 2px;
}

.legal-links {
    font-size: 0.62rem;
    color: var(--text-muted);
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

.legal-links a {
    color: #475569;
    text-decoration: none;
    font-weight: 700;
    transition: color 0.2s;
}

.legal-links a:hover {
    color: var(--whatsapp-dark);
}

.dot-sep {
    color: #cbd5e1;
}

.disclaimer-text {
    font-size: 0.6rem;
    color: var(--text-light);
    line-height: 1.3;
    margin-bottom: 4px;
}

.disclaimer-text strong {
    color: var(--text-muted);
}

.meta-disclaimer {
    font-size: 0.55rem;
    color: #94a3b8;
    line-height: 1.3;
    margin-bottom: 4px;
    opacity: 0.85;
}

.copyright {
    font-size: 0.6rem;
    color: var(--text-light);
    font-weight: 600;
}

/* ================= Floating Link Settings ================= */
.settings-widget {
    position: fixed;
    bottom: 14px;
    right: 14px;
    z-index: 99;
}

.widget-toggle {
    background: #090d16;
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 7px 12px;
    border-radius: 30px;
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.widget-toggle:hover {
    background: #1e293b;
}

.widget-popover {
    position: absolute;
    bottom: 40px;
    right: 0;
    width: 280px;
    background: #ffffff;
    border-radius: 14px;
    padding: 14px;
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.25);
    border: 1px solid #e2e8f0;
    display: flex;
    flex-direction: column;
    gap: 8px;
    text-align: left;
}

.widget-popover.hidden {
    display: none;
}

.widget-popover h4 {
    font-size: 0.85rem;
    color: var(--text-main);
}

.widget-popover p {
    font-size: 0.72rem;
    color: var(--text-muted);
}

.widget-popover input {
    width: 100%;
    padding: 7px 9px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    font-size: 0.78rem;
}

.popover-actions {
    display: flex;
    gap: 6px;
}

.save-btn {
    flex: 1;
    background: var(--whatsapp-dark);
    color: #ffffff;
    border: none;
    padding: 6px 8px;
    border-radius: 6px;
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
}

.close-btn {
    background: #e2e8f0;
    color: #475569;
    border: none;
    padding: 6px 8px;
    border-radius: 6px;
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
}

/* ================= Mobile Adjustments ================= */
@media (max-width: 480px) {
    body {
        padding: 6px;
    }

    .hero-card {
        padding: 18px 14px 12px 14px;
        border-radius: 22px;
    }

    .brand-name {
        font-size: 1.35rem;
    }

    .main-headline {
        font-size: 1.18rem;
    }

    .logo-wrapper {
        width: 70px;
        height: 70px;
    }

    .cta-button {
        padding: 13px 16px;
        font-size: 0.95rem;
    }
}
