/* ==========================================================================
   SORÈVA LUXURY JEWELLERY - ADMIN CONTROL SYSTEM
   ========================================================================== */

:root {
    --admin-bg: #14100f;
    --admin-surface: #1e1918;
    --admin-surface-light: #282220;
    --admin-border: rgba(197, 160, 89, 0.22);
    --admin-border-focus: #c5a059;
    --admin-text: #fbf8f5;
    --admin-text-muted: rgba(251, 248, 245, 0.65);
    
    --gold: #c5a059;
    --gold-light: #dfbd7c;
    --gold-dark: #967537;
    --gold-glow: rgba(197, 160, 89, 0.25);
    
    --wine: #8b2626;
    --success: #2e7d32;
    --danger: #c62828;
    
    --font-heading: 'Playfair Display', Georgia, serif;
    --font-body: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
    
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-full: 9999px;
    
    --transition-fast: 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-smooth: 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    --shadow-card: 0 10px 30px rgba(0, 0, 0, 0.35);
}

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

body {
    background-color: var(--admin-bg);
    color: var(--admin-text);
    font-family: var(--font-body);
    font-size: 0.92rem;
    line-height: 1.5;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

/* ==========================================
   LOGIN GATEWAY
   ========================================== */
.login-wrapper {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: radial-gradient(circle at center, #26201e 0%, #120e0d 100%);
    z-index: 10000;
}

.login-card {
    background: var(--admin-surface);
    border: 1px solid var(--admin-border);
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 440px;
    padding: 40px 36px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6), 0 0 30px var(--gold-glow);
    animation: fadeInScale 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes fadeInScale {
    from { opacity: 0; transform: scale(0.96) translateY(10px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

.login-header {
    text-align: center;
    margin-bottom: 28px;
}

.login-brand-icon {
    width: 58px;
    height: 58px;
    background: linear-gradient(135deg, rgba(197, 160, 89, 0.2), rgba(197, 160, 89, 0.05));
    border: 1px solid var(--gold);
    border-radius: var(--radius-full);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--gold);
    font-size: 1.5rem;
    margin-bottom: 16px;
}

.login-header h2 {
    font-family: var(--font-heading);
    font-size: 1.7rem;
    color: var(--gold-light);
    margin-bottom: 8px;
}

.login-header p {
    color: var(--admin-text-muted);
    font-size: 0.88rem;
}

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

.form-group label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    color: var(--gold);
    margin-bottom: 6px;
    text-transform: uppercase;
}

.input-with-icon {
    position: relative;
    display: flex;
    align-items: center;
}

.input-with-icon i:first-child {
    position: absolute;
    left: 14px;
    color: var(--admin-text-muted);
    font-size: 0.95rem;
    pointer-events: none;
}

.input-with-icon input {
    width: 100%;
    padding: 12px 42px 12px 40px;
    background: var(--admin-surface-light);
    border: 1px solid var(--admin-border);
    border-radius: var(--radius-sm);
    color: var(--admin-text);
    font-size: 0.92rem;
    outline: none;
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.input-with-icon input:focus {
    border-color: var(--admin-border-focus);
    box-shadow: 0 0 0 3px var(--gold-glow);
}

.btn-toggle-pw {
    position: absolute;
    right: 12px;
    background: none;
    border: none;
    color: var(--admin-text-muted);
    cursor: pointer;
    font-size: 1rem;
    padding: 4px;
}

.btn-toggle-pw:hover {
    color: var(--gold);
}

.login-error-box {
    display: none;
    background: rgba(198, 40, 40, 0.15);
    border: 1px solid var(--danger);
    color: #ff8585;
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    margin-bottom: 18px;
    text-align: center;
}

.login-hint {
    margin-top: 20px;
    padding: 10px 14px;
    background: rgba(197, 160, 89, 0.08);
    border: 1px dashed var(--admin-border);
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    color: var(--admin-text-muted);
    display: flex;
    align-items: center;
    gap: 8px;
}

.login-hint i {
    color: var(--gold);
}

.login-hint strong {
    color: var(--gold-light);
}

/* ==========================================
   BUTTONS
   ========================================== */
.btn-admin-primary {
    background: linear-gradient(135deg, var(--gold-light), var(--gold));
    color: #1e1918;
    border: none;
    padding: 10px 20px;
    border-radius: var(--radius-sm);
    font-weight: 700;
    font-size: 0.88rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.btn-admin-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px var(--gold-glow);
}

.btn-admin-outline {
    background: transparent;
    color: var(--gold);
    border: 1px solid var(--gold);
    padding: 8px 18px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.88rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all var(--transition-fast);
}

.btn-admin-outline:hover {
    background: rgba(197, 160, 89, 0.12);
    border-color: var(--gold-light);
    color: var(--gold-light);
}

.btn-danger-outline {
    background: transparent;
    color: #ff6b6b;
    border: 1px solid rgba(255, 107, 107, 0.4);
    padding: 8px 18px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.88rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all var(--transition-fast);
}

.btn-danger-outline:hover {
    background: rgba(198, 40, 40, 0.15);
    border-color: #ff6b6b;
}

.btn-block {
    width: 100%;
}

.btn-sm {
    padding: 6px 12px;
    font-size: 0.8rem;
}

/* ==========================================
   ADMIN LAYOUT
   ========================================== */
.admin-layout {
    display: flex;
    min-height: 100vh;
}

.admin-sidebar {
    width: 270px;
    background: var(--admin-surface);
    border-right: 1px solid var(--admin-border);
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    z-index: 1000;
    overflow-y: auto;
}

.sidebar-brand {
    padding: 24px 20px;
    border-bottom: 1px solid var(--admin-border);
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand-monogram {
    width: 38px;
    height: 38px;
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    color: #1e1918;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.25rem;
}

.brand-meta h3 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    letter-spacing: 2px;
    color: var(--admin-text);
    margin: 0;
}

.brand-meta span {
    font-size: 0.72rem;
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 600;
}

.sidebar-nav {
    flex: 1;
    padding: 16px 12px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.nav-item {
    background: transparent;
    border: none;
    color: var(--admin-text-muted);
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-fast);
    text-align: left;
    width: 100%;
}

.nav-item i {
    width: 20px;
    font-size: 1rem;
    color: var(--gold);
}

.nav-item:hover {
    background: rgba(197, 160, 89, 0.1);
    color: var(--admin-text);
}

.nav-item.active {
    background: linear-gradient(90deg, rgba(197, 160, 89, 0.18), rgba(197, 160, 89, 0.05));
    color: var(--gold-light);
    border-left: 3px solid var(--gold);
    font-weight: 600;
}

.badge-count {
    margin-left: auto;
    background: rgba(197, 160, 89, 0.15);
    color: var(--gold-light);
    border-radius: var(--radius-full);
    padding: 2px 8px;
    font-size: 0.72rem;
    font-weight: 700;
}

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

.btn-store-preview {
    background: var(--admin-surface-light);
    color: var(--gold-light);
    text-decoration: none;
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    border: 1px solid var(--admin-border);
    transition: all var(--transition-fast);
}

.btn-store-preview:hover {
    background: rgba(197, 160, 89, 0.15);
    border-color: var(--gold);
}

.btn-logout {
    background: transparent;
    color: var(--admin-text-muted);
    border: none;
    padding: 8px 14px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 0.82rem;
    cursor: pointer;
    transition: color var(--transition-fast);
}

.btn-logout:hover {
    color: #ff6b6b;
}

/* ==========================================
   ADMIN MAIN VIEWPORT
   ========================================== */
.admin-main {
    flex: 1;
    margin-left: 270px;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.admin-topbar {
    height: 70px;
    background: var(--admin-surface);
    border-bottom: 1px solid var(--admin-border);
    padding: 0 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 900;
}

.topbar-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.btn-mobile-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--admin-text);
    font-size: 1.25rem;
    cursor: pointer;
}

.current-section-title {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    color: var(--admin-text);
    margin: 0;
}

.topbar-right {
    display: flex;
    align-items: center;
    gap: 14px;
}

.save-status-pill {
    background: rgba(46, 125, 50, 0.15);
    border: 1px solid rgba(46, 125, 50, 0.4);
    color: #81c784;
    padding: 6px 14px;
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
}

.topbar-action-btn {
    background: var(--admin-surface-light);
    color: var(--admin-text);
    border: 1px solid var(--admin-border);
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    font-size: 0.84rem;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.topbar-action-btn:hover {
    border-color: var(--gold);
    color: var(--gold-light);
}

.topbar-action-btn.btn-save-all {
    background: linear-gradient(135deg, var(--gold-light), var(--gold));
    color: #1e1918;
    border: none;
}

.admin-content-body {
    flex: 1;
    padding: 32px;
    max-width: 1400px;
    width: 100%;
    margin: 0 auto;
}

/* ==========================================
   TAB PANELS
   ========================================== */
.tab-panel {
    display: none;
    animation: fadeIn 0.25s ease-in-out;
}

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

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(4px); }
    to { opacity: 1; transform: translateY(0); }
}

.panel-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    gap: 20px;
    flex-wrap: wrap;
}

.panel-header-row h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--admin-text);
    margin-bottom: 4px;
}

