/**
 * G Tech Group - Blacklist Checker
 * Professional Enterprise Stylesheet
 * Version: 4.0.0
 *
 * Design System:
 * - Modern glassmorphism effects
 * - Professional gradients
 * - Smooth animations
 * - Full responsive design
 * - Accessibility compliant
 */

/* ========================================
   CSS Variables & Design Tokens
   ======================================== */

:root {
    /* Brand Colors */
    --brand-primary: #5e91d0;
    --brand-secondary: #264573;
    --brand-accent: #4a7fc7;
    --brand-dark: #1a2f4d;

    /* Semantic Colors */
    --color-success: #10b981;
    --color-success-light: #d1fae5;
    --color-danger: #ef4444;
    --color-danger-light: #fee2e2;
    --color-warning: #f59e0b;
    --color-warning-light: #fef3c7;
    --color-info: #3b82f6;
    --color-info-light: #dbeafe;

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

    /* Background Colors */
    --bg-primary: #ffffff;
    --bg-secondary: #f8fafc;
    --bg-tertiary: #f1f5f9;
    --bg-dark: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    --bg-glass: rgba(255, 255, 255, 0.8);
    --bg-glass-dark: rgba(15, 23, 42, 0.8);

    /* Text Colors */
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #94a3b8;
    --text-inverse: #ffffff;

    /* Gradients */
    --gradient-brand: linear-gradient(135deg, #5e91d0 0%, #264573 100%);
    --gradient-brand-soft: linear-gradient(135deg, rgba(94,145,208,0.1) 0%, rgba(38,69,115,0.05) 100%);
    --gradient-success: linear-gradient(135deg, #10b981 0%, #059669 100%);
    --gradient-danger: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    --gradient-hero: linear-gradient(180deg, #ffffff 0%, #f8fafc 50%, #f1f5f9 100%);
    --gradient-card: linear-gradient(145deg, #ffffff 0%, #f8fafc 100%);
    --gradient-shine: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);

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

    /* Font Sizes - Fluid Typography */
    --text-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.875rem);
    --text-sm: clamp(0.875rem, 0.8rem + 0.35vw, 1rem);
    --text-base: clamp(1rem, 0.9rem + 0.5vw, 1.125rem);
    --text-lg: clamp(1.125rem, 1rem + 0.6vw, 1.25rem);
    --text-xl: clamp(1.25rem, 1.1rem + 0.75vw, 1.5rem);
    --text-2xl: clamp(1.5rem, 1.25rem + 1.25vw, 2rem);
    --text-3xl: clamp(1.875rem, 1.5rem + 1.875vw, 2.5rem);
    --text-4xl: clamp(2.25rem, 1.75rem + 2.5vw, 3.5rem);
    --text-5xl: clamp(3rem, 2rem + 5vw, 4.5rem);

    /* 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;
    --space-24: 6rem;

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

    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    --shadow-brand: 0 10px 40px -10px rgba(94, 145, 208, 0.4);
    --shadow-glow: 0 0 40px rgba(94, 145, 208, 0.3);
    --shadow-inner: inset 0 2px 4px 0 rgba(0, 0, 0, 0.05);

    /* Transitions */
    --ease-out: cubic-bezier(0.33, 1, 0.68, 1);
    --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
    --ease-spring: cubic-bezier(0.175, 0.885, 0.32, 1.275);
    --transition-fast: 150ms var(--ease-out);
    --transition-base: 250ms var(--ease-out);
    --transition-slow: 400ms var(--ease-out);

    /* Z-Index Scale */
    --z-dropdown: 100;
    --z-sticky: 200;
    --z-fixed: 300;
    --z-modal-backdrop: 400;
    --z-modal: 500;
    --z-popover: 600;
    --z-tooltip: 700;
    --z-toast: 800;

    /* Container */
    --container-sm: 640px;
    --container-md: 768px;
    --container-lg: 1024px;
    --container-xl: 1280px;
    --container-2xl: 1536px;
}

/* ========================================
   CSS Reset & Base Styles
   ======================================== */

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

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

body {
    font-family: var(--font-body);
    font-size: var(--text-base);
    font-weight: 400;
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--bg-secondary);
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

h1 { font-size: var(--text-5xl); }
h2 { font-size: var(--text-4xl); }
h3 { font-size: var(--text-3xl); }
h4 { font-size: var(--text-2xl); }
h5 { font-size: var(--text-xl); }
h6 { font-size: var(--text-lg); }

p {
    margin-bottom: var(--space-4);
    color: var(--text-secondary);
}

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

a:hover {
    color: var(--brand-secondary);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

button {
    font-family: inherit;
    cursor: pointer;
}

/* Selection */
::selection {
    background: var(--brand-primary);
    color: white;
}

/* Focus Styles */
:focus-visible {
    outline: 2px solid var(--brand-primary);
    outline-offset: 2px;
}

/* Container */
.container {
    width: 100%;
    max-width: var(--container-xl);
    margin: 0 auto;
    padding: 0 var(--space-6);
}

@media (max-width: 640px) {
    .container {
        padding: 0 var(--space-4);
    }
}

/* ========================================
   Header & Navigation
   ======================================== */

header {
    position: sticky;
    top: 0;
    z-index: var(--z-sticky);
    background: var(--bg-glass);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    transition: all var(--transition-base);
}

header.scrolled {
    box-shadow: var(--shadow-lg);
}

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

/* Logo */
.logo {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    text-decoration: none;
    transition: transform var(--transition-fast);
}

.logo:hover {
    transform: scale(1.02);
}

.logo img {
    height: 48px;
    width: auto;
}

.logo-text {
    font-family: var(--font-display);
    font-size: var(--text-xl);
    font-weight: 700;
    background: var(--gradient-brand);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Navigation */
nav {
    display: flex;
    align-items: center;
}

nav ul {
    list-style: none;
    display: flex;
    gap: var(--space-1);
}

nav a {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-2) var(--space-4);
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--text-secondary);
    border-radius: var(--radius-lg);
    transition: all var(--transition-fast);
    position: relative;
}

nav a:hover,
nav a.active {
    color: var(--brand-primary);
    background: var(--gradient-brand-soft);
}

nav a.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: var(--space-4);
    right: var(--space-4);
    height: 2px;
    background: var(--gradient-brand);
    border-radius: var(--radius-full);
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: var(--space-2);
    background: none;
    border: none;
    cursor: pointer;
}

.mobile-menu-btn span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    border-radius: var(--radius-full);
    transition: all var(--transition-fast);
}

.mobile-menu-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ========================================
   Hero Section
   ======================================== */

.hero {
    position: relative;
    padding: var(--space-20) 0 var(--space-16);
    background: var(--gradient-hero);
    overflow: hidden;
}

/* Animated Background */
.hero-background {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
}

.hero-shapes {
    position: absolute;
    inset: 0;
}

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

.shape-1 {
    width: 600px;
    height: 600px;
    background: var(--brand-primary);
    top: -200px;
    left: -200px;
    animation-delay: 0s;
}

.shape-2 {
    width: 500px;
    height: 500px;
    background: var(--brand-secondary);
    bottom: -150px;
    right: -150px;
    animation-delay: -7s;
}

.shape-3 {
    width: 400px;
    height: 400px;
    background: var(--brand-accent);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: -14s;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(20px, -20px) scale(1.05); }
    50% { transform: translate(-20px, 20px) scale(0.95); }
    75% { transform: translate(20px, 20px) scale(1.02); }
}

