        :root {
            --base: #1E1E1E;
            --surface: #252525;
            --overlay: #2d2d2d;
            --muted: #6e6a86;
            --subtle: #a0a0a0;
            --text: #e0def4;
            --teal-dark: #17545F;
            --teal-medium: #2A8C94;
            --teal: #35ABB4;
            --teal-light: #41C8CD;
            --cyan-light: #7DE9EB;
            --cyan: #3FCBCC;
            --highlight-low: #232323;
            --highlight-med: #3a3a3a;
            --highlight-high: #4a4a4a;
        }

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

        body {
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
            background: #1E1E1E;
            color: var(--text);
            padding: 20px;
            min-height: 100vh;
        }

        .container {
            max-width: 1400px;
            margin: 0 auto;
        }

        .nav-bar {
            background: var(--surface);
            padding: 15px 20px;
            border-radius: 8px;
            border: 1px solid var(--overlay);
            margin-bottom: 20px;
            display: flex;
            justify-content: center;
            gap: 15px;
            flex-wrap: wrap;
        }

        .nav-button {
            background: var(--overlay);
            color: var(--teal);
            padding: 8px 16px;
            border: 2px solid var(--highlight-med);
            border-radius: 6px;
            text-decoration: none;
            font-weight: 600;
            font-size: 0.9rem;
            transition: all 0.2s;
            cursor: pointer;
        }

        .nav-button:hover {
            border-color: var(--cyan);
            transform: translateY(-2px);
            box-shadow: 0 4px 12px rgba(61, 203, 204, 0.2);
        }

        .nav-button.active {
            border-color: var(--teal-medium);
            background: var(--teal-medium);
            color: var(--base);
        }

        .search-bar {
            background: var(--surface);
            padding: 20px;
            border-radius: 8px;
            margin-bottom: 20px;
            border: 1px solid var(--overlay);
        }

        .search-input-wrapper {
            position: relative;
            margin-bottom: 15px;
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .search-input-wrapper > input {
            flex: 1;
        }

        .search-input {
            width: 100%;
            padding: 12px 15px;
            background: var(--overlay);
            border: 1px solid var(--highlight-med);
            border-radius: 6px;
            color: var(--text);
            font-size: 1rem;
        }

        .search-input:focus {
            outline: none;
            border-color: var(--cyan);
        }

        .filter-btn {
            padding: 8px 16px;
            background: var(--surface);
            border: 2px solid var(--teal-dark);
            border-radius: 6px;
            color: var(--text);
            font-size: 0.9rem;
            cursor: pointer;
            transition: all 0.3s ease;
            font-weight: 500;
        }

        .filter-btn:hover {
            border-color: var(--cyan-light);
            background: var(--overlay);
        }

        .filter-btn.active {
            background: var(--teal);
            border-color: var(--cyan-light);
            color: var(--base);
            font-weight: 600;
        }

        .stats {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 15px;
            background: var(--surface);
            border-radius: 6px;
            margin-bottom: 20px;
            font-size: 0.9rem;
            color: var(--subtle);
            gap: 20px;
        }

        .stats-left {
            display: flex;
            gap: 20px;
        }

        .stats strong {
            color: var(--cyan-light);
        }

        .builds-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
            gap: 20px;
            margin-bottom: 30px;
        }

        .build-card {
            background: var(--surface);
            border: 1px solid var(--overlay);
            border-radius: 1px;
            padding: 20px;
            cursor: pointer;
            transition: all 0.2s;
        }

        .build-card.tag-cozy {
            border-color: #2ecc71;
        }

        .build-card.tag-sorta-cozy {
            border-color: #f1c40f;
        }

        .build-card.tag-lesser-cozy {
            border-color: #f39c12;
        }

        .build-card.tag-effort {
            border-color: #e74c3c;
        }

        .build-card:hover {
            border-color: var(--teal);
            transform: translateY(-2px);
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
        }

        .build-card.tag-cozy:hover {
            border-color: #2ecc71;
        }

        .build-card.tag-sorta-cozy:hover {
            border-color: #f1c40f;
        }

        .build-card.tag-lesser-cozy:hover {
            border-color: #f39c12;
        }

        .build-card.tag-effort:hover {
            border-color: #e74c3c;
        }

        .build-warframe {
            font-size: 1.4rem;
            color: var(--teal-medium);
            font-weight: 600;
            margin-bottom: 8px;
        }

        .build-name {
            color: var(--cyan);
            font-size: 1.2rem;
            font-weight: 600;
            margin-bottom: 12px;
        }

        .build-description {
            color: var(--text);
            font-size: 0.9rem;
            margin-bottom: 15px;
            line-height: 1.5;
            display: -webkit-box;
            -webkit-line-clamp: 3;
            line-clamp: 3;
            -webkit-box-orient: vertical;
            overflow: hidden;
        }

        .rich-text a {
            color: var(--cyan-light);
            text-decoration: underline;
        }

        .rich-text a:hover {
            color: var(--teal-medium);
        }

        .build-thumbnail {
            width: 100%;
            height: 200px;
            object-fit: contain;
            object-position: center;
            border-radius: 8px;
            margin-bottom: 12px;
            border: 1px solid var(--teal-dark);
            background: rgba(0, 0, 0, 0.3);
        }

        .build-mods {
            margin: 15px 0;
        }

        .build-mods-title {
            color: var(--teal-light);
            font-size: 0.85rem;
            font-weight: 600;
            margin-bottom: 8px;
        }

        .mods-list {
            display: flex;
            flex-wrap: wrap;
            gap: 6px;
        }

        .mod-tag {
            background: var(--overlay);
            padding: 4px 10px;
            border-radius: 4px;
            font-size: 0.75rem;
            color: var(--text);
            border: 1px solid var(--highlight-med);
        }

        .mods-grid {
            display: grid;
            grid-template-columns: repeat(4, 1fr);
            gap: 10px;
            margin-top: 8px;
            max-width: 650px;
        }

        .mod-grid-item {
            aspect-ratio: 1;
            background: rgba(255, 255, 255, 0.03);
            border: 1px solid var(--teal-dark);
            border-radius: 4px;
            overflow: hidden;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.2s ease;
            width: 100%;
            max-width: 140px;
            max-height: 140px;
        }

        .mod-grid-item:hover {
            border-color: var(--cyan-light);
            transform: scale(1.05);
            box-shadow: 0 4px 12px rgba(53, 171, 180, 0.3);
        }

        .mod-grid-item:nth-child(1),
        .mod-grid-item:nth-child(2) {
            grid-column: span 2;
        }

        .mod-grid-item img {
            width: 100%;
            height: 100%;
            object-fit: contain;
            padding: 4px;
        }

        .build-author {
            color: var(--subtle);
            font-size: 0.8rem;
            margin-top: 10px;
            padding-top: 10px;
            border-top: 1px solid var(--overlay);
        }

        .modal-overlay {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(30, 30, 30, 1);
            z-index: 1000;
            align-items: flex-start;
            justify-content: center;
            padding: 40px 20px;
            overflow-y: auto;
        }

        .modal-overlay.active {
            display: flex;
        }

        .modal-content {
            background: var(--surface);
            border: 2px solid var(--teal-medium);
            border-radius: 12px;
            max-width: 95vw;
            width: 95%;
            max-height: 95vh;
            overflow-y: auto;
            padding: 30px;
            position: relative;
            animation: modalSlideIn 0.3s ease;
        }

        @keyframes modalSlideIn {
            from {
                opacity: 0;
                transform: translateY(-30px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        .modal-close {
            position: absolute;
            top: 15px;
            right: 15px;
            background: var(--overlay);
            border: none;
            color: var(--text);
            width: 35px;
            height: 35px;
            border-radius: 50%;
            cursor: pointer;
            font-size: 1.3rem;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.2s;
        }

        .modal-close:hover {
            background: var(--teal);
            transform: rotate(90deg);
        }

        .modal-header {
            margin-bottom: 25px;
            padding-bottom: 15px;
            border-bottom: 2px solid var(--overlay);
        }

        .modal-warframe {
            font-size: 2rem;
            color: var(--teal-medium);
            font-weight: 600;
            margin-bottom: 8px;
        }

        .modal-build-name {
            font-size: 1.5rem;
            color: var(--cyan);
            font-weight: 600;
            margin-bottom: 12px;
        }

        .modal-section {
            margin: 20px 0;
        }

        .modal-section-title {
            color: var(--teal-light);
            font-size: 1.1rem;
            font-weight: 600;
            margin-bottom: 10px;
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .modal-description {
            background: var(--overlay);
            padding: 15px;
            border-radius: 8px;
            line-height: 1.8;
            color: var(--text);
            border-left: 4px solid var(--cyan);
            white-space: pre-line;
        }



        .modal-mod-item {
            background: var(--overlay);
            padding: 12px;
            border-radius: 6px;
            color: var(--text);
            border: 1px solid var(--highlight-med);
            text-align: center;
            font-weight: 500;
        }

        .modal-author {
            background: linear-gradient(135deg, var(--highlight-low) 0%, var(--surface) 100%);
            padding: 12px 18px;
            border-radius: 6px;
            font-size: 0.9rem;
            color: var(--subtle);
            margin-top: 20px;
            border: 1px solid var(--highlight-med);
            text-align: center;
        }

        .modal-author strong {
            color: var(--cyan-light);
        }

        .empty-state {
            text-align: center;
            padding: 60px 20px;
            color: var(--subtle);
        }

        .empty-state-icon {
            font-size: 3rem;
            margin-bottom: 15px;
            opacity: 0.5;
        }

        .loading-container {
            text-align: center;
            padding: 40px;
            color: var(--subtle);
        }

        .spinner {
            border: 3px solid var(--overlay);
            border-top: 3px solid var(--teal-medium);
            border-radius: 50%;
            width: 40px;
            height: 40px;
            animation: spin 1s linear infinite;
            margin: 0 auto 20px;
        }

        @keyframes spin {
            0% { transform: rotate(0deg); }
            100% { transform: rotate(360deg); }
        }

        html.mobile-forced {
            -webkit-text-size-adjust: 100%;
            text-size-adjust: 100%;
        }

        html.mobile-forced body {
            padding: 12px;
        }

        html.mobile-forced .search-bar,
        html.mobile-forced .stats,
        html.mobile-forced .build-card {
            padding: 12px;
        }

        html.mobile-forced .builds-grid {
            grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
            gap: 12px;
        }

        html.mobile-forced .build-warframe {
            font-size: 1.2rem;
        }

        html.mobile-forced .build-name {
            font-size: 1rem;
        }

        html.mobile-forced h1 {
            font-size: 1.8rem;
        }

        html.mobile-forced .modal-overlay {
            transform: scale(0.7);
            transform-origin: 0 0;
            width: 140%;
            height: 140%;
            overflow: hidden;
        }

        html.mobile-forced .modal-content {
            max-width: 100%;
            width: 100%;
            max-height: 90%;
            padding: 20px;
        }

        @media (max-width: 768px) {
            .builds-grid {
                grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
                gap: 15px;
            }

            h1 {
                font-size: 2rem;
            }
        }

        ::-webkit-scrollbar {
            width: 8px;
        }

        ::-webkit-scrollbar-track {
            background: var(--surface);
            margin: 8px 0;
        }

        ::-webkit-scrollbar-thumb {
            background: var(--overlay);
            border-radius: 5px;
        }

        ::-webkit-scrollbar-thumb:hover {
            background: var(--highlight-med);
        }

        .admin-link {
            text-align: center;
            margin-top: 20px;
            padding: 15px;
            background: var(--surface);
            border-radius: 8px;
            border: 1px solid var(--overlay);
        }

        .admin-link a {
            color: var(--cyan-light);
            text-decoration: none;
            font-weight: 600;
            font-size: 1rem;
        }

        .admin-link a:hover {
            color: var(--teal-medium);
        }
