:root {
    --admin-sidebar-w: 260px;
    --admin-gold: #D4AF37;
    --admin-gold-dim: rgba(212, 175, 55, 0.15);
    --admin-bg: #0a0a0a;
    --admin-card: #0f0f0f;
    --admin-border: rgba(212, 175, 55, 0.2);
    --admin-danger: #e05252;
    --admin-success: #4caf82;
    --admin-text: #ffffff;
    --admin-text-dim: #a0a0a0;
    --admin-text-muted: #717171;
    --admin-accent: #D4AF37;
    --admin-accent-gradient: linear-gradient(135deg, #d4af37 0%, #f9e2af 100%);
    --admin-transition: 0.25s ease;
}

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

body {
    background: #030303;
    font-family: 'Outfit', sans-serif;
    color: var(--admin-text);
    min-height: 100vh;
    overflow-x: hidden;
}

/* LOGIN */
.login-screen {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at center, #111 0%, #000 100%);
}

.login-box {
    background: var(--admin-card);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 16px;
    padding: 3rem 2.5rem;
    width: 100%;
    max-width: 420px;
    text-align: center;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.8);
    animation: fadeUpReveal 0.5s ease forwards;
}

.login-logo {
    font-family: 'Teko', sans-serif;
    font-size: 3rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: 3px;
    filter: drop-shadow(0 0 15px rgba(212, 175, 55, 0.5));
    margin-bottom: 0.25rem;
}

.login-logo-sub {
    display: block;
    font-size: 0.9rem;
    letter-spacing: 6px;
    color: var(--admin-gold);
    font-family: 'Outfit', sans-serif;
    font-weight: 300;
}

.login-subtitle {
    color: var(--admin-text-dim);
    font-size: 0.9rem;
    margin-bottom: 2.5rem;
}

.login-form-group {
    position: relative;
    margin-bottom: 1.5rem;
}

/* Polished Table */
.table-container {
    overflow-x: auto;
    border-radius: 16px;
}

table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 8px;
}

th {
    padding: 1rem 1.5rem;
    color: var(--admin-text-muted);
    font-weight: 600;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-align: left;
}

tr {
    transition: all 0.3s ease;
}

td {
    padding: 1.2rem 1.5rem;
    background: rgba(255, 255, 255, 0.02);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

td:first-child {
    border-left: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px 0 0 12px;
}

td:last-child {
    border-right: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 0 12px 12px 0;
}

tr:hover td {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(212, 175, 55, 0.3);
}

.login-form-group i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--admin-gold);
    font-size: 0.9rem;
}

.login-form-group input {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--admin-border);
    border-radius: 8px;
    padding: 0.9rem 1rem 0.9rem 2.8rem;
    color: #fff;
    font-family: 'Outfit', sans-serif;
    font-size: 1rem;
    transition: var(--admin-transition);
}

.login-form-group input:focus {
    outline: none;
    border-color: var(--admin-gold);
    background: rgba(212, 175, 55, 0.05);
}

.login-btn {
    width: 100%;
    background: var(--admin-gold);
    color: #000;
    border: none;
    padding: 1rem;
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: 2px;
    border-radius: 8px;
    cursor: pointer;
    font-family: 'Outfit', sans-serif;
    transition: var(--admin-transition);
    margin-bottom: 1rem;
}

.login-btn:hover {
    background: #f0e68c;
}

.login-error {
    color: var(--admin-danger);
    font-size: 0.85rem;
    min-height: 1.2rem;
    margin-bottom: 1rem;
}

.back-to-store {
    color: var(--admin-text-dim);
    font-size: 0.85rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: color var(--admin-transition);
}

.back-to-store:hover {
    color: var(--admin-gold);
}

/* DASHBOARD */
.admin-dashboard {
    display: flex;
    min-height: 100vh;
}

.hidden {
    display: none !important;
}

/* --- FILE UPLOAD BUTTON --- */
.custom-file-btn {
    background: rgba(212, 175, 55, 0.1);
    color: var(--admin-accent);
    border: 1px solid var(--admin-accent);
    padding: 0.8rem 1.5rem;
    border-radius: 12px;
    font-family: 'Teko', sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.custom-file-btn:hover {
    background: var(--admin-accent);
    color: #000;
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.3);
}