/* Hero Content */
.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-2) var(--space-4);
    background: var(--bg-primary);
    border: 1px solid var(--neutral-200);
    border-radius: var(--radius-full);
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--brand-primary);
    margin-bottom: var(--space-6);
    box-shadow: var(--shadow-md);
    animation: fadeInUp 0.6s var(--ease-out) forwards;
}

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

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.2); }
}

.hero-title {
    font-size: var(--text-5xl);
    font-weight: 800;
    margin-bottom: var(--space-6);
    color: var(--text-primary);
    animation: fadeInUp 0.6s var(--ease-out) 0.1s forwards;
    opacity: 0;
}

.hero-title .highlight {
    background: var(--gradient-brand);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: var(--text-xl);
    color: var(--text-secondary);
    margin-bottom: var(--space-10);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.7;
    animation: fadeInUp 0.6s var(--ease-out) 0.2s forwards;
    opacity: 0;
}

.hero-subtitle strong {
    color: var(--brand-primary);
    font-weight: 600;
}

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

/* Trust Badges */
.trust-badges {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: var(--space-4);
    margin-bottom: var(--space-12);
    animation: fadeInUp 0.6s var(--ease-out) 0.3s forwards;
    opacity: 0;
}

.trust-badge {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-3) var(--space-5);
    background: var(--bg-primary);
    border: 1px solid var(--neutral-200);
    border-radius: var(--radius-full);
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--text-primary);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-fast);
}

.trust-badge:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: var(--brand-primary);
}

.trust-badge-icon {
    font-size: 1.25rem;
}

/* ========================================
   Tool Card - Main Search
   ======================================== */

.tool-card {
    background: var(--bg-primary);
    border-radius: var(--radius-2xl);
    padding: var(--space-10);
    box-shadow: var(--shadow-2xl);
    position: relative;
    overflow: hidden;
    animation: fadeInUp 0.6s var(--ease-out) 0.4s forwards;
    opacity: 0;
}

.tool-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-brand);
}

.tool-card.main-tool {
    max-width: 800px;
    margin: 0 auto;
}

/* Form Styles */
.check-form {
    margin-bottom: var(--space-6);
}

.input-group {
    display: flex;
    gap: var(--space-4);
    position: relative;
}

.input-wrapper {
    flex: 1;
    position: relative;
}

.input-icon {
    position: absolute;
    left: var(--space-5);
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 1.25rem;
    pointer-events: none;
}

.input-group input[type="text"] {
    width: 100%;
    padding: var(--space-5) var(--space-5) var(--space-5) var(--space-12);
    font-size: var(--text-lg);
    font-family: inherit;
    border: 2px solid var(--neutral-200);
    border-radius: var(--radius-xl);
    background: var(--bg-primary);
    color: var(--text-primary);
    transition: all var(--transition-fast);
}

.input-group input:focus {
    outline: none;
    border-color: var(--brand-primary);
    box-shadow: 0 0 0 4px rgba(94, 145, 208, 0.15);
}

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

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    padding: var(--space-4) var(--space-8);
    font-size: var(--text-base);
    font-weight: 600;
    font-family: inherit;
    border: none;
    border-radius: var(--radius-xl);
    cursor: pointer;
    transition: all var(--transition-fast);
    white-space: nowrap;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gradient-shine);
    transform: translateX(-100%);
    transition: transform 0.5s;
}

.btn:hover::before {
    transform: translateX(100%);
}

.btn-primary,
.btn-check {
    background: var(--gradient-brand);
    color: white;
    box-shadow: var(--shadow-brand);
}

.btn-primary:hover,
.btn-check:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

.btn-primary:active,
.btn-check:active {
    transform: translateY(0);
}

.btn-secondary {
    background: var(--bg-tertiary);
    color: var(--text-primary);
    border: 2px solid var(--neutral-200);
}

.btn-secondary:hover {
    background: var(--bg-secondary);
    border-color: var(--brand-primary);
    color: var(--brand-primary);
}

.btn-lg {
    padding: var(--space-5) var(--space-10);
    font-size: var(--text-lg);
}

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

/* Form Help */
.form-help-text {
    display: block;
    margin-top: var(--space-4);
    text-align: center;
    font-size: var(--text-sm);
    color: var(--text-muted);
}

.form-help-text kbd {
    display: inline-block;
    padding: var(--space-1) var(--space-2);
    font-size: var(--text-xs);
    font-family: var(--font-mono);
    background: var(--neutral-100);
    border: 1px solid var(--neutral-300);
    border-radius: var(--radius-sm);
}

/* ========================================
   Loading State
   ======================================== */

.loading-state {
    text-align: center;
    padding: var(--space-12);
}

.spinner {
    width: 64px;
    height: 64px;
    border: 4px solid var(--neutral-200);
    border-top-color: var(--brand-primary);
    border-radius: 50%;
    margin: 0 auto var(--space-6);
    animation: spin 1s linear infinite;
}

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

.loading-state p {
    font-size: var(--text-lg);
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: var(--space-4);
}

/* Progress Bar */
.progress-bar {
    width: 100%;
    height: 8px;
    background: var(--neutral-100);
    border-radius: var(--radius-full);
    overflow: hidden;
    margin: var(--space-6) 0;
}

.progress-fill {
    height: 100%;
    background: var(--gradient-brand);
    border-radius: var(--radius-full);
    transition: width 0.3s var(--ease-out);
    position: relative;
}

.progress-fill::after {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gradient-shine);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.progress-text {
    display: flex;
    justify-content: space-between;
    font-size: var(--text-sm);
    color: var(--text-secondary);
    margin-top: var(--space-2);
}

.eta {
    font-weight: 600;
    color: var(--brand-primary);
}

/* ========================================
   Results Section
   ======================================== */

.results-section {
    animation: fadeIn 0.5s var(--ease-out);
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Results Summary */
.results-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: var(--space-4);
    margin-bottom: var(--space-8);
}

.summary-card {
    display: flex;
    align-items: center;
    gap: var(--space-4);
    padding: var(--space-5);
    background: var(--bg-primary);
    border-radius: var(--radius-xl);
    border: 2px solid transparent;
    transition: all var(--transition-fast);
    box-shadow: var(--shadow-sm);
}

.summary-card.clean {
    border-color: var(--color-success);
    background: linear-gradient(135deg, var(--color-success-light) 0%, var(--bg-primary) 100%);
}

.summary-card.listed {
    border-color: var(--color-danger);
    background: linear-gradient(135deg, var(--color-danger-light) 0%, var(--bg-primary) 100%);
}

.summary-card.errors {
    border-color: var(--color-warning);
    background: linear-gradient(135deg, var(--color-warning-light) 0%, var(--bg-primary) 100%);
}

.summary-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.summary-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-lg);
    font-size: 1.75rem;
}

.summary-card.clean .summary-icon {
    background: var(--color-success-light);
    color: var(--color-success);
}

.summary-card.listed .summary-icon {
    background: var(--color-danger-light);
    color: var(--color-danger);
}

.summary-content h3 {
    font-size: var(--text-xs);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    margin-bottom: var(--space-1);
}

.summary-count {
    font-size: var(--text-3xl);
    font-weight: 700;
    color: var(--text-primary);
}

/* Percentage Indicator */
#percentageIndicator {
    text-align: center;
    padding: var(--space-8);
    margin: var(--space-8) 0;
    background: var(--bg-primary);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
}

.percentage-value {
    font-size: var(--text-5xl);
    font-weight: 800;
    background: var(--gradient-brand);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
}

.percentage-label {
    font-size: var(--text-sm);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    margin-top: var(--space-2);
}

/* Filter Controls */
#filterContainer,
.filter-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--space-4);
    padding: var(--space-5);
    background: var(--bg-primary);
    border-radius: var(--radius-xl);
    margin-bottom: var(--space-6);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--neutral-200);
}

