/* ============================
   EbbeMC - Phase 2 Complete Redesign
   Header Fix + Home Page Rework
   ============================ */

/* ==============================================
   RESET & VARIABLES
   ============================================ */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Colors */
    --bg-primary: #0a0a0a;
    --bg-secondary: #111111;
    --bg-card: rgba(20, 20, 20, 0.8);
    --bg-card-solid: #161616;
    --bg-hover: rgba(255, 255, 255, 0.05);
    
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.75);
    --text-muted: rgba(255, 255, 255, 0.45);
    
    /* Accent colors */
    --gold: #f0c45b;
    --gold-dark: #d4a84a;
    --gold-glow: rgba(240, 196, 91, 0.4);
    --gold-gradient: linear-gradient(135deg, #ffd68a 0%, #e6b65a 50%, #d4a84a 100%);
    --discord: #5865F2;
    --accent: #4ecdc4;
    --accent-glow: rgba(78, 205, 196, 0.3);
    --success: #4ade80;
    --error: #f87171;
    --warning: #fbbf24;
    
    /* Borders */
    --border: rgba(255, 255, 255, 0.06);
    --border-light: rgba(255, 255, 255, 0.1);
    --border-gold: rgba(240, 196, 91, 0.3);
    
    /* Spacing */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    
    /* Radius - Modern squared look */
    --radius-sm: 4px;
    --radius-md: 6px;
    --radius-lg: 8px;
    --radius-xl: 12px;
    --radius-nav: 6px;
    
    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.3);
    --shadow-md: 0 4px 16px rgba(0,0,0,0.4);
    --shadow-lg: 0 8px 32px rgba(0,0,0,0.5);
    --shadow-glow: 0 0 20px var(--gold-glow);
    
    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition-normal: 0.25s ease;
    --transition-slow: 0.4s ease;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
}

a {
    color: var(--accent);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--gold);
}

/* ==============================================
   HEADER / NAVIGATION - NO FULL-WIDTH BLACK BAR
   ============================================ */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 10px 0;
    transition: padding var(--transition-normal);
}

/* On scroll - just reduce padding slightly */
.site-header.scrolled {
    padding: 6px 0;
}

/* NO background on the header itself - only on nav-main */
.header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--space-xl);
    display: flex;
    align-items: center;
    justify-content: center;
    height: 58px;
    position: relative;
}

.header-logo {
    position: absolute;
    left: var(--space-xl);
}

.header-logo img {
    height: 48px;
    width: auto;
    transition: transform var(--transition-normal), filter var(--transition-normal);
    filter: drop-shadow(0 2px 8px rgba(0,0,0,0.5));
}

.header-logo:hover img {
    transform: scale(1.05);
    filter: drop-shadow(0 4px 16px var(--gold-glow));
}

/* Navigation Container - This gets the blur background */
.site-nav {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.nav-main {
    display: flex;
    align-items: center;
    background: rgba(10, 10, 10, 0.75);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 4px 6px;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.08);
    gap: 2px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
}

/* Scrolled state - slightly more opaque nav */
.site-header.scrolled .nav-main {
    background: rgba(10, 10, 10, 0.9);
    border-color: rgba(255, 255, 255, 0.1);
}

/* Nav Items */
.nav-main a {
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 13px;
    padding: 10px 16px;
    border-radius: var(--radius-nav);
    transition: all var(--transition-fast);
    display: flex;
    align-items: center;
    gap: 7px;
    position: relative;
    white-space: nowrap;
}

.nav-main a i {
    font-size: 11px;
    opacity: 0.8;
}

/* Hover state */
.nav-main a:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.08);
}

/* Active state with glow */
.nav-main a.active {
    color: var(--gold);
    background: rgba(240, 196, 91, 0.12);
    box-shadow: 0 0 12px rgba(240, 196, 91, 0.15), 
                inset 0 0 12px rgba(240, 196, 91, 0.05);
}

.nav-main a.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 2px;
    background: var(--gold);
    border-radius: 2px;
    box-shadow: 0 0 8px var(--gold-glow);
}

/* Nav Divider */
.nav-divider {
    width: 1px;
    height: 24px;
    background: rgba(255, 255, 255, 0.15);
    margin: 0 var(--space-md);
}

/* Auth Section */
.nav-auth {
    position: absolute;
    right: var(--space-xl);
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

/* Hide auth on home page */
.home-page .nav-auth {
    display: none;
}

.home-page .nav-divider {
    display: none;
}

/* Login Button */
.nav-login {
    color: var(--text-secondary) !important;
    font-weight: 600;
    font-size: 13px;
    padding: 9px 16px;
    border-radius: var(--radius-nav);
    transition: all var(--transition-fast);
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(10, 10, 10, 0.7);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.nav-login:hover {
    color: var(--text-primary) !important;
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.15);
}

/* Register Button */
.nav-register {
    background: var(--gold-gradient);
    color: #1a1a1a !important;
    font-weight: 700;
    font-size: 13px;
    padding: 9px 20px;
    border-radius: var(--radius-nav);
    transition: all var(--transition-fast);
    box-shadow: 0 2px 12px rgba(240, 196, 91, 0.25);
}

.nav-register:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 20px rgba(240, 196, 91, 0.4);
    color: #1a1a1a !important;
}

/* User Dropdown */
.nav-dropdown {
    position: relative;
}

.nav-user {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 5px 12px 5px 5px;
    border-radius: var(--radius-nav);
    background: rgba(10, 10, 10, 0.7);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text-primary) !important;
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.nav-user:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.15);
}

.nav-avatar {
    width: 28px;
    height: 28px;
    border-radius: var(--radius-sm);
    image-rendering: pixelated;
}

.nav-user i.fa-chevron-down {
    font-size: 10px;
    opacity: 0.6;
    transition: transform var(--transition-fast);
}

.nav-dropdown:hover .nav-user i.fa-chevron-down,
.nav-dropdown.open .nav-user i.fa-chevron-down {
    transform: rotate(180deg);
}

.nav-dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: rgba(18, 18, 18, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 6px;
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px) scale(0.98);
    transition: all var(--transition-fast);
    box-shadow: var(--shadow-lg);
    z-index: 100;
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown.open .nav-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.nav-dropdown-menu a,
.nav-dropdown-menu button {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: 10px 12px;
    color: var(--text-secondary);
    border-radius: var(--radius-md);
    font-size: 13px;
    font-weight: 500;
    width: 100%;
    text-align: left;
    background: none;
    border: none;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.nav-dropdown-menu a:hover,
.nav-dropdown-menu button:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
}

.nav-dropdown-menu hr {
    border: none;
    border-top: 1px solid var(--border);
    margin: 6px 0;
}

.dropdown-logout {
    color: var(--error) !important;
}

.notification-badge {
    background: var(--error);
    color: white;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 10px;
    margin-left: auto;
}

/* Mobile Toggle */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: rgba(10, 10, 10, 0.7);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-md);
    cursor: pointer;
    padding: 10px;
    z-index: 101;
}

.nav-toggle span {
    width: 20px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: all var(--transition-normal);
}

.nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ==============================================
   HERO BANNER
   ============================================ */
.hero-banner {
    width: 100%;
    min-height: 75vh;
    padding-top: 78px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-secondary);
    background-image: url('../img/BGBanner.png');
    background-position: center;
    background-size: cover;
    position: relative;
}

.hero-banner::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(10, 10, 10, 0.15) 0%,
        rgba(10, 10, 10, 0.35) 40%,
        rgba(10, 10, 10, 0.98) 100%
    );
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: var(--space-xl);
}