/* --- CONFIRMATION BOX --- */
.confirm-box {
    background: #111;
    border: 1px solid var(--admin-border);
    padding: 2.5rem;
    border-radius: 24px;
    width: 90%;
    max-width: 400px;
    text-align: center;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.9);
}

.confirm-box p {
    color: var(--admin-text-muted);
    margin: 1.5rem 0 2rem;
    font-size: 1rem;
}

.confirm-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.btn-danger {
    background: #ff4d4d;
    color: #fff;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 12px;
    font-family: 'Teko', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
}

.btn-danger:hover {
    background: #ff3333;
    transform: scale(1.05);
    box-shadow: 0 0 15px rgba(255, 77, 77, 0.3);
}

/* SIDEBAR */
.admin-sidebar {
    width: var(--admin-sidebar-w);
    min-height: 100vh;
    background: #080808;
    border-right: 1px solid var(--admin-border);
    display: flex;
    flex-direction: column;
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    z-index: 100;
}

.sidebar-logo {
    font-family: 'Teko', sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: 3px;
    padding: 1.8rem 1.5rem 1.5rem;
    border-bottom: 1px solid var(--admin-border);
    filter: drop-shadow(0 0 8px rgba(212, 175, 55, 0.4));
}

.sidebar-logo span {
    display: block;
    font-size: 0.6rem;
    letter-spacing: 5px;
    color: var(--admin-gold);
    font-family: 'Outfit', sans-serif;
    font-weight: 300;
    margin-top: -0.5rem;
}

.sidebar-nav {
    flex: 1;
    padding: 1.5rem 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.sidebar-btn {
    width: 100%;
    background: transparent;
    border: none;
    color: var(--admin-text-dim);
    text-align: left;
    padding: 0.85rem 1.2rem;
    border-radius: 10px;
    cursor: pointer;
    font-family: 'Outfit', sans-serif;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 0.85rem;
    transition: var(--admin-transition);
    font-weight: 400;
}

.sidebar-btn:hover {
    background: var(--admin-gold-dim);
    color: var(--admin-gold);
}

.sidebar-btn.active {
    background: var(--admin-gold-dim);
    color: var(--admin-gold);
    border-left: 3px solid var(--admin-gold);
}

.sidebar-btn i {
    width: 18px;
    text-align: center;
}

.sidebar-footer {
    padding: 1rem 0.75rem;
    border-top: 1px solid var(--admin-border);
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.sidebar-store-link,
.sidebar-logout-btn {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.2rem;
    border-radius: 8px;
    font-size: 0.9rem;
    cursor: pointer;
    text-decoration: none;
    transition: var(--admin-transition);
    font-family: 'Outfit', sans-serif;
}

.sidebar-store-link {
    color: var(--admin-text-dim);
    background: transparent;
    border: none;
}

.sidebar-store-link:hover {
    color: var(--admin-gold);
}

.sidebar-logout-btn {
    color: #e05252;
    background: transparent;
    border: none;
}

.sidebar-logout-btn:hover {
    background: rgba(224, 82, 82, 0.1);
}

/* MAIN */
.admin-main {
    margin-left: var(--admin-sidebar-w);
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background: var(--admin-bg);
}

.admin-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem 2rem;
    background: rgba(8, 8, 8, 0.8);
    border-bottom: 1px solid var(--admin-border);
    position: sticky;
    top: 0;
    z-index: 50;
    backdrop-filter: blur(10px);
    gap: 1rem;
    flex-wrap: wrap;
}

.admin-page-title {
    font-family: 'Teko', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: 1px;
    line-height: 1;
}

.admin-page-sub {
    color: var(--admin-text-dim);
    font-size: 0.85rem;
    margin-top: 0.2rem;
}

.topbar-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.admin-stats {
    color: var(--admin-text-dim);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.admin-stats i {
    color: var(--admin-gold);
}

/* TABS */
.admin-tab {
    display: none;
    padding: 2rem;
    animation: fadeUpReveal 0.3s ease forwards;
}

.admin-tab.active {
    display: block;
}

/* FILTERS */
.admin-filters {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
    align-items: center;
}

.admin-search {
    position: relative;
    flex: 1;
    min-width: 200px;
}

.admin-search i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--admin-text-dim);
}