.filter-group {
    display: flex;
    gap: var(--space-4);
    flex-wrap: wrap;
}

.filter-checkbox {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-2) var(--space-3);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-fast);
    font-size: var(--text-sm);
    font-weight: 500;
}

.filter-checkbox:hover {
    background: var(--bg-tertiary);
}

.filter-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--brand-primary);
    cursor: pointer;
}

.search-group input {
    padding: var(--space-3) var(--space-4);
    font-size: var(--text-sm);
    border: 2px solid var(--neutral-200);
    border-radius: var(--radius-lg);
    min-width: 250px;
    transition: all var(--transition-fast);
}

.search-group input:focus {
    outline: none;
    border-color: var(--brand-primary);
    box-shadow: 0 0 0 3px rgba(94, 145, 208, 0.15);
}

.action-group {
    display: flex;
    gap: var(--space-2);
}

.btn-export,
.btn-copy-listed {
    padding: var(--space-3) var(--space-5);
    font-size: var(--text-sm);
    font-weight: 600;
    border-radius: var(--radius-lg);
    border: none;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.btn-export {
    background: var(--gradient-success);
    color: white;
}

.btn-copy-listed {
    background: var(--gradient-brand);
    color: white;
}

.btn-export:hover,
.btn-copy-listed:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Results Details */
.results-details {
    max-height: 600px;
    overflow-y: auto;
    padding: var(--space-4);
    background: var(--bg-tertiary);
    border-radius: var(--radius-xl);
}

/* Result Cards */
.result-card {
    background: var(--bg-primary);
    border-radius: var(--radius-lg);
    padding: var(--space-5);
    margin-bottom: var(--space-3);
    border-left: 4px solid;
    transition: all var(--transition-fast);
    box-shadow: var(--shadow-sm);
}

.result-card.clean {
    border-color: var(--color-success);
}

.result-card.listed {
    border-color: var(--color-danger);
    background: linear-gradient(90deg, var(--color-danger-light) 0%, var(--bg-primary) 20%);
}

.result-card.error {
    border-color: var(--color-warning);
    background: linear-gradient(90deg, var(--color-warning-light) 0%, var(--bg-primary) 20%);
}

.result-card:hover {
    transform: translateX(4px);
    box-shadow: var(--shadow-md);
}

.result-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: var(--space-4);
}

.result-left {
    display: flex;
    align-items: flex-start;
    gap: var(--space-3);
}

.type-icon {
    font-size: 1.5rem;
}

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

.blacklist-url {
    font-size: var(--text-sm);
    color: var(--text-muted);
    font-family: var(--font-mono);
}

.result-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: var(--space-2);
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-1);
    padding: var(--space-1) var(--space-3);
    font-size: var(--text-xs);
    font-weight: 600;
    border-radius: var(--radius-full);
}

.status-badge.clean {
    background: var(--color-success-light);
    color: var(--color-success);
}

.status-badge.listed {
    background: var(--color-danger-light);
    color: var(--color-danger);
}

.status-badge.error {
    background: var(--color-warning-light);
    color: var(--color-warning);
}

.lookup-time {
    font-size: var(--text-xs);
    color: var(--text-muted);
}

.result-details {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
    margin-top: var(--space-3);
}

.detail-item {
    display: inline-flex;
    align-items: center;
    padding: var(--space-1) var(--space-3);
    font-size: var(--text-xs);
    font-weight: 500;
    border-radius: var(--radius-md);
}

/* ========================================
   Statistics Section
   ======================================== */

.statistics-section {
    padding: var(--space-16) 0;
    background: var(--bg-primary);
    margin: var(--space-12) 0;
    border-radius: var(--radius-2xl);
}

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

.stat-card {
    text-align: center;
    padding: var(--space-8);
    background: var(--gradient-card);
    border-radius: var(--radius-xl);
    border: 1px solid var(--neutral-200);
    transition: all var(--transition-fast);
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-brand);
    transform: scaleX(0);
    transition: transform var(--transition-base);
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.stat-card:hover::before {
    transform: scaleX(1);
}

.stat-number {
    font-size: var(--text-4xl);
    font-weight: 800;
    background: var(--gradient-brand);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: var(--space-2);
}

.stat-label {
    font-size: var(--text-sm);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
}

/* ========================================
   Features Section
   ======================================== */

.features {
    padding: var(--space-16) 0;
    background: var(--bg-tertiary);
    margin: var(--space-12) 0;
    border-radius: var(--radius-2xl);
}

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

.section-title {
    font-size: var(--text-4xl);
    margin-bottom: var(--space-4);
    color: var(--text-primary);
}

.section-subtitle {
    font-size: var(--text-lg);
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

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

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

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-brand);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--transition-slow);
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: var(--brand-primary);
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-card.active {
    border-color: var(--brand-primary);
    background: var(--gradient-brand-soft);
}

.feature-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto var(--space-6);
    background: var(--gradient-brand);
    border-radius: var(--radius-xl);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
    box-shadow: var(--shadow-brand);
    transition: transform var(--transition-fast);
}

.feature-card:hover .feature-icon {
    transform: scale(1.1) rotate(-5deg);
}

.feature-card h3 {
    font-size: var(--text-xl);
    text-align: center;
    margin-bottom: var(--space-4);
    color: var(--text-primary);
}

.feature-card p {
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: var(--space-6);
}

.feature-list {
    list-style: none;
    margin: var(--space-6) 0;
}

.feature-list li {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-2) 0;
    font-size: var(--text-sm);
    color: var(--text-secondary);
}

.feature-list li::before {
    content: '✓';
    color: var(--color-success);
    font-weight: 700;
}

.feature-link,
.feature-active {
    display: block;
    text-align: center;
    padding: var(--space-3) var(--space-6);
    border-radius: var(--radius-lg);
    font-weight: 600;
    transition: all var(--transition-fast);
}

.feature-link {
    background: var(--gradient-brand-soft);
    color: var(--brand-primary);
}

.feature-link:hover {
    background: var(--gradient-brand);
    color: white;
}

.feature-active {
    background: var(--gradient-brand);
    color: white;
    font-size: var(--text-sm);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ========================================
   How It Works
   ======================================== */

.how-it-works {
    padding: var(--space-16) 0;
    background: var(--bg-primary);
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-8);
    margin-top: var(--space-12);
}

.step-card {
    text-align: center;
    padding: var(--space-8);
    background: var(--bg-tertiary);
    border-radius: var(--radius-xl);
    border: 1px solid var(--neutral-200);
    transition: all var(--transition-fast);
    position: relative;
}

.step-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    background: var(--bg-primary);
}

.step-number {
    width: 56px;
    height: 56px;
    background: var(--gradient-brand);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--text-2xl);
    font-weight: 700;
    margin: 0 auto var(--space-6);
    box-shadow: var(--shadow-brand);
}

.step-card h3 {
    font-size: var(--text-xl);
    margin-bottom: var(--space-3);
}

.step-card p {
    color: var(--text-secondary);
}

/* ========================================
   FAQ Section
   ======================================== */

.faq-section {
    padding: var(--space-16) 0;
    background: var(--bg-tertiary);
    margin: var(--space-12) 0;
    border-radius: var(--radius-2xl);
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: var(--bg-primary);
    margin-bottom: var(--space-4);
    border-radius: var(--radius-xl);
    border: 1px solid var(--neutral-200);
    overflow: hidden;
    transition: all var(--transition-fast);
}

.faq-item:hover {
    border-color: var(--brand-primary);
    box-shadow: var(--shadow-md);
}

