
        :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;
            --pine: #35ABB4;
            --foam: #7DE9EB;
            --rose: #3FCBCC;
            --gold: #41C8CD;
            --iris: #7DE9EB;
            --love: #35ABB4;
            --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: 1200px;
            margin: 0 auto;
        }

        .login-container {
            max-width: 400px;
            margin: 100px auto;
            background: var(--surface);
            padding: 30px;
            border-radius: 12px;
            border: 2px solid var(--pine);
        }

        .login-container h2 {
            color: var(--pine);
            text-align: center;
            margin-bottom: 30px;
        }

        .form-group {
            margin-bottom: 20px;
        }

        .form-group label {
            display: block;
            color: var(--foam);
            margin-bottom: 8px;
            font-weight: 600;
        }

        .form-group input,
        .form-group select,
        .form-group textarea {
            width: 100%;
            padding: 12px;
            background: var(--overlay);
            border: 1px solid var(--highlight-med);
            border-radius: 6px;
            color: var(--text);
            font-size: 1rem;
            font-family: inherit;
        }

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

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

        .btn {
            width: 100%;
            padding: 12px;
            background: var(--pine);
            border: none;
            border-radius: 6px;
            color: var(--base);
            font-size: 1rem;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.2s;
        }

        .btn:hover {
            background: var(--rose);
            transform: translateY(-2px);
        }

        .btn-secondary {
            background: var(--foam);
            margin-top: 10px;
        }

        .btn-secondary:hover {
            background: var(--pine);
        }

        .btn-danger {
            background: var(--pine);
        }

        .btn-danger:hover {
            background: #d05575;
        }

        .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(--pine);
            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(--pine);
            transform: translateY(-2px);
            box-shadow: 0 4px 12px rgba(235, 111, 146, 0.2);
        }

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

        header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 30px;
            padding-bottom: 20px;
            border-bottom: 2px solid var(--overlay);
        }

        header h1 {
            color: var(--pine);
            font-size: 2rem;
        }

        .user-info {
            display: flex;
            align-items: center;
            gap: 15px;
        }

        .username {
            color: var(--foam);
            font-weight: 600;
        }

        .btn-logout {
            padding: 8px 16px;
            background: var(--overlay);
            border: 2px solid var(--pine);
            border-radius: 6px;
            color: var(--text);
            cursor: pointer;
            transition: all 0.2s;
        }

        .btn-logout:hover {
            background: var(--pine);
            color: var(--base);
        }

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

        .builds-header h2 {
            color: var(--foam);
        }

        .btn-new-build {
            padding: 10px 20px;
            background: var(--foam);
            border: none;
            border-radius: 6px;
            color: var(--base);
            font-weight: 600;
            cursor: pointer;
            transition: all 0.2s;
        }

        .btn-new-build:hover {
            background: var(--pine);
            transform: translateY(-2px);
        }

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

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

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

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

        .build-name {
            color: var(--foam);
            font-size: 1.1rem;
            margin-bottom: 12px;
        }

        .build-description {
            color: var(--subtle);
            font-size: 0.9rem;
            margin-bottom: 15px;
            line-height: 1.4;
        }

        .build-description a {
            color: var(--foam);
            text-decoration: underline;
        }

        .build-description a:hover {
            color: var(--pine);
        }

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

        .build-mods-title {
            color: var(--gold);
            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);
        }

        .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: var(--overlay);
            border: 2px solid var(--teal-dark);
            border-radius: 6px;
            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);
        }

        .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-actions {
            display: flex;
            gap: 10px;
            margin-top: 15px;
        }

        .build-actions button {
            flex: 1;
            padding: 8px;
            border: none;
            border-radius: 6px;
            cursor: pointer;
            font-weight: 600;
            transition: all 0.2s;
        }

        .btn-edit {
            background: var(--foam);
            color: var(--base);
        }

        .btn-edit:hover {
            background: var(--pine);
        }

        .btn-delete {
            background: var(--pine);
            color: var(--base);
        }

        .btn-delete:hover {
            background: #d05575;
        }

        .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: center;
            justify-content: center;
            padding: 20px;
            overflow-y: auto;
        }

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

        .modal-content {
            background: var(--surface);
            border: 2px solid var(--pine);
            border-radius: 12px;
            max-width: 600px;
            width: 100%;
            max-height: 90vh;
            overflow-y: auto;
            padding: 30px;
            position: relative;
        }

        .modal-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 25px;
            padding-bottom: 15px;
            border-bottom: 2px solid var(--overlay);
        }

        .modal-header h2 {
            color: var(--pine);
            font-size: 1.5rem;
        }

        .modal-close {
            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(--pine);
            transform: rotate(90deg);
        }

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

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

        .mod-input-group {
            margin-bottom: 15px;
            position: relative;
        }

        .mod-inputs {
            display: flex;
            gap: 10px;
            margin-bottom: 10px;
            position: relative;
        }

        .mod-inputs input {
            flex: 1;
        }

        .mod-inputs button {
            padding: 12px 20px;
            background: var(--foam);
            border: none;
            border-radius: 6px;
            color: var(--base);
            font-weight: 600;
            cursor: pointer;
            transition: all 0.2s;
        }

        .mod-inputs button:hover {
            background: var(--pine);
        }

        .autocomplete-dropdown {
            position: absolute;
            top: calc(100% + 4px);
            left: 0;
            right: 60px;
            max-height: 400px;
            overflow-y: auto;
            background: var(--overlay);
            border: 1px solid var(--teal);
            border-radius: 6px;
            z-index: 1000;
            display: none;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
        }

        .autocomplete-dropdown.active {
            display: block;
        }

        .autocomplete-item {
            display: flex;
            align-items: center;
            gap: 12px;
            padding: 10px;
            cursor: pointer;
            transition: background 0.2s ease;
            border-bottom: 1px solid var(--highlight-med);
        }

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

        .autocomplete-item:hover,
        .autocomplete-item.selected {
            background: var(--teal-dark);
        }

        .autocomplete-item img {
            width: 40px;
            height: 40px;
            object-fit: contain;
            border-radius: 4px;
            background: rgba(255, 255, 255, 0.05);
            padding: 2px;
        }

        .autocomplete-item-name {
            flex: 1;
            color: var(--text);
            font-size: 0.95rem;
        }

        .autocomplete-no-results {
            padding: 20px;
            text-align: center;
            color: var(--subtle);
            font-size: 0.9rem;
        }

        .build-slots-container {
            display: flex;
            flex-direction: column;
            gap: 10px;
            padding: 15px;
            background: rgba(255, 255, 255, 0.02);
            border-radius: 8px;
            max-width: 900px;
        }

        .slot-row {
            display: grid;
            grid-template-columns: repeat(4, 1fr);
            gap: 10px;
        }

        .build-slot {
            position: relative;
            aspect-ratio: 1;
            border: 2px dashed var(--teal-dark);
            border-radius: 8px;
            background: rgba(255, 255, 255, 0.03);
            cursor: pointer;
            transition: all 0.3s ease;
            display: flex;
            align-items: center;
            justify-content: center;
            overflow: hidden;
        }

        .build-slot:hover {
            border-color: var(--cyan-light);
            background: rgba(53, 171, 180, 0.1);
            transform: scale(1.02);
        }

        .build-slot.filled {
            border-style: solid;
            border-color: var(--teal);
        }

        .build-slot.filled:hover {
            transform: translateY(-2px);
            box-shadow: 0 4px 12px rgba(53, 171, 180, 0.3);
        }

        .build-slot .slot-label {
            font-size: 0.9rem;
            color: var(--text-muted);
            text-align: center;
            pointer-events: none;
        }

        .build-slot.filled .slot-label {
            display: none;
        }

        .build-slot img {
            width: 100%;
            height: 100%;
            object-fit: contain;
            padding: 8px;
        }

        .empty-slot {
            border: none !important;
            background: transparent !important;
            cursor: default !important;
            pointer-events: none;
        }

        .empty-slot:hover {
            transform: none !important;
            box-shadow: none !important;
        }

        .slot-search-modal {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: rgba(0, 0, 0, 0.8);
            display: flex;
            align-items: center;
            justify-content: center;
            z-index: 10000;
        }

        .slot-search-content {
            background: var(--pine);
            border-radius: 12px;
            padding: 25px;
            max-width: 600px;
            width: 90%;
            max-height: 80vh;
            display: flex;
            flex-direction: column;
            border: 2px solid var(--teal);
            position: relative;
        }

        .close-slot-search {
            position: absolute;
            top: 10px;
            right: 10px;
            background: transparent;
            border: none;
            color: var(--text);
            font-size: 2rem;
            cursor: pointer;
            width: 40px;
            height: 40px;
            display: flex;
            align-items: center;
            justify-content: center;
            border-radius: 50%;
            transition: all 0.3s ease;
        }

        .close-slot-search:hover {
            background: rgba(255, 255, 255, 0.1);
            color: var(--cyan-light);
        }

        #slotSearchTitle {
            margin: 0 0 15px 0;
            color: var(--cyan-light);
        }

        #slotSearchInput {
            width: 100%;
            padding: 12px;
            border: 2px solid var(--teal-dark);
            border-radius: 8px;
            background: var(--overlay);
            color: var(--text);
            font-size: 1rem;
            margin-bottom: 15px;
        }

        #slotSearchInput:focus {
            outline: none;
            border-color: var(--cyan-light);
        }

        .slot-search-results {
            flex: 1;
            overflow-y: auto;
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
            gap: 10px;
            max-height: 50vh;
        }

        .slot-search-item {
            aspect-ratio: 1;
            border: 2px solid var(--teal-dark);
            border-radius: 8px;
            background: rgba(255, 255, 255, 0.03);
            cursor: pointer;
            transition: all 0.3s ease;
            overflow: hidden;
            display: flex;
            align-items: center;
            justify-content: center;
            position: relative;
        }

        .slot-search-item:hover,
        .slot-search-item.selected {
            border-color: var(--cyan-light);
            background: rgba(53, 171, 180, 0.2);
            transform: scale(1.05);
        }

        .slot-search-item img {
            width: 100%;
            height: 100%;
            object-fit: contain;
            padding: 8px;
        }

        .slot-search-item .item-name {
            position: absolute;
            bottom: 0;
            left: 0;
            right: 0;
            background: rgba(0, 0, 0, 0.8);
            color: var(--text);
            font-size: 0.7rem;
            padding: 4px;
            text-align: center;
            opacity: 0;
            transition: opacity 0.3s ease;
        }

        .slot-search-item:hover .item-name {
            opacity: 1;
        }

        .added-mods {
            display: grid;
            grid-template-columns: repeat(4, 1fr);
            gap: 15px;
            padding: 15px;
            background: rgba(255, 255, 255, 0.02);
            border-radius: 8px;
            max-width: 800px;
        }

        .added-mod {
            position: relative;
            aspect-ratio: 1;
            border-radius: 8px;
            overflow: hidden;
            background: var(--overlay);
            border: 2px solid var(--teal-dark);
            transition: all 0.3s ease;
            cursor: pointer;
            max-width: 180px;
            max-height: 180px;
        }

        .added-mod:hover {
            transform: translateY(-4px);
            border-color: var(--cyan-light);
            box-shadow: 0 8px 20px rgba(53, 171, 180, 0.4);
        }

        .added-mod img {
            width: 100%;
            height: 100%;
            object-fit: contain;
            padding: 8px;
        }

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

        .remove-mod {
            background: var(--pine);
            border: none;
            color: var(--base);
            width: 20px;
            height: 20px;
            border-radius: 50%;
            cursor: pointer;
            font-size: 0.7rem;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .remove-mod:hover {
            background: #d05575;
        }

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

        ::-webkit-scrollbar-track {
            background: var(--surface);
        }

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

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

        .stats {
            background: var(--surface);
            padding: 15px;
            border-radius: 6px;
            margin-bottom: 20px;
            text-align: center;
            color: var(--subtle);
        }

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

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

        .link-to-search a {
            color: var(--foam);
            text-decoration: none;
            font-weight: 600;
            font-size: 1.1rem;
        }

        .link-to-search a:hover {
            color: var(--pine);
        }

        .toast-container {
            position: fixed;
            bottom: 20px;
            right: 20px;
            z-index: 10000;
            display: flex;
            flex-direction: column;
            gap: 10px;
            pointer-events: none;
        }

        .toast {
            background: var(--surface);
            color: var(--text);
            padding: 16px 20px;
            border-radius: 8px;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
            display: flex;
            align-items: center;
            gap: 12px;
            min-width: 300px;
            max-width: 400px;
            pointer-events: all;
            animation: slideIn 0.3s ease-out;
            border-left: 4px solid var(--teal);
        }

        .toast.success {
            border-left-color: #4ade80;
        }

        .toast.error {
            border-left-color: #f87171;
        }

        .toast.info {
            border-left-color: var(--cyan-light);
        }

        .toast-icon {
            font-size: 20px;
            flex-shrink: 0;
        }

        .toast-message {
            flex: 1;
            font-size: 14px;
            line-height: 1.4;
        }

        .toast.removing {
            animation: slideOut 0.3s ease-in forwards;
        }

        @keyframes slideIn {
            from {
                transform: translateX(400px);
                opacity: 0;
            }
            to {
                transform: translateX(0);
                opacity: 1;
            }
        }

        @keyframes slideOut {
            from {
                transform: translateX(0);
                opacity: 1;
            }
            to {
                transform: translateX(400px);
                opacity: 0;
            }
        }

        .slot-remove-btn {
            position: absolute;
            top: 5px;
            right: 5px;
            width: 24px;
            height: 24px;
            background: rgba(248, 113, 113, 0.9);
            color: white;
            border: none;
            border-radius: 50%;
            font-size: 16px;
            font-weight: bold;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            opacity: 0;
            transition: all 0.2s ease;
            z-index: 10;
        }

        .build-slot.filled:hover .slot-remove-btn {
            opacity: 1;
        }

        .slot-remove-btn:hover {
            background: rgba(220, 38, 38, 1);
            transform: scale(1.1);
        }

        .clear-build-btn {
            padding: 10px 20px;
            background: var(--overlay);
            color: var(--text);
            border: 2px solid #f87171;
            border-radius: 6px;
            font-size: 14px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s ease;
            margin-bottom: 15px;
            width: 100%;
        }

        .clear-build-btn:hover {
            background: rgba(248, 113, 113, 0.1);
            border-color: #ef4444;
            color: #f87171;
        }

        .clear-build-btn:active {
            transform: scale(0.98);
        }

        .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);
        }

        .search-bar .stats {
            margin-bottom: 0 !important;
            margin-top: 15px;
        }