@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

/* ============================================================
   IndoRoleplay Website - Consolidated CSS
   All styles in one organized file
   ============================================================ */

/* ── CSS Variables ── */
:root {
    --bg:           #04060e;
    --bg-card:      rgba(6, 8, 22, 0.97);
    --bg-card2:     rgba(14, 18, 36, 0.96);
    --accent:       #14d0ff;
    --accent2:      #38bdf8;
    --accent3:      #0ea5e9;
    --border:       rgba(20, 208, 255, 0.18);
    --border-hover: rgba(20, 208, 255, 0.4);
    --text:         rgba(255, 255, 255, 0.88);
    --text-muted:   rgba(255, 255, 255, 0.4);
    --text-accent:  rgba(20, 208, 255, 0.6);
}

/* ── Base Styles ── */
* { margin: 0; padding: 0; box-sizing: border-box; }

html { overflow-x: hidden; }

body {
    font-family: 'Inter', 'Segoe UI', Arial, sans-serif;
    background: var(--bg);
    color: var(--text);
    overflow-x: hidden;
    line-height: 1.6;
    width: 100%;
    max-width: 100vw;
}

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: rgba(20,208,255,0.05); }
::-webkit-scrollbar-thumb { background: rgba(20,208,255,0.3); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(20,208,255,0.5); }

/* ── App Container ── */
.app { 
    position: relative; 
    min-height: 100vh; 
    width: 100%; 
    max-width: 100vw; 
    overflow-x: hidden;
    isolation: auto;
}

/* Footer selalu di bawah — gunakan padding-bottom pada body */
body {
    padding-bottom: 0;
}

/* ── Background & Effects ── */
.parallax-bg {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: 0;
    background: linear-gradient(135deg, #04060e 0%, #0a0e1a 50%, #04060e 100%);
    transition: transform 0.1s ease-out;
    pointer-events: none;
}

.gradient-orb { 
    position: absolute; border-radius: 50%; filter: blur(120px); 
    opacity: 0.15; animation: float 20s ease-in-out infinite; 
}
.orb-1 { 
    width: 600px; height: 600px; 
    background: radial-gradient(circle, #14d0ff 0%, transparent 70%); 
    top: -15%; left: -10%; 
}
.orb-2 { 
    width: 400px; height: 400px; 
    background: radial-gradient(circle, #38bdf8 0%, transparent 70%); 
    bottom: -10%; right: -10%; animation-delay: 7s; 
}
.orb-3 { 
    width: 300px; height: 300px; 
    background: radial-gradient(circle, #0ea5e9 0%, transparent 70%); 
    top: 50%; left: 50%; animation-delay: 14s; 
}

@keyframes float { 
    0%,100%{transform:translate(0,0) scale(1)} 
    33%{transform:translate(40px,-40px) scale(1.05)} 
    66%{transform:translate(-40px,40px) scale(0.95)} 
}

/* ── Particles ── */
.particles { 
    position: fixed; top: 0; left: 0; width: 100%; height: 100%; 
    z-index: 1; pointer-events: none; 
}
.particle {
    position: absolute; width: 2px; height: 2px;
    background: rgba(20, 208, 255, 0.3); border-radius: 50%;
    animation: particle-float linear infinite;
}
@keyframes particle-float {
    0% { transform: translateY(100vh) rotate(0deg); opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { transform: translateY(-100px) rotate(360deg); opacity: 0; }
}

/* ── Navbar (desktop) — dikelola navbar.js, ini fallback ── */
.navbar {
    position: fixed; top: 0; left: 0; right: 0; z-index: 200;
    background: rgba(4, 6, 14, 0.95); backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(20, 208, 255, 0.1);
}

.nav-container {
    max-width: 1200px; margin: 0 auto; padding: 0 24px;
    display: flex; align-items: center; justify-content: space-between;
    height: 70px;
}

.nav-logo img { height: 40px; }

.nav-links {
    display: flex; align-items: center; gap: 32px;
}

.nav-link {
    color: var(--text-muted); text-decoration: none;
    font-size: 0.9rem; font-weight: 500;
    transition: color 0.2s ease;
    position: relative;
}

.nav-link:hover { color: var(--accent); }
.nav-link.active { color: var(--accent); }

.bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    height: calc(60px + env(safe-area-inset-bottom, 0px));
    padding: 0 4px env(safe-area-inset-bottom, 0px);
    align-items: stretch;
    justify-content: space-around;
    background: rgba(4,6,14,0.97);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-top: 1px solid rgba(20,208,255,0.12);
}
.btab-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    min-width: 0;
    padding: 6px 4px 4px;
    border: none;
    background: none;
    color: rgba(255,255,255,0.35);
    text-decoration: none;
    cursor: pointer;
    position: relative;
    transition: color 0.2s;
    -webkit-tap-highlight-color: transparent;
}
.btab-item:active { transform: scale(0.92); }
.btab-item.active { color: #14d0ff; }
.btab-icon {
    position: relative;
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.btab-icon svg { width: 22px; height: 22px; }
.btab-item.active .btab-icon::before {
    content: '';
    position: absolute;
    inset: -6px;
    background: rgba(20,208,255,0.12);
    border-radius: 50%;
}
.btab-label {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 0.6rem;
    font-weight: 600;
    letter-spacing: 0.2px;
}
.btab-pip {
    position: absolute;
    top: 4px;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: #14d0ff;
    box-shadow: 0 0 6px #14d0ff;
}
.more-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    opacity: 0;
    transition: opacity 0.25s ease;
    pointer-events: none;
}
.more-overlay.show {
    opacity: 1;
    pointer-events: auto;
}
.more-sheet {
    display: none;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10001;
    padding-bottom: calc(env(safe-area-inset-bottom, 0px) + 70px);
    background: linear-gradient(160deg, #080c1a 0%, #0b1020 100%);
    border-top: 1px solid rgba(20,208,255,0.18);
    border-radius: 20px 20px 0 0;
    transform: translateY(100%);
    transition: transform 0.35s cubic-bezier(0.4,0,0.2,1);
}
.more-sheet.open { transform: translateY(0); }
.more-handle {
    width: 36px;
    height: 4px;
    margin: 12px auto 0;
    border-radius: 2px;
    background: rgba(255,255,255,0.15);
}
.more-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px 10px;
}
.more-title {
    color: rgba(255,255,255,0.7);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}
.more-close {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.1);
    background: rgba(255,255,255,0.06);
    color: rgba(255,255,255,0.4);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}
.more-close svg {
    width: 14px;
    height: 14px;
}
.more-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    padding: 4px 12px 20px;
}
.more-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border-radius: 14px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.06);
    color: rgba(255,255,255,0.65);
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 500;
    transition: all 0.18s ease;
}
.more-item:hover {
    background: rgba(20,208,255,0.08);
    border-color: rgba(20,208,255,0.15);
    color: #fff;
}
.more-item.active {
    background: rgba(20,208,255,0.12);
    border-color: rgba(20,208,255,0.25);
    color: #14d0ff;
}
.more-emoji {
    font-size: 1.3em;
    flex-shrink: 0;
}
.more-label {
    flex: 1;
    font-size: 0.82rem;
}
.more-arrow { display: none; }

@media (max-width: 768px) {
    .navbar .nav-links { display: none; }
    .bottom-nav { display: flex; }
    .more-overlay { display: block; }
    .more-sheet { display: block; }
    body { padding-bottom: calc(60px + env(safe-area-inset-bottom, 0px)); }
}
@media (min-width: 769px) {
    .bottom-nav,
    .more-overlay,
    .more-sheet { display: none !important; }
    body { padding-bottom: 0; }
}

/* ── Page Layout ── */
.page-wrap {
    position: relative; z-index: 2;
    padding: 100px 24px 60px;
    max-width: 1100px; margin: 0 auto;
    width: 100%;
}
.page-wrap-sm { max-width: 900px; }
.page-wrap-md { max-width: 1000px; }

/* ── Page Header ── */
.page-header { text-align: center; margin-bottom: 40px; }
.page-header h1 {
    font-size: 2.2em; font-weight: 800; color: #fff;
    text-shadow: 0 0 24px rgba(20,208,255,0.3);
    margin-bottom: 10px;
}
.page-header p { font-size: 0.9em; color: var(--text-muted); }

.page-badge {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 6px 16px; margin-bottom: 16px;
    background: rgba(20,208,255,0.1);
    border: 1px solid rgba(20,208,255,0.2);
    border-radius: 20px;
    font-size: 0.78em; font-weight: 600; color: var(--accent);
}

/* ── Cards ── */
.ir-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px; padding: 20px 22px;
    position: relative; overflow: hidden;
    transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}

.ir-card::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent), var(--accent2), transparent);
    background-size: 200%; animation: shimmer 4s linear infinite;
    opacity: 0; transition: opacity 0.2s;
}

.ir-card:hover { 
    border-color: var(--border-hover); 
    transform: translateY(-3px); 
    box-shadow: 0 8px 28px rgba(20,208,255,0.08); 
}
.ir-card:hover::before { opacity: 1; }

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

/* ── Buttons ── */
.btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 12px 24px; border-radius: 12px;
    font-size: 0.9rem; font-weight: 600;
    text-decoration: none; border: none; cursor: pointer;
    transition: all 0.2s ease;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent), var(--accent3));
    color: var(--bg);
}
.btn-primary:hover { 
    transform: translateY(-2px); 
    box-shadow: 0 8px 25px rgba(20,208,255,0.3); 
}

.btn-secondary {
    background: var(--bg-card);
    border: 1px solid var(--border);
    color: var(--text);
}
.btn-secondary:hover { 
    border-color: var(--border-hover); 
    background: var(--bg-card2); 
}

/* ── Forms ── */
.form-group { margin-bottom: 1.5rem; }

.form-label {
    display: block; color: var(--text); font-size: 0.9rem;
    font-weight: 500; margin-bottom: 0.5rem;
}

.form-input {
    width: 100%; padding: 0.875rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    border-radius: 12px; color: white; font-size: 0.95rem;
    transition: all 0.3s ease;
}

.form-input:focus {
    outline: none; border-color: var(--accent);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 0 3px rgba(20, 208, 255, 0.1);
}