.admin-search input {
    width: 100%;
    background: var(--admin-card);
    border: 1px solid var(--admin-border);
    border-radius: 8px;
    color: #fff;
    padding: 0.75rem 1rem 0.75rem 2.8rem;
    font-family: 'Outfit', sans-serif;
    font-size: 0.95rem;
    transition: var(--admin-transition);
}

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

/* Admin Selects */
.admin-select {
    width: 100%;
    padding: 0.8rem 1rem;
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 8px;
    color: #fff;
    font-family: 'Outfit', sans-serif;
    font-size: 0.95rem;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23d4af37' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1.2rem;
    transition: all 0.3s ease;
}

.admin-select:focus {
    outline: none;
    border-color: var(--admin-accent);
    box-shadow: 0 0 0 2px rgba(212, 175, 55, 0.2);
}

.admin-select option {
    background: #1a1a1a;
    /* Fondo oscuro para que no se vea blanco */
    color: #fff;
    /* Letras blancas */
    padding: 10px;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-item {
    text-align: center;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}

.stat-item:hover {
    background: rgba(212, 175, 55, 0.05);
    border-color: var(--admin-accent);
    transform: translateY(-5px);
}

.stat-item h3 {
    font-size: 0.9rem;
    color: var(--admin-text-muted);
    margin-bottom: 0.5rem;
}

.stat-item p {
    font-size: 2rem;
    font-weight: 800;
    font-family: 'Teko', sans-serif;
    color: #fff;
    margin: 0;
}

/* --- NAV TABS --- */
.admin-tabs {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--glass-border);
}

.tab-btn {
    background: transparent;
    border: none;
    color: var(--admin-text-muted);
    font-family: 'Teko', sans-serif;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0.5rem 1rem;
    transition: all 0.3s ease;
    border-radius: 8px;
    text-transform: uppercase;
}

.tab-btn.active {
    color: var(--admin-accent);
    background: rgba(212, 175, 55, 0.1);
}

.tab-btn:hover:not(.active) {
    color: #fff;
    background: rgba(255, 255, 255, 0.05);
}

/* --- ADMIN SEARCH & FILTERS --- */
.admin-filters {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    align-items: center;
}

.admin-search {
    flex: 1;
    position: relative;
}

.admin-search i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--admin-text-muted);
}

.admin-search input {
    padding-left: 2.8rem !important;
}

/* --- FORMS --- */
.admin-form-card {
    background: var(--admin-card-bg);
    border-radius: 20px;
    padding: 2.5rem;
    border: 1px solid var(--glass-border);
}

.form-section-title {
    margin-bottom: 2rem;
    color: var(--admin-accent);
    font-size: 1.8rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.admin-form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.form-group-admin.full-width {
    grid-column: 1 / -1;
}

.form-hint {
    font-size: 0.75rem;
    color: var(--admin-text-muted);
    margin: 0.5rem 0;
}

/* --- OVERLAY & MODALS --- */
#admin-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    z-index: 999;
}

.admin-modal {
    background: #111;
    border-radius: 24px;
    border: 1px solid var(--admin-border);
    padding: 2.5rem;
    z-index: 1000;
    width: 90%;
    max-width: 900px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8);
}

.admin-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.close-admin-modal {
    background: none;
    border: none;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
    transition: 0.3s;
}

.close-admin-modal:hover {
    color: var(--admin-accent);
}

/* --- TOASTS & ALERTS --- */
.toast-container {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 2000;
}

