/*
 * Mehr Guard Trust Centre Page Styles
 * Premium Dark Theme with Privacy Controls
 * 
 * Accessibility: WCAG 2.1 AA compliant
 */

/* ==========================================================================
   CSS CUSTOM PROPERTIES
   ========================================================================== */
:root {
    /* Brand Colors */
    --primary: #195de6;
    --primary-dark: #1040a8;
    --primary-light: #548bf7;
    --primary-hover: #1550c5;
    --primary-glow: rgba(25, 93, 230, 0.15);

    /* Background Colors - Matching dashboard blue-tinted theme */
    --bg-light: #f6f6f8;
    --bg-dark: #0f1115;
    --sidebar-bg: #111318;
    --surface-dark: #161b22;
    --surface-highlight: #1c2129;
    --surface-hover: #21262d;
    --border-dark: #292e38;

    /* Status Colors */
    --success: #10b981;
    --success-bg: rgba(16, 185, 129, 0.1);
    --danger: #ef4444;
    --danger-bg: rgba(239, 68, 68, 0.1);
    --warning: #f59e0b;

    /* Text Colors */
    --text-primary: #ffffff;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --text-dark: #475569;

    /* 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;

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

    /* Layout */
    --sidebar-width: 16rem;
    --header-height: 5rem;

    /* Typography */
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-normal: 250ms ease;
}

/* ==========================================================================
   LIGHT MODE OVERRIDES
   ========================================================================== */
[data-theme="light"],
html.light,
body.light {
    /* Background Colors */
    --bg-light: #ffffff;
    --bg-dark: #f8fafc;
    --sidebar-bg: #ffffff;
    --surface-dark: #ffffff;
    --surface-highlight: #f1f5f9;
    --surface-hover: #f1f5f9;
    --border-dark: #e2e8f0;

    /* Text Colors */
    --text-primary: #0f172a;
    --text-secondary: #64748b;
    --text-muted: #94a3b8;
    --text-dark: #334155;

    /* Status Colors */
    --success: #059669;
    --danger: #dc2626;
    --warning: #d97706;
    --primary: #2563eb;
}

/* System preference detection for light mode */
@media (prefers-color-scheme: light) {
    :root:not([data-theme="dark"]):not(.dark) {
        --bg-light: #ffffff;
        --bg-dark: #f8fafc;
        --sidebar-bg: #ffffff;
        --surface-dark: #ffffff;
        --surface-highlight: #f1f5f9;
        --surface-hover: #f1f5f9;
        --border-dark: #e2e8f0;
        --text-primary: #0f172a;
        --text-secondary: #64748b;
        --text-muted: #94a3b8;
    }
}

/* Light mode element-specific overrides */
[data-theme="light"] .list-card,
html.light .list-card,
body.light .list-card {
    background-color: #ffffff;
    border-color: #e2e8f0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .list-card:hover,
html.light .list-card:hover,
body.light .list-card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    border-color: rgba(37, 99, 235, 0.3);
}

[data-theme="light"] .list-header,
html.light .list-header,
body.light .list-header {
    border-bottom-color: #e2e8f0;
}

[data-theme="light"] .list-item:hover,
html.light .list-item:hover,
body.light .list-item:hover {
    background-color: #f1f5f9;
}

[data-theme="light"] .item-domain,
html.light .item-domain,
body.light .item-domain {
    color: #0f172a;
}

[data-theme="light"] .hero-card,
html.light .hero-card,
body.light .hero-card {
    background-color: #ffffff;
    border-color: #e2e8f0;
}

[data-theme="light"] .settings-card,
html.light .settings-card,
body.light .settings-card {
    background-color: #ffffff;
    border-color: #e2e8f0;
}

[data-theme="light"] .sensitivity-info,
html.light .sensitivity-info,
body.light .sensitivity-info {
    background-color: #f8fafc;
    border-color: #e2e8f0;
}

[data-theme="light"] .controls-card,
html.light .controls-card,
body.light .controls-card {
    background-color: #ffffff;
    border-color: #e2e8f0;
}

