@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800;900&display=swap');

html, body {
    width: 100%;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

body {
    font-family: 'Outfit', sans-serif;
    scroll-behavior: smooth;
}

/* Global Light Theme Overrides */
body, .bg-slate-950, .bg-slate-950\/80 {
    background-color: #f8fafc !important; /* Slate 50 background */
    color: #1e293b !important; /* Slate 800 primary text */
}
.bg-slate-900, .bg-slate-900\/30, .bg-slate-900\/40, .bg-slate-900\/80 {
    background-color: #ffffff !important; /* Clean White Cards */
    color: #1e293b !important; /* Slate 800 */
}
.border-slate-900, .border-slate-800, .border-slate-800\/80 {
    border-color: #e2e8f0 !important; /* Slate 200 border */
}
.bg-slate-800 {
    background-color: #f1f5f9 !important;
    border-color: #e2e8f0 !important;
}
.border-slate-700 {
    border-color: #e2e8f0 !important;
}

/* Base text contrast safeguards */
p, li, span, td, th, strong, a, div {
    color: #1e293b; /* Readable dark color by default */
}
h1, h2, h3, h4, strong, .text-white {
    color: #0f172a !important; /* Dark slate for header and bold text */
}

/* Specific text color helpers */
.text-slate-100, .text-slate-200, .text-slate-150 {
    color: #0f172a !important;
}
.text-slate-300, .text-slate-350, .text-slate-400, .text-slate-450, .text-slate-455 {
    color: #475569 !important; /* Slate 600 text */
}
.text-slate-500, .text-slate-650 {
    color: #64748b !important; /* Slate 500 secondary text */
}
h1.text-transparent {
    background-clip: border-box !important;
    background-image: none !important;
    -webkit-text-fill-color: #0f172a !important;
    color: #0f172a !important;
}
input, textarea {
    background-color: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
    color: #0f172a !important;
}
input::placeholder, textarea::placeholder {
    color: #94a3b8 !important;
}
.glass-panel {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
}
.glass-card {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03) !important;
}
.glass-card:hover {
    border-color: #0ea5e9 !important;
    box-shadow: 0 10px 15px -3px rgba(14, 165, 233, 0.1) !important;
}

/* Table Layout Corrections for Light Theme */
.bg-slate-950\/40, .bg-slate-950\/80, .bg-slate-900\/20, .bg-slate-900\/40 {
    background-color: #ffffff !important;
}
table {
    background-color: #ffffff !important;
}
thead tr {
    background-color: #f1f5f9 !important; /* Light Slate-100 header */
}
thead th {
    color: #0f172a !important; /* Dark Slate-900 text */
}
tbody tr {
    background-color: #ffffff !important;
}
tbody tr:hover {
    background-color: #f8fafc !important; /* Soft Slate-50 hover */
}
tbody td {
    color: #334155 !important; /* Slate-700 readable body text */
}
.text-slate-900\/40 {
    color: rgba(15, 23, 42, 0.08) !important; /* Soft watermark shade */
}

/* RESTORE LIGHT TEXT ON DARK COMPONENT CONTAINERS ONLY */
/* 1. Urgency Bar */
.bg-gradient-to-r.from-sky-700, 
.bg-gradient-to-r.from-sky-700 *, 
.bg-gradient-to-r.from-sky-700 strong, 
.bg-gradient-to-r.from-sky-700 span {
    color: #ffffff !important;
}

/* 2. CTA Buttons (bg-sky-600) and Copy Button */
.bg-sky-600, 
.bg-sky-600 *, 
.copy-btn, 
.copy-btn * {
    color: #ffffff !important;
    background-color: #0284c7 !important;
}
.bg-sky-600:hover, 
.copy-btn:hover {
    background-color: #0369a1 !important;
}

/* 3. Sticky CTA mobile bottom bar */
#sticky-cta, 
#sticky-cta * {
    color: #ffffff !important;
    background-color: #0f172a !important;
}

/* 4. Chat Icon / AI Chat Bubble */
.ai-chat-bubble, 
.ai-chat-bubble * {
    color: #ffffff !important;
}

/* Color Scheme Adjustments for Light Mode Readability */
.text-sky-400, .text-sky-300 {
    color: #0369a1 !important; /* Deep Sky 700 */
}
.text-sky-450, .text-sky-500 {
    color: #0284c7 !important; /* Sky 600 */
}
.text-emerald-400, .text-emerald-500 {
    color: #0f766e !important; /* Deep Teal 700 */
}
.bg-sky-950\/30, .bg-sky-950\/50, .bg-sky-500\/10 {
    background-color: #f0f9ff !important; /* Soft Sky 50 Pastel Background */
}
.bg-emerald-950\/40, .bg-emerald-950\/15 {
    background-color: #f0fdf4 !important; /* Soft Emerald 50 Pastel Background */
}
.border-sky-500\/20, .border-sky-500\/10, .border-emerald-500\/15, .border-emerald-500\/20 {
    border-color: #bae6fd !important; /* Sky 200 light borders */
}
.bg-sky-600 {
    background-color: #0284c7 !important; /* Sky 600 buttons */
    color: #ffffff !important;
}
.bg-sky-600:hover {
    background-color: #0369a1 !important; /* Sky 700 hover */
}
.bg-sky-950 {
    background-color: #e0f2fe !important; /* Light blue badge */
    color: #0369a1 !important; /* Deep sky text */
}

