/* ========================================
   PlayNexus Skins — Platform Styles
   Neon-Blue → Violet | Futuristic
   ======================================== */

:root {
    --bg-primary: #06060d;
    --bg-secondary: #0c0c18;
    --bg-card: rgba(15, 15, 30, 0.6);
    --bg-card-hover: rgba(20, 20, 40, 0.8);
    --bg-input: rgba(15, 15, 30, 0.8);
    --text-primary: #f0f0ff;
    --text-secondary: #8888aa;
    --text-muted: #5a5a7a;
    --blue: #00b4ff;
    --violet: #8b5cf6;
    --cyan: #00e5ff;
    --purple: #a855f7;
    --green: #22c55e;
    --red: #ef4444;
    --yellow: #eab308;
    --gradient-primary: linear-gradient(135deg, var(--blue), var(--violet));
    --gradient-glow: linear-gradient(135deg, rgba(0, 180, 255, 0.15), rgba(139, 92, 246, 0.15));
    --glow-blue: rgba(0, 180, 255, 0.3);
    --glow-violet: rgba(139, 92, 246, 0.3);
    --font-heading: 'Sora', sans-serif;
    --font-body: 'Outfit', sans-serif;
    --radius: 14px;
    --radius-sm: 10px;
    --radius-xs: 6px;
    --radius-full: 999px;
    --border-subtle: rgba(255, 255, 255, 0.06);
    --border-glow: rgba(0, 180, 255, 0.15);
    --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.3);
    --shadow-glow: 0 0 30px rgba(0, 180, 255, 0.08);
    --nav-height: 72px;
    --content-max: 1280px;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    background: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; }

/* ========================================
   Navbar
   ======================================== */

.navbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    height: var(--nav-height);
    background: rgba(6, 6, 13, 0.85);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-subtle);
}

.nav-inner {
    max-width: var(--content-max);
    margin: 0 auto;
    padding: 0 2rem;
    height: 100%;
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.logo-img { height: 36px; width: auto; }

.logo-label {
    font-family: var(--font-heading);
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--cyan);
    background: rgba(0, 229, 255, 0.1);
    padding: 2px 8px;
    border-radius: var(--radius-full);
    border: 1px solid rgba(0, 229, 255, 0.2);
}

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

.nav-link {
    padding: 8px 14px;
    border-radius: var(--radius-sm);
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: all 0.2s;
}

.nav-link:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.04);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.nav-search {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--bg-input);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-full);
    padding: 8px 16px;
    transition: border-color 0.2s;
}

.nav-search:focus-within {
    border-color: var(--border-glow);
}

.nav-search svg { color: var(--text-muted); flex-shrink: 0; }

.nav-search input {
    background: none;
    border: none;
    outline: none;
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 0.85rem;
    width: 160px;
}

.nav-search input::placeholder { color: var(--text-muted); }

.nav-avatar-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}

.nav-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--border-subtle);
    transition: border-color 0.2s;
}

.nav-avatar:hover { border-color: var(--cyan); }

.nav-avatar-placeholder {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.85rem;
    color: #fff;
}

.nav-user { position: relative; }

.user-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: 200px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius);
    padding: 8px;
    box-shadow: var(--shadow-card);
    z-index: 100;
}

.user-dropdown.show { display: block; }

.dropdown-header {
    padding: 8px 12px 12px;
    border-bottom: 1px solid var(--border-subtle);
    margin-bottom: 4px;
}

.dropdown-username {
    display: block;
    font-weight: 600;
    font-size: 0.9rem;
}

.dropdown-role {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.dropdown-item {
    display: block;
    padding: 8px 12px;
    border-radius: var(--radius-xs);
    font-size: 0.85rem;
    color: var(--text-secondary);
    transition: all 0.15s;
}

.dropdown-item:hover {
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-primary);
}

.dropdown-divider {
    height: 1px;
    background: var(--border-subtle);
    margin: 4px 0;
}

.dropdown-danger { color: var(--red); }
.dropdown-danger:hover { background: rgba(239, 68, 68, 0.1); }

.nav-mobile-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-primary);
    cursor: pointer;
    padding: 8px;
}

/* ========================================
   Main Content
   ======================================== */

.main-content {
    padding-top: var(--nav-height);
    max-width: var(--content-max);
    margin: 0 auto;
    min-height: calc(100vh - 200px);
}

.section {
    padding: 2rem;
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
}

.section-header h1,
.section-header h2 {
    font-family: var(--font-heading);
    font-weight: 700;
}

.section-header h1 { font-size: 1.8rem; }
.section-header h2 { font-size: 1.3rem; }

.section-link {
    font-size: 0.85rem;
    color: var(--cyan);
    font-weight: 500;
    transition: opacity 0.2s;
}

.section-link:hover { opacity: 0.8; }

.gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ========================================
   Hero Banner
   ======================================== */

.hero-banner {
    position: relative;
    padding: 6rem 2rem 4rem;
    text-align: center;
    overflow: hidden;
    min-height: 480px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-banner #networkCanvas {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 0;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 700px;
}

.hero-content h1 {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 1rem;
}

.hero-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 2rem;
}

.hero-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-bottom: 2.5rem;
    flex-wrap: wrap;
}

.hero-stats {
    display: flex;
    gap: 3rem;
    justify-content: center;
}

.hero-stat { text-align: center; }

.hero-stat-number {
    display: block;
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-stat-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    border-radius: var(--radius-full);
    background: rgba(0, 229, 255, 0.08);
    border: 1px solid rgba(0, 229, 255, 0.2);
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--cyan);
    margin-bottom: 1.5rem;
}

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

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

/* ========================================
   Games Grid
   ======================================== */

.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 12px;
}

.game-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 20px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius);
    transition: all 0.25s;
    cursor: pointer;
}

.game-card:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-glow);
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

