/* NewsHack - Global Styles */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=JetBrains+Mono:wght@400;500;600&display=swap');

:root {
    --bg-primary: #0a0e17;
    --bg-secondary: #111827;
    --bg-card: #1a2235;
    --bg-card-hover: #1f2a40;
    --bg-input: #0f1623;
    --border: #1e2d45;
    --border-glow: #00f0ff33;
    --text-primary: #e2e8f0;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --accent: #00f0ff;
    --accent-hover: #00d4e0;
    --accent2: #7c3aed;
    --accent3: #f43f5e;
    --accent4: #10b981;
    --accent5: #f59e0b;
    --gradient1: linear-gradient(135deg, #00f0ff 0%, #7c3aed 100%);
    --gradient2: linear-gradient(135deg, #7c3aed 0%, #f43f5e 100%);
    --gradient3: linear-gradient(135deg, #f43f5e 0%, #f59e0b 100%);
    --shadow: 0 4px 24px rgba(0,0,0,0.4);
    --shadow-glow: 0 0 20px rgba(0,240,255,0.15);
    --radius: 12px;
    --radius-sm: 8px;
    --radius-xs: 4px;
    --transition: all 0.3s cubic-bezier(0.4,0,0.2,1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--accent-hover); }

/* Scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-primary); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent); }

/* ===== HEADER / NAVBAR ===== */
.navbar {
    position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
    background: #0a0e17;
    border-bottom: 1px solid var(--border);
    display: flex; flex-direction: column;
    padding: 0;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

.nav-top {
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 24px;
    height: 80px;
}

.nav-top-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.nav-bottom {
    width: 100%;
    background: #b91c1c; /* Deep Red */
    border-top: 1px solid rgba(255,255,255,0.1);
}

.nav-brand {
    display: flex; align-items: center;
}

.nav-logo {
    height: 60px;
    width: auto;
    max-width: 300px;
    object-fit: contain;
    filter: brightness(1.2);
    transition: var(--transition);
}

.nav-center {
    width: 100%;
    background: transparent; /* Changed from red to transparent for the outer wrapper */
}

.nav-links-container {
    width: 95%;
    max-width: 1440px;
    margin: 0 auto;
    background: #b91c1c; /* Solid Red applied to the centered container only */
    display: flex;
    align-items: center;
    border-radius: 4px; /* Optional: slight rounding to make it look 'neat' */
    overflow: hidden;
}

.nav-links {
    display: flex; align-items: center; width: 100%;
    list-style: none;
}

.nav-links li { flex: 1; text-align: center; }

.nav-links a {
    display: block;
    padding: 14px 10px;
    color: #ffffff; font-size: 0.85rem; font-weight: 700;
    transition: var(--transition);
    text-transform: uppercase; letter-spacing: 0.5px;
    white-space: nowrap;
    border-right: 1px solid rgba(255,255,255,0.1);
    background: transparent;
}
.nav-links li:last-child a { border-right: none; }

.nav-links a:hover {
    background: rgba(0,0,0,0.15);
    color: #fff;
}
.nav-links a.active {
    background: rgba(0,0,0,0.25);
    color: #fff;
}
.nav-links a.active::after { display: none; }

.nav-notify {
    background: rgba(0,0,0,0.1) !important;
}

.nav-search.desktop-only { display: flex; }

.nav-search {
    display: flex; align-items: center; gap: 8px;
    background: var(--bg-input); border: 1px solid var(--border);
    border-radius: var(--radius-sm); padding: 6px 12px;
    transition: var(--transition);
}
.nav-search:focus-within { border-color: var(--accent); box-shadow: var(--shadow-glow); }
.nav-search input {
    background: none; border: none; outline: none;
    color: var(--text-primary); font-size: 0.82rem; width: 160px;
    font-family: inherit;
}
.nav-search input::placeholder { color: var(--text-muted); }
.nav-search svg { width: 14px; height: 14px; color: var(--text-muted); flex-shrink: 0; }

.nav-mobile-search { display: none; }

.nav-hamburger {
    display: none; background: none; border: none; cursor: pointer; padding: 8px;
    color: var(--text-primary); margin-left: 12px;
}
.nav-hamburger svg { width: 24px; height: 24px; }

/* ===== MAIN LAYOUT ===== */
.main-wrapper { margin-top: 150px; padding: 24px; max-width: 1440px; margin-left: auto; margin-right: auto; }

/* ===== STATS BAR ===== */
.stats-bar {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 16px; margin-bottom: 28px;
}

.stat-card {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 20px;
    transition: var(--transition); position: relative; overflow: hidden;
}
.stat-card::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
    background: var(--gradient1); opacity: 0; transition: var(--transition);
}
.stat-card:hover { transform: translateY(-2px); border-color: var(--border-glow); box-shadow: var(--shadow-glow); }
.stat-card:hover::before { opacity: 1; }

.stat-card .stat-value {
    font-size: 1.75rem; font-weight: 800; font-family: 'JetBrains Mono', monospace;
    background: var(--gradient1); -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.stat-card .stat-label { font-size: 0.75rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1px; margin-top: 4px; }

.stat-card:nth-child(2) .stat-value { background: var(--gradient2); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.stat-card:nth-child(2)::before { background: var(--gradient2); }
.stat-card:nth-child(3) .stat-value { background: var(--gradient3); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.stat-card:nth-child(3)::before { background: var(--gradient3); }

/* Shimmer animation for loading states or accents */
@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}
.shimmer {
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.05), transparent);
    background-size: 200% 100%;
    animation: shimmer 2s infinite linear;
}

/* ===== SECTION HEADERS ===== */
.section-header {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 16px; padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
}
.section-title {
    font-size: 1.1rem; font-weight: 700;
    display: flex; align-items: center; gap: 10px;
}
.section-title .icon {
    width: 32px; height: 32px; border-radius: var(--radius-sm);
    display: flex; align-items: center; justify-content: center;
    font-size: 0.85rem;
}
.section-title .icon.green { background: rgba(16,185,129,0.15); color: var(--accent4); }
.section-title .icon.blue { background: rgba(0,240,255,0.15); color: var(--accent); }
.section-title .icon.red { background: rgba(244,63,94,0.15); color: var(--accent3); }
.section-title .icon.purple { background: rgba(124,58,237,0.15); color: var(--accent2); }
.section-title .icon.yellow { background: rgba(245,158,11,0.15); color: var(--accent5); }

.section-link { font-size: 0.8rem; color: var(--text-muted); display: flex; align-items: center; gap: 4px; }
.section-link:hover { color: var(--accent); }

/* ===== TABLE ===== */
.table-container {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius); overflow: hidden; margin-bottom: 28px;
}
.table-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}
.table-wrapper::-webkit-scrollbar { height: 4px; }
.table-wrapper::-webkit-scrollbar-thumb { background: var(--border); border-radius: 2px; }
.table-container.special { border-color: rgba(245,158,11,0.3); box-shadow: 0 0 20px rgba(245,158,11,0.05); }
.table-container.onhold { border-color: rgba(244,63,94,0.3); box-shadow: 0 0 20px rgba(244,63,94,0.05); }

table { width: 100%; border-collapse: collapse; font-size: 0.85rem; }
thead th {
    background: var(--bg-input); padding: 12px 16px;
    text-align: left; font-weight: 600; color: var(--text-muted);
    text-transform: uppercase; font-size: 0.7rem; letter-spacing: 1px;
    border-bottom: 1px solid var(--border); white-space: nowrap;
}
tbody td {
    padding: 12px 16px; border-bottom: 1px solid rgba(30,45,69,0.5);
    vertical-align: middle;
}
tbody tr { transition: var(--transition); border-left: 3px solid transparent; }
tbody tr:hover { background: var(--bg-card-hover); border-left-color: var(--accent); }
tbody tr:last-child td { border-bottom: none; }

.td-date { color: var(--text-muted); font-family: 'JetBrains Mono', monospace; font-size: 0.8rem; white-space: nowrap; }
.td-attacker a { color: var(--accent); font-weight: 600; }
.td-attacker a:hover { text-decoration: underline; }
.td-team a { color: var(--accent2); font-weight: 500; }
.td-team a:hover { text-decoration: underline; }
.td-url { max-width: 280px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.td-url a { color: var(--text-primary); font-family: 'JetBrains Mono', monospace; font-size: 0.8rem; }
.td-url a:hover { color: var(--accent); }

.td-attacker, .td-team { max-width: 150px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.badge-new {
    background: var(--accent);
    color: var(--bg-primary);
    font-size: 0.6rem;
    font-weight: 800;
    padding: 2px 5px;
    border-radius: 4px;
    margin-left: 6px;
    vertical-align: middle;
    text-transform: uppercase;
}

.badge {
    display: inline-flex; align-items: center; justify-content: center;
    width: 22px; height: 22px; border-radius: var(--radius-xs);
    font-size: 0.65rem; font-weight: 700; margin-right: 2px;
}
.badge-h { background: rgba(0,240,255,0.15); color: var(--accent); }
.badge-m { background: rgba(124,58,237,0.15); color: var(--accent2); }
.badge-r { background: rgba(244,63,94,0.15); color: var(--accent3); }
.badge-s { background: rgba(245,158,11,0.15); color: var(--accent5); }

/* ===== PREMIUM VERIFICATION BADGES ===== */
.verified-badge {
    display: inline-flex; align-items: center; justify-content: center;
    width: 18px; height: 18px;
    border-radius: 50%;
    margin-left: 5px;
    position: relative;
    vertical-align: middle;
    flex-shrink: 0;
    cursor: default;
    animation: badgePulse 3s ease-in-out infinite;
}

.verified-badge svg {
    width: 18px; height: 18px;
    filter: drop-shadow(0 0 3px currentColor);
}

/* Shimmer sweep overlay */
.verified-badge::after {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 50%;
    background: linear-gradient(
        105deg,
        transparent 30%,
        rgba(255,255,255,0.35) 45%,
        rgba(255,255,255,0.5) 50%,
        rgba(255,255,255,0.35) 55%,
        transparent 70%
    );
    background-size: 250% 100%;
    animation: badgeShimmer 3s ease-in-out infinite;
    pointer-events: none;
}

/* Top 1 — GOLD ✦ */
.verified-gold {
    color: #FFD700;
    filter: drop-shadow(0 0 6px rgba(255,215,0,0.5));
}
.verified-gold svg {
    filter: drop-shadow(0 0 4px rgba(255,215,0,0.6));
}

/* Top 2 — DARK GOLD / BRONZE ✦ */
.verified-darkgold {
    color: #B8860B;
    filter: drop-shadow(0 0 5px rgba(184,134,11,0.4));
}
.verified-darkgold svg {
    filter: drop-shadow(0 0 3px rgba(184,134,11,0.5));
}

/* Top 3 — BLUE ✦ */
.verified-blue {
    color: #1DA1F2;
    filter: drop-shadow(0 0 5px rgba(29,161,242,0.4));
}
.verified-blue svg {
    filter: drop-shadow(0 0 3px rgba(29,161,242,0.5));
}

@keyframes badgeShimmer {
    0% { background-position: 200% 0; }
    40% { background-position: -50% 0; }
    100% { background-position: -50% 0; }
}

@keyframes badgePulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.08); }
}

