/* ================================================================
   Marketing AI — Design System & Landing Page Styles
   Modern, Clean, Elegant
   ================================================================ */

/* ----------------------------------------------------------------
   0. CSS Custom Properties (Design Tokens)
   ---------------------------------------------------------------- */
:root {
    /* Primary Palette */
    --primary-50: #eef2ff;
    --primary-100: #e0e7ff;
    --primary-200: #c7d2fe;
    --primary-300: #a5b4fc;
    --primary-400: #818cf8;
    --primary-500: #6366f1;
    --primary-600: #4f46e5;
    --primary-700: #4338ca;
    --primary-800: #3730a3;
    --primary-900: #312e81;

    /* Accent */
    --accent-400: #38bdf8;
    --accent-500: #0ea5e9;
    --accent-600: #0284c7;

    /* Emerald (Success) */
    --emerald-400: #34d399;
    --emerald-500: #10b981;

    /* Amber (Warning) */
    --amber-400: #fbbf24;
    --amber-500: #f59e0b;

    /* Rose (Danger) */
    --rose-400: #fb7185;
    --rose-500: #f43f5e;

    /* Neutrals */
    --slate-50: #f8fafc;
    --slate-100: #f1f5f9;
    --slate-200: #e2e8f0;
    --slate-300: #cbd5e1;
    --slate-400: #94a3b8;
    --slate-500: #64748b;
    --slate-600: #475569;
    --slate-700: #334155;
    --slate-800: #1e293b;
    --slate-900: #0f172a;
    --slate-950: #020617;

    /* Surfaces */
    --bg-primary: #050a18;
    --bg-secondary: #0a1628;
    --bg-card: rgba(15, 23, 42, 0.7);
    --bg-card-hover: rgba(30, 41, 59, 0.8);
    --bg-glass: rgba(255, 255, 255, 0.05);
    --bg-glass-strong: rgba(255, 255, 255, 0.1);

    /* Borders */
    --border-subtle: rgba(255, 255, 255, 0.06);
    --border-default: rgba(255, 255, 255, 0.1);
    --border-strong: rgba(255, 255, 255, 0.15);
    --border-focus: rgba(99, 102, 241, 0.5);

    /* Typography */
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

    /* Spacing */
    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-5: 1.25rem;
    --space-6: 1.5rem;
    --space-8: 2rem;
    --space-10: 2.5rem;
    --space-12: 3rem;
    --space-16: 4rem;
    --space-20: 5rem;

    /* Radius */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.25rem;
    --radius-full: 9999px;

    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.4), 0 2px 4px -2px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.4), 0 4px 6px -4px rgba(0, 0, 0, 0.3);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.5), 0 8px 10px -6px rgba(0, 0, 0, 0.4);
    --shadow-glow: 0 0 40px rgba(99, 102, 241, 0.15);
    --shadow-glow-accent: 0 0 40px rgba(14, 165, 233, 0.15);

    /* Transitions */
    --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 250ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 350ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-spring: 500ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ----------------------------------------------------------------
   1. Reset & Base
   ---------------------------------------------------------------- */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-sans);
    background: var(--bg-primary);
    color: var(--slate-200);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
}

a {
    color: var(--primary-400);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--primary-300);
}

/* ----------------------------------------------------------------
   2. Animated Background
   ---------------------------------------------------------------- */
.bg-canvas {
    position: fixed;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}

.bg-gradient {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 60% at 50% 0%, rgba(99, 102, 241, 0.12) 0%, transparent 60%),
        radial-gradient(ellipse 60% 50% at 80% 50%, rgba(14, 165, 233, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse 50% 40% at 20% 80%, rgba(168, 85, 247, 0.06) 0%, transparent 50%),
        var(--bg-primary);
}

.bg-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse 70% 70% at 50% 50%, black 30%, transparent 80%);
    -webkit-mask-image: radial-gradient(ellipse 70% 70% at 50% 50%, black 30%, transparent 80%);
}

/* Floating Orbs */
.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
    animation: orbFloat 20s ease-in-out infinite;
}

.orb-1 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.3), transparent 70%);
    top: -100px;
    right: -100px;
    animation-delay: 0s;
}