.faq-item.active {
    border-color: var(--brand-primary);
    box-shadow: var(--shadow-lg);
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-6);
    cursor: pointer;
    font-weight: 600;
    color: var(--text-primary);
}

.faq-icon {
    font-size: 1.25rem;
    color: var(--brand-primary);
    transition: transform var(--transition-fast);
}

.faq-item.active .faq-icon {
    transform: rotate(180deg);
}

.faq-answer {
    display: none;
    padding: 0 var(--space-6) var(--space-6);
    color: var(--text-secondary);
    line-height: 1.8;
}

.faq-item.active .faq-answer {
    display: block;
    animation: fadeIn 0.3s var(--ease-out);
}

/* ========================================
   CTA Section
   ======================================== */

.cta-section {
    padding: var(--space-16);
    background: var(--gradient-brand);
    margin: var(--space-12) 0;
    border-radius: var(--radius-2xl);
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.cta-content {
    text-align: center;
    position: relative;
    z-index: 1;
}

.cta-content h2 {
    color: white;
    margin-bottom: var(--space-4);
}

.cta-content p {
    color: rgba(255, 255, 255, 0.9);
    font-size: var(--text-lg);
    margin-bottom: var(--space-8);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-buttons {
    display: flex;
    gap: var(--space-4);
    justify-content: center;
    flex-wrap: wrap;
}

.cta-buttons .btn-primary {
    background: white;
    color: var(--brand-primary);
}

.cta-buttons .btn-primary:hover {
    background: var(--bg-secondary);
}

.cta-buttons .btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.cta-buttons .btn-secondary:hover {
    background: white;
    color: var(--brand-primary);
}

/* ========================================
   Footer
   ======================================== */

footer {
    background: var(--bg-dark);
    color: white;
    padding: var(--space-16) 0 var(--space-8);
    margin-top: var(--space-16);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-12);
    margin-bottom: var(--space-12);
}

.footer-section h3 {
    font-size: var(--text-lg);
    margin-bottom: var(--space-6);
    color: white;
}

.footer-section ul {
    list-style: none;
}

.footer-section li {
    margin: var(--space-3) 0;
}

.footer-section a {
    color: rgba(255, 255, 255, 0.7);
    transition: all var(--transition-fast);
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
}

.footer-section a:hover {
    color: white;
    transform: translateX(4px);
}

.footer-bottom {
    text-align: center;
    padding-top: var(--space-8);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
    font-size: var(--text-sm);
}

/* ========================================
   System Status Indicator
   ======================================== */

.system-status-indicator {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--space-4);
    background: var(--bg-dark);
    padding: var(--space-4) var(--space-6);
    border-radius: var(--radius-xl);
    margin-bottom: var(--space-6);
    color: white;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-2) var(--space-4);
    border-radius: var(--radius-full);
    font-size: var(--text-sm);
    font-weight: 600;
}

.status-dot {
    width: 8px;
    height: 8px;
    background: white;
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

.status-details {
    display: flex;
    align-items: center;
    gap: var(--space-4);
    flex-wrap: wrap;
    font-size: var(--text-sm);
}

.status-separator {
    color: rgba(255, 255, 255, 0.3);
}

.status-item {
    color: rgba(255, 255, 255, 0.8);
}

.status-item strong {
    color: white;
}

/* ========================================
   Notification Toast
   ======================================== */

.notification {
    position: fixed;
    bottom: var(--space-6);
    right: var(--space-6);
    padding: var(--space-4) var(--space-6);
    background: var(--bg-primary);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-2xl);
    display: flex;
    align-items: center;
    gap: var(--space-3);
    z-index: var(--z-toast);
    animation: slideInRight 0.3s var(--ease-spring);
    max-width: 400px;
}

.notification.success {
    border-left: 4px solid var(--color-success);
}

.notification.error {
    border-left: 4px solid var(--color-danger);
}

.notification.warning {
    border-left: 4px solid var(--color-warning);
}

.notification.info {
    border-left: 4px solid var(--color-info);
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ========================================
   Scrollbar
   ======================================== */

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

::-webkit-scrollbar-track {
    background: var(--bg-tertiary);
}

::-webkit-scrollbar-thumb {
    background: var(--neutral-400);
    border-radius: var(--radius-full);
    border: 2px solid var(--bg-tertiary);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--brand-primary);
}

/* ========================================
   Responsive Design
   ======================================== */

/* Tablet */
@media (max-width: 1024px) {
    .hero {
        padding: var(--space-16) 0 var(--space-12);
    }

    .tool-card {
        padding: var(--space-8);
    }

    .features-grid,
    .steps-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobile Large */
@media (max-width: 768px) {
    .header-content {
        flex-wrap: wrap;
    }

    .mobile-menu-btn {
        display: flex;
    }

    nav {
        display: none;
        width: 100%;
        padding-top: var(--space-4);
    }

    nav.active {
        display: flex;
    }

    nav ul {
        flex-direction: column;
        width: 100%;
    }

    nav a {
        padding: var(--space-3) var(--space-4);
        border-radius: var(--radius-lg);
    }

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

    .hero-title {
        font-size: var(--text-3xl);
    }

    .hero-subtitle {
        font-size: var(--text-base);
    }

    .trust-badges {
        gap: var(--space-2);
    }

    .trust-badge {
        padding: var(--space-2) var(--space-3);
        font-size: var(--text-xs);
    }

    .input-group {
        flex-direction: column;
    }

    .input-group input[type="text"] {
        padding: var(--space-4) var(--space-4) var(--space-4) var(--space-10);
        font-size: var(--text-base);
    }

    .btn-check {
        width: 100%;
        justify-content: center;
    }

    .filter-controls,
    #filterContainer {
        flex-direction: column;
        align-items: stretch;
    }

    .filter-group {
        flex-wrap: wrap;
        justify-content: center;
    }

    .search-group input {
        width: 100%;
        min-width: auto;
    }

    .action-group {
        flex-direction: column;
    }

    .action-group button {
        width: 100%;
    }

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

    .cta-buttons {
        flex-direction: column;
    }

    .cta-buttons .btn {
        width: 100%;
    }

    .results-summary {
        grid-template-columns: 1fr 1fr;
    }

    .result-header {
        flex-direction: column;
    }

    .result-right {
        flex-direction: row;
        justify-content: space-between;
        width: 100%;
        margin-top: var(--space-3);
    }
}

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

    .tool-card {
        padding: var(--space-5);
        border-radius: var(--radius-xl);
    }

    .hero-badge {
        font-size: var(--text-xs);
    }

    .summary-card {
        padding: var(--space-4);
    }

    .summary-icon {
        width: 48px;
        height: 48px;
        font-size: 1.5rem;
    }

    .summary-count {
        font-size: var(--text-2xl);
    }

    .feature-card {
        padding: var(--space-6);
    }

    .step-card {
        padding: var(--space-6);
    }

    .faq-question {
        padding: var(--space-4);
        font-size: var(--text-sm);
    }

    .faq-answer {
        padding: 0 var(--space-4) var(--space-4);
        font-size: var(--text-sm);
    }

    .cta-section {
        padding: var(--space-10) var(--space-4);
        border-radius: var(--radius-xl);
    }

    .logo img {
        height: 40px;
    }

    .logo-text {
        font-size: var(--text-lg);
    }

    .system-status-indicator {
        flex-direction: column;
        text-align: center;
    }

    .status-details {
        justify-content: center;
    }

    .notification {
        left: var(--space-4);
        right: var(--space-4);
        max-width: none;
    }
}

/* ========================================
   Print Styles
   ======================================== */

