/* ============================================
   iOS 26 LIQUID GLASS DESIGN SYSTEM
   ============================================ */

/* CSS Variables - Dynamic Theme */
:root {
    /* Glass Colors */
    --glass-bg: rgba(255, 255, 255, 0.08);
    --glass-bg-strong: rgba(255, 255, 255, 0.12);
    --glass-border: rgba(255, 255, 255, 0.15);
    --glass-border-strong: rgba(255, 255, 255, 0.25);

    /* Dynamic Gradients */
    --gradient-primary: linear-gradient(135deg, #ff4500 0%, #dc143c 50%, #ff6347 100%);
    --gradient-accent: linear-gradient(135deg, #ff6b35 0%, #f7931e 50%, #ff4757 100%);
    --gradient-glow: linear-gradient(135deg, rgba(255, 69, 0, 0.4) 0%, rgba(220, 20, 60, 0.4) 100%);

    /* Text Colors */
    --text-primary: rgba(255, 255, 255, 0.95);
    --text-secondary: rgba(255, 255, 255, 0.7);
    --text-muted: rgba(255, 255, 255, 0.5);

    /* Background */
    --bg-dark: #0a0a0f;
    --bg-gradient-1: #1a0a0a;
    --bg-gradient-2: #2a0f0f;
    --bg-gradient-3: #0f0505;

    /* Accent Colors */
    --accent-blue: #ff6b35;
    --accent-purple: #ff4500;
    --accent-pink: #dc143c;
    --accent-cyan: #ffa500;

    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 8px 32px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 16px 64px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 60px rgba(255, 69, 0, 0.3);

    /* Blur */
    --blur-sm: blur(8px);
    --blur-md: blur(16px);
    --blur-lg: blur(32px);

    /* Transitions */
    --transition-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-spring: 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);

    /* Spacing */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;

    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-xl: 32px;
    --radius-full: 9999px;
}

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

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'SF Pro Display', sans-serif;
    background: var(--bg-dark);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ============================================
   ANIMATED BACKGROUND
   ============================================ */

.bg-gradient {
    position: fixed;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 50% at 50% -20%, rgba(255, 69, 0, 0.3), transparent),
        radial-gradient(ellipse 60% 40% at 80% 50%, rgba(220, 20, 60, 0.2), transparent),
        radial-gradient(ellipse 50% 30% at 20% 80%, rgba(255, 99, 71, 0.15), transparent),
        linear-gradient(180deg, var(--bg-gradient-1), var(--bg-gradient-2), var(--bg-gradient-3));
    z-index: -2;
    animation: gradientShift 15s ease-in-out infinite;
}

@keyframes gradientShift {

    0%,
    100% {
        filter: hue-rotate(0deg) brightness(1);
    }

    50% {
        filter: hue-rotate(20deg) brightness(1.1);
    }
}

.bg-orbs {
    position: fixed;
    inset: 0;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

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

.orb-1 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255, 69, 0, 0.4) 0%, transparent 70%);
    top: -10%;
    left: -5%;
    animation-delay: 0s;
}

.orb-2 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(255, 107, 53, 0.4) 0%, transparent 70%);
    top: 40%;
    right: -10%;
    animation-delay: -5s;
}

.orb-3 {
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, rgba(220, 20, 60, 0.3) 0%, transparent 70%);
    bottom: -5%;
    left: 30%;
    animation-delay: -10s;
}

.orb-4 {
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, rgba(255, 165, 0, 0.3) 0%, transparent 70%);
    top: 20%;
    left: 50%;
    animation-delay: -15s;
}

@keyframes orbFloat {

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

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

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

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

/* ============================================
   GLASS COMPONENTS
   ============================================ */

.glass-card {
    background: var(--glass-bg);
    backdrop-filter: var(--blur-md);
    -webkit-backdrop-filter: var(--blur-md);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    box-shadow:
        var(--shadow-md),
        inset 0 1px 0 rgba(255, 255, 255, 0.1),
        inset 0 -1px 0 rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
    transition: all var(--transition-base);
}

.glass-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg,
            rgba(255, 255, 255, 0.1) 0%,
            transparent 50%,
            rgba(255, 255, 255, 0.05) 100%);
    pointer-events: none;
}

.glass-card:hover {
    border-color: var(--glass-border-strong);
    box-shadow:
        var(--shadow-lg),
        var(--shadow-glow),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.card-glow {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at center,
            rgba(255, 69, 0, 0.1) 0%,
            transparent 50%);
    opacity: 0;
    transition: opacity var(--transition-slow);
    pointer-events: none;
}

