/* ============================================
   TORRENT HEAVEN - Heavenly Theme
   Color palette: divine gold, cloud white, sky blue, holy glow
   ============================================ */

:root {
    /* Divine color palette */
    --gold-100: #fef3c7;
    --gold-200: #fde68a;
    --gold-300: #fcd34d;
    --gold-400: #fbbf24;
    --gold-500: #f59e0b;
    --gold-600: #d97706;
    --gold-glow: rgba(251, 191, 36, 0.4);

    --sky-50:  #f0f9ff;
    --sky-100: #e0f2fe;
    --sky-200: #bae6fd;
    --sky-300: #7dd3fc;
    --sky-400: #38bdf8;
    --sky-500: #0ea5e9;
    --sky-600: #0284c7;
    
    --white-holy: rgba(255, 255, 255, 0.95);
    --white-cloud: rgba(255, 255, 255, 0.75);
    
    --bg-dark: #0c1425;
    --bg-mid: #111d36;
    --bg-light: #1a2947;
    
    --text-primary: #f1f5f9;
    --text-secondary: #cbd5e1;
    --text-muted: #94a3b8;
    --text-dark: #1e293b;

    /* Sacred gradients */
    --gradient-heaven: linear-gradient(135deg, #1e3a5f 0%, #0c1425 35%, #1a1a3e 65%, #2d1b4e 100%);
    --gradient-gold: linear-gradient(135deg, #fcd34d 0%, #f59e0b 50%, #d97706 100%);
    --gradient-divine: linear-gradient(135deg, rgba(251,191,36,0.15) 0%, rgba(14,165,233,0.1) 50%, rgba(168,85,247,0.15) 100%);
    --gradient-panel: linear-gradient(145deg, rgba(255,255,255,0.08) 0%, rgba(255,255,255,0.03) 100%);
    
    --border-divine: 1px solid rgba(251, 191, 36, 0.25);
    --border-soft: 1px solid rgba(255, 255, 255, 0.1);
    --shadow-gold: 0 0 30px rgba(251, 191, 36, 0.15);
    --shadow-divine: 0 8px 32px rgba(0, 0, 0, 0.3), 0 0 60px rgba(251, 191, 36, 0.08);
    
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    
    --font-heading: 'Cinzel', 'Georgia', serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--bg-dark);
    min-height: 100vh;
    overflow-x: hidden;
}

a { color: var(--gold-300); text-decoration: none; transition: all 0.25s ease; }
a:hover { color: var(--gold-400); text-shadow: 0 0 8px var(--gold-glow); }

img { max-width: 100%; height: auto; }

.container { max-width: 1280px; margin: 0 auto; padding: 0 20px; }

/* ============================================
   HEAVENLY BACKGROUND
   ============================================ */
.heaven-bg {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: var(--gradient-heaven);
    z-index: -10;
    overflow: hidden;
}

.clouds { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }

.cloud {
    position: absolute;
    font-size: 120px;
    opacity: 0.08;
    color: white;
    animation: float-cloud linear infinite;
    filter: blur(2px);
}
.cloud-1 { top: 5%; left: -20%; animation-duration: 80s; font-size: 150px; }
.cloud-2 { top: 20%; left: -30%; animation-duration: 120s; animation-delay: -30s; font-size: 100px; opacity:0.05; }
.cloud-3 { top: 45%; left: -25%; animation-duration: 100s; animation-delay: -60s; font-size: 180px; }
.cloud-4 { top: 65%; left: -15%; animation-duration: 90s; animation-delay: -15s; font-size: 90px; opacity:0.06; }
.cloud-5 { top: 85%; left: -30%; animation-duration: 110s; animation-delay: -45s; font-size: 140px; }

@keyframes float-cloud {
    from { transform: translateX(0); }
    to { transform: translateX(calc(100vw + 30%)); }
}

.stars { position: absolute; inset: 0; pointer-events: none; }
.star {
    position: absolute;
    width: 2px; height: 2px;
    background: var(--gold-300);
    border-radius: 50%;
    animation: twinkle ease-in-out infinite;
    box-shadow: 0 0 6px var(--gold-400);
}
@keyframes twinkle {
    0%, 100% { opacity: 0.2; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.5); }
}