.panel-header-row p {
    color: var(--admin-text-muted);
    font-size: 0.88rem;
}

.header-tools {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

/* ==========================================
   OVERVIEW WELCOME CARD & METRICS
   ========================================== */
.overview-welcome-card {
    background: linear-gradient(135deg, #2a2220 0%, #1c1716 100%);
    border: 1px solid var(--admin-border);
    border-radius: var(--radius-lg);
    padding: 36px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 28px;
    box-shadow: var(--shadow-card);
}

.welcome-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 12px;
}

.welcome-copy h1 {
    font-family: var(--font-heading);
    font-size: 2.1rem;
    color: var(--gold-light);
    margin-bottom: 8px;
}

.welcome-copy p {
    color: var(--admin-text-muted);
    font-size: 0.95rem;
    max-width: 680px;
}

.welcome-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-width: 200px;
}

.metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-bottom: 28px;
}

.metric-card {
    background: var(--admin-surface);
    border: 1px solid var(--admin-border);
    border-radius: var(--radius-md);
    padding: 22px;
    display: flex;
    align-items: center;
    gap: 18px;
    cursor: pointer;
    transition: transform var(--transition-fast), border-color var(--transition-fast);
}

.metric-card:hover {
    transform: translateY(-3px);
    border-color: var(--gold);
}