.game-card-icon {
    width: 56px; height: 56px;
    border-radius: 14px;
    background: var(--gradient-glow);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--cyan);
}

.game-card-name {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 600;
    text-align: center;
}

/* ========================================
   Skins Grid
   ======================================== */

.skins-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 16px;
}

.skin-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius);
    overflow: hidden;
    transition: all 0.25s;
    cursor: pointer;
}

.skin-card:hover {
    border-color: var(--border-glow);
    transform: translateY(-3px);
    box-shadow: var(--shadow-glow);
}

.skin-card-preview {
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
    background: var(--bg-secondary);
}

.skin-card-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.skin-card:hover .skin-card-preview img {
    transform: scale(1.05);
}

.skin-card-overlay {
    position: absolute;
    top: 8px; left: 8px;
}

.skin-card-game {
    display: inline-block;
    padding: 3px 10px;
    border-radius: var(--radius-full);
    background: rgba(6, 6, 13, 0.7);
    backdrop-filter: blur(8px);
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--cyan);
    border: 1px solid rgba(0, 229, 255, 0.2);
}

.skin-card-info {
    padding: 12px 14px;
}

.skin-card-title {
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.skin-card-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.skin-card-stat {
    display: flex;
    align-items: center;
    gap: 3px;
}

.skin-card-stat svg { color: var(--text-muted); }

.skin-card-rating svg { color: var(--yellow); }

.skin-card-time { margin-left: auto; }

/* ========================================
   Browse Page
   ======================================== */

.browse-header {
    margin-bottom: 2rem;
}

.browse-header h1 {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 0.3rem;
}

.browse-count {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.browse-layout {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 2rem;
}

.browse-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.filter-group h3 {
    font-family: var(--font-heading);
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 8px;
}

.filter-item {
    display: block;
    padding: 7px 12px;
    border-radius: var(--radius-xs);
    font-size: 0.85rem;
    color: var(--text-secondary);
    transition: all 0.15s;
}

.filter-item:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.04);
}

.filter-item.active {
    color: var(--cyan);
    background: rgba(0, 229, 255, 0.08);
    font-weight: 500;
}

.filter-item-sub {
    padding-left: 24px;
    font-size: 0.8rem;
    position: relative;
}
.filter-item-sub::before {
    content: '└';
    position: absolute;
    left: 10px;
    color: var(--text-muted);
    font-size: 0.7rem;
}

.browse-content { min-width: 0; }

/* ========================================
   Skin Detail
   ======================================== */

.skin-detail-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.skin-preview-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius);
    overflow: hidden;
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.skin-preview-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    image-rendering: pixelated;
}

/* Preview Gallery Thumbnails */
.skin-preview-thumbs {
    display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap;
}

.skin-thumb {
    width: 64px; height: 64px; border-radius: 8px; overflow: hidden;
    border: 2px solid var(--border-subtle); cursor: pointer;
    transition: border-color 0.2s; background: var(--bg-card); padding: 0;
}
.skin-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.skin-thumb:hover { border-color: rgba(0, 229, 255, 0.4); }
.skin-thumb.active { border-color: var(--cyan); }

.skin-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.skin-breadcrumb a:hover { color: var(--cyan); }

.skin-title {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.8rem;
}

.skin-meta-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 1.2rem;
    flex-wrap: wrap;
}

.skin-game-badge,
.skin-category-badge {
    padding: 4px 12px;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
}

.skin-game-badge {
    background: rgba(0, 229, 255, 0.1);
    color: var(--cyan);
    border: 1px solid rgba(0, 229, 255, 0.2);
}

.skin-category-badge {
    background: rgba(139, 92, 246, 0.1);
    color: var(--violet);
    border: 1px solid rgba(139, 92, 246, 0.2);
}

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

.skin-description {
    margin-bottom: 1.2rem;
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.7;
}

.skin-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 1.5rem;
}

.skin-tag {
    padding: 4px 10px;
    border-radius: var(--radius-full);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-subtle);
    font-size: 0.75rem;
    color: var(--text-secondary);
    transition: all 0.2s;
}

.skin-tag:hover {
    border-color: var(--border-glow);
    color: var(--cyan);
}

.skin-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 1.5rem;
    padding: 16px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: var(--radius);
    border: 1px solid var(--border-subtle);
}

.skin-stat {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.skin-stat svg { color: var(--text-muted); }

.skin-description a {
    color: var(--cyan);
    text-decoration: underline;
    text-underline-offset: 2px;
    transition: color 0.15s;
}
.skin-description a:hover { color: #fff; }

/* Download Files List */
.skin-downloads-section {
    margin-bottom: 1.5rem;
}
.skin-downloads-section h3 {
    font-family: var(--font-heading);
    font-size: 1rem; font-weight: 600;
    margin-bottom: 10px;
}

.skin-files-list {
    display: flex; flex-direction: column; gap: 6px;
}

.skin-file-item {
    display: flex; align-items: center; gap: 12px;
    padding: 12px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius);
    transition: all 0.2s;
    text-decoration: none; color: inherit;
}
.skin-file-item:hover {
    border-color: var(--cyan);
    background: rgba(0, 229, 255, 0.03);
}
.skin-file-item:hover svg { color: var(--cyan); }

.skin-file-icon { font-size: 1.4rem; flex-shrink: 0; }
.skin-file-info { flex: 1; min-width: 0; }
.skin-file-name {
    display: block; font-size: 0.88rem; font-weight: 500;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.skin-file-meta { font-size: 0.72rem; color: var(--text-muted); }
.skin-file-item > svg { color: var(--text-muted); flex-shrink: 0; transition: color 0.2s; }

.skin-actions {
    display: flex;
    gap: 12px;
    margin-bottom: 2rem;
}

.btn-fav.is-fav { color: var(--red); border-color: rgba(239, 68, 68, 0.3); }

.skin-rating-section {
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-subtle);
}

.skin-rating-section h3 {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.8rem;
}

.star-rating {
    display: flex;
    gap: 4px;
}

.star {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-muted);
    padding: 4px;
    transition: all 0.15s;
}