.toast {
    background: #111;
    color: #fff;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    border: 1px solid var(--admin-accent);
    margin-bottom: 1rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    gap: 1rem;
    animation: slideInRight 0.3s ease;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* --- RESPONSIVE --- */
@media (max-width: 768px) {
    .admin-container {
        padding: 1rem;
    }

    .admin-form-card {
        padding: 1.5rem;
    }
}

/* TABLE */
.admin-table-wrapper {
    overflow-x: auto;
    border-radius: 12px;
    border: 1px solid var(--admin-border);
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.admin-table thead {
    background: rgba(212, 175, 55, 0.1);
}

.admin-table th {
    text-align: left;
    padding: 1rem 1.25rem;
    color: var(--admin-gold);
    font-weight: 600;
    font-size: 0.8rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    border-bottom: 1px solid var(--admin-border);
    white-space: nowrap;
}

.admin-table tbody tr {
    border-bottom: 1px solid var(--admin-border);
    transition: background var(--admin-transition);
}

.admin-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.025);
}

.admin-table td {
    padding: 0.9rem 1.25rem;
    vertical-align: middle;
    color: var(--admin-text);
}

.table-img {
    width: 55px;
    height: 55px;
    object-fit: cover;
    border-radius: 8px;
    background: #1a1a1a;
    border: 1px solid var(--admin-border);
}

.img-placeholder {
    width: 55px;
    height: 55px;
    border-radius: 8px;
    background: #1a1a1a;
    border: 1px solid var(--admin-border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #333;
    font-size: 1.2rem;
}

.inline-price-input {
    background: transparent;
    border: 1px solid transparent;
    color: var(--admin-gold);
    font-size: 0.95rem;
    font-weight: 600;
    padding: 0.3rem 0.5rem;
    border-radius: 6px;
    width: 120px;
    font-family: 'Outfit', sans-serif;
    transition: var(--admin-transition);
}

.inline-price-input:focus {
    outline: none;
    border-color: var(--admin-gold);
    background: rgba(212, 175, 55, 0.08);
}

.cat-badge {
    display: inline-block;
    background: var(--admin-gold-dim);
    color: var(--admin-gold);
    padding: 0.2rem 0.75rem;
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}

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

.btn-icon {
    background: transparent;
    border: 1px solid var(--admin-border);
    color: var(--admin-text-dim);
    width: 36px;
    height: 36px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    transition: var(--admin-transition);
}

.btn-icon:hover {
    border-color: var(--admin-gold);
    color: var(--admin-gold);
}

.btn-icon.danger:hover {
    border-color: var(--admin-danger);
    color: var(--admin-danger);
}

/* BUTTONS */
/* Premium Buttons */
.btn-primary-admin {
    background: var(--admin-accent-gradient);
    color: #000;
    border: none;
    padding: 1rem 2rem;
    border-radius: 12px;
    font-family: 'Teko', sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
    width: 100%;
    display: block;
    text-transform: uppercase;
}

.btn-primary-admin:hover {
    transform: translateY(-1px);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--admin-border);
    color: var(--admin-text);
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    cursor: pointer;
    font-family: 'Outfit', sans-serif;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--admin-transition);
}

.btn-outline:hover {
    border-color: var(--admin-gold);
    color: var(--admin-gold);
}

.btn-save-all {
    background: linear-gradient(135deg, var(--admin-gold), #b8960b);
    color: #000;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    font-family: 'Outfit', sans-serif;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--admin-transition);
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}

.btn-save-all:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.4);
}

/* FORM CARD */
.admin-form-card {
    background: var(--admin-card);
    border: 1px solid var(--admin-border);
    border-radius: 16px;
    padding: 2rem;
}

.form-section-title {
    font-family: 'Teko', sans-serif;
    font-size: 1.6rem;
    color: #fff;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.form-section-title i {
    color: var(--admin-gold);
}

.form-hint {
    color: var(--admin-text-dim);
    font-size: 0.88rem;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.form-hint code {
    background: rgba(212, 175, 55, 0.1);
    color: var(--admin-gold);
    padding: 0.1rem 0.5rem;
    border-radius: 4px;
    font-size: 0.82rem;
}

.admin-form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.25rem;
    margin-bottom: 1.5rem;
}

