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

:root {
    --bg: #0d1117;
    --surface: #161b22;
    --card: #1c2333;
    --card-hover: #212d42;
    --border: #30363d;
    --text: #e6edf3;
    --text-muted: #8b949e;
    --accent: #7c3aed;
    --accent-hover: #6d28d9;
    --accent-light: rgba(124, 58, 237, 0.12);
    --danger: #ef4444;
    --danger-hover: #dc2626;
    --success: #22c55e;
    --success-hover: #16a34a;
    --warning: #f59e0b;
    --info: #3b82f6;
    --emerald: #2ecc71;
    --diamond: #00e5ff;
    --gold: #ffaa00;
    --radius: 12px;
    --radius-sm: 8px;
    --radius-lg: 16px;
    --shadow: 0 1px 3px rgba(0,0,0,0.3), 0 1px 2px rgba(0,0,0,0.2);
    --shadow-lg: 0 10px 25px rgba(0,0,0,0.4);
    --transition: 0.2s ease;
    --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    --nav-height: 64px;
    --gradient: linear-gradient(135deg, #7c3aed, #4f46e5);
    --gradient-hover: linear-gradient(135deg, #6d28d9, #4338ca);
}

[data-theme="light"] {
    --bg: #f1f5f9;
    --surface: #ffffff;
    --card: #ffffff;
    --card-hover: #f8fafc;
    --border: #e2e8f0;
    --text: #0f172a;
    --text-muted: #64748b;
    --accent: #7c3aed;
    --accent-hover: #6d28d9;
    --accent-light: rgba(124, 58, 237, 0.08);
    --shadow: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
    --shadow-lg: 0 10px 25px rgba(0,0,0,0.08);
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
    transition: background var(--transition), color var(--transition);
}

a {
    color: var(--accent);
    text-decoration: none;
    transition: color var(--transition);
}

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

/* Navigation */
.navbar {
    position: sticky;
    top: 0;
    z-index: 100;
    height: var(--nav-height);
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(12px);
    transition: background var(--transition), border-color var(--transition);
}

.navbar-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.navbar-brand {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--text);
    letter-spacing: 0.05em;
    display: flex;
    align-items: center;
    gap: 8px;
}

.navbar-brand:hover {
    color: var(--accent);
}

.navbar-links {
    display: flex;
    align-items: center;
    gap: 4px;
}

.navbar-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: var(--radius-sm);
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 500;
    transition: all var(--transition);
}

.navbar-link:hover {
    color: var(--text);
    background: var(--accent-light);
}

.navbar-link.active {
    color: var(--accent);
    background: var(--accent-light);
}

.navbar-link.admin-link {
    color: var(--warning);
}

.navbar-link.admin-link:hover {
    background: rgba(245, 158, 11, 0.1);
}

/* Theme Toggle */
.theme-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: transparent;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 1.1rem;
    transition: all var(--transition);
    margin-left: 8px;
}

.theme-toggle:hover {
    color: var(--text);
    border-color: var(--accent);
    background: var(--accent-light);
}

.theme-toggle .light-icon { display: none; }
.theme-toggle .dark-icon { display: block; }

[data-theme="light"] .theme-toggle .light-icon { display: block; }
[data-theme="light"] .theme-toggle .dark-icon { display: none; }

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 32px 24px;
}

.container-sm {
    max-width: 480px;
    margin: 0 auto;
    padding: 60px 24px;
}

/* Cards */
.card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow);
    transition: all var(--transition);
}

.card:hover {
    border-color: rgba(124, 58, 237, 0.2);
}

.card-glass {
    background: var(--surface);
    backdrop-filter: blur(12px);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-weight: 600;
    border: 1px solid transparent;
    cursor: pointer;
    transition: all var(--transition);
    font-family: var(--font);
    text-decoration: none;
    line-height: 1;
}

.btn-primary {
    background: var(--gradient);
    color: white;
    border-color: transparent;
}

