        * { margin: 0; padding: 0; box-sizing: border-box; }
        
        :root {
            --primary: #ff6b9d;
            --primary-dark: #ff4777;
            --primary-light: #ffa8c5;
            --secondary: #c44569;
            --accent: #f8b500;
            --bg-dark: #1a1a2e;
            --bg-mid: #2d1f3d;
            --card-bg: rgba(255, 255, 255, 0.06);
            --card-border: rgba(255, 255, 255, 0.1);
            --text-primary: #ffffff;
            --text-secondary: rgba(255, 255, 255, 0.75);
            --text-muted: rgba(255, 255, 255, 0.5);
--danger: #ff6b6b;
        --success: #4ade80;
        --warning: #ffd54f;
            --shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
            --shadow-pink: 0 8px 32px rgba(255, 107, 157, 0.3);
        }
        
        body {
            font-family: 'Quicksand', 'Noto Sans SC', sans-serif;
            min-height: 100vh;
            background: linear-gradient(135deg, var(--bg-dark) 0%, var(--bg-mid) 50%, #2a1a3a 100%);
            background-attachment: fixed;
            color: var(--text-primary);
            overflow-x: hidden;
        }
        
        body::before {
            content: "";
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: 
                radial-gradient(ellipse at 20% 20%, rgba(255, 107, 157, 0.08) 0%, transparent 50%),
                radial-gradient(ellipse at 80% 80%, rgba(196, 69, 105, 0.06) 0%, transparent 50%);
            pointer-events: none;
            z-index: 0;
        }
        
        /* Login Overlay */
        .login-overlay {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.92);
            display: flex;
            justify-content: center;
            align-items: center;
            z-index: 1000;
        }

        .loading-overlay {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(26, 26, 46, 0.95);
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            z-index: 999;
        }

        .loading-spinner {
            font-size: 3rem;
            color: var(--primary);
            margin-bottom: 20px;
        }

        .loading-overlay p {
            color: var(--text-secondary);
            font-size: 1.1rem;
        }

        .login-box {
            background: linear-gradient(135deg, rgba(45, 31, 61, 0.95), rgba(26, 26, 46, 0.95));
            backdrop-filter: blur(20px);
            padding: 45px;
            border-radius: 28px;
            text-align: center;
            max-width: 420px;
            width: 90%;
            border: 1px solid rgba(255, 107, 157, 0.2);
            box-shadow: 0 25px 60px rgba(0, 0, 0, 0.4), 0 0 40px rgba(255, 107, 157, 0.1);
        }
        
        .login-box .icon {
            width: 80px;
            height: 80px;
            background: linear-gradient(135deg, var(--primary), var(--secondary));
            border-radius: 22px;
            display: flex;
            align-items: center;
            justify-content: center;
            margin: 0 auto 25px;
            font-size: 2rem;
            box-shadow: 0 10px 30px rgba(255, 107, 157, 0.3);
        }
        
        .login-box h2 {
            margin-bottom: 8px;
            font-size: 1.6rem;
            background: linear-gradient(135deg, var(--primary), var(--accent));
            -webkit-background-clip: text;
            background-clip: text;
            color: transparent;
        }
        
        .login-box p {
            color: var(--text-muted);
            margin-bottom: 30px;
            font-size: 0.95rem;
        }
        
        .login-input {
            width: 100%;
            padding: 16px 20px;
            border-radius: 14px;
            background: rgba(0, 0, 0, 0.3);
            border: 2px solid rgba(255, 255, 255, 0.08);
            color: white;
            font-size: 1rem;
            margin-bottom: 18px;
            text-align: center;
            outline: none;
            transition: all 0.3s ease;
            font-family: inherit;
        }
        
        .login-input:focus {
            border-color: var(--primary);
            box-shadow: 0 0 20px rgba(255, 107, 157, 0.2);
        }
        
        .login-input::placeholder {
            color: var(--text-muted);
        }
        
        .login-btn {
            background: linear-gradient(135deg, var(--primary), var(--secondary));
            border: none;
            border-radius: 14px;
            padding: 16px 40px;
            font-size: 1.1rem;
            font-weight: 600;
            color: white;
            cursor: pointer;
            width: 100%;
            transition: all 0.3s ease;
            font-family: inherit;
            box-shadow: 0 8px 25px rgba(255, 107, 157, 0.3);
        }
        
        .login-btn:hover {
            transform: translateY(-3px);
            box-shadow: 0 12px 35px rgba(255, 107, 157, 0.4);
        }
        
        .login-error {
            color: var(--danger);
            margin-top: 18px;
            font-size: 0.9rem;
            display: none;
        }
        
        /* Admin Container */
        .admin-container {
            max-width: 1300px;
            margin: 0 auto;
            padding: 25px 24px;
            display: none;
            position: relative;
            z-index: 1;
        }
        
        .admin-container.active { display: block; }
        
        /* Admin Header */
        .admin-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 24px 28px;
            background: var(--card-bg);
            backdrop-filter: blur(10px);
            border: 1px solid var(--card-border);
            border-radius: 20px;
            margin-bottom: 25px;
        }
        
        .admin-header h1 {
            font-size: 1.4rem;
            display: flex;
            align-items: center;
            gap: 12px;
            background: linear-gradient(135deg, var(--primary), var(--accent));
            -webkit-background-clip: text;
            background-clip: text;
            color: transparent;
        }
        
        .admin-header h1 i {
            background: linear-gradient(135deg, var(--primary), var(--secondary));
            -webkit-background-clip: text;
            background-clip: text;
            color: transparent;
        }
        
        .header-actions {
            display: flex;
            gap: 12px;
        }
        
        .back-link, .logout-btn {
            color: var(--text-secondary);
            text-decoration: none;
            padding: 10px 20px;
            background: rgba(255, 255, 255, 0.06);
            border-radius: 12px;
            font-size: 0.9rem;
            transition: all 0.3s ease;
            display: flex;
            align-items: center;
            gap: 8px;
            border: 1px solid transparent;
            cursor: pointer;
            font-family: inherit;
        }
        
        .back-link:hover, .logout-btn:hover {
            background: rgba(255, 107, 157, 0.15);
            border-color: rgba(255, 107, 157, 0.3);
        }
        
        /* Tabs */
        .tabs {
            display: flex;
            gap: 10px;
            margin-bottom: 22px;
            flex-wrap: wrap;
            padding: 6px;
            background: var(--card-bg);
            backdrop-filter: blur(10px);
            border-radius: 16px;
            border: 1px solid var(--card-border);
        }
        
        .tab {
            padding: 12px 20px;
            background: transparent;
            border: none;
            border-radius: 12px;
            color: var(--text-secondary);
            cursor: pointer;
            transition: all 0.3s ease;
            font-size: 0.9rem;
            font-weight: 500;
            font-family: inherit;
            display: flex;
            align-items: center;
            gap: 8px;
        }
        
        .tab:hover {
            background: rgba(255, 255, 255, 0.05);
            color: var(--text-primary);
        }
        
        .tab.active {
            background: linear-gradient(135deg, var(--primary), var(--secondary));
            color: white;
            box-shadow: 0 4px 15px rgba(255, 107, 157, 0.3);
        }
        
        /* Section */
        .section {
            background: var(--card-bg);
            backdrop-filter: blur(10px);
            border: 1px solid var(--card-border);
            border-radius: 24px;
            padding: 30px;
            margin-bottom: 25px;
            display: none;
            animation: fadeIn 0.4s ease;
        }
        
        .section.active { display: block; }
        
        @keyframes fadeIn {
            from { opacity: 0; transform: translateY(15px); }
            to { opacity: 1; transform: translateY(0); }
        }
        
        .section-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 25px;
            padding-bottom: 18px;
            border-bottom: 1px solid rgba(255, 255, 255, 0.08);
        }
        
        .section h2 {
            font-size: 1.3rem;
            display: flex;
            align-items: center;
            gap: 10px;
            color: var(--text-primary);
        }
        
        .section h2 i {
            color: var(--primary);
        }
        
        /* Form Grid */
        .form-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
            gap: 18px;
            margin-bottom: 20px;
        }
        
        .form-group {
            text-align: left;
        }
        
        .form-group label {
            display: block;
            margin-bottom: 8px;
            color: var(--text-secondary);
            font-size: 0.9rem;
            font-weight: 500;
        }
        
        .form-input {
            width: 100%;
            padding: 14px 16px;
            border-radius: 12px;
            background: rgba(0, 0, 0, 0.25);
            border: 2px solid rgba(255, 255, 255, 0.08);
            color: white;
            font-size: 0.95rem;
            font-family: inherit;
            transition: all 0.3s ease;
        }
        
        .form-input:focus {
            border-color: var(--primary);
            box-shadow: 0 0 15px rgba(255, 107, 157, 0.15);
            outline: none;
        }
        
        .form-input::placeholder {
            color: var(--text-muted);
        }
        
        textarea.form-input {
            resize: vertical;
            min-height: 80px;
        }
        
        /* Buttons */
        .btn {
            padding: 12px 24px;
            border: none;
            border-radius: 12px;
            cursor: pointer;
            font-size: 0.95rem;
            font-weight: 600;
            transition: all 0.3s ease;
            font-family: inherit;
            display: inline-flex;
            align-items: center;
            gap: 8px;
        }
        
        .btn-primary {
            background: linear-gradient(135deg, var(--primary), var(--secondary));
            color: white;
            box-shadow: 0 5px 20px rgba(255, 107, 157, 0.3);
        }
        
        .btn-primary:hover {
            transform: translateY(-2px);
            box-shadow: 0 8px 25px rgba(255, 107, 157, 0.4);
        }
        
        .btn-secondary {
            background: rgba(255, 255, 255, 0.08);
            color: var(--text-primary);
            border: 1px solid rgba(255, 255, 255, 0.1);
        }
        
        .btn-secondary:hover {
            background: rgba(255, 255, 255, 0.12);
        }
        
        .btn-danger {
            background: rgba(255, 80, 80, 0.15);
            color: var(--danger);
            border: 1px solid rgba(255, 80, 80, 0.3);
        }
        
        .btn-danger:hover {
            background: rgba(255, 80, 80, 0.25);
        }
        
        .btn-success {
            background: rgba(100, 255, 150, 0.12);
            color: var(--success);
            border: 1px solid rgba(100, 255, 150, 0.3);
        }
        
        .btn-success:hover {
            background: rgba(100, 255, 150, 0.2);
        }
        
        .btn-sm {
            padding: 8px 14px;
            font-size: 0.85rem;
        }
        
        /* Data Table */
        .data-table {
            width: 100%;
            border-collapse: collapse;
            margin-top: 22px;
        }
        
        .data-table th {
            text-align: left;
            padding: 14px 16px;
            background: rgba(0, 0, 0, 0.2);
            color: var(--primary-light);
            font-weight: 600;
            font-size: 0.85rem;
            text-transform: uppercase;
            letter-spacing: 0.5px;
            border-bottom: 2px solid rgba(255, 107, 157, 0.2);
        }
        
        .data-table td {
            padding: 16px;
            border-bottom: 1px solid rgba(255, 255, 255, 0.05);
            font-size: 0.95rem;
        }
        
        .data-table tr {
            transition: background 0.3s ease;
        }
        
        .data-table tbody tr:hover {
            background: rgba(255, 107, 157, 0.05);
        }
        
        .data-table .actions {
            display: flex;
            gap: 8px;
        }
        
        /* Photo Grid */
        .photo-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
            gap: 16px;
            margin-top: 22px;
        }
        
        .photo-item {
            background: rgba(0, 0, 0, 0.25);
            border-radius: 16px;
            padding: 12px;
            transition: all 0.3s ease;
        }
        
        .photo-item:hover {
            transform: translateY(-4px);
            box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
        }
        
        .photo-item img {
            width: 100%;
            height: 130px;
            object-fit: cover;
            border-radius: 10px;
            cursor: pointer;
        }
        
        .photo-item .caption {
            margin-top: 10px;
            font-size: 0.85rem;
            text-align: center;
            color: var(--text-secondary);
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }
        
        .photo-item .actions {
            display: flex;
            gap: 6px;
            margin-top: 10px;
            justify-content: center;
        }
        
        .photo-item .actions button {
            padding: 6px 12px;
            font-size: 0.8rem;
        }
        
        /* File Upload */
        .file-upload {
            border: 2px dashed rgba(255, 255, 255, 0.15);
            padding: 35px 20px;
            text-align: center;
            border-radius: 16px;
            margin-top: 15px;
            cursor: pointer;
            transition: all 0.3s ease;
            background: rgba(0, 0, 0, 0.1);
        }
        
        .file-upload:hover {
            border-color: var(--primary);
            background: rgba(255, 107, 157, 0.05);
        }
        
        .file-upload input { display: none; }
        
        .file-upload i {
            font-size: 2.2rem;
            color: var(--primary);
            margin-bottom: 12px;
        }
        
        .file-upload p {
            color: var(--text-muted);
            font-size: 0.9rem;
        }
        
        .file-upload .hint {
            font-size: 0.8rem;
            color: var(--text-muted);
            margin-top: 8px;
            opacity: 0.7;
        }
        
        /* Radio Group */
        .radio-group {
            display: flex;
            gap: 20px;
            margin-bottom: 18px;
        }
        
        .radio-group label {
            display: flex;
            align-items: center;
            gap: 8px;
            cursor: pointer;
            color: var(--text-secondary);
            font-size: 0.95rem;
        }
        
        .radio-group input[type="radio"] {
            accent-color: var(--primary);
            width: 18px;
            height: 18px;
        }
        
        /* Music Preview */
        .music-preview {
            background: rgba(0, 0, 0, 0.2);
            padding: 18px;
            border-radius: 14px;
            margin-top: 18px;
        }
        
        .music-preview audio {
            width: 100%;
            margin-top: 12px;
            height: 40px;
        }
        
        .music-preview audio::-webkit-media-controls-panel {
            background: rgba(255, 107, 157, 0.1);
        }
        
        /* Modal */
        .modal {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.9);
            z-index: 1000;
            justify-content: center;
            align-items: center;
            opacity: 0;
            transition: opacity 0.3s ease;
        }
        
        .modal.active {
            display: flex;
            opacity: 1;
        }
        
        .modal-content {
            background: linear-gradient(135deg, var(--bg-mid), var(--bg-dark));
            border-radius: 24px;
            padding: 35px;
            width: 90%;
            max-width: 480px;
            border: 1px solid rgba(255, 107, 157, 0.2);
            box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5);
            position: relative;
        }
        
        .modal-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 25px;
        }
        
        .modal-header h3 {
            font-size: 1.2rem;
            display: flex;
            align-items: center;
            gap: 10px;
        }
        
        .modal-header h3 i { color: var(--primary); }
        
        .close-btn {
            background: transparent;
            border: none;
            color: var(--text-muted);
            font-size: 1.8rem;
            cursor: pointer;
            transition: all 0.3s ease;
            padding: 5px;
        }
        
        .close-btn:hover {
            color: var(--primary);
            transform: scale(1.1);
        }
        
        .modal-actions {
            display: flex;
            gap: 12px;
            margin-top: 25px;
            justify-content: flex-end;
        }

        .photo-edit-preview {
            margin-top: 10px;
            border-radius: 12px;
            overflow: hidden;
            max-height: 200px;
            background: var(--bg-secondary);
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .photo-edit-preview img {
            max-width: 100%;
            max-height: 200px;
            object-fit: contain;
        }

        .photo-edit-preview .error-msg {
            padding: 40px;
            color: var(--text-muted);
            font-size: 0.9rem;
        }

        /* Toast */
        .toast {
            position: fixed;
            bottom: 30px;
            left: 50%;
            transform: translateX(-50%) translateY(100px);
            padding: 14px 28px;
            border-radius: 14px;
            z-index: 2000;
            display: block;
            opacity: 0;
            transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
            font-weight: 500;
        }
        
        .toast.show {
            transform: translateX(-50%) translateY(0);
            opacity: 1;
        }
        
        .toast.success {
            background: linear-gradient(135deg, rgba(100, 255, 150, 0.15), rgba(50, 200, 100, 0.1));
            color: var(--success);
            border: 1px solid rgba(100, 255, 150, 0.3);
        }
        
        .toast.error {
            background: linear-gradient(135deg, rgba(255, 80, 80, 0.15), rgba(200, 50, 50, 0.1));
            color: var(--danger);
            border: 1px solid rgba(255, 80, 80, 0.3);
        }
        
        /* Loading */
        .loading {
            text-align: center;
            padding: 50px 20px;
            color: var(--text-muted);
        }
        
        .loading i {
            font-size: 2rem;
            color: var(--primary);
            animation: spin 1s linear infinite;
        }
        
        @keyframes spin {
            from { transform: rotate(0deg); }
            to { transform: rotate(360deg); }
        }
        
        /* Empty State */
        .empty-state {
            text-align: center;
            padding: 40px 20px;
            color: var(--text-muted);
        }
        
        .empty-state i {
            font-size: 2.5rem;
            margin-bottom: 12px;
            opacity: 0.4;
        }
        
        /* Responsive */
        @media (max-width: 768px) {
            .admin-header {
                flex-direction: column;
                gap: 15px;
                text-align: center;
            }
            
            .header-actions {
                width: 100%;
                justify-content: center;
            }
            
            .form-grid {
                grid-template-columns: 1fr;
            }
            
            .data-table {
                font-size: 0.8rem;
                display: block;
                overflow-x: auto;
                white-space: nowrap;
            }
            
            .data-table th, .data-table td {
                padding: 10px 8px;
                min-width: 80px;
            }
            
            .tabs {
                justify-content: flex-start;
                overflow-x: auto;
                flex-wrap: nowrap;
                padding: 8px;
                -webkit-overflow-scrolling: touch;
            }
            
            .tab {
                padding: 10px 16px;
                font-size: 0.85rem;
                white-space: nowrap;
                flex-shrink: 0;
            }
            
            .tab i {
                margin-right: 6px;
            }
            
            .photo-grid {
                grid-template-columns: repeat(2, 1fr);
                gap: 12px;
            }
            
            .photo-item img {
                height: 100px;
            }
            
            .modal-content {
                padding: 20px 15px;
                margin: 10px;
                width: calc(100% - 20px);
                max-height: 90vh;
                overflow-y: auto;
            }
            
            .modal-actions {
                flex-direction: column;
            }
            
            .modal-actions .btn {
                width: 100%;
                justify-content: center;
            }
        }
        
        @media (max-width: 480px) {
            .tab {
                padding: 8px 12px;
                font-size: 0.8rem;
            }

            .tab span {
                display: none;
            }

            .photo-grid {
                grid-template-columns: 1fr;
            }
        }

        .log-filters {
            display: flex;
            gap: 10px;
            margin-bottom: 20px;
            flex-wrap: wrap;
            align-items: center;
        }

        .log-container {
            background: var(--card-bg);
            border-radius: 16px;
            border: 1px solid var(--card-border);
            overflow: hidden;
        }

        .log-table {
            margin: 0;
        }

        .log-table th {
            background: rgba(255, 107, 157, 0.15);
            font-weight: 600;
            white-space: nowrap;
        }

        .log-table td {
            font-size: 0.9rem;
        }

        .log-pagination {
            display: flex;
            justify-content: center;
            align-items: center;
            padding: 15px;
            border-top: 1px solid var(--card-border);
        }

        .lockout-timer {
            position: fixed;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            background: rgba(0, 0, 0, 0.95);
            padding: 30px 50px;
            border-radius: 20px;
            text-align: center;
            z-index: 2000;
            border: 2px solid var(--danger);
            box-shadow: 0 0 40px rgba(255, 107, 107, 0.3);
        }

        .lockout-timer h3 {
            color: var(--danger);
            margin-bottom: 15px;
            font-size: 1.3rem;
        }

        .lockout-timer .countdown {
            font-size: 3rem;
            font-weight: bold;
            color: var(--primary);
            margin: 20px 0;
        }

        .lockout-timer p {
            color: var(--text-secondary);
        }