.star:hover,
.star.active { color: var(--yellow); }

.star-rating:hover .star { color: var(--text-muted); }
.star-rating:hover .star:hover,
.star-rating:hover .star:hover ~ .star { color: var(--text-muted); }
.star-rating .star:hover ~ .star { color: var(--text-muted); }

/* Reverse hover trick for stars */
.star-rating { direction: rtl; }
.star-rating .star:hover,
.star-rating .star:hover ~ .star { color: var(--yellow); }

/* Reviews */
.skin-reviews { margin-bottom: 3rem; }

.skin-reviews h2 {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.reviews-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.review-card {
    padding: 16px;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius);
}

.review-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.review-stars {
    display: flex;
    gap: 2px;
    color: var(--yellow);
}

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

.review-text {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ========================================
   Upload Page
   ======================================== */

.upload-card {
    max-width: 640px;
    margin: 0 auto;
}

.upload-card h1 {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 0.3rem;
}

.upload-subtitle {
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.upload-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

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

.form-group input[type="text"],
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 16px;
    background: var(--bg-input);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 0.9rem;
    outline: none;
    transition: border-color 0.2s;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    border-color: var(--border-glow);
}

.form-group textarea { resize: vertical; min-height: 100px; }

.form-group select {
    appearance: none;
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%238888aa' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 40px;
}

.form-group select option {
    background: var(--bg-secondary);
    color: var(--text-primary);
}

/* File Upload */
.file-upload-zone {
    position: relative;
    border: 2px dashed var(--border-subtle);
    border-radius: var(--radius);
    padding: 2.5rem;
    text-align: center;
    transition: all 0.2s;
    cursor: pointer;
}

.file-upload-zone:hover,
.file-upload-zone.dragover {
    border-color: var(--cyan);
    background: rgba(0, 229, 255, 0.03);
}

.file-input {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
}

.file-upload-content svg { color: var(--text-muted); margin-bottom: 12px; }

.file-upload-content p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 4px;
}

.file-upload-link { color: var(--cyan); font-weight: 500; }

.file-upload-hint {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.file-preview {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: var(--radius-sm);
}

.file-preview img {
    width: 48px;
    height: 48px;
    object-fit: cover;
    border-radius: var(--radius-xs);
    image-rendering: pixelated;
}

.file-remove {
    margin-left: auto;
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 1.2rem;
    padding: 4px 8px;
}

.file-remove:hover { color: var(--red); }

/* Tags */
.tags-select {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag-checkbox {
    cursor: pointer;
}

.tag-checkbox input { display: none; }

.tag-label {
    display: inline-block;
    padding: 6px 14px;
    border-radius: var(--radius-full);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-subtle);
    font-size: 0.8rem;
    color: var(--text-secondary);
    transition: all 0.2s;
}

.tag-checkbox input:checked + .tag-label {
    background: rgba(0, 229, 255, 0.1);
    border-color: rgba(0, 229, 255, 0.3);
    color: var(--cyan);
}

.tag-label:hover {
    border-color: var(--border-glow);
}

/* Alerts */
.alert {
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    margin-bottom: 1rem;
}

.alert-error {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.25);
    color: #fca5a5;
}

.alert-success {
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.25);
    color: #86efac;
}

/* ========================================
   Profile Page
   ======================================== */

.profile-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 2rem;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius);
    margin-bottom: 2rem;
}

.profile-avatar img,
.avatar-placeholder-lg {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
}

.avatar-placeholder-lg {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-primary);
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    color: #fff;
}

.profile-info h1 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.profile-joined {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 4px;
}

.profile-stats {
    margin-left: auto;
    display: flex;
    gap: 2rem;
}

.profile-stat { text-align: center; }

.profile-stat-number {
    display: block;
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--cyan);
}

.profile-stat-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
}

.role-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: var(--radius-full);
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.role-user { background: rgba(0, 180, 255, 0.1); color: var(--cyan); border: 1px solid rgba(0, 180, 255, 0.2); }
.role-creator { background: rgba(139, 92, 246, 0.1); color: var(--violet); border: 1px solid rgba(139, 92, 246, 0.2); }
.role-moderator { background: rgba(168, 85, 247, 0.1); color: var(--purple); border: 1px solid rgba(168, 85, 247, 0.2); }
.role-admin { background: rgba(239, 68, 68, 0.1); color: #fca5a5; border: 1px solid rgba(239, 68, 68, 0.2); }

.sort-tabs {
    display: flex;
    gap: 4px;
}

.sort-tab {
    padding: 6px 14px;
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: all 0.2s;
}

.sort-tab:hover { color: var(--text-primary); background: rgba(255, 255, 255, 0.04); }
.sort-tab.active { color: var(--cyan); background: rgba(0, 229, 255, 0.08); }

/* ========================================
   Pagination
   ======================================== */

.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 2rem;
}

.pagination-btn {
    padding: 8px 14px;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    transition: all 0.2s;
}

.pagination-btn:hover {
    color: var(--text-primary);
    border-color: var(--border-glow);
}

.pagination-btn.active {
    color: #fff;
    background: var(--gradient-primary);
    border-color: transparent;
}

/* ========================================
   Empty State
   ======================================== */

.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--text-muted);
}

.empty-state svg { margin-bottom: 1rem; }

.empty-state h3 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.empty-state p {
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}

/* ========================================
   Buttons
   ======================================== */

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: var(--radius);
    font-family: var(--font-heading);
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s;
    border: none;
    white-space: nowrap;
}