.btn-primary:hover {
    background: var(--gradient-hover);
    border-color: transparent;
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(124, 58, 237, 0.3);
}

.btn-secondary {
    background: transparent;
    color: var(--text);
    border-color: var(--border);
}

.btn-secondary:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: var(--accent-light);
}

.btn-danger {
    background: var(--danger);
    color: white;
    border-color: var(--danger);
}

.btn-danger:hover {
    background: var(--danger-hover);
    border-color: var(--danger-hover);
    color: white;
}

.btn-success {
    background: var(--success);
    color: white;
    border-color: var(--success);
}

.btn-success:hover {
    background: var(--success-hover);
    border-color: var(--success-hover);
    color: white;
}

.btn-sm {
    padding: 6px 12px;
    font-size: 0.8rem;
}

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

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

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

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--text);
    font-size: 0.95rem;
    font-family: var(--font);
    transition: all var(--transition);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-light);
}

.form-textarea {
    min-height: 200px;
    resize: vertical;
    font-family: 'JetBrains Mono', 'Fira Code', monospace;
}

.form-select {
    cursor: pointer;
}

.form-checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.form-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--accent);
    cursor: pointer;
}

.form-error {
    color: var(--danger);
    font-size: 0.85rem;
    margin-top: 6px;
}

/* Tables */
.table-wrapper {
    overflow-x: auto;
    border-radius: var(--radius);
    border: 1px solid var(--border);
}

table {
    width: 100%;
    border-collapse: collapse;
}

th, td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

th {
    background: var(--surface);
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
}

td {
    font-size: 0.9rem;
}

tr:last-child td {
    border-bottom: none;
}

tr:hover td {
    background: var(--card-hover);
}

/* Badges */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.badge-admin {
    background: rgba(59, 130, 246, 0.15);
    color: var(--info);
}

.badge-blocked {
    background: rgba(239, 68, 68, 0.15);
    color: var(--danger);
}

.badge-published {
    background: rgba(34, 197, 94, 0.15);
    color: var(--success);
}

.badge-draft {
    background: rgba(245, 158, 11, 0.15);
    color: var(--warning);
}

/* News */
.news-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.news-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px;
    transition: all var(--transition);
}

.news-card:hover {
    border-color: rgba(124, 58, 237, 0.2);
    box-shadow: var(--shadow-lg);
}

.news-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text);
}

.news-meta {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.news-content {
    line-height: 1.7;
    color: var(--text);
}

.news-content img {
    max-width: 100%;
    border-radius: var(--radius-sm);
}

.news-content code {
    background: var(--surface);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.85em;
    font-family: 'JetBrains Mono', 'Fira Code', monospace;
}

.news-content pre {
    background: var(--surface);
    padding: 16px;
    border-radius: var(--radius-sm);
    overflow-x: auto;
    border: 1px solid var(--border);
    font-family: 'JetBrains Mono', 'Fira Code', monospace;
    font-size: 0.85rem;
}

.news-content blockquote {
    border-left: 3px solid var(--accent);
    padding-left: 16px;
    color: var(--text-muted);
    margin: 16px 0;
}

.news-content h1, .news-content h2, .news-content h3,
.news-content h4, .news-content h5, .news-content h6 {
    margin-top: 24px;
    margin-bottom: 12px;
    color: var(--text);
}

.news-content p {
    margin-bottom: 12px;
}

.news-content ul, .news-content ol {
    margin-bottom: 12px;
    padding-left: 24px;
}

.news-content a {
    color: var(--accent);
}

/* Auth pages */
.auth-card {
    max-width: 420px;
    margin: 0 auto;
    padding: 40px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

.auth-title {
    font-size: 1.5rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 8px;
}

.auth-subtitle {
    text-align: center;
    color: var(--text-muted);
    margin-bottom: 32px;
    font-size: 0.9rem;
}

.auth-footer {
    text-align: center;
    margin-top: 24px;
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Stats grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 24px 0;
}

.stat-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px;
    text-align: center;
    transition: all var(--transition);
}

.stat-card:hover {
    border-color: rgba(124, 58, 237, 0.2);
    transform: translateY(-2px);
}

.stat-value {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--accent);
    line-height: 1;
}