.hero-logo {
    height: 280px;
    width: auto;
    margin-bottom: var(--space-lg);
    filter: drop-shadow(0 0 60px rgba(240, 196, 91, 0.15));
    animation: float 4s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* Play Button */
.play-wrapper {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.play-btn {
    position: relative;
    background: var(--gold-gradient);
    color: #1a1a1a;
    border: none;
    padding: 16px 48px;
    border-radius: var(--radius-lg);
    font-weight: 800;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    overflow: hidden;
    min-width: 220px;
    box-shadow: 0 4px 24px rgba(240, 196, 91, 0.3);
}

.play-btn .play-text,
.play-btn .play-ip {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s;
}

.play-btn .play-ip {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: translateY(100%);
    font-family: 'JetBrains Mono', 'Fira Code', monospace;
    font-size: 15px;
    font-weight: 700;
}

.play-btn:hover .play-text {
    opacity: 0;
    transform: translateY(-100%);
}

.play-btn:hover .play-ip {
    opacity: 1;
    transform: translateY(0);
}

.play-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 40px rgba(240, 196, 91, 0.5);
}

.play-btn.copied {
    background: linear-gradient(135deg, #4ade80, #22c55e) !important;
}

.copy-feedback {
    position: absolute;
    top: calc(100% + 12px);
    background: var(--success);
    color: #000;
    padding: 8px 16px;
    border-radius: var(--radius-lg);
    font-weight: 600;
    font-size: 13px;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s;
    pointer-events: none;
    display: flex;
    align-items: center;
    gap: 6px;
}

.copy-feedback.show {
    opacity: 1;
    transform: translateY(0);
}

/* ==============================================
   MAIN WRAPPER & CONTAINERS
   ============================================ */
.main-wrapper {
    min-height: calc(100vh - 300px);
    padding-top: 78px;
}

.home-page .main-wrapper {
    padding-top: 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--space-2xl) var(--space-xl);
}

/* ==============================================
   HOME PAGE - PHASE 2 REDESIGN
   ============================================ */
.home-section {
    padding: 0 0 var(--space-2xl);
}

/* New grid: Announcements large (2fr), Recent Threads small sidebar (1fr) */
.home-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: var(--space-xl);
    max-width: 1200px;
    margin: 0 auto;
}

/* ==============================================
   ANNOUNCEMENTS - MAIN FEATURE (Large)
   ============================================ */
.announcements-card {
    background: rgba(16, 16, 16, 0.6);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--radius-xl);
    overflow: hidden;
}

.announcements-card .card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-lg) var(--space-xl);
    border-bottom: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.02);
}

.announcements-card .card-header h2 {
    font-size: 1.1rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    margin: 0;
    color: var(--text-primary);
}

.announcements-card .card-header h2 i {
    color: var(--gold);
}

.view-all-link {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 4px;
    transition: all var(--transition-fast);
}

.view-all-link:hover {
    color: var(--gold);
}

.view-all-link i {
    font-size: 0.7rem;
    transition: transform var(--transition-fast);
}

.view-all-link:hover i {
    transform: translateX(3px);
}

/* Announcement List */
.announcements-list {
    padding: var(--space-md);
}

/* Featured Announcement (First/Pinned) */
.announcement-featured {
    display: block;
    padding: var(--space-lg);
    margin-bottom: var(--space-md);
    background: linear-gradient(135deg, rgba(240, 196, 91, 0.08) 0%, rgba(240, 196, 91, 0.02) 100%);
    border: 1px solid rgba(240, 196, 91, 0.15);
    border-radius: var(--radius-lg);
    transition: all var(--transition-normal);
}

.announcement-featured:hover {
    border-color: rgba(240, 196, 91, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.announcement-featured .announcement-image {
    width: 100%;
    height: 180px;
    border-radius: var(--radius-md);
    overflow: hidden;
    margin-bottom: var(--space-md);
    background: rgba(255, 255, 255, 0.03);
}

.announcement-featured .announcement-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.announcement-featured .announcement-image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(240, 196, 91, 0.1) 0%, rgba(78, 205, 196, 0.05) 100%);
}

.announcement-featured .announcement-image-placeholder i {
    font-size: 3rem;
    color: var(--gold);
    opacity: 0.3;
}

.announcement-featured h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: var(--space-sm);
    color: var(--text-primary);
}

.announcement-featured .announcement-excerpt {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: var(--space-md);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.announcement-meta {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
    font-size: 0.8rem;
    color: var(--text-muted);
}

.announcement-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.announcement-meta i {
    font-size: 0.75rem;
}

/* Regular Announcement Items */
.announcement-item {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-md);
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
    color: var(--text-primary);
}

.announcement-item:hover {
    background: rgba(255, 255, 255, 0.04);
}

.announcement-item + .announcement-item {
    border-top: 1px solid var(--border);
}

.announcement-icon {
    width: 42px;
    height: 42px;
    background: rgba(240, 196, 91, 0.1);
    border: 1px solid rgba(240, 196, 91, 0.15);
    color: var(--gold);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1rem;
}

.announcement-content {
    flex: 1;
    min-width: 0;
}

.announcement-content h3 {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: var(--text-primary);
}

.announcement-content .announcement-meta {
    font-size: 0.75rem;
}

.announcement-arrow {
    color: var(--text-muted);
    font-size: 0.8rem;
    transition: all var(--transition-fast);
}

.announcement-item:hover .announcement-arrow {
    color: var(--gold);
    transform: translateX(3px);
}

/* ==============================================
   RECENT THREADS - SIDEBAR (Compact)
   ============================================ */
.sidebar-card {
    background: rgba(16, 16, 16, 0.5);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-xl);
    overflow: hidden;
    height: fit-content;
}

.sidebar-card .card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-md) var(--space-lg);
    border-bottom: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.01);
}

.sidebar-card .card-header h2 {
    font-size: 0.9rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    margin: 0;
    color: var(--text-primary);
}

.sidebar-card .card-header h2 i {
    color: var(--accent);
    font-size: 0.85rem;
}

/* Thread List - Compact */
.threads-list-compact {
    padding: var(--space-sm);
}

.thread-item-compact {
    display: block;
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
    color: var(--text-primary);
}

.thread-item-compact:hover {
    background: rgba(255, 255, 255, 0.04);
}

.thread-item-compact + .thread-item-compact {
    border-top: 1px solid var(--border);
}

.thread-item-compact h4 {
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: var(--text-primary);
    transition: color var(--transition-fast);
}

.thread-item-compact:hover h4 {
    color: var(--gold);
}

.thread-item-compact .thread-meta {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: 0.7rem;
    color: var(--text-muted);
}

.thread-item-compact .thread-meta span {
    display: flex;
    align-items: center;
    gap: 3px;
}

.thread-item-compact .thread-meta i {
    font-size: 0.65rem;
}

/* Category tag in thread item */
.thread-category-tag {
    display: inline-block;
    padding: 2px 6px;
    background: rgba(78, 205, 196, 0.1);
    color: var(--accent);
    border-radius: 3px;
    font-size: 0.65rem;
    font-weight: 600;
}

/* ==============================================
   EMPTY STATES
   ============================================ */
.empty-state {
    text-align: center;
    padding: var(--space-2xl);
    color: var(--text-muted);
}

.empty-state i {
    font-size: 2.5rem;
    margin-bottom: var(--space-md);
    display: block;
    opacity: 0.3;
}