.orb-2 {
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, rgba(14, 165, 233, 0.25), transparent 70%);
    bottom: -80px;
    left: -80px;
    animation-delay: -7s;
}

.orb-3 {
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, rgba(168, 85, 247, 0.2), transparent 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: -14s;
}

@keyframes orbFloat {

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

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

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

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

/* ----------------------------------------------------------------
   3. Layout
   ---------------------------------------------------------------- */
.page-wrapper {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-6);
}

/* ----------------------------------------------------------------
   4. Header / Navbar
   ---------------------------------------------------------------- */
.navbar {
    position: sticky;
    top: 0;
    z-index: 100;
    padding: var(--space-4) 0;
    background: rgba(5, 10, 24, 0.6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-subtle);
    transition: background var(--transition-base);
}

.navbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: var(--space-3);
}

.brand-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-600), var(--accent-500));
    border-radius: var(--radius-lg);
    font-size: 1.2rem;
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.3);
}

.brand-text {
    font-size: 1.25rem;
    font-weight: 700;
    background: linear-gradient(135deg, #fff 0%, var(--slate-300) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.02em;
}

.brand-badge {
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 2px 8px;
    border-radius: var(--radius-full);
    background: rgba(99, 102, 241, 0.15);
    color: var(--primary-300);
    border: 1px solid rgba(99, 102, 241, 0.2);
}

.navbar-links {
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

.nav-link {
    padding: var(--space-2) var(--space-4);
    border-radius: var(--radius-md);
    color: var(--slate-400);
    font-size: 0.875rem;
    font-weight: 500;
    transition: all var(--transition-fast);
}

.nav-link:hover {
    color: var(--slate-100);
    background: var(--bg-glass);
}

.nav-link.active {
    color: var(--primary-300);
    background: rgba(99, 102, 241, 0.1);
}

/* ----------------------------------------------------------------
   5. Hero Section
   ---------------------------------------------------------------- */
.hero {
    padding: var(--space-16) 0 var(--space-8);
    text-align: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-2) var(--space-4);
    border-radius: var(--radius-full);
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.2);
    color: var(--primary-300);
    font-size: 0.8rem;
    font-weight: 500;
    margin-bottom: var(--space-6);
    animation: fadeInUp 0.6s ease-out;
}

.hero-badge .pulse-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--emerald-400);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {

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

    50% {
        opacity: 0.5;
        transform: scale(0.8);
    }
}

.hero-title {
    font-size: clamp(2.2rem, 5vw, 3.5rem);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.03em;
    margin-bottom: var(--space-6);
    animation: fadeInUp 0.6s ease-out 0.1s both;
}

.hero-title .gradient-text {
    background: linear-gradient(135deg, var(--primary-400) 0%, var(--accent-400) 50%, var(--primary-300) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    background-size: 200% auto;
    animation: shimmer 3s linear infinite;
}

@keyframes shimmer {
    0% {
        background-position: 0% center;
    }

    100% {
        background-position: 200% center;
    }
}

.hero-subtitle {
    font-size: 1.1rem;
    color: var(--slate-400);
    max-width: 580px;
    margin: 0 auto var(--space-10);
    line-height: 1.7;
    animation: fadeInUp 0.6s ease-out 0.2s both;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ----------------------------------------------------------------
   6. Chat Card (Main Feature)
   ---------------------------------------------------------------- */
.chat-section {
    padding-bottom: var(--space-16);
    animation: fadeInUp 0.6s ease-out 0.3s both;
}

.chat-card {
    max-width: 720px;
    margin: 0 auto;
    background: var(--bg-card);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-2xl);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: var(--shadow-xl), var(--shadow-glow);
    overflow: hidden;
    transition: border-color var(--transition-base), box-shadow var(--transition-base);
}

.chat-card:hover {
    border-color: var(--border-strong);
}

.chat-card:focus-within {
    border-color: var(--border-focus);
    box-shadow: var(--shadow-xl), 0 0 0 4px rgba(99, 102, 241, 0.1), var(--shadow-glow);
}

.chat-header {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-5) var(--space-6);
    border-bottom: 1px solid var(--border-subtle);
}

