/* 
   XYNF — dark UI with Netflix accent
   (Compact, responsive for PC, laptop & mobile)
*/
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;800&display=swap');

:root {
    --bg-base: #050505;

    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-bg-hover: rgba(255, 255, 255, 0.08);
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-border-light: rgba(255, 255, 255, 0.16);

    --accent: #E50914;
    --accent-gradient: linear-gradient(135deg, #E50914 0%, #FF2A2A 100%);
    --accent-gradient-glow: linear-gradient(90deg, #E50914, #FF2A2A, #E50914);

    --success: #00B894;
    --danger: #E50914;
    --warning: #FF8C00;

    --text-primary: #F5F5F5;
    --text-secondary: #C8C8C8;
    --text-muted: #7A7A7A;

    --radius-xl: 18px;
    --radius-lg: 14px;
    --radius-md: 10px;
    --radius-sm: 6px;

    --shadow-soft: 0 10px 35px rgba(0, 0, 0, 0.35);

    --transition: 0.23s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    font-family: 'DM Sans', system-ui, -apple-system, sans-serif;
    background-color: var(--bg-base); color: var(--text-primary);
    min-height: 100vh; overflow-x: hidden; overflow-y: scroll; -webkit-font-smoothing: antialiased;
    display: flex;
    flex-direction: column;
}

::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.18); border-radius: 999px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.3); }

.bg-mesh { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; background: var(--bg-base); }
.bg-mesh::before, .bg-mesh::after { content: ''; position: absolute; width: 55vw; height: 55vw; border-radius: 50%; filter: blur(120px); opacity: 0.12; animation: drift 18s ease-in-out infinite alternate; }
.bg-mesh::before { background: rgba(229, 9, 20, 0.24); top: -22%; left: -8%; }
.bg-mesh::after { background: rgba(255, 42, 42, 0.18); bottom: -18%; right: -10%; animation-delay: -8s; }
@keyframes drift { 0% { transform: translate(0, 0) scale(1); } 100% { transform: translate(3%, 3%) scale(1.05); } }

/* ═══ Top Header ═══ */
.top-header {
    position: fixed; top: 12px; left: 50%; transform: translateX(-50%);
    width: 96%; max-width: 1200px; height: 56px; z-index: 100;
    display: flex; align-items: center; justify-content: space-between; padding: 0 20px;
    background: rgba(10, 10, 10, 0.96); backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255,255,255,0.08); border-radius: 28px; box-shadow: 0 20px 60px rgba(0,0,0,0.35);
}

.header-left, .header-right, .header-center { display: flex; align-items: center; }