.light-rays {
    position: absolute;
    top: -200px;
    left: 50%;
    transform: translateX(-50%);
    width: 1000px;
    height: 1000px;
    background: radial-gradient(ellipse at center, rgba(251,191,36,0.08) 0%, transparent 60%);
    pointer-events: none;
    animation: pulse-glow 8s ease-in-out infinite;
}
@keyframes pulse-glow {
    0%, 100% { opacity: 0.5; transform: translateX(-50%) scale(1); }
    50% { opacity: 1; transform: translateX(-50%) scale(1.1); }
}

/* ============================================
   HEADER
   ============================================ */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: linear-gradient(180deg, rgba(12,20,37,0.95) 0%, rgba(12,20,37,0.85) 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: var(--border-divine);
    box-shadow: var(--shadow-gold);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 0;
    gap: 20px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}
.logo-icon {
    font-size: 40px;
    filter: drop-shadow(0 0 12px var(--gold-glow));
    animation: halo-pulse 4s ease-in-out infinite;
}
@keyframes halo-pulse {
    0%, 100% { filter: drop-shadow(0 0 12px var(--gold-glow)); transform: scale(1); }
    50% { filter: drop-shadow(0 0 24px var(--gold-glow)); transform: scale(1.05); }
}
.logo-text { display: flex; flex-direction: column; line-height: 1; }
.logo-main {
    font-family: var(--font-heading);
    font-size: 26px;
    font-weight: 900;
    color: white;
    letter-spacing: 1px;
}
.logo-slogan {
    font-size: 11px;
    color: var(--gold-300);
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-top: 3px;
    font-style: italic;
}
.gold {
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: none;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 4px;
}
.nav-link {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 500;
    transition: all 0.3s;
    text-decoration: none;
}
.nav-link:hover {
    color: var(--gold-300);
    background: rgba(251,191,36,0.08);
    box-shadow: 0 0 15px rgba(251,191,36,0.1);
    text-shadow: none;
}
.nav-icon { font-size: 16px; }

.user-area { display: flex; align-items: center; gap: 10px; }

.user-menu { position: relative; }
.user-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 14px 6px 6px;
    border-radius: 50px;
    background: var(--gradient-panel);
    border: var(--border-soft);
    text-decoration: none;
    transition: all 0.3s;
}
.user-link:hover {
    border-color: var(--gold-500);
    box-shadow: 0 0 15px rgba(251,191,36,0.2);
}
.user-avatar {
    width: 34px; height: 34px;
    border-radius: 50%;
    border: 2px solid var(--gold-400);
    object-fit: cover;
    box-shadow: 0 0 10px rgba(251,191,36,0.3);
}
.user-name { font-weight: 600; font-size: 13px; }

.user-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    min-width: 220px;
    background: rgba(17,29,54,0.97);
    backdrop-filter: blur(20px);
    border: var(--border-divine);
    border-radius: var(--radius-md);
    padding: 8px;
    box-shadow: var(--shadow-divine);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.25s;
}
.user-menu:hover .user-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.user-dropdown a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 13px;
}
.user-dropdown a:hover {
    background: rgba(251,191,36,0.1);
    color: var(--gold-300);
    text-shadow: none;
}
.dropdown-divider {
    height: 1px;
    background: rgba(255,255,255,0.1);
    margin: 6px 0;
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: var(--radius-md);
    border: none;
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); text-shadow: none; }
.btn:active { transform: translateY(0); }

.btn-gold {
    background: var(--gradient-gold);
    color: var(--bg-dark);
    box-shadow: 0 4px 15px rgba(251,191,36,0.35);
}
.btn-gold:hover {
    box-shadow: 0 6px 25px rgba(251,191,36,0.5);
    color: var(--bg-dark);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--gold-400);
    color: var(--gold-300);
}
.btn-outline:hover {
    background: rgba(251,191,36,0.1);
    border-color: var(--gold-300);
    color: var(--gold-200);
}