[data-theme="light"] .about-card,
html.light .about-card,
body.light .about-card {
    background-color: #ffffff;
    border-color: #e2e8f0;
}

[data-theme="light"] .top-header,
html.light .top-header,
body.light .top-header {
    background-color: rgba(255, 255, 255, 0.95);
}

/* Sensitivity slider light mode */
[data-theme="light"] .sensitivity-slider,
html.light .sensitivity-slider,
body.light .sensitivity-slider {
    background-color: #cbd5e1;
}

[data-theme="light"] .sensitivity-slider::-webkit-slider-runnable-track,
html.light .sensitivity-slider::-webkit-slider-runnable-track,
body.light .sensitivity-slider::-webkit-slider-runnable-track {
    background: #cbd5e1;
}

/* Divider light mode */
[data-theme="light"] .divider,
html.light .divider,
body.light .divider {
    border-top-color: #e2e8f0;
}

/* Empty state icon light mode */
[data-theme="light"] .empty-state .material-symbols-outlined,
html.light .empty-state .material-symbols-outlined,
body.light .empty-state .material-symbols-outlined {
    color: #94a3b8;
}

/* ============================================
   ABOUT Mehr Guard SECTION LIGHT MODE FIXES
   ============================================ */
[data-theme="light"] .about-card,
html.light .about-card,
body.light .about-card {
    background-color: #ffffff !important;
    border-color: #e2e8f0 !important;
}

[data-theme="light"] .about-header h4,
html.light .about-header h4,
body.light .about-header h4 {
    color: #0f172a !important;
}

[data-theme="light"] .about-header p,
[data-theme="light"] .about-info p,
html.light .about-header p,
html.light .about-info p,
body.light .about-header p,
body.light .about-info p {
    color: #64748b !important;
}

[data-theme="light"] .about-icon,
html.light .about-icon,
body.light .about-icon {
    background-color: #f1f5f9 !important;
    border-color: #e2e8f0 !important;
    color: #334155 !important;
}

[data-theme="light"] .about-icon .material-symbols-outlined,
html.light .about-icon .material-symbols-outlined,
body.light .about-icon .material-symbols-outlined {
    color: #334155 !important;
}

[data-theme="light"] .about-link,
html.light .about-link,
body.light .about-link {
    color: #334155 !important;
    border-color: #e2e8f0 !important;
}

[data-theme="light"] .about-link:hover,
html.light .about-link:hover,
body.light .about-link:hover {
    background-color: #f1f5f9 !important;
}

[data-theme="light"] .reset-btn,
html.light .reset-btn,
body.light .reset-btn {
    color: #dc2626 !important;
}

/* Controls card in light mode */
[data-theme="light"] .controls-card,
html.light .controls-card,
body.light .controls-card {
    background-color: #ffffff !important;
    border-color: #e2e8f0 !important;
}

[data-theme="light"] .controls-title,
html.light .controls-title,
body.light .controls-title {
    color: #64748b !important;
}

[data-theme="light"] .toggle-label,
html.light .toggle-label,
body.light .toggle-label {
    color: #0f172a !important;
}

[data-theme="light"] .toggle-description,
html.light .toggle-description,
body.light .toggle-description {
    color: #64748b !important;
}

/* ==========================================================================
   BASE STYLES
   ========================================================================== */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

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

.trust-body {
    font-family: var(--font-sans);
    background-color: var(--bg-dark);
    color: var(--text-primary);
    min-height: 100vh;
    overflow: hidden;
}

