/* ============================================
   FROSTAL.US - MAIN STYLESHEET
   ============================================ */

/* ============================================
   CSS VARIABLES
   ============================================ */
:root {
    /* Color Palette - Dark Cyan/Blue Tech Terminal Theme */
    --color-primary: #00b8d4;
    --color-primary-light: #00e5ff;
    --color-primary-dark: #0097a7;
    --color-accent: #00acc1;
    --color-success: #00e676;
    --color-success-dark: #00c853;
    --color-error: #ff5252;
    --color-error-dark: #d32f2f;
    --color-warning: #ffc107;
    --color-neutral: #546e7a;
    --color-neutral-dark: #37474f;

    /* Background Colors - Dark Mode */
    --bg-primary: #1a1a1a;
    --bg-secondary: #2d2d2d;
    --bg-tertiary: #2d2d2d;
    --bg-quaternary: #2d2d2d;
    --bg-tooltip: #2d2d2d;
    --bg-tooltip-border: rgba(255, 255, 255, 0.2);

    /* Text Colors - Light */
    --text-color: #ffffff;
    --text-primary: #ffffff;
    --text-secondary: #ffffff;
    --text-tertiary: #e0e0e0;
    --text-muted: #b0b0b0;

    /* Spacing Scale - Condensed spacing hierarchy (5-10px gaps) */
    --spacing-xs: 0.3125rem;  /* 5px */
    --spacing-sm: 0.5rem;     /* 8px */
    --spacing-md: 0.625rem;   /* 10px */
    --spacing-lg: 0.75rem;    /* 12px */
    --spacing-xl: 1rem;       /* 16px */
    --spacing-2xl: 1.25rem;   /* 20px */
    --spacing-3xl: 1.5rem;    /* 24px */

    /* Typography */
    --font-xs: 0.875rem;
    --font-sm: 0.9rem;
    --font-base: 1rem;
    --font-md: 1.1rem;
    --font-lg: 1.3rem;
    --font-xl: 1.5rem;
    --font-2xl: 2rem;
    --font-3xl: 2.5rem;
    --line-height-base: normal;
    --line-height-relaxed: normal;

    /* Icon Sizes */
    --icon-size: 3rem;
    --icon-padding: var(--spacing-sm);
    --icon-gap: var(--spacing-md);

    /* Border Radius - Professional rounded borders */
    --radius-sm: 0.25rem;    /* 4px */
    --radius-md: 0.5rem;     /* 8px */
    --radius-lg: 0.75rem;    /* 12px */
    --radius-full: 50%;

    /* Shadows - Cyan Glow Effects */
    --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.6);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.6);
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.5);
    --shadow-primary: 0 4px 12px rgba(0, 184, 212, 0.4);

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;

    /* Z-index Layers */
    --z-top-bar: 1000;
    --z-tooltip: 1001;
    --z-tooltip-arrow: 1002;

    /* Opacity Values */
    --opacity-hover: 0.2;
    --opacity-active: 0.3;
    --opacity-active-hover: 0.4;
    --opacity-border: 0.6;
    --opacity-border-hover: 0.8;

    /* Container Sizes */
    --container-max-width: 1200px;
    --container-max-width-md: 1000px;
    --container-width-mobile: 90%;
    --container-width-tablet: 80%;
    --container-width-desktop: 70%;
    --container-min-width: 280px;
}

/* ============================================
   RESET & BASE STYLES
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    overflow-x: hidden;
    min-height: 100vh;
    height: 100%;
    scroll-behavior: smooth;
    scroll-padding-top: 70px;
    background: #1a1a1a;
    background-attachment: fixed;
}

body {
    font-family: Tahoma, Arial, sans-serif;
    line-height: normal;
    color: var(--text-primary);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: var(--spacing-md);
    overflow-x: hidden;
    /* Ensure body is the scrolling container for sticky to work */
    position: relative;
}

/* ============================================
   LAYOUT STRUCTURE
   ============================================ */
body > header {
    position: fixed;
    left: 0;
    right: 0;
    width: 100%;
    flex-shrink: 0;
    z-index: var(--z-top-bar);
    background: transparent;
    align-self: stretch;
}

/* Sidebar layout - fixed left and right sidebars */
body.has-sidebar {
    padding-left: 280px; /* Left sidebar width */
    padding-right: 280px; /* Right sidebar width */
}

/* Content wrapper right under body */
.content-wrapper {
    width: 100%;
    max-width: var(--container-max-width);
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
    margin: 0 auto;
}

body > main,
.content-wrapper > main {
    width: 100%;
    max-width: var(--container-max-width);
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-md);
    flex: 1;
    min-height: 0;
    padding-top: 50px;
    scroll-behavior: smooth;
    padding-left: var(--spacing-md);
    padding-right: var(--spacing-md);
    box-sizing: border-box;
}

/* When sidebar exists, fill remaining space */
body.has-sidebar > main,
body.has-sidebar .content-wrapper > main {
    width: 100%;
    max-width: none;
    margin: 0;

}

/* Layout wrapper for 2-column content */
.main-layout {
    width: 100%;
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: var(--spacing-xs); /* 5px gap */
    margin: 0 auto;
    position: relative;
    /* Ensure sticky positioning works */
    min-height: 0;
}

/* Main content area - works with or without sidebar */
.main-content {
    flex: 1;
    width: 100%;
    max-width: var(--container-max-width);
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-xs); /* 5px gap */
    padding: 0 var(--spacing-sm); /* 8px padding */
    box-sizing: border-box;
}

/* When body doesn't have sidebar, center main-layout content */
body:not(.has-sidebar) .main-layout {
    justify-content: center;
}

body:not(.has-sidebar) .main-content {
    flex: 0 1 auto;
    width: 100%;
}

/* Responsive Breakpoints */
/* Tablet and below (1024px and below) */
@media (max-width: 1024px) {
    .main-layout {
        flex-direction: column;
        padding-left: var(--spacing-xs);
        padding-right: var(--spacing-xs);
    }
    
    .top-bar-content {
        gap: 10px;
        padding: 6px 12px;
    }
    
    .nav-main {
        gap: 3px;
    }
    
    .nav-icon {
        padding: 8px 12px;
        font-size: 0.85rem;
    }
    
    .nav-icon::after {
        font-size: 0.8rem;
        opacity: 0.9;
    }
}

/* Medium tablets (768px and below) */
@media (max-width: 768px) {
    .container {
        padding: var(--spacing-xs);
    }
    
    h1 { font-size: var(--font-2xl); }
    h2 { font-size: var(--font-xl); }
    h3 { font-size: var(--font-lg); }
    
    .top-bar-content {
        gap: 5px;
        padding: 5px 10px;
    }
    
    .nav-main {
        gap: 2px;
    }
    
    /* Start hiding navigation text, show icons only */
    .nav-icon::after {
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s ease, visibility 0.3s ease;
    }
    
    .nav-icon {
        padding: 8px;
        gap: 0;
        min-width: 44px;
        min-height: 44px;
        justify-content: center;
        border-radius: 10px;
    }
    
    .nav-icon img,
    .nav-main img,
    .nav-auth img {
        width: 24px;
        height: 24px;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .profile-hero-container {
        flex-direction: column;
        text-align: center;
        padding: 20px;
        gap: 20px;
    }
    
    .profile-header-top {
        justify-content: center;
    }
    
    .profile-actions {
        justify-content: center;
    }
    
    .profile-picture-large,
    .profile-picture-placeholder-large {
        width: 120px;
        height: 120px;
    }
}

/* Small mobile devices (480px and below) */
@media (max-width: 480px) {
    .server-ip-container {
        flex-direction: column;
        width: 100%;
    }
    
    .server-ip-input {
        width: 100%;
        min-width: unset;
    }
    
    .application-actions-center {
        flex-direction: column;
    }
    
    .profile-picture-upload-container {
        flex-direction: column;
    }
    
    .profile-picture-upload-controls {
        min-width: unset;
        width: 100%;
    }
    
    /* Enhanced mobile navigation */
    .top-bar {
        border-radius: 0;
    }
    
    .top-bar-content {
        padding: 4px 8px;
        gap: 2px;
    }
    
    .nav-main {
        gap: 1px;
    }
    
    .nav-icon {
        min-width: 48px;
        min-height: 48px;
        padding: 6px;
        border-radius: 8px;
    }
    
    .nav-icon img,
    .nav-main img,
    .nav-auth img {
        width: 26px;
        height: 26px;
    }
    
    /* Reduce hover effects on touch devices */
    @media (hover: none) {
        .nav-icon:hover {
            transform: none;
            box-shadow: none;
        }
        
        .nav-icon:active {
            transform: scale(0.95);
            background: rgba(0, 184, 212, 0.2);
        }
    }
}

/* Hero section should be full width - targets first container in main */
body > main > .container:first-child {
    width: 100%;
}

/* ============================================
   NAVIGATION - TOP BAR
   ============================================ */
.top-bar {
    background: linear-gradient(135deg, rgba(45, 45, 45, 0.95) 0%, rgba(26, 26, 26, 0.95) 100%);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    width: 100%;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3), 0 2px 8px rgba(0, 184, 212, 0.1);
    position: sticky;
    top: 0;
    z-index: var(--z-top-bar);
    transition: all 0.3s ease;
    position: relative;
    margin: 0;
    border-radius: 10px;
}

/* Shared white background for nav and containers */
.top-bar, .container {
    background: linear-gradient(135deg, rgba(45, 45, 45, 0.95) 0%, rgba(26, 26, 26, 0.95) 100%);
    backdrop-filter: blur(20px);
}

.top-bar-content {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 8px 16px;
    max-width: var(--container-max-width);
    margin: 0 auto;
}

/* Main navigation group (left side) */
.nav-main {
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Auth navigation group (right side) */
.nav-auth {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-left: auto;
}

/* Navigation Links - Text and Icon */
.nav-icon {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: 12px;
    font-size: var(--font-sm);
    font-weight: 500;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    border: 1px solid transparent;
}

.nav-icon::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s ease;
    pointer-events: none;
}

.nav-icon::after {
    content: attr(title);
    font-weight: 600;
    white-space: nowrap;
    transition: opacity 0.3s ease;
}

.nav-icon:hover {
    background: linear-gradient(135deg, rgba(0, 184, 212, 0.15) 0%, rgba(0, 184, 212, 0.05) 100%);
    color: var(--color-primary-light);
    border-color: rgba(0, 184, 212, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 184, 212, 0.2);
}

.nav-icon:hover::before {
    left: 100%;
}