/* Custom Scrollbar (Water Blue Accent) */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #f1f5f9;
}
::-webkit-scrollbar-thumb {
    background: #0284c7;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #0ea5e9;
}

/* Glassmorphism Classes (Deep Ocean Theme) */
.glass-panel {
    background: rgba(15, 23, 42, 0.45);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.glass-card {
    background: rgba(3, 7, 18, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.glass-card:hover {
    border-color: rgba(14, 165, 233, 0.4);
    box-shadow: 0 10px 30px -10px rgba(2, 132, 199, 0.25);
}

/* Copy Action Success Toast */
.toast-container {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translate(-50%, 100px);
    z-index: 100;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    pointer-events: none;
}
.toast-container.show {
    transform: translate(-50%, 0);
}
.toast-content {
    background: #064e3b;
    border: 1px solid #10b981;
    color: #d1fae5;
    padding: 12px 24px;
    border-radius: 16px;
    box-shadow: 0 10px 25px -5px rgba(16, 185, 129, 0.4);
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    font-weight: 700;
}
.toast-checkmark {
    color: #34d399;
    font-size: 16px;
}

/* Dynamic Social Proof Notification */
.social-proof-toast {
    position: fixed;
    bottom: 84px;
    left: 20px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    color: #1e293b;
    padding: 14px 18px;
    border-radius: 20px;
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.08);
    z-index: 45;
    display: flex;
    align-items: center;
    gap: 12px;
    max-width: 320px;
    transform: translateX(-400px);
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.social-proof-toast.show {
    transform: translateX(0);
}
.sp-avatar {
    width: 38px;
    height: 38px;
    background: linear-gradient(135deg, #0284c7, #10b981);
    color: white;
    font-weight: 900;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 15px;
    box-shadow: 0 4px 10px rgba(2, 132, 199, 0.3);
    flex-shrink: 0;
}
.sp-text {
    font-size: 12px;
    line-height: 1.4;
}

/* Floating AI Assistant Chat Window */
.ai-chat-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 50;
}
.ai-chat-toggle {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: linear-gradient(135deg, #0284c7, #0f766e);
    color: white;
    border: none;
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(2, 132, 199, 0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    position: relative;
}
.ai-chat-toggle:hover {
    transform: scale(1.08);
    box-shadow: 0 8px 24px rgba(2, 132, 199, 0.6);
}
.ai-toggle-text {
    display: none;
    position: absolute;
    right: 64px;
    background: #022c22;
    border: 1px solid #10b981;
    color: #e6fffa;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}
.ai-chat-toggle:hover .ai-toggle-text {
    display: block;
}
.ai-icon {
    width: 24px;
    height: 24px;
}
.pulse-ai::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 2px solid #0ea5e9;
    animation: ai-pulse 2s infinite;
    pointer-events: none;
}
@keyframes ai-pulse {
    0% { transform: scale(1); opacity: 1; }
    100% { transform: scale(1.5); opacity: 0; }
}

.ai-chat-box {
    position: absolute;
    bottom: 64px;
    right: 0;
    width: 320px;
    height: 400px;
    background: #030712;
    border: 1px solid rgba(14, 165, 233, 0.3);
    border-radius: 24px;
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.4);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    opacity: 0;
    transform: scale(0.9) translateY(20px);
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.ai-chat-box.open {
    opacity: 1;
    transform: scale(1) translateY(0);
    pointer-events: auto;
}
.ai-chat-header {
    background: linear-gradient(135deg, #022c22, #042f2e);
    border-bottom: 1px solid rgba(14, 165, 233, 0.2);
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.ai-chat-header-info {
    display: flex;
    align-items: center;
    gap: 10px;
}
.ai-chat-title {
    color: white;
    font-weight: 700;
    font-size: 13px;
}
.ai-chat-subtitle {
    color: #10b981;
    font-size: 10px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 4px;
}
.ai-chat-online {
    width: 6px;
    height: 6px;
    background: #10b981;
    border-radius: 50%;
    display: inline-block;
}
.ai-chat-close {
    color: #94a3b8;
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
}
.ai-chat-close:hover {
    color: white;
}
.ai-chat-messages {
    flex: 1;
    padding: 16px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.ai-message {
    max-width: 85%;
    padding: 10px 14px;
    border-radius: 16px;
    font-size: 12px;
    line-height: 1.5;
}
.ai-message-received {
    background: rgba(30, 41, 59, 0.8);
    color: #e2e8f0;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-top-left-radius: 4px;
    align-self: flex-start;
}
.ai-message-sent {
    background: #0284c7;
    color: white;
    border-top-right-radius: 4px;
    align-self: flex-end;
}
.ai-chat-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 4px;
    align-self: flex-start;
}
.ai-chip {
    background: rgba(2, 132, 199, 0.15);
    border: 1px solid rgba(14, 165, 233, 0.3);
    color: #38bdf8;
    padding: 6px 12px;
    border-radius: 12px;
    font-size: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}
.ai-chip:hover {
    background: #0284c7;
    color: white;
    border-color: #0284c7;
}
.ai-typing-indicator {
    background: rgba(30, 41, 59, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 8px 14px;
    border-radius: 16px;
    border-top-left-radius: 4px;
    align-self: flex-start;
    display: flex;
    gap: 4px;
    align-items: center;
}
.ai-typing-dot {
    width: 6px;
    height: 6px;
    background: #94a3b8;
    border-radius: 50%;
    animation: ai-typing 1.2s infinite ease-in-out;
}
.ai-typing-dot:nth-child(2) { animation-delay: 0.2s; }
.ai-typing-dot:nth-child(3) { animation-delay: 0.4s; }
@keyframes ai-typing {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-4px); }
}
.ai-chat-input-area {
    padding: 10px 14px;
    background: #0f172a;
    display: flex;
    align-items: center;
    gap: 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}
.ai-chat-input-area input {
    flex: 1;
    background: rgba(3, 7, 18, 0.6);
    border: 1px solid rgba(14, 165, 233, 0.2);
    border-radius: 12px;
    color: white;
    padding: 8px 12px;
    font-size: 12px;
    outline: none;
}
.ai-chat-input-area input:focus {
    border-color: #0284c7;
}
.ai-chat-send {
    background: #0284c7;
    color: white;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s ease;
}
.ai-chat-send:hover {
    background: #0ea5e9;
}
.ai-chat-footer {
    font-size: 8px;
    color: #64748b;
    text-align: center;
    padding: 4px;
    background: #030712;
    border-top: 1px solid rgba(255, 255, 255, 0.03);
}

/* Mobile responsive resets for chat container to prevent overlaying the sticky bottom CTA bar */
@media (max-width: 480px) {
    .ai-chat-container {
        bottom: 80px; /* Sit cleanly above the sticky bar */
        right: 16px;
    }
    .ai-chat-box {
        width: calc(100vw - 32px);
        right: 0;
        bottom: 60px;
    }
}

/* ─── Premium Mobile Optimizations & Responsive Scale Overrides ─── */
@media (max-width: 768px) {
    /* Responsive font sizes and weights for absolute mobile readability */
    h1 {
        font-size: 1.625rem !important; /* ~26px */
        font-weight: 800 !important;
        line-height: 1.25 !important;
        letter-spacing: -0.025em !important;
        margin-top: 0.75rem !important;
        margin-bottom: 1rem !important;
    }
    h2 {
        font-size: 1.25rem !important; /* ~20px */
        font-weight: 700 !important;
        line-height: 1.3 !important;
        letter-spacing: -0.015em !important;
        margin-top: 1.75rem !important;
        margin-bottom: 0.75rem !important;
    }
    h3 {
        font-size: 1.05rem !important; /* ~17px */
        font-weight: 700 !important;
        line-height: 1.35 !important;
        margin-top: 1.25rem !important;
        margin-bottom: 0.5rem !important;
    }
    
    /* Primary body, list, and span size and weight scaling */
    body, p, li, span, td, th {
        font-size: 0.875rem !important; /* ~14px */
        font-weight: 400 !important;
        line-height: 1.625 !important; /* Clean readability line spacing */
        color: #334155 !important; /* Soft Slate-700 for better eye comfort */
    }
    strong, b {
        font-weight: 700 !important;
        color: #0f172a !important; /* Slate-900 for solid contrast */
    }
    
    /* Preformatted, code blocks and code tag styling */
    code, pre, .font-mono, [data-code] {
        font-size: 0.85rem !important;
        font-weight: 700 !important;
    }
    
    /* Fluid container paddings for tight mobile displays */
    .max-w-5xl, .max-w-4xl, .max-w-3xl, main {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
        padding-top: 1.5rem !important;
        padding-bottom: 1.5rem !important;
    }
    
    /* Card padding adjustments */
    .glass-card, .bg-sky-50, .bg-yellow-50\/60, .bg-white.shadow-sm, section {
        padding: 1.25rem !important;
        border-radius: 1rem !important;
    }
    
    /* Spacing adjustments */
    .py-16, .py-12, .py-10, .py-8 {
        padding-top: 1.75rem !important;
        padding-bottom: 1.75rem !important;
    }
    .my-12, .my-8, .my-6 {
        margin-top: 1.5rem !important;
        margin-bottom: 1.5rem !important;
    }
    .mb-6, .mb-8, .mb-10, .mb-12 {
        margin-bottom: 1rem !important;
    }
    .gap-6, .gap-8, .gap-10 {
        gap: 0.75rem !important;
    }
    
    /* Table optimizations for touch displays */
    .overflow-x-auto {
        display: block;
        width: 100%;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch;
        margin-top: 1rem !important;
        margin-bottom: 1rem !important;
        border-radius: 0.75rem !important;
    }
    table {
        min-width: 100% !important;
    }
    th, td {
        padding: 0.625rem 0.75rem !important; /* Slightly tighter cell paddings */
        font-size: 0.8rem !important;
    }
    
    /* Copy buttons scaling */
    
    
    /* Sticky footer coupon container modifications */
    #sticky-cta {
        padding: 0.75rem 1rem !important;
    }
    #sticky-cta p {
        font-size: 0.8rem !important;
        line-height: 1.4 !important;
    }
}


/* Mobile Responsive Optimizations */
html, body {
    max-width: 100%;
    overflow-x: hidden;
    -webkit-tap-highlight-color: transparent;
}

/* Touch targets optimization */
button, a, input, select {
    touch-action: manipulation;
}

.copy-btn {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Table mobile scrolling */
.overflow-x-auto {
    -webkit-overflow-scrolling: touch;
}

/* Mobile AI Chat Box adjustments */
@media (max-width: 640px) {
    .ai-chat-box {
        width: calc(100vw - 2rem) !important;
        right: 1rem !important;
        bottom: 5rem !important;
        max-height: 75vh !important;
    }
    
    .ai-chat-toggle {
        bottom: 1rem !important;
        right: 1rem !important;
        padding: 0.6rem 1rem !important;
        font-size: 0.85rem !important;
    }
}


/* ─────────────────────────────────────────────────────────────
   MOBILE UI PERFECTION FIXES (Matching User Mobile Screenshot)
   ───────────────────────────────────────────────────────────── */

/* 1. Top Urgency Bar Mobile Scaling */
.urgency-bar-text {
    font-size: 0.75rem;
    line-height: 1.15;
}
@media (min-width: 640px) {
    .urgency-bar-text {
        font-size: 0.875rem;
    }
}

/* 2. Header Logo & Menu Button Layout on Small Screens */
header .max-w-6xl {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
}

.header-logo-text {
    font-size: 1.05rem !important;
    letter-spacing: -0.025em;
    word-break: break-word;
    line-height: 1.2;
}

@media (min-width: 640px) {
    .header-logo-text {
        font-size: 1.25rem !important;
    }
}
@media (min-width: 768px) {
    .header-logo-text {
        font-size: 1.5rem !important;
    }
}

/* 3. Hero H1 Mobile Font Scaling */
h1.hero-title, h1 {
    word-break: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
}

/* 4. Social Proof Toast Notification Position on Mobile */
.social-proof-toast {
    position: fixed;
    bottom: 4.5rem;
    left: 0.75rem;
    max-width: 75vw;
    z-index: 35;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
}

@media (min-width: 640px) {
    .social-proof-toast {
        bottom: 1.5rem;
        left: 1.5rem;
        max-width: 320px;
    }
}

/* 5. AI Chat Floating Button Mobile Placement */
.ai-chat-container {
    position: fixed;
    bottom: 1rem;
    right: 0.75rem;
    z-index: 45;
}

@media (max-width: 640px) {
    .ai-chat-toggle {
        padding: 0.5rem 0.75rem !important;
        font-size: 0.75rem !important;
        border-radius: 9999px !important;
        box-shadow: 0 4px 14px rgba(2, 132, 199, 0.4) !important;
    }
    
    .ai-chat-box {
        width: calc(100vw - 1.5rem) !important;
        right: 0.75rem !important;
        bottom: 4.5rem !important;
        max-height: 70vh !important;
    }
}

/* 6. Sticky Bottom Mobile Coupon Bar */
.sticky-mobile-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 40;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(12px);
    border-top: 1px solid #e2e8f0;
    padding: 0.6rem 1rem;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.08);
}


/* Compact Mobile Copy Button Override */
@media (max-width: 640px) {
    .copy-btn {
        min-height: 32px !important;
        padding: 0.35rem 0.75rem !important;
        font-size: 0.75rem !important;
        border-radius: 0.5rem !important;
        line-height: 1 !important;
    }
}


/* Fix Copy Button Width Overflow */
.copy-btn {
    width: auto !important;
    max-width: fit-content !important;
    white-space: nowrap !important;
    flex-shrink: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
}