.brand { display: flex; align-items: center; gap: 10px; }
.brand-logo {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
    display: block;
    filter: drop-shadow(0 2px 8px rgba(229, 9, 20, 0.35));
}
.logo-defs {
    position: absolute;
    width: 0;
    height: 0;
    overflow: hidden;
}
.icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1em;
    height: 1em;
    min-width: 1em;
    min-height: 1em;
    color: currentColor;
    position: relative;
}
.icon::before {
    content: "";
    display: block;
    width: 100%;
    height: 100%;
    background: currentColor;
    mask-repeat: no-repeat;
    mask-position: center;
    mask-size: 100% 100%;
    -webkit-mask-repeat: no-repeat;
    -webkit-mask-position: center;
    -webkit-mask-size: 100% 100%;
}
.icon.icon-spin {
    animation: spin 1.1s linear infinite;
}
@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}
.icon-home::before { mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='white' d='M4 10.5L12 3l8 7.5V20a1 1 0 0 1-1 1h-5v-6H9v6H5a1 1 0 0 1-1-1v-9.5z'/%3E%3C/svg%3E"); }
.icon-play::before { mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='white' d='M8 5v14l11-7z'/%3E%3C/svg%3E"); }
.icon-stop::before { mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Crect fill='white' x='6' y='6' width='12' height='12' rx='2'/%3E%3C/svg%3E"); }
.icon-stack::before { mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='white' d='M4 6h16v2H4zm0 5h16v2H4zm0 5h16v2H4z'/%3E%3C/svg%3E"); }
.icon-globe::before { mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='white' d='M12 2a10 10 0 1 0 0 20 10 10 0 0 0 0-20zm0 18.5a8.5 8.5 0 0 1 0-17 8.5 8.5 0 0 1 0 17zm0-15a6.5 6.5 0 0 0-4.54 11.31A8.45 8.45 0 0 1 12 5.5a8.45 8.45 0 0 1 4.54 1.31A6.5 6.5 0 0 0 12 5.5z'/%3E%3C/svg%3E"); }
.icon-chart-pie::before { mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='white' d='M11 2v10H2A10 10 0 0 1 11 2zm2 0v8.59A6 6 0 0 1 18.41 13H20A10 10 0 0 0 13 2zm7.07 11A8 8 0 0 1 13 20.93V14h6.07z'/%3E%3C/svg%3E"); }
.icon-map-pin::before { mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='white' d='M12 2a7 7 0 0 0-7 7c0 4.75 7 13 7 13s7-8.25 7-13a7 7 0 0 0-7-7zm0 9.5a2.5 2.5 0 1 1 0-5 2.5 2.5 0 0 1 0 5z'/%3E%3C/svg%3E"); }
.icon-info::before { mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='white' d='M12 2a10 10 0 1 0 0 20 10 10 0 0 0 0-20zm1 15h-2v-6h2zm0-8h-2V7h2z'/%3E%3C/svg%3E"); }
.icon-check-circle::before { mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='white' d='M12 2a10 10 0 1 0 0 20 10 10 0 0 0 0-20zm-1 14l-5-5 1.4-1.4L11 13.2l6.6-6.6L19 8l-8 8z'/%3E%3C/svg%3E"); }
.icon-x-circle::before { mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='white' d='M12 2a10 10 0 1 0 0 20 10 10 0 0 0 0-20zm4.3 13.3L13.4 12l2.9-2.9-1.4-1.4L12 10.6 9.1 7.7 7.7 9.1 10.6 12l-2.9 2.9 1.4 1.4L12 13.4l2.9 2.9 1.4-1.4z'/%3E%3C/svg%3E"); }
.icon-database::before { mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='white' d='M4 6a1 1 0 0 1 1-1h14a1 1 0 0 1 1 1v3.5c0 1.1-3.6 2-8 2s-8-.9-8-2V6zm0 5c0 1.1 3.6 2 8 2s8-.9 8-2v3.5c0 1.1-3.6 2-8 2s-8-.9-8-2V11zm0 5c0 1.1 3.6 2 8 2s8-.9 8-2v3.5c0 1.1-3.6 2-8 2s-8-.9-8-2V16z'/%3E%3C/svg%3E"); }
.icon-search::before { mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='white' d='M10 2a8 8 0 1 0 5.3 14.3l4.2 4.2 1.4-1.4-4.2-4.2A8 8 0 0 0 10 2zm0 2a6 6 0 1 1 0 12 6 6 0 0 1 0-12z'/%3E%3C/svg%3E"); }
.icon-copy::before { mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='white' d='M8 4h10a2 2 0 0 1 2 2v12h-2V6H8V4zm-4 2a2 2 0 0 1 2-2h8v2H6v12h10v2H6a2 2 0 0 1-2-2V6z'/%3E%3C/svg%3E"); }
.icon-download::before { mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='white' d='M5 20h14v-2H5v2zm7-18L5 11h4v6h6v-6h4L12 2z'/%3E%3C/svg%3E"); }
.icon-trash::before { mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='white' d='M6 7h12v14a1 1 0 0 1-1 1H7a1 1 0 0 1-1-1V7zm3-4h6v2H9V3zm1 4h2v10h-2V7zm4 0h2v10h-2V7z'/%3E%3C/svg%3E"); }
.icon-lightning::before { mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='white' d='M13 2L3 14h7v8l10-12h-7V2z'/%3E%3C/svg%3E"); }
.icon-desktop::before { mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='white' d='M4 4h16v11H4zm0 13h16v2H4z'/%3E%3C/svg%3E"); }
.icon-tv::before { mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='white' d='M3 5h18v12H3V5zm4 14h10v1H7v-1z'/%3E%3C/svg%3E"); }
.icon-caret-left::before { mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='white' d='M15 6l-6 6 6 6V6z'/%3E%3C/svg%3E"); }
.icon-caret-right::before { mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='white' d='M9 6l6 6-6 6V6z'/%3E%3C/svg%3E"); }
.icon-spinner::before { mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='white' d='M12 2a10 10 0 0 0-9.95 9H3a8 8 0 1 1 8 8v-1.05A10 10 0 0 0 12 2z'/%3E%3C/svg%3E"); }
.icon-eraser::before { mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='white' d='M7 17.25L5.75 16 15 6.75 17.25 9 7 19.25 7 17.25zM4 13.5L6.5 16 4 18.5V13.5zM8 4h8v2H8V4z'/%3E%3C/svg%3E"); }
.icon-guard::before { mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='white' d='M12 2l8 3v6.5c0 4.55-3.07 8.71-7.5 9.92C7.07 20.21 4 16.05 4 11.5V5l8-3z'/%3E%3C/svg%3E"); }
.brand-name { font-weight: 800; font-size: 1.1rem; letter-spacing: 0.4px; color: #fff; text-transform: uppercase; }
.brand-accent { color: #E50914; font-weight: 700; }

.desktop-nav { display: flex; gap: 4px; background: rgba(255,255,255,0.04); padding: 5px; border-radius: 24px; border: 1px solid rgba(255,255,255,0.06); }
.dtab { background: transparent; border: none; color: var(--text-secondary); padding: 8px 18px; font-size: 0.86rem; font-weight: 600; border-radius: 20px; cursor: pointer; display: flex; align-items: center; gap: 8px; transition: var(--transition); font-family: inherit; }
.dtab:hover { color: var(--text-primary); background: rgba(255,255,255,0.08); }
.dtab.active { color: #fff; background: rgba(229,9,20,0.18); box-shadow: inset 0 0 0 1px rgba(229,9,20,0.2); }

.connection-pill { display: flex; align-items: center; gap: 6px; font-size: 0.75rem; background: rgba(0,0,0,0.2); padding: 5px 12px; border-radius: 16px; border: 1px solid var(--glass-border); }
.conn-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--text-muted); }
.conn-dot.ok { background: var(--success); box-shadow: 0 0 8px rgba(52,211,153,0.5); }
.conn-label { color: var(--text-secondary); font-weight: 500; }
.conn-ping { color: var(--text-muted); font-family: 'JetBrains Mono', monospace; font-size: 0.7rem;}

/* ═══ Main Content ═══ */
.main-content { position: relative; z-index: 1; padding: 86px 16px 80px; max-width: 1200px; margin: 0 auto; flex-grow: 1; width: 100%; }
.view { display: none; animation: slideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1); }
.view.active { display: block; }
@keyframes slideUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

/* Shared Glass Panels */
.home-card, .home-metric, .checker-status, .checker-input, .checker-result-pane, .vault-card {
    background: var(--glass-bg); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border); border-radius: var(--radius-xl);
    padding: 20px; box-shadow: var(--shadow-soft); transition: var(--transition);
}

/* Premium Reveal Animation */
.view { 
    display: none; 
    animation: fadeInReveal 0.6s cubic-bezier(0.22, 1, 0.36, 1); 
}
.view.active { display: block; }

@keyframes fadeInReveal {
    0% { opacity: 0; filter: blur(10px); transform: translateY(20px); }
    100% { opacity: 1; filter: blur(0); transform: translateY(0); }
}

.status-chip--ok { 
    background: rgba(0, 184, 148, 0.15); 
    color: var(--success); 
    box-shadow: 0 0 12px rgba(0, 184, 148, 0.2);
    border: 1px solid rgba(0, 184, 148, 0.4);
}

/* ═══ HOME PAGE ═══ */
.home-page {
    display: flex;
    flex-direction: column;
    gap: 28px;
    max-width: 880px;
    margin: 0 auto;
}

.home-intro { text-align: center; padding: 8px 12px 0; }
.home-quick {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}
.home-metrics {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}
.home-insights {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}
.home-steps {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    padding: 0;
    margin: 0;
}
.home-quick-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px 20px;
    text-align: left;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    cursor: pointer;
    font-family: inherit;
    color: inherit;
    transition: var(--transition);
}
.home-quick-card:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.18);
    transform: translateY(-2px);
}
.home-quick-card--primary {
    background: linear-gradient(145deg, rgba(229, 9, 20, 0.22), rgba(229, 9, 20, 0.08));
    border-color: rgba(229, 9, 20, 0.35);
}
.home-quick-card--primary:hover {
    background: linear-gradient(145deg, rgba(229, 9, 20, 0.32), rgba(229, 9, 20, 0.12));
    border-color: rgba(229, 9, 20, 0.5);
}
.home-quick-icon {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.08);
    font-size: 1.15rem;
    color: #fff;
}
.home-quick-card--primary .home-quick-icon {
    background: rgba(229, 9, 20, 0.35);
}
.home-quick-body {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
    min-width: 0;
}
.home-quick-body strong {
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
}
.home-quick-body span:last-child {
    font-size: 0.82rem;
    color: var(--text-muted);
}
.home-quick-arrow {
    flex-shrink: 0;
    font-size: 1.1rem;
    color: var(--text-muted);
    transition: transform var(--transition), color var(--transition);
}
.home-quick-card:hover .home-quick-arrow {
    color: #fff;
    transform: translateX(3px);
}

.home-metric {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 22px;
}
.home-metric-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    background: rgba(229, 9, 20, 0.15);
    color: var(--accent);
    flex-shrink: 0;
}
.home-metric-icon--muted {
    background: rgba(255, 255, 255, 0.07);
    color: var(--text-secondary);
}
.home-metric-value {
    display: block;
    font-size: 2rem;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.02em;
    font-family: 'JetBrains Mono', monospace;
    color: #fff;
}
.home-metric-label {
    display: block;
    margin-top: 6px;
    font-size: 0.82rem;
    color: var(--text-muted);
    font-weight: 500;
}

.home-card { padding: 22px; }
.home-card-title {
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}
.home-card-title .icon { color: var(--accent); font-size: 1rem; }

.home-plan-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.home-plan-row {
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-rows: auto auto;
    gap: 6px 12px;
    align-items: center;
}
.home-plan-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.88rem;
    color: var(--text-secondary);
}
.home-plan-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}
.home-plan-dot--premium { background: var(--accent); }
.home-plan-dot--standard { background: #94a3b8; }
.home-plan-dot--basic { background: #64748b; }
.home-plan-count {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.9rem;
    font-weight: 600;
    color: #fff;
}
.home-plan-bar {
    grid-column: 1 / -1;
    height: 5px;
    background: rgba(0, 0, 0, 0.35);
    border-radius: 999px;
    overflow: hidden;
}
.home-plan-fill {
    display: block;
    height: 100%;
    width: 0%;
    border-radius: 999px;
    transition: width 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.home-plan-fill--premium { background: var(--accent-gradient); }
.home-plan-fill--standard { background: #94a3b8; }
.home-plan-fill--basic { background: #64748b; }

.home-regions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    min-height: 36px;
    align-content: flex-start;
}
.geo-tag {
    display: inline-flex;
    align-items: center;
    padding: 5px 10px;
    font-size: 0.75rem;
    font-weight: 700;
    font-family: 'JetBrains Mono', monospace;
    letter-spacing: 0.04em;
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
}
.geo-empty { color: var(--text-muted); font-size: 0.85rem; }

.home-ticker {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 180px;
    overflow-y: hidden;
    position: relative;
}
.ticker-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    font-size: 0.8rem;
    animation: slideInRight 0.3s ease;
}
.ticker-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--success); box-shadow: 0 0 8px var(--success); }
.ticker-mail { font-weight: 600; color: #fff; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ticker-time { font-size: 0.7rem; color: var(--text-muted); font-family: 'JetBrains Mono', monospace; }
.ticker-empty { color: var(--text-muted); font-size: 0.85rem; text-align: center; padding: 20px 0; }

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

.home-steps {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    padding: 0;
    margin: 0;
}
.home-steps li {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 16px;
    font-size: 0.84rem;
    line-height: 1.5;
    color: var(--text-secondary);
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--radius-md);
}
.home-step-num {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 800;
    color: #fff;
    background: rgba(229, 9, 20, 0.2);
    border: 1px solid rgba(229, 9, 20, 0.35);
    border-radius: 8px;
    font-family: 'JetBrains Mono', monospace;
}

/* ═══ Buttons ═══ */

.action-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    min-height: 44px; padding: 0 18px; font-size: 0.95rem; font-weight: 700;
    border-radius: 999px; cursor: pointer; border: 1px solid transparent;
    font-family: inherit; transition: transform var(--transition), box-shadow var(--transition), background-color var(--transition), border-color var(--transition);
    text-decoration: none; line-height: 1;
}
.checker-actions-secondary .action-btn {
    padding: 0 12px;
    font-size: 0.8rem;
    min-height: 36px;
}
.action-btn .icon { font-size: 1rem; }
.primary-btn {
    background: linear-gradient(135deg, rgba(229,9,20,0.96), rgba(255,55,55,0.95));
    color: #fff; box-shadow: 0 18px 40px rgba(229,9,20,0.22);
}
.primary-btn:hover:not(:disabled) {
    box-shadow: 0 20px 45px rgba(229,9,20,0.32);
    transform: translateY(-1px);
}
.ghost-btn {
    background: rgba(255,255,255,0.06);
    border-color: rgba(255,255,255,0.14);
    color: #fff;
}
.ghost-btn:hover:not(:disabled) {
    background: rgba(255,255,255,0.14);
}
.danger-btn {
    background: rgba(229,9,20,0.12);
    border-color: rgba(229,9,20,0.24);
    color: #fff;
}
.danger-btn:hover:not(:disabled) {
    background: rgba(229,9,20,0.9);
}
.action-btn:disabled {
    opacity: 0.5; cursor: not-allowed; transform: none !important;
    box-shadow: none;
}
.action-btn .icon { font-size: 1rem; }
.primary-btn {
    background: linear-gradient(135deg, rgba(229,9,20,0.96), rgba(255,55,55,0.95));
    color: #fff; box-shadow: 0 18px 40px rgba(229,9,20,0.22);
}
.primary-btn:hover:not(:disabled) {
    box-shadow: 0 20px 45px rgba(229,9,20,0.32);
    transform: translateY(-1px);
}
.ghost-btn {
    background: rgba(255,255,255,0.06);
    border-color: rgba(255,255,255,0.14);
    color: #fff;
}
.ghost-btn:hover:not(:disabled) {
    background: rgba(255,255,255,0.14);
}
.danger-btn {
    background: rgba(229,9,20,0.12);
    border-color: rgba(229,9,20,0.24);
    color: #fff;
}
.danger-btn:hover:not(:disabled) {
    background: rgba(229,9,20,0.9);
}
.action-btn:disabled {
    opacity: 0.5; cursor: not-allowed; transform: none !important;
    box-shadow: none;
}

.dtab,
.mtab {
    transition: var(--transition);
}

.dtab, .mtab {
    min-height: 42px;
    border-radius: 999px;
    border: 1px solid transparent;
}

.dtab:hover:not(.active), .mtab:hover:not(.active) {
    background: rgba(255,255,255,0.08);
}

.dtab.active, .mtab.active {
    background: rgba(255,255,255,0.12);
    color: #fff;
}

.mtab {
    padding: 8px 14px;
}

.mtab.active {
    background: rgba(255,255,255,0.14);
}

/* ═══ CHECKER PAGE ═══ */
.checker-page {
    display: flex;
    flex-direction: column;
    gap: 24px;
    max-width: 920px;
    margin: 0 auto;
}
.checker-intro { text-align: center; }

.checker-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}
.checker-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 16px 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-lg);
    text-align: center;
}
.checker-stat-val {
    font-size: 1.5rem;
    font-weight: 800;
    font-family: 'JetBrains Mono', monospace;
    color: #fff;
    line-height: 1;
}
.checker-stat-label {
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-muted);
}
.checker-stat--live .checker-stat-val { color: var(--success); }
.checker-stat--dead .checker-stat-val { color: var(--danger); }
.checker-stat--flag .checker-stat-val { color: var(--warning); }

.checker-status { padding: 18px 20px; }
.checker-status-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 14px;
    margin-bottom: 14px;
}
.checker-run-badge {
    font-size: 0.68rem;
    padding: 4px 10px;
    border-radius: 6px;
}
.checker-status-text {
    font-size: 0.88rem;
    color: var(--text-secondary);
}
.status-chip--pending {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-secondary);
    border: 1px solid rgba(255, 255, 255, 0.1);
}
.status-chip--ok { background: rgba(0, 184, 148, 0.15); color: var(--success); }
.status-chip--fail { background: rgba(229, 9, 20, 0.15); color: var(--danger); }

.checker-progress-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.82rem;
    color: var(--text-secondary);
    margin-bottom: 8px;
}
.checker-progress-nums {
    font-family: 'JetBrains Mono', monospace;
    color: var(--text-primary);
}
.checker-progress-pct { color: var(--accent); font-weight: 700; }
.checker-progress-track {
    height: 6px;
    background: rgba(0, 0, 0, 0.35);
    border-radius: 999px;
    overflow: hidden;
}
.checker-progress-fill {
    height: 100%;
    width: 0%;
    background: var(--accent-gradient);
    border-radius: 999px;
    transition: width 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.checker-input { padding: 0; overflow: hidden; }
.checker-input.dragover {
    border-color: rgba(229, 9, 20, 0.5);
    box-shadow: 0 0 0 2px rgba(229, 9, 20, 0.15);
}
.checker-input.has-value .checker-fmt { color: var(--success); }
.checker-input-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(0, 0, 0, 0.2);
}
.checker-fmt {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-muted);
    padding: 4px 8px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 6px;
}
.checker-tokens { font-size: 0.8rem; color: var(--text-muted); }
.checker-textarea {
    width: 100%;
    min-height: 160px;
    padding: 18px;
    background: transparent;
    border: none;
    resize: vertical;
    color: var(--text-primary);
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.84rem;
    line-height: 1.55;
}
.checker-textarea:focus { outline: none; }
.checker-textarea::placeholder { color: var(--text-muted); }
.checker-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 10px;
    padding: 14px 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(0, 0, 0, 0.2);
}
.checker-actions-primary,
.checker-actions-secondary {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.checker-results {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    align-items: start;
}
.checker-result-pane { padding: 16px 18px; }
.checker-result-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.checker-result-head h2 {
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: flex;
    align-items: center;
    gap: 8px;
}
.checker-result-head--live h2 .icon { color: var(--success); }
.checker-result-head--dead h2 .icon { color: var(--danger); }
.checker-toggle {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 5px 12px;
    color: var(--text-secondary);
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    transition: var(--transition);
}
.checker-toggle:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}
.checker-result-list,
.card-scroll {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: 420px;
    overflow-y: auto;
    padding-right: 4px;
}
.card-scroll.collapsed { display: none !important; }

.result-card { background: rgba(0,0,0,0.2); border: 1px solid var(--glass-border); border-radius: var(--radius-md); padding: 12px; border-left: 3px solid transparent; }
.result-card.success { border-left-color: var(--success); }
.result-card.error { border-left-color: var(--danger); }
.result-card.warning { border-left-color: var(--warning); }
.result-card-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.result-card-head h3 { font-size: 0.85rem; font-weight: 500; }
.status-chip { font-size: 0.65rem; font-weight: 600; padding: 2px 6px; border-radius: 4px; text-transform: uppercase; }
.status-chip.success { background: rgba(52,211,153,0.15); color: var(--success); }
.status-chip.error { background: rgba(248,113,113,0.15); color: var(--danger); }
.result-card-meta { font-size: 0.75rem; color: var(--text-secondary); font-family: 'JetBrains Mono', monospace; word-break: break-all; margin-bottom: 10px; }
.result-row { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.result-row div { font-size: 0.8rem; color: var(--text-muted); }
.result-row div strong { color: var(--text-primary); font-weight: 500; }
.result-actions { display: flex; gap: 6px; margin-top: 12px; border-top: 1px solid var(--glass-border); padding-top: 12px; }
.result-actions a { font-size: 0.75rem; color: var(--text-secondary); text-decoration: none; background: rgba(255,255,255,0.05); padding: 4px 10px; border-radius: 4px; transition: var(--transition); }
.result-actions a:hover { background: rgba(255,255,255,0.1); color: var(--text-primary); }

/* Plan badge inside result cards */
.plan-badge {
    display: inline-flex;
    margin-left: 12px;
    padding: 8px 14px;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 800;
    color: #fff;
    background: linear-gradient(90deg, rgba(229,9,20,0.96), rgba(255,58,58,0.92));
    border: 1px solid rgba(255,255,255,0.12);
    letter-spacing: 0.3px;
}
.result-card.success .plan-badge { background: linear-gradient(90deg, rgba(0,184,148,0.85), rgba(0,184,148,0.95)); color: #fff; }

/* Per-plan colors */
.plan-badge.purple { background: linear-gradient(90deg, rgba(229,9,20,0.96), rgba(255,58,58,0.92)); }
.plan-badge.gray { background: linear-gradient(90deg, rgba(110,110,110,0.9), rgba(70,70,70,0.95)); }
.plan-badge.orange { background: linear-gradient(90deg, rgba(255,115,0,0.94), rgba(255,79,0,0.92)); }
.plan-badge.premium { background: linear-gradient(90deg, rgba(229,9,20,0.96), rgba(255,58,58,0.92)); }
.plan-badge.standard { background: linear-gradient(90deg, rgba(255,255,255,0.06), rgba(255,255,255,0.12)); color: #fff; border-color: rgba(255,255,255,0.15); }
.plan-badge.basic { background: linear-gradient(90deg, rgba(120,120,120,0.9), rgba(90,90,90,0.95)); color: #FFF; }

/* Platform buttons (PC / Mobile / TV) */
.result-actions { display:flex; gap:8px; flex-wrap:wrap; align-items:center; }
.result-actions a.platform { display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 10px; font-weight: 700; text-decoration: none; color: var(--text-primary); border: 1px solid rgba(255,255,255,0.03); background: rgba(255,255,255,0.02); transition: transform .12s ease, box-shadow .12s ease; }
.result-actions a.platform .ph, .result-actions a.platform i { font-size: 1.05rem; }
.result-actions a.platform:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(0,0,0,0.35); }

/* PC / Mobile / TV accents */
.result-actions a.platform.pc { background: linear-gradient(90deg, rgba(96,165,250,0.08), rgba(255,255,255,0.02)); border-color: rgba(96,165,250,0.12); }
.result-actions a.platform.mobile { background: linear-gradient(90deg, rgba(96,165,250,0.06), rgba(167,139,250,0.04)); border-color: rgba(96,165,250,0.10); }
.result-actions a.platform.tv { background: linear-gradient(90deg, rgba(167,139,250,0.06), rgba(96,165,250,0.04)); border-color: rgba(167,139,250,0.10); }
.result-actions a.platform.pc .ph,
.result-actions a.platform.pc .icon { color: #60A5FA; }
.result-actions a.platform.mobile .ph,
.result-actions a.platform.mobile .icon { color: #34D399; }
.result-actions a.platform.tv .ph,
.result-actions a.platform.tv .icon { color: #A78BFA; }

/* Responsive: stack platform buttons on small screens */
@media(max-width:768px) {
    .result-actions { flex-direction: column; align-items: stretch; }
    .result-actions a.platform { width: 100%; justify-content: center; }
    .result-card-head { gap: 10px; }
    .result-card .title-block { display: flex; flex-direction: column; gap: 6px; }
}

/* Header actions and plan placement */
.header-actions { display: flex; gap: 8px; align-items: center; margin: 0 12px; }
.plan-placement { margin-left: 12px; display: flex; align-items: center; }
.plan-placement .plan-badge { margin: 0; }

@media(max-width:768px) {
    .result-card-head { flex-direction: column; align-items: stretch; gap: 8px; }
    .header-actions { justify-content: flex-start; }
    .status-wrap { align-self: center; }
    .plan-placement { margin-left: 0; margin-top: 8px; justify-content: center; }
}

.plan-placement { margin-left: auto; display: flex; align-items: center; }

/* Enhanced result card layout */
.result-card { display: block; transition: transform var(--transition), box-shadow var(--transition); }
.result-card:hover { transform: translateY(-4px); box-shadow: 0 8px 30px rgba(0,0,0,0.35); }
.result-card-title { display: flex; align-items: center; gap: 10px; }
.avatar { width: 44px; height: 44px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-weight: 700; color: #fff; background: linear-gradient(135deg, rgba(255,255,255,0.06), rgba(255,255,255,0.02)); border: 1px solid rgba(255,255,255,0.03); font-family: 'JetBrains Mono', monospace; }
.result-card.success .avatar { background: linear-gradient(135deg, rgba(52,211,153,0.18), rgba(96,165,250,0.06)); }
.result-card.error .avatar { background: linear-gradient(135deg, rgba(248,113,113,0.14), rgba(255,255,255,0.02)); }
.title-block h3 { font-size: 0.95rem; margin: 0; color: var(--text-primary); }
.title-block .subtle { font-size: 0.75rem; color: var(--text-secondary); margin-top: 4px; }
    .status-wrap { display: flex; flex-direction: column; align-items: flex-end; justify-content: center; gap: 8px; }
.status-chip.error { background: rgba(248,113,113,0.08); color: var(--danger); border: 1px solid rgba(248,113,113,0.06); }

/* ═══ VAULT PAGE ═══ */
.vault-page {
    display: flex;
    flex-direction: column;
    gap: 24px;
    max-width: 880px;
    margin: 0 auto;
}
.vault-intro { text-align: center; }
.vault-intro-top {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 10px;
}
.vault-intro-top .home-headline { margin-bottom: 0; }
.vault-count {
    flex-shrink: 0;
    min-width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 800;
    font-family: 'JetBrains Mono', monospace;
    color: #fff;
    background: var(--accent-gradient);
    border-radius: 8px;
    padding: 0 8px;
    margin-left: 10px;
    vertical-align: middle;
}

.vault-toolbar {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}
.vault-search-wrap { position: relative; flex: 1; min-width: 200px; max-width: 420px; }
.vault-search {
    width: 100%;
    padding: 12px 16px 12px 42px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-family: inherit;
    font-size: 0.9rem;
    height: 44px;
    transition: var(--transition);
}
.vault-search:focus {
    outline: none;
    border-color: rgba(229, 9, 20, 0.35);
    background: rgba(255, 255, 255, 0.06);
}
.search-ico {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 1rem;
}
.vault-select {
    padding: 8px 32px 8px 12px;
    font-size: 0.8rem;
    height: 36px;
    background: #111 !important;
    color: #fff !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
}

.vault-select option {
    background: #111 !important;
    color: #fff !important;
}
.vault-select:focus { outline: none; border-color: rgba(229, 9, 20, 0.35); }

.vault-bulk-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 18px;
    background: rgba(229, 9, 20, 0.08);
    border: 1px solid rgba(229, 9, 20, 0.15);
    border-radius: var(--radius-md);
    margin-bottom: 4px;
    animation: fadeIn 0.2s ease;
}
.bulk-count { font-size: 0.85rem; font-weight: 700; color: #fff; }
.bulk-btns { display: flex; gap: 8px; }
.btn-sm { min-height: 32px; padding: 0 12px; font-size: 0.8rem; }

.vault-card-checkbox {
    width: 20px;
    height: 20px;
    border-radius: 6px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    background: rgba(0, 0, 0, 0.3);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    flex-shrink: 0;
}
.vault-card-checkbox.checked {
    background: var(--accent);
    border-color: var(--accent);
}
.vault-card-checkbox.checked::after {
    content: '✓';
    color: #fff;
    font-size: 12px;
    font-weight: 800;
}

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

.vault-list { display: flex; flex-direction: column; gap: 10px; }
.vault-card {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 16px 18px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    transition: var(--transition);
}
.vault-card:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.16);
}
.vault-card-main {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    flex: 1;
    min-width: 0;
}
.vault-card-index {
    flex-shrink: 0;
    font-size: 0.75rem;
    font-weight: 700;
    font-family: 'JetBrains Mono', monospace;
    color: var(--text-muted);
    padding-top: 2px;
}
.vault-card-email {
    display: block;
    font-size: 0.95rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 8px;
    word-break: break-all;
}
.vault-card-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}
.vault-card-renewal {
    font-size: 0.78rem;
    color: var(--text-muted);
}
.vault-no-match {
    text-align: center;
    padding: 32px 16px;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.plan-tag { font-size: 0.72rem; font-weight: 700; padding: 4px 10px; border-radius: 6px; }
.plan-tag.premium { background: rgba(229, 9, 20, 0.15); color: #ff6b6b; border: 1px solid rgba(229, 9, 20, 0.25); }
.plan-tag.standard { background: rgba(255, 255, 255, 0.08); color: var(--text-secondary); border: 1px solid rgba(255, 255, 255, 0.12); }
.plan-tag.basic { background: rgba(100, 116, 139, 0.2); color: #94a3b8; border: 1px solid rgba(100, 116, 139, 0.3); }

.country-flag {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--text-secondary);
    background: rgba(0, 0, 0, 0.25);
    padding: 4px 8px;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.vault-pagination,
.pagination-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    margin-top: 8px;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.page-info { font-size: 0.85rem; color: var(--text-secondary); font-family: 'JetBrains Mono', monospace; }

.table-row-actions { display: flex; flex-wrap: wrap; gap: 8px; flex-shrink: 0; }
.table-row-actions button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    padding: 0;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition);
}
.table-row-actions button i { font-size: 1.1rem; }
.table-row-actions button:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
}
.table-row-actions button.btn-load {
    background: rgba(229, 9, 20, 0.12);
    color: #ff8a8a;
    border-color: rgba(229, 9, 20, 0.2);
}
.table-row-actions button.btn-delete {
    background: rgba(229, 9, 20, 0.08);
    border-color: rgba(229, 9, 20, 0.15);
}
.table-row-actions button.btn-delete:hover {
    background: rgba(229, 9, 20, 0.25);
    color: #fff;
}

.vault-empty {
    display: none;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 48px 24px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px dashed rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-xl);
    gap: 12px;
}
.vault-empty.visible { display: flex; }
.vault-empty-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.05);
    border-radius: 14px;
    margin-bottom: 4px;
}
.vault-empty h3 { font-size: 1.15rem; font-weight: 700; }
.vault-empty p { color: var(--text-secondary); font-size: 0.9rem; max-width: 320px; }

/* ═══ Bottom Mobile Nav ═══ */
.mobile-nav {
    display: none; position: fixed; bottom: 16px; left: 50%; transform: translateX(-50%);
    width: 90%; height: 60px; z-index: 100;
    background: rgba(15, 23, 42, 0.7); backdrop-filter: blur(20px); border: 1px solid var(--glass-border);
    border-radius: 30px; justify-content: space-around; align-items: center; padding: 0 10px; box-shadow: var(--shadow-soft);
}
.mtab { display: flex; flex-direction: column; align-items: center; gap: 4px; background: none; border: none; color: var(--text-secondary); cursor: pointer; font-size: 0.65rem; font-weight: 500; padding: 8px 16px; border-radius: 20px; }
.mtab i { font-size: 1.1rem; }
.mtab.active { color: #fff; background: rgba(255,255,255,0.1); }

/* ═══ Loading splash ═══ */
.splash {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.splash.is-active { display: flex; }

.splash-backdrop {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 80% 60% at 50% 40%, rgba(229, 9, 20, 0.18) 0%, transparent 55%),
        radial-gradient(ellipse 100% 100% at 50% 100%, rgba(0, 0, 0, 0.9) 0%, #050505 70%);
    background-color: #050505;
}
.splash-grid {
    position: absolute;
    inset: 0;
    opacity: 0.35;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: radial-gradient(ellipse 70% 60% at 50% 45%, #000 20%, transparent 75%);
}

.splash-body {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    padding: 24px;
    animation: splashIn 0.55s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.splash-logo-stage {
    position: relative;
    width: 112px;
    height: 112px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
}
.splash-logo {
    width: 72px;
    height: 72px;
    position: relative;
    z-index: 2;
    filter: drop-shadow(0 8px 24px rgba(229, 9, 20, 0.45));
    animation: splashLogoPulse 2.4s ease-in-out infinite;
}
.splash-ring {
    position: absolute;
    border-radius: 50%;
    border: 1px solid rgba(229, 9, 20, 0.35);
}
.splash-ring--outer {
    inset: 0;
    border-style: dashed;
    animation: splashSpin 12s linear infinite;
}
.splash-ring--inner {
    inset: 12px;
    border-color: rgba(255, 255, 255, 0.12);
    animation: splashSpin 8s linear infinite reverse;
}

.splash-wordmark {
    display: flex;
    align-items: baseline;
    gap: 2px;
    font-size: 1.65rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin: 0;
}
.splash-word-xynf { color: #fff; }
.splash-tagline {
    margin: 0;
    font-size: 0.82rem;
    color: var(--text-muted);
    letter-spacing: 0.04em;
}

.splash-progress { width: min(280px, 72vw); }
.splash-progress-track {
    height: 3px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 999px;
    overflow: hidden;
}
.splash-progress-bar {
    height: 100%;
    width: 35%;
    background: var(--accent-gradient);
    border-radius: 999px;
    box-shadow: 0 0 12px rgba(229, 9, 20, 0.6);
    animation: splashProgress 1.8s ease-in-out infinite;
}

.loading-text {
    margin: 0;
    color: var(--text-secondary);
    font-size: 0.78rem;
    font-family: 'JetBrains Mono', monospace;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    min-height: 1.2em;
}

.splash-dots {
    display: flex;
    gap: 6px;
    margin-top: 4px;
}
.splash-dots span {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--accent);
    opacity: 0.35;
    animation: splashDot 1.2s ease-in-out infinite;
}
.splash-dots span:nth-child(2) { animation-delay: 0.15s; }
.splash-dots span:nth-child(3) { animation-delay: 0.3s; }

@keyframes splashIn {
    from { opacity: 0; transform: translateY(16px) scale(0.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes splashLogoPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.04); }
}
@keyframes splashSpin {
    to { transform: rotate(360deg); }
}
@keyframes splashProgress {
    0% { transform: translateX(-120%); width: 30%; }
    50% { width: 55%; }
    100% { transform: translateX(320%); width: 30%; }
}
@keyframes splashDot {
    0%, 80%, 100% { opacity: 0.3; transform: scale(0.85); }
    40% { opacity: 1; transform: scale(1); }
}
.ph-spin { animation: spin 0.8s linear infinite; display: inline-block; }
@keyframes gradientMove { 0% { background-position: 0% center; } 100% { background-position: -200% center; } }

/* ═══ RESPONSIVE FOR LAPTOP, PC, ANDROID ═══ */

/* Laptop / Small Desktop */
@media(max-width: 1024px) {
    .main-content { padding: 80px 16px 80px; }
    .checker-stats { grid-template-columns: repeat(2, 1fr); }
}

/* Tablet / Android Landscape */
@media(max-width: 768px) {
    .top-header { width: 100%; top: 0; border-radius: 0; border-left: none; border-right: none; border-top: none; height: 50px; }
    .desktop-nav { display: none; }
    .mobile-nav { display: flex; }
    
    .home-quick { grid-template-columns: 1fr; }
    .home-metrics { grid-template-columns: 1fr; }
    .home-insights { grid-template-columns: 1fr; }
    .home-steps { grid-template-columns: 1fr; }
    
    .checker-stats { grid-template-columns: repeat(2, 1fr); }
    .checker-results { grid-template-columns: 1fr; }
    .checker-actions { flex-direction: column; align-items: stretch; }
    .checker-actions-primary,
    .checker-actions-secondary { justify-content: stretch; }
    .checker-actions-secondary .action-btn { flex: 1; }

    .vault-toolbar { flex-direction: column; align-items: stretch; }
    .vault-search-wrap { max-width: 100%; }
    .vault-btns { justify-content: stretch; }
    .vault-btns .action-btn { flex: 1; justify-content: center; }
    .vault-card { flex-direction: column; align-items: stretch; }
    .vault-card-actions { justify-content: flex-end; }
}

/* Mobile / Android Portrait */
@media(max-width: 480px) {
    .home-metric-value { font-size: 1.75rem; }
    .home-card { padding: 16px; }
    
    .checker-stat-val { font-size: 1.25rem; }
    .action-btn { justify-content: center; padding: 10px 16px; }
    .result-row { grid-template-columns: 1fr; }
}

/* Worker Selector Styling */
.checker-status-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.worker-selector {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.82rem;
    color: var(--text-secondary);
    background: rgba(255, 255, 255, 0.04);
    padding: 4px 12px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.worker-selector select {
    background: #111 !important;
    color: #fff !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    padding: 2px 20px 2px 8px !important;
    border-radius: 6px !important;
    appearance: menulist-button;
}

.worker-selector select option {
    background: #111 !important;
    color: #fff !important;
}

/* Repositioned Metrics Styling */
.checker-full-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-bottom: 10px;
    width: 100%;
    grid-column: 1 / -1;
}

.checker-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-md);
    transition: var(--transition);
}

.checker-stat:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.12);
}

.checker-stat-val {
    font-size: 1.4rem;
    font-weight: 800;
    font-family: 'JetBrains Mono', monospace;
    color: #fff;
}

.checker-stat-label {
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    margin-top: 2px;
}

.checker-stat--live .checker-stat-val { color: var(--success); }
.checker-stat--dead .checker-stat-val { color: var(--danger); }
.checker-stat--flag .checker-stat-val { color: var(--warning); }


/* ═══ Footer ═══ */

/* --- Footer --- */
.app-footer {
    position: relative;
    z-index: 1;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    background: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 16px 24px;
    margin-top: auto;
}
.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.76rem;
    color: var(--text-muted);
}
.footer-brand {
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
    color: var(--text-secondary);
}
.footer-logo-svg {
    width: 16px;
    height: 16px;
    color: var(--accent);
}
.footer-copy {
    font-family: 'DM Sans', sans-serif;
}

@media(max-width: 768px) {
    .app-footer {
        padding-bottom: 96px;
    }
    .footer-container {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }
}