::selection {
    background: transparent;
    color: white;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

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

::-webkit-scrollbar-thumb {
    background: #2d3748;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #4a5568;
}

/* Material Symbols */
.material-symbols-outlined {
    font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
    font-size: 20px;
}

.material-symbols-outlined.filled {
    font-variation-settings: 'FILL' 1, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}

/* ==========================================================================
   LAYOUT
   ========================================================================== */
.trust-layout {
    display: flex;
    height: 100vh;
}

/* ==========================================================================
   SIDEBAR
   ========================================================================== */
.sidebar {
    width: var(--sidebar-width);
    height: 100%;
    background-color: var(--sidebar-bg);
    border-right: 1px solid var(--border-dark);
    display: none;
    flex-direction: column;
    flex-shrink: 0;
    z-index: 20;
}

@media (min-width: 1024px) {
    .sidebar {
        display: flex;
    }
}

.sidebar-header {
    padding: var(--space-6);
    display: flex;
    flex-direction: column;
    gap: var(--space-1);
}

.logo {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.025em;
}

.logo .material-symbols-outlined {
    color: var(--primary);
}

.version-status {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-muted);
    padding-left: 2rem;
}

.status-secure {
    color: var(--success);
}

.sidebar-nav {
    flex: 1;
    padding: var(--space-4) var(--space-3);
    display: flex;
    flex-direction: column;
    gap: var(--space-1);
    overflow-y: auto;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-2) var(--space-3);
    padding-top: 0.625rem;
    padding-bottom: 0.625rem;
    border-radius: var(--radius-lg);
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all var(--transition-fast);
    position: relative;
}

.nav-link:hover {
    color: var(--text-primary);
    background-color: rgba(255, 255, 255, 0.05);
}

.nav-link.active {
    background-color: rgba(25, 93, 230, 0.1);
    color: var(--primary);
}

.nav-indicator {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 2rem;
    background: transparent;
    border-radius: 0 var(--radius-full) var(--radius-full) 0;
}

.sidebar-footer {
    padding: var(--space-4);
    border-top: 1px solid var(--border-dark);
}

.user-profile {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-2) var(--space-3);
}

.user-avatar {
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    background: linear-gradient(135deg, #475569, #64748b);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
    color: white;
    border: 1px solid var(--text-muted);
}

.user-info {
    display: flex;
    flex-direction: column;
}

.user-name {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-primary);
    line-height: 1;
}

.user-plan {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: var(--space-1);
}

/* ==========================================================================
   MAIN CONTENT
   ========================================================================== */
.main-content {
    flex: 1;
    height: 100%;
    overflow-y: auto;
    position: relative;
    display: flex;
    flex-direction: column;
}

/* ==========================================================================
   TOP HEADER
   ========================================================================== */
.top-header {
    width: 100%;
    padding: var(--space-6) var(--space-8);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-4);
    background-color: rgba(17, 22, 33, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    position: sticky;
    top: 0;
    z-index: 10;
    border-bottom: 1px solid var(--border-dark);
}

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

.menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    color: var(--text-primary);
    cursor: pointer;
}

@media (min-width: 1024px) {
    .menu-toggle {
        display: none;
    }
}

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

.header-title h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.025em;
}

.header-title p {
    font-size: 0.875rem;
    color: var(--text-muted);
}

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

.offline-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: var(--space-1) var(--space-3);
    border-radius: var(--radius-full);
    background-color: var(--success-bg);
    border: 1px solid rgba(16, 185, 129, 0.2);
    color: #34d399;
    font-size: 0.75rem;
    font-weight: 500;
}