.btn-primary {
    background: linear-gradient(135deg, var(--sky-500), var(--sky-600));
    color: white;
    box-shadow: 0 4px 15px rgba(14,165,233,0.3);
}
.btn-primary:hover { box-shadow: 0 6px 25px rgba(14,165,233,0.5); color: white; }

.btn-secondary {
    background: rgba(255,255,255,0.08);
    color: var(--text-primary);
    border: var(--border-soft);
}
.btn-secondary:hover { background: rgba(255,255,255,0.15); color: white; }

.btn-danger {
    background: linear-gradient(135deg, #ef4444, #b91c1c);
    color: white;
}
.btn-sm { padding: 6px 12px; font-size: 12px; }
.btn-lg { padding: 14px 28px; font-size: 15px; }

/* ============================================
   MAIN CONTENT
   ============================================ */
.site-main { padding: 30px 0 60px; }

/* Hero section */
.hero {
    text-align: center;
    padding: 50px 20px 40px;
    margin-bottom: 30px;
    position: relative;
}
.hero h1 {
    font-family: var(--font-heading);
    font-size: clamp(32px, 5vw, 56px);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 16px;
    color: white;
    text-shadow: 0 0 40px rgba(251,191,36,0.4), 0 2px 10px rgba(0,0,0,0.5);
}
.hero-subtitle {
    font-size: clamp(14px, 2vw, 18px);
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto 30px;
    font-style: italic;
}
.hero-actions { display: flex; gap: 15px; justify-content: center; flex-wrap: wrap; }

.hero-halo {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 600px; height: 600px;
    background: radial-gradient(circle, rgba(251,191,36,0.12) 0%, transparent 60%);
    z-index: -1;
    pointer-events: none;
}

/* Stats bar */
.stats-bar {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 15px;
    margin-bottom: 30px;
}
.stat-card {
    background: var(--gradient-panel);
    backdrop-filter: blur(10px);
    border: var(--border-divine);
    border-radius: var(--radius-lg);
    padding: 20px;
    text-align: center;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}
.stat-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: var(--gradient-gold);
}
.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-divine);
    border-color: var(--gold-400);
}
.stat-icon { font-size: 28px; margin-bottom: 8px; }
.stat-value {
    font-family: var(--font-heading);
    font-size: 24px;
    font-weight: 700;
    color: var(--gold-300);
}
.stat-label { font-size: 12px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1px; margin-top: 4px; }

/* Panels */
.panel {
    background: var(--gradient-panel);
    backdrop-filter: blur(10px);
    border: var(--border-divine);
    border-radius: var(--radius-lg);
    margin-bottom: 24px;
    overflow: hidden;
    box-shadow: var(--shadow-divine);
}
.panel-header {
    padding: 16px 24px;
    background: linear-gradient(90deg, rgba(251,191,36,0.1) 0%, rgba(251,191,36,0.03) 100%);
    border-bottom: var(--border-divine);
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.panel-header h2 {
    font-family: var(--font-heading);
    font-size: 17px;
    font-weight: 700;
    color: var(--gold-300);
    display: flex;
    align-items: center;
    gap: 10px;
}
.panel-body { padding: 20px 24px; }

/* Tables */
table.torrent-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}
.torrent-table th {
    padding: 12px 14px;
    text-align: left;
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--gold-300);
    background: rgba(251,191,36,0.05);
    border-bottom: 2px solid rgba(251,191,36,0.2);
}
.torrent-table td {
    padding: 12px 14px;
    border-bottom: var(--border-soft);
    font-size: 13px;
    vertical-align: middle;
}
.torrent-table tr {
    transition: all 0.2s;
}
.torrent-table tbody tr:hover {
    background: rgba(251,191,36,0.05);
}
.torrent-table tbody tr:last-child td { border-bottom: none; }
.torrent-table .colhead {
    font-weight: 600;
    color: var(--gold-400);
}
.torrent-table .rowhead {
    font-weight: 600;
    color: var(--gold-300);
    text-align: right;
    white-space: nowrap;
    padding-right: 16px;
}

.cat-icon {
    font-size: 22px;
    display: inline-block;
    vertical-align: middle;
}
.torrent-name {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 14px;
}
.torrent-name:hover { color: var(--gold-300); }
.torrent-meta { font-size: 11px; color: var(--text-muted); margin-top: 3px; }