.btn-sm { padding: 7px 14px; font-size: 0.8rem; border-radius: var(--radius-sm); }
.btn-lg { padding: 14px 28px; font-size: 0.95rem; }
.btn-full { width: 100%; justify-content: center; }

.btn-primary {
    background: var(--gradient-primary);
    color: #fff;
    box-shadow: 0 0 20px rgba(0, 180, 255, 0.15);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 30px rgba(0, 180, 255, 0.25);
}

.btn-outline {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border-subtle);
}

.btn-outline:hover {
    border-color: var(--border-glow);
    transform: translateY(-2px);
}

/* ========================================
   Footer
   ======================================== */

.site-footer {
    border-top: 1px solid var(--border-subtle);
    margin-top: 4rem;
    padding: 3rem 2rem 2rem;
}

.footer-inner {
    max-width: var(--content-max);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.5fr 2fr;
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-logo {
    height: 32px;
    margin-bottom: 12px;
}

.footer-brand p {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.6;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.footer-col h4 {
    font-family: var(--font-heading);
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 12px;
}

.footer-col a {
    display: block;
    font-size: 0.85rem;
    color: var(--text-muted);
    padding: 3px 0;
    transition: color 0.2s;
}

.footer-col a:hover { color: var(--cyan); }

.footer-bottom {
    max-width: var(--content-max);
    margin: 0 auto;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-subtle);
    text-align: center;
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* ========================================
   Responsive
   ======================================== */

@media (max-width: 900px) {
    .browse-layout {
        grid-template-columns: 1fr;
    }

    .browse-sidebar {
        flex-direction: row;
        overflow-x: auto;
        gap: 1rem;
        padding-bottom: 1rem;
    }

    .filter-group {
        flex-shrink: 0;
    }

    .skin-detail-layout {
        grid-template-columns: 1fr;
    }

    .profile-header {
        flex-direction: column;
        text-align: center;
    }

    .profile-stats { margin-left: 0; }

    .footer-inner {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .nav-links,
    .nav-search { display: none; }

    .nav-links.show,
    .nav-actions.show {
        display: flex;
    }

    .nav-mobile-toggle { display: block; }

    .nav-inner {
        flex-wrap: wrap;
        padding: 0 1rem;
    }

    .nav-links.show {
        width: 100%;
        flex-direction: column;
        padding: 8px 0;
        border-top: 1px solid var(--border-subtle);
    }

    .hero-content h1 { font-size: 2rem; }
    .hero-stats { gap: 1.5rem; }

    .skins-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .games-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .section { padding: 1.5rem 1rem; }

    .skin-actions { flex-direction: column; }
    .btn-lg { padding: 12px 20px; }

    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .footer-links {
        grid-template-columns: 1fr 1fr;
    }
}

/* ========================================
   Notifications
   ======================================== */

.nav-notif {
    position: relative;
}

.nav-bell-btn {
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 6px;
    border-radius: 50%;
    transition: all 0.2s;
    position: relative;
    display: flex;
    align-items: center;
}

.nav-bell-btn:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
}

.notif-badge {
    position: absolute;
    top: 0;
    right: 0;
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    border-radius: 999px;
    background: var(--red);
    color: #fff;
    font-size: 0.6rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    font-family: var(--font-heading);
}

.notif-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: 340px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
    z-index: 200;
    display: none;
    overflow: hidden;
}

.notif-dropdown.show {
    display: block;
}

.notif-dropdown-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-subtle);
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 600;
}

.notif-mark-all {
    background: none;
    border: none;
    color: var(--cyan);
    font-size: 0.72rem;
    font-weight: 600;
    cursor: pointer;
    font-family: var(--font-body);
}

.notif-mark-all:hover {
    text-decoration: underline;
}

.notif-dropdown-list {
    max-height: 320px;
    overflow-y: auto;
}

.notif-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-subtle);
    transition: background 0.15s;
    text-decoration: none;
    color: inherit;
}

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

.notif-item:hover {
    background: rgba(255, 255, 255, 0.03);
}

.notif-item.unread {
    background: rgba(0, 180, 255, 0.04);
    border-left: 3px solid var(--cyan);
}

.notif-icon {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.04);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 2px;
}

.notif-content {
    flex: 1;
    min-width: 0;
}

.notif-title {
    display: block;
    font-size: 0.8rem;
    font-weight: 500;
    line-height: 1.4;
    color: var(--text-primary);
}

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

.notif-empty {
    padding: 2rem;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.82rem;
}

.notif-dropdown-footer {
    display: block;
    text-align: center;
    padding: 10px;
    border-top: 1px solid var(--border-subtle);
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--cyan);
}

.notif-dropdown-footer:hover {
    background: rgba(0, 229, 255, 0.05);
}

/* ========================================
   Skin Uploader
   ======================================== */

.skin-uploader {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius);
    margin-top: 4px;
}

.skin-uploader-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.skin-uploader-avatar-placeholder {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.82rem;
    color: #fff;
    flex-shrink: 0;
}

.skin-uploader-info {
    display: flex;
    flex-direction: column;
    gap: 1px;
    flex: 1;
    min-width: 0;
}

.skin-uploader-label {
    font-size: 0.65rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.skin-uploader-name {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-primary);
    text-decoration: none;
    transition: color 0.15s;
}
.skin-uploader-name:hover { color: var(--cyan); }

.skin-uploader-role {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 0.68rem;
    font-weight: 600;
    border: 1px solid var(--border-subtle);
    flex-shrink: 0;
}

/* ========================================
   Profile — Enhanced
   ======================================== */

.profile-banner {
    width: 100%;
    height: 200px;
    border-radius: var(--radius) var(--radius) 0 0;
    background-size: cover;
    background-position: center;
    margin-bottom: -40px;
}

.profile-header {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
    flex-wrap: wrap;
}

.profile-name-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.profile-name-row h1 { margin: 0; font-size: 1.8rem; }