.metric-icon {
    width: 52px;
    height: 52px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
}

.metric-icon.gold {
    background: rgba(197, 160, 89, 0.15);
    color: var(--gold);
}

.metric-icon.espresso {
    background: rgba(100, 80, 75, 0.25);
    color: var(--gold-light);
}

.metric-icon.wine {
    background: rgba(139, 38, 38, 0.2);
    color: #ff7b7b;
}

.metric-num {
    display: block;
    font-size: 1.85rem;
    font-weight: 700;
    color: var(--admin-text);
    line-height: 1.1;
}

.metric-label {
    font-size: 0.8rem;
    color: var(--admin-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.overview-dual-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 24px;
}

/* ==========================================
   ADMIN CARDS & TABLES
   ========================================== */
.admin-card {
    background: var(--admin-surface);
    border: 1px solid var(--admin-border);
    border-radius: var(--radius-md);
    padding: 24px;
    margin-bottom: 20px;
}

.card-header {
    border-bottom: 1px solid rgba(197, 160, 89, 0.12);
    padding-bottom: 14px;
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.card-header h3, .card-header h4 {
    font-family: var(--font-heading);
    color: var(--gold-light);
    font-size: 1.2rem;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.card-desc {
    color: var(--admin-text-muted);
    font-size: 0.88rem;
    margin-bottom: 18px;
}

.quick-action-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    gap: 16px;
}

.quick-action-row:last-child {
    border-bottom: none;
}

.action-info h4 {
    font-size: 0.92rem;
    color: var(--admin-text);
    margin-bottom: 2px;
}

.action-info p {
    font-size: 0.8rem;
    color: var(--admin-text-muted);
}

.action-input-group {
    display: flex;
    align-items: center;
    gap: 6px;
    background: var(--admin-surface-light);
    border: 1px solid var(--admin-border);
    border-radius: var(--radius-sm);
    padding: 4px 10px;
}

.action-input-group input {
    background: transparent;
    border: none;
    color: var(--admin-text);
    font-size: 0.9rem;
    font-weight: 600;
    outline: none;
}

.currency-prefix {
    color: var(--gold);
    font-weight: 700;
    font-size: 0.85rem;
}

.system-status-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
}

.status-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.88rem;
    padding: 8px 0;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.06);
}

.status-label {
    color: var(--admin-text-muted);
}

.status-code {
    font-family: monospace;
    color: var(--gold-light);
    background: rgba(197, 160, 89, 0.1);
    padding: 2px 8px;
    border-radius: 4px;
}

.status-badge {
    padding: 4px 10px;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.badge-green {
    background: rgba(46, 125, 50, 0.18);
    color: #81c784;
}

.badge-gold {
    background: rgba(197, 160, 89, 0.18);
    color: var(--gold-light);
}

.card-bottom-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

/* ==========================================
   ADMIN TABLES
   ========================================== */
.products-admin-table-wrap, .currencies-table-wrap {
    background: var(--admin-surface);
    border: 1px solid var(--admin-border);
    border-radius: var(--radius-md);
    overflow-x: auto;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.admin-table th {
    background: var(--admin-surface-light);
    padding: 14px 18px;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--gold);
    border-bottom: 1px solid var(--admin-border);
}

.admin-table td {
    padding: 14px 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 0.88rem;
    vertical-align: middle;
}

.admin-table tr:hover td {
    background: rgba(197, 160, 89, 0.04);
}

.table-thumb {
    width: 46px;
    height: 46px;
    border-radius: var(--radius-sm);
    object-fit: contain;
    background: #ffffff;
    border: 1px solid var(--admin-border);
}

.table-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
}