.seed { color: #34d399; font-weight: 600; }
.leech { color: #f87171; font-weight: 600; }
.completed { color: var(--sky-300); }

/* Freeleech badge */
.badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.badge-freeleech { background: linear-gradient(135deg,#22c55e,#16a34a); color: white; }
.badge-new { background: var(--gradient-gold); color: var(--bg-dark); }
.badge-hot { background: linear-gradient(135deg,#ef4444,#b91c1c); color: white; }

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 4px;
    flex-wrap: wrap;
    margin-top: 20px;
}
.page-link {
    padding: 8px 14px;
    border-radius: var(--radius-sm);
    background: var(--gradient-panel);
    border: var(--border-soft);
    color: var(--text-secondary);
    font-size: 13px;
    text-decoration: none;
    transition: all 0.2s;
}
.page-link:hover {
    background: rgba(251,191,36,0.15);
    border-color: var(--gold-400);
    color: var(--gold-300);
    text-shadow: none;
}
.page-link.active {
    background: var(--gradient-gold);
    color: var(--bg-dark);
    border-color: var(--gold-400);
    font-weight: 700;
}
.page-dots {
    padding: 8px 6px;
    color: var(--text-muted);
}

/* Forms */
.form-group { margin-bottom: 18px; }
.form-label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    font-size: 13px;
    color: var(--gold-300);
}
.form-input, .form-textarea, .form-select {
    width: 100%;
    padding: 11px 14px;
    border-radius: var(--radius-md);
    border: var(--border-soft);
    background: rgba(0,0,0,0.3);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 14px;
    transition: all 0.3s;
    outline: none;
}
.form-input:focus, .form-textarea:focus, .form-select:focus {
    border-color: var(--gold-400);
    box-shadow: 0 0 0 3px rgba(251,191,36,0.15);
    background: rgba(0,0,0,0.4);
}
.form-textarea { min-height: 120px; resize: vertical; }
.form-select { cursor: pointer; }
.form-help { font-size: 12px; color: var(--text-muted); margin-top: 4px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* Auth pages */
.auth-container {
    max-width: 460px;
    margin: 40px auto;
    padding: 36px;
    background: var(--gradient-panel);
    backdrop-filter: blur(20px);
    border: var(--border-divine);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-divine);
    position: relative;
}
.auth-container::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: var(--gradient-gold);
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
}
.auth-header {
    text-align: center;
    margin-bottom: 28px;
}
.auth-header .logo-icon { font-size: 48px; display: block; margin-bottom: 12px; }
.auth-header h1 {
    font-family: var(--font-heading);
    font-size: 28px;
    color: white;
}
.auth-header p { color: var(--text-muted); margin-top: 6px; }
.auth-submit { width: 100%; margin-top: 8px; }
.auth-alt { text-align: center; margin-top: 20px; font-size: 13px; color: var(--text-muted); }

/* Flash messages */
.flash {
    padding: 14px 20px;
    border-radius: var(--radius-md);
    margin: 20px 0;
    border-left: 4px solid;
    font-size: 14px;
}
.flash-success { background: rgba(34,197,94,0.12); border-color: #22c55e; color: #86efac; }
.flash-error { background: rgba(239,68,68,0.12); border-color: #ef4444; color: #fca5a5; }
.flash-warning { background: rgba(251,191,36,0.12); border-color: #fbbf24; color: #fde68a; }
.flash-info { background: rgba(14,165,233,0.12); border-color: #0ea5e9; color: #7dd3fc; }

.error-box, .success-box {
    max-width: 600px;
    margin: 40px auto;
    padding: 30px;
    background: var(--gradient-panel);
    border-radius: var(--radius-lg);
    text-align: center;
}
.error-box { border: 1px solid rgba(239,68,68,0.3); }
.success-box { border: 1px solid rgba(34,197,94,0.3); }
.error-box h2 { color: #fca5a5; margin-bottom: 10px; }
.success-box h2 { color: #86efac; margin-bottom: 10px; }

/* Category grid */
.cat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 12px;
}
.cat-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px 14px;
    background: var(--gradient-panel);
    border: var(--border-soft);
    border-radius: var(--radius-md);
    text-decoration: none;
    color: var(--text-primary);
    transition: all 0.3s;
    text-align: center;
}
.cat-card:hover {
    transform: translateY(-4px);
    border-color: var(--gold-400);
    box-shadow: 0 8px 25px rgba(251,191,36,0.2);
    color: var(--gold-300);
}
.cat-card-icon { font-size: 36px; margin-bottom: 8px; }
.cat-card-name { font-weight: 600; font-size: 13px; }
.cat-card-count { font-size: 11px; color: var(--text-muted); margin-top: 4px; }

/* Sidebar layout */
.content-grid {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 24px;
}
.sidebar-panel {
    background: var(--gradient-panel);
    border: var(--border-divine);
    border-radius: var(--radius-lg);
    margin-bottom: 20px;
    overflow: hidden;
}
.sidebar-panel-header {
    padding: 12px 16px;
    background: rgba(251,191,36,0.08);
    border-bottom: var(--border-divine);
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--gold-300);
    font-size: 14px;
}
.sidebar-panel-body { padding: 14px; }
.sidebar-list { list-style: none; }
.sidebar-list li { padding: 6px 0; border-bottom: var(--border-soft); font-size: 13px; }
.sidebar-list li:last-child { border-bottom: none; }

/* Shoutbox */
.shoutbox-messages {
    max-height: 280px;
    overflow-y: auto;
    padding: 8px;
    font-size: 12px;
}
.shout-msg {
    padding: 6px 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}
.shout-user { font-weight: 700; }
.shout-text { color: var(--text-secondary); }
.shout-time { color: var(--text-muted); font-size: 10px; }
.shout-input {
    display: flex;
    gap: 8px;
    padding: 10px;
    border-top: var(--border-soft);
}
.shout-input input {
    flex: 1;
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    border: var(--border-soft);
    background: rgba(0,0,0,0.3);
    color: white;
    font-size: 12px;
}

/* Footer */
.site-footer {
    margin-top: 60px;
    padding: 50px 0 20px;
    background: linear-gradient(180deg, transparent 0%, rgba(0,0,0,0.4) 100%);
    border-top: var(--border-divine);
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}
.footer-col h4 {
    font-family: var(--font-heading);
    color: var(--gold-300);
    font-size: 15px;
    margin-bottom: 16px;
    font-weight: 700;
}
.footer-title {
    font-family: var(--font-heading);
    font-size: 22px;
    font-weight: 900;
    color: white;
    margin-bottom: 12px;
}
.footer-desc { color: var(--text-muted); font-size: 13px; line-height: 1.7; }
.footer-angels { font-size: 24px; margin-top: 16px; letter-spacing: 8px; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 8px; }
.footer-col ul li a {
    color: var(--text-secondary);
    font-size: 13px;
    text-decoration: none;
}
.footer-col ul li a:hover { color: var(--gold-300); }
.footer-stats li { color: var(--text-muted); font-size: 13px; }
.footer-stats li strong { color: var(--gold-300); }

.footer-bottom {
    text-align: center;
    padding-top: 24px;
    border-top: var(--border-soft);
    color: var(--text-muted);
    font-size: 13px;
}
.footer-small { font-size: 11px; margin-top: 6px; opacity: 0.7; }

/* Quote & code boxes */
.quote-box {
    margin: 10px 0;
    padding: 12px 16px;
    background: rgba(251,191,36,0.06);
    border-left: 3px solid var(--gold-400);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    color: var(--text-secondary);
    font-style: italic;
}
.code-box {
    margin: 10px 0;
    padding: 12px 16px;
    background: rgba(0,0,0,0.4);
    border: var(--border-soft);
    border-radius: var(--radius-sm);
    font-family: 'Courier New', monospace;
    font-size: 12px;
    color: var(--sky-300);
    overflow-x: auto;
}

.rating-stars { color: var(--gold-400); letter-spacing: 2px; font-size: 16px; }

/* Comments */
.comments-section { margin-top: 10px; }
.comment {
    padding: 14px;
    margin-bottom: 12px;
    background: var(--gradient-panel);
    border: var(--border-soft);
    border-radius: var(--radius-md);
}
.comment-header {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 8px;
    padding-bottom: 8px;
    border-bottom: var(--border-soft);
}
.comment-body { font-size: 13px; color: var(--text-secondary); }

/* Detail page */
.detail-grid {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 24px;
}
.detail-cover img {
    width: 100%;
    border-radius: var(--radius-md);
    border: var(--border-divine);
    box-shadow: var(--shadow-divine);
}
.detail-info dt {
    font-weight: 600;
    color: var(--gold-300);
    padding: 8px 0;
}
.detail-info dd {
    padding: 8px 0;
    border-bottom: var(--border-soft);
    color: var(--text-secondary);
}

/* Profile */
.profile-header {
    display: flex;
    gap: 24px;
    align-items: flex-start;
    padding: 24px;
    background: var(--gradient-panel);
    border: var(--border-divine);
    border-radius: var(--radius-lg);
    margin-bottom: 20px;
}
.profile-avatar {
    width: 120px; height: 120px;
    border-radius: 50%;
    border: 3px solid var(--gold-400);
    box-shadow: 0 0 20px rgba(251,191,36,0.3);
    object-fit: cover;
}
.profile-info h1 {
    font-family: var(--font-heading);
    font-size: 28px;
    margin-bottom: 4px;
}
.profile-class {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    background: var(--gradient-gold);
    color: var(--bg-dark);
    font-weight: 700;
    font-size: 12px;
}
.ratio-bar {
    height: 8px;
    border-radius: 4px;
    background: rgba(0,0,0,0.3);
    overflow: hidden;
    margin-top: 8px;
}
.ratio-fill {
    height: 100%;
    background: var(--gradient-gold);
    border-radius: 4px;
    transition: width 0.5s;
}

/* Progress bar */
.progress-bar {
    height: 6px;
    background: rgba(0,0,0,0.3);
    border-radius: 3px;
    overflow: hidden;
    margin-top: 4px;
}
.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--sky-400), var(--gold-400));
    border-radius: 3px;
}

/* Responsive */
@media (max-width: 1024px) {
    .content-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 30px; }
}

@media (max-width: 768px) {
    .main-nav {
        display: none;
        position: absolute;
        top: 100%; left: 0; right: 0;
        flex-direction: column;
        background: rgba(12,20,37,0.98);
        padding: 16px;
        border-bottom: var(--border-divine);
    }
    .main-nav.show { display: flex; }
    .nav-toggle { display: block; }
    .form-row { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .detail-grid { grid-template-columns: 1fr; }
    .profile-header { flex-direction: column; align-items: center; text-align: center; }
    .stats-bar { grid-template-columns: repeat(2, 1fr); }
}

/* Scrollbar */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg-dark); }
::-webkit-scrollbar-thumb {
    background: linear-gradient(var(--gold-500), var(--gold-600));
    border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover { background: var(--gold-400); }

/* Selection */
::selection { background: var(--gold-400); color: var(--bg-dark); }

/* Utility */
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-gold { color: var(--gold-300); }
.text-green { color: #34d399; }
.text-red { color: #f87171; }
.mb-0 { margin-bottom: 0; }
.mb-2 { margin-bottom: 8px; }
.mb-4 { margin-bottom: 16px; }
.mt-4 { margin-top: 16px; }
.flex { display: flex; }
.flex-between { display: flex; justify-content: space-between; align-items: center; }
.gap-2 { gap: 8px; }
.gap-4 { gap: 16px; }
.nowrap { white-space: nowrap; }
.hidden { display: none !important; }

/* Installer */
.installer {
    max-width: 700px;
    margin: 60px auto;
    padding: 40px;
    background: var(--gradient-panel);
    backdrop-filter: blur(20px);
    border: var(--border-divine);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-divine);
}
.installer h1 {
    font-family: var(--font-heading);
    font-size: 32px;
    text-align: center;
    margin-bottom: 8px;
}
.installer .subtitle { text-align: center; color: var(--text-muted); margin-bottom: 30px; }
.install-success {
    text-align: center;
    padding: 20px;
}
.install-success .icon { font-size: 64px; margin-bottom: 16px; }