.offline-dot {
    width: 0.375rem;
    height: 0.375rem;
    border-radius: 50%;
    background-color: #34d399;
    animation: pulse 2s infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

.btn-audit {
    display: none;
    align-items: center;
    gap: var(--space-2);
    padding: 0 var(--space-4);
    height: 2.5rem;
    border-radius: var(--radius-lg);
    background-color: var(--surface-dark);
    border: 1px solid #475569;
    color: var(--text-primary);
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color var(--transition-fast);
}

@media (min-width: 768px) {
    .btn-audit {
        display: flex;
    }
}

.btn-audit:hover {
    background-color: var(--surface-highlight);
}

.btn-audit .material-symbols-outlined {
    font-size: 18px;
}

/* ==========================================================================
   CONTENT SCROLL
   ========================================================================== */
.content-scroll {
    flex: 1;
    overflow-y: auto;
    padding: var(--space-8);
}

.content-container {
    max-width: 75rem;
    width: 100%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: var(--space-6);
}

/* ==========================================================================
   HERO CARD
   ========================================================================== */
.hero-card {
    width: 100%;
    border-radius: var(--radius-xl);
    background-color: var(--surface-dark);
    border: 1px solid #1e293b;
    padding: var(--space-1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    position: relative;
}

.hero-blur {
    position: absolute;
    top: -4rem;
    right: -4rem;
    width: 16rem;
    height: 16rem;
    background-color: var(--primary-glow);
    border-radius: 50%;
    filter: blur(60px);
    pointer-events: none;
}

.hero-content {
    display: flex;
    flex-direction: column;
    gap: var(--space-6);
    padding: var(--space-6);
    position: relative;
    z-index: 1;
}

@media (min-width: 768px) {
    .hero-content {
        flex-direction: row;
        align-items: center;
    }
}

.hero-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    margin-bottom: var(--space-1);
}

.hero-badge .material-symbols-outlined {
    padding: var(--space-2);
    border-radius: var(--radius-lg);
    background-color: var(--success-bg);
    color: #34d399;
}

.hero-badge span:last-child {
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #34d399;
}

.hero-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.3;
}

.hero-description {
    font-size: 1rem;
    color: var(--text-muted);
    line-height: 1.75;
    max-width: 36rem;
}

.learn-more-btn {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    background: transparent;
    border: none;
    color: var(--primary);
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    margin-top: var(--space-2);
    transition: color var(--transition-fast);
}

.learn-more-btn:hover {
    color: var(--primary-hover);
}

.learn-more-btn .material-symbols-outlined {
    font-size: 16px;
}

.hero-visual {
    width: 100%;
    aspect-ratio: 2 / 1;
    border-radius: var(--radius-lg);
    overflow: hidden;
    position: relative;
    background: linear-gradient(135deg, rgba(25, 93, 230, 0.2), rgba(139, 92, 246, 0.1));
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
}

@media (min-width: 768px) {
    .hero-visual {
        width: 33.33%;
        aspect-ratio: auto;
        height: 10rem;
    }
}

.visual-pattern {
    position: absolute;
    inset: 0;
    opacity: 0.2;
    background-image: radial-gradient(#4b5563 1px, transparent 1px);
    background-size: 16px 16px;
}

.visual-icon {
    font-size: 4rem !important;
    color: rgba(25, 93, 230, 0.4);
}

/* ==========================================================================
   TRUST GRID
   ========================================================================== */
.trust-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-6);
}

@media (min-width: 1024px) {
    .trust-grid {
        grid-template-columns: 2fr 1fr;
    }
}

.main-column {
    display: flex;
    flex-direction: column;
    gap: var(--space-6);
}

.side-column {
    display: flex;
    flex-direction: column;
    gap: var(--space-6);
}

/* ==========================================================================
   SETTINGS CARD (Sensitivity)
   ========================================================================== */
.settings-card {
    border-radius: var(--radius-xl);
    background-color: var(--surface-dark);
    border: 1px solid #1e293b;
    padding: var(--space-6);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

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

.header-info {
    display: flex;
    flex-direction: column;
    gap: var(--space-1);
}

.header-title-row {
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

.header-title-row .material-symbols-outlined {
    color: var(--text-muted);
}

.header-title-row h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
}

.header-info>p {
    font-size: 0.875rem;
    color: var(--text-muted);
}

.sensitivity-badge {
    padding: var(--space-1) var(--space-3);
    border-radius: var(--radius-full);
    background-color: rgba(25, 93, 230, 0.2);
    color: var(--primary);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Slider */
.slider-container {
    padding: var(--space-2);
    padding-top: var(--space-4);
}

.sensitivity-slider {
    width: 100%;
    height: 4px;
    background-color: #3c4453;
    border-radius: 2px;
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
}

.sensitivity-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: white;
    cursor: pointer;
    box-shadow: 0 0 0 4px var(--primary);
    margin-top: -8px;
}

.sensitivity-slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: white;
    cursor: pointer;
    box-shadow: 0 0 0 4px var(--primary);
    border: none;
}