.verified-badge { display: inline-flex; color: var(--blue); flex-shrink: 0; }
.verified-inline { display: inline-block; vertical-align: middle; margin-left: 2px; }

.profile-bio {
    color: var(--text-secondary);
    font-size: 0.92rem;
    line-height: 1.6;
    margin-top: 0.5rem;
    max-width: 500px;
}

.profile-meta {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 0.5rem;
}

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

.profile-socials {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-top: 0.75rem;
}

.profile-social {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-xs);
    font-size: 0.78rem;
    color: var(--text-secondary);
    text-decoration: none;
    transition: border-color 0.15s, color 0.15s;
}
.profile-social:hover { border-color: var(--blue); color: var(--text-primary); }

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

.profile-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 1rem;
}

.profile-stats {
    display: flex;
    gap: 1.5rem;
}

.profile-stat {
    text-align: center;
}

.profile-stat-number {
    display: block;
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-primary);
}

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

/* Follow Button */
.btn-follow {
    padding: 8px 24px;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 0.88rem;
    cursor: pointer;
    transition: all 0.2s;
    border: 2px solid var(--blue);
    background: transparent;
    color: var(--blue);
}
.btn-follow:hover { background: var(--blue); color: #fff; }
.btn-follow.is-following {
    background: var(--bg-card);
    border-color: var(--border-subtle);
    color: var(--text-secondary);
}
.btn-follow.is-following:hover {
    border-color: var(--red);
    color: var(--red);
}

.btn-follow-sm {
    padding: 4px 14px;
    font-size: 0.75rem;
    border-width: 1px;
}

/* Profile Tabs */
.profile-tabs {
    display: flex;
    gap: 0;
    border-bottom: 1px solid var(--border-subtle);
    margin: 1.5rem 0;
    overflow-x: auto;
}

.profile-tab {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 12px 20px;
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--text-muted);
    text-decoration: none;
    border-bottom: 2px solid transparent;
    transition: color 0.15s, border-color 0.15s;
    white-space: nowrap;
}
.profile-tab:hover { color: var(--text-primary); }
.profile-tab.active {
    color: var(--blue);
    border-bottom-color: var(--blue);
}

.tab-count {
    font-size: 0.72rem;
    background: var(--bg-card);
    padding: 2px 8px;
    border-radius: var(--radius-full);
    color: var(--text-muted);
}

/* ========================================
   Comments
   ======================================== */

.skin-comments { margin-top: 2rem; }
.skin-comments h2 { margin-bottom: 1rem; }
.comment-count { font-size: 0.85rem; color: var(--text-muted); font-weight: 400; }

.comment-form {
    margin-bottom: 1.5rem;
}

.comment-form-row {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
}

.comment-form-row textarea {
    flex: 1;
    background: var(--bg-input);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    padding: 10px 14px;
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 0.88rem;
    resize: vertical;
    transition: border-color 0.15s;
}
.comment-form-row textarea:focus {
    outline: none;
    border-color: var(--blue);
}

.comment-form-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 0.5rem;
}

.comment-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.comment-avatar-sm { width: 28px; height: 28px; }

.comment-avatar-placeholder {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--gradient-glow);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--blue);
    flex-shrink: 0;
}
.comment-avatar-placeholder.comment-avatar-sm { width: 28px; height: 28px; font-size: 0.72rem; }

.comment-login-hint {
    color: var(--text-muted);
    font-size: 0.88rem;
    margin-bottom: 1.5rem;
}
.comment-login-hint a { color: var(--blue); text-decoration: none; }

.comments-list { display: flex; flex-direction: column; gap: 1rem; }

.comment-item {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    padding: 1rem;
}

.comment-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.comment-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex: 1;
    min-width: 0;
}

.comment-author {
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--text-primary);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 2px;
}
.comment-author:hover { color: var(--cyan); }

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

.comment-edited {
    font-size: 0.68rem;
    color: var(--text-muted);
    font-style: italic;
}

.comment-body {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.comment-delete {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 1.2rem;
    padding: 2px 6px;
    border-radius: 4px;
    transition: color 0.15s, background 0.15s;
}
.comment-delete:hover { color: var(--red); background: rgba(239,68,68,0.1); }

.comment-reply {
    margin-top: 0.75rem;
    margin-left: 2rem;
    padding: 0.75rem;
    background: rgba(255,255,255,0.02);
    border-left: 2px solid var(--border-subtle);
    border-radius: 0 var(--radius-xs) var(--radius-xs) 0;
}

.comment-reply-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 0.78rem;
    cursor: pointer;
    margin-top: 0.5rem;
    padding: 2px 0;
}
.comment-reply-btn:hover { color: var(--blue); }

.comment-reply-form {
    margin-top: 0.5rem;
    margin-left: 2rem;
}

.comment-reply-form textarea {
    width: 100%;
    background: var(--bg-input);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-xs);
    padding: 8px 12px;
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 0.82rem;
    resize: vertical;
}
.comment-reply-form textarea:focus { outline: none; border-color: var(--blue); }

.comments-empty {
    color: var(--text-muted);
    font-size: 0.88rem;
    text-align: center;
    padding: 2rem 0;
}

/* ========================================
   Collections & Bundles
   ======================================== */

.collections-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1rem;
}

.collection-card-wrap { position: relative; }

.collection-card {
    display: block;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius);
    overflow: hidden;
    text-decoration: none;
    transition: border-color 0.2s, transform 0.2s;
}
.collection-card:hover { border-color: var(--blue); transform: translateY(-2px); }

.collection-cover {
    width: 100%;
    height: 140px;
    background: var(--gradient-glow);
    display: flex;
    align-items: center;
    justify-content: center;
}
.collection-cover img { width: 100%; height: 100%; object-fit: cover; }

.collection-info {
    padding: 1rem;
}
.collection-info h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}
.collection-count {
    font-size: 0.78rem;
    color: var(--text-muted);
}