.form-input::placeholder { color: rgba(255, 255, 255, 0.3); }
.form-input.error { border-color: #ef4444; }

.form-error {
    color: #ef4444; font-size: 0.85rem; margin-top: 0.5rem;
    display: flex; align-items: center; gap: 0.25rem;
}

/* ── Tables ── */
.ir-table-wrap {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px; overflow: hidden;
    width: 100%;
    overflow-x: auto;
}

.ir-table { 
    width: 100%; 
    border-collapse: collapse; 
    min-width: 600px;
}

.ir-table th {
    font-size: 0.62em; font-weight: 700; letter-spacing: 1px;
    text-transform: uppercase; color: var(--text-accent);
    padding: 12px 16px; text-align: left;
    background: rgba(20,208,255,0.05);
    border-bottom: 1px solid var(--border);
}

.ir-table td {
    font-size: 0.82em; padding: 11px 16px;
    border-bottom: 1px solid rgba(255,255,255,0.04);
    color: var(--text); vertical-align: middle;
}

.ir-table tr:last-child td { border-bottom: none; }
.ir-table tr:hover td { background: rgba(20,208,255,0.03); }

/* ── Utilities ── */
.text-center { text-align: center; }
.text-muted { color: var(--text-muted); }
.text-accent { color: var(--accent); }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.overflow-hidden { overflow: hidden; }
.overflow-x-hidden { overflow-x: hidden; }
.w-full { width: 100%; }
.max-w-full { max-width: 100%; }

.skeleton {
    background: linear-gradient(90deg, rgba(20,208,255,0.05) 25%, rgba(20,208,255,0.1) 50%, rgba(20,208,255,0.05) 75%);
    background-size: 200% 100%; animation: skeleton-load 1.5s infinite;
    border-radius: 6px; display: inline-block;
}
@keyframes skeleton-load { 
    0%{background-position:200% 0} 
    100%{background-position:-200% 0} 
}
.skeleton-list { pointer-events:none; }
.skeleton-card {
    min-height: 154px;
    padding: 20px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.skeleton-ad { min-height: 118px; }
.skeleton-icon { width: 48px; height: 48px; border-radius: 14px; }
.skeleton-line { width: 100%; height: 12px; }
.skeleton-line-sm { width: 46%; }
.skeleton-line-xs { width: 68%; }
.lazy-actions,
.pager-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 22px;
    flex-wrap: wrap;
    color: var(--text-muted);
    font-size: 0.78em;
}
.lazy-load-btn,
.pager-btn,
.pager-number,
.filter-reset {
    padding: 10px 16px;
    border-radius: 12px;
    border: 1px solid rgba(20,208,255,0.2);
    background: rgba(20,208,255,0.08);
    color: rgba(20,208,255,0.9);
    font-size: 0.82em;
    font-weight: 700;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s, transform 0.15s;
}
.lazy-load-btn:hover,
.pager-btn:hover,
.pager-number:hover,
.filter-reset:hover {
    border-color: rgba(20,208,255,0.42);
    background: rgba(20,208,255,0.14);
    transform: translateY(-1px);
}
.lazy-load-btn:disabled,
.pager-btn:disabled,
.pager-number:disabled,
.filter-reset:disabled {
    opacity: 0.45;
    cursor: not-allowed;
    transform: none;
}
.pager-pages {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    justify-content: center;
}
.pager-number {
    min-width: 38px;
    padding-inline: 10px;
}
.pager-number.active {
    background: linear-gradient(135deg, var(--accent), var(--accent3));
    color: #04060e;
    border-color: rgba(20,208,255,0.55);
}
.fac-card,
.ad-card,
.veh-card {
    content-visibility: auto;
    contain-intrinsic-size: 180px;
}

/* ── Stats Page Styles ── */
.stats-page {
    position: relative; z-index: 2;
    padding: 100px 24px 60px;
    max-width: 1000px; margin: 0 auto;
    width: 100%;
}

.badge {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 6px 16px; margin-bottom: 16px;
    background: rgba(20,208,255,0.1);
    border: 1px solid rgba(20,208,255,0.2);
    border-radius: 20px;
    font-size: 0.78em; font-weight: 600; color: var(--accent);
}

.badge-dot {
    width: 6px; height: 6px; border-radius: 50%;
    background: var(--accent); animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

.refresh-btn {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 8px 18px; margin-right: 12px;
    background: rgba(20,208,255,0.08);
    border: 1px solid rgba(20,208,255,0.2);
    border-radius: 10px; color: rgba(20,208,255,0.7);
    font-size: 0.78em; font-weight: 600; cursor: pointer;
    transition: all 0.2s;
}

.refresh-btn:hover {
    background: rgba(20,208,255,0.15);
    color: var(--accent);
}

.refresh-btn.spinning svg {
    animation: spin 1s linear infinite;
}

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

.last-updated {
    font-size: 0.68em; color: rgba(255,255,255,0.2);
}

.section-title {
    font-size: 0.8em; font-weight: 700; letter-spacing: 1px;
    text-transform: uppercase; color: var(--text-accent);
    margin: 32px 0 16px 0;
}

.main-stats {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px; margin-bottom: 24px;
}

.stat-box {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: 14px; padding: 18px; text-align: center;
    transition: all 0.2s;
}

.stat-box:hover {
    border-color: var(--border-hover);
    transform: translateY(-2px);
}

.stat-box .icon {
    font-size: 1.8em; display: block; margin-bottom: 8px;
}

.stat-box .value {
    font-size: 1.6em; font-weight: 800; color: var(--accent);
    display: block; margin-bottom: 4px;
}

.stat-box .label {
    font-size: 0.75em; color: var(--text-muted);
    text-transform: uppercase; letter-spacing: 0.5px;
}

.highlights {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px; margin-bottom: 24px;
}

.highlight-card {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: 14px; padding: 18px;
    transition: all 0.2s;
}

.highlight-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-2px);
}

.highlight-card .hc-title {
    font-size: 0.75em; font-weight: 700; color: var(--text-accent);
    text-transform: uppercase; letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.highlight-card .hc-name {
    font-size: 1.1em; font-weight: 600; color: var(--text);
    margin-bottom: 4px;
}

.highlight-card .hc-value {
    font-size: 0.85em; color: var(--accent);
    font-weight: 600;
}

.server-info {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
}

.info-card {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: 14px; padding: 18px;
    display: flex; align-items: center; gap: 12px;
    transition: all 0.2s;
}

.info-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-2px);
}

.info-card .ic-icon {
    font-size: 1.5em;
}

.info-card .ic-label {
    font-size: 0.75em; color: var(--text-muted);
    text-transform: uppercase; letter-spacing: 0.5px;
}

.info-card .ic-value {
    font-size: 1em; font-weight: 600; color: var(--text);
}

/* ── Leaderboard Page Styles ── */
.lb-page {
    position: relative; z-index: 2;
    padding: 100px 24px 60px;
    max-width: 1200px; margin: 0 auto;
    width: 100%;
}

.tabs {
    display: flex; gap: 6px;
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: 14px; padding: 6px; margin-bottom: 24px;
}

.tab {
    flex: 1; padding: 10px 8px; border-radius: 10px;
    border: none; background: transparent;
    color: var(--text-muted); font-size: 0.82em;
    font-weight: 600; cursor: pointer;
    transition: all 0.2s;
    display: flex; align-items: center; justify-content: center; gap: 6px;
}

.tab:hover {
    color: rgba(20,208,255,0.8);
    background: rgba(20,208,255,0.06);
}

.tab.active {
    background: rgba(20,208,255,0.12);
    border: 1px solid rgba(20,208,255,0.25);
    color: var(--accent);
}

.lb-card {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: 18px; overflow: hidden; position: relative;
}

.lb-card::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
    background: linear-gradient(90deg, transparent, var(--accent), var(--accent2), transparent);
    background-size: 200%; animation: shimmer 4s linear infinite;
}

.lb-header {
    display: grid; grid-template-columns: 52px 1fr 120px;
    padding: 10px 20px;
    background: rgba(20,208,255,0.06);
    border-bottom: 1px solid rgba(20,208,255,0.1);
}

.lb-header span {
    font-size: 0.62em; font-weight: 700; letter-spacing: 1.2px;
    text-transform: uppercase; color: rgba(20,208,255,0.45);
}

.lb-header .h-val {
    text-align: right;
}

.lb-row {
    display: grid; grid-template-columns: 52px 1fr 120px;
    align-items: center; padding: 13px 20px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    transition: background 0.15s;
}

.lb-row:last-child {
    border-bottom: none;
}

.lb-row:hover {
    background: rgba(20,208,255,0.04);
}

.r-rank {
    text-align: center; font-size: 1.2em; line-height: 1;
}

.rank-num {
    font-size: 0.9em; font-weight: 700;
    color: rgba(255,255,255,0.3);
}

.r-info {
    min-width: 0;
}

.r-name {
    font-size: 0.92em; font-weight: 600;
    color: var(--text); white-space: nowrap;
    overflow: hidden; text-overflow: ellipsis;
    max-width: 100%;
}

.r-sub {
    font-size: 0.68em; color: var(--text-muted);
    margin-top: 2px; white-space: nowrap;
    overflow: hidden; text-overflow: ellipsis;
    max-width: 100%;
}

.r-val {
    text-align: right; font-size: 0.9em;
    font-weight: 700; color: var(--accent);
}

.lb-empty {
    padding: 40px 20px; text-align: center;
    color: rgba(255,255,255,0.25); font-size: 0.9em;
}

/* Tab-specific value colors */
.tab-richest .r-val { color: #FFD700; }
.tab-hours .r-val { color: var(--accent); }
.tab-trucker .r-val { color: #5de85d; }
.tab-deaths .r-val { color: #ff6b6b; }

/* ── Leaderboards Grid Layout ── */
.leaderboards-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
    margin-top: 24px;
    width: 100%;
    max-width: 100%;
}

.lb-section {
    display: flex;
    flex-direction: column;
}

.lb-section-title {
    font-size: 1.1em;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 16px;
    padding: 0 4px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.lb-section .lb-card {
    flex: 1;
    min-height: 320px;
}

/* ── Homepage Styles ── */
.hero {
    position: relative; z-index: 2;
    min-height: 100vh; display: flex; flex-direction: column;
    justify-content: center; align-items: center;
    padding: 120px 24px 80px; text-align: center;
}

.hero-content {
    max-width: 800px; margin-bottom: 60px;
}

.hero-badge {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 8px 20px; margin-bottom: 24px;
    background: rgba(20,208,255,0.1);
    border: 1px solid rgba(20,208,255,0.2);
    border-radius: 25px;
    font-size: 0.85em; font-weight: 600; color: var(--accent);
}

.hero-title {
    font-size: 3.5em; font-weight: 900; line-height: 1.1;
    margin-bottom: 24px; color: #fff;
}

.title-line {
    display: block; font-size: 0.6em; color: var(--text-muted);
    margin-bottom: 16px;
}

.title-logo-wrapper {
    margin: 20px 0;
}

.title-logo {
    height: 80px; filter: drop-shadow(0 0 20px rgba(20,208,255,0.4));
}

.title-subtitle {
    display: block; font-size: 0.5em; color: var(--text-accent);
    margin-top: 16px;
}

.hero-description {
    font-size: 1.1em; color: var(--text-muted); line-height: 1.6;
    margin-bottom: 40px; max-width: 600px; margin-left: auto; margin-right: auto;
}

.countdown-section {
    margin: 40px 0;
}

.countdown-title {
    font-size: 1.2em; font-weight: 700; color: var(--accent);
    margin-bottom: 20px;
}

.countdown-grid {
    display: grid; grid-template-columns: repeat(4, 1fr);
    gap: 16px; max-width: 400px; margin: 0 auto;
}

.countdown-box {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: 12px; padding: 16px 12px;
    transition: all 0.2s;
}

.countdown-box:hover {
    border-color: var(--border-hover);
    transform: translateY(-2px);
}

.countdown-number {
    font-size: 2em; font-weight: 800; color: var(--accent);
    line-height: 1;
}

.countdown-text {
    font-size: 0.75em; color: var(--text-muted);
    text-transform: uppercase; letter-spacing: 0.5px;
    margin-top: 4px;
}

.cta-buttons {
    display: flex; gap: 16px; justify-content: center;
    flex-wrap: wrap; margin-top: 40px;
}

.stats-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 20px; max-width: 600px; margin: 0 auto;
}

.stat-card {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: 12px; padding: 20px 16px; text-align: center;
    transition: all 0.2s;
}

.stat-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-2px);
}

.stat-value {
    font-size: 1.8em; font-weight: 800; color: var(--accent);
    line-height: 1; margin-bottom: 4px;
}

.stat-label {
    font-size: 0.75em; color: var(--text-muted);
    text-transform: uppercase; letter-spacing: 0.5px;
}

/* Features Section */
.features-section {
    position: relative; z-index: 2;
    padding: 80px 24px; max-width: 1200px; margin: 0 auto;
}

.section-header {
    text-align: center; margin-bottom: 60px;
}

.section-title {
    font-size: 2.5em; font-weight: 800; color: #fff;
    margin-bottom: 16px;
}

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

.features-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.feature-card {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: 16px; padding: 28px 24px;
    text-align: center; transition: all 0.2s;
}

.feature-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-4px);
    box-shadow: 0 8px 28px rgba(20,208,255,0.08);
}

.feature-icon {
    font-size: 2.5em; margin-bottom: 16px;
}

.feature-title {
    font-size: 1.2em; font-weight: 700; color: #fff;
    margin-bottom: 12px;
}

.feature-desc {
    font-size: 0.9em; color: var(--text-muted);
    line-height: 1.6;
}

/* Info Section */
.info-section {
    position: relative; z-index: 2;
    padding: 80px 24px; max-width: 900px; margin: 0 auto;
}