.chat-avatar {
    width: 42px;
    height: 42px;
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, var(--primary-600), var(--accent-500));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.chat-info h3 {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--slate-100);
}

.chat-info p {
    font-size: 0.8rem;
    color: var(--slate-400);
    display: flex;
    align-items: center;
    gap: var(--space-1);
}

.chat-info .online-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--emerald-400);
    display: inline-block;
}

.chat-body {
    padding: var(--space-6);
}

.chat-messages {
    min-height: 80px;
    margin-bottom: var(--space-4);
}

.chat-bubble {
    max-width: 85%;
    padding: var(--space-4) var(--space-5);
    border-radius: var(--radius-xl);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: var(--space-3);
    animation: bubbleIn 0.3s ease-out;
}

@keyframes bubbleIn {
    from {
        opacity: 0;
        transform: translateY(10px) scale(0.95);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.chat-bubble.bot {
    background: var(--bg-glass-strong);
    border: 1px solid var(--border-subtle);
    color: var(--slate-200);
    border-bottom-left-radius: var(--radius-sm);
}

.chat-bubble.user {
    background: linear-gradient(135deg, var(--primary-600), var(--primary-700));
    color: white;
    margin-left: auto;
    border-bottom-right-radius: var(--radius-sm);
}

.chat-bubble.success {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.2);
    color: var(--emerald-400);
}

.chat-bubble.error {
    background: rgba(244, 63, 94, 0.1);
    border: 1px solid rgba(244, 63, 94, 0.2);
    color: var(--rose-400);
}

/* Typing indicator */
.typing-indicator {
    display: flex;
    gap: 4px;
    padding: var(--space-3) var(--space-4);
    align-items: center;
}

.typing-indicator span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--slate-400);
    animation: typingBounce 1.4s ease-in-out infinite;
}

.typing-indicator span:nth-child(2) {
    animation-delay: 0.2s;
}

.typing-indicator span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes typingBounce {

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

    30% {
        transform: translateY(-6px);
        opacity: 1;
    }
}

/* Chat Input Area */
.chat-input-area {
    display: flex;
    gap: var(--space-3);
    align-items: flex-end;
}

.chat-textarea-wrapper {
    flex: 1;
    position: relative;
}

.chat-textarea {
    width: 100%;
    min-height: 56px;
    max-height: 200px;
    padding: var(--space-4) var(--space-5);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-xl);
    background: var(--bg-glass);
    color: var(--slate-100);
    font-family: var(--font-sans);
    font-size: 0.9rem;
    line-height: 1.5;
    resize: none;
    outline: none;
    transition: border-color var(--transition-fast), background var(--transition-fast);
}

.chat-textarea::placeholder {
    color: var(--slate-500);
}

.chat-textarea:focus {
    border-color: var(--border-focus);
    background: rgba(255, 255, 255, 0.07);
}

.chat-send-btn {
    width: 52px;
    height: 52px;
    border-radius: var(--radius-xl);
    border: none;
    background: linear-gradient(135deg, var(--primary-600), var(--primary-500));
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all var(--transition-fast);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.chat-send-btn:hover {
    background: linear-gradient(135deg, var(--primary-500), var(--primary-400));
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(99, 102, 241, 0.4);
}

.chat-send-btn:active {
    transform: translateY(0);
}

.chat-send-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.chat-send-btn .spinner {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.chat-footer {
    padding: var(--space-3) var(--space-6) var(--space-4);
    border-top: 1px solid var(--border-subtle);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
}

.chat-footer p {
    font-size: 0.75rem;
    color: var(--slate-500);
}

.chat-footer .shield-icon {
    color: var(--emerald-400);
}

/* ----------------------------------------------------------------
   7. Features Section
   ---------------------------------------------------------------- */
.features {
    padding: var(--space-16) 0;
}

.section-header {
    text-align: center;
    margin-bottom: var(--space-12);
}

.section-label {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--primary-400);
    margin-bottom: var(--space-3);
}

.section-title {
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    font-weight: 700;
    color: var(--slate-100);
    letter-spacing: -0.02em;
}

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

.feature-card {
    padding: var(--space-8);
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-2xl);
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.05), transparent);
    opacity: 0;
    transition: opacity var(--transition-base);
}