.nav-icon.active {
    background: linear-gradient(135deg, rgba(0, 184, 212, 0.25) 0%, rgba(0, 184, 212, 0.1) 100%);
    color: var(--color-primary);
    font-weight: 600;
    box-shadow: 0 0 0 1px rgba(0, 184, 212, 0.4), 0 4px 12px rgba(0, 184, 212, 0.2);
    border-color: rgba(0, 184, 212, 0.4);
}

.nav-icon.active:hover {
    background: linear-gradient(135deg, rgba(0, 184, 212, 0.3) 0%, rgba(0, 184, 212, 0.15) 100%);
    color: var(--color-primary-light);
    transform: translateY(-2px);
    box-shadow: 0 0 0 1px rgba(0, 184, 212, 0.5), 0 8px 20px rgba(0, 184, 212, 0.3);
}

/* SVG images - no filter applied */
img[src*=".svg"] {
    /* No filter - display as original */
    filter: none;
}

/* Navigation icons */
.nav-icon img,
.nav-main img,
.nav-auth img {
    display: block;
    width: 20px;
    height: 20px;
    opacity: 1;
}

/* Navbar profile picture - override general nav-icon img styles */
.nav-icon .nav-profile-picture {
    width: 20px !important;
    height: 20px !important;
    border-radius: 50%;
    object-fit: cover;
    display: block;
}

.nav-icon .nav-profile-picture-placeholder {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 12px;
    flex-shrink: 0;
}

/* ============================================
   SIDEBAR NAVIGATION
   ============================================ */
/* Sidebar nav - fixed positioning for standalone navigation */
.sidebar-nav {
    position: fixed;
    left: 0;
    top: 50px; /* Align with main content */
    width: 280px;
    height: calc(100vh - 50px);
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 5px;
    overflow-y: auto;
    overflow-x: hidden;
    flex-shrink: 0;
    z-index: 99;
    background: transparent;
    scroll-behavior: smooth;
}

/* Sidebar nav inside container (for posts page) - override positioning */
.sidebar-nav {
    position: static;
    width: 100%;
    height: auto;
    flex: 1;
    min-height: 0;
    left: auto;
    top: auto;
}

/* Legacy support - keep old class names working */

/* Top Posts Sidebar - First sidebar on top */
.top-posts-sidebar {
    border-bottom: 2px solid rgba(0, 184, 212, 0.3);
}

/* Recent Posts Sidebar - Second sidebar below */
.recent-posts-sidebar {
    /* Inherit sidebar styling */
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    padding: var(--spacing-lg);
    border: 1px solid rgba(0, 184, 212, 0.2);
}

.sidebar-nav.sticky {
    /* Already fixed, no need for sticky class */
    position: relative;
}

/* Custom scrollbar for sidebar - Hidden scrollbars */
.sidebar-nav::-webkit-scrollbar {
    width: 0;
    height: 0;
    background: transparent;
}

.sidebar-nav::-webkit-scrollbar-track {
    background: transparent;
}

.sidebar-nav::-webkit-scrollbar-thumb {
    background: transparent;
}

/* Firefox - hide scrollbar */
.sidebar-nav {
    scrollbar-width: none;
    -ms-overflow-style: none;
    scroll-behavior: smooth;
}

/* Tablet and below - Hide left sidebar */
@media (max-width: 1024px) {
    body.has-sidebar {
        padding-left: 0;
        padding-right: 0;
    }
    
    .sidebar-nav {
        display: none !important;
    }
    
    body.has-sidebar > main,
    body.has-sidebar .content-wrapper > main {
        padding-left: var(--spacing-xs);
        padding-right: var(--spacing-xs);
    }
    
    .main-content {
        max-width: 100%;
    }
}

/* Mobile devices - Hide left sidebar completely */
@media (max-width: 768px) {
    .sidebar-nav {
        display: none !important;
    }
    
    body.has-sidebar {
        padding-left: 0;
    }
}

/* Modular widget/module layout - shared for both sidebars */
.sidebar-module,
.sidebar-nav-module {
    background: #2d2d2d;
    border-radius: var(--radius-md);
    padding: 5px;
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    gap: 5px;
    flex-shrink: 0;
    overflow-y: auto;
    overflow-x: hidden;
    min-height: 0;
    transition: all var(--transition-normal);
}

.sidebar-module:hover,
.sidebar-nav-module:hover {
    border-color: rgba(0, 184, 212, 0.2);
    box-shadow: var(--shadow-primary);
}

.sidebar-module-title,
.sidebar-nav-title {
    color: var(--color-primary);
    font-size: var(--font-md);
    font-weight: 700;
    margin: 0 0 5px 0;
    padding: 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid rgba(0, 184, 212, 0.2);
    padding-bottom: 10px;
}

/* Legacy support - keep old class names working */

/* Calendar styles */
.calendar {
    width: 100%;
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.calendar-month-year {
    font-size: var(--font-md);
    font-weight: 700;
    color: #ffffff;
}

.calendar-nav-btn {
    background: var(--bg-tertiary);
    color: var(--text-primary);
    cursor: pointer;
    font-size: var(--font-sm);
    padding: 6px 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-weight: 500;
    transition: all var(--transition-fast);
    min-height: 32px;
    margin: 0;
    box-shadow: var(--shadow-sm);
}

.calendar-nav-btn:hover:not(:disabled) {
    background: var(--bg-secondary);
    color: var(--color-primary-light);
    border-color: var(--color-primary);
    box-shadow: var(--shadow-md);
    transform: translateY(-1px);
}

.calendar-nav-btn:active:not(:disabled) {
    background: var(--bg-tertiary);
    transform: translateY(0);
    box-shadow: var(--shadow-sm);
}

.calendar-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 5px;
    margin-bottom: 10px;
}

.calendar-weekday {
    text-align: center;
    font-size: var(--font-xs);
    font-weight: 700;
    color: #ffffff;
    padding: 5px 0;
}

.calendar-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 5px;
}

.calendar-day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--font-sm);
    color: #ffffff;
    cursor: pointer;
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
}

.calendar-day:hover {
    background: rgba(255, 255, 255, 0.1);
}

.calendar-day.today {
    background: var(--color-accent);
    color: #ffffff;
    font-weight: 700;
}

.calendar-day.other-month {
    color: #999999;
}

.calendar-day.selected {
    background: var(--color-primary);
    color: #ffffff;
}

/* Hide right sidebar when viewport is too small for calendar */
/* Calendar needs at least ~1200px to display properly */
@media (max-width: 1200px) {
    body.has-sidebar {
        padding-right: 0;
    }
}


/* ============================================
   MAIN CONTENT AREA
   ============================================ */
.main-content {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    gap: var(--spacing-md);
}


/* ============================================
   CREATE POST SECTION
   ============================================ */
.create-post-section {
    text-align: center;
    padding: var(--spacing-lg) 0;
}

.create-post-btn {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-md) var(--spacing-xl);
    font-size: var(--font-lg);
    font-weight: 600;
    background: linear-gradient(135deg, rgba(0, 184, 212, 0.2) 0%, rgba(0, 184, 212, 0.1) 100%);
    border: 2px solid rgba(0, 184, 212, 0.3);
    border-radius: var(--radius-lg);
    color: var(--color-primary);
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.create-post-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.create-post-btn:hover {
    background: linear-gradient(135deg, rgba(0, 184, 212, 0.3) 0%, rgba(0, 184, 212, 0.2) 100%);
    border-color: rgba(0, 184, 212, 0.5);
    color: var(--color-primary-light);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 184, 212, 0.3);
}

.create-post-btn:hover::before {
    left: 100%;
}

.create-post-btn:active {
    transform: translateY(0);
    box-shadow: 0 4px 12px rgba(0, 184, 212, 0.2);
}

/* ============================================
   CONTAINER & CONTENT SECTIONS
   ============================================ */
/* White background utility */
.bg-white {
    background: #2d2d2d;
}

.container {
    width: 100%;
    max-width: 100%;
    padding: var(--spacing-md);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
    scroll-behavior: smooth;
}

/* Make container transparent with no padding when it contains posts */
.container:has(.posts-container) {
    background: transparent;
    padding: 0;
    border: none;
    box-shadow: none;
    border-radius: 0;
}

.content-section {
    scroll-margin-top: 50px;
    padding: var(--spacing-md) var(--spacing-sm); /* 10px 8px - condensed */
    background: rgba(0, 0, 0, 0.2);
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(5px);
    transition: all var(--transition-normal);
    scroll-behavior: smooth;
    margin-bottom: var(--spacing-xs); /* 5px gap between sections */
}

.content-section:hover {
    border-color: rgba(0, 184, 212, 0.2);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.hero {
    text-align: center;
    padding: var(--spacing-xl) var(--spacing-md); /* 16px 10px - condensed */
    background: linear-gradient(135deg, #667eea 0%, #764ba2 25%, #00b8d4 75%, #00e5ff 100%);
    border-radius: var(--radius-lg);
    margin: var(--spacing-sm) 0; /* 8px margin - condensed */
    position: relative;
    color: white;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 80%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
    pointer-events: none;
    animation: float 6s ease-in-out infinite;
}

.hero h1 {
    position: relative;
    z-index: 1;
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    color: #ffffff;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    margin-bottom: var(--spacing-md);
    letter-spacing: -0.02em;
    animation: fadeInUp 1s ease-out;
}

.hero p {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-sm);
    font-size: clamp(1.1rem, 2vw, 1.4rem);
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    letter-spacing: 0.5px;
    animation: fadeInUp 1s ease-out 0.2s both;
}

.hero-disclaimer {
    text-align: center;
    font-size: var(--font-sm);
    color: var(--text-muted);
    margin-top: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
    padding: 0 var(--spacing-lg);
    opacity: 0.8;
    line-height: 1.2;
}

@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-sm);
    }
    
    .stat-item {
        padding: var(--spacing-sm);
    }
    
    .stat-label {
        font-size: var(--font-xs);
    }
    
    .stat-value {
        font-size: var(--font-lg);
    }
}

.leaderboard-container {
    margin-top: var(--spacing-sm);
}

.leaderboard-list {
    list-style: none;
    padding: 0;
    margin: 0;
    background: var(--bg-tertiary);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--bg-quaternary);
}

.leaderboard-entry {
    display: grid;
    grid-template-columns: 50px 50px 1fr 100px 100px 120px;
    align-items: center;
    padding: var(--spacing-xs) var(--spacing-sm);
    border-bottom: 1px solid var(--bg-quaternary);
    transition: background-color var(--transition-fast);
}

.leaderboard-entry:last-child {
    border-bottom: none;
}

.leaderboard-entry:hover {
    background: var(--bg-quaternary);
}

.leaderboard-entry.current-player {
    background: rgba(59, 130, 246, 0.2);
    border-left: 3px solid var(--color-primary);
}

.leaderboard-entry.current-player:hover {
    background: rgba(59, 130, 246, 0.3);
}

.leaderboard-entry-clickable {
    cursor: pointer;
}

.leaderboard-entry-link {
    display: contents;
    text-decoration: none;
    color: inherit;
}

.leaderboard-profile-container {
    display: flex;
    align-items: center;
    justify-content: center;
}

.leaderboard-profile-picture {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--bg-quaternary);
}

.leaderboard-profile-picture-placeholder {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--color-primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: var(--font-md);
    border: 2px solid var(--bg-quaternary);
}

.leaderboard-profile-picture-anonymous {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--bg-quaternary);
    border: 2px solid var(--bg-quaternary);
}

.leaderboard-rank {
    font-weight: bold;
    color: var(--color-primary);
    font-size: var(--font-md);
}

.leaderboard-name {
    font-weight: 500;
    color: var(--text-primary);
    font-size: var(--font-md);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.leaderboard-score {
    font-weight: bold;
    color: var(--text-primary);
    font-size: var(--font-md);
    text-align: right;
}

.leaderboard-level {
    color: var(--text-secondary);
    font-size: var(--font-sm);
    text-align: right;
}

.leaderboard-date {
    color: var(--text-secondary);
    font-size: var(--font-xs);
    text-align: right;
}

.leaderboard-empty {
    padding: var(--spacing-md);
    text-align: center;
    color: var(--text-secondary);
    font-style: italic;
}

@media (max-width: 768px) {
    .leaderboard-entry {
        grid-template-columns: 40px 40px 1fr 80px 80px;
        font-size: var(--font-sm);
    }
    
    .leaderboard-entry-link {
        grid-template-columns: 40px 40px 1fr 80px 80px;
    }
    
    .leaderboard-profile-picture,
    .leaderboard-profile-picture-placeholder,
    .leaderboard-profile-picture-anonymous {
        width: 32px;
        height: 32px;
        font-size: var(--font-sm);
    }
    
    .leaderboard-date {
        display: none;
    }
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================
   COMMON PAGE ELEMENTS STYLES
   ============================================ */
.features-list {
    list-style: none;
    padding: 0;
    margin: 20px 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
}

.features-list li {
    padding: 16px 20px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.02) 100%);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
    line-height: 1.6;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.features-list li::before {
    content: '✨';
    margin-right: 8px;
    color: var(--color-primary);
    font-weight: bold;
}

.features-list li:hover {
    transform: translateY(-2px);
    border-color: rgba(0, 184, 212, 0.3);
    box-shadow: 0 8px 20px rgba(0, 184, 212, 0.15);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.04) 100%);
}

.steps-list {
    list-style: none;
    padding: 0;
    margin: 20px 0;
    counter-reset: step-counter;
}

.steps-list li {
    counter-increment: step-counter;
    padding: 20px 20px 20px 60px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.02) 100%);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    margin-bottom: 16px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
    line-height: 1.6;
    transition: all 0.3s ease;
    position: relative;
}

.steps-list li::before {
    content: counter(step-counter);
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    width: 30px;
    height: 30px;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 0.9rem;
    box-shadow: 0 4px 12px rgba(0, 184, 212, 0.3);
}

.steps-list li:hover {
    transform: translateX(8px);
    border-color: rgba(0, 184, 212, 0.3);
    box-shadow: 0 8px 20px rgba(0, 184, 212, 0.15);
}

.guidelines-list {
    list-style: none;
    padding: 0;
    margin: 20px 0;
}

.guidelines-list li {
    padding: 16px 20px;
    background: linear-gradient(135deg, rgba(255, 99, 71, 0.05) 0%, rgba(255, 99, 71, 0.02) 100%);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 99, 71, 0.1);
    border-left: 4px solid rgba(255, 99, 71, 0.6);
    border-radius: 8px;
    margin-bottom: 12px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.95rem;
    line-height: 1.5;
    transition: all 0.3s ease;
}

.guidelines-list li::before {
    content: '⚠️';
    margin-right: 8px;
}

.guidelines-list li:hover {
    transform: translateX(4px);
    border-left-color: rgba(255, 99, 71, 0.8);
    box-shadow: 0 4px 12px rgba(255, 99, 71, 0.1);
}

.about-cta-center {
    text-align: center;
    margin: 30px 0;
}

.about-cta-center .button-link {
    padding: 16px 32px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff;
    text-decoration: none;
    border-radius: 30px;
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    border: none;
    cursor: pointer;
    display: inline-block;
}

.about-cta-center .button-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.6s ease;
}

.about-cta-center .button-link:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 15px 30px rgba(102, 126, 234, 0.4);
}

.about-cta-center .button-link:hover::before {
    left: 100%;
}

/* Form enhancements */
.post-create-form {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.02) 100%);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    padding: var(--spacing-xl);
}

.post-textarea {
    width: 100%;
    min-height: 120px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 16px;
    color: #ffffff;
    font-size: 1rem;
    font-family: inherit;
    resize: vertical;
    transition: all 0.3s ease;
}

.post-textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(0, 184, 212, 0.2);
    background: rgba(255, 255, 255, 0.08);
}

.post-textarea::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.post-char-count {
    text-align: right;
    margin-top: 8px;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
}

.form-actions {
    margin-top: 20px;
    text-align: right;
}

.form-actions .button-link {
    padding: 12px 24px;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
    color: #ffffff;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    border: none;
    cursor: pointer;
    display: inline-block;
}

.form-actions .button-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.form-actions .button-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 184, 212, 0.4);
}

.form-actions .button-link:hover::before {
    left: 100%;
}

.form-message {
    padding: var(--spacing-md) var(--spacing-lg);
    border-radius: 12px;
    margin-top: var(--spacing-md);
    font-weight: 600;
    font-size: var(--font-sm);
    letter-spacing: 0.5px;
    backdrop-filter: blur(10px);
    border: 1px solid transparent;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.form-message::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s ease;
}

.form-message:hover::before {
    left: 100%;
}

.form-message.error {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.2) 0%, rgba(239, 68, 68, 0.1) 100%);
    border-color: rgba(239, 68, 68, 0.3);
    color: #ff5252;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.2);
}

.form-message.success {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.2) 0%, rgba(34, 197, 94, 0.1) 100%);
    border-color: rgba(34, 197, 94, 0.3);
    color: #22c55e;
    box-shadow: 0 4px 12px rgba(34, 197, 94, 0.2);
}

.loading-message {
    text-align: center;
    padding: 60px 20px;
    color: rgba(255, 255, 255, 0.7);
    font-size: var(--font-lg);
    font-weight: 500;
    position: relative;
}

.loading-message::before {
    content: '';
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(0, 184, 212, 0.3);
    border-radius: 50%;
    border-top-color: var(--color-primary);
    animation: spin 1s linear infinite;
    margin-right: var(--spacing-sm);
    vertical-align: middle;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.hidden {
    display: none !important;
}

/* ============================================
   NEKO INTERFACE STYLES
   ============================================ */

/* NEKO Hero Section */
.neko-hero-icon {
    width: 64px;
    height: 64px;
    margin: 0 var(--spacing-md);
    vertical-align: middle;
    filter: drop-shadow(0 0 20px rgba(147, 51, 234, 0.5));
    animation: nekoGlow 2s ease-in-out infinite alternate;
}

@keyframes nekoGlow {
    0% { filter: drop-shadow(0 0 20px rgba(147, 51, 234, 0.5)); }
    100% { filter: drop-shadow(0 0 30px rgba(147, 51, 234, 0.8)); }
}

/* NEKO Search Form */
.neko-search-form {
    background: linear-gradient(135deg, rgba(147, 51, 234, 0.1) 0%, rgba(99, 102, 241, 0.05) 100%);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(147, 51, 234, 0.2);
    border-radius: var(--radius-lg);
    padding: var(--spacing-md); /* 10px padding - condensed */
    margin: var(--spacing-sm) 0; /* 8px margin - condensed */
}

.form-row {
    display: flex;
    gap: var(--spacing-md);
    align-items: end;
    flex-wrap: wrap;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.form-group-wide {
    flex: 2;
    min-width: 250px;
}

.form-group-narrow {
    flex: 1;
    min-width: 120px;
}

.form-group label {
    color: var(--text-primary);
    font-weight: 600;
    font-size: var(--font-sm);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-input {
    padding: var(--spacing-md);
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: var(--font-base);
    transition: all var(--transition-fast);
    box-sizing: border-box;
}

.form-input:focus {
    outline: none;
    border-color: var(--color-primary);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 0 3px rgba(147, 51, 234, 0.2);
    transform: translateY(-1px);
}

.form-input::placeholder {
    color: rgba(255, 255, 255, 0.4);
    font-style: italic;
}

/* NEKO Results Tables */
.neko-results-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.02) 0%, rgba(255, 255, 255, 0.01) 100%);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.neko-results-table thead {
    background: linear-gradient(135deg, rgba(147, 51, 234, 0.2) 0%, rgba(99, 102, 241, 0.1) 100%);
    backdrop-filter: blur(10px);
}

.neko-results-table th {
    padding: var(--spacing-md) var(--spacing-lg);
    text-align: left;
    color: var(--text-primary);
    font-weight: 700;
    font-size: var(--font-sm);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 2px solid rgba(147, 51, 234, 0.3);
}

.neko-results-table tbody tr {
    transition: all var(--transition-fast);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.neko-results-table tbody tr:hover {
    background: linear-gradient(135deg, rgba(147, 51, 234, 0.1) 0%, rgba(99, 102, 241, 0.05) 100%);
    transform: translateX(4px);
}

.neko-results-table tbody tr:last-child {
    border-bottom: none;
}

.neko-results-table td {
    padding: var(--spacing-md) var(--spacing-lg);
    color: var(--text-secondary);
    font-size: var(--font-sm);
}

/* NEKO Interactive Elements */
.neko-result-row {
    cursor: pointer;
    position: relative;
    transition: all var(--transition-fast);
}

.neko-result-row::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
    opacity: 0;
    transition: opacity var(--transition-fast);
}

.neko-result-row:hover::before {
    opacity: 1;
}

.neko-result-row:hover {
    background: linear-gradient(135deg, rgba(147, 51, 234, 0.1) 0%, rgba(99, 102, 241, 0.05) 100%);
    transform: translateX(4px);
    box-shadow: 0 4px 12px rgba(147, 51, 234, 0.15);
}

/* NEKO Search Input Enhancements */
.form-input {
    position: relative;
    transition: all var(--transition-fast);
}

.form-input:focus {
    outline: none;
    border-color: var(--color-primary);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 0 3px rgba(147, 51, 234, 0.2);
    transform: translateY(-1px);
}

.form-input:focus::placeholder {
    color: rgba(255, 255, 255, 0.6);
    transform: translateY(-1px);
}

/* NEKO Pulse Animation for Live Updates */
@keyframes nekoPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(147, 51, 234, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(147, 51, 234, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(147, 51, 234, 0);
    }
}

.neko-live-indicator {
    display: inline-block;
    width: 8px;
    height: 8px;
    background: var(--color-primary);
    border-radius: 50%;
    margin-left: var(--spacing-sm);
    animation: nekoPulse 2s infinite;
}

/* NEKO Card Flip Animation */
.neko-card {
    perspective: 1000px;
    transition: transform var(--transition-normal);
}

.neko-card:hover {
    transform: rotateY(5deg);
}

/* NEKO Data Loading Skeleton */
.neko-skeleton {
    background: linear-gradient(90deg, 
        rgba(255, 255, 255, 0.05) 25%, 
        rgba(255, 255, 255, 0.1) 50%, 
        rgba(255, 255, 255, 0.05) 75%
    );
    background-size: 200% 100%;
    animation: nekoShimmer 1.5s infinite;
    border-radius: var(--radius-sm);
}

@keyframes nekoShimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

/* NEKO Status Badge Animations */
.neko-status-badge {
    transition: all var(--transition-fast);
    position: relative;
    overflow: hidden;
}

.neko-status-badge::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.6s ease;
}

.neko-status-badge:hover::before {
    left: 100%;
}

.neko-status-badge:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* NEKO Search Form Glow Effect */
.neko-search-form {
    position: relative;
    overflow: hidden;
}

.neko-search-form::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, 
        var(--color-primary), 
        var(--color-primary-light), 
        var(--color-primary)
    );
    border-radius: var(--radius-lg);
    opacity: 0;
    transition: opacity var(--transition-normal);
    z-index: -1;
}

.neko-search-form:focus-within::before {
    opacity: 0.3;
    animation: nekoGlowRotate 3s linear infinite;
}

@keyframes nekoGlowRotate {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* NEKO Table Row Selection */
.neko-results-table tbody tr.selected {
    background: linear-gradient(135deg, rgba(147, 51, 234, 0.2) 0%, rgba(99, 102, 241, 0.1) 100%);
    border-left: 3px solid var(--color-primary);
}

.neko-results-table tbody tr.selected::before {
    opacity: 1;
}

/* NEKO Hover Effects for Interactive Elements */
.neko-interactive {
    transition: all var(--transition-fast);
    cursor: pointer;
}

.neko-interactive:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.neko-interactive:active {
    transform: translateY(0);
    box-shadow: var(--shadow-sm);
}

/* NEKO Loading States Enhanced */
.neko-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-md);
    padding: var(--spacing-3xl);
    color: var(--text-muted);
    font-style: italic;
    position: relative;
}

.neko-loading::before {
    content: '';
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-top: 2px solid var(--color-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.neko-loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 40px;
    height: 40px;
    background: radial-gradient(circle, rgba(147, 51, 234, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    animation: nekoPulse 2s ease-in-out infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* NEKO Back Button */
.neko-back-button {
    padding: var(--spacing-md) var(--spacing-lg);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 600;
    transition: all var(--transition-fast);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.neko-back-button:hover {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0.08) 100%);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* NEKO Status Indicators */
.neko-status-badge {
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: var(--radius-full);
    font-size: var(--font-xs);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.neko-status-public {
    background: linear-gradient(135deg, rgba(0, 230, 118, 0.2) 0%, rgba(0, 200, 83, 0.1) 100%);
    color: var(--color-success);
    border: 1px solid rgba(0, 230, 118, 0.3);
}

.neko-status-private {
    background: linear-gradient(135deg, rgba(255, 82, 82, 0.2) 0%, rgba(255, 71, 87, 0.1) 100%);
    color: var(--color-error);
    border: 1px solid rgba(255, 82, 82, 0.3);
}

/* NEKO Loading States */
.neko-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-md);
    padding: var(--spacing-3xl);
    color: var(--text-muted);
    font-style: italic;
}

.neko-loading::before {
    content: '';
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-top: 2px solid var(--color-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* NEKO Player Page */
.neko-player-container {
    padding: var(--spacing-2xl);
    max-width: var(--container-max-width);
    margin: 0 auto;
}

.neko-player-header {
    text-align: center;
    margin-bottom: var(--spacing-2xl);
}

.neko-player-header h1 {
    font-size: var(--font-3xl);
    font-weight: 700;
    color: #ffffff;
    margin-bottom: var(--spacing-sm);
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.neko-player-header p {
    color: rgba(255, 255, 255, 0.7);
    font-size: var(--font-lg);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* NEKO Player Card Layout */
.neko-player-card-layout {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: var(--spacing-md); /* 10px gap - condensed */
    background: linear-gradient(135deg, rgba(147, 51, 234, 0.05) 0%, rgba(99, 102, 241, 0.02) 100%);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(147, 51, 234, 0.1);
    border-radius: var(--radius-lg);
    padding: var(--spacing-md); /* 10px padding - condensed */
    margin-bottom: var(--spacing-sm); /* 8px margin - condensed */
    box-shadow: var(--shadow-lg);
}

.neko-player-card-left {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm); /* 8px gap - condensed */
}

.neko-player-info-right {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm); /* 8px gap - condensed */
}

/* NEKO Recent Capture Image Viewer */
.neko-recent-capture-image-viewer {
    background: rgba(0, 0, 0, 0.3);
    border-radius: var(--radius-lg);
    overflow: hidden;
    position: relative;
    width: 100%;
    max-width: 259px; /* Fixed max width to prevent enlargement */
    height: 410px;    /* Fixed height to match original dimensions */
    margin: 0 auto;    /* Center the viewer */
    box-shadow: var(--shadow-md);
    transition: all var(--transition-normal);
}

.neko-recent-capture-image-viewer:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

.neko-recent-capture-image-container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.neko-recent-capture-main-image {
    width: 259px;  /* Fixed width */
    height: 410px; /* Fixed height */
    object-fit: contain; /* Maintain aspect ratio without cropping */
    background: #000;
    border-radius: var(--radius-md);
    transition: all var(--transition-normal);
    max-width: none; /* Override any max-width constraints */
    max-height: none; /* Override any max-height constraints */
}

.neko-recent-capture-main-image.loading {
    opacity: 0.5;
    filter: blur(2px);
}

.neko-recent-capture-tab-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: var(--overlay-width, 259px);
    height: var(--overlay-height, 410px);
    pointer-events: none;
    transition: opacity var(--transition-fast);
}

.neko-recent-capture-tab-overlay.loading {
    opacity: 0.3;
}

.neko-recent-capture-tab-click-area {
    position: absolute;
    width: 24px;
    height: 24px;
    border-radius: 4px;
    cursor: pointer;
    pointer-events: all;
    transition: all var(--transition-fast);
    border: 2px solid transparent;
    left: var(--tab-x, 0px);
    top: var(--tab-y, 0px);
    z-index: 10;
}

.neko-recent-capture-tab-click-area::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 8px;
    height: 8px;
    background: var(--color-primary);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: opacity var(--transition-fast);
}

.neko-recent-capture-tab-click-area:hover:not([data-disabled="true"]) {
    background: rgba(147, 51, 234, 0.3);
    border-color: var(--color-primary);
    transform: scale(1.2);
    box-shadow: 0 0 15px rgba(147, 51, 234, 0.6);
}

.neko-recent-capture-tab-click-area:hover:not([data-disabled="true"])::before {
    opacity: 1;
}

.neko-recent-capture-tab-click-area.active {
    background: rgba(147, 51, 234, 0.5);
    border-color: var(--color-primary);
    box-shadow: 0 0 20px rgba(147, 51, 234, 0.8);
}

.neko-recent-capture-tab-click-area.active::before {
    opacity: 1;
    width: 12px;
    height: 12px;
    background: #fff;
}

.neko-recent-capture-tab-click-area[data-disabled="true"] {
    opacity: 0.3;
    cursor: not-allowed;
    background: rgba(255, 255, 255, 0.1);
}

.neko-recent-capture-tab-click-area[data-disabled="true"]:hover {
    transform: none;
    box-shadow: none;
    border-color: transparent;
}

/* Image Loading States */
.neko-image-loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    z-index: 20;
}

.neko-image-loading-spinner {
    width: 32px;
    height: 32px;
    border: 3px solid rgba(255, 255, 255, 0.1);
    border-top: 3px solid var(--color-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.neko-image-error-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 82, 82, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    z-index: 20;
}

.neko-image-error-message {
    color: var(--color-error);
    font-size: var(--font-sm);
    text-align: center;
    padding: var(--spacing-md);
}

/* Tab Switching Animations */
@keyframes nekoTabSwitch {
    0% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.7;
        transform: scale(0.98);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

.neko-recent-capture-main-image.switching {
    animation: nekoTabSwitch 0.3s ease-in-out;
}

/* Tab Indicator */
.neko-tab-indicator {
    position: absolute;
    bottom: var(--spacing-md);
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: var(--text-primary);
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: var(--radius-full);
    font-size: var(--font-xs);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 15;
    opacity: 0;
    transition: opacity var(--transition-fast);
}

.neko-recent-capture-image-viewer:hover .neko-tab-indicator {
    opacity: 1;
}

/* NEKO Sidebar Sections */
.neko-sidebar-section {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    padding: var(--spacing-sm); /* 8px padding - condensed */
    transition: all var(--transition-fast);
}

.neko-sidebar-section:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(147, 51, 234, 0.3);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* NEKO Stats Section */
.neko-stats-section {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xs); /* 5px gap - condensed */
}

.neko-stat-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-xs) 0; /* 5px padding - condensed */
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.neko-stat-item:last-child {
    border-bottom: none;
}

.neko-stat-label {
    color: var(--text-secondary);
    font-size: var(--font-sm);
    font-weight: 500;
}

.neko-stat-value {
    color: var(--text-primary);
    font-size: var(--font-lg);
    font-weight: 700;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* NEKO Mission Info */
.mission-info {
    color: var(--text-secondary);
    font-size: var(--font-sm);
    margin: var(--spacing-xs) 0;
    font-family: 'Courier New', monospace;
}

.mission-date {
    color: var(--text-muted);
    font-size: var(--font-xs);
    margin: var(--spacing-sm) 0 0 0;
    font-style: italic;
}

/* NEKO Tags Section */
.neko-tags-title {
    color: var(--text-primary);
    font-size: var(--font-base);
    font-weight: 600;
    margin-bottom: var(--spacing-sm);
}

.neko-tags-container {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-xs);
}

.neko-tag {
    padding: var(--spacing-xs) var(--spacing-sm);
    background: linear-gradient(135deg, rgba(147, 51, 234, 0.2) 0%, rgba(99, 102, 241, 0.1) 100%);
    border: 1px solid rgba(147, 51, 234, 0.3);
    border-radius: var(--radius-full);
    color: var(--color-primary-light);
    font-size: var(--font-xs);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all var(--transition-fast);
}

.neko-tag:hover {
    background: linear-gradient(135deg, rgba(147, 51, 234, 0.3) 0%, rgba(99, 102, 241, 0.2) 100%);
    transform: scale(1.05);
}

.neko-tags-loading {
    color: var(--text-muted);
    font-style: italic;
    font-size: var(--font-sm);
}

/* NEKO Snapshot Controls */
.neko-snapshot-controls {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.neko-snapshot-indicator {
    text-align: center;
    color: var(--text-secondary);
    font-size: var(--font-sm);
    font-weight: 500;
}

.neko-snapshot-buttons {
    display: flex;
    gap: var(--spacing-sm);
    justify-content: center;
}

.neko-snapshot-prev,
.neko-snapshot-next {
    padding: var(--spacing-sm) var(--spacing-md);
    background: linear-gradient(135deg, rgba(147, 51, 234, 0.2) 0%, rgba(99, 102, 241, 0.1) 100%);
    border: 1px solid rgba(147, 51, 234, 0.3);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: var(--font-sm);
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.neko-snapshot-prev:hover,
.neko-snapshot-next:hover {
    background: linear-gradient(135deg, rgba(147, 51, 234, 0.3) 0%, rgba(99, 102, 241, 0.2) 100%);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

/* NEKO Profile Visibility */
.neko-profile-visibility-label {
    cursor: pointer;
    padding: var(--spacing-sm);
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
}

.neko-profile-visibility-label:hover {
    background: rgba(255, 255, 255, 0.05);
}

.neko-profile-visibility-checkbox {
    margin-right: var(--spacing-sm);
}

.neko-profile-visibility-label-text {
    color: var(--text-primary);
    font-size: var(--font-sm);
    font-weight: 500;
}

.neko-profile-visibility-help {
    color: var(--text-muted);
    font-size: var(--font-xs);
    margin-top: var(--spacing-xs);
    display: block;
}

/* NEKO Admin Actions */
.neko-admin-actions-title {
    color: var(--color-error);
    font-size: var(--font-base);
    font-weight: 600;
    margin-bottom: var(--spacing-sm);
}

.neko-admin-actions-buttons {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.neko-delete-btn {
    padding: var(--spacing-sm) var(--spacing-md);
    background: linear-gradient(135deg, rgba(255, 82, 82, 0.2) 0%, rgba(255, 71, 87, 0.1) 100%);
    border: 1px solid rgba(255, 82, 82, 0.3);
    border-radius: var(--radius-md);
    color: var(--color-error);
    font-size: var(--font-sm);
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.neko-delete-btn:hover {
    background: linear-gradient(135deg, rgba(255, 82, 82, 0.3) 0%, rgba(255, 71, 87, 0.2) 100%);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.neko-admin-actions-warning {
    color: var(--text-muted);
    font-size: var(--font-xs);
    margin-top: var(--spacing-sm);
    display: block;
    font-style: italic;
}

/* Player Disclaimer */
.player-disclaimer {
    text-align: center;
    color: var(--text-muted);
    font-style: italic;
    font-size: var(--font-sm);
    margin-top: var(--spacing-lg);
    padding: var(--spacing-md);
    background: rgba(255, 255, 255, 0.02);
    border-radius: var(--radius-md);
}

.neko-search-section {
    background: linear-gradient(135deg, rgba(147, 51, 234, 0.1) 0%, rgba(99, 102, 241, 0.05) 100%);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(147, 51, 234, 0.2);
    border-radius: var(--radius-lg);
    padding: var(--spacing-2xl);
    margin-bottom: var(--spacing-xl);
}

/* NEKO Responsive Design */
@media (max-width: 768px) {
    .neko-hero-icon {
        width: 48px;
        height: 48px;
    }
    
    .form-row {
        flex-direction: column;
        gap: var(--spacing-md);
    }
    
    .form-group-wide,
    .form-group-narrow {
        flex: 1;
        min-width: 100%;
    }
    
    .neko-results-table {
        font-size: var(--font-xs);
    }
    
    .neko-results-table th,
    .neko-results-table td {
        padding: var(--spacing-sm);
    }
    
    .neko-player-container {
        padding: var(--spacing-lg);
    }
    
    /* Player Card Responsive */
    .neko-player-card-layout {
        grid-template-columns: 1fr;
        gap: var(--spacing-sm); /* 8px gap - condensed */
        padding: var(--spacing-sm); /* 8px padding - condensed */
    }
    
    .neko-recent-capture-image-viewer {
        max-width: 259px; /* Maintain fixed width on mobile */
        height: 300px;    /* Reduce height slightly for mobile */
        margin: 0 auto;
    }
    
    .neko-recent-capture-main-image {
        width: 259px;  /* Maintain fixed width */
        height: 300px; /* Match container height */
    }
    
    .neko-stats-section {
        gap: var(--spacing-xs); /* 5px gap - condensed */
    }
    
    .neko-stat-item {
        padding: var(--spacing-xs) 0; /* 5px padding - condensed */
    }
    
    .neko-sidebar-section {
        padding: var(--spacing-xs); /* 5px padding - condensed */
    }
    
    .neko-snapshot-buttons {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .neko-hero-icon {
        width: 40px;
        height: 40px;
    }
    
    .neko-player-header h1 {
        font-size: var(--font-2xl);
    }
    
    .neko-player-header p {
        font-size: var(--font-base);
    }
    
    .neko-search-form {
        padding: var(--spacing-lg);
    }
    
    /* Player Card Mobile */
    .neko-player-card-layout {
        padding: var(--spacing-xs); /* 5px padding - condensed */
        gap: var(--spacing-xs); /* 5px gap - condensed */
    }
    
    .neko-recent-capture-image-viewer {
        max-width: 259px; /* Maintain fixed width */
        height: 250px;    /* Further reduce height for small mobile */
        margin: 0 auto;
    }
    
    .neko-recent-capture-main-image {
        width: 259px;  /* Maintain fixed width */
        height: 250px; /* Match container height */
    }
    
    .neko-sidebar-section {
        padding: var(--spacing-xs); /* 5px padding - condensed */
    }
    
    .neko-stat-value {
        font-size: var(--font-base);
    }
    
    .neko-stat-label {
        font-size: var(--font-xs);
    }
    
    .neko-tags-container {
        gap: var(--spacing-xs);
    }
    
    .neko-tag {
        font-size: 10px;
        padding: 2px 6px;
    }
}


/* ============================================
   GAMES PAGE STYLES
   ============================================ */
.game-features {
    margin: var(--spacing-lg) 0;
}

.games-play-button-container {
    text-align: center;
    margin: var(--spacing-xl) 0;
}

.games-play-button-container .button-link {
    padding: var(--spacing-lg) var(--spacing-2xl);
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
    color: #ffffff;
    text-decoration: none;
    border-radius: var(--radius-lg);
    font-weight: 700;
    font-size: var(--font-lg);
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
    border: none;
    cursor: pointer;
    display: inline-block;
    box-shadow: var(--shadow-md);
}

.games-play-button-container .button-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.6s ease;
}

.games-play-button-container .button-link:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 15px 30px rgba(0, 184, 212, 0.4);
}

.games-play-button-container .button-link:hover::before {
    left: 100%;
}

/* Game card grid for multiple games */
.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-xl);
    margin: var(--spacing-xl) 0;
}

.game-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.02) 100%);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    padding: var(--spacing-xl);
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
    text-align: center;
}

.game-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.game-card:hover {
    transform: translateY(-4px);
    border-color: rgba(0, 184, 212, 0.3);
    box-shadow: 0 12px 30px rgba(0, 184, 212, 0.2);
}

.game-card:hover::before {
    opacity: 1;
}

.game-icon {
    font-size: 3rem;
    margin-bottom: var(--spacing-md);
    display: block;
}

.game-title {
    font-size: var(--font-xl);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--spacing-sm);
}

.game-description {
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: var(--spacing-lg);
}

.game-play-btn {
    background: linear-gradient(135deg, var(--color-success) 0%, #00c853 100%);
    color: #ffffff;
    text-decoration: none;
    padding: var(--spacing-sm) var(--spacing-lg);
    border-radius: var(--radius-md);
    font-weight: 600;
    transition: all var(--transition-fast);
    display: inline-block;
    border: none;
    cursor: pointer;
}

.game-play-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 230, 118, 0.3);
}

/* ============================================
   POSTS CONTAINER STYLES
   ============================================ */
.posts-container {
    display: grid;
    gap: var(--spacing-xl);
    margin-top: var(--spacing-xl);
}

.post-item {
    background: linear-gradient(135deg, rgba(45, 45, 45, 0.8) 0%, rgba(26, 26, 26, 0.8) 100%);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: var(--spacing-xl);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.post-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--color-primary) 0%, var(--color-primary-light) 50%, var(--color-primary) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.post-item:hover {
    transform: translateY(-4px) scale(1.02);
    border-color: rgba(0, 184, 212, 0.4);
    box-shadow: 0 20px 40px rgba(0, 184, 212, 0.2);
}

.post-item:hover::before {
    opacity: 1;
}

.post-header {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
    padding-bottom: var(--spacing-md);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.post-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: var(--font-xl);
    border: 3px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 12px rgba(0, 184, 212, 0.3);
    transition: all 0.3s ease;
}

.post-avatar:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(0, 184, 212, 0.4);
}

.post-meta {
    flex: 1;
}

.post-author {
    font-weight: 700;
    color: var(--text-primary);
    font-size: var(--font-lg);
    margin-bottom: 4px;
    letter-spacing: 0.5px;
}

.post-timestamp {
    color: var(--text-muted);
    font-size: var(--font-sm);
    font-weight: 500;
    letter-spacing: 0.3px;
}

.post-content {
    color: var(--text-primary);
    line-height: 1.7;
    font-size: var(--font-md);
    white-space: pre-wrap;
    word-wrap: break-word;
    margin-bottom: var(--spacing-lg);
    padding: var(--spacing-md);
    background: rgba(255, 255, 255, 0.02);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
}

.post-content::before {
    content: '"';
    position: absolute;
    top: 8px;
    left: 12px;
    font-size: 2rem;
    color: rgba(0, 184, 212, 0.3);
    font-family: Georgia, serif;
}

.post-actions {
    display: flex;
    gap: var(--spacing-md);
    align-items: center;
    padding-top: var(--spacing-md);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.post-action-btn {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.02) 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-secondary);
    padding: var(--spacing-md) var(--spacing-lg);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: var(--font-sm);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    position: relative;
    overflow: hidden;
}

.post-action-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s ease;
}

.post-action-btn:hover {
    background: linear-gradient(135deg, rgba(0, 184, 212, 0.2) 0%, rgba(0, 184, 212, 0.1) 100%);
    color: var(--color-primary-light);
    border-color: rgba(0, 184, 212, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 184, 212, 0.2);
}

.post-action-btn:hover::before {
    left: 100%;
}

.post-action-btn:active {
    transform: translateY(0);
    box-shadow: 0 4px 12px rgba(0, 184, 212, 0.15);
}

.post-action-btn.liked {
    background: linear-gradient(135deg, rgba(0, 184, 212, 0.3) 0%, rgba(0, 184, 212, 0.2) 100%);
    color: var(--color-primary-light);
    border-color: rgba(0, 184, 212, 0.4);
    box-shadow: 0 4px 12px rgba(0, 184, 212, 0.2);
}

/* Modern post animations */
@keyframes postSlideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.post-item {
    animation: postSlideIn 0.6s ease-out;
}

/* Responsive post design */
@media (max-width: 768px) {
    .post-item {
        padding: var(--spacing-lg);
        border-radius: 16px;
    }
    
    .post-avatar {
        width: 48px;
        height: 48px;
        font-size: var(--font-lg);
    }
    
    .post-author {
        font-size: var(--font-md);
    }
    
    .post-content {
        font-size: var(--font-sm);
        padding: var(--spacing-sm);
    }
    
    .post-action-btn {
        padding: var(--spacing-sm) var(--spacing-md);
        font-size: var(--font-xs);
    }
}

/* ============================================
   AUTHENTICATION FORMS STYLES
   ============================================ */
.signin-container, .signup-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: calc(100vh - 200px);
    padding: 40px 20px;
}

.signin-card, .signup-card {
    width: 100%;
    max-width: 420px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.03) 100%);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 24px;
    padding: 40px 32px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 0 8px 16px rgba(0, 184, 212, 0.1);
    transition: all 0.3s ease;
}

.signin-card:hover, .signup-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5), 0 12px 24px rgba(0, 184, 212, 0.15);
}

.signin-header, .signup-header {
    text-align: center;
    margin-bottom: 32px;
}

.signin-header h1, .signup-header h1 {
    font-size: 2rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 8px;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.signin-header p, .signup-header p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1rem;
    margin: 0;
}

.signin-form-group, .signup-form-group {
    margin-bottom: 24px;
}

.signin-form-group label, .signup-form-group label {
    display: block;
    margin-bottom: 8px;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 600;
    font-size: 0.95rem;
}

.required {
    color: var(--color-error);
    margin-left: 4px;
}

.signin-form-group input[type="text"],
.signin-form-group input[type="password"],
.signup-form-group input[type="text"],
.signup-form-group input[type="email"],
.signup-form-group input[type="password"] {
    width: 100%;
    padding: 16px 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    color: #ffffff;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-sizing: border-box;
}

.signin-form-group input:focus,
.signup-form-group input:focus {
    outline: none;
    border-color: var(--color-primary);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 0 4px rgba(0, 184, 212, 0.2), 0 8px 20px rgba(0, 184, 212, 0.1);
    transform: translateY(-2px);
}

.signin-form-group input::placeholder,
.signup-form-group input::placeholder {
    color: rgba(255, 255, 255, 0.4);
    font-style: italic;
}

.signup-input-wrapper {
    position: relative;
}

.field-status {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.2rem;
    font-weight: bold;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.field-status.checking {
    color: var(--color-warning);
    animation: pulse 1.5s ease-in-out infinite;
}

.field-status.success {
    color: var(--color-success);
}

.field-status.error {
    color: var(--color-error);
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.form-help-text {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
    margin-top: 6px;
    font-style: italic;
}

.password-strength {
    margin-top: 12px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.password-strength-bar {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 8px;
}

.password-strength-fill {
    height: 100%;
    width: 0%;
    transition: all 0.3s ease;
    border-radius: 3px;
}

.password-strength-text {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.password-requirements {
    list-style: none;
    padding: 0;
    margin: 0;
}

.password-requirement-item {
    padding: 4px 0;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
    transition: color 0.3s ease;
}

.password-requirement-met {
    color: var(--color-success);
}

.signin-submit-btn, .signup-submit-btn {
    width: 100%;
    padding: 16px 24px;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
    color: #ffffff;
    border: none;
    border-radius: 16px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.signin-submit-btn::before, .signup-submit-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.6s ease;
}

.signin-submit-btn:hover, .signup-submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 24px rgba(0, 184, 212, 0.4);
}

.signin-submit-btn:hover::before, .signup-submit-btn:hover::before {
    left: 100%;
}

.signin-submit-btn:active, .signup-submit-btn:active {
    transform: translateY(-1px);
    box-shadow: 0 6px 12px rgba(0, 184, 212, 0.3);
}

.signin-submit-btn:disabled, .signup-submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.signin-form-message, .signup-form-message {
    padding: 16px 20px;
    border-radius: 12px;
    margin-top: 20px;
    font-weight: 500;
    text-align: center;
    transition: all 0.3s ease;
}

.signin-form-message.error, .signup-form-message.error {
    background: linear-gradient(135deg, rgba(255, 82, 82, 0.1) 0%, rgba(255, 82, 82, 0.05) 100%);
    border: 1px solid rgba(255, 82, 82, 0.3);
    color: #ff5252;
}

.signin-form-message.success, .signup-form-message.success {
    background: linear-gradient(135deg, rgba(0, 230, 118, 0.1) 0%, rgba(0, 230, 118, 0.05) 100%);
    border: 1px solid rgba(0, 230, 118, 0.3);
    color: #00e676;
}

.signin-footer, .signup-footer {
    text-align: center;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.signin-footer p, .signup-footer p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    margin: 0;
}

.signin-footer a, .signup-footer a {
    color: var(--color-primary-light);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.signin-footer a:hover, .signup-footer a:hover {
    color: var(--color-primary);
    text-decoration: underline;
}

.signin-footer-link {
    display: inline-block;
    margin-top: 12px;
    color: var(--color-primary-light);
    text-decoration: none;
    font-weight: 600;
    padding: 8px 16px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.signin-footer-link:hover {
    background: rgba(0, 184, 212, 0.1);
    color: var(--color-primary);
}

/* Responsive auth forms */
@media (max-width: 768px) {
    .signin-container, .signup-container {
        padding: 20px 16px;
        min-height: calc(100vh - 150px);
    }
    
    .signin-card, .signup-card {
        max-width: 100%;
        padding: 30px 24px;
        border-radius: 20px;
    }
    
    .signin-header h1, .signup-header h1 {
        font-size: 1.6rem;
    }
    
    .signin-form-group input,
    .signup-form-group input {
        padding: 14px 16px;
        font-size: 0.95rem;
    }
    
    .field-status {
        right: 12px;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .signin-container, .signup-container {
        padding: 16px 12px;
    }
    
    .signin-card, .signup-card {
        padding: 24px 20px;
        border-radius: 16px;
    }
    
    .signin-header h1, .signup-header h1 {
        font-size: 1.4rem;
    }
    
    .signin-form-group input,
    .signup-form-group input {
        padding: 12px 16px;
        font-size: 0.9rem;
    }
}

/* ============================================
   ADMIN PAGES STYLES
   ============================================ */
.admin-section-spacing {
    margin-top: 20px;
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 2px solid rgba(0, 184, 212, 0.2);
}

.admin-header-flex {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
    flex: 1;
}

.admin-header-content {
    flex: 1;
}

.admin-header h2 {
    font-size: 1.8rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 8px;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.admin-description {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
    line-height: 1.5;
    margin: 0;
}

.admin-back-link {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.admin-back-link:hover {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0.08) 100%);
    color: var(--color-primary-light);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 184, 212, 0.15);
}

.btn-small {
    font-size: 0.85rem;
    padding: 6px 12px;
}

/* Admin tables */
.admin-table {
    width: 100%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.02) 100%);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    overflow: hidden;
    margin: 20px 0;
}

.admin-table table {
    width: 100%;
    border-collapse: collapse;
}

.admin-table th {
    background: linear-gradient(135deg, rgba(0, 184, 212, 0.2) 0%, rgba(0, 184, 212, 0.1) 100%);
    color: #ffffff;
    font-weight: 700;
    padding: 16px 12px;
    text-align: left;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 2px solid rgba(0, 184, 212, 0.3);
}

.admin-table td {
    padding: 14px 12px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.95rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}

.admin-table tr:hover td {
    background: rgba(0, 184, 212, 0.05);
    color: #ffffff;
}

.admin-table tr:last-child td {
    border-bottom: none;
}

/* Admin forms */
.admin-form {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.02) 100%);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 24px;
    margin: 20px 0;
}

.admin-form-group {
    margin-bottom: 20px;
}

.admin-form-group label {
    display: block;
    margin-bottom: 8px;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 600;
    font-size: 0.95rem;
}

.admin-form-group input,
.admin-form-group select,
.admin-form-group textarea {
    width: 100%;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: #ffffff;
    font-size: 0.95rem;
    font-family: inherit;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.admin-form-group input:focus,
.admin-form-group select:focus,
.admin-form-group textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 0 3px rgba(0, 184, 212, 0.2);
}

.admin-form-group select {
    cursor: pointer;
}

.admin-form-group textarea {
    min-height: 100px;
    resize: vertical;
}

/* Admin buttons */
.admin-button {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
    color: #ffffff;
    border: none;
    border-radius: 12px;
    padding: 12px 24px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    text-decoration: none;
    display: inline-block;
}

.admin-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.admin-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 184, 212, 0.3);
}

.admin-button:hover::before {
    left: 100%;
}

.admin-button.danger {
    background: linear-gradient(135deg, var(--color-error) 0%, var(--color-error-dark) 100%);
}

.admin-button.danger:hover {
    box-shadow: 0 8px 20px rgba(255, 82, 82, 0.3);
}

.admin-button.success {
    background: linear-gradient(135deg, var(--color-success) 0%, var(--color-success-dark) 100%);
}

.admin-button.success:hover {
    box-shadow: 0 8px 20px rgba(0, 230, 118, 0.3);
}

/* Admin cards grid */
.admin-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.admin-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.02) 100%);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 24px;
    transition: all 0.3s ease;
}

.admin-card:hover {
    transform: translateY(-4px);
    border-color: rgba(0, 184, 212, 0.3);
    box-shadow: 0 12px 24px rgba(0, 184, 212, 0.15);
}

.admin-card h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 12px;
}

.admin-card p {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.5;
    margin-bottom: 16px;
}

.admin-card .admin-button {
    width: 100%;
    justify-content: center;
}

/* Responsive admin */
@media (max-width: 768px) {
    .admin-header {
        flex-direction: column;
        gap: 16px;
        align-items: stretch;
    }
    
    .admin-header-flex {
        flex-direction: column;
        gap: 12px;
    }
    
    .admin-back-link {
        align-self: flex-start;
    }
    
    .admin-cards-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .admin-table {
        font-size: 0.85rem;
    }
    
    .admin-table th,
    .admin-table td {
        padding: 12px 8px;
    }
}

/* ============================================
   ERROR PAGES STYLES
   ============================================ */
.error-hero {
    text-align: center;
    padding: 80px 20px;
    background: linear-gradient(135deg, rgba(255, 82, 82, 0.1) 0%, rgba(255, 99, 71, 0.05) 100%);
    border-radius: 0 0 30px 30px;
    position: relative;
    overflow: hidden;
}

.error-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 50%, rgba(255, 82, 82, 0.05) 0%, transparent 70%);
    pointer-events: none;
}

.error-hero h1 {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 800;
    color: #ff5252;
    margin-bottom: 16px;
    text-shadow: 0 4px 20px rgba(255, 82, 82, 0.3);
    animation: errorPulse 2s ease-in-out infinite;
}

.error-hero p {
    font-size: clamp(1.1rem, 2.5vw, 1.4rem);
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

@keyframes errorPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.error-section {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.02) 100%);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 82, 82, 0.2);
    border-radius: 20px;
    padding: 32px;
    margin: 20px 0;
    position: relative;
    overflow: hidden;
}

.error-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 82, 82, 0.05), transparent);
    transition: left 1s ease;
    pointer-events: none;
}

.error-section:hover::before {
    left: 100%;
}

.error-section h2 {
    font-size: 1.8rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #ff5252 0%, #ff6b6b 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.error-section p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 24px;
}

.error-link {
    color: var(--color-primary-light);
    text-decoration: none;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 6px;
    transition: all 0.3s ease;
    background: rgba(0, 184, 212, 0.1);
}

.error-link:hover {
    color: var(--color-primary);
    background: rgba(0, 184, 212, 0.2);
    transform: translateY(-1px);
}

.error-steps {
    list-style: none;
    padding: 0;
    margin: 24px 0;
}

.error-steps li {
    padding: 16px 20px 16px 50px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.04) 100%);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    margin-bottom: 12px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
    line-height: 1.6;
    transition: all 0.3s ease;
    position: relative;
}

.error-steps li::before {
    content: counter(error-step);
    counter-increment: error-step;
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    width: 24px;
    height: 24px;
    background: linear-gradient(135deg, #ff5252 0%, #ff6b6b 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 0.8rem;
    box-shadow: 0 4px 12px rgba(255, 82, 82, 0.3);
}

.error-steps li:hover {
    transform: translateX(8px);
    border-color: rgba(255, 82, 82, 0.3);
    box-shadow: 0 8px 20px rgba(255, 82, 82, 0.15);
}

/* Error code styling */
.error-code {
    display: inline-block;
    background: linear-gradient(135deg, rgba(255, 82, 82, 0.2) 0%, rgba(255, 82, 82, 0.1) 100%);
    color: #ff5252;
    padding: 4px 12px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 1.2rem;
    margin-bottom: 8px;
    border: 2px solid rgba(255, 82, 82, 0.4);
    text-shadow: 0 2px 8px rgba(255, 82, 82, 0.3);
}

/* Responsive error pages */
@media (max-width: 768px) {
    .error-hero {
        padding: 60px 16px;
    }
    
    .error-hero h1 {
        font-size: clamp(2rem, 5vw, 3rem);
    }
    
    .error-hero p {
        font-size: clamp(1rem, 2.2vw, 1.2rem);
    }
    
    .error-section {
        padding: 24px 20px;
        margin: 16px 0;
    }
    
    .error-section h2 {
        font-size: 1.5rem;
    }
    
    .error-section p {
        font-size: 1rem;
    }
    
    .error-steps li {
        padding: 12px 16px 12px 40px;
    }
    
    .error-steps li::before {
        width: 20px;
        height: 20px;
        left: 12px;
        font-size: 0.7rem;
    }
}

/* ============================================
   SPECIAL PAGES STYLES
   ============================================ */

/* NEKO Player Page */
.neko-player-container {
    padding: 40px 20px;
    max-width: var(--container-max-width);
    margin: 0 auto;
}

.neko-player-header {
    text-align: center;
    margin-bottom: 40px;
}

.neko-player-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 12px;
    background: linear-gradient(135deg, #9333ea 0%, #6366f1 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.neko-player-header p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

.neko-search-section {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.02) 100%);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 32px;
    margin-bottom: 30px;
}

.neko-search-form {
    display: flex;
    gap: 16px;
    align-items: end;
}

.neko-search-input {
    flex: 1;
    padding: 16px 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    color: #ffffff;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s ease;
}

.neko-search-input:focus {
    outline: none;
    border-color: var(--color-primary);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 0 4px rgba(147, 51, 234, 0.2);
}

.neko-search-button {
    padding: 16px 32px;
    background: linear-gradient(135deg, #9333ea 0%, #6366f1 100%);
    color: #ffffff;
    border: none;
    border-radius: 16px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.neko-search-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.neko-search-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(147, 51, 234, 0.3);
}

.neko-search-button:hover::before {
    left: 100%;
}

/* Snake Game Page */
.snake-game-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 40px 20px;
    max-width: var(--container-max-width);
    margin: 0 auto;
}

.snake-game-header {
    text-align: center;
    margin-bottom: 30px;
}

.snake-game-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 12px;
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.snake-game-header p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.1rem;
    margin: 0;
}

.snake-game-controls {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.02) 100%);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 24px;
    margin-bottom: 30px;
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.snake-control-button {
    padding: 12px 24px;
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    color: #ffffff;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.snake-control-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.snake-control-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 215, 0, 0.3);
}

.snake-control-button:hover::before {
    left: 100%;
}

.snake-game-canvas {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.02) 100%);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 215, 0, 0.3);
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.snake-score-display {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.1) 0%, rgba(255, 215, 0, 0.05) 100%);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 215, 0, 0.3);
    border-radius: 12px;
    padding: 16px 24px;
    margin-top: 20px;
    text-align: center;
}

.snake-score-display h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: #FFD700;
    margin-bottom: 8px;
}

.snake-score-display .score {
    font-size: 2rem;
    font-weight: 800;
    color: #ffffff;
    text-shadow: 0 2px 10px rgba(255, 215, 0, 0.5);
}

/* Responsive special pages */
@media (max-width: 768px) {
    .neko-player-container,
    .snake-game-container {
        padding: 20px 16px;
        min-height: calc(100vh - 150px);
    }
    
    .neko-search-section,
    .snake-game-controls,
    .snake-game-canvas,
    .snake-score-display {
        padding: 24px 20px;
        border-radius: 16px;
    }
    
    .neko-search-form {
        flex-direction: column;
        gap: 12px;
    }
    
    .snake-game-controls {
        gap: 12px;
    }
    
    .neko-player-header h1,
    .snake-game-header h1 {
        font-size: 1.8rem;
    }
}

@media (max-width: 480px) {
    .neko-player-container,
    .snake-game-container {
        padding: 16px 12px;
    }
    
    .neko-search-section,
    .snake-game-controls,
    .snake-game-canvas,
    .snake-score-display {
        padding: 20px 16px;
        border-radius: 12px;
    }
    
    .neko-player-header h1,
    .snake-game-header h1 {
        font-size: 1.6rem;
    }
    
    .snake-game-controls {
        flex-direction: column;
        align-items: center;
    }
}

/* ============================================
   FOOTER STYLES
   ============================================ */
.footer {
    background: linear-gradient(135deg, rgba(45, 45, 45, 0.95) 0%, rgba(26, 26, 26, 0.95) 100%);
    backdrop-filter: blur(20px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: auto;
    padding: 30px 0;
    width: 100%;
    box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.3), 0 -2px 8px rgba(0, 184, 212, 0.1);
}

.footer-content {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    text-align: center;
}

.footer-line {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.5px;
}

.footer-links {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 4px 8px;
    border-radius: 6px;
}

.footer-links a:hover {
    color: var(--color-primary-light);
    background: rgba(0, 184, 212, 0.1);
    transform: translateY(-1px);
}

.footer-links .separator {
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.8rem;
    margin: 0 4px;
}

/* Responsive footer */
@media (max-width: 768px) {
    .footer {
        padding: 20px 0;
    }
    
    .footer-content {
        padding: 0 15px;
        gap: 12px;
    }
    
    .footer-line {
        font-size: 0.85rem;
    }
    
    .footer-links {
        gap: 6px;
    }
    
    .footer-links a {
        font-size: 0.85rem;
        padding: 3px 6px;
    }
    
    .footer-links .separator {
        font-size: 0.75rem;
        margin: 0 2px;
    }
}

@media (max-width: 480px) {
    .footer-links {
        flex-direction: column;
        gap: 8px;
    }
    
    .footer-links .separator {
        display: none;
    }
}

/* ============================================
   ADMIN DASHBOARD STYLES
   ============================================ */
.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-xl);
    padding-bottom: var(--spacing-md);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.admin-header h2 {
    margin: 0;
    color: var(--text-primary);
}

.admin-header p {
    margin: 0;
    color: var(--text-secondary);
    opacity: 0.8;
}

.admin-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--spacing-lg);
    margin: var(--spacing-xl) 0;
}

.admin-stat-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.02) 100%);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    padding: var(--spacing-xl);
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    transition: all 0.3s ease;
}

.admin-stat-card:hover {
    transform: translateY(-2px);
    border-color: rgba(0, 184, 212, 0.3);
    box-shadow: 0 8px 20px rgba(0, 184, 212, 0.15);
}

.admin-stat-icon {
    font-size: 2rem;
    opacity: 0.8;
}

.admin-stat-content h3 {
    margin: 0;
    font-size: var(--font-2xl);
    font-weight: 700;
    color: var(--color-primary);
}

.admin-stat-content p {
    margin: 0;
    color: var(--text-secondary);
    font-size: var(--font-sm);
}

.admin-actions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-lg);
    margin: var(--spacing-xl) 0;
}

.admin-action-card {
    background: linear-gradient(135deg, rgba(0, 184, 212, 0.1) 0%, rgba(0, 184, 212, 0.05) 100%);
    border: 1px solid rgba(0, 184, 212, 0.2);
    border-radius: var(--radius-lg);
    padding: var(--spacing-xl);
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.admin-action-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s ease;
}

.admin-action-card:hover {
    transform: translateY(-4px);
    border-color: rgba(0, 184, 212, 0.4);
    box-shadow: 0 12px 30px rgba(0, 184, 212, 0.2);
    color: var(--color-primary-light);
}

.admin-action-card:hover::before {
    left: 100%;
}

.admin-action-icon {
    font-size: 2.5rem;
    margin-bottom: var(--spacing-md);
    opacity: 0.9;
}

.admin-action-card h3 {
    margin: 0 0 var(--spacing-sm) 0;
    color: var(--text-primary);
    font-size: var(--font-lg);
}

.admin-action-card p {
    margin: 0;
    color: var(--text-secondary);
    font-size: var(--font-sm);
    opacity: 0.8;
}

.admin-activity-list {
    margin-top: var(--spacing-lg);
}

.admin-activity-item {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    padding: var(--spacing-md);
    background: rgba(255, 255, 255, 0.02);
    border-radius: var(--radius-md);
    margin-bottom: var(--spacing-sm);
    transition: all 0.3s ease;
}

.admin-activity-item:hover {
    background: rgba(255, 255, 255, 0.05);
    transform: translateX(4px);
}

.activity-icon {
    font-size: var(--font-lg);
    opacity: 0.8;
}

.activity-content p {
    margin: 0;
    color: var(--text-primary);
    font-size: var(--font-sm);
}

.activity-time {
    color: var(--text-muted);
    font-size: var(--font-xs);
}

/* Responsive admin dashboard */
@media (max-width: 768px) {
    .admin-stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-md);
    }
    
    .admin-actions-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }
    
    .admin-stat-card {
        padding: var(--spacing-lg);
    }
    
    .admin-action-card {
        padding: var(--spacing-lg);
    }
    
    .admin-header {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--spacing-sm);
    }
}

@media (max-width: 480px) {
    .admin-stats-grid {
        grid-template-columns: 1fr;
    }
    
    .admin-stat-card {
        flex-direction: column;
        text-align: center;
    }
    
    .admin-stat-icon {
        font-size: 1.5rem;
    }
    
    .admin-action-icon {
        font-size: 2rem;
    }
}

/* ============================================
   MODERN TABLE STYLES
   ============================================ */
.modern-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: linear-gradient(135deg, rgba(45, 45, 45, 0.8) 0%, rgba(26, 26, 26, 0.8) 100%);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.modern-table thead {
    background: linear-gradient(135deg, rgba(0, 184, 212, 0.2) 0%, rgba(0, 184, 212, 0.1) 100%);
}

.modern-table th {
    padding: var(--spacing-md) var(--spacing-lg);
    text-align: left;
    font-weight: 600;
    color: var(--text-primary);
    font-size: var(--font-sm);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    user-select: none;
}

.modern-table th.sortable {
    cursor: pointer;
    transition: all 0.3s ease;
}

.modern-table th.sortable:hover {
    background: rgba(0, 184, 212, 0.15);
    color: var(--color-primary-light);
}

.table-header {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.sort-icon {
    font-size: 0.8em;
    opacity: 0.7;
    transition: all 0.3s ease;
}

.modern-table th.sortable:hover .sort-icon {
    opacity: 1;
}

.modern-table tbody tr {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}

.modern-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.02);
}

.modern-table td {
    padding: var(--spacing-md) var(--spacing-lg);
    color: var(--text-secondary);
    font-size: var(--font-sm);
    vertical-align: middle;
}

/* Connections Table Specific Styles */
.connections-table .timestamp {
    font-family: 'Courier New', monospace;
    font-size: var(--font-xs);
    color: var(--text-muted);
}

.connections-table .ip-container {
    position: relative;
    cursor: pointer;
    display: inline-block;
}

.connections-table .ip-masked,
.connections-table .ip-full {
    font-family: 'Courier New', monospace;
    font-size: var(--font-xs);
    background: rgba(0, 0, 0, 0.3);
    padding: 2px 6px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.connections-table .ip-masked {
    color: var(--color-primary);
}

.connections-table .ip-full {
    color: var(--text-primary);
    position: absolute;
    top: 0;
    left: 0;
}

.connections-table .path-text {
    font-family: 'Courier New', monospace;
    font-size: var(--font-xs);
    color: var(--text-muted);
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    display: inline-block;
}

.method-badge {
    padding: 4px 8px;
    border-radius: 12px;
    font-size: var(--font-xs);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.method-get {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.2) 0%, rgba(34, 197, 94, 0.1) 100%);
    color: #22c55e;
    border: 1px solid rgba(34, 197, 94, 0.3);
}

.method-post {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.2) 0%, rgba(59, 130, 246, 0.1) 100%);
    color: #3b82f6;
    border: 1px solid rgba(59, 130, 246, 0.3);
}

.method-put {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.2) 0%, rgba(245, 158, 11, 0.1) 100%);
    color: #f59e0b;
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.method-delete {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.2) 0%, rgba(239, 68, 68, 0.1) 100%);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.user-agent-text {
    font-size: var(--font-xs);
    color: var(--text-muted);
    max-width: 300px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    display: inline-block;
}

.action-btn {
    background: linear-gradient(135deg, rgba(0, 184, 212, 0.2) 0%, rgba(0, 184, 212, 0.1) 100%);
    border: 1px solid rgba(0, 184, 212, 0.3);
    color: var(--color-primary);
    padding: 4px 8px;
    border-radius: 6px;
    font-size: var(--font-xs);
    cursor: pointer;
    transition: all 0.3s ease;
}

.action-btn:hover {
    background: linear-gradient(135deg, rgba(0, 184, 212, 0.3) 0%, rgba(0, 184, 212, 0.2) 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 184, 212, 0.2);
}

/* Admin Controls */
.admin-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: var(--spacing-xl) 0;
    padding: var(--spacing-lg);
    background: rgba(255, 255, 255, 0.02);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.admin-stats {
    display: flex;
    gap: var(--spacing-xl);
}

.admin-stat {
    text-align: center;
}

.stat-value {
    display: block;
    font-size: var(--font-2xl);
    font-weight: 700;
    color: var(--color-primary);
    line-height: 1;
}

.stat-label {
    font-size: var(--font-xs);
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: var(--spacing-xs);
}

.admin-filters {
    display: flex;
    gap: var(--spacing-md);
    align-items: center;
}

.search-input,
.filter-select {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    padding: var(--spacing-sm) var(--spacing-md);
    color: var(--text-primary);
    font-size: var(--font-sm);
    transition: all 0.3s ease;
}

.search-input:focus,
.filter-select:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(0, 184, 212, 0.2);
    background: rgba(255, 255, 255, 0.08);
}

.search-input::placeholder {
    color: var(--text-muted);
}

/* Table Footer and Pagination */
.table-footer {
    margin-top: var(--spacing-lg);
    padding-top: var(--spacing-lg);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--spacing-md);
}

.pagination-btn {
    background: linear-gradient(135deg, rgba(0, 184, 212, 0.1) 0%, rgba(0, 184, 212, 0.05) 100%);
    border: 1px solid rgba(0, 184, 212, 0.2);
    color: var(--color-primary);
    padding: var(--spacing-sm) var(--spacing-lg);
    border-radius: var(--radius-md);
    font-size: var(--font-sm);
    cursor: pointer;
    transition: all 0.3s ease;
}

.pagination-btn:hover:not(:disabled) {
    background: linear-gradient(135deg, rgba(0, 184, 212, 0.2) 0%, rgba(0, 184, 212, 0.1) 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 184, 212, 0.2);
}

.pagination-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.page-info {
    color: var(--text-secondary);
    font-size: var(--font-sm);
}

/* Responsive Table */
@media (max-width: 1200px) {
    .admin-controls {
        flex-direction: column;
        gap: var(--spacing-lg);
        align-items: stretch;
    }
    
    .admin-stats {
        justify-content: center;
    }
    
    .admin-filters {
        justify-content: center;
        flex-wrap: wrap;
    }
}

@media (max-width: 768px) {
    .modern-table {
        font-size: var(--font-xs);
    }
    
    .modern-table th,
    .modern-table td {
        padding: var(--spacing-sm) var(--spacing-md);
    }
    
    .admin-stats {
        flex-wrap: wrap;
        gap: var(--spacing-md);
    }
    
    .admin-stat {
        min-width: 100px;
    }
    
    .connections-table .path-text {
        max-width: 150px;
    }
    
    .user-agent-text {
        max-width: 200px;
    }
    
    .method-badge {
        padding: 2px 6px;
        font-size: 0.7rem;
    }
}

@media (max-width: 480px) {
    .admin-controls {
        padding: var(--spacing-md);
    }
    
    .admin-filters {
        flex-direction: column;
        gap: var(--spacing-sm);
    }
    
    .search-input,
    .filter-select {
        width: 100%;
    }
    
    .modern-table th:nth-child(5),
    .modern-table td:nth-child(5) {
        display: none; /* Hide user agent on mobile */
    }
    
    .pagination {
        flex-direction: column;
        gap: var(--spacing-sm);
    }
    
    .page-info {
        order: -1;
    }
}