.tabs {
    display: flex; gap: 6px; justify-content: center;
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: 14px; padding: 6px; margin-bottom: 32px;
}

.tab {
    flex: 1; padding: 12px 20px; border-radius: 10px;
    border: none; background: transparent;
    color: var(--text-muted); font-size: 0.9em;
    font-weight: 600; cursor: pointer;
    transition: all 0.2s;
}

.tab:hover {
    color: rgba(20,208,255,0.8);
    background: rgba(20,208,255,0.06);
}

.tab.active {
    background: rgba(20,208,255,0.12);
    border: 1px solid rgba(20,208,255,0.25);
    color: var(--accent);
}

.tab-content {
    position: relative;
}

.content-box {
    display: none; background: var(--bg-card);
    border: 1px solid var(--border); border-radius: 16px;
    padding: 32px; animation: fadeIn 0.3s ease;
}

.content-box.active {
    display: block;
}

.content-box h3 {
    font-size: 1.4em; font-weight: 700; color: #fff;
    margin-bottom: 20px;
}

.content-box p {
    color: var(--text-muted); line-height: 1.6;
    margin-bottom: 16px;
}

.content-box ul, .content-box ol {
    color: var(--text-muted); line-height: 1.6;
    padding-left: 20px;
}

.content-box li {
    margin-bottom: 8px;
}