.btn-icon {
    width: 32px;
    height: 32px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--admin-border);
    background: var(--admin-surface-light);
    color: var(--admin-text-muted);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition-fast);
}

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

.btn-icon.btn-delete:hover {
    border-color: #ff6b6b;
    color: #ff6b6b;
}

/* ==========================================
   HERO SLIDES ADMIN GRID
   ========================================== */
.hero-slides-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 22px;
}

.hero-slide-admin-card {
    background: var(--admin-surface);
    border: 1px solid var(--admin-border);
    border-radius: var(--radius-md);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform var(--transition-fast), border-color var(--transition-fast);
}

.hero-slide-admin-card:hover {
    transform: translateY(-2px);
    border-color: var(--gold);
}

.slide-img-preview {
    position: relative;
    height: 180px;
    width: 100%;
    overflow: hidden;
}

.slide-img-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slide-tag-pill {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(28, 23, 22, 0.85);
    border: 1px solid var(--gold);
    color: var(--gold-light);
    padding: 4px 10px;
    border-radius: var(--radius-full);
    font-size: 0.72rem;
    font-weight: 700;
}

.slide-card-body {
    padding: 18px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.slide-card-body h4 {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    color: var(--admin-text);
    margin-bottom: 6px;
}

.slide-card-body p {
    color: var(--admin-text-muted);
    font-size: 0.84rem;
    line-height: 1.4;
    margin-bottom: 14px;
    flex: 1;
}

.slide-card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 0.82rem;
    color: var(--gold);
    font-weight: 600;
}

.slide-card-link {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 8px;
    padding: 6px 10px;
    background: rgba(197, 160, 89, 0.08);
    border: 1px dashed rgba(197, 160, 89, 0.3);
    border-radius: var(--radius-sm);
    font-size: 0.76rem;
    color: var(--admin-text-muted);
    word-break: break-all;
}

.slide-card-link a {
    color: var(--gold);
    text-decoration: underline;
    font-weight: 500;
}

.slide-card-link a:hover {
    color: var(--gold-light);
}

.slide-card-actions {
    display: flex;
    gap: 8px;
    margin-top: 14px;
}

/* ==========================================
   CATEGORIES & COUPONS GRIDS
   ========================================== */
.categories-admin-grid, .coupons-admin-grid, .testimonials-admin-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
}

.category-admin-card {
    background: var(--admin-surface);
    border: 1px solid var(--admin-border);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.category-admin-card img {
    width: 100%;
    height: 140px;
    object-fit: cover;
}

.category-card-body {
    padding: 16px;
}

.category-card-body h4 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    color: var(--admin-text);
    margin-bottom: 4px;
}

.category-card-body span {
    font-size: 0.8rem;
    color: var(--admin-text-muted);
}

.coupon-admin-card {
    background: var(--admin-surface);
    border: 1px dashed var(--gold);
    border-radius: var(--radius-md);
    padding: 20px;
    position: relative;
}

.coupon-code-pill {
    background: rgba(197, 160, 89, 0.18);
    color: var(--gold-light);
    font-family: monospace;
    font-size: 1.2rem;
    font-weight: 700;
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    display: inline-block;
    margin-bottom: 10px;
}

.announcements-admin-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.announcement-item-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    background: var(--admin-surface-light);
    border: 1px solid var(--admin-border);
    border-radius: var(--radius-sm);
}

.announcement-item-row input {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--admin-text);
    font-size: 0.9rem;
    outline: none;
}

.spotlight-editor-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.spotlight-features-admin {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 18px;
}

.instagram-admin-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 18px;
}

.insta-edit-card {
    background: var(--admin-surface);
    border: 1px solid var(--admin-border);
    border-radius: var(--radius-md);
    padding: 12px;
}

.insta-edit-card img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    margin-bottom: 10px;
}

.settings-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.backup-actions-row {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    margin-top: 14px;
}

/* ==========================================
   MODALS
   ========================================== */
.admin-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    z-index: 11000;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-smooth);
}

.admin-modal-backdrop.active {
    opacity: 1;
    visibility: visible;
}