.form-group-admin {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group-admin.full-width {
    grid-column: 1/-1;
}

.form-group-admin label {
    font-size: 0.82rem;
    color: var(--admin-text-dim);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    font-weight: 600;
}

.form-group-admin input,
.form-group-admin select,
.form-group-admin textarea {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--admin-border);
    border-radius: 8px;
    color: #fff;
    padding: 0.85rem 1rem;
    font-family: 'Outfit', sans-serif;
    font-size: 0.95rem;
    transition: var(--admin-transition);
    resize: vertical;
}

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

/* PREVIEW */
.new-product-preview {
    margin-bottom: 1.5rem;
}

.new-product-preview h4 {
    color: var(--admin-text-dim);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.75rem;
}

.preview-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--admin-border);
    border-radius: 10px;
    padding: 1rem;
}

.preview-card img {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border-radius: 8px;
    background: #1a1a1a;
}

.preview-info {
    flex: 1;
}

.preview-info p {
    color: #fff;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.preview-price {
    color: var(--admin-gold) !important;
    font-size: 1.1rem !important;
}

.preview-cat-badge {
    display: inline-block;
    background: var(--admin-gold-dim);
    color: var(--admin-gold);
    padding: 0.15rem 0.6rem;
    border-radius: 20px;
    font-size: 0.75rem;
}

/* CATEGORIES */
.cat-add-row {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.admin-input {
    flex: 1;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--admin-border);
    border-radius: 8px;
    color: #fff;
    padding: 0.85rem 1rem;
    font-family: 'Outfit', sans-serif;
    font-size: 0.95rem;
    min-width: 200px;
    transition: var(--admin-transition);
}

.admin-input:focus {
    outline: none;
    border-color: var(--admin-gold);
}

.cat-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.cat-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--admin-gold-dim);
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 8px;
    padding: 0.6rem 1rem;
    color: var(--admin-gold);
    font-size: 0.9rem;
    font-weight: 600;
    animation: fadeUpReveal 0.3s ease;
}

.cat-chip .delete-cat {
    background: none;
    border: none;
    color: rgba(212, 175, 55, 0.5);
    cursor: pointer;
    padding: 0;
    font-size: 0.85rem;
    transition: color var(--admin-transition);
    display: flex;
    align-items: center;
}

.cat-chip .delete-cat:hover {
    color: var(--admin-danger);
}

.cat-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.cat-stat-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--admin-border);
    border-radius: 10px;
    padding: 1.25rem;
    text-align: center;
    transition: var(--admin-transition);
}

.cat-stat-card:hover {
    border-color: var(--admin-gold);
}

.cat-stat-card .count {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--admin-gold);
    font-family: 'Teko', sans-serif;
    line-height: 1;
}

.cat-stat-card .cat-name {
    font-size: 0.85rem;
    color: var(--admin-text-dim);
    margin-top: 0.25rem;
}

/* IMPORT */
.import-info-box {
    display: flex;
    gap: 1rem;
    background: rgba(212, 175, 55, 0.07);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 10px;
    padding: 1.25rem;
    margin-bottom: 1.5rem;
    align-items: flex-start;
}

.import-info-box i {
    color: var(--admin-gold);
    font-size: 1.1rem;
    margin-top: 0.2rem;
}

.import-info-box strong {
    color: #fff;
    display: block;
    margin-bottom: 0.3rem;
}

.import-info-box p {
    color: var(--admin-text-dim);
    font-size: 0.88rem;
    margin: 0;
    line-height: 1.5;
}

.import-log {
    margin-top: 1.5rem;
    background: #000;
    border: 1px solid #222;
    border-radius: 8px;
    padding: 1rem;
    font-family: monospace;
    font-size: 0.85rem;
    max-height: 200px;
    overflow-y: auto;
    display: none;
}

.import-log.visible {
    display: block;
}

.log-line {
    color: #0f0;
    margin-bottom: 0.25rem;
}

.log-line.err {
    color: #f55;
}

.log-line.info {
    color: #8af;
}