/* Badge inline with name */
.name-with-badge {
    display: inline-flex;
    align-items: center;
    gap: 0;
}
.name-with-badge a {
    white-space: nowrap;
}

/* Tooltip for badge */
.verified-badge[title] {
    position: relative;
}
.verified-badge:hover::before {
    content: attr(title);
    position: absolute;
    bottom: calc(100% + 6px);
    left: 50%;
    transform: translateX(-50%);
    padding: 4px 10px;
    border-radius: 6px;
    background: rgba(0,0,0,0.9);
    color: #fff;
    font-size: 0.68rem;
    font-weight: 500;
    white-space: nowrap;
    z-index: 100;
    pointer-events: none;
    border: 1px solid var(--border);
    box-shadow: 0 4px 12px rgba(0,0,0,0.4);
}

.mirror-btn {
    padding: 4px 12px; border-radius: var(--radius-xs);
    background: rgba(0,240,255,0.1); color: var(--accent);
    font-size: 0.75rem; font-weight: 600; border: 1px solid rgba(0,240,255,0.2);
    cursor: pointer; transition: var(--transition);
}
.mirror-btn:hover { background: rgba(0,240,255,0.2); }

.flag-img { width: 22px; height: 16px; border-radius: 2px; vertical-align: middle; }

/* ===== CARDS / GRID ===== */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-bottom: 28px; }

