        /* Admin-specific styles */
        .admin-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 1rem;
        }
        
        .admin-header h1 {
            margin: 0;
        }
        
        .admin-token-info {
            font-weight: 500;
        }
        
        .admin-token-actions {
            display: flex;
            gap: 0.5rem;
        }
        
        .btn-small {
            padding: 0.5rem 1rem;
            font-size: 0.9rem;
            min-height: auto;
        }
        
        .tabs-nav {
            display: flex;
            border-bottom: 2px solid var(--header-border);
            margin-bottom: 1.5rem;
            gap: 0.5rem;
        }
        
        .tab-button {
            background: none;
            border: none;
            padding: 1rem 1.5rem;
            cursor: pointer;
            font-size: 1rem;
            font-weight: 500;
            color: var(--form-text);
            border-bottom: 3px solid transparent;
            transition: all 0.2s ease;
            margin-bottom: -2px;
        }
        
        .tab-button:hover {
            color: var(--accent);
            background: var(--content-section-bg);
        }
        
        .tab-button[aria-selected="true"] {
            color: var(--accent);
            border-bottom-color: var(--accent);
            background: var(--content-section-bg);
        }
        
        .tab-panel {
            display: none;
        }
        
        .tab-panel[aria-hidden="false"] {
            display: block;
        }

        /* Sub-tabs navigation */
        .sub-tabs-nav {
            display: flex;
            border-bottom: 1px solid var(--header-border);
            margin-bottom: 1rem;
            gap: 0.25rem;
        }

        .sub-tab-button {
            background: none;
            border: none;
            padding: 0.75rem 1rem;
            cursor: pointer;
            font-size: 0.95rem;
            font-weight: 500;
            color: var(--form-text);
            border-bottom: 2px solid transparent;
            transition: all 0.2s ease;
            margin-bottom: -1px;
        }

        .sub-tab-button:hover {
            color: var(--accent);
            background: var(--content-section-bg);
        }

        .sub-tab-button[aria-selected="true"] {
            color: var(--accent);
            border-bottom-color: var(--accent);
            background: var(--content-section-bg);
        }

        /* Sub-tab panels */
        .sub-tab-panel {
            display: none;
        }

        .sub-tab-panel[aria-hidden="false"] {
            display: block;
        }
        
        .stats-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
            gap: 1rem;
            margin-bottom: 2rem;
        }
        
        .stat-card {
            background: var(--content-bg);
            padding: 1.5rem;
            border-radius: 8px;
            box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
            text-align: center;
        }
        
        .stat-value {
            font-size: 2rem;
            font-weight: 700;
            color: var(--accent);
            margin-bottom: 0.5rem;
        }
        
        .stat-label {
            font-size: 0.9rem;
            color: var(--form-text);
            text-transform: uppercase;
            letter-spacing: 0.05em;
        }
        
        .filter-controls {
            display: flex;
            gap: 0.5rem;
            margin-bottom: 1.5rem;
            flex-wrap: wrap;
        }
        
        .filter-button {
            padding: 0.5rem 1rem;
            border: 1px solid var(--header-border);
            background: var(--btn-secondary-bg);
            color: var(--btn-secondary-text);
            border-radius: 6px;
            cursor: pointer;
            font-size: 0.9rem;
            transition: all 0.2s ease;
        }
        
        .filter-button:hover {
            background: var(--btn-secondary-hover-bg);
        }
        
        .filter-button.active {
            background: var(--accent);
            color: white;
            border-color: var(--accent);
        }
        
        .entries-table {
            width: 100%;
            background: var(--content-bg);
            border-radius: 8px;
            overflow: hidden;
            box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
        }
        
        .entries-table table {
            width: 100%;
            border-collapse: collapse;
        }
        
        .entries-table th,
        .entries-table td {
            padding: 1rem;
            text-align: left;
            border-bottom: 1px solid var(--header-border);
        }
        
        .entries-table th {
            background: var(--content-section-bg);
            font-weight: 600;
            color: var(--branding-title);
        }
        
        .entries-table tr:last-child td {
            border-bottom: none;
        }
        
        .status-badge {
            padding: 0.25rem 0.75rem;
            border-radius: 12px;
            font-size: 0.8rem;
            font-weight: 500;
            text-transform: uppercase;
            letter-spacing: 0.05em;
        }
        
        .status-pending {
            background: #fef3c7;
            color: #92400e;
        }
        
        .status-approved {
            background: #d1fae5;
            color: #065f46;
        }
        
        .status-rejected {
            background: #fee2e2;
            color: #991b1b;
        }
        
        .action-buttons {
            display: flex;
            gap: 0.5rem;
        }
        
        .loading-placeholder {
            text-align: center;
            padding: 3rem;
            color: var(--form-text);
        }
        
        .error-message {
            background: #fee2e2;
            color: #991b1b;
            padding: 1rem;
            border-radius: 8px;
            margin: 1rem 0;
        }
        
        /* Login Form Styles */
        .login-gate {
            background: var(--content-bg);
            border-radius: 8px;
            box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
            padding: 2rem;
            max-width: 400px;
            margin: 2rem auto;
            text-align: center;
            border: 1px solid var(--header-border);
        }
        
        .login-gate h2 {
            color: var(--branding-title);
            margin-bottom: 1rem;
            font-size: 1.5rem;
        }
        
        .login-gate p {
            color: var(--form-text);
            margin-bottom: 1.5rem;
        }
        
        .login-form {
            display: flex;
            flex-direction: column;
            gap: 1rem;
        }
        
        .login-input-group {
            display: flex;
            flex-direction: column;
            gap: 0.5rem;
            text-align: left;
        }
        
        .login-input-group label {
            font-weight: 500;
            color: var(--form-text);
            font-size: 0.9rem;
        }
        
        .login-input {
            padding: 0.75rem;
            border: 1px solid var(--header-border);
            border-radius: 6px;
            font-size: 1rem;
            background: var(--content-section-bg);
            color: var(--text);
        }
        
        .login-input:focus {
            outline: none;
            border-color: var(--accent);
            box-shadow: 0 0 0 2px rgba(var(--accent-rgb, 59, 130, 246), 0.1);
        }
        
        .login-checkbox-group {
            display: flex;
            align-items: center;
            gap: 0.5rem;
            text-align: left;
        }
        
        .login-checkbox-group input[type="checkbox"] {
            margin: 0;
        }
        
        .login-checkbox-group label {
            font-size: 0.9rem;
            color: var(--form-text);
            cursor: pointer;
        }
        
        .login-error {
            background: #fee2e2;
            color: #991b1b;
            padding: 0.75rem;
            border-radius: 6px;
            margin-bottom: 1rem;
            font-size: 0.9rem;
        }
        
        .login-info {
            background: #dbeafe;
            color: #1e40af;
            padding: 0.75rem;
            border-radius: 6px;
            margin-bottom: 1rem;
            font-size: 0.9rem;
        }
        
        .admin-content {
            display: none;
        }
        
        .admin-content.is-authed {
            display: block;
        }
        
        /* NEW: Mobile card styles */
        .admin-list {
            display: none;
        }
        
        .admin-card {
            background: var(--content-bg);
            border-radius: 8px;
            box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
            padding: 1.5rem;
            margin-bottom: 1rem;
            border: 1px solid var(--header-border);
        }
        
        .admin-card-header {
            display: flex;
            justify-content: space-between;
            align-items: flex-start;
            margin-bottom: 0.75rem;
        }
        
        .admin-card-name {
            font-weight: 600;
            color: var(--branding-title);
            font-size: 1.1rem;
        }
        
        .admin-meta {
            font-size: 0.9rem;
            color: var(--form-text);
            margin-bottom: 0.5rem;
            line-height: 1.4;
        }
        
        .admin-message {
            color: var(--text);
            margin-bottom: 0.75rem;
            line-height: 1.5;
            display: -webkit-box;
            -webkit-line-clamp: 3;
            -webkit-box-orient: vertical;
            overflow: hidden;
        }
        
        .icon-actions {
            display: flex;
            gap: 0.5rem;
            justify-content: flex-end;
            flex-wrap: wrap;
        }
        
        .icon-btn {
            background: var(--btn-secondary-bg);
            border: 1px solid var(--header-border);
            color: var(--btn-secondary-text);
            border-radius: 6px;
            padding: 0.4rem 0.6rem;
            cursor: pointer;
            font-size: 1rem;
            min-width: 36px;
            height: 36px;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            transition: all 0.2s ease;
            text-decoration: none;
        }
        
        .icon-btn:hover:not(:disabled) {
            background: var(--btn-secondary-hover-bg);
            transform: translateY(-1px);
        }
        
        .icon-btn:disabled {
            opacity: 0.5;
            cursor: not-allowed;
        }
        
        .icon-btn.approve {
            background: #d1fae5;
            color: #065f46;
            border-color: #d1fae5;
        }
        
        .icon-btn.reject {
            background: #fee2e2;
            color: #991b1b;
            border-color: #fee2e2;
        }
        
        .icon-btn.reset {
            background: #FFD700;
            color: #6b4a00;
            border-color: #FFC000;
        }

        .icon-btn.delete {
            background: #e0e0e0;
            color: #dc2626;
            border-color: #d1d5db;
        }

        .icon-btn.delete:hover:not(:disabled) {
            background: #d1d5db;
            border-color: #b91c1c;
        }

        .icon-btn.delete i {
            color: #dc2626;
        }
        
        /* Desktop defaults - ensure table is visible by default */
        @media (min-width: 901px) {
            .entries-table {
                display: block;
            }
            
            .admin-list {
                display: none;
            }
        }
        
        @media (max-width: 900px) {
            .admin-token-status {
                flex-direction: column;
                align-items: stretch;
            }
            
        .admin-token-actions {
            justify-content: center;
        }
            
            .tabs-nav {
                overflow-x: auto;
                -webkit-overflow-scrolling: touch;
            }
            
            .entries-table {
                display: none;
            }
            
            .admin-list {
                display: block;
            }
            
            .action-buttons {
                flex-direction: column;
            }
        }
        /* Presets-specific styles */
        .presets-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
            gap: 1.5rem;
            margin-bottom: 2rem;
        }
        
        .preset-card {
            background: var(--content-bg);
            border-radius: 8px;
            box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
            padding: 1.5rem;
            border: 1px solid var(--header-border);
            position: relative;
        }
        
        .preset-header {
            display: flex;
            justify-content: space-between;
            align-items: flex-start;
            margin-bottom: 1rem;
        }
        
        .preset-name {
            font-size: 1.2rem;
            font-weight: 600;
            color: var(--branding-title);
            margin: 0;
        }
        
        .preset-badges {
            display: flex;
            gap: 0.5rem;
            flex-wrap: wrap;
        }
        
        .preset-badge {
            padding: 0.25rem 0.75rem;
            border-radius: 12px;
            font-size: 0.75rem;
            font-weight: 500;
            text-transform: uppercase;
            letter-spacing: 0.05em;
        }
        
        .badge-default {
            background: #dbeafe;
            color: #1e40af;
        }
        
        .badge-active {
            background: #d1fae5;
            color: #065f46;
        }
        
        .preset-questions {
            margin-bottom: 1rem;
        }
        
        .preset-question {
            margin-bottom: 1rem;
            padding-bottom: 1rem;
            border-bottom: 1px solid var(--header-border);
        }
        
        .preset-question:last-child {
            margin-bottom: 0;
            padding-bottom: 0;
            border-bottom: none;
        }
        
        .question-label {
            font-weight: 600;
            color: var(--text);
            margin-bottom: 0.25rem;
            font-size: 0.95rem;
        }
        
        .question-helper {
            font-size: 0.85rem;
            color: var(--form-text);
            margin-bottom: 0.25rem;
            font-style: italic;
        }
        
        .question-placeholder {
            font-size: 0.85rem;
            color: var(--muted-foreground);
            font-family: monospace;
            background: var(--content-section-bg);
            padding: 0.25rem 0.5rem;
            border-radius: 4px;
            display: inline-block;
        }
        
        .preset-actions {
            display: flex;
            gap: 0.5rem;
            justify-content: flex-end;
        }
        
        .btn-preset {
            padding: 0.5rem 1rem;
            border: 1px solid var(--header-border);
            background: var(--btn-secondary-bg);
            color: var(--btn-secondary-text);
            border-radius: 6px;
            cursor: pointer;
            font-size: 0.9rem;
            transition: all 0.2s ease;
            text-decoration: none;
            display: inline-flex;
            align-items: center;
            gap: 0.5rem;
        }
        
        .btn-preset:hover {
            background: var(--btn-secondary-hover-bg);
            transform: translateY(-1px);
        }
        
        .btn-preset.primary {
            background: var(--accent);
            color: white;
            border-color: var(--accent);
        }
        
        .btn-preset.primary:hover {
            background: var(--accent-hover);
            border-color: var(--accent-hover);
        }
        
        .btn-preset:disabled {
            opacity: 0.5;
            cursor: not-allowed;
            transform: none;
        }
        
        /* Edit Form Styles */
        .preset-edit-form {
            background: var(--content-section-bg);
            padding: 1.5rem;
            border-radius: 8px;
            margin-bottom: 1rem;
            border: 1px solid var(--header-border);
        }
        
        .form-group {
            margin-bottom: 1rem;
        }
        
        .form-label {
            display: block;
            font-weight: 500;
            color: var(--form-text);
            margin-bottom: 0.5rem;
            font-size: 0.9rem;
        }
        
        .form-input {
            width: 100%;
            padding: 0.75rem;
            border: 1px solid var(--header-border);
            border-radius: 6px;
            font-size: 1rem;
            background: var(--content-bg);
            color: var(--text);
            box-sizing: border-box;
        }
        
        .form-input:focus {
            outline: none;
            border-color: var(--accent);
            box-shadow: 0 0 0 2px rgba(var(--accent-rgb, 59, 130, 246), 0.1);
        }
        
        .form-textarea {
            resize: vertical;
            min-height: 80px;
        }
        
        .question-group {
            background: var(--content-bg);
            padding: 1rem;
            border-radius: 6px;
            margin-bottom: 1rem;
            border: 1px solid var(--header-border);
        }
        
        .question-number {
            font-weight: 600;
            color: var(--accent);
            margin-bottom: 0.75rem;
            font-size: 0.9rem;
        }
        
        .form-actions {
            display: flex;
            gap: 0.5rem;
            justify-content: flex-end;
            margin-top: 1.5rem;
        }
        
        @media (max-width: 768px) {
            .presets-grid {
                grid-template-columns: 1fr;
                gap: 1rem;
            }

            .preset-header {
                flex-direction: column;
                gap: 0.5rem;
            }

            .preset-badges {
                justify-content: flex-start;
            }

            .preset-actions {
                flex-direction: column;
            }

            .form-actions {
                flex-direction: column;
            }
        }

        /* Spotify-specific styles */
        .section-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 1rem;
        }

        .section-title {
            font-size: 1.3rem;
            font-weight: 600;
            color: var(--branding-title);
            margin: 0 0 1rem 0;
        }

        .section-actions {
            display: flex;
            gap: 0.5rem;
        }

        .settings-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
            gap: 1rem;
        }

        .setting-item {
            background: var(--content-bg);
            padding: 1.5rem;
            border-radius: 8px;
            border: 1px solid var(--header-border);
            display: flex;
            flex-direction: column;
            gap: 0.75rem;
        }

        .setting-label {
            font-weight: 600;
            color: var(--text);
            font-size: 0.95rem;
        }

        .setting-value {
            color: var(--form-text);
            font-size: 0.9rem;
        }

        .playlist-placeholder {
            color: var(--muted-foreground);
            font-style: italic;
        }

        /* Full-width setting item */
        .setting-item.full-width {
            grid-column: 1 / -1;
        }

        /* Selected playlist display */
        .selected-playlist-display {
            margin-top: 1rem;
            padding: 1rem;
            background: var(--content-section-bg);
            border-radius: 8px;
            border: 1px solid var(--header-border);
        }

        .selected-playlist-display .song-result {
            background: transparent;
            border: none;
            padding: 0;
            cursor: default;
        }

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

        .modal {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.7);
            display: flex;
            align-items: center;
            justify-content: center;
            z-index: 9999;
        }

        .modal-content {
            background: var(--content-bg);
            border-radius: 12px;
            max-width: 450px;
            width: 90%;
            max-height: 90vh;
            overflow-y: auto;
            box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
            position: relative;
            z-index: 10000;
        }

        .modal-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 1.25rem 1.5rem;
            border-bottom: 1px solid var(--header-border);
        }

        .modal-header h3 {
            margin: 0;
            font-size: 1.1rem;
            display: flex;
            align-items: center;
            gap: 0.5rem;
            color: var(--branding-title);
        }

        .modal-header h3[data-error="true"] {
            color: #dc3545;
        }

        .modal-close {
            background: none;
            border: none;
            font-size: 1.5rem;
            cursor: pointer;
            color: var(--form-text);
            padding: 0;
            width: 32px;
            height: 32px;
            display: flex;
            align-items: center;
            justify-content: center;
            border-radius: 6px;
            transition: background 0.2s;
        }

        .modal-close:hover {
            background: var(--content-section-bg);
            color: var(--text);
        }

        .modal-body {
            padding: 1.5rem;
        }

        .modal-body p {
            margin: 0 0 1rem 0;
            line-height: 1.5;
            color: var(--text);
        }

        .modal-body p:last-child {
            margin-bottom: 0;
        }

        .modal-buttons {
            display: flex;
            justify-content: center;
            gap: 0.75rem;
            margin-top: 1.25rem;
        }

        .modal-btn {
            padding: 0.625rem 1.5rem;
            border-radius: 8px;
            border: none;
            font-size: 0.95rem;
            font-weight: 500;
            cursor: pointer;
            transition: all 0.2s;
        }

        .modal-btn-primary {
            background: var(--accent);
            color: var(--accent-contrast, #fff);
        }

        .modal-btn-primary:hover {
            filter: brightness(1.1);
            transform: translateY(-1px);
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
        }

        .modal-btn-secondary {
            background: var(--btn-secondary-bg);
            color: var(--btn-secondary-text);
            border: 1px solid var(--btn-secondary-border);
        }

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