.collection-delete {
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 2;
}

.collection-header {
    margin-bottom: 1.5rem;
}

.collection-header-info h1 {
    font-size: 1.8rem;
    margin: 0.5rem 0;
}

.collection-desc {
    color: var(--text-secondary);
    font-size: 0.92rem;
    line-height: 1.6;
    margin-bottom: 0.75rem;
}

.collection-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.82rem;
    color: var(--text-muted);
}

.collection-owner {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
}
.collection-owner:hover { color: var(--cyan); }
.collection-owner-avatar { width: 24px; height: 24px; border-radius: 50%; object-fit: cover; }

.collection-title-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.bundle-badge {
    display: inline-block;
    padding: 3px 12px;
    background: var(--gradient-primary);
    border-radius: var(--radius-full);
    font-size: 0.72rem;
    font-weight: 700;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.skin-card-wrap { position: relative; }

.collection-remove-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 2;
}

/* Collection Picker (on skin page) */
.collection-add-wrap { position: relative; display: inline-block; }

.collection-picker {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    margin-top: 4px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    min-width: 220px;
    max-height: 240px;
    overflow-y: auto;
    z-index: 20;
    box-shadow: var(--shadow-card);
}
.collection-picker.show { display: block; }

.collection-picker-item {
    display: block;
    width: 100%;
    padding: 10px 14px;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 0.85rem;
    text-align: left;
    cursor: pointer;
    transition: background 0.15s;
    font-family: var(--font-body);
}
.collection-picker-item:hover { background: var(--bg-card); }
.collection-picker-count { color: var(--text-muted); font-size: 0.75rem; }

.fav-count {
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-left: -4px;
}

/* ========================================
   Skin Versions
   ======================================== */

.skin-versions { margin-top: 2rem; }
.skin-versions h2 { margin-bottom: 1rem; }

.versions-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.version-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-xs);
    flex-wrap: wrap;
}

.version-tag {
    display: inline-block;
    padding: 2px 10px;
    background: var(--gradient-primary);
    border-radius: var(--radius-full);
    font-size: 0.72rem;
    font-weight: 700;
    color: #fff;
    flex-shrink: 0;
}

.version-date {
    font-size: 0.78rem;
    color: var(--text-muted);
    flex-shrink: 0;
}

.version-changelog {
    width: 100%;
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-top: 0.25rem;
}

/* ========================================
   Settings
   ======================================== */

.settings-section h1 { margin-bottom: 1rem; }

.settings-tabs {
    display: flex;
    gap: 0;
    border-bottom: 1px solid var(--border-subtle);
    margin-bottom: 1.5rem;
}

.settings-tab {
    padding: 10px 20px;
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--text-muted);
    text-decoration: none;
    border-bottom: 2px solid transparent;
    transition: color 0.15s, border-color 0.15s;
}
.settings-tab:hover { color: var(--text-primary); }
.settings-tab.active { color: var(--blue); border-bottom-color: var(--blue); }

/* Avatar Upload (Settings) */
.settings-avatar-section {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-subtle);
    max-width: 640px;
}

.avatar-upload-wrap {
    position: relative;
    flex-shrink: 0;
    cursor: pointer;
}

.avatar-upload-lg {
    width: 88px;
    height: 88px;
}

.avatar-upload-lg img,
.avatar-upload-lg .avatar-placeholder-lg {
    width: 88px;
    height: 88px;
    border-radius: 50%;
    object-fit: cover;
}

.avatar-upload-overlay {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.6);
    opacity: 0;
    transition: opacity 0.2s;
    cursor: pointer;
    color: #fff;
}

.avatar-upload-wrap:hover .avatar-upload-overlay {
    opacity: 1;
}

.avatar-upload-wrap.uploading .avatar-upload-overlay {
    opacity: 1;
    background: rgba(0, 0, 0, 0.7);
}

.avatar-remove-btn {
    position: absolute;
    top: -2px;
    right: -2px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 2px solid var(--bg-secondary);
    background: var(--red);
    color: #fff;
    font-size: 13px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.2s, transform 0.15s;
}

.avatar-upload-wrap:hover .avatar-remove-btn {
    opacity: 1;
}

.avatar-remove-btn:hover {
    transform: scale(1.15);
}

.avatar-upload-spinner {
    width: 28px;
    height: 28px;
    border: 2px solid rgba(255,255,255,0.2);
    border-top-color: #fff;
    border-radius: 50%;
    animation: avatar-spin 0.6s linear infinite;
}

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

.settings-avatar-info h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.settings-avatar-info p {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.settings-form {
    max-width: 640px;
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 0.4rem;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 10px 14px;
    background: var(--bg-input);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-xs);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 0.88rem;
    transition: border-color 0.15s;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--blue);
}

.form-hint {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.form-section-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 1.5rem 0 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-subtle);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.88rem;
    color: var(--text-secondary);
    cursor: pointer;
    margin-bottom: 1rem;
}

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

/* Notification Toggle List */
.notif-toggle-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.notif-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-xs);
    cursor: pointer;
    font-size: 0.88rem;
    color: var(--text-primary);
}

.notif-toggle input { display: none; }

.toggle-switch {
    width: 40px;
    height: 22px;
    background: var(--bg-input);
    border-radius: var(--radius-full);
    position: relative;
    transition: background 0.2s;
    flex-shrink: 0;
}
.toggle-switch::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 16px;
    height: 16px;
    background: var(--text-muted);
    border-radius: 50%;
    transition: transform 0.2s, background 0.2s;
}
.notif-toggle input:checked + .toggle-switch { background: var(--blue); }
.notif-toggle input:checked + .toggle-switch::after {
    transform: translateX(18px);
    background: #fff;
}