.feature-card:hover {
    border-color: var(--border-strong);
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

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

.feature-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    margin-bottom: var(--space-5);
    position: relative;
    z-index: 1;
}

.feature-icon.icon-blue {
    background: rgba(14, 165, 233, 0.12);
    color: var(--accent-400);
}

.feature-icon.icon-purple {
    background: rgba(99, 102, 241, 0.12);
    color: var(--primary-400);
}

.feature-icon.icon-green {
    background: rgba(16, 185, 129, 0.12);
    color: var(--emerald-400);
}

.feature-card h3 {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--slate-100);
    margin-bottom: var(--space-2);
    position: relative;
    z-index: 1;
}

.feature-card p {
    font-size: 0.875rem;
    color: var(--slate-400);
    line-height: 1.6;
    position: relative;
    z-index: 1;
}

/* ----------------------------------------------------------------
   8. Footer
   ---------------------------------------------------------------- */
.site-footer {
    padding: var(--space-8) 0;
    border-top: 1px solid var(--border-subtle);
    margin-top: auto;
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: var(--space-4);
}

.footer-text {
    font-size: 0.8rem;
    color: var(--slate-500);
}

.footer-links {
    display: flex;
    gap: var(--space-6);
}

.footer-links a {
    font-size: 0.8rem;
    color: var(--slate-500);
    transition: color var(--transition-fast);
}

.footer-links a:hover {
    color: var(--slate-300);
}

/* ----------------------------------------------------------------
   9. Utility & Responsive
   ---------------------------------------------------------------- */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* Responsive */
@media (max-width: 768px) {
    .container {
        padding: 0 var(--space-4);
    }

    .hero {
        padding: var(--space-10) 0 var(--space-6);
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .chat-card {
        border-radius: var(--radius-xl);
    }

    .chat-body {
        padding: var(--space-4);
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .footer-inner {
        flex-direction: column;
        text-align: center;
    }

    .navbar-links {
        display: none;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.6rem;
    }

    .chat-header {
        padding: var(--space-4);
    }

    .chat-body {
        padding: var(--space-3);
    }

    .chat-textarea {
        padding: var(--space-3) var(--space-4);
    }

    .chat-send-btn {
        width: 46px;
        height: 46px;
    }
}

/* ----------------------------------------------------------------
   10. Scrollbar
   ---------------------------------------------------------------- */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: var(--slate-700);
    border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--slate-600);
}

/* ----------------------------------------------------------------
   11. Toast Notification
   ---------------------------------------------------------------- */