.empty-state p {
    margin-bottom: var(--space-md);
    font-size: 0.9rem;
}

/* ==============================================
   FOOTER - Compact Modern Design
   ============================================ */
.footer {
    background: transparent;
    margin-top: auto;
    padding-top: var(--space-2xl);
}

.footer-inner {
    max-width: 1000px;
    margin: 0 auto;
    padding: var(--space-xl) var(--space-xl) var(--space-lg);
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: var(--space-2xl);
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.footer-logo {
    height: 44px;
    width: auto;
    opacity: 0.85;
    transition: opacity var(--transition-fast);
}

.footer-logo:hover {
    opacity: 1;
}

.footer-tagline {
    font-size: 0.7rem;
    color: var(--text-muted);
    font-weight: 500;
    letter-spacing: 0.5px;
}

.footer-links {
    display: flex;
    gap: var(--space-2xl);
}

.footer-col h4 {
    font-size: 0.65rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: var(--space-md);
}

.footer-col nav {
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
}

.footer-col nav a {
    font-size: 0.85rem;
    color: var(--text-secondary);
    padding: 3px 0;
    transition: color var(--transition-fast);
}

.footer-col nav a:hover {
    color: var(--gold);
}

.social-links {
    display: flex;
    gap: var(--space-sm);
}

.social-links a {
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    font-size: 0.95rem;
    color: var(--text-muted);
    transition: all var(--transition-fast);
}

.social-links a:hover {
    border-color: transparent;
    transform: translateY(-2px);
}

.social-discord:hover {
    background: var(--discord);
    color: white;
    box-shadow: 0 4px 16px rgba(88, 101, 242, 0.35);
}

.social-twitter:hover {
    background: #1DA1F2;
    color: white;
    box-shadow: 0 4px 16px rgba(29, 161, 242, 0.35);
}

.social-youtube:hover {
    background: #FF0000;
    color: white;
    box-shadow: 0 4px 16px rgba(255, 0, 0, 0.35);
}

.footer-bottom {
    max-width: 1000px;
    margin: 0 auto;
    padding: var(--space-md) var(--space-xl);
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--border);
}

.footer-bottom p {
    font-size: 0.7rem;
    color: var(--text-muted);
    margin: 0;
}

.server-ip {
    font-family: 'JetBrains Mono', 'Fira Code', monospace;
    color: var(--gold) !important;
    font-weight: 600;
    font-size: 0.75rem !important;
}

/* ==============================================
   FORUM STYLES
   ============================================ */
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-xl);
    padding-bottom: var(--space-lg);
    border-bottom: 1px solid var(--border);
}

.page-header h1 {
    font-size: 1.5rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    margin: 0;
}

.page-header h1 i {
    color: var(--gold);
}

.page-header.centered {
    flex-direction: column;
    text-align: center;
    gap: var(--space-sm);
}

.page-header.centered p {
    color: var(--text-secondary);
    max-width: 600px;
}

/* Breadcrumb */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    margin-bottom: var(--space-lg);
    font-size: 0.85rem;
}

.breadcrumb a {
    color: var(--text-muted);
}

.breadcrumb a:hover {
    color: var(--gold);
}

.breadcrumb .separator {
    color: var(--text-muted);
    opacity: 0.5;
}

.breadcrumb .current {
    color: var(--text-primary);
}

/* Category Grid */
.categories-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.category-card {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
    padding: var(--space-lg) var(--space-xl);
    background: rgba(16, 16, 16, 0.6);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-xl);
    transition: all var(--transition-normal);
    color: var(--text-primary);
}

.category-card:hover {
    border-color: var(--border-gold);
    background: rgba(20, 20, 20, 0.7);
    transform: translateX(4px);
}

.category-card.sub-category {
    margin-left: var(--space-xl);
    background: rgba(255, 255, 255, 0.02);
}

.category-icon {
    width: 50px;
    height: 50px;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.category-info {
    flex: 1;
    min-width: 0;
}

.category-info h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 2px;
}

.category-info p {
    font-size: 0.85rem;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin: 0;
}

.category-stats {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-align: right;
}

.category-stats strong {
    color: var(--text-secondary);
}

.category-arrow {
    color: var(--text-muted);
    transition: all var(--transition-fast);
}

.category-card:hover .category-arrow {
    color: var(--gold);
    transform: translateX(4px);
}

/* Thread List */
.threads-container {
    background: rgba(16, 16, 16, 0.6);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-xl);
    overflow: hidden;
}

.threads-header {
    display: grid;
    grid-template-columns: 1fr 80px 80px 160px;
    gap: var(--space-md);
    padding: var(--space-md) var(--space-xl);
    background: rgba(255, 255, 255, 0.02);
    border-bottom: 1px solid var(--border);
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--text-muted);
    letter-spacing: 0.5px;
}

.col-stats {
    text-align: center;
}

.thread-row {
    display: grid;
    grid-template-columns: 1fr 80px 80px 160px;
    gap: var(--space-md);
    align-items: center;
    padding: var(--space-md) var(--space-xl);
    border-bottom: 1px solid var(--border);
    transition: background var(--transition-fast);
}

.thread-row:last-child {
    border-bottom: none;
}

.thread-row:hover {
    background: rgba(255, 255, 255, 0.03);
}

.thread-row.pinned {
    background: rgba(240, 196, 91, 0.04);
}

.thread-info {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    min-width: 0;
}

.thread-icon {
    color: var(--text-muted);
}

.thread-details {
    min-width: 0;
}

.thread-details h3 {
    margin: 0 0 4px 0;
    font-size: 0.95rem;
    font-weight: 600;
}

.thread-details h3 a {
    color: var(--text-primary);
}

.thread-details h3 a:hover {
    color: var(--gold);
}

.thread-meta {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    font-size: 0.75rem;
    color: var(--text-muted);
}

.thread-meta .author {
    display: flex;
    align-items: center;
    gap: 4px;
}

.thread-meta .author img {
    width: 16px;
    height: 16px;
    border-radius: 3px;
}

.thread-stats {
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 600;
}

.thread-latest {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.thread-latest a {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.thread-latest a:hover {
    color: var(--gold);
}

.thread-latest img {
    width: 22px;
    height: 22px;
    border-radius: var(--radius-sm);
}

.latest-date {
    font-size: 0.7rem;
    color: var(--text-muted);
}

.tag {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 600;
}

/* ==============================================
   BUTTONS
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: 10px 20px;
    border: none;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all var(--transition-fast);
    text-decoration: none;
}

.btn-primary {
    background: var(--gold-gradient);
    color: #1a1a1a;
    box-shadow: 0 2px 8px rgba(240, 196, 91, 0.2);
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(240, 196, 91, 0.3);
    color: #1a1a1a;
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    border: 1px solid var(--border-light);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--text-muted);
}

.btn-danger {
    background: rgba(248, 113, 113, 0.15);
    color: var(--error);
    border: 1px solid transparent;
}

.btn-danger:hover {
    background: var(--error);
    color: white;
}

.btn-success {
    background: rgba(74, 222, 128, 0.15);
    color: var(--success);
}

.btn-success:hover {
    background: var(--success);
    color: #1a1a1a;
}

.btn-sm {
    padding: 6px 12px;
    font-size: 0.8rem;
}

.btn-lg {
    padding: 14px 28px;
    font-size: 1rem;
}

/* ==============================================
   FORMS
   ============================================ */
.form-group {
    margin-bottom: var(--space-lg);
}

.form-group label {
    display: block;
    margin-bottom: var(--space-sm);
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-primary);
    font-family: inherit;
    font-size: 0.95rem;
    transition: all var(--transition-fast);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--gold);
    background: rgba(255, 255, 255, 0.05);
    box-shadow: 0 0 0 3px rgba(240, 196, 91, 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-muted);
}