.sensitivity-slider::-webkit-slider-runnable-track {
    width: 100%;
    height: 4px;
    cursor: pointer;
    background: #3c4453;
    border-radius: 2px;
}

.slider-labels {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    align-items: center;
    margin-top: var(--space-4);
    padding: 0 10px;
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
}

.slider-labels span {
    justify-self: start;
}

.slider-labels span:nth-child(2) {
    justify-self: center;
}

.slider-labels span:nth-child(3) {
    justify-self: end;
}

.slider-labels span.active {
    color: var(--text-primary);
}

.sensitivity-info {
    margin-top: var(--space-4);
    padding: var(--space-4);
    border-radius: var(--radius-lg);
    background-color: var(--bg-dark);
    border: 1px solid #1e293b;
    display: flex;
    gap: var(--space-3);
}

.sensitivity-info .material-symbols-outlined {
    color: var(--primary);
    flex-shrink: 0;
    margin-top: 2px;
}

.info-content {
    display: flex;
    flex-direction: column;
    gap: var(--space-1);
}

.info-title {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-primary);
}

.info-description {
    font-size: 0.75rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* ==========================================================================
   LISTS GRID
   ========================================================================== */
.lists-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-6);
}

@media (min-width: 768px) {
    .lists-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.list-card {
    border-radius: var(--radius-xl);
    background-color: var(--surface-dark);
    border: 1px solid #1e293b;
    display: flex;
    flex-direction: column;
    height: 24rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

/* Decorative gradient overlay at top */
.list-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), rgba(139, 92, 246, 0.6));
    opacity: 0;
    transition: opacity 0.2s ease;
}

.list-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    border-color: rgba(25, 93, 230, 0.3);
}

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

.list-header {
    padding: var(--space-4);
    border-bottom: 1px solid #1e293b;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

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

.list-title .material-symbols-outlined.safe {
    color: var(--success);
}

.list-title .material-symbols-outlined.danger {
    color: var(--danger);
}

.list-title h3 {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--text-primary);
}

.add-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    background: rgba(25, 93, 230, 0.1);
    border: 1px solid rgba(25, 93, 230, 0.2);
    border-radius: var(--radius-md);
    color: var(--primary);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.add-btn:hover {
    background: rgba(25, 93, 230, 0.2);
    border-color: var(--primary);
    transform: scale(1.05);
}

.add-btn:active {
    transform: scale(0.95);
}

.list-content {
    flex: 1;
    overflow-y: auto;
    padding: var(--space-2);
}

.list-content.empty {
    display: flex;
    align-items: center;
    justify-content: center;
}

.list-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-3);
    border-radius: var(--radius-lg);
    transition: background-color var(--transition-fast);
}

.list-item:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

.item-info {
    display: flex;
    flex-direction: column;
}

.item-domain {
    font-size: 0.875rem;
    font-weight: 500;
    color: #e2e8f0;
}

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

.delete-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    color: var(--text-dark);
    cursor: pointer;
    transition: color var(--transition-fast);
}

.delete-btn:hover {
    color: var(--danger);
}

.delete-btn .material-symbols-outlined {
    font-size: 18px;
}

.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-2);
    text-align: center;
}

.empty-state .material-symbols-outlined {
    font-size: 2.5rem !important;
    color: #334155;
}

.empty-state p {
    font-size: 0.875rem;
    color: var(--text-muted);
}

.add-manual-btn {
    background: transparent;
    border: none;
    color: var(--primary);
    font-size: 0.75rem;
    font-weight: 500;
    cursor: pointer;
}

.add-manual-btn:hover {
    text-decoration: underline;
}

/* ==========================================================================
   CONTROLS CARD
   ========================================================================== */
.controls-card {
    border-radius: var(--radius-xl);
    background-color: var(--surface-dark);
    border: 1px solid #1e293b;
    padding: var(--space-5);
    display: flex;
    flex-direction: column;
    gap: var(--space-5);
}