@media print {
    header,
    footer,
    .hero-background,
    .trust-badges,
    .features,
    .cta-section,
    .system-status-indicator,
    .notification {
        display: none !important;
    }

    body {
        background: white;
        color: black;
    }

    .hero {
        padding: 1rem 0;
        background: white;
    }

    .tool-card {
        box-shadow: none;
        border: 1px solid #ddd;
    }

    .results-details {
        max-height: none;
        overflow: visible;
    }
}

/* ========================================
   Accessibility
   ======================================== */

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    html {
        scroll-behavior: auto;
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    :root {
        --brand-primary: #0066cc;
        --brand-secondary: #003366;
        --text-primary: #000000;
        --text-secondary: #333333;
    }
}

/* Dark Mode Support (optional) */
@media (prefers-color-scheme: dark) {
    /* Add dark mode styles if needed */
}

/* ========================================
   Scanner - Professional Animation System
   ======================================== */

.scanner-container {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border-radius: var(--radius-2xl);
    padding: var(--space-10);
    color: var(--neutral-800);
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow:
        0 25px 50px -12px rgba(0, 0, 0, 0.15),
        0 0 0 1px rgba(94, 145, 208, 0.1);
}

.scanner-container::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 80%, rgba(94, 145, 208, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(94, 145, 208, 0.06) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(94, 145, 208, 0.03) 0%, transparent 70%);
    pointer-events: none;
}

.scanner-header {
    margin-bottom: var(--space-8);
    position: relative;
    z-index: 1;
}

.scanner-title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-3);
    font-size: var(--text-2xl);
    font-weight: 700;
    margin-bottom: var(--space-2);
    color: var(--neutral-800);
}

.scanner-icon {
    font-size: 2rem;
    animation: pulse 2s ease-in-out infinite;
}

.scanner-target {
    font-family: var(--font-mono);
    font-size: var(--text-lg);
    color: var(--brand-primary);
    background: linear-gradient(135deg, rgba(94, 145, 208, 0.15) 0%, rgba(94, 145, 208, 0.08) 100%);
    padding: var(--space-2) var(--space-4);
    border-radius: var(--radius-lg);
    display: inline-block;
    border: 1px solid rgba(94, 145, 208, 0.2);
    font-weight: 600;
}

/* Scanner Visual - Animated Rings */
.scanner-visual {
    position: relative;
    width: 220px;
    height: 220px;
    margin: 0 auto var(--space-8);
}

.scanner-ring {
    position: absolute;
    inset: 0;
    border: 4px solid transparent;
    border-top-color: var(--brand-primary);
    border-radius: 50%;
    animation: scannerSpin 2s linear infinite;
    filter: drop-shadow(0 0 8px rgba(94, 145, 208, 0.4));
}

.scanner-ring:nth-child(1) {
    inset: 0;
    animation-duration: 3s;
    border-top-color: #5e91d0;
    border-width: 4px;
}

.scanner-ring:nth-child(2) {
    inset: 20px;
    animation-duration: 2s;
    animation-direction: reverse;
    border-top-color: #264573;
    border-right-color: rgba(94, 145, 208, 0.4);
    border-width: 3px;
}

.scanner-ring:nth-child(3) {
    inset: 40px;
    animation-duration: 1.5s;
    border-top-color: #5e91d0;
    border-left-color: rgba(38, 69, 115, 0.3);
    border-width: 3px;
}

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

.scanner-center {
    position: absolute;
    inset: 60px;
    background: linear-gradient(135deg, #ffffff 0%, #f1f5f9 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow:
        0 0 40px rgba(94, 145, 208, 0.25),
        0 4px 20px rgba(0, 0, 0, 0.1),
        inset 0 2px 10px rgba(255, 255, 255, 0.8);
    border: 2px solid rgba(94, 145, 208, 0.2);
}

.scanner-percent {
    font-size: var(--text-3xl);
    font-weight: 800;
    background: var(--gradient-brand);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Scanner Progress Bar */
.scanner-progress {
    margin-bottom: var(--space-8);
    position: relative;
    z-index: 1;
}

.scanner-progress-bar {
    height: 14px;
    background: linear-gradient(135deg, #e2e8f0 0%, #f1f5f9 100%);
    border-radius: var(--radius-full);
    overflow: hidden;
    position: relative;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(94, 145, 208, 0.15);
}

.scanner-progress-fill {
    height: 100%;
    background: var(--gradient-brand);
    border-radius: var(--radius-full);
    transition: width 0.3s ease-out;
    position: relative;
    box-shadow: 0 0 15px rgba(94, 145, 208, 0.4);
}

.scanner-progress-fill::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.6), transparent);
    animation: shimmer 1.5s infinite;
}

.scanner-progress-glow {
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 20px;
    transform: translateY(-50%);
    background: linear-gradient(90deg, transparent, rgba(94, 145, 208, 0.4), transparent);
    filter: blur(10px);
    animation: progressGlow 2s ease-in-out infinite;
}

@keyframes progressGlow {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.8; }
}

.scanner-progress-info {
    display: flex;
    justify-content: space-between;
    margin-top: var(--space-3);
    font-size: var(--text-sm);
    color: var(--neutral-600);
    font-weight: 500;
}

/* Scanner Stats */
.scanner-stats {
    display: flex;
    justify-content: center;
    gap: var(--space-6);
    margin-bottom: var(--space-8);
    position: relative;
    z-index: 1;
}

.scanner-stat {
    text-align: center;
    padding: var(--space-4) var(--space-6);
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border-radius: var(--radius-xl);
    border: 1px solid var(--neutral-200);
    min-width: 110px;
    transition: all var(--transition-fast);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.scanner-stat:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.scanner-stat .stat-icon {
    display: block;
    font-size: 1.5rem;
    margin-bottom: var(--space-2);
}

.scanner-stat .stat-value {
    font-size: var(--text-2xl);
    font-weight: 700;
    display: block;
}

.scanner-stat .stat-label {
    font-size: var(--text-xs);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--neutral-500);
    font-weight: 600;
}

.scanner-stat.clean .stat-value { color: #059669; }
.scanner-stat.clean { border-color: rgba(5, 150, 105, 0.2); }
.scanner-stat.listed .stat-value { color: #dc2626; }
.scanner-stat.listed { border-color: rgba(220, 38, 38, 0.2); }
.scanner-stat.errors .stat-value { color: #d97706; }
.scanner-stat.errors { border-color: rgba(217, 119, 6, 0.2); }

/* Scanner Activity Feed */
.scanner-activity {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: var(--radius-lg);
    padding: var(--space-4);
    margin-bottom: var(--space-6);
    max-height: 160px;
    overflow-y: auto;
    position: relative;
    z-index: 1;
    border: 1px solid var(--neutral-200);
}

.activity-item {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-2) var(--space-3);
    font-size: var(--text-sm);
    font-family: var(--font-mono);
    border-radius: var(--radius-md);
    margin-bottom: var(--space-1);
    animation: slideInLeft 0.3s ease-out;
    font-weight: 500;
}

.activity-item.clean {
    background: linear-gradient(135deg, rgba(5, 150, 105, 0.1) 0%, rgba(5, 150, 105, 0.05) 100%);
    color: #059669;
    border-left: 3px solid #059669;
}
.activity-item.listed {
    background: linear-gradient(135deg, rgba(220, 38, 38, 0.1) 0%, rgba(220, 38, 38, 0.05) 100%);
    color: #dc2626;
    border-left: 3px solid #dc2626;
}
.activity-item.error {
    background: linear-gradient(135deg, rgba(217, 119, 6, 0.1) 0%, rgba(217, 119, 6, 0.05) 100%);
    color: #d97706;
    border-left: 3px solid #d97706;
}
.activity-item.info {
    background: linear-gradient(135deg, rgba(94, 145, 208, 0.1) 0%, rgba(94, 145, 208, 0.05) 100%);
    color: var(--brand-primary);
    border-left: 3px solid var(--brand-primary);
}

@keyframes slideInLeft {
    from { transform: translateX(-20px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

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

/* Scanner Cancel Button */
.scanner-cancel {
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
    border: 1px solid var(--neutral-300);
    color: var(--neutral-700);
    padding: var(--space-3) var(--space-6);
    border-radius: var(--radius-lg);
    font-size: var(--text-sm);
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
    position: relative;
    z-index: 1;
}

.scanner-cancel:hover {
    background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
    border-color: #fca5a5;
    color: #dc2626;
    transform: translateY(-1px);
}

/* Button Spinner */
.btn-spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin-right: var(--space-2);
    vertical-align: middle;
}

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

/* ========================================
   Results Summary - Professional
   ======================================== */

.summary-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-6);
    flex-wrap: wrap;
    gap: var(--space-4);
}

.summary-header h2 {
    font-size: var(--text-2xl);
    margin: 0;
}

.summary-duration {
    font-size: var(--text-sm);
    color: var(--text-muted);
    background: var(--bg-tertiary);
    padding: var(--space-2) var(--space-4);
    border-radius: var(--radius-full);
}

.summary-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-4);
    margin-bottom: var(--space-8);
}