.glass-card:hover .card-glow {
    opacity: 1;
}

.glass-inner {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-md);
    padding: var(--space-md);
}

.glass-input {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
}

.glass-input:focus-within {
    border-color: var(--accent-blue);
    box-shadow:
        0 0 0 3px rgba(255, 107, 53, 0.2),
        var(--shadow-sm);
}

.glass-input .input-glow {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 107, 53, 0.1), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.glass-input:focus-within .input-glow {
    transform: translateX(100%);
}

.glass-btn {
    background: var(--gradient-primary);
    border: none;
    border-radius: var(--radius-md);
    color: white;
    font-weight: 600;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all var(--transition-base);
}

.glass-btn::before {
    content: '';
    position: absolute;
    inset: 1px;
    background: linear-gradient(180deg,
            rgba(255, 255, 255, 0.2) 0%,
            transparent 50%,
            rgba(0, 0, 0, 0.1) 100%);
    border-radius: inherit;
    pointer-events: none;
}

.glass-btn:hover {
    transform: translateY(-2px);
    box-shadow:
        0 10px 40px rgba(255, 69, 0, 0.4),
        0 0 0 1px rgba(255, 255, 255, 0.1);
}

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

.glass-btn-secondary {
    background: var(--glass-bg-strong);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-base);
}

.glass-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--glass-border-strong);
}

/* ============================================
   LAYOUT
   ============================================ */

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: var(--space-xl);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    gap: var(--space-xl);
}

/* ============================================
   HEADER
   ============================================ */

.header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-md) 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.logo-icon {
    display: flex;
    animation: logoPulse 3s ease-in-out infinite;
}

@keyframes logoPulse {

    0%,
    100% {
        filter: drop-shadow(0 0 8px rgba(255, 107, 53, 0.5));
    }

    50% {
        filter: drop-shadow(0 0 16px rgba(255, 69, 0, 0.7));
    }
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.header-tagline {
    font-size: 0.875rem;
    color: var(--text-muted);
    letter-spacing: 0.05em;
}

/* ============================================
   MAIN CARD
   ============================================ */

.main-card {
    padding: var(--space-2xl);
}

.title-section {
    text-align: center;
    margin-bottom: var(--space-2xl);
}

.main-title {
    font-size: 2.5rem;
    font-weight: 700;
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: var(--space-sm);
    animation: titleShimmer 3s ease-in-out infinite;
}

@keyframes titleShimmer {

    0%,
    100% {
        filter: brightness(1);
    }

    50% {
        filter: brightness(1.2);
    }
}

.subtitle {
    color: var(--text-secondary);
    font-size: 1.125rem;
}

/* ============================================
   INPUT FORM
   ============================================ */

.input-form {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.input-label {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-weight: 500;
    color: var(--text-primary);
}

.label-icon {
    font-size: 1.25rem;
}

.input-wrapper {
    position: relative;
}

.input-wrapper input {
    width: 100%;
    padding: var(--space-md) var(--space-lg);
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-size: 1rem;
    font-family: inherit;
    outline: none;
}

.input-wrapper input::placeholder {
    color: var(--text-muted);
}

.input-hint {
    font-size: 0.75rem;
    color: var(--text-muted);
    padding-left: var(--space-sm);
}

/* ============================================
   SCRAPE BUTTON
   ============================================ */

.scrape-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: var(--space-md) var(--space-xl);
    font-size: 1.125rem;
    margin-top: var(--space-md);
}

.btn-icon {
    display: flex;
    transition: transform var(--transition-base);
}

.scrape-btn:hover .btn-icon {
    transform: scale(1.1) rotate(15deg);
}

.btn-ripple {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at var(--ripple-x, 50%) var(--ripple-y, 50%),
            rgba(255, 255, 255, 0.3) 0%,
            transparent 60%);
    opacity: 0;
    transition: opacity 0.3s;
}

.scrape-btn:active .btn-ripple {
    opacity: 1;
}

/* ============================================
   FEATURES ROW
   ============================================ */

.features-row {
    display: flex;
    justify-content: center;
    gap: var(--space-xl);
    margin-top: var(--space-xl);
    flex-wrap: wrap;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: 0.875rem;
    color: var(--text-secondary);
    padding: var(--space-sm) var(--space-md);
    background: rgba(255, 255, 255, 0.03);
    border-radius: var(--radius-full);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.feature-icon {
    font-size: 1rem;
}

/* ============================================
   MODAL
   ============================================ */

.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-base);
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal {
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    padding: var(--space-xl);
    transform: scale(0.9) translateY(20px);
    transition: transform var(--transition-spring);
}