.form-control {
    width: 100%;
    padding: 12px 14px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 0.95rem;
    transition: all var(--transition-fast);
}

.form-control:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(240, 196, 91, 0.1);
    background: rgba(255, 255, 255, 0.05);
}

.form-error {
    color: var(--error);
    font-size: 0.8rem;
    margin-top: 4px;
}

.checkbox-group {
    display: flex;
    align-items: center;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    cursor: pointer;
    font-size: 0.9rem;
}

.checkbox-label input {
    width: 18px;
    height: 18px;
    accent-color: var(--gold);
}

/* ==============================================
   ALERTS
   ============================================ */
.alert {
    position: fixed;
    top: 90px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1001;
    padding: var(--space-md) var(--space-xl);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    gap: var(--space-md);
    max-width: 500px;
    width: calc(100% - 40px);
    box-shadow: var(--shadow-lg);
    animation: slideDown 0.3s ease;
    backdrop-filter: blur(16px);
    transition: all var(--transition-normal);
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

.alert-success {
    background: rgba(20, 25, 20, 0.95);
    border: 1px solid var(--success);
    color: var(--success);
}

.alert-error {
    background: rgba(25, 20, 20, 0.95);
    border: 1px solid var(--error);
    color: var(--error);
}

.alert-close {
    position: absolute;
    right: var(--space-md);
    background: none;
    border: none;
    color: inherit;
    font-size: 1.25rem;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity var(--transition-fast);
    padding: 0;
    line-height: 1;
}

.alert-close:hover {
    opacity: 1;
}

/* ==============================================
   AUTH PAGES
   ============================================ */
.auth-container {
    min-height: calc(100vh - 78px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-xl);
}

.auth-card {
    width: 100%;
    max-width: 420px;
    background: rgba(18, 18, 18, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-xl);
    padding: var(--space-2xl);
}

.auth-header {
    text-align: center;
    margin-bottom: var(--space-xl);
}

.auth-header i {
    font-size: 2.5rem;
    color: var(--gold);
    margin-bottom: var(--space-md);
    display: block;
}

.auth-header h1 {
    font-size: 1.5rem;
    margin: 0;
}

.auth-footer {
    text-align: center;
    margin-top: var(--space-lg);
    font-size: 0.9rem;
    color: var(--text-muted);
}

.auth-errors {
    background: rgba(248, 113, 113, 0.1);
    border: 1px solid rgba(248, 113, 113, 0.3);
    border-radius: var(--radius-md);
    padding: var(--space-md);
    margin-bottom: var(--space-lg);
}

.auth-errors p {
    color: var(--error);
    font-size: 0.85rem;
    margin: 0;
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.auth-errors p + p {
    margin-top: var(--space-xs);
}

.auth-divider {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    margin: var(--space-xl) 0;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border);
}

/* ==============================================
   VOTE PAGE
   ============================================ */
.vote-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-lg);
    margin-bottom: var(--space-2xl);
}

.vote-card {
    background: rgba(16, 16, 16, 0.6);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-xl);
    padding: var(--space-xl);
    text-align: center;
    transition: all var(--transition-normal);
    color: var(--text-primary);
}

.vote-card:hover {
    border-color: var(--border-gold);
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.3);
}

.vote-icon {
    width: 60px;
    height: 60px;
    background: rgba(240, 196, 91, 0.1);
    color: var(--gold);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin: 0 auto var(--space-md);
}

.vote-card h3 {
    margin-bottom: var(--space-xs);
}

.vote-card p {
    color: var(--text-muted);
    margin-bottom: var(--space-md);
    font-size: 0.9rem;
}

.vote-btn {
    display: inline-block;
    background: var(--gold-gradient);
    color: #1a1a1a;
    padding: 10px 24px;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 0.85rem;
    transition: all var(--transition-fast);
}

.vote-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(240, 196, 91, 0.3);
    color: #1a1a1a;
}

.vote-rewards {
    background: rgba(16, 16, 16, 0.6);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-xl);
    padding: var(--space-xl);
}

.vote-rewards h2 {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    margin-bottom: var(--space-lg);
}

.vote-rewards h2 i {
    color: var(--gold);
}

.rewards-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--space-md);
}

.reward-item {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-md);
    background: rgba(255, 255, 255, 0.02);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
}

.reward-item i {
    color: var(--gold);
    font-size: 1.25rem;
}

/* ==============================================
   RULES PAGE
   ============================================ */
.rules-container {
    display: flex;
    flex-direction: column;
    gap: var(--space-xl);
}

.rule-section {
    background: rgba(16, 16, 16, 0.6);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-xl);
    padding: var(--space-xl);
}

.rule-section h2 {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    margin-bottom: var(--space-lg);
    padding-bottom: var(--space-md);
    border-bottom: 1px solid var(--border);
}

.rule-section h2 i {
    color: var(--gold);
}

.rules-list {
    list-style: none;
    counter-reset: rules;
}

.rules-list li {
    counter-increment: rules;
    padding: var(--space-md) 0;
    border-bottom: 1px solid var(--border);
}

.rules-list li:last-child {
    border-bottom: none;
}

.rules-list li strong {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    margin-bottom: var(--space-xs);
}

.rules-list li strong::before {
    content: counter(rules);
    width: 24px;
    height: 24px;
    background: var(--gold);
    color: #1a1a1a;
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.rules-list li p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-left: 36px;
}

.punishment-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-md);
}

.punishment-item {
    text-align: center;
    padding: var(--space-md);
    background: rgba(255, 255, 255, 0.02);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
}

.punishment-type {
    display: inline-block;
    padding: 4px 12px;
    border-radius: var(--radius-md);
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: var(--space-xs);
}