.summary-card {
    display: flex;
    align-items: center;
    gap: var(--space-4);
    padding: var(--space-6);
    background: var(--bg-primary);
    border-radius: var(--radius-xl);
    border: 2px solid transparent;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-fast);
}

.summary-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
}

.summary-card.clean { border-color: var(--color-success); }
.summary-card.listed { border-color: var(--color-danger); }
.summary-card.errors { border-color: var(--color-warning); }

.summary-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-xl);
    font-size: 1.75rem;
    font-weight: 700;
}

.summary-card.clean .summary-icon { background: var(--color-success-light); color: var(--color-success); }
.summary-card.listed .summary-icon { background: var(--color-danger-light); color: var(--color-danger); }
.summary-card.errors .summary-icon { background: var(--color-warning-light); color: var(--color-warning); }

.summary-data .summary-value {
    font-size: var(--text-3xl);
    font-weight: 800;
    line-height: 1;
}

.summary-data .summary-label {
    font-size: var(--text-sm);
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Score Circle */
.summary-score {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-8);
    padding: var(--space-8);
    background: var(--bg-primary);
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-lg);
    margin-bottom: var(--space-8);
}

.score-circle {
    position: relative;
    width: 120px;
    height: 120px;
}

.score-circle svg {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.score-bg {
    fill: none;
    stroke: var(--neutral-200);
    stroke-width: 3;
}

.score-fill {
    fill: none;
    stroke: var(--brand-primary);
    stroke-width: 3;
    stroke-linecap: round;
    transition: stroke-dasharray 1s ease-out;
}

.summary-score.excellent .score-fill { stroke: var(--color-success); }
.summary-score.good .score-fill { stroke: var(--brand-primary); }
.summary-score.warning .score-fill { stroke: var(--color-warning); }
.summary-score.danger .score-fill { stroke: var(--color-danger); }

.score-value {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--text-2xl);
    font-weight: 800;
}

.score-info {
    text-align: left;
}

.score-title {
    font-size: var(--text-xl);
    font-weight: 700;
    margin-bottom: var(--space-2);
}

.score-desc {
    font-size: var(--text-base);
    color: var(--text-secondary);
}

/* ========================================
   Result Cards - Professional
   ======================================== */

.result-card {
    background: var(--bg-primary);
    border-radius: var(--radius-xl);
    padding: var(--space-5);
    margin-bottom: var(--space-3);
    border-left: 4px solid;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-fast);
    animation: fadeInUp 0.4s ease-out forwards;
    opacity: 0;
}

.result-card.clean { border-color: var(--color-success); }
.result-card.listed {
    border-color: var(--color-danger);
    background: linear-gradient(90deg, var(--color-danger-light) 0%, var(--bg-primary) 30%);
}
.result-card.error {
    border-color: var(--color-warning);
    background: linear-gradient(90deg, var(--color-warning-light) 0%, var(--bg-primary) 30%);
}

.result-card:hover {
    transform: translateX(4px);
    box-shadow: var(--shadow-lg);
}

.result-main {
    display: flex;
    align-items: center;
    gap: var(--space-4);
}

.result-status {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: var(--space-3);
    border-radius: var(--radius-lg);
    min-width: 70px;
}

.result-status.clean { background: var(--color-success-light); color: var(--color-success); }
.result-status.listed { background: var(--color-danger-light); color: var(--color-danger); }
.result-status.error { background: var(--color-warning-light); color: var(--color-warning); }

.result-status .status-icon {
    font-size: 1.5rem;
}

.result-status .status-text {
    font-size: var(--text-xs);
    font-weight: 700;
    letter-spacing: 0.05em;
}

.result-info {
    flex: 1;
    min-width: 0;
}

.result-name {
    font-weight: 600;
    font-size: var(--text-base);
    color: var(--text-primary);
    margin-bottom: var(--space-1);
}

.result-url {
    font-size: var(--text-sm);
    font-family: var(--font-mono);
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.result-tier {
    padding: var(--space-2) var(--space-3);
    border-radius: var(--radius-md);
    font-size: var(--text-xs);
    font-weight: 700;
    color: white;
}

.result-tier.tier-1 { background: var(--color-danger); }
.result-tier.tier-2 { background: #fd7e14; }
.result-tier.tier-3 { background: var(--color-warning); color: var(--text-primary); }
.result-tier.tier-4 { background: var(--neutral-400); }

.result-meta {
    display: flex;
    gap: var(--space-2);
    flex-wrap: wrap;
    margin-top: var(--space-3);
}

.meta-tag {
    padding: var(--space-1) var(--space-3);
    border-radius: var(--radius-full);
    font-size: var(--text-xs);
    font-weight: 600;
}

.meta-tag.type {
    background: var(--neutral-200);
    color: var(--text-secondary);
}

.meta-tag.severity-critical { background: var(--color-danger); color: white; }
.meta-tag.severity-high { background: #fd7e14; color: white; }
.meta-tag.severity-medium { background: var(--color-warning); color: var(--text-primary); }
.meta-tag.severity-low { background: var(--neutral-300); color: var(--text-secondary); }

.result-interpretation {
    margin-top: var(--space-3);
    font-size: var(--text-sm);
    color: var(--text-secondary);
    background: var(--bg-tertiary);
    padding: var(--space-3);
    border-radius: var(--radius-md);
}

.result-action {
    margin-top: var(--space-2);
    font-size: var(--text-sm);
    color: var(--text-secondary);
}

.result-removal {
    margin-top: var(--space-4);
    padding-top: var(--space-4);
    border-top: 1px solid var(--neutral-200);
}

.btn-removal {
    display: inline-flex;
    align-items: center;
    padding: var(--space-3) var(--space-5);
    background: var(--gradient-brand);
    color: white;
    border-radius: var(--radius-lg);
    font-size: var(--text-sm);
    font-weight: 600;
    transition: all var(--transition-fast);
}

.btn-removal:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-brand);
    color: white;
}

.result-verified {
    margin-top: var(--space-3);
    font-size: var(--text-xs);
    color: var(--brand-primary);
    display: flex;
    align-items: center;
    gap: var(--space-1);
}

.result-verified span {
    background: rgba(94, 145, 208, 0.1);
    padding: var(--space-1) var(--space-2);
    border-radius: var(--radius-sm);
}

/* ========================================
   System Status Widget
   ======================================== */

.system-status {
    display: inline-flex;
    align-items: center;
    gap: var(--space-4);
    background: var(--bg-primary);
    padding: var(--space-3) var(--space-5);
    border-radius: var(--radius-full);
    box-shadow: var(--shadow-md);
    margin-bottom: var(--space-6);
    animation: fadeInUp 0.6s ease-out;
}

.system-status .status-badge {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    font-size: var(--text-sm);
    font-weight: 600;
}

.system-status .status-badge.online { color: var(--color-success); }
.system-status .status-badge.warning { color: var(--color-warning); }

.system-status .status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: currentColor;
    animation: pulse 2s ease-in-out infinite;
}