.modal-overlay.active .modal {
    transform: scale(1) translateY(0);
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--space-xl);
}

.modal-header h2 {
    font-size: 1.25rem;
    font-weight: 600;
}

.modal-close {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 50%;
    color: var(--text-primary);
    font-size: 1.5rem;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

.modal-body {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
}

/* Estimate Info */
.estimate-info {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.estimate-row {
    display: flex;
    justify-content: space-between;
}

.estimate-label {
    color: var(--text-secondary);
}

.estimate-value {
    font-weight: 600;
    color: var(--accent-cyan);
}

/* ============================================
   SLIDER
   ============================================ */

.slider-container {
    padding: var(--space-md) 0;
}

.slider-labels {
    display: flex;
    justify-content: space-between;
    margin-bottom: var(--space-md);
    font-size: 0.875rem;
    color: var(--text-muted);
}

.slider-current {
    font-size: 2rem;
    font-weight: 700;
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.slider-wrapper {
    position: relative;
    height: 8px;
}

.leads-slider {
    width: 100%;
    height: 8px;
    appearance: none;
    background: transparent;
    cursor: pointer;
    position: relative;
    z-index: 2;
}

.slider-track {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-full);
}

.slider-fill {
    position: absolute;
    top: 0;
    left: 0;
    height: 8px;
    background: var(--gradient-primary);
    border-radius: var(--radius-full);
    width: 50%;
    box-shadow: 0 0 20px rgba(255, 69, 0, 0.5);
}

.leads-slider::-webkit-slider-thumb {
    appearance: none;
    width: 24px;
    height: 24px;
    background: white;
    border-radius: 50%;
    box-shadow:
        0 2px 8px rgba(0, 0, 0, 0.3),
        0 0 0 4px rgba(255, 69, 0, 0.3);
    cursor: grab;
    transition: transform var(--transition-fast);
}

.leads-slider::-webkit-slider-thumb:hover {
    transform: scale(1.1);
}

.leads-slider::-webkit-slider-thumb:active {
    cursor: grabbing;
    transform: scale(1.2);
}

.leads-slider::-moz-range-thumb {
    width: 24px;
    height: 24px;
    background: white;
    border: none;
    border-radius: 50%;
    box-shadow:
        0 2px 8px rgba(0, 0, 0, 0.3),
        0 0 0 4px rgba(255, 69, 0, 0.3);
    cursor: grab;
}

/* Quick Select */
.quick-select {
    display: flex;
    gap: var(--space-sm);
    flex-wrap: wrap;
}

.quick-btn {
    flex: 1;
    min-width: 60px;
    padding: var(--space-sm) var(--space-md);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-size: 0.875rem;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.quick-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--accent-blue);
    color: var(--text-primary);
}

.quick-btn.active {
    background: var(--gradient-primary);
    border-color: transparent;
    color: white;
}

/* Areas Preview */
.areas-preview {
    max-height: 150px;
    overflow-y: auto;
}

.areas-preview h4 {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: var(--space-sm);
}

.areas-list {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-xs);
}

.area-tag {
    padding: var(--space-xs) var(--space-sm);
    background: rgba(255, 107, 53, 0.1);
    border: 1px solid rgba(255, 107, 53, 0.2);
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    color: var(--accent-blue);
}

/* Modal Footer */
.modal-footer {
    display: flex;
    gap: var(--space-md);
    margin-top: var(--space-xl);
}

.cancel-btn,
.confirm-btn {
    flex: 1;
    padding: var(--space-md);
    font-size: 1rem;
}

.confirm-btn {
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
}

.leads-count {
    font-size: 0.75rem;
    opacity: 0.8;
}

/* ============================================
   PROGRESS SECTION
   ============================================ */

.progress-section {
    padding: var(--space-xl);
    animation: slideIn 0.5s ease-out;
}

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

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

.progress-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-lg);
}

.progress-header h2 {
    font-size: 1.25rem;
}

.progress-status {
    font-size: 0.875rem;
    color: var(--accent-cyan);
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

.progress-bar-container {
    margin-bottom: var(--space-lg);
}

.progress-bar {
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-full);
    overflow: hidden;
    margin-bottom: var(--space-sm);
}

.progress-fill {
    height: 100%;
    background: var(--gradient-primary);
    border-radius: var(--radius-full);
    width: 0%;
    transition: width 0.5s ease-out;
    box-shadow: 0 0 20px rgba(255, 69, 0, 0.5);
}