.punishment-type.warning { background: rgba(251, 191, 36, 0.15); color: var(--warning); }
.punishment-type.mute { background: rgba(56, 189, 248, 0.15); color: #38bdf8; }
.punishment-type.kick { background: rgba(251, 146, 60, 0.15); color: #fb923c; }
.punishment-type.ban { background: rgba(248, 113, 113, 0.15); color: var(--error); }

.punishment-item p {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin: 0;
}

/* ==============================================
   PAGINATION
   ============================================ */
.pagination-wrapper {
    display: flex;
    justify-content: center;
    margin-top: var(--space-xl);
}

.pagination {
    display: flex;
    gap: 4px;
}

.pagination a,
.pagination span {
    padding: 8px 14px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    font-size: 0.85rem;
    transition: all var(--transition-fast);
}

.pagination a:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
    border-color: var(--border-light);
}

.pagination .active {
    background: var(--gold);
    color: #1a1a1a;
    border-color: var(--gold);
    font-weight: 600;
}

/* ==============================================
   UTILITIES
   ============================================ */
.text-center { text-align: center; }
.text-muted { color: var(--text-muted); }
.text-success { color: var(--success); }
.text-error { color: var(--error); }
.text-warning { color: var(--warning); }

/* ==============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
    .hero-logo {
        height: 220px;
    }
    
    .home-grid {
        grid-template-columns: 1fr;
    }
    
    .threads-header,
    .thread-row {
        grid-template-columns: 1fr 60px 60px 140px;
    }
}

@media (max-width: 850px) {
    .header-container {
        padding: 0 var(--space-md);
        justify-content: space-between;
    }

    .header-logo {
        position: relative;
        left: auto;
    }
    
    .header-logo img {
        height: 40px;
    }
    
    .nav-toggle {
        display: flex;
    }
    
    .site-nav {
        position: fixed;
        top: 68px;
        left: var(--space-md);
        right: var(--space-md);
        background: rgba(12, 12, 12, 0.95);
        backdrop-filter: blur(24px);
        -webkit-backdrop-filter: blur(24px);
        border: 1px solid rgba(255, 255, 255, 0.08);
        border-radius: var(--radius-xl);
        flex-direction: column;
        padding: var(--space-md);
        gap: var(--space-md);
        transform: translateY(-20px);
        opacity: 0;
        visibility: hidden;
        transition: all var(--transition-normal);
        box-shadow: 0 8px 32px rgba(0,0,0,0.5);
    }
    
    .site-nav.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    
    .nav-main {
        flex-direction: column;
        width: 100%;
        padding: var(--space-sm);
        background: transparent;
        border: none;
        box-shadow: none;
        backdrop-filter: none;
    }
    
    .nav-main a {
        width: 100%;
        justify-content: center;
        padding: 12px var(--space-md);
    }
    
    .nav-main a.active::after {
        display: none;
    }
    
    .nav-divider {
        width: 100%;
        height: 1px;
        margin: var(--space-sm) 0;
        display: block !important;
    }
    
    .nav-auth {
        position: relative;
        right: auto;
        flex-direction: column;
        width: 100%;
        display: flex !important;
    }
    
    .nav-login,
    .nav-register,
    .nav-user {
        width: 100%;
        justify-content: center;
        background: transparent;
        border: 1px solid var(--border);
    }
    
    .threads-header {
        display: none;
    }
    
    .thread-row {
        grid-template-columns: 1fr;
        gap: var(--space-sm);
    }
    
    .thread-stats,
    .thread-latest {
        display: none;
    }
    
    .footer-inner {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .footer-brand {
        align-items: center;
    }
    
    .footer-links {
        justify-content: center;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: var(--space-sm);
    }
    
    .punishment-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .hero-logo {
        height: 150px;
    }
    
    .play-btn {
        padding: 14px 36px;
        font-size: 16px;
        min-width: 180px;
    }
    
    .container {
        padding: var(--space-lg) var(--space-md);
    }
    
    .footer-links {
        flex-direction: column;
        gap: var(--space-lg);
    }
}

/* ==============================================
   PHASE 3: FORUMS REDESIGN
   ============================================ */

/* Forum Layout - Main + Sidebar */
.forum-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: var(--space-xl);
    align-items: start;
}

.forum-main {
    min-width: 0;
}

/* Forum Sidebar */
.forum-sidebar {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
    position: sticky;
    top: 90px;
}

/* Sidebar Widgets */
.sidebar-widget {
    background: rgba(16, 16, 16, 0.6);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-xl);
    overflow: hidden;
}

.widget-header {
    padding: var(--space-md) var(--space-lg);
    border-bottom: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.02);
}

.widget-header h3 {
    font-size: 0.85rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    margin: 0;
    color: var(--text-primary);
}

.widget-header h3 i {
    color: var(--gold);
    font-size: 0.8rem;
}

.widget-body {
    padding: var(--space-md) var(--space-lg);
}

/* Members/Guest Widget */
.members-widget .widget-header h3 i,
.guest-widget .widget-header h3 i {
    color: var(--accent);
}

.guest-widget .widget-body p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: var(--space-md);
}

/* Quick Actions */
.quick-action {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-sm) var(--space-md);
    margin: 0 calc(var(--space-lg) * -1);
    margin-bottom: 2px;
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-weight: 500;
    transition: all var(--transition-fast);
}

.quick-action:first-child {
    margin-top: calc(var(--space-md) * -1);
}

.quick-action:last-child {
    margin-bottom: calc(var(--space-md) * -1);
}

.quick-action:hover {
    background: var(--bg-hover);
    color: var(--gold);
}

.quick-action i {
    width: 20px;
    text-align: center;
    font-size: 0.8rem;
}

.action-badge {
    margin-left: auto;
    background: var(--error);
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 10px;
}

/* Widget Thread List */
.widget-thread {
    display: block;
    padding: var(--space-sm) 0;
    border-bottom: 1px solid var(--border);
    transition: all var(--transition-fast);
}

.widget-thread:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.widget-thread:first-child {
    padding-top: 0;
}

.widget-thread:hover .widget-thread-title {
    color: var(--gold);
}

.widget-thread-title {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
    transition: color var(--transition-fast);
    line-height: 1.4;
}

.widget-thread-meta {
    display: flex;
    gap: var(--space-md);
    font-size: 0.7rem;
    color: var(--text-muted);
}

/* Stats Widget */
.stats-widget .stat-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-sm) 0;
    border-bottom: 1px solid var(--border);
}

.stats-widget .stat-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.stats-widget .stat-row:first-child {
    padding-top: 0;
}

.stat-label {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.stat-value {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-primary);
}

.stat-user {
    color: var(--accent) !important;
}

/* Tags Cloud */
.tags-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-xs);
}

.tags-cloud .tag {
    font-size: 0.7rem;
    padding: 3px 8px;
}

/* Section Dividers */
.category-section {
    margin-bottom: var(--space-xl);
}

.category-section:last-child {
    margin-bottom: 0;
}

.section-divider {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    margin-bottom: var(--space-lg);
}

.section-divider::before,
.section-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border-light), transparent);
}

.section-divider::before {
    background: linear-gradient(90deg, transparent, var(--border-light));
}

.section-divider::after {
    background: linear-gradient(90deg, var(--border-light), transparent);
}

.section-divider span {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    white-space: nowrap;
}

.section-divider span i {
    color: var(--gold);
    font-size: 0.7rem;
}

/* Categories Grid */
.categories-grid {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

/* Enhanced Category Card */
.category-card-enhanced {
    display: block;
    background: var(--cat-gradient, rgba(78, 205, 196, 0.05));
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--radius-xl);
    overflow: hidden;
    transition: all var(--transition-normal);
}

.category-card-enhanced:hover {
    border-color: color-mix(in srgb, var(--cat-color) 40%, transparent);
    transform: translateX(4px);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.2);
}

.category-card-inner {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
    padding: var(--space-lg) var(--space-xl);
}

.category-icon-wrapper {
    position: relative;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.category-icon-bg {
    position: absolute;
    inset: 0;
    background: color-mix(in srgb, var(--cat-color) 15%, transparent);
    border-radius: var(--radius-lg);
    border: 1px solid color-mix(in srgb, var(--cat-color) 20%, transparent);
}

.category-icon-wrapper i {
    position: relative;
    font-size: 1.4rem;
    color: var(--cat-color);
    z-index: 1;
}

.category-content {
    flex: 1;
    min-width: 0;
}

.category-title {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 4px;
    color: var(--text-primary);
}

.category-desc {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: var(--space-sm);
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.category-meta {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-md);
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.meta-item i {
    font-size: 0.65rem;
    opacity: 0.7;
}

.meta-item.latest {
    color: var(--accent);
}

.category-arrow {
    color: var(--text-muted);
    font-size: 0.9rem;
    transition: all var(--transition-fast);
    padding-right: var(--space-sm);
}

.category-card-enhanced:hover .category-arrow {
    color: var(--cat-color);
    transform: translateX(4px);
}

/* Subcategories Bar */
.subcategories-bar {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-sm) var(--space-xl);
    background: rgba(0, 0, 0, 0.2);
    border-top: 1px solid var(--border);
    font-size: 0.75rem;
    color: var(--text-muted);
}

.subcategories-bar i {
    color: var(--text-muted);
    opacity: 0.7;
}

.subcat-name {
    color: var(--text-secondary);
}

.subcat-name::after {
    content: ',';
    margin-right: 2px;
}

.subcat-name:last-of-type::after {
    content: '';
}

.subcat-more {
    color: var(--accent);
    font-weight: 500;
}

/* Category Header (Category Page) */
.category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-xl);
    padding: var(--space-xl);
    background: rgba(16, 16, 16, 0.6);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-xl);
}

