@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); }

/* ── 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} 
}

/* ── 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); }
.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; }
.btn-login:hover { opacity:0.88; transform:translateY(-1px); }
.btn-login:disabled { opacity:0.5; cursor:not-allowed; transform:none; }
.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; }
.btn-logout:hover { background:rgba(239,68,68,0.2); 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; }
.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; }

/* ══ 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; }

/* ══ Page-specific Responsive ══ */
@media (max-width: 768px) {
    .fac-page, .ads-page, .cr-page, .ucp-page, .vr-page { padding:80px 16px 40px; }
    .fac-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; }
}
@media (max-width: 480px) {
    .fac-page, .ads-page, .cr-page, .ucp-page, .vr-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%; }
    .crimes-table th:nth-child(4), .crimes-table td:nth-child(4) { display:none; }
}

/* ========================================
   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; }

/* 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; }