/* Alerts */
.alert {
    padding: 12px 16px;
    border-radius: var(--radius-xs);
    font-size: 0.88rem;
    margin-bottom: 1rem;
}
.alert-success { background: rgba(34,197,94,0.1); border: 1px solid rgba(34,197,94,0.3); color: var(--green); }
.alert-error { background: rgba(239,68,68,0.1); border: 1px solid rgba(239,68,68,0.3); color: var(--red); }

/* ========================================
   Modal
   ======================================== */

.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.7);
    z-index: 100;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}
.modal-overlay.show { display: flex; }

.modal {
    background: var(--bg-secondary);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius);
    padding: 1.5rem;
    max-width: 480px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}
.modal-header h2 { font-size: 1.2rem; }

.modal-close {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0 4px;
}
.modal-close:hover { color: var(--text-primary); }

.modal-actions {
    display: flex;
    gap: 0.75rem;
    justify-content: flex-end;
    margin-top: 1rem;
}

/* ========================================
   Browse — Enhanced Filters
   ======================================== */

.filter-group-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}
.filter-group-tags h3 { width: 100%; margin-bottom: 0.25rem; }

.filter-tag {
    display: inline-block;
    padding: 3px 10px;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    color: var(--text-muted);
    text-decoration: none;
    transition: border-color 0.15s, color 0.15s;
}
.filter-tag:hover { border-color: var(--blue); color: var(--text-primary); }
.filter-tag.active { border-color: var(--blue); color: var(--blue); background: rgba(0,180,255,0.08); }

.filter-featured {
    margin-top: 0.5rem;
    font-weight: 600;
}

/* ========================================
   Breadcrumb
   ======================================== */

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-bottom: 0.25rem;
}
.breadcrumb a { color: var(--text-muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--blue); }

/* ========================================
   Button Extras
   ======================================== */

.btn-xs {
    padding: 4px 12px;
    font-size: 0.75rem;
    border-radius: var(--radius-xs);
}

.btn-icon {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: color 0.15s, background 0.15s;
}
.btn-icon:hover { color: var(--red); background: rgba(239,68,68,0.1); }

.btn-icon-sm { font-size: 1rem; padding: 2px 6px; }

/* ========================================
   Responsive — New Features
   ======================================== */

@media (max-width: 768px) {
    .profile-header { flex-direction: column; }
    .profile-right { align-items: flex-start; width: 100%; }
    .profile-stats { flex-wrap: wrap; gap: 1rem; }
    .form-row { grid-template-columns: 1fr; }
    .collections-grid { grid-template-columns: 1fr 1fr; }
    .collection-title-row { flex-wrap: wrap; }
}

@media (max-width: 480px) {
    .collections-grid { grid-template-columns: 1fr; }
    .profile-tabs { gap: 0; }
    .profile-tab { padding: 10px 12px; font-size: 0.82rem; }
}

/* ========================================
   Legal Pages (Impressum, Datenschutz, AGB)
   ======================================== */

.legal-page {
    max-width: 820px;
    margin: 0 auto;
    padding: 2rem 0 4rem;
}
.legal-page h1 {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.legal-updated {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-bottom: 2.5rem;
}
.legal-page h2 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 2.5rem 0 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border-subtle);
}
.legal-page h3 {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 1.5rem 0 0.5rem;
}
.legal-page p {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 0.75rem;
    font-size: 0.92rem;
}
.legal-page ul {
    color: var(--text-secondary);
    margin: 0.5rem 0 1rem 1.5rem;
    font-size: 0.92rem;
    line-height: 1.8;
}
.legal-page li {
    margin-bottom: 0.25rem;
}
.legal-page a {
    color: var(--cyan);
    text-decoration: none;
}
.legal-page a:hover {
    text-decoration: underline;
}
.legal-contact {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius);
    padding: 1.25rem 1.5rem;
    margin: 1rem 0 1.5rem;
}
.legal-contact p {
    margin-bottom: 0.25rem;
}
.legal-contact strong {
    color: var(--text-primary);
}

@media (max-width: 768px) {
    .legal-page { padding: 1.5rem 0 3rem; }
    .legal-page h1 { font-size: 1.6rem; }
    .legal-page h2 { font-size: 1.1rem; }
}

/* ========================================
   Contact Page
   ======================================== */

.contact-page {
    max-width: 1000px;
    margin: 0 auto;
    padding: 2rem 0 4rem;
}
.contact-header {
    text-align: center;
    margin-bottom: 3rem;
}
.contact-header h1 {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.contact-header p {
    color: var(--text-secondary);
    font-size: 1rem;
    max-width: 500px;
    margin: 0 auto;
}
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 2.5rem;
    align-items: start;
}
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}
.contact-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
}
.contact-form .form-group {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}
.contact-form label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-primary);
}
.contact-form label .required {
    color: var(--red);
}
.contact-form .form-input {
    background: var(--bg-input);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    padding: 10px 14px;
    color: var(--text-primary);
    font-size: 0.9rem;
    font-family: var(--font-body);
    transition: border-color 0.2s;
}
.contact-form .form-input:focus {
    outline: none;
    border-color: var(--cyan);
}
.contact-form textarea.form-input {
    resize: vertical;
    min-height: 120px;
}
.contact-form select.form-input {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%238888aa' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 36px;
}
.contact-form .btn-lg {
    padding: 12px 28px;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    align-self: flex-start;
}
.contact-error {
    background: rgba(239,68,68,0.1);
    border: 1px solid rgba(239,68,68,0.3);
    color: var(--red);
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
}
.contact-success {
    text-align: center;
    padding: 3rem 2rem;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius);
}
.contact-success-icon {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-full);
    background: rgba(34,197,94,0.15);
    color: var(--green);
    font-size: 1.5rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
}
.contact-success h3 {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}
.contact-success p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    font-size: 0.92rem;
}
.contact-info-col {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.contact-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius);
    padding: 1.25rem;
    transition: border-color 0.2s;
}
.contact-card:hover {
    border-color: rgba(0,229,255,0.2);
}
.contact-card-icon {
    color: var(--cyan);
    margin-bottom: 0.75rem;
}
.contact-card h4 {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 0.35rem;
}
.contact-card a {
    color: var(--cyan);
    text-decoration: none;
    font-size: 0.88rem;
}
.contact-card a:hover { text-decoration: underline; }
.contact-card p {
    color: var(--text-secondary);
    font-size: 0.85rem;
    line-height: 1.6;
    margin: 0;
}