.category-header-content {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
}

.category-header-icon {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: color-mix(in srgb, var(--cat-color) 15%, transparent);
    border: 1px solid color-mix(in srgb, var(--cat-color) 25%, transparent);
    border-radius: var(--radius-xl);
    font-size: 1.75rem;
    color: var(--cat-color);
}

.category-header-info h1 {
    font-size: 1.5rem;
    margin-bottom: var(--space-xs);
}

.category-header-info p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin: 0;
}

/* Subcategories Section */
.subcategories-section {
    margin-bottom: var(--space-xl);
}

.section-title {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-muted);
    margin-bottom: var(--space-md);
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.section-title i {
    color: var(--gold);
    font-size: 0.8rem;
}

.subcategories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: var(--space-md);
}

.subcategory-card {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-md) var(--space-lg);
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    transition: all var(--transition-fast);
}

.subcategory-card:hover {
    background: var(--bg-hover);
    border-color: var(--border-light);
    transform: translateY(-2px);
}

.subcat-icon {
    font-size: 1.1rem;
}

.subcat-info {
    flex: 1;
    min-width: 0;
}

.subcat-info .subcat-name {
    display: block;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-primary);
}

.subcat-info .subcat-count {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.subcat-arrow {
    color: var(--text-muted);
    font-size: 0.75rem;
    transition: all var(--transition-fast);
}

.subcategory-card:hover .subcat-arrow {
    color: var(--gold);
    transform: translateX(3px);
}

/* Thread Row Enhancements */
.thread-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-right: var(--space-sm);
}

.thread-badge.pinned {
    background: rgba(240, 196, 91, 0.15);
    color: var(--gold);
}

.thread-row.pinned {
    background: linear-gradient(135deg, rgba(240, 196, 91, 0.06) 0%, rgba(240, 196, 91, 0.02) 100%);
    border-left: 3px solid var(--gold);
}

.thread-row.locked {
    opacity: 0.7;
}

.thread-row .thread-icon i {
    font-size: 1rem;
}

.thread-row.pinned .thread-icon i {
    color: var(--gold);
}

.thread-row.locked .thread-icon i {
    color: var(--error);
}

/* Thread Stats in Category */
.thread-stats {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.stat-number {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1;
}

.thread-stats .stat-label {
    font-size: 0.65rem;
    color: var(--text-muted);
    text-transform: uppercase;
}

/* Latest Post */
.latest-link {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    color: var(--text-secondary);
}

.latest-link:hover {
    color: var(--gold);
}

.latest-link img {
    width: 24px;
    height: 24px;
    border-radius: var(--radius-sm);
    image-rendering: pixelated;
}

.latest-user {
    font-size: 0.85rem;
    font-weight: 500;
}

.no-replies {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-style: italic;
}

/* Forum Search */
.forum-search {
    display: flex;
    gap: 0;
}

.search-input {
    padding: 8px 14px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    border-right: none;
    border-radius: var(--radius-md) 0 0 var(--radius-md);
    color: var(--text-primary);
    font-size: 0.9rem;
    width: 200px;
    transition: all var(--transition-fast);
}

.search-input:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--border-light);
}

.search-input::placeholder {
    color: var(--text-muted);
}

.search-btn {
    padding: 8px 14px;
    background: var(--gold-gradient);
    border: none;
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    color: #1a1a1a;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.search-btn:hover {
    filter: brightness(1.1);
}

/* Moderators List */
.moderators-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.moderator-item {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-weight: 500;
    transition: color var(--transition-fast);
}

.moderator-item:hover {
    color: var(--gold);
}

.moderator-item img {
    width: 24px;
    height: 24px;
    border-radius: var(--radius-sm);
    image-rendering: pixelated;
}

/* Active Users */
.active-users-list {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-xs);
}

.active-user {
    display: block;
    transition: transform var(--transition-fast);
}

.active-user:hover {
    transform: scale(1.1);
}

.active-user img {
    width: 32px;
    height: 32px;
    border-radius: var(--radius-sm);
    image-rendering: pixelated;
    border: 2px solid var(--border);
}

.active-user:hover img {
    border-color: var(--gold);
}

/* Category Info Widget */
.category-info-widget .widget-header {
    background: color-mix(in srgb, var(--cat-color, #4ecdc4) 10%, transparent);
}

.category-info-widget .widget-header h3 i {
    color: var(--cat-color, #4ecdc4);
}

/* Responsive Forum */
@media (max-width: 1024px) {
    .forum-layout {
        grid-template-columns: 1fr;
    }
    
    .forum-sidebar {
        position: static;
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-md);
    }
    
    .forum-sidebar > .btn {
        grid-column: span 2;
    }
}

@media (max-width: 768px) {
    .forum-sidebar {
        grid-template-columns: 1fr;
    }
    
    .forum-sidebar > .btn {
        grid-column: span 1;
    }
    
    .category-header {
        flex-direction: column;
        gap: var(--space-lg);
        text-align: center;
    }
    
    .category-header-content {
        flex-direction: column;
    }
    
    .category-header-actions {
        width: 100%;
    }
    
    .category-header-actions .btn {
        width: 100%;
    }
    
    .subcategories-grid {
        grid-template-columns: 1fr;
    }
    
    .forum-search {
        width: 100%;
    }
    
    .search-input {
        flex: 1;
        width: auto;
    }
    
    .page-header {
        flex-direction: column;
        gap: var(--space-md);
    }
    
    .header-actions {
        width: 100%;
    }
}

/* ==============================================
   PHASE 4: PROFILE & SETTINGS REDESIGN
   ============================================ */

/* Profile Banner */
.profile-banner {
    height: 200px;
    background: linear-gradient(135deg, 
        color-mix(in srgb, var(--banner-color, #4ecdc4) 30%, #0a0a0a) 0%,
        #0a0a0a 100%);
    position: relative;
    overflow: hidden;
    margin-top: -78px;
    padding-top: 78px;
}

.banner-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, 
        rgba(10, 10, 10, 0) 0%,
        rgba(10, 10, 10, 0.5) 50%,
        rgba(10, 10, 10, 1) 100%);
}

.banner-pattern {
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.5;
}

/* Profile Layout */
.profile-layout {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: var(--space-xl);
    margin-top: -80px;
    position: relative;
    z-index: 10;
}

/* Profile Card */
.profile-card {
    background: rgba(16, 16, 16, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--radius-xl);
    padding: var(--space-xl);
    text-align: center;
    height: fit-content;
    position: sticky;
    top: 90px;
}

.profile-avatar-wrapper {
    position: relative;
    display: inline-block;
    margin-bottom: var(--space-lg);
}

.profile-avatar {
    width: 140px;
    height: 140px;
    border-radius: var(--radius-xl);
    border: 4px solid rgba(255, 255, 255, 0.1);
    image-rendering: pixelated;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.online-badge {
    position: absolute;
    bottom: 8px;
    right: 8px;
    width: 24px;
    height: 24px;
    background: var(--bg-card-solid);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: var(--success);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.profile-username {
    font-size: 1.75rem;
    font-weight: 800;
    margin: 0 0 var(--space-sm) 0;
}

.profile-rank {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    padding: 6px 14px;
    background: color-mix(in srgb, var(--rank-color) 15%, transparent);
    border: 1px solid color-mix(in srgb, var(--rank-color) 30%, transparent);
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--rank-color);
    margin-bottom: var(--space-md);
}

.profile-minecraft {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    padding: 6px 12px;
    background: rgba(74, 222, 128, 0.1);
    border: 1px solid rgba(74, 222, 128, 0.2);
    border-radius: var(--radius-md);
    font-size: 0.8rem;
    color: var(--success);
    margin-bottom: var(--space-md);
}

.profile-bio {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: var(--space-lg);
    padding: 0 var(--space-sm);
}

.profile-meta-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    padding-top: var(--space-lg);
    border-top: 1px solid var(--border);
}

.profile-meta-list .meta-item {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: 0.85rem;
    color: var(--text-muted);
}

.profile-meta-list .meta-item i {
    width: 16px;
    text-align: center;
    opacity: 0.7;
}

.profile-actions {
    margin-top: var(--space-lg);
    padding-top: var(--space-lg);
    border-top: 1px solid var(--border);
}

.profile-actions .btn {
    width: 100%;
}

/* Profile Content */
.profile-content {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
}

/* Stats Bar */
.profile-stats-bar {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-md);
    background: rgba(16, 16, 16, 0.6);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-xl);
    padding: var(--space-lg);
}

.stat-item {
    text-align: center;
    padding: var(--space-sm);
}

.stat-item .stat-value {
    display: block;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1.2;
}

.stat-item .stat-label {
    display: block;
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 4px;
}

/* Profile Tabs */
.profile-tabs {
    display: flex;
    gap: var(--space-xs);
    background: rgba(16, 16, 16, 0.6);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-xl);
    padding: var(--space-sm);
}