.progress-stats {
    display: flex;
    justify-content: space-between;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.current-area {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    margin-bottom: var(--space-lg);
}

.area-label {
    color: var(--text-muted);
}

.area-name {
    font-weight: 600;
    color: var(--accent-purple);
}

.live-results h4 {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: var(--space-sm);
}

.results-scroll {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    max-height: 250px;
    overflow-y: auto;
    padding-right: var(--space-sm);
}

.result-preview {
    padding: var(--space-md);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
    opacity: 0;
    transform: translateX(-20px);
    transition: all 0.3s ease-out;
}

.result-preview.slide-in.visible {
    opacity: 1;
    transform: translateX(0);
}

.result-main {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.result-name {
    font-weight: 600;
    color: var(--text-primary);
    flex: 1;
}

.result-count {
    font-size: 0.75rem;
    color: var(--accent-purple);
    font-weight: 600;
    background: rgba(255, 69, 0, 0.15);
    padding: 2px 8px;
    border-radius: var(--radius-full);
}

.result-meta {
    display: flex;
    gap: var(--space-md);
    flex-wrap: wrap;
}

.result-area {
    color: var(--text-muted);
    font-size: 0.75rem;
}

.result-phone {
    color: var(--accent-cyan);
    font-size: 0.75rem;
}

/* ============================================
   LIVE COUNTER
   ============================================ */

.live-counter-container {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: var(--space-xl);
}

.live-counter {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-xs);
    padding: var(--space-lg) var(--space-2xl);
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.15), rgba(167, 139, 250, 0.15));
    border: 1px solid rgba(102, 126, 234, 0.3);
    border-radius: var(--radius-lg);
    position: relative;
    z-index: 1;
}

.counter-number {
    font-size: 3.5rem;
    font-weight: 700;
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    transition: transform 0.2s ease;
}

.counter-number.bump {
    animation: bumpAnimation 0.2s ease-out;
}

@keyframes bumpAnimation {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.15);
    }

    100% {
        transform: scale(1);
    }
}

.counter-label {
    font-size: 0.875rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.counter-pulse {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.3), rgba(167, 139, 250, 0.3));
    animation: counterPulse 2s ease-in-out infinite;
    z-index: 0;
}

@keyframes counterPulse {

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

    50% {
        opacity: 0.6;
        transform: scale(1.05);
    }
}

/* ============================================
   RESULTS SECTION
   ============================================ */

.results-section {
    padding: var(--space-xl);
    animation: slideIn 0.5s ease-out;
}

.results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--space-md);
    margin-bottom: var(--space-xl);
}

.results-title {
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
}

.results-title h2 {
    font-size: 1.25rem;
}

.total-leads {
    color: var(--accent-cyan);
    font-size: 0.875rem;
}

.download-btn {
    padding: var(--space-sm) var(--space-lg);
    font-size: 0.875rem;
}

/* Table */
.table-container {
    overflow-x: auto;
    margin-bottom: var(--space-lg);
}

.results-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
}

.results-table th,
.results-table td {
    padding: var(--space-md);
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.results-table th {
    color: var(--text-muted);
    font-weight: 500;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    background: rgba(0, 0, 0, 0.2);
}

.results-table tr:hover td {
    background: rgba(255, 255, 255, 0.03);
}

.results-table a {
    color: var(--accent-blue);
    text-decoration: none;
}

.results-table a:hover {
    text-decoration: underline;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: var(--space-xs);
}

.page-btn {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-size: 0.875rem;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.page-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
}

.page-btn.active {
    background: var(--gradient-primary);
    border-color: transparent;
    color: white;
}

/* ============================================
   FOOTER
   ============================================ */

.footer {
    text-align: center;
    padding: var(--space-lg) 0;
    color: var(--text-muted);
    font-size: 0.875rem;
}

/* ============================================
   SCROLLBAR
   ============================================ */

::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 768px) {
    .container {
        padding: var(--space-md);
    }

    .main-card {
        padding: var(--space-lg);
    }

    .main-title {
        font-size: 1.75rem;
    }

    .header {
        flex-direction: column;
        gap: var(--space-sm);
        text-align: center;
    }

    .features-row {
        flex-direction: column;
        align-items: center;
    }

    .modal {
        padding: var(--space-lg);
    }

    .quick-select {
        justify-content: center;
    }

    .results-header {
        flex-direction: column;
        text-align: center;
    }
}

/* ============================================
   LOADING STATE
   ============================================ */

.loading {
    position: relative;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    border-radius: inherit;
    display: flex;
    align-items: center;
    justify-content: center;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(255, 255, 255, 0.1);
    border-top-color: var(--accent-blue);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* ============================================
   SPEED SELECTOR
   ============================================ */

.speed-selector {
    margin-top: var(--space-md);
    padding: var(--space-lg);
}

.speed-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-sm);
}