.system-status .status-info {
    display: flex;
    gap: var(--space-3);
    font-size: var(--text-xs);
    color: var(--text-muted);
}

.system-status .status-info span {
    padding: var(--space-1) var(--space-2);
    background: var(--bg-tertiary);
    border-radius: var(--radius-sm);
}

/* ========================================
   Notification Improvements
   ======================================== */

.notification {
    position: fixed;
    bottom: var(--space-6);
    right: var(--space-6);
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-4) var(--space-6);
    background: var(--bg-primary);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-2xl);
    border-left: 4px solid;
    z-index: var(--z-toast);
    animation: slideInRight 0.4s var(--ease-spring);
    max-width: 400px;
}

.notification.success { border-color: var(--color-success); }
.notification.error { border-color: var(--color-danger); }
.notification.warning { border-color: var(--color-warning); }
.notification.info { border-color: var(--brand-primary); }

.notification.hide {
    animation: slideOutRight 0.3s ease-out forwards;
}

@keyframes slideOutRight {
    to { transform: translateX(120%); opacity: 0; }
}

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

.notification-text {
    flex: 1;
    font-size: var(--text-sm);
    font-weight: 500;
}

.notification-close {
    background: none;
    border: none;
    font-size: 1.25rem;
    color: var(--text-muted);
    cursor: pointer;
    padding: 0;
    line-height: 1;
    transition: color var(--transition-fast);
}

.notification-close:hover {
    color: var(--text-primary);
}

/* ========================================
   Responsive Adjustments for Scanner
   ======================================== */

@media (max-width: 768px) {
    .scanner-container {
        padding: var(--space-6);
        margin: 0 var(--space-2);
    }

    .scanner-visual {
        width: 160px;
        height: 160px;
    }

    .scanner-ring:nth-child(1) { inset: 0; }
    .scanner-ring:nth-child(2) { inset: 15px; }
    .scanner-ring:nth-child(3) { inset: 30px; }

    .scanner-center {
        inset: 45px;
    }

    .scanner-percent {
        font-size: var(--text-xl);
    }

    .scanner-stats {
        flex-wrap: wrap;
        gap: var(--space-3);
    }

    .scanner-stat {
        min-width: 85px;
        padding: var(--space-3) var(--space-4);
    }

    .summary-cards {
        grid-template-columns: 1fr;
    }

    .summary-score {
        flex-direction: column;
        text-align: center;
    }

    .score-info {
        text-align: center;
    }

    .result-main {
        flex-wrap: wrap;
    }

    .result-tier {
        margin-left: auto;
    }

    .notification {
        left: var(--space-4);
        right: var(--space-4);
        bottom: var(--space-4);
        max-width: none;
    }
}

@media (max-width: 480px) {
    .scanner-title {
        font-size: var(--text-xl);
    }

    .scanner-visual {
        width: 120px;
        height: 120px;
    }

    .scanner-center {
        inset: 25px;
    }

    .scanner-stats {
        gap: var(--space-2);
    }

    .scanner-stat {
        min-width: 70px;
        padding: var(--space-2);
    }

    .scanner-stat .stat-value {
        font-size: var(--text-xl);
    }

    .activity-item {
        font-size: var(--text-xs);
    }
}

/* ========================================
   Header Professional v4.0
   ======================================== */

#mainHeader {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: var(--z-sticky);
    transition: all var(--transition-normal);
}

.header-announcement {
    background: var(--gradient-brand);
    color: white;
    padding: var(--space-2) 0;
    text-align: center;
    font-size: var(--text-xs);
    transition: all var(--transition-fast);
}

.header-announcement p {
    margin: 0;
}

.header-main {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--neutral-200);
    transition: all var(--transition-normal);
}

#mainHeader.scrolled .header-announcement {
    transform: translateY(-100%);
    height: 0;
    padding: 0;
    opacity: 0;
}

#mainHeader.scrolled .header-main {
    box-shadow: var(--shadow-lg);
}

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

/* Logo */
.logo {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    text-decoration: none;
    transition: transform var(--transition-fast);
}

.logo:hover {
    transform: scale(1.02);
}

.logo-icon svg {
    width: 40px;
    height: 40px;
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-brand {
    font-weight: 700;
    font-size: var(--text-lg);
    color: var(--brand-secondary);
    line-height: 1.2;
}

.logo-sub {
    font-size: var(--text-xs);
    color: var(--text-muted);
    font-weight: 500;
}

/* Navigation */
.main-nav {
    flex: 1;
    display: flex;
    justify-content: center;
}

.nav-list {
    display: flex;
    gap: var(--space-1);
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-3) var(--space-4);
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: var(--text-sm);
    border-radius: var(--radius-lg);
    transition: all var(--transition-fast);
}

.nav-link:hover {
    color: var(--brand-primary);
    background: var(--brand-primary-light);
}

.nav-link.active {
    color: var(--brand-primary);
    background: var(--brand-primary-light);
    font-weight: 600;
}

.nav-icon {
    display: flex;
    opacity: 0.7;
}

.nav-link:hover .nav-icon,
.nav-link.active .nav-icon {
    opacity: 1;
}

/* Header Actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: var(--space-4);
}

.btn-header-contact {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-3) var(--space-5);
    background: var(--gradient-brand);
    color: white;
    text-decoration: none;
    border-radius: var(--radius-lg);
    font-weight: 600;
    font-size: var(--text-sm);
    transition: all var(--transition-fast);
}

.btn-header-contact:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-brand);
    color: white;
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.hamburger-line {
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.mobile-menu-btn.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-btn.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile Navigation */
@media (max-width: 1024px) {
    .main-nav {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transform: translateX(-100%);
        transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
        z-index: var(--z-fixed);
    }

    .main-nav.active {
        transform: translateX(0);
    }

    .nav-list {
        flex-direction: column;
        gap: var(--space-2);
    }

    .nav-link {
        font-size: var(--text-xl);
        padding: var(--space-4) var(--space-6);
    }

    .mobile-menu-btn {
        display: flex;
        z-index: calc(var(--z-fixed) + 1);
    }

    .btn-header-contact {
        display: none;
    }
}

/* Body padding for fixed header */
body {
    padding-top: 120px;
}

@media (max-width: 768px) {
    body {
        padding-top: 80px;
    }

    .header-announcement {
        display: none;
    }
}

/* ========================================
   Footer Professional v4.0
   ======================================== */