.tab-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: var(--space-md) var(--space-lg);
    background: transparent;
    border: none;
    border-radius: var(--radius-lg);
    color: var(--text-muted);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.tab-btn:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
}

.tab-btn.active {
    color: var(--gold);
    background: rgba(240, 196, 91, 0.1);
}

.tab-btn i {
    font-size: 0.85rem;
}

/* Tab Content */
.tab-content {
    display: none;
    background: rgba(16, 16, 16, 0.6);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-xl);
    overflow: hidden;
}

.tab-content.active {
    display: block;
}

/* Activity List */
.activity-list {
    padding: var(--space-md);
}

.activity-item {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-md);
    border-radius: var(--radius-lg);
    transition: all var(--transition-fast);
    color: var(--text-primary);
    text-decoration: none;
}

.activity-item:hover {
    background: rgba(255, 255, 255, 0.04);
}

.activity-item + .activity-item {
    border-top: 1px solid var(--border);
}

.activity-icon {
    width: 42px;
    height: 42px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1rem;
}

.activity-icon.threads {
    background: rgba(96, 165, 250, 0.1);
    color: #60a5fa;
}

.activity-icon.posts {
    background: rgba(167, 139, 250, 0.1);
    color: #a78bfa;
}

.activity-icon.purchase {
    background: rgba(240, 196, 91, 0.1);
    color: var(--gold);
}

.activity-info {
    flex: 1;
    min-width: 0;
}

.activity-title {
    font-size: 0.95rem;
    font-weight: 600;
    margin: 0 0 4px 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.activity-preview {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin: 4px 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.activity-meta {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-md);
    font-size: 0.75rem;
    color: var(--text-muted);
}

.activity-meta span {
    display: flex;
    align-items: center;
    gap: 4px;
}

.activity-meta i {
    font-size: 0.65rem;
}

.activity-arrow {
    color: var(--text-muted);
    font-size: 0.8rem;
    transition: all var(--transition-fast);
}

.activity-item:hover .activity-arrow {
    color: var(--gold);
    transform: translateX(3px);
}

/* Purchase Status */
.purchase-status {
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
}

.status-completed {
    background: rgba(74, 222, 128, 0.15);
    color: var(--success);
}

.status-pending {
    background: rgba(251, 191, 36, 0.15);
    color: var(--warning);
}

.status-refunded {
    background: rgba(248, 113, 113, 0.15);
    color: var(--error);
}

/* ==============================================
   SETTINGS PAGE
   ============================================ */

.settings-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: var(--space-xl);
    max-width: 1100px;
    margin: 0 auto;
}

/* Settings Sidebar */
.settings-sidebar {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
    position: sticky;
    top: 90px;
    height: fit-content;
}

.settings-user {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-lg);
    background: rgba(16, 16, 16, 0.6);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-xl);
}

.settings-avatar {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    image-rendering: pixelated;
}

.settings-user-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.settings-username {
    font-weight: 700;
    font-size: 0.95rem;
}

.settings-profile-link {
    font-size: 0.75rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 4px;
}

.settings-profile-link:hover {
    color: var(--gold);
}

.settings-nav {
    background: rgba(16, 16, 16, 0.6);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-xl);
    padding: var(--space-sm);
}

.settings-nav-item {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-md) var(--space-lg);
    border-radius: var(--radius-lg);
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 0.9rem;
    transition: all var(--transition-fast);
}

.settings-nav-item:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
}

.settings-nav-item.active {
    color: var(--gold);
    background: rgba(240, 196, 91, 0.1);
}

.settings-nav-item i {
    width: 20px;
    text-align: center;
    font-size: 0.9rem;
}

/* Settings Content */
.settings-content {
    min-width: 0;
}

.settings-panel {
    display: none;
    background: rgba(16, 16, 16, 0.6);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-xl);
    overflow: hidden;
}

.settings-panel.active {
    display: block;
}

.panel-header {
    padding: var(--space-xl);
    border-bottom: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.02);
}

.panel-header h2 {
    font-size: 1.25rem;
    margin: 0 0 var(--space-xs) 0;
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.panel-header h2 i {
    color: var(--gold);
}

.panel-header p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin: 0;
}

.settings-section {
    padding: var(--space-xl);
    border-bottom: 1px solid var(--border);
}

.settings-section:last-child {
    border-bottom: none;
}

.settings-section h3 {
    font-size: 1rem;
    font-weight: 700;
    margin: 0 0 var(--space-lg) 0;
    color: var(--text-primary);
}

/* Avatar Editor */
.avatar-editor {
    display: flex;
    gap: var(--space-xl);
    align-items: flex-start;
}

.avatar-preview {
    position: relative;
}

.avatar-preview img {
    width: 100px;
    height: 100px;
    border-radius: var(--radius-lg);
    image-rendering: pixelated;
    border: 2px solid var(--border);
}

.avatar-badge {
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    padding: 2px 8px;
    background: var(--success);
    color: #000;
    font-size: 0.65rem;
    font-weight: 700;
    border-radius: 10px;
    white-space: nowrap;
}

.avatar-options {
    flex: 1;
}

.avatar-note {
    font-size: 0.8rem;
    color: var(--accent);
    margin-top: var(--space-sm);
}

/* Form Styles */
.form-group {
    margin-bottom: var(--space-lg);
}

.form-group:last-child {
    margin-bottom: 0;
}