.controls-title {
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    margin-bottom: var(--space-1);
}

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

.toggle-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
    min-width: 0;
}

.toggle-label {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-primary);
}

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

.divider {
    border: none;
    border-top: 1px solid #1e293b;
}

/* ==========================================================================
   ABOUT CARD
   ========================================================================== */
.about-card {
    border-radius: var(--radius-xl);
    background-color: var(--surface-dark);
    border: 1px solid var(--surface-border, #1e293b);
    padding: var(--space-5);
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
}

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

.about-icon {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: var(--radius-lg);
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
}

.about-icon .material-symbols-outlined {
    color: var(--text-primary);
    font-size: 24px;
}

.about-info h4 {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--text-primary);
}

.about-info p {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.about-links {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
    margin-top: var(--space-2);
}

.about-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-2) 0;
    border-bottom: 1px solid rgba(30, 41, 59, 0.5);
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.75rem;
    transition: color var(--transition-fast);
}

.about-link:hover {
    color: var(--text-primary);
}

.about-link.no-border {
    border-bottom: none;
}

.about-link .material-symbols-outlined {
    font-size: 14px;
}

.reset-container {
    margin-top: var(--space-2);
    text-align: center;
}

.reset-btn {
    background: transparent;
    border: none;
    color: var(--text-dark);
    font-size: 0.75rem;
    font-weight: 500;
    cursor: pointer;
    transition: color var(--transition-fast);
}

.reset-btn:hover {
    color: var(--danger);
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.trust-footer {
    margin-top: var(--space-8);
    padding-top: var(--space-6);
    padding-bottom: var(--space-8);
    border-top: 1px solid #1e293b;
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
    align-items: center;
    font-size: 0.75rem;
    color: var(--text-dark);
}

@media (min-width: 768px) {
    .trust-footer {
        flex-direction: row;
        justify-content: space-between;
    }
}

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

.footer-links a {
    color: var(--text-dark);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.footer-links a:hover {
    color: var(--text-muted);
}

.status-indicator {
    display: flex;
    align-items: center;
    gap: var(--space-1);
    color: rgba(16, 185, 129, 0.6);
}

.status-dot {
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 50%;
    background-color: var(--success);
}

/* ==========================================================================
   MODAL
   ========================================================================== */
.modal-overlay {
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
    padding: var(--space-4);
}

.modal-overlay.hidden {
    display: none;
}

.modal-content {
    background-color: var(--surface-dark);
    border: 1px solid var(--border-dark);
    border-radius: var(--radius-xl);
    width: 100%;
    max-width: 28rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-5);
    border-bottom: 1px solid var(--border-dark);
}

.modal-header h3 {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--text-primary);
}

.modal-close {
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    transition: color var(--transition-fast);
}

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

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

.input-group {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    background-color: var(--bg-dark);
    border: 1px solid var(--border-dark);
    border-radius: var(--radius-lg);
    padding: var(--space-3) var(--space-4);
}

.input-group:focus-within {
    border-color: var(--primary);
}

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

.domain-input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: var(--text-primary);
    font-size: 0.875rem;
}

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

.btn-add-domain {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    width: 100%;
    padding: var(--space-3);
    background: transparent;
    color: white;
    font-size: 0.875rem;
    font-weight: 600;
    border: none;
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: background-color var(--transition-fast);
}

.btn-add-domain:hover {
    background-color: var(--primary-hover);
}

/* ==========================================================================
   TOAST
   ========================================================================== */
.toast {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    display: flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-3) var(--space-5);
    background-color: var(--surface-dark);
    border: 1px solid var(--border-dark);
    border-radius: var(--radius-full);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-normal);
}

.toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
    visibility: visible;
}

.toast.hidden {
    display: none;
}

.toast-icon {
    color: var(--success);
}

.toast-message {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-primary);
}

/* ==========================================================================
   UTILITIES
   ========================================================================== */
.hidden {
    display: none !important;
}

/* Focus states */
button:focus-visible,
a:focus-visible,
input:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