.speed-label {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 1rem;
}

.speed-value {
    font-size: 1.75rem;
    font-weight: 700;
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.speed-description {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin-bottom: var(--space-md);
    padding: var(--space-sm);
    background: rgba(96, 165, 250, 0.1);
    border-radius: var(--radius-sm);
    border-left: 3px solid var(--accent-blue);
    transition: all var(--transition-base);
}

.speed-description.warning {
    background: rgba(251, 191, 36, 0.1);
    border-left-color: #fbbf24;
}

.speed-description.danger {
    background: rgba(239, 68, 68, 0.1);
    border-left-color: #ef4444;
}

.speed-mode {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-primary);
}

.speed-note {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.speed-slider-wrapper {
    margin-bottom: var(--space-md);
}

.speed-slider {
    width: 100%;
    height: 8px;
    appearance: none;
    background: transparent;
    cursor: pointer;
    position: relative;
    z-index: 2;
}

.speed-slider::-webkit-slider-thumb {
    appearance: none;
    width: 24px;
    height: 24px;
    background: white;
    border-radius: 50%;
    box-shadow:
        0 2px 8px rgba(0, 0, 0, 0.3),
        0 0 0 4px rgba(102, 126, 234, 0.3);
    cursor: grab;
    transition: transform var(--transition-fast);
}

.speed-slider::-webkit-slider-thumb:hover {
    transform: scale(1.1);
}

.speed-slider::-webkit-slider-thumb:active {
    cursor: grabbing;
    transform: scale(1.2);
}

.speed-fill {
    background: linear-gradient(90deg, #22c55e, #84cc16, #eab308, #f97316, #ef4444);
}

.speed-presets {
    display: flex;
    gap: var(--space-sm);
    flex-wrap: wrap;
}

.speed-preset-btn {
    flex: 1;
    min-width: 60px;
    padding: var(--space-sm);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
    text-align: center;
    line-height: 1.2;
}

.speed-preset-btn small {
    font-weight: 400;
    font-size: 0.65rem;
    opacity: 0.7;
}

.speed-preset-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--accent-blue);
    color: var(--text-primary);
}

.speed-preset-btn.active {
    background: var(--gradient-primary);
    border-color: transparent;
    color: white;
}

.speed-preset-btn[data-speed="50"] {
    background: linear-gradient(135deg, #f97316, #ef4444);
    border-color: transparent;
    color: white;
}

.speed-preset-btn[data-speed="50"]:hover {
    box-shadow: 0 0 20px rgba(239, 68, 68, 0.5);
}

/* ============================================
   ANIMATED TAGLINE - FIRE EFFECT
   ============================================ */

.animated-tagline {
    background: linear-gradient(90deg, #ff4500, #ff6b35, #ffa500, #ff4500);
    background-size: 200% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: fireText 2s ease-in-out infinite, textGlow 1.5s ease-in-out infinite alternate;
    text-shadow: none;
    position: relative;
}

@keyframes fireText {

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

    50% {
        background-position: 100% 50%;
    }
}

@keyframes textGlow {
    0% {
        filter: drop-shadow(0 0 5px rgba(255, 69, 0, 0.5)) drop-shadow(0 0 10px rgba(255, 107, 53, 0.3));
    }

    100% {
        filter: drop-shadow(0 0 15px rgba(255, 69, 0, 0.8)) drop-shadow(0 0 30px rgba(255, 107, 53, 0.5));
    }
}

/* ============================================
   FIRE PARTICLES BACKGROUND
   ============================================ */

.fire-particles {
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    overflow: hidden;
}

.fire-particle {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    animation: riseAndFade 3s ease-out forwards;
}

@keyframes riseAndFade {
    0% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }

    50% {
        opacity: 0.8;
    }

    100% {
        opacity: 0;
        transform: translateY(-100vh) scale(0.3);
    }
}

.fire-ember {
    position: absolute;
    width: 4px;
    height: 4px;
    background: radial-gradient(circle, #ffa500, #ff4500);
    border-radius: 50%;
    animation: emberFloat 4s ease-in-out infinite;
    box-shadow: 0 0 6px #ff4500, 0 0 12px #ffa500;
}

@keyframes emberFloat {

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

    25% {
        transform: translateY(-20px) translateX(10px);
        opacity: 1;
    }

    50% {
        transform: translateY(-40px) translateX(-5px);
        opacity: 0.6;
    }

    75% {
        transform: translateY(-20px) translateX(-10px);
        opacity: 0.9;
    }
}