.stat-label {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-top: 8px;
}

/* Profile page */
.profile-header {
    display: flex;
    gap: 32px;
    align-items: center;
    flex-wrap: wrap;
}

.profile-avatar {
    width: 96px;
    height: 128px;
    border-radius: var(--radius-sm);
    image-rendering: pixelated;
}

.profile-info {
    flex: 1;
}

.profile-info p {
    margin: 4px 0;
    font-size: 0.95rem;
}

.profile-info strong {
    color: var(--text-muted);
    font-weight: 500;
}

/* Skin collection */
.skin-collection {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 16px;
    margin-top: 20px;
}

.skin-item {
    background: var(--surface);
    border: 2px solid var(--border);
    border-radius: var(--radius);
    padding: 12px;
    text-align: center;
    transition: all var(--transition);
}

.skin-item:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.skin-item.active {
    border-color: var(--success);
    background: rgba(34, 197, 94, 0.05);
}

.skin-preview {
    position: relative;
    display: flex;
    justify-content: center;
}

.skin-preview canvas {
    border-radius: var(--radius-sm);
    background: repeating-conic-gradient(var(--surface) 0% 25%, transparent 0% 50%) 50% / 16px 16px;
}

.skin-info {
    margin-top: 8px;
}

.skin-name {
    font-weight: 600;
    font-size: 0.9rem;
}

.skin-type {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.skin-actions {
    margin-top: 10px;
    display: flex;
    gap: 6px;
    justify-content: center;
}

.skin-actions .btn {
    flex: 1;
}

/* Upload form */
.upload-area {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
    margin-top: 12px;
}

.upload-area input[type="file"] {
    flex: 1;
    padding: 8px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--text);
    font-size: 0.9rem;
    min-width: 200px;
}

.upload-area input[type="file"]::file-selector-button {
    padding: 6px 14px;
    border-radius: 6px;
    border: 1px solid var(--border);
    background: var(--card);
    color: var(--text);
    cursor: pointer;
    font-family: var(--font);
    margin-right: 10px;
    transition: all var(--transition);
}

.upload-area input[type="file"]::file-selector-button:hover {
    background: var(--accent-light);
    border-color: var(--accent);
}

.upload-msg {
    margin-top: 8px;
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* Admin nav */
.admin-nav {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border);
}

/* Markdown preview */
.preview-box {
    margin-top: 20px;
    padding: 20px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
}

.preview-box h3 {
    margin-bottom: 12px;
    color: var(--text-muted);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Page title */
.page-title {
    font-size: 1.75rem;
    font-weight: 800;
    margin-bottom: 24px;
}

.page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 12px;
}

.page-header .page-title {
    margin-bottom: 0;
}

/* Section cards */
.section-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    margin-bottom: 24px;
}

.section-card h2 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 16px;
}

/* Alerts */
.alert {
    padding: 14px 18px;
    border-radius: var(--radius-sm);
    margin-bottom: 20px;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.alert-error {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.2);
    color: var(--danger);
}

.alert-success {
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.2);
    color: var(--success);
}

/* Empty state */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
}

.empty-state p {
    font-size: 1rem;
    margin-bottom: 16px;
}

/* Section divider */
.section-divider {
    height: 1px;
    background: var(--border);
    margin: 32px 0;
    border: none;
}

/* Utilities */
.text-muted { color: var(--text-muted); }
.text-center { text-align: center; }
.mt-4 { margin-top: 16px; }
.mb-4 { margin-bottom: 16px; }
.mb-8 { margin-bottom: 32px; }
.gap-4 { gap: 16px; }
.flex { display: flex; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }

/* Responsive */
@media (max-width: 768px) {
    .navbar-inner {
        padding: 0 16px;
    }
    .container {
        padding: 20px 16px;
    }
    .profile-header {
        flex-direction: column;
        text-align: center;
    }
    .skin-collection {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }
    .stats-grid {
        grid-template-columns: 1fr 1fr;
    }
    .page-header {
        flex-direction: column;
        align-items: flex-start;
    }
    .upload-area {
        flex-direction: column;
    }
    .upload-area input[type="file"] {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .hamburger { display: flex; }
    .navbar-links {
        position: fixed;
        top: var(--nav-height);
        left: 0;
        right: 0;
        background: var(--surface);
        border-bottom: 1px solid var(--border);
        flex-direction: column;
        padding: 8px;
        gap: 2px;
        transform: translateY(-100%);
        opacity: 0;
        pointer-events: none;
        transition: all var(--transition);
        z-index: 99;
    }
    .navbar-links.open {
        transform: translateY(0);
        opacity: 1;
        pointer-events: auto;
    }
    .navbar-links .navbar-link {
        width: 100%;
        padding: 12px 14px;
    }
    .navbar-links .navbar-link span { display: inline; }
    .theme-toggle { margin-left: auto; }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
    .hero h1 { font-size: 1.5rem; }
    .profile-header-card { flex-direction: column; text-align: center; }
    .comment-meta { flex-wrap: wrap; }
}

/* ===== GRADIENT UTILITIES ===== */
.gradient-text {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ===== HERO SECTION ===== */
.hero {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 48px 40px;
    margin-bottom: 32px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(124, 58, 237, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.hero-content { position: relative; z-index: 1; }

.hero h1 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 8px;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero p {
    color: var(--text-muted);
    font-size: 1.05rem;
    margin-bottom: 24px;
    max-width: 600px;
}

.hero-stats {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
}

.hero-stat {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
    color: var(--text);
    font-weight: 600;
}

.hero-stat svg {
    width: 20px;
    height: 20px;
    color: var(--accent);
}

/* ===== ANNOUNCEMENT BANNER ===== */
.announcement {
    background: var(--gradient);
    color: white;
    text-align: center;
    padding: 10px 24px;
    font-size: 0.9rem;
    font-weight: 500;
}

.announcement-close {
    background: none;
    border: none;
    color: rgba(255,255,255,0.7);
    cursor: pointer;
    margin-left: 12px;
    font-size: 1.1rem;
}

.announcement-close:hover { color: white; }

/* ===== TOAST NOTIFICATIONS ===== */
.toast-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-width: 360px;
}

.toast {
    padding: 14px 18px;
    border-radius: var(--radius-sm);
    background: var(--card);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
    font-size: 0.9rem;
    animation: slideIn 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
}

.toast-success { border-color: var(--success); }
.toast-error { border-color: var(--danger); }
.toast-info { border-color: var(--info); }

@keyframes slideIn {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

/* ===== COMMENTS ===== */
.comments-section {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
}

.comments-title {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--text-muted);
}

.comment {
    padding: 16px;
    border-radius: var(--radius-sm);
    background: var(--surface);
    margin-bottom: 12px;
}

.comment-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    font-size: 0.85rem;
}

.comment-author {
    font-weight: 600;
    color: var(--accent);
}

.comment-time {
    color: var(--text-muted);
    font-size: 0.8rem;
}

.comment-content { font-size: 0.9rem; line-height: 1.6; }
.comment-content p { margin-bottom: 4px; }

.comment-form {
    margin-top: 16px;
    display: flex;
    gap: 8px;
}

.comment-form textarea {
    flex: 1;
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--text);
    font-size: 0.9rem;
    font-family: var(--font);
    resize: vertical;
    min-height: 60px;
    transition: border-color var(--transition);
}

.comment-form textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-light);
}

.empty-comments {
    color: var(--text-muted);
    font-size: 0.9rem;
    text-align: center;
    padding: 20px;
}

/* ===== REACTIONS ===== */
.reactions {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 16px;
    padding-top: 12px;
}