.admin-modal {
    background: var(--admin-surface);
    border: 1px solid var(--admin-border);
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 680px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.7), 0 0 40px var(--gold-glow);
    animation: modalIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalIn {
    from { opacity: 0; transform: scale(0.95) translateY(16px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

.modal-top {
    padding: 20px 24px;
    border-bottom: 1px solid var(--admin-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.modal-top h3 {
    font-family: var(--font-heading);
    color: var(--gold-light);
    font-size: 1.35rem;
    margin: 0;
}

.modal-close {
    background: none;
    border: none;
    color: var(--admin-text-muted);
    font-size: 1.2rem;
    cursor: pointer;
    transition: color var(--transition-fast);
}

.modal-close:hover {
    color: #ff6b6b;
}

.modal-form {
    padding: 24px;
    overflow-y: auto;
    flex: 1;
}

.form-row-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.admin-input, .admin-select, .admin-textarea {
    width: 100%;
    padding: 10px 14px;
    background: var(--admin-surface-light);
    border: 1px solid var(--admin-border);
    border-radius: var(--radius-sm);
    color: var(--admin-text);
    font-family: var(--font-body);
    font-size: 0.9rem;
    outline: none;
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.admin-input:focus, .admin-select:focus, .admin-textarea:focus {
    border-color: var(--admin-border-focus);
    box-shadow: 0 0 0 3px var(--gold-glow);
}

.admin-select {
    cursor: pointer;
}

.img-preview-box {
    margin-top: 8px;
    width: 100%;
    min-height: 80px;
    height: auto;
    border-radius: var(--radius-sm);
    overflow: hidden;
    border: 1px solid var(--admin-border);
    background: #14100f;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
}

.img-preview-box img {
    max-width: 100%;
    max-height: 320px;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 4px;
    display: block;
}

.modal-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 24px;
    padding-top: 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--admin-text);
    font-size: 0.88rem;
    cursor: pointer;
}

.search-input-box {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--admin-surface);
    border: 1px solid var(--admin-border);
    border-radius: var(--radius-sm);
    padding: 8px 14px;
    width: 240px;
}

.search-input-box input {
    background: transparent;
    border: none;
    color: var(--admin-text);
    font-size: 0.88rem;
    outline: none;
    width: 100%;
}

.search-input-box i {
    color: var(--gold);
}

/* ==========================================
   TOAST NOTIFICATIONS
   ========================================== */
.toast-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 9990;
}

.toast {
    background: var(--admin-surface);
    border: 1px solid var(--gold);
    color: var(--admin-text);
    padding: 12px 20px;
    border-radius: var(--radius-md);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 15px var(--gold-glow);
    font-size: 0.88rem;
    display: flex;
    align-items: center;
    gap: 10px;
    animation: toastIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

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

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

/* ==========================================
   RESPONSIVE DESIGN
   ========================================== */
@media (max-width: 992px) {
    .admin-sidebar {
        transform: translateX(-100%);
        transition: transform var(--transition-smooth);
    }

    .admin-sidebar.open {
        transform: translateX(0);
    }

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

    .btn-mobile-toggle {
        display: block;
    }

    .overview-dual-grid, .spotlight-editor-grid, .settings-grid {
        grid-template-columns: 1fr;
    }

    .admin-content-body {
        padding: 20px;
    }
}

/* ==========================================
   DATABASE HUB & STUDIO STYLES
   ========================================== */
.db-studio-hero {
    background: linear-gradient(135deg, rgba(197, 160, 89, 0.12) 0%, rgba(30, 25, 24, 0.95) 100%);
    border: 1px solid var(--gold);
    border-radius: var(--radius-lg);
    padding: 32px;
    margin-bottom: 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4), 0 0 20px var(--gold-glow);
}

.db-studio-info {
    display: flex;
    align-items: center;
    gap: 20px;
}

.db-icon-box {
    width: 64px;
    height: 64px;
    background: rgba(197, 160, 89, 0.2);
    border: 1px solid var(--gold);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--gold);
}

.pulse-dot {
    display: inline-block;
    width: 9px;
    height: 9px;
    background: #4caf50;
    border-radius: 50%;
    margin-right: 6px;
    box-shadow: 0 0 8px #4caf50;
    animation: pulseGlow 1.8s infinite;
}

@keyframes pulseGlow {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.3); opacity: 0.6; }
}

.db-status-pill {
    display: inline-flex;
    align-items: center;
    background: rgba(76, 175, 80, 0.15);
    border: 1px solid #4caf50;
    color: #81c784;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.db-creds-banner {
    background: var(--admin-surface-light);
    border: 1px solid var(--admin-border);
    border-radius: var(--radius-md);
    padding: 14px 20px;
    display: flex;
    align-items: center;
    gap: 20px;
    font-size: 0.85rem;
    flex-wrap: wrap;
}

.db-creds-banner code {
    background: #120e0d;
    padding: 3px 8px;
    border-radius: 4px;
    color: var(--gold-light);
    font-family: monospace;
}

/* ==========================================
   INVENTORY MANAGEMENT STYLES
   ========================================== */
.stock-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 600;
}

.stock-pill.in-stock {
    background: rgba(46, 125, 50, 0.2);
    border: 1px solid rgba(46, 125, 50, 0.5);
    color: #81c784;
}

.stock-pill.low-stock {
    background: rgba(230, 81, 0, 0.2);
    border: 1px solid rgba(230, 81, 0, 0.5);
    color: #ffb74d;
}