.toast-container {
    position: fixed;
    top: var(--space-6);
    right: var(--space-6);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

.toast {
    padding: var(--space-4) var(--space-5);
    border-radius: var(--radius-lg);
    background: var(--bg-card);
    border: 1px solid var(--border-default);
    backdrop-filter: blur(20px);
    box-shadow: var(--shadow-xl);
    min-width: 280px;
    max-width: 400px;
    display: flex;
    align-items: center;
    gap: var(--space-3);
    font-size: 0.875rem;
    animation: toastIn 0.3s ease-out;
}

.toast.toast-success {
    border-color: rgba(16, 185, 129, 0.3);
    color: var(--emerald-400);
}

.toast.toast-error {
    border-color: rgba(244, 63, 94, 0.3);
    color: var(--rose-400);
}

@keyframes toastIn {
    from {
        opacity: 0;
        transform: translateX(40px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.toast-exit {
    animation: toastOut 0.3s ease-in forwards;
}

@keyframes toastOut {
    to {
        opacity: 0;
        transform: translateX(40px);
    }
}

/* ----------------------------------------------------------------
   12. Coverage Checker Page Section
   ---------------------------------------------------------------- */
.coverage-section {
    padding-bottom: var(--space-16);
    animation: fadeInUp 0.6s ease-out 0.3s both;
}

.client-map-wrapper {
    position: relative;
    width: 100%;
    height: 480px;
    border-radius: var(--radius-2xl);
    border: 1px solid var(--border-default);
    overflow: hidden;
    box-shadow: var(--shadow-xl), var(--shadow-glow);
}

#clientMap {
    width: 100%;
    height: 100%;
    z-index: 1;
}

/* Custom dark tile filtering */
#clientMap .leaflet-tile-pane {
    filter: brightness(0.8) contrast(1.1) saturate(0.85);
}

.coverage-card {
    position: absolute;
    top: var(--space-4);
    right: var(--space-4);
    width: 320px;
    max-height: calc(100% - 2 * var(--space-4));
    background: rgba(10, 22, 40, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-xl);
    padding: var(--space-4) var(--space-5);
    z-index: 10;
    box-shadow: var(--shadow-lg);
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

.cov-card-body {
    flex: 1;
    overflow-y: auto;
    min-height: 0;
}

.cov-card-header {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    margin-bottom: var(--space-3);
    flex-shrink: 0;
}

.cov-card-header h4 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--slate-100);
}

.cov-card-desc {
    font-size: 0.8rem;
    color: var(--slate-400);
    margin-bottom: var(--space-3);
    line-height: 1.5;
}

.btn-location {
    width: 100%;
    padding: var(--space-3) var(--space-4);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-default);
    background: var(--bg-glass);
    color: var(--slate-200);
    font-size: 0.85rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    transition: all var(--transition-fast);
}

.btn-location:hover {
    background: var(--bg-glass-strong);
    color: var(--slate-100);
    border-color: var(--border-strong);
}

.cov-result-container {
    opacity: 1;
    transition: opacity var(--transition-base);
}

.cov-result-container.hidden {
    display: none;
    opacity: 0;
}

.cov-result-container .divider {
    height: 1px;
    background: var(--border-subtle);
    margin: var(--space-4) 0;
}

.result-status-wrap {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    margin-bottom: var(--space-2);
}

.result-badge {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: var(--space-1) var(--space-3);
    border-radius: var(--radius-full);
}

.result-badge.covered {
    background: rgba(16, 185, 129, 0.15);
    color: var(--emerald-400);
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.result-badge.not-covered {
    background: rgba(244, 63, 94, 0.15);
    color: var(--rose-400);
    border: 1px solid rgba(244, 63, 94, 0.3);
}

.result-text {
    font-size: 0.82rem;
    color: var(--slate-300);
    margin-bottom: var(--space-4);
    line-height: 1.5;
}

.btn-register-link {
    width: 100%;
    padding: var(--space-3) var(--space-4);
    border-radius: var(--radius-lg);
    border: none;
    background: linear-gradient(135deg, var(--primary-600), var(--primary-500));
    color: white;
    font-size: 0.85rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    text-align: center;
    transition: all var(--transition-fast);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.2);
}

.btn-register-link:hover {
    background: linear-gradient(135deg, var(--primary-500), var(--primary-400));
    box-shadow: 0 6px 16px rgba(99, 102, 241, 0.3);
}

/* User marker styles */
.pulse-user-marker {
    width: 16px;
    height: 16px;
    background: var(--primary-500);
    border: 2px solid white;
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(99, 102, 241, 0.8);
    position: relative;
}

.pulse-user-marker::after {
    content: '';
    position: absolute;
    top: -6px;
    left: -6px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 2px solid var(--primary-400);
    animation: markerPulse 1.5s ease-out infinite;
    opacity: 0;
}

@keyframes markerPulse {
    0% {
        transform: scale(0.6);
        opacity: 0.8;
    }

    100% {
        transform: scale(1.6);
        opacity: 0;
    }
}

@media (max-width: 768px) {
    .client-map-wrapper {
        height: 550px;
        display: flex;
        flex-direction: column;
    }

    #clientMap {
        height: 350px;
    }

    .coverage-card {
        position: relative;
        top: 0;
        right: 0;
        width: 100%;
        max-height: none;
        border-radius: 0;
        border: none;
        border-top: 1px solid var(--border-default);
        background: var(--bg-secondary);
    }
}