/* ========================================
   Report System
   ======================================== */
.btn-report {
    color: var(--text-muted) !important;
    border-color: rgba(255,255,255,0.06) !important;
    font-size: 0.82rem;
}
.btn-report:hover {
    color: #f87171 !important;
    border-color: rgba(239,68,68,0.3) !important;
    background: rgba(239,68,68,0.06) !important;
}
.comment-actions-right {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-left: auto;
}
.comment-report {
    opacity: 0;
    transition: opacity 0.15s;
    color: var(--text-muted);
}
.comment-item:hover .comment-report,
.comment-report:focus { opacity: 1; }
.comment-report:hover { color: #f87171; }

/* Report Modal */
.report-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.7);
    backdrop-filter: blur(4px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.report-modal {
    background: var(--bg-secondary, #0c0c18);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 16px;
    width: 100%;
    max-width: 440px;
    padding: 0;
    overflow: hidden;
}
.report-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}
.report-modal-header h3 {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
}
.report-modal-close {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.4rem;
    cursor: pointer;
    padding: 4px;
    line-height: 1;
}
.report-modal-close:hover { color: var(--text-primary); }
.report-modal form {
    padding: 20px 24px 24px;
}
.report-form-group {
    margin-bottom: 16px;
}
.report-form-group label {
    display: block;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 6px;
}
.report-select,
.report-textarea {
    width: 100%;
    background: var(--bg-primary, #06060d);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 8px;
    padding: 10px 14px;
    color: var(--text-primary);
    font-size: 0.88rem;
    font-family: inherit;
    transition: border-color 0.2s;
}
.report-select:focus,
.report-textarea:focus {
    outline: none;
    border-color: var(--cyan, #00e5ff);
}
.report-textarea { resize: vertical; min-height: 60px; }
.report-form-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}
.report-success {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 40px 24px;
    text-align: center;
}
.report-success p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin: 0;
}

@media (max-width: 768px) {
    .contact-grid { grid-template-columns: 1fr; }
    .contact-info-col { order: -1; flex-direction: row; flex-wrap: wrap; gap: 0.75rem; }
    .contact-card { flex: 1; min-width: 140px; }
    .contact-form .form-row { grid-template-columns: 1fr; }
    .report-modal { max-width: 100%; }
}

/* ========================================
   Version History
   ======================================== */
.skin-versions { margin-top: 2.5rem; padding-top: 2rem; border-top: 1px solid rgba(255,255,255,0.06); }
.versions-list { display: flex; flex-direction: column; gap: 1rem; margin-top: 1rem; }
.version-item { background: var(--bg-card); border: 1px solid rgba(255,255,255,0.06); border-radius: 10px; padding: 1rem 1.25rem; }
.version-item-header { display: flex; align-items: center; gap: 0.6rem; flex-wrap: wrap; margin-bottom: 0.5rem; }
.version-tag { background: var(--blue); color: #fff; font-size: 0.75rem; font-weight: 700; padding: 2px 10px; border-radius: 20px; }
.version-latest-badge { background: rgba(0,200,100,0.15); color: #00c864; font-size: 0.7rem; font-weight: 600; padding: 2px 8px; border-radius: 20px; border: 1px solid rgba(0,200,100,0.3); }
.version-date { font-size: 0.8rem; color: var(--text-secondary); margin-left: auto; }
.version-changelog { font-size: 0.875rem; color: var(--text-secondary); margin: 0.5rem 0 0.75rem; line-height: 1.6; white-space: pre-wrap; }
.version-files { display: flex; flex-direction: column; gap: 0.4rem; margin-top: 0.5rem; }
.version-file-link {
    display: flex; align-items: center; gap: 0.6rem;
    padding: 0.5rem 0.75rem;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 8px;
    text-decoration: none;
    color: var(--text-primary);
    font-size: 0.82rem;
    transition: border-color 0.15s, background 0.15s;
}
.version-file-link:hover { border-color: var(--blue); background: rgba(0,180,255,0.06); }
.version-file-icon { font-size: 1rem; flex-shrink: 0; }
.version-file-name { flex: 1; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.version-file-meta { font-size: 0.73rem; color: var(--text-secondary); flex-shrink: 0; }
.version-file-link svg { flex-shrink: 0; color: var(--text-secondary); }

/* ========================================
   Featured Blocks
   ======================================== */
.featured-block {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.06);
    margin: 1.25rem 0;
}
.partner-tag {
    position: absolute;
    top: 6px;
    left: 8px;
    font-size: 0.6rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-secondary);
    background: rgba(0,0,0,0.5);
    padding: 2px 6px;
    border-radius: 4px;
    z-index: 2;
    pointer-events: none;
}
.partner-link {
    display: block;
    text-decoration: none;
}
.partner-img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 12px;
    transition: opacity 0.2s;
}
.partner-link:hover .partner-img { opacity: 0.9; }
.partner-text {
    display: block;
    padding: 1.25rem 1.5rem;
    color: var(--text-primary);
    font-weight: 500;
    font-size: 0.95rem;
}
.featured-block-banner { max-width: 100%; }
.featured-block-sidebar { max-width: 300px; }
.featured-block-inline { border-radius: 10px; margin: 0.75rem 0; }
.featured-block-inline .partner-img { border-radius: 10px; }