.stock-pill.out-of-stock {
    background: rgba(198, 40, 40, 0.2);
    border: 1px solid rgba(198, 40, 40, 0.5);
    color: #ef9a9a;
}

.stock-stepper {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--admin-surface-light);
    border: 1px solid var(--admin-border);
    border-radius: var(--radius-sm);
    padding: 2px 6px;
}

.btn-stock-step {
    background: transparent;
    border: none;
    color: var(--admin-text);
    cursor: pointer;
    width: 24px;
    height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: background var(--transition-fast);
}

.btn-stock-step:hover {
    background: var(--gold);
    color: #120e0d;
}

.stock-num-display {
    min-width: 32px;
    text-align: center;
    font-weight: 700;
    font-size: 0.92rem;
    color: var(--admin-text);
}

/* ==========================================
   ORDER STATUS & BADGES
   ========================================== */
.order-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 12px;
    border-radius: 16px;
    font-size: 0.78rem;
    font-weight: 600;
}

.order-status-badge.processing {
    background: rgba(33, 150, 243, 0.15);
    border: 1px solid #2196f3;
    color: #64b5f6;
}

.order-status-badge.shipped {
    background: rgba(197, 160, 89, 0.2);
    border: 1px solid var(--gold);
    color: var(--gold-light);
}

.order-status-badge.delivered {
    background: rgba(76, 175, 80, 0.18);
    border: 1px solid #4caf50;
    color: #81c784;
}

.order-status-badge.cancelled {
    background: rgba(198, 40, 40, 0.18);
    border: 1px solid #c62828;
    color: #ef9a9a;
}

.order-status-badge.pending {
    background: rgba(255, 152, 0, 0.18);
    border: 1px solid #ff9800;
    color: #ffb74d;
}

/* ==========================================
   CUSTOMER CRM STYLES
   ========================================== */
.customer-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--gold-dark), var(--gold));
    color: #120e0d;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.85rem;
    flex-shrink: 0;
}

.customer-name-box {
    display: flex;
    align-items: center;
    gap: 12px;
}

.vip-pill {
    background: linear-gradient(135deg, rgba(197, 160, 89, 0.3), rgba(197, 160, 89, 0.1));
    border: 1px solid var(--gold);
    color: var(--gold-light);
    font-size: 0.65rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 10px;
    letter-spacing: 0.5px;
}

/* ==========================================
   IMAGE RESOLUTION INSPECTOR & SPEC GUIDELINES
   ========================================== */
.img-spec-guide {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.76rem;
    color: rgba(251, 248, 245, 0.68);
    background: rgba(197, 160, 89, 0.08);
    border: 1px dashed rgba(197, 160, 89, 0.35);
    border-radius: 6px;
    padding: 4px 10px;
    margin-top: 5px;
    margin-bottom: 4px;
    width: fit-content;
}

.img-spec-guide strong {
    color: var(--gold-light);
    font-weight: 600;
}

.img-preview-box {
    position: relative;
    cursor: pointer;
    transition: border-color 0.2s ease, transform 0.2s ease;
}

.img-preview-box:hover {
    border-color: var(--gold) !important;
}

.img-preview-box::after {
    content: "🔍 Click to Inspect Image Details & Specs";
    position: absolute;
    bottom: 6px;
    right: 6px;
    background: rgba(18, 14, 13, 0.88);
    border: 1px solid rgba(197, 160, 89, 0.45);
    color: var(--gold-light);
    font-size: 0.68rem;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 4px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
    z-index: 2;
}

.img-preview-box:hover::after {
    opacity: 1;
}

.img-live-meta-badge {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 6px 12px;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid var(--admin-border);
    border-radius: 6px;
    margin-top: 6px;
    font-size: 0.74rem;
    color: rgba(251, 248, 245, 0.8);
    cursor: pointer;
    transition: all 0.2s ease;
}

.img-live-meta-badge:hover {
    background: rgba(197, 160, 89, 0.12);
    border-color: var(--gold);
}

.img-live-meta-badge .status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
    flex-shrink: 0;
}

.img-live-meta-badge .status-dot.optimal {
    background: #4caf50;
    box-shadow: 0 0 6px rgba(76, 175, 80, 0.6);
}

.img-live-meta-badge .status-dot.caution,
.img-live-meta-badge .status-dot.warning {
    background: #ff9800;
    box-shadow: 0 0 6px rgba(255, 152, 0, 0.6);
}

.img-live-meta-badge .status-dot.error,
.img-live-meta-badge .status-dot.danger {
    background: #f44336;
    box-shadow: 0 0 6px rgba(244, 67, 54, 0.6);
}

/* Image Inspector Modal Layout */
.img-inspector-container {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 22px;
}

@media (max-width: 768px) {
    .img-inspector-container {
        grid-template-columns: 1fr;
    }
}