.site-footer {
    background: linear-gradient(180deg, var(--neutral-900) 0%, #0a0f1a 100%);
    color: white;
    margin-top: var(--space-24);
}

.footer-top {
    padding: var(--space-16) 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr repeat(4, 1fr);
    gap: var(--space-12);
}

/* Footer Brand */
.footer-brand {
    padding-right: var(--space-8);
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    text-decoration: none;
    margin-bottom: var(--space-6);
}

.footer-logo-icon svg {
    width: 40px;
    height: 40px;
}

.footer-logo-text {
    display: flex;
    flex-direction: column;
}

.footer-brand-name {
    font-weight: 700;
    font-size: var(--text-lg);
    color: white;
}

.footer-brand-sub {
    font-size: var(--text-xs);
    color: var(--brand-primary);
}

.footer-description {
    color: var(--neutral-400);
    font-size: var(--text-sm);
    line-height: 1.7;
    margin-bottom: var(--space-6);
}

.footer-social {
    display: flex;
    gap: var(--space-3);
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    color: white;
    transition: all var(--transition-fast);
}

.social-link:hover {
    background: var(--brand-primary);
    transform: translateY(-3px);
}

/* Footer Columns */
.footer-column {
    min-width: 0;
}

.footer-title {
    font-size: var(--text-sm);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: white;
    margin-bottom: var(--space-5);
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: var(--space-3);
}

.footer-links a {
    color: var(--neutral-400);
    text-decoration: none;
    font-size: var(--text-sm);
    transition: color var(--transition-fast);
}

.footer-links a:hover {
    color: var(--brand-primary);
}

.footer-contact {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-contact li {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    margin-bottom: var(--space-3);
    color: var(--neutral-400);
    font-size: var(--text-sm);
}

.footer-contact svg {
    flex-shrink: 0;
    color: var(--brand-primary);
}

.footer-contact a {
    color: var(--neutral-400);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.footer-contact a:hover {
    color: var(--brand-primary);
}

/* Footer Bottom */
.footer-bottom {
    padding: var(--space-6) 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

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

.copyright {
    color: var(--neutral-500);
    font-size: var(--text-sm);
    margin: 0;
}

.copyright strong {
    color: white;
}

.footer-badges {
    display: flex;
    gap: var(--space-4);
    flex-wrap: wrap;
}

.footer-badges .badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-2) var(--space-3);
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-full);
    font-size: var(--text-xs);
    color: var(--neutral-400);
}

.footer-badges .badge svg {
    color: var(--brand-primary);
}

/* Footer Responsive */
@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: var(--space-8);
    }

    .footer-brand {
        grid-column: span 2;
        padding-right: 0;
    }
}

@media (max-width: 640px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .footer-brand {
        grid-column: span 1;
        text-align: center;
    }

    .footer-logo {
        justify-content: center;
    }

    .footer-social {
        justify-content: center;
    }

    .footer-column {
        text-align: center;
    }

    .footer-contact li {
        justify-content: center;
    }

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

    .footer-badges {
        justify-content: center;
    }
}

/* ========================================
   Legal Pages Styling
   ======================================== */

.legal-page {
    padding: var(--space-12) 0;
    min-height: 60vh;
}

.legal-content {
    max-width: 900px;
    margin: 0 auto;
}

.legal-header {
    text-align: center;
    margin-bottom: var(--space-12);
    padding-bottom: var(--space-8);
    border-bottom: 1px solid var(--neutral-200);
}

.legal-badge {
    display: inline-block;
    padding: var(--space-2) var(--space-4);
    background: var(--brand-primary-light);
    color: var(--brand-primary);
    border-radius: var(--radius-full);
    font-size: var(--text-xs);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: var(--space-4);
}

.legal-header h1 {
    font-size: var(--text-4xl);
    color: var(--text-primary);
    margin-bottom: var(--space-4);
}

.legal-subtitle {
    font-size: var(--text-lg);
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto var(--space-6);
}

.legal-meta {
    display: flex;
    justify-content: center;
    gap: var(--space-6);
    font-size: var(--text-sm);
    color: var(--text-muted);
}

/* Table of Contents */
.legal-toc {
    background: var(--bg-secondary);
    padding: var(--space-6);
    border-radius: var(--radius-xl);
    margin-bottom: var(--space-10);
}

.legal-toc h2 {
    font-size: var(--text-lg);
    margin-bottom: var(--space-4);
}

.legal-toc ol {
    columns: 2;
    column-gap: var(--space-8);
    margin: 0;
    padding-left: var(--space-6);
}

.legal-toc li {
    margin-bottom: var(--space-2);
}

.legal-toc a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.legal-toc a:hover {
    color: var(--brand-primary);
}

/* Legal Sections */
.legal-section {
    margin-bottom: var(--space-10);
    scroll-margin-top: 150px;
}

.legal-section h2 {
    font-size: var(--text-2xl);
    color: var(--text-primary);
    margin-bottom: var(--space-4);
    padding-bottom: var(--space-3);
    border-bottom: 2px solid var(--brand-primary);
}

.legal-section h3 {
    font-size: var(--text-lg);
    color: var(--text-primary);
    margin: var(--space-6) 0 var(--space-3);
}

.legal-section p {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: var(--space-4);
}

.legal-section ul,
.legal-section ol {
    color: var(--text-secondary);
    margin-bottom: var(--space-4);
    padding-left: var(--space-6);
}

.legal-section li {
    margin-bottom: var(--space-2);
    line-height: 1.7;
}

.legal-section a {
    color: var(--brand-primary);
}

.legal-section a:hover {
    text-decoration: underline;
}

/* Legal Info Box */
.legal-info-box {
    background: var(--bg-secondary);
    padding: var(--space-5);
    border-radius: var(--radius-lg);
    border-left: 4px solid var(--brand-primary);
}

.legal-info-box p {
    margin: 0;
    margin-bottom: var(--space-2);
}

.legal-info-box p:last-child {
    margin-bottom: 0;
}

/* Legal Highlight */
.legal-highlight {
    background: var(--color-info-light);
    padding: var(--space-5);
    border-radius: var(--radius-lg);
    border-left: 4px solid var(--color-info);
    margin: var(--space-6) 0;
}

.legal-highlight.warning {
    background: var(--color-warning-light);
    border-color: var(--color-warning);
}

.legal-highlight h4 {
    color: var(--text-primary);
    margin-bottom: var(--space-2);
    font-size: var(--text-base);
}

.legal-highlight p {
    margin: 0;
    font-size: var(--text-sm);
}

/* Legal Table */
.legal-table {
    width: 100%;
    border-collapse: collapse;
    margin: var(--space-6) 0;
    font-size: var(--text-sm);
}

.legal-table th,
.legal-table td {
    padding: var(--space-3) var(--space-4);
    text-align: left;
    border-bottom: 1px solid var(--neutral-200);
}

.legal-table th {
    background: var(--bg-secondary);
    font-weight: 600;
    color: var(--text-primary);
}

.legal-table td {
    color: var(--text-secondary);
}

/* Legal Footer */
.legal-footer {
    margin-top: var(--space-12);
    padding-top: var(--space-8);
    border-top: 1px solid var(--neutral-200);
    text-align: center;
}

.legal-footer p {
    color: var(--text-muted);
    font-size: var(--text-sm);
    font-style: italic;
}

/* Cookie Settings Button */
.btn-cookie-settings {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-3) var(--space-5);
    background: var(--gradient-brand);
    color: white;
    border: none;
    border-radius: var(--radius-lg);
    font-size: var(--text-sm);
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
    margin: var(--space-4) 0;
}

.btn-cookie-settings:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-brand);
}

/* Legal Page Responsive */
@media (max-width: 768px) {
    .legal-header h1 {
        font-size: var(--text-3xl);
    }

    .legal-meta {
        flex-direction: column;
        gap: var(--space-2);
    }

    .legal-toc ol {
        columns: 1;
    }

    .legal-table {
        display: block;
        overflow-x: auto;
    }
}