.admin-textarea {
    width: 100%;
    background: #000;
    border: 1px solid #222;
    border-radius: 8px;
    color: #0f0;
    padding: 1rem;
    font-family: monospace;
    font-size: 0.85rem;
    resize: vertical;
}

.admin-textarea:focus {
    outline: none;
    border-color: var(--admin-gold);
}

/* EDIT MODAL */
.admin-modal {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    padding: 1rem;
}

.admin-modal-content {
    background: #0f0f0f;
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 16px;
    width: 100%;
    max-width: 700px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    z-index: 2001;
    animation: fadeUpReveal 0.3s ease forwards;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.9);
}

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

/* Custom File Upload */
.file-upload-wrapper {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 15px;
    background: rgba(212, 175, 55, 0.05);
    /* Sutil toque dorado de fondo */
    padding: 12px 20px;
    border-radius: 12px;
    border: 2px dashed var(--admin-accent);
    /* Borde dorado punteado */
    transition: all 0.3s ease;
    width: 100%;
    margin-bottom: 0.75rem;
    justify-content: center;
}

.file-upload-wrapper:hover {
    background: rgba(212, 175, 55, 0.1);
    border-style: solid;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.2);
}

.admin-file-input {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
    z-index: 2;
}

.custom-file-btn {
    background: var(--admin-accent);
    color: #000;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    border: none;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.upload-status {
    font-size: 0.9rem;
    font-weight: 600;
    color: #fff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.upload-status.success {
    color: #4ade80;
}

.upload-status.error {
    color: #f87171;
}

.upload-status.loading {
    color: var(--admin-accent);
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }

    100% {
        opacity: 1;
    }
}

.admin-modal-header h3 {
    font-family: 'Teko', sans-serif;
    font-size: 1.5rem;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.admin-modal-header h3 i {
    color: var(--admin-gold);
}

.admin-modal-close {
    background: transparent;
    border: 1px solid var(--admin-border);
    color: var(--admin-text-dim);
    width: 36px;
    height: 36px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    transition: var(--admin-transition);
}

/* GALLERY GRID */
.admin-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 10px;
    margin-top: 10px;
}

.gallery-item-admin {
    position: relative;
    width: 80px;
    height: 80px;
}

.gallery-item-admin img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid var(--admin-border);
}

.remove-img-btn {
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--admin-danger);
    color: #fff;
    border: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    font-size: 0.7rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
}

.admin-modal-footer {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    padding: 1.25rem 1.75rem;
    border-top: 1px solid var(--admin-border);
}

.edit-image-preview {
    margin-top: 1rem;
    text-align: center;
}

.edit-image-preview img {
    max-width: 100%;
    max-height: 200px;
    border-radius: 10px;
    object-fit: contain;
    background: #111;
    border: 1px solid var(--admin-border);
    display: none;
}

.admin-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    z-index: 1999;
    backdrop-filter: blur(4px);
}

/* TOAST */
.admin-toast-container {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 3000;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.admin-toast {
    background: #111;
    border: 1px solid var(--admin-border);
    border-radius: 10px;
    padding: 0.9rem 1.25rem;
    color: #fff;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 300px;
    animation: slideInRight 0.3s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.admin-toast.success {
    border-color: var(--admin-success);
}

.admin-toast.success i {
    color: var(--admin-success);
}

.admin-toast.error {
    border-color: var(--admin-danger);
}

.admin-toast.error i {
    color: var(--admin-danger);
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeUpReveal {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 768px) {
    .admin-sidebar {
        width: 100%;
        min-height: auto;
        position: relative;
        flex-direction: row;
        flex-wrap: wrap;
    }

    .admin-main {
        margin-left: 0;
    }

    .sidebar-nav {
        flex-direction: row;
        flex-wrap: wrap;
        padding: 0.5rem;
        gap: 0.25rem;
    }

    .sidebar-btn {
        padding: 0.6rem 0.8rem;
        font-size: 0.85rem;
    }

    .admin-topbar {
        flex-direction: column;
        align-items: flex-start;
    }

    .sidebar-footer {
        flex-direction: row;
    }
}