.reaction-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--text-muted);
    font-size: 0.85rem;
    cursor: pointer;
    transition: all var(--transition);
    font-family: var(--font);
}

.reaction-btn:hover {
    border-color: var(--accent);
    background: var(--accent-light);
}

.reaction-btn.active {
    border-color: var(--accent);
    background: var(--accent-light);
    color: var(--accent);
}

.reaction-btn .emoji { font-size: 1rem; }
.reaction-btn .count { font-weight: 600; }
.reaction-btn.add-reaction { font-size: 1.1rem; padding: 4px 8px; }

/* ===== PAGINATION ===== */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 24px;
}

.page-btn {
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--text);
    font-size: 0.9rem;
    cursor: pointer;
    font-family: var(--font);
    transition: all var(--transition);
}

.page-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: var(--accent-light);
}

.page-btn.active {
    background: var(--gradient);
    border-color: transparent;
    color: white;
}

.page-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

/* ===== SKELETON LOADING ===== */
.skeleton {
    background: var(--card);
    border-radius: var(--radius-sm);
    position: relative;
    overflow: hidden;
}

.skeleton::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(124, 58, 237, 0.05), transparent);
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.skeleton-text { height: 16px; margin-bottom: 8px; width: 80%; }
.skeleton-title { height: 24px; margin-bottom: 12px; width: 60%; }
.skeleton-card { height: 200px; }
.skeleton-skin { height: 240px; }

/* ===== PUBLIC PROFILE ===== */
.profile-header-card {
    display: flex;
    gap: 32px;
    align-items: flex-start;
    flex-wrap: wrap;
}

.profile-avatar-large {
    width: 160px;
    height: 200px;
    border-radius: var(--radius);
    image-rendering: pixelated;
    background: var(--surface);
}

.profile-info-detailed { flex: 1; min-width: 200px; }

.profile-username {
    font-size: 1.75rem;
    font-weight: 800;
    margin-bottom: 4px;
}

.profile-about {
    margin-top: 12px;
    padding: 16px;
    background: var(--surface);
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--text);
}

.profile-about h3 {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.profile-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 12px;
}

.profile-meta-item {
    font-size: 0.85rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 6px;
}

.profile-meta-item strong { color: var(--text); font-weight: 600; }

.profile-tabs {
    display: flex;
    gap: 4px;
    margin-bottom: 24px;
    border-bottom: 1px solid var(--border);
    padding-bottom: 0;
}

.profile-tab {
    padding: 10px 20px;
    border: none;
    background: none;
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    font-family: var(--font);
    border-bottom: 2px solid transparent;
    transition: all var(--transition);
    margin-bottom: -1px;
}

.profile-tab:hover { color: var(--text); }

.profile-tab.active {
    color: var(--accent);
    border-bottom-color: var(--accent);
}

.profile-tab-content { display: none; }
.profile-tab-content.active { display: block; }

/* ===== SETTINGS PAGE ===== */
.settings-section {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    margin-bottom: 20px;
}

.settings-section h2 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
}

.settings-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
    gap: 16px;
    flex-wrap: wrap;
}

.settings-row + .settings-row { border-top: 1px solid var(--border); }

.settings-label {
    font-weight: 600;
    font-size: 0.9rem;
}

.settings-desc {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 2px;
}

/* ===== CAPE SECTION ===== */
#capePreview {
    display: block;
    margin: 12px auto;
    max-width: 100%;
    border-radius: var(--radius-sm);
    background: repeating-conic-gradient(var(--surface) 0% 25%, transparent 0% 50%) 50% / 16px 16px;
}

/* ===== ERROR PAGES ===== */
.error-page {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 60vh;
    text-align: center;
}

.error-code {
    font-size: 6rem;
    font-weight: 900;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: 8px;
}

.error-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.error-desc {
    color: var(--text-muted);
    margin-bottom: 24px;
    max-width: 400px;
}

/* ===== HAMBURGER ===== */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: all var(--transition);
}

.hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }
