:root {
            --primary-color: #ffffff;
            --primary-hover: #e5e5e5;
            --primary-dark: #0a0a0a;
            --primary-light: #737373;
            --text-color: #fafafa;
            --text-muted: #a3a3a3;
            --background-color: #000000;
            --card-bg: rgba(23, 23, 23, 0.8);
            --card-border: rgba(255, 255, 255, 0.08);
            --shadow: rgba(0, 0, 0, 0.8);
            --popup-bg: rgba(10, 10, 10, 0.98);
            --header-bg: rgba(0, 0, 0, 0.85);
            --header-color: #ffffff;
            --accent-glow: rgba(255, 255, 255, 0.15);
            --radius-lg: 16px;
            --radius-md: 12px;
            --glass-border: rgba(255, 255, 255, 0.06);
        }

        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            -webkit-tap-highlight-color: transparent;
        }

        body {
            font-family: 'Parkinsans', 'Inter', system-ui, sans-serif;
            background-color: var(--background-color);
            background-image: 
                linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
                linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
            background-size: 50px 50px;
            color: var(--text-color);
            line-height: 1.6;
            min-height: 100vh;
            overflow-x: hidden;
        }

        /* Subtle noise texture overlay */
        body::before {
            content: '';
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
            opacity: 0.03;
            pointer-events: none;
            z-index: -1;
        }

        .server-notice {
            background: rgba(255, 255, 255, 0.05);
            color: #d4d4d4;
            text-align: center;
            padding: 10px 20px;
            font-size: 0.8rem;
            font-weight: 500;
            letter-spacing: 0.5px;
            font-family: 'Inter', sans-serif;
            border-bottom: 1px solid var(--glass-border);
            position: relative;
        }

        .server-notice i {
            margin-right: 8px;
            opacity: 0.7;
        }

        header {
            background: var(--header-bg);
            backdrop-filter: blur(20px) saturate(180%);
            -webkit-backdrop-filter: blur(20px) saturate(180%);
            color: var(--header-color);
            padding: 0.75rem 1rem;
            position: sticky;
            top: 0;
            z-index: 100;
            border-bottom: 1px solid var(--glass-border);
        }

        .header-content {
            display: flex;
            justify-content: space-between;
            align-items: center;
            max-width: 1400px;
            margin: 0 auto;
            gap: 1.5rem;
        }

        .logo {
            font-size: 1.7rem;
            font-weight: 800;
            display: flex;
            align-items: center;
            gap: 10px;
            letter-spacing: -0.5px;
            cursor: pointer;
            flex-shrink: 0;
            color: #ffffff;
            transition: opacity 0.3s ease;
        }

        .logo:hover {
            opacity: 0.8;
        }

        .logo i { 
            color: #ffffff;
            font-size: 1.3rem;
        }

        .search-container {
            display: flex;
            gap: 10px;
            flex: 1;
            max-width: 700px;
        }

        #searchBar {
            padding: 0.8rem 1.25rem;
            border-radius: var(--radius-md);
            border: 1px solid var(--glass-border);
            flex-grow: 1;
            font-size: 15px;
            background: rgba(255, 255, 255, 0.03);
            color: white;
            transition: all 0.3s ease;
        }

        #searchBar:focus {
            outline: none;
            background: rgba(255, 255, 255, 0.06);
            border-color: rgba(255, 255, 255, 0.2);
            box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.05);
        }

        #searchBar::placeholder {
            color: #525252;
        }

        #sortOptions {
            padding: 0.8rem 1.2rem;
            border-radius: 12px;
            border: 1px solid var(--glass-border);
            font-size: 14px;
            background: rgba(255, 255, 255, 0.03);
            color: white;
            min-width: 140px;
            cursor: pointer;
            font-weight: 500;
            transition: all 0.3s ease;
        }

        #sortOptions:hover {
            background: rgba(255, 255, 255, 0.06);
            border-color: rgba(255, 255, 255, 0.15);
        }

        #sortOptions:focus {
            outline: none;
            border-color: rgba(255, 255, 255, 0.25);
        }

        #settings {
            background: rgba(255, 255, 255, 0.05);
            border: 1px solid var(--glass-border);
            color: white;
            padding: 0.8rem 1.6rem;
            border-radius: 12px;
            cursor: pointer;
            font-size: 14px;
            display: flex;
            align-items: center;
            gap: 8px;
            transition: all 0.3s ease;
            font-weight: 600;
        }

        #settings:hover {
            background: rgba(255, 255, 255, 0.1);
            border-color: rgba(255, 255, 255, 0.2);
            transform: translateY(-1px);
        }

        #settings i {
            transition: transform 0.3s ease;
        }

        #settings:hover i {
            transform: rotate(30deg);
        }

        .stats-bar {
            padding: 0.75rem 1rem;
            background: rgba(255, 255, 255, 0.02);
            border-bottom: 1px solid var(--glass-border);
        }

        .stats-content {
            max-width: 1400px;
            margin: 0 auto;
            font-size: 0.875rem;
            color: var(--text-muted);
            font-weight: 500;
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .stats-content::before {
            content: '';
            display: inline-block;
            width: 6px;
            height: 6px;
            background: #ffffff;
            border-radius: 50%;
            opacity: 0.5;
        }

        main {
            max-width: 1400px;
            margin: 0 auto;
            padding: 1.5rem 1rem 4rem;
        }

        .quote-container {
            max-width: 800px;
            margin: 2rem auto 0;
            padding: 2rem;
            background: rgba(255, 255, 255, 0.02);
            border: 1px solid var(--glass-border);
            border-radius: var(--radius-lg);
            text-align: center;
            position: relative;
            transition: all 0.5s ease;
        }

        .quote-container:hover {
            border-color: rgba(255, 255, 255, 0.12);
            background: rgba(255, 255, 255, 0.03);
        }

        #quoteText {
            font-style: italic;
            font-size: 1.15rem;
            color: #d4d4d4;
            margin-bottom: 0.75rem;
            display: block;
            line-height: 1.6;
        }

        #quoteAuthor {
            font-size: 0.8rem;
            color: #737373;
            font-weight: 600;
            text-transform: uppercase;
            letter-spacing: 2px;
        }

        #quoteAuthor::before {
            content: '— ';
        }

        #container {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
            gap: 1.5rem;
            margin-top: 2rem;
        }

        @media (min-width: 640px) {
            #container { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
        }

        @media (min-width: 1024px) {
            #container { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
        }

        .zone-item {
            background: var(--card-bg);
            border: 1px solid var(--card-border);
            border-radius: var(--radius-lg);
            overflow: hidden;
            cursor: pointer;
            transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
            display: flex;
            flex-direction: column;
            position: relative;
        }

        .zone-item:hover {
            transform: translateY(-6px);
            border-color: rgba(255, 255, 255, 0.15);
            box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.8);
        }

        .zone-item.featured { 
            border: 1px solid rgba(255, 255, 255, 0.25);
        }

        .zone-item.featured::before {
            content: "FEATURED";
            position: absolute;
            top: 12px;
            right: 12px;
            background: rgba(255, 255, 255, 0.95);
            color: #000000;
            padding: 4px 10px;
            border-radius: 4px;
            font-size: 0.6rem;
            font-weight: 800;
            z-index: 10;
            letter-spacing: 0.5px;
        }

        .zone-item img {
            width: 100%;
            height: 180px;
            object-fit: cover;
            transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
            display: block;
        }

        .zone-item:hover img { 
            transform: scale(1.08);
        }

        .zone-info {
            padding: 1.25rem;
            background: linear-gradient(to bottom, transparent, rgba(0,0,0,0.3));
            position: relative;
        }

        .zone-name {
            font-weight: 600;
            font-size: 0.95rem;
            color: #ffffff;
            display: -webkit-box;
            -webkit-line-clamp: 1;
            -webkit-box-orient: vertical;
            overflow: hidden;
            text-align: center;
            letter-spacing: 0.3px;
        }

        #zoneViewer {
            position: fixed;
            inset: 0;
            background-color: #000;
            z-index: 10000;
            display: none;
            flex-direction: column;
        }

        .zone-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            background: rgba(10, 10, 10, 0.98);
            padding: 1rem 1.5rem;
            border-bottom: 1px solid var(--glass-border);
        }

        .zone-title {
            display: flex;
            flex-direction: column;
            overflow: hidden;
            margin-right: 1rem;
        }

        #zoneName {
            font-size: 1.2rem;
            font-weight: 700;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
            color: #ffffff;
        }

        #zoneAuthor {
            font-size: 0.8rem;
            color: #737373;
            text-decoration: none;
            display: flex;
            align-items: center;
            gap: 6px;
            margin-top: 4px;
        }

        #zoneAuthor i {
            color: #ffffff;
            font-size: 0.7rem;
        }

        .zone-controls {
            display: flex;
            gap: 8px;
        }

        .zone-controls button {
            background: rgba(255, 255, 255, 0.05);
            border: 1px solid var(--glass-border);
            color: white;
            padding: 0.7rem 1rem;
            border-radius: 8px;
            cursor: pointer;
            font-size: 0.85rem;
            display: flex;
            align-items: center;
            gap: 6px;
            transition: all 0.3s ease;
            font-weight: 500;
        }

        .zone-controls button:hover {
            background: rgba(255, 255, 255, 0.1);
            border-color: rgba(255, 255, 255, 0.2);
            transform: translateY(-1px);
        }

        .zone-controls button span { display: none; }

        @media (min-width: 1024px) {
            .zone-controls button span { display: inline; }
            .zone-controls { gap: 10px; }
        }

        .zone-controls button[style*="background: #7f1d1d"] {
            background: rgba(255, 255, 255, 0.1) !important;
            border-color: rgba(255, 255, 255, 0.2) !important;
        }

        .zone-controls button[style*="background: #7f1d1d"]:hover {
            background: rgba(255, 255, 255, 0.15) !important;
            border-color: rgba(255, 255, 255, 0.3) !important;
        }

        #zoneFrame { 
            flex-grow: 1; 
            border: none; 
            background: #fff;
        }

        #popupOverlay {
            position: fixed;
            inset: 0;
            background-color: rgba(0, 0, 0, 0.95);
            display: none;
            align-items: center;
            justify-content: center;
            z-index: 2000;
            backdrop-filter: blur(10px);
            padding: 1rem;
        }

        .popup {
            background: rgba(10, 10, 10, 0.98);
            border-radius: var(--radius-lg);
            width: 100%;
            max-width: 480px;
            border: 1px solid var(--glass-border);
            overflow-y: auto;
            max-height: 90vh;
            box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.9);
        }

        .popup-header {
            padding: 1.5rem;
            display: flex;
            justify-content: space-between;
            align-items: center;
            border-bottom: 1px solid var(--glass-border);
            position: sticky;
            top: 0;
            background: rgba(10, 10, 10, 0.98);
            z-index: 10;
        }

        .popup-header h3 {
            font-size: 1.1rem;
            font-weight: 700;
            color: #ffffff;
            letter-spacing: 0.5px;
        }

        #popupClose {
            background: rgba(255, 255, 255, 0.05);
            border: 1px solid var(--glass-border);
            color: #737373;
            font-size: 1.5rem;
            cursor: pointer;
            width: 36px;
            height: 36px;
            border-radius: 8px;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.3s ease;
        }

        #popupClose:hover {
            background: rgba(255, 255, 255, 0.1);
            color: #ffffff;
        }

        #popupBody {
            padding: 1.5rem;
        }

        .btn-group {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 0.75rem;
        }

        .btn {
            padding: 0.9rem;
            border-radius: var(--radius-md);
            border: 1px solid transparent;
            font-size: 14px;
            cursor: pointer;
            transition: all 0.3s ease;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
            font-weight: 600;
        }

        .btn-primary { 
            background: #ffffff; 
            color: #000000;
        }
        
        .btn-primary:hover { 
            background: #e5e5e5;
            transform: translateY(-1px);
        }

        .btn-secondary { 
            background: rgba(255, 255, 255, 0.05); 
            color: white; 
            border-color: var(--glass-border);
        }
        
        .btn-secondary:hover { 
            background: rgba(255, 255, 255, 0.1); 
            border-color: rgba(255, 255, 255, 0.15);
        }

        .loading {
            grid-column: 1 / -1;
            display: flex;
            flex-direction: column;
            align-items: center;
            padding: 4rem 0;
            color: #525252;
        }

        .loading i { 
            font-size: 2rem; 
            color: #ffffff; 
            margin-bottom: 1rem;
            opacity: 0.5;
            animation: spin 1s linear infinite;
        }

        @keyframes spin {
            from { transform: rotate(0deg); }
            to { transform: rotate(360deg); }
        }

        .setting-item { 
            margin-bottom: 1.5rem; 
        }
        
        .setting-label { 
            display: block; 
            margin-bottom: 0.5rem; 
            font-size: 0.875rem; 
            color: #737373; 
            font-weight: 600;
            letter-spacing: 0.5px;
            text-transform: uppercase;
            font-size: 0.75rem;
        }
        
        .setting-input { 
            width: 100%; 
            padding: 12px 16px; 
            border-radius: 8px; 
            border: 1px solid var(--glass-border); 
            background: rgba(255, 255, 255, 0.03); 
            color: white; 
            font-size: 14px;
            transition: all 0.3s ease;
        }

        .setting-input:focus {
            outline: none;
            border-color: rgba(255, 255, 255, 0.2);
            background: rgba(255, 255, 255, 0.05);
        }

        .credits-section {
            margin-top: 1.5rem;
            padding-top: 1.5rem;
            border-top: 1px solid var(--glass-border);
            text-align: center;
        }

        .credits-list { 
            font-size: 0.85rem; 
            color: #737373; 
            line-height: 1.8; 
        }
        
        .credits-list strong { 
            color: #ffffff;
            font-weight: 600;
        }

        footer {
            text-align: center; 
            padding: 40px 20px; 
            color: #525252; 
            font-size: 0.8rem; 
            letter-spacing: 0.5px;
            border-top: 1px solid var(--glass-border);
            margin-top: 4rem;
        }

        ::-webkit-scrollbar { 
            width: 8px; 
        }
        
        ::-webkit-scrollbar-track { 
            background: #000000; 
        }
        
        ::-webkit-scrollbar-thumb { 
            background: #333333; 
            border-radius: 4px;
        }

        ::-webkit-scrollbar-thumb:hover {
            background: #444444;
        }

        ::selection {
            background: rgba(255, 255, 255, 0.2);
            color: white;
        }

        @media (max-width: 768px) {
            .header-content {
                flex-wrap: wrap;
                gap: 1rem;
            }
            
            .search-container {
                order: 3;
                width: 100%;
                max-width: none;
            }
            
            .logo {
                font-size: 1.4rem;
            }
            
            .quote-container {
                margin: 1rem;
                padding: 1.5rem;
            }
            
            #container {
                grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
                gap: 1rem;
            }
        }