.form-group label {
    display: block;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: var(--space-sm);
    color: var(--text-secondary);
}

.form-group label .optional {
    font-weight: 400;
    color: var(--text-muted);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 14px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-family: inherit;
    font-size: 0.95rem;
    transition: all var(--transition-fast);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--gold);
    background: rgba(255, 255, 255, 0.05);
    box-shadow: 0 0 0 3px rgba(240, 196, 91, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
}

.form-hint {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: var(--space-xs);
}

.form-footer {
    display: flex;
    justify-content: flex-end;
    margin-top: var(--space-xs);
}

.char-count {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.form-error {
    display: block;
    font-size: 0.8rem;
    color: var(--error);
    margin-top: var(--space-xs);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-lg);
}

.form-actions {
    padding: var(--space-xl);
    background: rgba(0, 0, 0, 0.2);
    display: flex;
    gap: var(--space-md);
}

/* Current Value Display */
.current-value {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: 12px 14px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.current-value i {
    color: var(--text-muted);
}

.verified-badge {
    margin-left: auto;
    padding: 2px 8px;
    background: rgba(74, 222, 128, 0.15);
    color: var(--success);
    font-size: 0.7rem;
    font-weight: 700;
    border-radius: 10px;
}

/* Toggle Settings */
.toggle-setting {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-md) var(--space-lg);
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    margin-bottom: var(--space-sm);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.toggle-setting:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: var(--border-light);
}

.toggle-setting:last-child {
    margin-bottom: 0;
}

.toggle-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.toggle-title {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-primary);
}

.toggle-desc {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.toggle-setting input[type="checkbox"] {
    display: none;
}

.toggle-switch {
    width: 48px;
    height: 26px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 13px;
    position: relative;
    transition: all var(--transition-fast);
    flex-shrink: 0;
}

.toggle-switch::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    background: white;
    border-radius: 50%;
    top: 3px;
    left: 3px;
    transition: all var(--transition-fast);
}

.toggle-setting input:checked + .toggle-switch {
    background: var(--gold);
}

.toggle-setting input:checked + .toggle-switch::after {
    left: 25px;
}

/* Minecraft Cards */
.minecraft-linked-card {
    background: rgba(74, 222, 128, 0.05);
    border: 1px solid rgba(74, 222, 128, 0.2);
    border-radius: var(--radius-xl);
    padding: var(--space-xl);
}

.minecraft-info {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
    margin-bottom: var(--space-xl);
}

.minecraft-avatar {
    width: 64px;
    height: 64px;
    border-radius: var(--radius-lg);
    image-rendering: pixelated;
}

.minecraft-details {
    flex: 1;
}

.minecraft-name {
    display: block;
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--text-primary);
}

.minecraft-uuid {
    display: block;
    font-size: 0.75rem;
    color: var(--text-muted);
    font-family: monospace;
}

.linked-badge {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    padding: 6px 12px;
    background: var(--success);
    color: #000;
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: 20px;
}

.minecraft-benefits {
    margin-bottom: var(--space-xl);
}

.minecraft-benefits h4 {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-muted);
    margin-bottom: var(--space-md);
}

.minecraft-benefits ul {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-sm);
}

.minecraft-benefits li {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.minecraft-benefits li i {
    color: var(--success);
}

.minecraft-unlinked-card {
    text-align: center;
    padding: var(--space-2xl);
}

.unlinked-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto var(--space-lg);
    background: rgba(240, 196, 91, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--gold);
}

.minecraft-unlinked-card h3 {
    font-size: 1.25rem;
    margin-bottom: var(--space-sm);
}

.minecraft-unlinked-card > p {
    color: var(--text-muted);
    margin-bottom: var(--space-xl);
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-md);
    margin-bottom: var(--space-xl);
    text-align: left;
}

.benefit-item {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-md);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
}

.benefit-item i {
    color: var(--gold);
    font-size: 1.1rem;
}

.benefit-item span {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* Danger Zone */
.danger-zone {
    background: rgba(248, 113, 113, 0.05);
    border: 1px solid rgba(248, 113, 113, 0.2);
    border-radius: var(--radius-xl);
    margin: var(--space-xl);
    padding: var(--space-xl);
}

.danger-zone h3 {
    color: var(--error);
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.danger-zone > p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: var(--space-lg);
}

.danger-actions {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.danger-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-md);
    background: rgba(0, 0, 0, 0.2);
    border-radius: var(--radius-lg);
}

.danger-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.danger-title {
    font-weight: 600;
    color: var(--text-primary);
}

.danger-desc {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Responsive Profile/Settings */
@media (max-width: 1024px) {
    .profile-layout {
        grid-template-columns: 1fr;
        margin-top: -60px;
    }
    
    .profile-card {
        position: static;
    }
    
    .profile-stats-bar {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .settings-layout {
        grid-template-columns: 1fr;
    }
    
    .settings-sidebar {
        position: static;
        flex-direction: row;
        flex-wrap: wrap;
    }
    
    .settings-user {
        flex: 1;
        min-width: 200px;
    }
    
    .settings-nav {
        flex: 2;
        min-width: 300px;
        display: flex;
        flex-wrap: wrap;
        gap: var(--space-xs);
    }
    
    .settings-nav-item {
        flex: 1;
        min-width: 120px;
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .profile-banner {
        height: 150px;
    }
    
    .profile-avatar {
        width: 100px;
        height: 100px;
    }
    
    .profile-tabs {
        flex-direction: column;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .avatar-editor {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .benefits-grid {
        grid-template-columns: 1fr;
    }
    
    .minecraft-benefits ul {
        grid-template-columns: 1fr;
    }
    
    .minecraft-info {
        flex-direction: column;
        text-align: center;
    }
    
    .linked-badge {
        margin-top: var(--space-md);
    }
}

/* ==============================================
   NOTIFICATIONS PAGE
   ============================================ */

.notifications-layout {
    max-width: 800px;
    margin: 0 auto;
}

.notifications-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-xl);
}

.notifications-header h1 {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    margin: 0;
}

.notifications-header h1 i {
    color: var(--gold);
}

.notifications-list {
    background: rgba(16, 16, 16, 0.6);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-xl);
    overflow: hidden;
}

.notification-item {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-lg);
    border-bottom: 1px solid var(--border);
    transition: background var(--transition-fast);
}

.notification-item:last-child {
    border-bottom: none;
}

.notification-item:hover {
    background: rgba(255, 255, 255, 0.03);
}

.notification-item.unread {
    background: rgba(240, 196, 91, 0.03);
    border-left: 3px solid var(--gold);
}

.notification-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1rem;
}

.notification-icon.reply {
    background: rgba(96, 165, 250, 0.1);
    color: #60a5fa;
}

.notification-icon.mention {
    background: rgba(167, 139, 250, 0.1);
    color: #a78bfa;
}

.notification-icon.like {
    background: rgba(244, 114, 182, 0.1);
    color: #f472b6;
}

.notification-icon.purchase {
    background: rgba(240, 196, 91, 0.1);
    color: var(--gold);
}

.notification-icon.default {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
}

.notification-content {
    flex: 1;
    min-width: 0;
}

.notification-text {
    margin: 0 0 4px 0;
    font-size: 0.9rem;
    color: var(--text-primary);
}

.notification-time {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.notification-actions {
    display: flex;
    gap: var(--space-sm);
    align-items: center;
}

.btn-ghost {
    background: transparent;
    border: 1px solid transparent;
    color: var(--text-muted);
    padding: 6px 10px;
}

.btn-ghost:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
}