.rank-card {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius); overflow: hidden;
}
.rank-list { list-style: none; }
.rank-item {
    display: flex; align-items: center; gap: 12px;
    padding: 10px 16px; border-bottom: 1px solid rgba(30,45,69,0.4);
    transition: var(--transition);
}
.rank-item:hover { background: var(--bg-card-hover); }
.rank-item:last-child { border-bottom: none; }
.rank-num {
    width: 28px; height: 28px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 0.75rem; font-weight: 700; flex-shrink: 0;
    background: var(--bg-input); color: var(--text-muted);
}
.rank-num.top1 { background: linear-gradient(135deg,#f59e0b,#ef4444); color: #fff; }
.rank-num.top2 { background: linear-gradient(135deg,#94a3b8,#64748b); color: #fff; }
.rank-num.top3 { background: linear-gradient(135deg,#d97706,#92400e); color: #fff; }
.rank-name { flex: 1; font-weight: 600; font-size: 0.85rem; }
.rank-name a { color: var(--text-primary); }
.rank-name a:hover { color: var(--accent); }
.rank-count {
    font-family: 'JetBrains Mono', monospace; font-weight: 700;
    color: var(--accent); font-size: 0.85rem;
}

/* ===== PAGINATION ===== */
.pagination {
    display: flex; align-items: center; justify-content: center;
    gap: 6px; padding: 20px;
}
.page-btn {
    padding: 8px 14px; border-radius: var(--radius-sm);
    background: var(--bg-input); border: 1px solid var(--border);
    color: var(--text-secondary); font-size: 0.85rem; font-weight: 500;
    cursor: pointer; transition: var(--transition); font-family: inherit;
}
.page-btn:hover { border-color: var(--accent); color: var(--accent); }
.page-btn.active { background: var(--accent); color: var(--bg-primary); border-color: var(--accent); font-weight: 700; }
.page-btn:disabled { opacity: 0.3; cursor: not-allowed; }

/* ===== PROFILE PAGE ===== */
.profile-header {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 32px;
    margin-bottom: 28px; position: relative; overflow: hidden;
}
.profile-header::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px;
    background: var(--gradient1);
}
.profile-name {
    font-size: 1.75rem; font-weight: 800;
    background: var(--gradient1); -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.profile-stats { display: flex; gap: 24px; margin-top: 16px; flex-wrap: wrap; }
.profile-stat { text-align: center; }
.profile-stat-value {
    font-size: 1.25rem; font-weight: 700;
    font-family: 'JetBrains Mono', monospace; color: var(--accent);
}
.profile-stat-label { font-size: 0.7rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.5px; }

/* ===== SUBMIT FORM ===== */
.form-card {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 32px; max-width: 720px; margin: 0 auto;
}
.form-group { margin-bottom: 20px; }
.form-label {
    display: flex; align-items: center; justify-content: space-between;
    font-size: 0.8rem; font-weight: 600; color: var(--text-secondary);
    margin-bottom: 6px; text-transform: uppercase; letter-spacing: 0.5px;
}
.form-label .label-hint { font-size: 0.7rem; color: var(--text-muted); text-transform: none; letter-spacing: 0; font-weight: 400; }
.form-input, .form-textarea, .form-select {
    width: 100%; padding: 12px 16px;
    background: var(--bg-input); border: 1px solid var(--border);
    border-radius: var(--radius-sm); color: var(--text-primary);
    font-family: inherit; font-size: 0.9rem;
    transition: var(--transition);
}
.form-select { cursor: pointer; appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 14px center;
    padding-right: 36px;
}
.form-select option { background: var(--bg-card); color: var(--text-primary); }
.form-input:focus, .form-textarea:focus, .form-select:focus { outline: none; border-color: var(--accent); box-shadow: var(--shadow-glow); }
.form-textarea { resize: vertical; min-height: 100px; }
.form-textarea.urls-input { min-height: 180px; font-family: 'JetBrains Mono', monospace; font-size: 0.82rem; line-height: 1.7; }
.form-input.error, .form-textarea.error { border-color: var(--accent3); }
.form-input.valid, .form-textarea.valid { border-color: var(--accent4); }

/* URL Counter */
.url-counter {
    display: flex; align-items: center; justify-content: space-between;
    margin-top: 8px; font-size: 0.75rem; color: var(--text-muted);
}
.url-counter .count-num { font-family: 'JetBrains Mono', monospace; color: var(--accent); font-weight: 600; }
.url-counter .count-warn { color: var(--accent5); }
.url-counter .count-err { color: var(--accent3); }

/* Validation Messages */
.form-error { color: var(--accent3); font-size: 0.75rem; margin-top: 6px; display: flex; align-items: center; gap: 4px; }
.form-error::before { content: '⚠'; }
.form-success { color: var(--accent4); font-size: 0.75rem; margin-top: 6px; display: flex; align-items: center; gap: 4px; }
.form-success::before { content: '✓'; }

/* Submit Mode Tabs */
.submit-tabs {
    display: flex; gap: 4px; margin-bottom: 24px;
    background: var(--bg-input); border-radius: var(--radius-sm); padding: 4px;
    border: 1px solid var(--border);
}
.submit-tab {
    flex: 1; padding: 10px 16px; border-radius: 6px;
    background: none; border: none;
    color: var(--text-muted); font-size: 0.85rem; font-weight: 500;
    cursor: pointer; transition: var(--transition); font-family: inherit;
    text-align: center;
}
.submit-tab:hover { color: var(--text-primary); }
.submit-tab.active { background: rgba(0,240,255,0.1); color: var(--accent); font-weight: 600; }

/* Rules Info Panel */
.rules-panel {
    background: var(--bg-input); border: 1px solid var(--border);
    border-radius: var(--radius-sm); padding: 16px 20px;
    margin-bottom: 24px;
}
.rules-panel .rules-title {
    font-size: 0.8rem; font-weight: 700; color: var(--accent5);
    margin-bottom: 10px; display: flex; align-items: center; gap: 6px;
    text-transform: uppercase; letter-spacing: 0.5px;
}
.rules-panel ul { list-style: none; }
.rules-panel li {
    font-size: 0.78rem; color: var(--text-muted); padding: 3px 0;
    display: flex; align-items: flex-start; gap: 8px; line-height: 1.5;
}
.rules-panel li::before { content: '›'; color: var(--accent); font-weight: 700; flex-shrink: 0; margin-top: 1px; }

/* Preview URLs List */
.url-preview { margin-top: 12px; max-height: 200px; overflow-y: auto; }
.url-preview-item {
    display: flex; align-items: center; gap: 8px;
    padding: 6px 12px; font-size: 0.78rem;
    font-family: 'JetBrains Mono', monospace;
    border-bottom: 1px solid rgba(30,45,69,0.3);
}
.url-preview-item:last-child { border-bottom: none; }
.url-preview-item .url-status { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.url-preview-item .url-status.ok { background: var(--accent4); }
.url-preview-item .url-status.dup { background: var(--accent5); }
.url-preview-item .url-status.bad { background: var(--accent3); }
.url-preview-item .url-text { flex: 1; color: var(--text-secondary); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.url-preview-item .url-tag { font-size: 0.65rem; padding: 2px 6px; border-radius: 3px; font-weight: 600; }
.url-preview-item .tag-ok { background: rgba(16,185,129,0.15); color: var(--accent4); }
.url-preview-item .tag-dup { background: rgba(245,158,11,0.15); color: var(--accent5); }
.url-preview-item .tag-bad { background: rgba(244,63,94,0.15); color: var(--accent3); }

/* Submit Progress */
.submit-progress { margin-top: 16px; display: none; }
.submit-progress.active { display: block; }
.progress-bar { height: 4px; background: var(--bg-input); border-radius: 2px; overflow: hidden; margin-bottom: 8px; }
.progress-fill { height: 100%; background: var(--gradient1); border-radius: 2px; transition: width 0.3s ease; width: 0%; }
.progress-text { font-size: 0.75rem; color: var(--text-muted); text-align: center; }

.form-btn {
    width: 100%; padding: 14px;
    background: var(--gradient1); border: none; border-radius: var(--radius-sm);
    color: var(--bg-primary); font-family: inherit; font-size: 0.95rem; font-weight: 700;
    cursor: pointer; transition: var(--transition); position: relative;
}
.form-btn:hover { opacity: 0.9; transform: translateY(-1px); }
.form-btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }
.form-btn .btn-count { font-size: 0.8rem; font-weight: 400; opacity: 0.8; }

/* ===== SEARCH PAGE ===== */
.search-box {
    display: flex; gap: 12px; margin-bottom: 28px;
}
.search-box input {
    flex: 1; padding: 14px 20px;
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius-sm); color: var(--text-primary);
    font-family: inherit; font-size: 1rem;
    transition: var(--transition);
}
.search-box input:focus { outline: none; border-color: var(--accent); box-shadow: var(--shadow-glow); }
.search-box button {
    padding: 14px 28px;
    background: var(--gradient1); border: none; border-radius: var(--radius-sm);
    color: var(--bg-primary); font-weight: 700; cursor: pointer;
    font-family: inherit; font-size: 0.95rem; transition: var(--transition);
}

/* ===== FOOTER ===== */
.footer {
    text-align: center; padding: 32px 24px;
    border-top: 1px solid var(--border); margin-top: 48px;
    color: var(--text-muted); font-size: 0.8rem;
}
.footer a { color: var(--accent); }

/* ===== MIRROR PAGE ===== */
.mirror-page { max-width: 1440px; margin: 0 auto; }

.mirror-topbar {
    display: flex; align-items: center; justify-content: space-between;
    padding: 12px 20px; margin-bottom: 20px;
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius);
}
.mirror-back {
    color: var(--text-muted); font-size: 0.85rem; font-weight: 500;
    display: flex; align-items: center; gap: 6px;
}
.mirror-back:hover { color: var(--accent); }
.mirror-topbar-title {
    font-weight: 700; font-size: 0.95rem;
    font-family: 'JetBrains Mono', monospace; color: var(--text-secondary);
}
.mirror-topbar-actions { display: flex; gap: 8px; }
.mirror-action-btn {
    padding: 6px 14px; border-radius: var(--radius-xs);
    background: var(--bg-input); border: 1px solid var(--border);
    color: var(--text-secondary); font-size: 0.8rem; font-weight: 500;
    cursor: pointer; transition: var(--transition); font-family: inherit;
    text-decoration: none; display: flex; align-items: center; gap: 4px;
}
.mirror-action-btn:hover { border-color: var(--accent); color: var(--accent); }

.mirror-grid {
    display: grid; grid-template-columns: 380px 1fr;
    gap: 20px; min-height: 600px;
}

/* Left info panel */
.mirror-info-panel {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius); overflow: hidden;
}
.mirror-info-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 20px; border-bottom: 1px solid var(--border);
}
.mirror-info-title { font-size: 1rem; font-weight: 700; margin: 0; }
.mirror-status {
    padding: 4px 10px; border-radius: var(--radius-xs);
    font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px;
}
.mirror-status.archived { background: rgba(16,185,129,0.15); color: var(--accent4); }
.mirror-status.special { background: rgba(245,158,11,0.15); color: var(--accent5); }
.mirror-status.onhold { background: rgba(244,63,94,0.15); color: var(--accent3); }

.mirror-meta-grid { padding: 8px 0; }
.mirror-meta-item {
    padding: 12px 20px; border-bottom: 1px solid rgba(30,45,69,0.3);
}
.mirror-meta-item:last-child { border-bottom: none; }
.mirror-meta-label {
    font-size: 0.65rem; font-weight: 600; color: var(--text-muted);
    text-transform: uppercase; letter-spacing: 1px; margin-bottom: 4px;
}
.mirror-meta-value {
    font-size: 0.9rem; color: var(--text-primary);
    display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
}
.mirror-meta-sub { font-size: 0.72rem; color: var(--text-muted); }
.mirror-mono { font-family: 'JetBrains Mono', monospace; font-size: 0.85rem; }
.mirror-url-link {
    color: var(--text-primary); font-family: 'JetBrains Mono', monospace;
    font-size: 0.82rem; word-break: break-all;
}
.mirror-url-link:hover { color: var(--accent); }
.mirror-attacker-link { color: var(--accent); font-weight: 600; }
.mirror-team-link { color: var(--accent2); font-weight: 600; }

/* Tags */
.mirror-tags-row { display: flex; gap: 6px; flex-wrap: wrap; }
.mirror-tag {
    padding: 3px 10px; border-radius: var(--radius-xs);
    font-size: 0.7rem; font-weight: 600;
}
.tag-home { background: rgba(0,240,255,0.12); color: var(--accent); }
.tag-mass { background: rgba(124,58,237,0.12); color: var(--accent2); }
.tag-redeface { background: rgba(244,63,94,0.12); color: var(--accent3); }
.tag-special { background: rgba(245,158,11,0.12); color: var(--accent5); }

/* External links */
.mirror-links {
    border-top: 1px solid var(--border); padding: 16px 20px;
}
.mirror-links-title {
    font-size: 0.7rem; font-weight: 600; color: var(--text-muted);
    text-transform: uppercase; letter-spacing: 1px; margin-bottom: 10px;
}
.mirror-ext-link {
    display: flex; align-items: center; gap: 10px;
    padding: 10px 12px; margin-bottom: 4px; border-radius: var(--radius-sm);
    color: var(--text-secondary); font-size: 0.85rem; font-weight: 500;
    transition: var(--transition);
}
.mirror-ext-link:hover { background: var(--bg-card-hover); color: var(--text-primary); }
.mirror-ext-icon { font-size: 1rem; flex-shrink: 0; }
.mirror-ext-arrow { margin-left: auto; color: var(--text-muted); font-size: 0.8rem; }

/* Right preview panel */
.mirror-preview-panel {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius); overflow: hidden;
    display: flex; flex-direction: column;
}
.mirror-preview-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 14px 20px; border-bottom: 1px solid var(--border);
    font-size: 0.85rem; font-weight: 600;
}
.mirror-open-btn {
    padding: 5px 12px; border-radius: var(--radius-xs);
    background: rgba(0,240,255,0.1); color: var(--accent);
    font-size: 0.75rem; font-weight: 600; border: 1px solid rgba(0,240,255,0.2);
    transition: var(--transition); text-decoration: none;
}
.mirror-open-btn:hover { background: rgba(0,240,255,0.2); }

.mirror-iframe-wrap {
    flex: 1; position: relative; min-height: 500px;
    background: #fff;
}
.mirror-iframe {
    width: 100%; height: 100%; border: none;
    position: absolute; top: 0; left: 0; right: 0; bottom: 0;
}
.mirror-iframe-overlay {
    position: absolute; top: 0; left: 0; right: 0; bottom: 0;
    background: var(--bg-primary);
    display: flex; align-items: center; justify-content: center;
    transition: opacity 0.4s ease;
}
.mirror-iframe-wrap.loaded .mirror-iframe-overlay { opacity: 0; pointer-events: none; }
.mirror-iframe-loading { color: var(--text-muted); display: flex; align-items: center; gap: 12px; font-size: 0.9rem; }

.mirror-iframe-error {
    position: absolute; top: 0; left: 0; right: 0; bottom: 0;
    background: var(--bg-primary);
    display: none; align-items: center; justify-content: center;
    flex-direction: column; color: var(--text-muted); font-size: 1rem;
}
.mirror-iframe-wrap.error .mirror-iframe-error { display: flex; }
.mirror-iframe-wrap.error .mirror-iframe-overlay { display: none; }

/* Mirror page responsive */
@media (max-width: 900px) {
    .mirror-grid { grid-template-columns: 1fr; }
    .mirror-iframe-wrap { min-height: 400px; }
    .mirror-topbar { flex-wrap: wrap; gap: 10px; }
    .mirror-topbar-actions { width: 100%; justify-content: flex-end; }
}

/* ===== PAGE TABS ===== */
.page-tabs { display: flex; gap: 4px; margin-bottom: 24px; flex-wrap: wrap; }
.tab-btn {
    padding: 10px 20px; border-radius: var(--radius-sm);
    background: var(--bg-card); border: 1px solid var(--border);
    color: var(--text-secondary); font-size: 0.85rem; font-weight: 500;
    cursor: pointer; transition: var(--transition); font-family: inherit;
}
.tab-btn:hover { border-color: var(--accent); color: var(--accent); }
.tab-btn.active { background: rgba(0,240,255,0.1); border-color: var(--accent); color: var(--accent); font-weight: 600; }

/* ===== LOADING ===== */
.loading {
    display: flex; align-items: center; justify-content: center;
    padding: 48px; color: var(--text-muted);
}
.spinner {
    width: 32px; height: 32px; border: 3px solid var(--border);
    border-top-color: var(--accent); border-radius: 50%;
    animation: spin 0.8s linear infinite; margin-right: 12px;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ===== TOAST ===== */
.toast {
    position: fixed; bottom: 24px; right: 24px; z-index: 9999;
    padding: 14px 24px; border-radius: var(--radius-sm);
    background: var(--bg-card); border: 1px solid var(--accent4);
    color: var(--accent4); font-size: 0.9rem; font-weight: 500;
    box-shadow: var(--shadow); transform: translateY(100px); opacity: 0;
    transition: var(--transition);
}
.toast.show { transform: translateY(0); opacity: 1; }
.toast.error { border-color: var(--accent3); color: var(--accent3); }

/* ===== EMPTY STATE ===== */
.empty-state {
    text-align: center; padding: 64px 24px; color: var(--text-muted);
}
.empty-state svg { width: 48px; height: 48px; margin-bottom: 16px; opacity: 0.3; }
.empty-state p { font-size: 0.9rem; }

/* ===== SWITCH TOGGLE (Admin) ===== */
.switch {
  position: relative;
  display: inline-block;
  width: 36px;
  height: 20px;
}
.switch input { opacity: 0; width: 0; height: 0; }
.slider {
  position: absolute; cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: var(--bg-input);
  transition: .4s; border-radius: 20px;
  border: 1px solid var(--border);
}
.slider:before {
  position: absolute; content: "";
  height: 14px; width: 14px;
  left: 2px; bottom: 2px;
  background-color: var(--text-muted);
  transition: .4s; border-radius: 50%;
}
input:checked + .slider { background-color: rgba(16,185,129,0.2); border-color: var(--accent4); }
input:checked + .slider:before { transform: translateX(16px); background-color: var(--accent4); }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .grid-2 { grid-template-columns: 1fr; }
    .nav-search input { width: 120px; }
    .nav-links a { font-size: 0.75rem; padding: 12px 4px; }
}

@media (max-width: 900px) {
    .navbar { padding: 0; height: auto; border-bottom: none; }
    .nav-top { height: 64px; padding: 0 16px; background: #0a0e17; border-bottom: 1px solid var(--border); }
    .nav-logo { height: 32px; }
    .nav-bottom { display: none; }
    
    .nav-center {
        display: none;
        position: fixed; top: 0; left: 0; right: 0; bottom: 0;
        background: #0a0e17; /* Solid Dark Background for Mobile Menu */
        z-index: 1100;
        padding: 80px 24px 24px;
        flex-direction: column;
        align-items: flex-start;
        overflow-y: auto;
        border-top: none;
    }
    .nav-center.open { display: flex; }

    .nav-links-container {
        width: 100%;
        max-width: none;
        background: transparent; /* Reset Red Background on Mobile */
        display: block;
        border-radius: 0;
        overflow: visible;
    }

    .nav-mobile-search { display: block; width: 100%; margin-bottom: 24px; }
    
    .nav-links { 
        flex-direction: column; 
        gap: 0; 
        width: 100%; 
        align-items: flex-start;
    }
    .nav-links li { width: 100%; text-align: left; }
    
    .nav-links a { 
        padding: 16px 0; 
        font-size: 1.1rem; 
        width: 100%; 
        border-bottom: 1px solid rgba(255,255,255,0.05);
        color: #ffffff !important;
        background: transparent !important;
        border-right: none;
        text-transform: none;
        font-weight: 500;
        text-align: left;
    }
    .nav-links a:hover { background: transparent; color: var(--accent); }
    
    .nav-top-right .nav-search.desktop-only { display: none; }
    .nav-hamburger { display: block; z-index: 1200; position: relative; }
    
    .main-wrapper { padding: 16px; margin-top: 80px; }
}
    .stats-bar { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .stat-card { padding: 14px; }
    .stat-card .stat-value { font-size: 1.35rem; }
    table { font-size: 0.75rem; }
    thead th, tbody td { padding: 10px 12px; }
    .td-url { max-width: 120px; }
    .td-attacker, .td-team { max-width: 100px; }
    .section-header { padding: 12px 12px 8px !important; }
}

@media (max-width: 480px) {
    .stats-bar { grid-template-columns: 1fr 1fr; }
    .nav-logo { height: 26px; }
    .stat-card .stat-value { font-size: 1.1rem; }
    .main-wrapper { padding: 12px; }
}