.img-inspector-view {
    background: repeating-conic-gradient(#1c1716 0% 25%, #2a2321 0% 50%) 50% / 16px 16px;
    border: 1px solid var(--admin-border);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 240px;
    max-height: 340px;
    overflow: hidden;
    padding: 12px;
}

.img-inspector-view img {
    max-width: 100%;
    max-height: 310px;
    object-fit: contain;
    border-radius: 4px;
}

.img-inspector-stats {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.img-stat-card {
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid var(--admin-border);
    border-radius: 8px;
    padding: 12px 16px;
}

.img-verdict-box {
    border-radius: 8px;
    padding: 12px 16px;
    font-size: 0.85rem;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    line-height: 1.5;
}

.img-verdict-box.optimal {
    background: rgba(76, 175, 80, 0.12);
    border: 1px solid #4caf50;
    color: #a5d6a7;
}

.img-verdict-box.caution,
.img-verdict-box.warning {
    background: rgba(255, 152, 0, 0.12);
    border: 1px solid #ff9800;
    color: #ffcc80;
}

.img-verdict-box.error,
.img-verdict-box.danger {
    background: rgba(244, 67, 54, 0.12);
    border: 1px solid #f44336;
    color: #ef9a9a;
}


/* ==========================================
   ADMIN BADGE CONTROLS & LUXURY SELECT STYLES
   ========================================== */
.admin-badge-cell {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.admin-badge-select {
    padding: 5px 10px;
    font-size: 0.8rem;
    font-weight: 600;
    border-radius: var(--radius-sm);
    border: 1px solid var(--admin-border);
    background: var(--admin-surface);
    color: var(--admin-text);
    cursor: pointer;
    transition: all var(--transition-fast);
    outline: none;
    min-width: 155px;
}

.admin-badge-select:hover, .admin-badge-select:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 2px var(--gold-glow);
}

.admin-badge-select[data-badge="Sorèva Exclusive"],
.admin-badge-select[data-badge="Soreva Exclusive"] {
    background: rgba(197, 160, 89, 0.16) !important;
    border-color: #c5a059 !important;
    color: #e5c158 !important;
}

.admin-badge-select[data-badge="Trending"] {
    background: rgba(255, 109, 0, 0.16) !important;
    border-color: #ff6d00 !important;
    color: #ff9e40 !important;
}

.admin-badge-select[data-badge="New Launch"] {
    background: rgba(25, 135, 84, 0.18) !important;
    border-color: #198754 !important;
    color: #75b798 !important;
}

.admin-badge-select[data-badge="Bestseller"] {
    background: rgba(229, 193, 88, 0.14) !important;
    border-color: #e5c158 !important;
    color: #f5dc9a !important;
}

.admin-badge-select[data-badge=""] {
    background: var(--admin-surface-light) !important;
    border-color: var(--admin-border) !important;
    color: var(--admin-text-muted) !important;
}

.admin-bulk-badge-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 18px;
    background: rgba(197, 160, 89, 0.12);
    border: 1px solid var(--gold);
    border-radius: var(--radius-sm);
    margin-bottom: 14px;
}

.btn-bulk-disable {
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.5);
    color: #f87171;
    padding: 6px 14px;
    border-radius: var(--radius-sm);
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all var(--transition-fast);
}

.btn-bulk-disable:hover:not(:disabled) {
    background: rgba(239, 68, 68, 0.28);
    border-color: #ef4444;
    color: #ffffff;
    box-shadow: 0 0 10px rgba(239, 68, 68, 0.35);
}

.btn-bulk-enable {
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid rgba(16, 185, 129, 0.5);
    color: #34d399;
    padding: 6px 14px;
    border-radius: var(--radius-sm);
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all var(--transition-fast);
}

.btn-bulk-enable:hover:not(:disabled) {
    background: rgba(16, 185, 129, 0.28);
    border-color: #10b981;
    color: #ffffff;
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.35);
}

.admin-table-pagination {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 18px;
    background: var(--admin-surface);
    border: 1px solid var(--admin-border);
    border-top: none;
    border-radius: 0 0 var(--radius-sm) var(--radius-sm);
    font-size: 0.85rem;
    color: var(--admin-text-muted);
}

.admin-page-btn {
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--admin-border);
    background: var(--admin-surface-light);
    color: var(--admin-text);
    cursor: pointer;
    font-size: 0.82rem;
    transition: all var(--transition-fast);
}

.admin-page-btn:hover:not(:disabled) {
    border-color: var(--gold);
    color: var(--gold-light);
}

.admin-page-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

/* Instagram Video Reels Admin Styles */
.insta-config-card {
    background: var(--admin-surface);
    border: 1px solid var(--admin-border);
    border-radius: var(--radius-md);
    padding: 22px;
    margin-bottom: 24px;
}

