.admin-overlay {
        display: none; position: fixed; inset: 0; z-index: 9999;
        background: rgba(0,0,0,0.85); backdrop-filter: blur(8px);
        align-items: center; justify-content: center;
    }
    .admin-overlay.open { display: flex; }

    .admin-panel {
        background: #0a0e14; border: 1px solid rgba(214,40,40,0.3);
        border-radius: 20px; width: 100%; max-width: 900px;
        max-height: 90vh; overflow-y: auto; padding: 0;
        box-shadow: 0 40px 80px rgba(0,0,0,0.7);
    }
    .admin-header {
        background: linear-gradient(135deg, #d62828, #8b0000);
        padding: 1.5rem 2rem; border-radius: 20px 20px 0 0;
        display: flex; align-items: center; justify-content: space-between;
    }
    .admin-header h2 {
        font-family: 'Bebas Neue', sans-serif; font-size: 1.8rem;
        letter-spacing: 3px; color: #fff; margin: 0;
    }
    .admin-close-btn {
        background: rgba(0,0,0,0.3); border: none; color: #fff;
        width: 36px; height: 36px; border-radius: 50%; cursor: pointer;
        font-size: 1rem; display: flex; align-items: center; justify-content: center;
        transition: background 0.2s;
    }
    .admin-close-btn:hover { background: rgba(0,0,0,0.6); }

    .admin-body { padding: 2rem; }

    .admin-login { max-width: 360px; margin: 0 auto; text-align: center; }
    .admin-login p { color: #6a6f7a; margin-bottom: 1.5rem; font-size: 0.9rem; }
    .admin-input {
        width: 100%; padding: 0.85rem 1.2rem;
        background: rgba(0,0,0,0.5); border: 1px solid rgba(255,255,255,0.1);
        border-radius: 12px; color: #fff; font-family: 'Space Grotesk', sans-serif;
        font-size: 0.9rem; margin-bottom: 1rem; transition: border-color 0.2s;
    }
    .admin-input:focus { outline: none; border-color: #d62828; }
    .admin-btn {
        background: #d62828; color: #fff; border: none; border-radius: 12px;
        padding: 0.85rem 2rem; font-family: 'Space Grotesk', sans-serif;
        font-size: 0.85rem; font-weight: 700; letter-spacing: 2px;
        text-transform: uppercase; cursor: pointer; transition: all 0.2s; width: 100%;
    }
    .admin-btn:hover { background: #ff3131; transform: translateY(-1px); }
    .admin-btn-secondary {
        background: transparent; color: #d62828; border: 1px solid #d62828;
    }
    .admin-btn-secondary:hover { background: rgba(214,40,40,0.1); transform: none; }
    .admin-btn-danger {
        background: transparent; color: #ff4444; border: 1px solid #ff4444;
        padding: 0.4rem 0.9rem; font-size: 0.7rem; width: auto; border-radius: 8px;
    }
    .admin-btn-danger:hover { background: rgba(255,68,68,0.1); transform: none; }
    .admin-error { color: #ff4444; font-size: 0.8rem; margin-top: 0.5rem; }

    .admin-dashboard { display: none; }
    .admin-tabs { display: flex; gap: 0.5rem; margin-bottom: 2rem; border-bottom: 1px solid rgba(255,255,255,0.08); padding-bottom: 0; }
    .admin-tab {
        background: none; border: none; color: #6a6f7a;
        font-family: 'Space Grotesk', sans-serif; font-size: 0.8rem;
        font-weight: 600; letter-spacing: 1.5px; text-transform: uppercase;
        padding: 0.8rem 1.5rem; cursor: pointer; border-bottom: 2px solid transparent;
        margin-bottom: -1px; transition: all 0.2s;
    }
    .admin-tab.active { color: #d62828; border-bottom-color: #d62828; }

    .admin-section { display: none; }
    .admin-section.active { display: block; }

    .admin-products-list { display: flex; flex-direction: column; gap: 0.8rem; margin-bottom: 2rem; }
    .admin-product-row {
        background: rgba(0,0,0,0.3); border: 1px solid rgba(255,255,255,0.07);
        border-radius: 12px; padding: 1rem 1.2rem;
        display: flex; align-items: center; gap: 1rem;
    }
    .admin-product-row:hover { border-color: rgba(214,40,40,0.3); }
    .admin-product-icon { font-size: 1.2rem; color: #d62828; width: 32px; text-align: center; flex-shrink: 0; }
    .admin-product-info { flex: 1; min-width: 0; }
    .admin-product-name { font-weight: 600; font-size: 0.9rem; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .admin-product-meta { font-size: 0.75rem; color: #6a6f7a; margin-top: 0.2rem; }
    .admin-product-price { font-family: 'Bebas Neue', sans-serif; font-size: 1.2rem; color: #d62828; white-space: nowrap; }
    .admin-product-actions { display: flex; gap: 0.5rem; flex-shrink: 0; }

    .add-product-form { background: rgba(0,0,0,0.3); border: 1px solid rgba(255,255,255,0.08); border-radius: 16px; padding: 1.5rem; }
    .add-product-form h3 { font-family: 'Bebas Neue', sans-serif; font-size: 1.2rem; letter-spacing: 2px; color: #fff; margin-bottom: 1.2rem; }
    .form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
    .form-grid-full { grid-column: 1 / -1; }
    .form-label { font-size: 0.75rem; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; color: #6a6f7a; margin-bottom: 0.4rem; display: block; }
    .admin-select {
        width: 100%; padding: 0.7rem 1rem;
        background: rgba(0,0,0,0.5); border: 1px solid rgba(255,255,255,0.1);
        border-radius: 10px; color: #fff; font-family: 'Space Grotesk', sans-serif;
        font-size: 0.85rem; transition: border-color 0.2s; cursor: pointer;
    }
    .admin-select:focus { outline: none; border-color: #d62828; }
    .admin-select option { background: #0a0e14; }
    .checkbox-row { display: flex; align-items: center; gap: 0.8rem; }
    .checkbox-row input[type=checkbox] { accent-color: #d62828; width: 16px; height: 16px; cursor: pointer; }
    .admin-success-msg { color: #2ecc71; font-size: 0.8rem; margin-top: 0.5rem; display: none; }

    .img-upload-area {
        border: 2px dashed rgba(255,255,255,0.12);
        border-radius: 12px;
        padding: 1.2rem;
        text-align: center;
        cursor: pointer;
        transition: border-color 0.2s, background 0.2s;
        background: rgba(0,0,0,0.2);
        position: relative;
    }
    .img-upload-area:hover, .img-upload-area.dragover {
        border-color: #d62828;
        background: rgba(214,40,40,0.05);
    }
    .img-upload-area input[type="file"] {
        position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; height: 100%;
    }
    .img-upload-label {
        font-size: 0.8rem; color: #6a6f7a; pointer-events: none;
    }
    .img-upload-label span { color: #d62828; font-weight: 600; }
    .img-preview-grid {
        display: grid; grid-template-columns: repeat(5, 1fr); gap: 0.5rem; margin-top: 0.8rem;
    }
    .img-preview-item {
        position: relative; aspect-ratio: 1/1;
        border-radius: 8px; overflow: hidden;
        border: 1px solid rgba(255,255,255,0.08);
        background: #0d1117;
    }
    .img-preview-item img {
        width: 100%; height: 100%; object-fit: cover; display: block;
    }
    .img-preview-item .img-del-btn {
        position: absolute; top: 3px; right: 3px;
        background: rgba(214,40,40,0.85); border: none; color: #fff;
        width: 20px; height: 20px; border-radius: 50%; cursor: pointer;
        font-size: 0.6rem; display: flex; align-items: center; justify-content: center;
        line-height: 1;
    }
    .img-preview-item .img-del-btn:hover { background: #ff3131; }
    .img-count-hint { font-size: 0.72rem; color: #6a6f7a; margin-top: 0.4rem; }

    .password-section { max-width: 400px; }
    .password-section h3 { font-family: 'Bebas Neue', sans-serif; font-size: 1.2rem; letter-spacing: 2px; color: #fff; margin-bottom: 1.2rem; }

    @media (max-width: 600px) {
        .admin-panel { border-radius: 16px; margin: 1rem; max-height: 95vh; }
        .form-grid { grid-template-columns: 1fr; }
        .admin-body { padding: 1.2rem; }
    }