.faq-item {
    margin-bottom: 20px; padding-bottom: 16px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.faq-item:last-child {
    border-bottom: none;
}

.faq-item strong {
    color: var(--accent); display: block;
    margin-bottom: 8px;
}

.note {
    font-style: italic; color: rgba(255,255,255,0.3);
    font-size: 0.85em; margin-top: 16px;
}

/* Footer */
.footer {
    position: relative; z-index: 2;
    background: var(--bg-card2); border-top: 1px solid var(--border);
    padding: 60px 24px 20px;
}

.footer-content {
    max-width: 1200px; margin: 0 auto;
    display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
}

.footer-section h4 {
    font-size: 1.1em; font-weight: 700; color: #fff;
    margin-bottom: 16px;
}

.footer-logo {
    display: flex; align-items: center; gap: 12px;
    margin-bottom: 16px;
}

.footer-logo img {
    height: 32px;
}

.footer-logo span {
    font-size: 1.2em; font-weight: 700; color: #fff;
}

.footer-section p {
    color: var(--text-muted); margin-bottom: 20px;
}

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

.footer-section li {
    margin-bottom: 8px;
}

.footer-section a {
    color: var(--text-muted); text-decoration: none;
    transition: color 0.2s;
}

.footer-section a:hover {
    color: var(--accent);
}

.social-links {
    display: flex; gap: 12px;
}

.social-btn {
    display: flex; align-items: center; justify-content: center;
    width: 40px; height: 40px; border-radius: 10px;
    background: rgba(20,208,255,0.1); border: 1px solid rgba(20,208,255,0.2);
    color: var(--accent); transition: all 0.2s;
}

.social-btn:hover {
    background: rgba(20,208,255,0.2);
    transform: translateY(-2px);
}

.footer-bottom {
    max-width: 1200px; margin: 40px auto 0;
    padding-top: 20px; border-top: 1px solid rgba(255,255,255,0.05);
    display: flex; justify-content: space-between; align-items: center;
    flex-wrap: wrap; gap: 16px;
}

.footer-bottom p {
    color: rgba(255,255,255,0.3); font-size: 0.85em;
    margin: 0;
}

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

/* ── Responsive ── */
@media (max-width: 768px) {
    .nav-links { display: none; } /* Mobile menu needed */
    .page-wrap { padding: 80px 16px 40px; }
    .page-header h1 { font-size: 1.8em; }
    .stats-page { padding: 80px 16px 40px; }
    .lb-page { padding: 80px 16px 40px; max-width: 100%; }
    .main-stats { grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; }
    
    .hero-title { font-size: 2.2em; line-height: 1.2; }
    .hero-description { font-size: 1em; padding: 0 16px; }
    .countdown-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .cta-buttons { flex-direction: column; align-items: center; gap: 12px; }
    .features-grid { grid-template-columns: 1fr; gap: 20px; }
    .tabs { flex-direction: column; }
    .footer-bottom { flex-direction: column; text-align: center; }
    .footer-content { grid-template-columns: 1fr; gap: 24px; }
    
    /* Leaderboards responsive */
    .leaderboards-grid { 
        grid-template-columns: 1fr; 
        gap: 16px; 
    }
    .lb-section .lb-card { 
        min-height: 240px; 
    }
    .lb-header { grid-template-columns: 40px 1fr 80px; padding: 8px 16px; }
    .lb-row { grid-template-columns: 40px 1fr 80px; padding: 10px 16px; }
    .r-name { font-size: 0.85em; }
    .r-sub { font-size: 0.65em; }
    .r-val { font-size: 0.8em; }
    
    /* Stats responsive */
    .highlights { grid-template-columns: 1fr; gap: 12px; }
    .server-info { grid-template-columns: 1fr; gap: 12px; }
    .stat-box { padding: 14px; }
    .stat-box .value { font-size: 1.4em; }
    .stat-box .label { font-size: 0.7em; }
    
    /* Hero section mobile */
    .hero { padding: 100px 16px 60px; }
    .hero-content { margin-bottom: 40px; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
    .stat-card { padding: 16px 12px; }
    .stat-value { font-size: 1.5em; }
    
    /* Features section mobile */
    .features-section { padding: 60px 16px; }
    .feature-card { padding: 24px 20px; }
    .feature-icon { font-size: 2em; }
    
    /* Info section mobile */
    .info-section { padding: 60px 16px; }
    .content-box { padding: 24px; }
    
    /* Footer mobile */
    .footer { padding: 40px 16px 16px; }
}

@media (max-width: 480px) {
    .nav-container { padding: 0 12px; height: 60px; }
    .nav-logo img { height: 32px; }
    .page-wrap { padding: 70px 12px 30px; }
    .stats-page { padding: 70px 12px 30px; }
    .lb-page { padding: 70px 12px 30px; }
    .main-stats { grid-template-columns: 1fr; gap: 10px; }
    .highlights { grid-template-columns: 1fr; }
    .server-info { grid-template-columns: 1fr; }
    
    /* Hero ultra mobile */
    .hero-title { font-size: 1.8em; }
    .title-logo { height: 60px; }
    .hero-description { font-size: 0.9em; }
    .countdown-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
    .countdown-box { padding: 12px 8px; }
    .countdown-number { font-size: 1.5em; }
    .countdown-text { font-size: 0.7em; }
    
    /* Leaderboard ultra mobile */
    .lb-header { grid-template-columns: 35px 1fr 70px; padding: 6px 12px; }
    .lb-row { grid-template-columns: 35px 1fr 70px; padding: 8px 12px; }
    .lb-header span { font-size: 0.55em; }
    .r-name { font-size: 0.8em; }
    .r-sub { font-size: 0.6em; }
    .r-val { font-size: 0.75em; }
    .lb-section-title { font-size: 0.9em; }
    
    /* Stats ultra mobile */
    .stat-box { padding: 12px; }
    .stat-box .icon { font-size: 1.5em; }
    .stat-box .value { font-size: 1.2em; }
    .stat-box .label { font-size: 0.65em; }
    
    /* Buttons mobile */
    .btn { padding: 10px 20px; font-size: 0.85em; }
    .refresh-btn { padding: 6px 14px; font-size: 0.7em; }
    
    /* Cards mobile */
    .ir-card { padding: 16px 18px; }
    .feature-card { padding: 20px 16px; }
    .content-box { padding: 20px; }
    
    /* Footer ultra mobile */
    .footer { padding: 32px 12px 12px; }
    .footer-logo { gap: 8px; }
    .footer-logo img { height: 28px; }
    .footer-logo span { font-size: 1em; }
    .social-btn { width: 36px; height: 36px; }
}

@media (max-width: 360px) {
    .hero-title { font-size: 1.6em; }
    .page-header h1 { font-size: 1.5em; }
    .countdown-grid { grid-template-columns: 1fr 1fr; }
    .main-stats { grid-template-columns: 1fr; }
    .lb-header { grid-template-columns: 30px 1fr 60px; padding: 6px 10px; }
    .lb-row { grid-template-columns: 30px 1fr 60px; padding: 8px 10px; }
    .r-name { font-size: 0.75em; }
    .r-val { font-size: 0.7em; }
}


/* ══════════════════════════════════════════
   PAGE-SPECIFIC STYLES
   Faction, Ads, Criminal, UCP, Vehicle Registry
   ══════════════════════════════════════════ */

/* ── Shared: Filter Bar ── */
.filter-bar { display:flex; gap:10px; flex-wrap:wrap; align-items:center; margin-bottom:24px; }
.filter-input { flex:1; min-width:200px; padding:10px 16px; background:var(--bg-card); border:1px solid var(--border); border-radius:12px; color:#fff; font-size:0.88em; outline:none; transition:border-color 0.2s; }
.filter-input:focus { border-color:var(--border-hover); }
.filter-input::placeholder { color:var(--text-muted); }
.filter-select { padding:10px 14px; background:var(--bg-card); border:1px solid var(--border); border-radius:12px; color:#fff; font-size:0.85em; outline:none; cursor:pointer; }
.filter-select option { background:#0a0e1a; }
.filter-count { font-size:0.75em; color:var(--text-muted); white-space:nowrap; }

/* ── Shared: Search Bar ── */
.search-bar { display:flex; gap:10px; margin-bottom:32px; }
.search-input { flex:1; padding:14px 20px; background:var(--bg-card); border:1px solid var(--border); border-radius:14px; color:#fff; font-size:0.95em; outline:none; transition:border-color 0.2s; }
.search-input:focus { border-color:var(--border-hover); }
.search-input::placeholder { color:var(--text-muted); }
.search-btn { padding:14px 28px; background:linear-gradient(135deg,#14d0ff,#0ea5e9); color:#04060e; font-size:0.9em; font-weight:700; border:none; border-radius:14px; cursor:pointer; transition:opacity 0.2s, transform 0.15s; white-space:nowrap; }
.search-btn:hover { opacity:0.88; transform:translateY(-1px); }
.search-btn:disabled { opacity:0.5; cursor:not-allowed; transform:none; }

/* ── Shared: Empty State ── */
.page-empty { text-align:center; padding:60px 20px; }
.page-empty .empty-icon { font-size:3em; margin-bottom:16px; display:block; }
.page-empty p { color:var(--text-muted); font-size:0.9em; margin-bottom:8px; }
.page-empty small { color:rgba(255,255,255,0.15); font-size:0.78em; }

/* ══ Faction Page ══ */
.fac-page { position:relative; z-index:2; padding:100px 24px 60px; max-width:1100px; margin:0 auto; }
.fac-grid { display:grid; grid-template-columns:repeat(auto-fill, minmax(300px, 1fr)); gap:14px; }
.fac-card { background:var(--bg-card); border:1px solid var(--border); border-radius:16px; padding:20px; position:relative; overflow:hidden; transition:border-color 0.2s, transform 0.2s, box-shadow 0.2s; cursor:pointer; }
.fac-card::before { content:''; position:absolute; top:0; left:0; right:0; height:2px; background:linear-gradient(90deg,transparent,var(--fc,#14d0ff),transparent); background-size:200%; animation:shimmer 4s linear infinite; opacity:0; transition:opacity 0.2s; }
.fac-card:hover { border-color:var(--border-hover); transform:translateY(-3px); box-shadow:0 8px 28px rgba(20,208,255,0.08); }
.fac-card:hover::before { opacity:1; }
.fac-icon { font-size:2.2em; margin-bottom:10px; display:block; }
.fac-type-badge { display:inline-flex; align-items:center; gap:5px; padding:3px 10px; border-radius:20px; font-size:0.6em; font-weight:700; letter-spacing:0.5px; margin-bottom:8px; }
.fac-name { font-size:1.05em; font-weight:700; color:#fff; margin-bottom:4px; }
.fac-motd { font-size:0.75em; color:var(--text-muted); line-height:1.5; margin-bottom:12px; max-height:48px; overflow:hidden; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; }
.fac-divider { height:1px; background:rgba(20,208,255,0.08); margin:12px 0; }
.fac-footer { display:flex; justify-content:space-between; align-items:center; }
.fac-members { font-size:0.8em; font-weight:600; color:rgba(20,208,255,0.7); }
.fac-phone { font-size:0.72em; color:var(--text-muted); }
.fac-ranks { margin-top:10px; display:flex; flex-wrap:wrap; gap:4px; }
.rank-pill { font-size:0.6em; padding:2px 8px; background:rgba(20,208,255,0.08); border:1px solid rgba(20,208,255,0.15); border-radius:20px; color:rgba(255,255,255,0.45); }
.fac-empty { grid-column:1/-1; text-align:center; padding:60px 20px; }
.fac-empty .empty-icon { font-size:3em; margin-bottom:16px; display:block; }
.fac-empty p { color:var(--text-muted); font-size:0.9em; margin-bottom:8px; }
.fac-empty small { color:rgba(255,255,255,0.15); font-size:0.78em; }
/* Faction type colors */
.type-0 { --fc:#64748b; background:rgba(100,116,139,0.12); border-color:rgba(100,116,139,0.3); color:rgba(200,200,200,0.8); }
.type-1 { --fc:#3b82f6; background:rgba(59,130,246,0.12); border-color:rgba(59,130,246,0.3); color:rgba(147,197,253,0.9); }
.type-2 { --fc:#14d0ff; background:rgba(20,208,255,0.1); border-color:rgba(20,208,255,0.25); color:rgba(20,208,255,0.85); }
.type-3 { --fc:#ef4444; background:rgba(239,68,68,0.12); border-color:rgba(239,68,68,0.3); color:rgba(252,165,165,0.9); }
.type-4 { --fc:#f59e0b; background:rgba(245,158,11,0.12); border-color:rgba(245,158,11,0.3); color:rgba(253,211,77,0.9); }
.type-5 { --fc:#8b5cf6; background:rgba(139,92,246,0.12); border-color:rgba(139,92,246,0.3); color:rgba(196,181,253,0.9); }
.type-6 { --fc:#10b981; background:rgba(16,185,129,0.12); border-color:rgba(16,185,129,0.3); color:rgba(110,231,183,0.9); }
.fac-subnav { display:flex; justify-content:center; gap:10px; margin:-10px 0 28px; flex-wrap:wrap; }
.fac-subnav-btn { border:1px solid var(--border); background:rgba(255,255,255,0.03); color:var(--text-muted); border-radius:999px; padding:10px 18px; font-size:0.78em; font-weight:800; letter-spacing:0.4px; cursor:pointer; transition:all 0.2s; }
.fac-subnav-btn:hover { border-color:var(--border-hover); color:#fff; transform:translateY(-1px); }
.fac-subnav-btn.active { background:rgba(20,208,255,0.14); border-color:rgba(20,208,255,0.4); color:#14d0ff; box-shadow:0 0 24px rgba(20,208,255,0.08); }
.my-faction-panel { max-width:900px; margin:0 auto; }
.my-faction-tabs { justify-content:center; margin-bottom:18px; }
.my-faction-empty { background:var(--bg-card); border:1px solid var(--border); border-radius:16px; }
.my-faction-card { background:var(--bg-card); border:1px solid var(--border); border-radius:20px; padding:24px; box-shadow:0 18px 60px rgba(0,0,0,0.16); overflow:hidden; position:relative; }
.my-faction-card::before { content:''; position:absolute; inset:0 0 auto; height:2px; background:linear-gradient(90deg,transparent,#14d0ff,transparent); opacity:0.7; }
.my-faction-hero { display:flex; align-items:center; gap:18px; margin-bottom:18px; }
.my-faction-hero .fac-icon { margin:0; width:58px; height:58px; display:grid; place-items:center; background:rgba(20,208,255,0.08); border:1px solid rgba(20,208,255,0.16); border-radius:18px; }
.my-faction-hero h2 { margin:2px 0 4px; color:#fff; font-size:1.45em; }
.my-faction-hero p { margin:0; color:var(--text-muted); font-size:0.86em; }
.my-faction-motd { border:1px solid rgba(20,208,255,0.1); background:rgba(20,208,255,0.04); border-radius:14px; padding:14px 16px; color:rgba(255,255,255,0.72); font-size:0.84em; line-height:1.6; margin-bottom:16px; }
.my-faction-meta { display:flex; gap:10px; flex-wrap:wrap; margin-bottom:20px; }
.my-faction-meta span { border:1px solid rgba(255,255,255,0.08); background:rgba(255,255,255,0.03); color:rgba(255,255,255,0.58); border-radius:999px; padding:7px 12px; font-size:0.72em; font-weight:700; }
.my-faction-section-title { color:#fff; font-weight:800; margin-bottom:10px; letter-spacing:0.3px; }
.my-faction-members { display:grid; gap:8px; }
.my-faction-member { display:flex; align-items:center; justify-content:space-between; gap:12px; border:1px solid rgba(255,255,255,0.08); background:rgba(255,255,255,0.025); border-radius:14px; padding:12px 14px; }
.my-faction-member.current { border-color:rgba(20,208,255,0.35); background:rgba(20,208,255,0.07); }
.my-faction-member strong { display:block; color:#fff; font-size:0.92em; }
.my-faction-member span { display:block; color:var(--text-muted); font-size:0.74em; margin-top:2px; }
.my-faction-rank { text-align:right; }
.my-faction-rank span { color:rgba(255,215,0,0.82); font-weight:700; }
.my-faction-rank small { display:block; color:rgba(255,255,255,0.35); font-size:0.7em; margin-top:2px; }
.type-7 { --fc:#6b7280; background:rgba(107,114,128,0.12); border-color:rgba(107,114,128,0.3); color:rgba(209,213,219,0.9); }

/* ══ Ads Page ══ */
.ads-page { position:relative; z-index:2; padding:100px 24px 60px; max-width:1000px; margin:0 auto; }
.ads-list { display:flex; flex-direction:column; gap:12px; }
.ad-card { background:var(--bg-card); border:1px solid var(--border); border-radius:16px; padding:20px 22px; position:relative; overflow:hidden; transition:border-color 0.2s, transform 0.2s; display:grid; grid-template-columns:1fr auto; gap:16px; align-items:start; }
.ad-card::before { content:''; position:absolute; left:0; top:0; bottom:0; width:3px; background:var(--sc,#14d0ff); border-radius:3px 0 0 3px; }
.ad-card:hover { border-color:var(--border-hover); transform:translateX(3px); }
.ad-left { min-width:0; }
.ad-top { display:flex; align-items:center; gap:8px; margin-bottom:8px; flex-wrap:wrap; }
.ad-section-badge { font-size:0.62em; font-weight:700; letter-spacing:0.8px; text-transform:uppercase; padding:3px 10px; border-radius:20px; background:var(--sc-bg,rgba(20,208,255,0.1)); border:1px solid var(--sc-border,rgba(20,208,255,0.2)); color:var(--sc-text,rgba(20,208,255,0.85)); }
.ad-name { font-size:0.88em; font-weight:600; color:var(--text); }
.ad-text { font-size:0.92em; color:var(--text); line-height:1.65; margin-bottom:10px; }
.ad-meta { display:flex; gap:14px; flex-wrap:wrap; }
.ad-meta span { font-size:0.7em; color:var(--text-muted); display:flex; align-items:center; gap:4px; }
.ad-right { text-align:right; flex-shrink:0; }
.ad-phone { font-size:1em; font-weight:700; color:#14d0ff; white-space:nowrap; }
.ad-address { font-size:0.72em; color:var(--text-muted); margin-top:4px; max-width:160px; text-align:right; }
.ads-empty { text-align:center; padding:60px 20px; }
.ads-empty .empty-icon { font-size:3em; margin-bottom:16px; display:block; }
.ads-empty p { color:var(--text-muted); font-size:0.9em; }
.ads-empty small { color:rgba(255,255,255,0.15); font-size:0.78em; }
/* Ads section colors */
.sec-1 { --sc:#f59e0b; --sc-bg:rgba(245,158,11,0.1); --sc-border:rgba(245,158,11,0.25); --sc-text:rgba(253,211,77,0.9); }
.sec-2 { --sc:#10b981; --sc-bg:rgba(16,185,129,0.1); --sc-border:rgba(16,185,129,0.25); --sc-text:rgba(110,231,183,0.9); }
.sec-3 { --sc:#3b82f6; --sc-bg:rgba(59,130,246,0.1); --sc-border:rgba(59,130,246,0.25); --sc-text:rgba(147,197,253,0.9); }
.sec-4 { --sc:#8b5cf6; --sc-bg:rgba(139,92,246,0.1); --sc-border:rgba(139,92,246,0.25); --sc-text:rgba(196,181,253,0.9); }
.sec-5 { --sc:#ec4899; --sc-bg:rgba(236,72,153,0.1); --sc-border:rgba(236,72,153,0.25); --sc-text:rgba(249,168,212,0.9); }
.sec-6 { --sc:#14d0ff; --sc-bg:rgba(20,208,255,0.1); --sc-border:rgba(20,208,255,0.2); --sc-text:rgba(20,208,255,0.85); }

/* ══ Criminal Page ══ */
.cr-page { position:relative; z-index:2; padding:100px 24px 60px; max-width:900px; margin:0 auto; }
.results-list { display:flex; flex-direction:column; gap:16px; }
.person-card { background:var(--bg-card); border:1px solid var(--border); border-radius:18px; overflow:hidden; }
.person-header { padding:18px 22px; display:flex; align-items:center; justify-content:space-between; gap:12px; border-bottom:1px solid rgba(20,208,255,0.08); cursor:pointer; transition:background 0.15s; }
.person-header:hover { background:rgba(20,208,255,0.04); }
.person-left { display:flex; align-items:center; gap:14px; }
.person-avatar { width:44px; height:44px; background:rgba(20,208,255,0.1); border:1px solid rgba(20,208,255,0.2); border-radius:12px; display:flex; align-items:center; justify-content:center; font-size:1.4em; flex-shrink:0; }
.person-name { font-size:1em; font-weight:700; color:#fff; }
.person-sub { font-size:0.72em; color:var(--text-muted); margin-top:2px; }
.person-right { display:flex; align-items:center; gap:10px; flex-shrink:0; }
.wanted-badge { padding:4px 12px; border-radius:20px; font-size:0.7em; font-weight:700; }
.wanted-yes { background:rgba(239,68,68,0.15); border:1px solid rgba(239,68,68,0.35); color:rgba(252,165,165,0.9); }
.wanted-no  { background:rgba(16,185,129,0.1); border:1px solid rgba(16,185,129,0.25); color:rgba(110,231,183,0.8); }
.crime-count { font-size:0.72em; color:var(--text-muted); }
.expand-icon { font-size:0.8em; color:var(--text-muted); transition:transform 0.2s; }
.person-card.open .expand-icon { transform:rotate(180deg); }
.person-body { display:none; padding:18px 22px; }
.person-card.open .person-body { display:block; }
.info-grid { display:grid; grid-template-columns:repeat(auto-fit, minmax(160px, 1fr)); gap:10px; margin-bottom:16px; }
.ig-item { background:rgba(20,208,255,0.04); border:1px solid rgba(20,208,255,0.08); border-radius:10px; padding:10px 14px; }
.ig-label { font-size:0.6em; font-weight:700; letter-spacing:0.8px; text-transform:uppercase; color:rgba(20,208,255,0.4); margin-bottom:4px; }
.ig-value { font-size:0.85em; font-weight:600; color:var(--text); }
.wanted-details { background:rgba(239,68,68,0.08); border:1px solid rgba(239,68,68,0.2); border-radius:10px; padding:12px 16px; margin-bottom:16px; font-size:0.82em; color:rgba(252,165,165,0.85); }
.crimes-title { font-size:0.65em; font-weight:700; letter-spacing:1px; text-transform:uppercase; color:rgba(20,208,255,0.4); margin-bottom:10px; }
.crimes-table { width:100%; border-collapse:collapse; }
.crimes-table th { font-size:0.62em; font-weight:700; letter-spacing:0.8px; text-transform:uppercase; color:rgba(20,208,255,0.4); padding:8px 12px; text-align:left; border-bottom:1px solid rgba(20,208,255,0.1); }
.crimes-table td { font-size:0.8em; padding:10px 12px; border-bottom:1px solid rgba(255,255,255,0.04); color:var(--text); vertical-align:top; }
.crimes-table tr:last-child td { border-bottom:none; }
.crimes-table tr:hover td { background:rgba(20,208,255,0.03); }
.no-crimes { text-align:center; padding:20px; color:var(--text-muted); font-size:0.85em; }
.cr-empty { text-align:center; padding:60px 20px; }
.cr-empty .empty-icon { font-size:3em; margin-bottom:16px; display:block; }
.cr-empty p { color:var(--text-muted); font-size:0.9em; margin-bottom:8px; }
.cr-empty small { color:rgba(255,255,255,0.15); font-size:0.78em; }

/* ══ UCP Page ══ */
.ucp-page { position:relative; z-index:2; padding:100px 24px 60px; max-width:1000px; margin:0 auto; }
.login-box { max-width:420px; margin:0 auto; background:var(--bg-card); border:1px solid rgba(20,208,255,0.22); border-radius:20px; padding:36px 40px; position:relative; overflow:hidden; }
.login-box::before { content:''; position:absolute; top:0; left:0; right:0; height:3px; background:linear-gradient(90deg,transparent,#14d0ff,#38bdf8,transparent); background-size:200%; animation:shimmer 4s linear infinite; }
.login-logo { text-align:center; margin-bottom:24px; }
.login-logo img { height:40px; filter:drop-shadow(0 0 10px rgba(20,208,255,0.4)); }
.login-title { font-size:1.2em; font-weight:700; color:#fff; text-align:center; margin-bottom:4px; }
.login-sub { font-size:0.75em; color:rgba(20,208,255,0.5); text-align:center; margin-bottom:28px; }
.iw { margin-bottom:16px; }
.iw label { display:block; font-size:0.68em; font-weight:600; letter-spacing:0.8px; color:var(--text-muted); margin-bottom:7px; }
.iw input { width:100%; padding:12px 16px; background:rgba(255,255,255,0.03); border:1px solid rgba(255,255,255,0.08); border-radius:12px; color:#fff; font-size:0.88em; outline:none; transition:border-color 0.2s, background 0.2s; }
.iw input:focus { border-color:rgba(20,208,255,0.4); background:rgba(20,208,255,0.05); }
.iw input::placeholder { color:rgba(255,255,255,0.2); }
.btn-login { width:100%; padding:13px; background:linear-gradient(135deg,#14d0ff,#0ea5e9); color:#04060e; font-size:0.9em; font-weight:700; border:none; border-radius:12px; cursor:pointer; transition:opacity 0.2s, transform 0.15s; margin-top:8px; display:inline-flex; align-items:center; justify-content:center; gap:8px; }
.btn-login:hover { opacity:0.88; transform:translateY(-1px); }
.btn-login:disabled { opacity:0.5; cursor:not-allowed; transform:none; }
.btn-login.is-loading { opacity:0.75; }
.btn-spinner { width:15px; height:15px; border:2px solid rgba(4,6,14,0.28); border-top-color:#04060e; border-radius:50%; animation:spin 0.8s linear infinite; }
.auth-tab:disabled, .iw input:disabled { opacity:0.55; cursor:not-allowed; }
.login-alert { display:none; padding:10px 14px; border-radius:10px; font-size:0.78em; margin-bottom:14px; }
.login-alert.error { background:rgba(239,68,68,0.1); border:1px solid rgba(239,68,68,0.25); color:rgba(252,165,165,0.9); }
.login-alert.success { background:rgba(16,185,129,0.1); border:1px solid rgba(16,185,129,0.25); color:rgba(110,231,183,0.9); }
.profile-header { display:flex; align-items:center; justify-content:space-between; margin-bottom:32px; flex-wrap:wrap; gap:12px; }
.profile-welcome { font-size:1.4em; font-weight:700; color:#fff; }
.profile-welcome span { color:#14d0ff; }
.btn-logout { padding:8px 18px; background:rgba(239,68,68,0.1); border:1px solid rgba(239,68,68,0.25); border-radius:10px; color:rgba(252,165,165,0.8); font-size:0.82em; font-weight:600; cursor:pointer; transition:all 0.2s; display:inline-flex; align-items:center; justify-content:center; gap:8px; }
.btn-logout:hover { background:rgba(239,68,68,0.2); color:#fff; }
.btn-logout:disabled { opacity:0.62; cursor:not-allowed; }
.btn-logout.is-loading { background:rgba(239,68,68,0.16); color:#fff; }
.btn-logout .btn-spinner { border-color:rgba(252,165,165,0.28); border-top-color:#fff; }
.char-tabs { display:flex; gap:6px; margin-bottom:24px; flex-wrap:wrap; }
.char-tab { padding:8px 18px; background:var(--bg-card); border:1px solid var(--border); border-radius:10px; color:var(--text-muted); font-size:0.82em; font-weight:600; cursor:pointer; transition:all 0.2s; }
.char-tab:hover { border-color:var(--border-hover); color:rgba(20,208,255,0.8); }
.char-tab.active { background:rgba(20,208,255,0.12); border-color:rgba(20,208,255,0.35); color:#14d0ff; }
.char-card { background:var(--bg-card); border:1px solid var(--border); border-radius:18px; padding:24px; position:relative; overflow:hidden; }
.char-card::before { content:''; position:absolute; top:0; left:0; right:0; height:3px; background:linear-gradient(90deg,transparent,#14d0ff,#38bdf8,transparent); background-size:200%; animation:shimmer 4s linear infinite; }
.char-grid { display:grid; grid-template-columns:repeat(auto-fit, minmax(200px, 1fr)); gap:14px; margin-bottom:20px; }
.ucp-character-grid { display:grid; grid-template-columns:repeat(auto-fit, minmax(280px, 1fr)); gap:16px; align-items:start; }
.ucp-character-card { background:var(--bg-card); border:1px solid var(--border); border-radius:20px; padding:20px; position:relative; overflow:hidden; box-shadow:0 18px 50px rgba(0,0,0,0.14); }
.ucp-character-card::before { content:''; position:absolute; inset:0 0 auto; height:3px; background:linear-gradient(90deg,transparent,#14d0ff,#38bdf8,transparent); background-size:200%; animation:shimmer 4s linear infinite; }
.ucp-character-head { display:flex; align-items:center; gap:14px; margin-bottom:18px; }
.ucp-character-avatar { width:52px; height:52px; border-radius:16px; display:grid; place-items:center; background:rgba(20,208,255,0.1); border:1px solid rgba(20,208,255,0.2); color:#14d0ff; font-size:1.35em; font-weight:900; }
.ucp-character-head h3 { margin:0 0 6px; color:#fff; font-size:1.08em; line-height:1.2; }
.ucp-character-status { display:inline-flex; align-items:center; border-radius:999px; padding:4px 9px; font-size:0.62em; font-weight:800; letter-spacing:0.4px; }
.ucp-character-status.active { background:rgba(16,185,129,0.12); border:1px solid rgba(16,185,129,0.26); color:rgba(110,231,183,0.92); }
.ucp-character-status.inactive { background:rgba(100,116,139,0.12); border:1px solid rgba(100,116,139,0.24); color:rgba(148,163,184,0.8); }
.ucp-character-details { display:flex; flex-direction:column; gap:10px; }
.ucp-character-row { border:1px solid rgba(255,255,255,0.08); background:rgba(255,255,255,0.025); border-radius:14px; padding:12px 14px; }
.ucp-character-row span { display:block; color:rgba(20,208,255,0.52); font-size:0.64em; font-weight:800; letter-spacing:0.7px; text-transform:uppercase; margin-bottom:5px; }
.ucp-character-row strong { display:block; color:#fff; font-size:0.94em; line-height:1.35; overflow-wrap:anywhere; }
.ucp-character-row small { display:block; color:var(--text-muted); font-size:0.72em; margin-top:3px; }
.ucp-empty-card { background:var(--bg-card); border:1px solid var(--border); border-radius:18px; padding:28px; color:var(--text-muted); text-align:center; }
.info-box { background:rgba(20,208,255,0.04); border:1px solid rgba(20,208,255,0.1); border-radius:12px; padding:14px 16px; }
.info-box .ib-label { font-size:0.62em; font-weight:700; letter-spacing:0.8px; text-transform:uppercase; color:rgba(20,208,255,0.45); margin-bottom:6px; }
.info-box .ib-value { font-size:1em; font-weight:600; color:#fff; }
.info-box .ib-sub { font-size:0.72em; color:var(--text-muted); margin-top:2px; }
.sec-title { font-size:0.68em; font-weight:700; letter-spacing:1.2px; text-transform:uppercase; color:rgba(20,208,255,0.45); margin:20px 0 10px; }
.licenses { display:flex; gap:8px; flex-wrap:wrap; }
.lic { display:flex; align-items:center; gap:6px; padding:6px 12px; border-radius:20px; font-size:0.75em; font-weight:600; }
.lic.yes { background:rgba(16,185,129,0.12); border:1px solid rgba(16,185,129,0.25); color:rgba(110,231,183,0.9); }
.lic.no  { background:rgba(100,116,139,0.1); border:1px solid rgba(100,116,139,0.2); color:rgba(148,163,184,0.5); }
.job-box, .fac-box { background:rgba(20,208,255,0.04); border:1px solid rgba(20,208,255,0.1); border-radius:12px; padding:14px 16px; margin-bottom:10px; }
.job-box .jb-name { font-size:0.95em; font-weight:700; color:#fff; margin-bottom:4px; }
.job-box .jb-level { font-size:0.75em; color:rgba(20,208,255,0.7); }
.fac-box .fb-name { font-size:0.95em; font-weight:700; color:#fff; }
.fac-box .fb-rank { font-size:0.75em; color:rgba(255,215,0,0.7); margin-top:2px; }
#loginSection, #profileSection { display:none; }

/* Admin Page */
.adm-page {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
    padding: 100px 24px 60px;
}
.adm-header {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
    padding: 22px 24px;
    background: linear-gradient(135deg, rgba(6,8,22,0.98), rgba(10,16,34,0.94));
    border: 1px solid rgba(20,208,255,0.2);
    border-radius: 20px;
    box-shadow: 0 18px 46px rgba(0,0,0,0.24);
}
.adm-header::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at top left, rgba(20,208,255,0.13), transparent 34%),
        linear-gradient(90deg, transparent, rgba(20,208,255,0.05), transparent);
    pointer-events: none;
}
.adm-title {
    position: relative;
    min-width: 0;
    color: #fff;
    font-size: 1.35em;
    font-weight: 800;
    line-height: 1.25;
    letter-spacing: -0.02em;
}
.adm-title span {
    display: inline-block;
    margin-left: 6px;
    color: rgba(20,208,255,0.68);
    font-size: 0.72em;
    font-weight: 600;
    letter-spacing: 0;
}
.adm-layout {
    display: grid;
    grid-template-columns: 230px minmax(0, 1fr);
    gap: 18px;
    align-items: start;
}
.adm-sidebar {
    position: sticky;
    top: 86px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 12px;
    background: rgba(6,8,22,0.95);
    border: 1px solid rgba(20,208,255,0.16);
    border-radius: 18px;
    box-shadow: 0 16px 36px rgba(0,0,0,0.18);
}
.adm-nav-item {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 44px;
    padding: 11px 14px;
    border: 1px solid transparent;
    border-radius: 13px;
    color: rgba(255,255,255,0.52);
    font-size: 0.84em;
    font-weight: 700;
    line-height: 1.2;
    cursor: pointer;
    user-select: none;
    transition: color 0.2s, background 0.2s, border-color 0.2s, transform 0.15s;
}
.adm-nav-item:hover {
    color: rgba(20,208,255,0.9);
    background: rgba(20,208,255,0.07);
    border-color: rgba(20,208,255,0.16);
}
.adm-nav-item.active {
    color: #14d0ff;
    background: linear-gradient(135deg, rgba(20,208,255,0.16), rgba(14,165,233,0.07));
    border-color: rgba(20,208,255,0.34);
    box-shadow: inset 0 0 18px rgba(20,208,255,0.04);
}
.adm-nav-item.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 12px;
    bottom: 12px;
    width: 3px;
    border-radius: 0 4px 4px 0;
    background: #14d0ff;
    box-shadow: 0 0 10px rgba(20,208,255,0.8);
}
.adm-content {
    min-width: 0;
    padding: 20px;
    background: rgba(6,8,22,0.95);
    border: 1px solid rgba(20,208,255,0.16);
    border-radius: 20px;
    box-shadow: 0 16px 36px rgba(0,0,0,0.18);
}
.adm-search {
    display: flex;
    gap: 10px;
    margin-bottom: 18px;
}
.adm-search input {
    flex: 1;
    min-width: 0;
    padding: 12px 16px;
    background: rgba(255,255,255,0.035);
    border: 1px solid rgba(20,208,255,0.15);
    border-radius: 12px;
    color: #fff;
    font-size: 0.88em;
    outline: none;
    transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}
.adm-search input:focus {
    border-color: rgba(20,208,255,0.42);
    background: rgba(20,208,255,0.055);
    box-shadow: 0 0 0 3px rgba(20,208,255,0.08);
}
.adm-search button {
    flex-shrink: 0;
    padding: 12px 20px;
    border: none;
    border-radius: 12px;
    background: linear-gradient(135deg,#14d0ff,#0ea5e9);
    color: #04060e;
    font-size: 0.84em;
    font-weight: 800;
    cursor: pointer;
    transition: opacity 0.2s, transform 0.15s;
}
.adm-search button:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}
.ov-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 12px;
}
.ov-box {
    position: relative;
    overflow: hidden;
    min-height: 126px;
    padding: 18px 16px;
    background:
        radial-gradient(circle at top right, rgba(20,208,255,0.08), transparent 38%),
        rgba(20,208,255,0.035);
    border: 1px solid rgba(20,208,255,0.12);
    border-radius: 16px;
}
.ov-box::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--bc, #14d0ff), transparent);
    opacity: 0.75;
}
.ov-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    margin-bottom: 12px;
    border-radius: 11px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.08);
    font-size: 1.15em;
}
.ov-val {
    color: #fff;
    font-size: 1.55em;
    font-weight: 850;
    line-height: 1;
    letter-spacing: -0.03em;
}
.ov-lbl {
    margin-top: 7px;
    color: var(--text-muted);
    font-size: 0.72em;
    font-weight: 700;
    letter-spacing: 0.2px;
}
.adm-table-wrap {
    width: 100%;
    overflow-x: auto;
    background: rgba(255,255,255,0.025);
    border: 1px solid rgba(20,208,255,0.11);
    border-radius: 16px;
}
.adm-table {
    width: 100%;
    min-width: 720px;
    border-collapse: collapse;
}
.adm-table th {
    padding: 13px 16px;
    background: rgba(20,208,255,0.055);
    border-bottom: 1px solid rgba(20,208,255,0.12);
    color: rgba(20,208,255,0.62);
    font-size: 0.65em;
    font-weight: 800;
    letter-spacing: 0.8px;
    text-align: left;
    text-transform: uppercase;
    white-space: nowrap;
}
.adm-table td {
    max-width: 280px;
    padding: 13px 16px;
    border-bottom: 1px solid rgba(255,255,255,0.045);
    color: rgba(255,255,255,0.76);
    font-size: 0.82em;
    vertical-align: top;
    word-break: break-word;
}
.adm-table tbody tr:last-child td {
    border-bottom: none;
}
.adm-table tbody tr:hover td {
    background: rgba(20,208,255,0.035);
    color: rgba(255,255,255,0.92);
}
.access-denied {
    max-width: 460px;
    margin: 48px auto 0;
    padding: 38px 32px;
    text-align: center;
    background: rgba(6,8,22,0.96);
    border: 1px solid rgba(20,208,255,0.16);
    border-radius: 20px;
    box-shadow: 0 18px 46px rgba(0,0,0,0.24);
}
.access-denied .icon {
    display: block;
    margin-bottom: 14px;
    font-size: 2.1em;
}
.access-denied p {
    color: var(--text);
    font-size: 0.92em;
}
.release-panel { display:flex; flex-direction:column; gap:14px; }
.release-grid { display:grid; grid-template-columns:repeat(2, minmax(0, 1fr)); gap:14px; }
.release-card { background:rgba(20,208,255,0.035); border:1px solid rgba(20,208,255,0.12); border-radius:16px; padding:18px; }
.release-card h3 { color:#fff; font-size:1em; margin-bottom:12px; }
.release-current { display:grid; gap:6px; margin-bottom:16px; padding:12px 14px; background:rgba(255,255,255,0.025); border:1px solid rgba(255,255,255,0.06); border-radius:12px; }
.release-current span { color:var(--text-muted); font-size:0.78em; }
.release-current strong { color:rgba(255,255,255,0.82); }
.release-current a { color:#14d0ff; font-size:0.78em; text-decoration:none; }
.release-form { display:grid; gap:9px; }
.release-form label { color:rgba(20,208,255,0.56); font-size:0.68em; font-weight:800; letter-spacing:0.8px; text-transform:uppercase; }
.release-form input, .release-form textarea { width:100%; padding:11px 13px; background:rgba(255,255,255,0.035); border:1px solid rgba(20,208,255,0.15); border-radius:11px; color:#fff; outline:none; }
.release-form textarea { min-height:82px; resize:vertical; }
.release-form input[type="file"] { color:rgba(255,255,255,0.68); font-size:0.82em; }
.release-form button { margin-top:4px; padding:12px 16px; border:none; border-radius:12px; background:linear-gradient(135deg,#14d0ff,#0ea5e9); color:#04060e; font-size:0.84em; font-weight:850; cursor:pointer; }
.release-form button:disabled { opacity:0.55; cursor:not-allowed; }
.release-alert { padding:11px 14px; border-radius:12px; font-size:0.82em; font-weight:650; }
.release-alert.success { background:rgba(16,185,129,0.1); border:1px solid rgba(16,185,129,0.24); color:rgba(110,231,183,0.95); }
.release-alert.error { background:rgba(239,68,68,0.1); border:1px solid rgba(239,68,68,0.24); color:rgba(252,165,165,0.95); }
.release-note { padding:12px 14px; background:rgba(20,208,255,0.04); border:1px solid rgba(20,208,255,0.1); border-radius:12px; color:var(--text-muted); font-size:0.78em; }

/* ══ Vehicle Registry Page ══ */
.vr-page { position:relative; z-index:2; padding:100px 24px 60px; max-width:900px; margin:0 auto; }
.search-tabs { display:flex; gap:6px; background:var(--bg-card); border:1px solid var(--border); border-radius:14px; padding:6px; margin-bottom:16px; }
.stab { flex:1; padding:9px; border-radius:10px; border:none; background:transparent; color:var(--text-muted); font-size:0.82em; font-weight:600; cursor:pointer; transition:all 0.2s; }
.stab:hover { color:rgba(20,208,255,0.8); background:rgba(20,208,255,0.06); }
.stab.active { background:rgba(20,208,255,0.12); border:1px solid rgba(20,208,255,0.25); color:#14d0ff; }
.vc-header { display:flex; align-items:flex-start; justify-content:space-between; gap:12px; margin-bottom:14px; }
.vc-left { display:flex; align-items:center; gap:12px; min-width:0; }
.color-swatch { display:flex; border:1px solid rgba(255,255,255,0.1); border-radius:12px; overflow:hidden; width:42px; height:42px; flex:0 0 auto; background:rgba(255,255,255,0.04); }
.swatch { flex:1; min-width:0; }
.vc-model { color:#fff; font-size:1em; font-weight:800; line-height:1.2; }
.vc-plate { display:inline-flex; align-items:center; padding:5px 10px; border:1px solid rgba(255,255,255,0.16); border-radius:8px; color:#fff; background:rgba(255,255,255,0.05); font-size:0.75em; font-weight:900; letter-spacing:1px; white-space:nowrap; }
.vc-badges { display:flex; gap:6px; flex-wrap:wrap; }
.badge-pill { display:inline-flex; align-items:center; padding:4px 8px; border-radius:999px; font-size:0.62em; font-weight:800; letter-spacing:0.3px; border:1px solid rgba(255,255,255,0.12); }
.bp-ok { background:rgba(16,185,129,0.12); border-color:rgba(16,185,129,0.26); color:rgba(110,231,183,0.92); }
.bp-warn { background:rgba(245,158,11,0.12); border-color:rgba(245,158,11,0.28); color:rgba(253,211,77,0.92); }
.bp-danger { background:rgba(239,68,68,0.12); border-color:rgba(239,68,68,0.28); color:rgba(252,165,165,0.92); }
.vc-grid { display:grid; grid-template-columns:repeat(2, minmax(0, 1fr)); gap:8px; margin-top:14px; }
.vc-item { border:1px solid rgba(255,255,255,0.08); border-radius:12px; padding:10px; background:rgba(255,255,255,0.025); }
.vc-label { color:var(--text-muted); font-size:0.68em; margin-bottom:4px; }
.vc-value { color:#fff; font-size:0.84em; font-weight:700; }

/* ══ Page-specific Responsive ══ */
@media (max-width: 768px) {
    .fac-page, .ads-page, .cr-page, .ucp-page, .vr-page, .adm-page, .veh-page { padding:80px 16px 40px; }
    .fac-grid, .veh-grid { grid-template-columns:1fr; }
    .ad-card { grid-template-columns:1fr; }
    .ad-right { text-align:left; }
    .char-grid { grid-template-columns:repeat(2,1fr); }
    .info-grid { grid-template-columns:repeat(2,1fr); }
    .person-right { gap:6px; }
    .crime-count { display:none; }
    .crimes-table th:nth-child(3), .crimes-table td:nth-child(3) { display:none; }
    .login-box { padding:28px 24px; }
    .adm-header { align-items:flex-start; padding:18px; }
    .adm-title { font-size:1.12em; }
    .adm-layout { grid-template-columns:1fr; }
    .adm-sidebar { position:relative; top:auto; flex-direction:row; overflow-x:auto; padding:8px; border-radius:16px; }
    .adm-nav-item { flex:0 0 auto; white-space:nowrap; }
    .adm-nav-item.active::before { left:12px; right:12px; top:auto; bottom:0; width:auto; height:3px; border-radius:4px 4px 0 0; }
    .adm-content { padding:16px; }
    .ov-grid { grid-template-columns:repeat(2, minmax(0, 1fr)); }
    .release-grid { grid-template-columns:1fr; }
}
@media (max-width: 480px) {
    .fac-page, .ads-page, .cr-page, .ucp-page, .vr-page, .adm-page, .veh-page { padding:70px 12px 30px; }
    .char-grid { grid-template-columns:1fr; }
    .info-grid { grid-template-columns:1fr; }
    .search-bar { flex-direction:column; }
    .search-btn { width:100%; }
    .filter-bar { flex-direction:column; align-items:stretch; }
    .filter-input, .filter-select { width:100%; }
    .my-vehicle-summary, .vc-grid, .my-vehicle-grid { grid-template-columns:1fr; }
    .vc-header { flex-direction:column; }
    .crimes-table th:nth-child(4), .crimes-table td:nth-child(4) { display:none; }
    .adm-header { flex-direction:column; }
    .adm-header .btn-logout { width:100%; justify-content:center; }
    .adm-title span { display:block; margin:4px 0 0; }
    .adm-search { flex-direction:column; }
    .adm-search button { width:100%; }
    .ov-grid { grid-template-columns:1fr; }
}

/* ========================================
   REGISTER PAGE
   ======================================== */
.register-page {
  position: relative;
  z-index: 2;
  padding: 100px 24px 60px;
  max-width: 1200px;
  margin: 0 auto;
}

.register-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: start;
}

/* Register Card */
.register-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 32px;
  position: relative;
  overflow: hidden;
}

.register-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, #14d0ff, #38bdf8, transparent);
  background-size: 200%;
  animation: shimmer 4s linear infinite;
}

.register-form-header {
  margin-bottom: 28px;
  text-align: center;
}

.register-form-header h2 {
  font-size: 1.6em;
  font-weight: 800;
  color: #fff;
  margin-bottom: 8px;
}

.register-form-header p {
  font-size: 0.9em;
  color: var(--text-muted);
}

/* Alert */
.alert {
  padding: 14px 18px;
  border-radius: 12px;
  margin-bottom: 20px;
  font-size: 0.88em;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
}

.alert-success {
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.25);
  color: rgba(110, 231, 183, 0.9);
}

.alert-error {
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.25);
  color: rgba(252, 165, 165, 0.9);
}

.alert-warning {
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.25);
  color: rgba(253, 211, 77, 0.9);
}

/* Form Groups */
.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 0.85em;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 8px;
  letter-spacing: 0.3px;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="password"] {
  width: 100%;
  padding: 12px 16px;
  background: rgba(20, 208, 255, 0.04);
  border: 1px solid rgba(20, 208, 255, 0.15);
  border-radius: 12px;
  color: #fff;
  font-size: 0.92em;
  outline: none;
  transition: all 0.2s;
}

.form-group input:focus {
  border-color: rgba(20, 208, 255, 0.4);
  background: rgba(20, 208, 255, 0.08);
  box-shadow: 0 0 0 3px rgba(20, 208, 255, 0.08);
}

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

.form-group small {
  display: block;
  margin-top: 6px;
  font-size: 0.75em;
  color: var(--text-muted);
}

/* Checkbox Group */
.checkbox-group label {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-size: 0.88em;
}

.checkbox-group input[type="checkbox"] {
  width: 18px;
  height: 18px;
  cursor: pointer;
  accent-color: #14d0ff;
}

.checkbox-group a {
  color: #14d0ff;
  text-decoration: none;
  font-weight: 600;
}

.checkbox-group a:hover {
  text-decoration: underline;
}

/* Submit Button */
.btn-submit {
  width: 100%;
  padding: 14px 24px;
  background: linear-gradient(135deg, #14d0ff, #0ea5e9);
  color: #04060e;
  font-size: 0.95em;
  font-weight: 700;
  border: none;
  border-radius: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s;
  margin-top: 24px;
}

.btn-submit:hover {
  opacity: 0.88;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(20, 208, 255, 0.3);
}

.btn-submit:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

/* Register Footer */
.register-footer {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  text-align: center;
}

.register-footer p {
  font-size: 0.88em;
  color: var(--text-muted);
}

.register-footer a {
  color: #14d0ff;
  text-decoration: none;
  font-weight: 600;
}

.register-footer a:hover {
  text-decoration: underline;
}

/* Register Info */
.register-info {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.info-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px;
  text-align: center;
  transition: all 0.2s;
}

.info-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-2px);
}

.info-icon {
  font-size: 2.5em;
  margin-bottom: 12px;
}

.info-card h3 {
  font-size: 1.1em;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
}

.info-card p {
  font-size: 0.88em;
  color: var(--text-muted);
  line-height: 1.5;
}

/* Responsive */
@media (max-width: 768px) {
  .register-container {
    grid-template-columns: 1fr;
  }

  .register-card {
    padding: 24px;
  }

  .register-form-header h2 {
    font-size: 1.4em;
  }

  .info-card {
    padding: 20px;
  }
}

/* ========================================
   AUTH BOX (Login + Register tabs di UCP)
   ======================================== */
.auth-box {
  max-width: 420px;
  margin: 0 auto;
  background: var(--bg-card);
  border: 1px solid rgba(20,208,255,0.22);
  border-radius: 20px;
  padding: 36px 40px;
  position: relative;
  overflow: hidden;
}
.auth-box::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, #14d0ff, #38bdf8, transparent);
  background-size: 200%;
  animation: shimmer 4s linear infinite;
}
.auth-logo { text-align: center; margin-bottom: 20px; }
.auth-logo img { height: 48px; }

/* Tab switcher */
.auth-tabs {
  display: flex;
  background: rgba(20,208,255,0.06);
  border: 1px solid rgba(20,208,255,0.12);
  border-radius: 12px;
  padding: 4px;
  margin-bottom: 24px;
  gap: 4px;
}
.auth-tab {
  flex: 1;
  padding: 9px;
  border-radius: 9px;
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-size: 0.88em;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}
.auth-tab:hover { color: rgba(20,208,255,0.8); }
.auth-tab.active {
  background: rgba(20,208,255,0.14);
  border: 1px solid rgba(20,208,255,0.28);
  color: #14d0ff;
}

/* Alert */
.auth-alert {
  padding: 12px 16px;
  border-radius: 10px;
  margin-bottom: 16px;
  font-size: 0.85em;
  font-weight: 600;
}
.auth-alert.error {
  background: rgba(239,68,68,0.12);
  border: 1px solid rgba(239,68,68,0.25);
  color: rgba(252,165,165,0.9);
}
.auth-alert.success {
  background: rgba(16,185,129,0.12);
  border: 1px solid rgba(16,185,129,0.25);
  color: rgba(110,231,183,0.9);
}

/* Heading */
.auth-heading {
  font-size: 1.25em;
  font-weight: 800;
  color: #fff;
  margin-bottom: 4px;
  text-align: center;
}
.auth-sub {
  font-size: 0.82em;
  color: var(--text-muted);
  text-align: center;
  margin-bottom: 22px;
}

/* Switch link */
.auth-switch {
  margin-top: 18px;
  text-align: center;
  font-size: 0.82em;
  color: var(--text-muted);
}
.auth-switch a {
  color: #14d0ff;
  text-decoration: none;
  font-weight: 600;
}
.auth-switch a:hover { text-decoration: underline; }

@media (max-width: 480px) {
  .auth-box { padding: 28px 20px; }
}

/* ========================================
   VEHICLE SHOWROOM PAGE
   ======================================== */

.veh-page { position:relative; z-index:2; padding:100px 24px 60px; max-width:1100px; margin:0 auto; }
.veh-subnav { display:flex; justify-content:center; gap:10px; margin:-10px 0 28px; flex-wrap:wrap; }
.veh-subnav-btn { border:1px solid var(--border); background:rgba(255,255,255,0.03); color:var(--text-muted); border-radius:999px; padding:10px 18px; font-size:0.78em; font-weight:800; letter-spacing:0.4px; cursor:pointer; transition:all 0.2s; }
.veh-subnav-btn:hover { border-color:var(--border-hover); color:#fff; transform:translateY(-1px); }
.veh-subnav-btn.active { background:rgba(20,208,255,0.14); border-color:rgba(20,208,255,0.4); color:#14d0ff; box-shadow:0 0 24px rgba(20,208,255,0.08); }
.my-vehicle-panel { max-width:1000px; margin:0 auto; }
.my-vehicle-tabs { justify-content:center; margin-bottom:18px; }
.my-vehicle-tabs .char-tab { display:inline-flex; align-items:center; gap:8px; }
.my-vehicle-tabs .char-tab span { display:inline-grid; place-items:center; min-width:22px; height:22px; padding:0 6px; border-radius:999px; background:rgba(20,208,255,0.1); color:#14d0ff; font-size:0.72em; }
.my-vehicle-summary { display:grid; grid-template-columns:repeat(2, minmax(0, 1fr)); gap:12px; margin-bottom:18px; }
.my-vehicle-summary > div { border:1px solid var(--border); border-radius:16px; background:var(--bg-card); padding:16px; }
.my-vehicle-summary span { display:block; color:var(--text-muted); font-size:0.72em; margin-bottom:4px; }
.my-vehicle-summary strong { display:block; color:#fff; font-size:1.05em; }
.my-vehicle-empty { background:var(--bg-card); border:1px solid var(--border); border-radius:16px; }
.my-vehicle-card .vc-header { margin-bottom:10px; }
.my-vehicle-badges { margin-bottom:8px; }
.my-vehicle-grid { grid-template-columns:repeat(2, minmax(0, 1fr)); }

/* Filter bar */
.filter-bar { display:flex; gap:10px; flex-wrap:wrap; align-items:center; margin-bottom:24px; }
.filter-input { flex:1; min-width:200px; padding:10px 16px; background:var(--bg-card); border:1px solid var(--border); border-radius:12px; color:#fff; font-size:0.88em; outline:none; transition:border-color 0.2s; }
.filter-input:focus { border-color:var(--border-hover); }
.filter-input::placeholder { color:var(--text-muted); }
.filter-select { padding:10px 14px; background:var(--bg-card); border:1px solid var(--border); border-radius:12px; color:#fff; font-size:0.85em; outline:none; cursor:pointer; }
.filter-select option { background:#0a0e1a; }
.filter-count { font-size:0.75em; color:var(--text-muted); white-space:nowrap; }

/* Grid */
.veh-grid { display:grid; grid-template-columns:repeat(auto-fill, minmax(260px, 1fr)); gap:14px; }

/* Card */
.veh-card { background:var(--bg-card); border:1px solid var(--border); border-radius:16px; padding:20px; position:relative; overflow:hidden; transition:border-color 0.2s, transform 0.2s, box-shadow 0.2s; }
.veh-card::before { content:''; position:absolute; top:0; left:0; right:0; height:2px; background:linear-gradient(90deg,transparent,#14d0ff,#38bdf8,transparent); background-size:200%; animation:shimmer 4s linear infinite; opacity:0; transition:opacity 0.2s; }
.veh-card:hover { border-color:var(--border-hover); transform:translateY(-3px); box-shadow:0 8px 28px rgba(20,208,255,0.08); }
.veh-card:hover::before { opacity:1; }

.veh-card.disabled { opacity:0.5; }
.veh-card.disabled .veh-status { background:rgba(255,100,100,0.15); border-color:rgba(255,100,100,0.3); color:rgba(255,100,100,0.8); }

/* Card header */
.veh-icon { font-size:2.5em; margin-bottom:10px; display:block; }
.veh-brand { font-size:0.62em; font-weight:700; letter-spacing:1.2px; text-transform:uppercase; color:rgba(20,208,255,0.5); margin-bottom:4px; }
.veh-name { font-size:1.05em; font-weight:700; color:#fff; margin-bottom:2px; }
.veh-year { font-size:0.72em; color:var(--text-muted); margin-bottom:12px; }

/* Status badge */
.veh-status { display:inline-flex; align-items:center; gap:5px; padding:3px 10px; border-radius:20px; font-size:0.62em; font-weight:700; letter-spacing:0.5px; background:rgba(20,208,255,0.1); border:1px solid rgba(20,208,255,0.2); color:rgba(20,208,255,0.8); margin-bottom:12px; }
.status-dot { width:5px; height:5px; border-radius:50%; background:currentColor; }

/* Divider */
.veh-divider { height:1px; background:rgba(20,208,255,0.08); margin:12px 0; }

/* Price */
.veh-price-row { display:flex; justify-content:space-between; align-items:center; }
.veh-price { font-size:1.2em; font-weight:800; color:#FFD700; text-shadow:0 0 10px rgba(255,215,0,0.3); }
.veh-tax { font-size:0.7em; color:var(--text-muted); }

/* Stock */
.veh-stock { font-size:0.72em; color:var(--text-muted); margin-top:6px; }
.stock-ok { color:rgba(93,232,93,0.8); }
.stock-low { color:rgba(255,200,50,0.8); }
.stock-out { color:rgba(255,100,100,0.8); }

/* Notes */
.veh-notes { font-size:0.72em; color:var(--text-muted); margin-top:8px; font-style:italic; }

/* Empty */
.veh-empty { grid-column:1/-1; text-align:center; padding:60px 20px; color:var(--text-muted); font-size:0.9em; }

/* Download Page */
.dl-grid { display:grid; grid-template-columns:repeat(auto-fit, minmax(320px, 1fr)); gap:24px; margin-bottom:40px; }
.dl-card { background:var(--bg-card); border:1px solid var(--border); border-radius:18px; overflow:hidden; position:relative; transition:border-color .2s, transform .2s, box-shadow .2s; }
.dl-card::before { content:''; position:absolute; top:0; left:0; right:0; height:3px; background:linear-gradient(90deg, transparent, var(--accent), var(--accent2), transparent); background-size:200%; animation:shimmer 4s linear infinite; }
.dl-card:hover { border-color:var(--border-hover); transform:translateY(-4px); box-shadow:0 12px 32px rgba(20,208,255,0.1); }
.dl-card-header { padding:28px 28px 20px; display:flex; align-items:center; gap:18px; }
.dl-icon { width:60px; height:60px; border-radius:16px; background:rgba(20,208,255,0.1); border:1px solid rgba(20,208,255,0.2); display:flex; align-items:center; justify-content:center; font-size:1.8em; flex-shrink:0; }
.dl-info h2 { font-size:1.2em; font-weight:800; color:#fff; margin-bottom:4px; }
.dl-info p { font-size:0.78em; color:var(--text-muted); }
.dl-body { padding:0 28px 20px; border-top:1px solid rgba(20,208,255,0.08); }
.dl-features { list-style:none; padding:16px 0 20px; margin:0; display:flex; flex-direction:column; gap:8px; }
.dl-features li { font-size:0.82em; color:rgba(255,255,255,0.7); display:flex; align-items:center; gap:8px; }
.dl-features li::before { content:'✓'; color:var(--accent); font-weight:700; flex-shrink:0; }
.dl-meta { display:grid; gap:6px; margin:0 0 18px; padding:12px 14px; background:rgba(20,208,255,0.045); border:1px solid rgba(20,208,255,0.1); border-radius:12px; }
.dl-meta span { color:var(--text-muted); font-size:0.78em; }
.dl-btn { display:flex; align-items:center; justify-content:center; gap:10px; width:100%; padding:14px 20px; background:linear-gradient(135deg, var(--accent), var(--accent3)); border:none; border-radius:12px; color:#04060e; font-size:0.95em; font-weight:800; text-decoration:none; cursor:pointer; transition:all 0.2s; box-shadow:0 4px 20px rgba(20,208,255,0.25); letter-spacing:0.3px; }
.dl-btn:hover { transform:translateY(-2px); box-shadow:0 8px 28px rgba(20,208,255,0.4); }
.dl-btn.secondary { background:var(--bg-card2); border:1px solid var(--border); color:var(--text); box-shadow:none; }
.dl-btn.secondary:hover { border-color:var(--border-hover); background:rgba(20,208,255,0.06); color:var(--accent); }
.dl-btn-group { display:flex; flex-direction:column; gap:10px; }

/* News Page */
.news-filters { display:flex; justify-content:center; flex-wrap:wrap; gap:10px; margin-top:22px; margin-bottom:22px}
.filter-btn { padding:8px 18px; background:var(--bg-card); border:1px solid var(--border); border-radius:20px; color:var(--text-muted); font-size:0.82em; font-weight:700; cursor:pointer; transition:all .2s; }
.filter-btn:hover, .filter-btn.active { border-color:rgba(20,208,255,.35); background:rgba(20,208,255,.12); color:#14d0ff; }
.news-admin-actions { display:flex; justify-content:flex-end; margin:0 0 18px; }
.news-admin-actions .btn { font-size:.85em; padding:10px 20px; }
.news-filter-btn { display:inline-flex; align-items:center; gap:8px; padding:10px 18px; border-radius:999px; background:linear-gradient(135deg, rgba(255,255,255,.08), rgba(20,208,255,.05)); box-shadow:0 10px 26px rgba(0,0,0,.18); }
.news-filter-btn:hover, .news-filter-btn.active { transform:translateY(-1px); box-shadow:0 12px 30px rgba(20,208,255,.12); }
.news-filter-icon { display:inline-flex; align-items:center; justify-content:center; width:22px; height:22px; border-radius:999px; background:rgba(255,255,255,.08); font-size:.95em; }
.news-timeline { display:flex; flex-direction:column; gap:18px; }
.news-empty { padding:22px; border:1px dashed rgba(255,255,255,.12); border-radius:16px; color:var(--text-muted); text-align:center; background:rgba(255,255,255,.035); }
.news-card { background:var(--bg-card); border:1px solid var(--border); border-radius:18px; overflow:hidden; transition:border-color .2s, transform .2s; }
.news-card:hover { border-color:var(--border-hover); transform:translateY(-2px); }
.news-card-header { display:flex; justify-content:space-between; gap:16px; padding:18px 22px 14px; border-bottom:1px solid rgba(20,208,255,.08); flex-wrap:wrap; }
.news-card-title { font-size:1.05em; font-weight:800; color:#fff; margin-bottom:4px; }
.news-card-meta { display:flex; gap:12px; flex-wrap:wrap; color:var(--text-muted); font-size:.74em; }
.news-badge { padding:4px 12px; border-radius:999px; font-size:.68em; font-weight:800; letter-spacing:.6px; text-transform:uppercase; background:rgba(20,208,255,.12); border:1px solid rgba(20,208,255,.25); color:#14d0ff; align-self:flex-start; }
.news-badge.event { background:rgba(245,158,11,.12); border-color:rgba(245,158,11,.28); color:#fbbf24; }
.news-badge.update { background:rgba(59,130,246,.12); border-color:rgba(59,130,246,.28); color:#93c5fd; }
.news-badge.info { background:rgba(16,185,129,.12); border-color:rgba(16,185,129,.28); color:#6ee7b7; }
.news-badge.new { background:rgba(20,208,255,.12); border-color:rgba(20,208,255,.28); color:#14d0ff; }
.news-card-body { padding:18px 22px 22px; color:rgba(255,255,255,.78); line-height:1.65; font-size:.9em; }
/* Changelog Page */
.cl-timeline { display:flex; flex-direction:column; gap:24px; }
.cl-entry { background:var(--bg-card, rgba(6,8,22,.97)); border:1px solid rgba(20,208,255,.18); border-radius:16px; overflow:hidden; position:relative; transition:border-color .2s, transform .2s; }
.cl-entry:hover { border-color:rgba(20,208,255,.4); transform:translateY(-2px); }
.cl-entry::before { content:''; position:absolute; top:0; left:0; right:0; height:3px; background:linear-gradient(90deg, transparent, #14d0ff, #38bdf8, transparent); }
.cl-header { display:flex; align-items:flex-start; justify-content:space-between; padding:18px 24px 14px; border-bottom:1px solid rgba(20,208,255,.1); flex-wrap:wrap; gap:10px; }
.cl-version { font-size:1.15em; font-weight:800; color:#14d0ff; text-shadow:0 0 12px rgba(20,208,255,.4); }
.cl-date { font-size:.78em; color:rgba(255,255,255,.35); letter-spacing:.5px; margin-top:2px; }
.cl-author { font-size:.72em; color:rgba(20,208,255,.5); margin-top:2px; }
.cl-badge { padding:4px 12px; border-radius:20px; font-size:.7em; font-weight:700; letter-spacing:.5px; text-transform:uppercase; }
.cl-badge.major { background:rgba(20,208,255,.15); color:#14d0ff; border:1px solid rgba(20,208,255,.3); }
.cl-badge.minor { background:rgba(56,189,248,.1); color:#38bdf8; border:1px solid rgba(56,189,248,.25); }
.cl-badge.patch { background:rgba(255,255,255,.06); color:rgba(255,255,255,.5); border:1px solid rgba(255,255,255,.12); }
.cl-badge.hotfix { background:rgba(239,68,68,.12); color:#f87171; border:1px solid rgba(239,68,68,.25); }
.cl-body { padding:18px 24px 20px; }
.cl-section { margin-bottom:16px; }
.cl-section:last-child { margin-bottom:0; }
.cl-section-title { font-size:.72em; font-weight:700; letter-spacing:1.2px; text-transform:uppercase; color:rgba(20,208,255,.6); margin-bottom:10px; }
.cl-list { list-style:none; padding:0; margin:0; display:flex; flex-direction:column; gap:6px; }
.cl-list li { font-size:.88em; color:rgba(255,255,255,.8); display:flex; align-items:baseline; gap:8px; line-height:1.5; }
.cl-list li::before { content:'›'; color:#14d0ff; font-size:1.1em; flex-shrink:0; }
.cl-list li.fix::before { content:'Fix'; font-size:.65em; font-weight:800; color:#fbbf24; }
.cl-list li.add::before { content:'Add'; font-size:.65em; font-weight:800; color:#6ee7b7; }
.cl-list li.remove::before { content:'Remove'; font-size:.65em; font-weight:800; color:#f87171; }
.cl-list li.improve::before { content:'Improve'; font-size:.65em; font-weight:800; color:#38bdf8; }
.cl-empty { text-align:center; padding:60px 20px; color:rgba(255,255,255,.25); font-size:.9em; }
.cl-actions { display:flex; gap:8px; margin-top:8px; }
.cl-btn { padding:4px 10px; border-radius:8px; font-size:.72em; font-weight:600; cursor:pointer; border:none; transition:opacity .2s; }
.cl-btn-edit { background:rgba(20,208,255,.15); color:#14d0ff; }
.cl-btn-delete { background:rgba(239,68,68,.15); color:#f87171; }
.cl-btn:hover { opacity:.75; }
.cl-modal-bg { position:fixed; inset:0; background:rgba(0,0,0,.7); z-index:9999; display:flex; align-items:center; justify-content:center; padding:20px; }
.cl-modal { background:rgba(6,8,22,.98); border:1px solid rgba(20,208,255,.25); border-radius:18px; padding:28px; width:90%; max-width:640px; max-height:90vh; overflow-y:auto; box-shadow:0 16px 56px rgba(0,0,0,.8); }
.cl-modal h3 { color:#14d0ff; font-size:1.1em; margin-bottom:20px; }
.cl-form-group { margin-bottom:16px; }
.cl-form-group label { display:block; font-size:.75em; font-weight:600; color:rgba(255,255,255,.5); letter-spacing:1px; text-transform:uppercase; margin-bottom:6px; }
.cl-form-group input, .cl-form-group select, .cl-form-group textarea { width:100%; padding:10px 14px; border-radius:10px; border:1px solid rgba(255,255,255,.12); background:rgba(255,255,255,.06); color:#fff; font-size:.9em; outline:none; transition:border-color .2s; }
.cl-form-group textarea { min-height:160px; resize:vertical; font-family:monospace; font-size:.82em; }
.cl-form-group input:focus, .cl-form-group select:focus, .cl-form-group textarea:focus { border-color:#14d0ff; }
.cl-form-group select option { background:#0a0e1a; }
.cl-form-actions { display:flex; gap:10px; justify-content:flex-end; margin-top:20px; }
.cl-form-actions button { padding:10px 24px; border-radius:10px; font-size:.88em; font-weight:600; cursor:pointer; border:none; transition:opacity .2s; }
.cl-form-actions .btn-save { background:linear-gradient(135deg, #14d0ff, #0ea5e9); color:#000; }
.cl-form-actions .btn-cancel { background:rgba(255,255,255,.08); color:rgba(255,255,255,.6); }
.cl-form-actions button:hover { opacity:.8; }
.cl-hint { font-size:.72em; color:rgba(255,255,255,.3); margin-top:4px; }