.insta-status-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    font-weight: 600;
}

.insta-status-pill.connected {
    background: rgba(46, 125, 50, 0.2);
    color: #81c784;
    border: 1px solid #4caf50;
}

.insta-status-pill.ready {
    background: rgba(197, 160, 89, 0.2);
    color: var(--gold-light);
    border: 1px solid var(--gold);
}

.insta-edit-card video {
    width: 100%;
    aspect-ratio: 9 / 16;
    max-height: 220px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    margin-bottom: 10px;
    background: #000000;
}


/* --- NOTIFICATION TEMPLATE VARIABLE CHIPS & TOGGLE SWITCHES --- */
.switch-toggle {
    position: relative;
    display: inline-block;
    width: 48px;
    height: 26px;
}
.switch-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}
.switch-toggle .slider {
    position: absolute;
    cursor: pointer;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: rgba(255, 255, 255, 0.15);
    transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 26px;
    border: 1px solid var(--admin-border, rgba(255,255,255,0.1));
}
.switch-toggle .slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 50%;
}
.switch-toggle input:checked + .slider {
    background-color: #25D366;
    border-color: #25D366;
}
.switch-toggle input:checked + .slider:before {
    transform: translateX(22px);
}

.btn-variable-chip {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(197, 160, 89, 0.25);
    color: var(--admin-text, #e2d9d0);
    padding: 5px 10px;
    border-radius: 6px;
    font-size: 0.78rem;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.btn-variable-chip code {
    color: var(--gold-light, #e8d3a7);
    font-family: monospace;
    font-weight: 600;
}
.btn-variable-chip:hover {
    background: rgba(197, 160, 89, 0.15);
    border-color: var(--gold, #c5a059);
    transform: translateY(-1px);
}


/* ==========================================
   WEBSITE IMAGES & SECTION MEDIA HUB
   ========================================== */
.media-filter-bar {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 22px;
    background: rgba(255, 255, 255, 0.02);
    padding: 8px 12px;
    border-radius: var(--radius-md);
    border: 1px solid var(--admin-border);
}

.media-filter-btn {
    background: transparent;
    border: 1px solid transparent;
    color: var(--admin-text-muted);
    padding: 7px 16px;
    border-radius: 20px;
    font-size: 0.82rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.media-filter-btn:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.06);
}

.media-filter-btn.active {
    background: var(--gold);
    color: #120e0d;
    font-weight: 700;
    box-shadow: 0 2px 10px rgba(197, 160, 89, 0.35);
}

.media-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
}

.media-card {
    background: var(--admin-surface);
    border: 1px solid var(--admin-border);
    border-radius: var(--radius-md);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
    position: relative;
}

.media-card:hover {
    border-color: rgba(197, 160, 89, 0.45);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    transform: translateY(-2px);
}

.media-card-preview-wrap {
    position: relative;
    width: 100%;
    height: 180px;
    background: #0d0a09;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    cursor: pointer;
}

.media-card-preview-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.media-card-preview-wrap:hover img {
    transform: scale(1.05);
}

.media-card-preview-wrap.contain-mode img {
    object-fit: contain;
    padding: 16px;
}

.media-badge-tag {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(18, 14, 13, 0.88);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(197, 160, 89, 0.4);
    color: var(--gold-light);
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 3px 8px;
    border-radius: 4px;
    z-index: 2;
}

.media-spec-badge {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(6px);
    color: #ddd;
    font-size: 0.7rem;
    padding: 2px 7px;
    border-radius: 4px;
    font-family: monospace;
    z-index: 2;
}

.media-card-body {
    padding: 16px;
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 10px;
}

.media-card-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--admin-text);
    margin: 0;
}

.media-card-desc {
    font-size: 0.78rem;
    color: var(--admin-text-muted);
    margin: 0;
    line-height: 1.4;
}

.media-actions-row {
    display: flex;
    gap: 8px;
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px solid var(--admin-border);
}

.image-studio-dropzone {
    border: 2px dashed rgba(197, 160, 89, 0.4);
    background: rgba(255, 255, 255, 0.02);
    border-radius: var(--radius-md);
    padding: 28px 18px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.image-studio-dropzone:hover, .image-studio-dropzone.dragover {
    background: rgba(197, 160, 89, 0.08);
    border-color: var(--gold);
}

.image-studio-dropzone i {
    font-size: 2rem;
    color: var(--gold);
    margin-bottom: 8px;
    display: block;
}

@media (max-width: 768px) {
    .admin-header {
        padding: 12px 16px;
    }
    .admin-title-area h1 {
        font-size: 1.25rem;
    }
    input, select, textarea {
        font-size: 16px !important;
    }
    .modal-card {
        width: 95vw !important;
        max-width: 95vw !important;
        margin: 10px;
    }
}
