/* =========================================================
   JIGSAW MASTER — BACK OFFICE ADMIN STYLESHEET
   ========================================================= */

:root {
    --bg-primary: #070B14;
    --bg-secondary: #0F172A;
    --bg-panel: rgba(15, 23, 42, 0.75);
    --bg-card: rgba(30, 41, 59, 0.6);
    --bg-hover: rgba(51, 65, 85, 0.5);
    
    --border-color: rgba(255, 255, 255, 0.08);
    --border-highlight: rgba(99, 102, 241, 0.3);

    --text-primary: #F8FAFC;
    --text-secondary: #94A3B8;
    --text-muted: #64748B;

    --accent-indigo: #6366F1;
    --accent-indigo-hover: #4F46E5;
    --accent-cyan: #06B6D4;
    --accent-blue: #3B82F6;
    --accent-emerald: #10B981;
    --accent-amber: #F59E0B;
    --accent-rose: #F43F5E;
    --accent-pink: #EC4899;

    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-full: 9999px;

    --shadow-subtle: 0 4px 20px -2px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 25px rgba(99, 102, 241, 0.25);
    --transition-fast: 0.15s ease;
    --transition-normal: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    background-color: var(--bg-primary);
    background-image: 
        radial-gradient(at 10% 15%, rgba(99, 102, 241, 0.12) 0px, transparent 50%),
        radial-gradient(at 90% 85%, rgba(6, 182, 212, 0.08) 0px, transparent 50%);
    background-attachment: fixed;
    color: var(--text-primary);
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 14px;
    line-height: 1.5;
    min-height: 100vh;
    overflow-x: hidden;
}

h1, h2, h3, h4, .brand-title, .kpi-val {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--text-primary);
}

/* Glass panel */
.glass-panel {
    background: var(--bg-panel);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-subtle);
}

/* ---------------------------------------------------------
   LOGIN WRAPPER
--------------------------------------------------------- */
.login-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.login-box {
    width: 100%;
    max-width: 420px;
    padding: 36px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-glow);
}

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

.login-icon {
    font-size: 48px;
    margin-bottom: 12px;
    display: inline-block;
    filter: drop-shadow(0 0 16px rgba(99, 102, 241, 0.6));
}

.login-header h2 {
    font-size: 24px;
    margin-bottom: 6px;
}

.login-header p {
    color: var(--text-secondary);
    font-size: 13px;
}

/* ---------------------------------------------------------
   APP LAYOUT
--------------------------------------------------------- */
.app-layout {
    display: flex;
    min-height: 100vh;
}

/* Sidebar */
.sidebar {
    width: 260px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    border-right: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    height: 100vh;
    z-index: 50;
}

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

.brand-icon {
    font-size: 28px;
    filter: drop-shadow(0 0 10px rgba(99, 102, 241, 0.5));
}

.brand-info {
    display: flex;
    flex-direction: column;
}

.brand-title {
    font-size: 18px;
    line-height: 1.2;
}

.brand-sub {
    font-size: 11px;
    color: var(--accent-cyan);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 700;
}

.nav-menu {
    flex: 1;
    padding: 20px 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    overflow-y: auto;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 600;
    font-size: 13.5px;
    transition: var(--transition-fast);
}

.nav-item:hover {
    color: var(--text-primary);
    background: var(--bg-hover);
}

.nav-item.active {
    color: #FFF;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.25), rgba(6, 182, 212, 0.2));
    border: 1px solid var(--border-highlight);
    box-shadow: 0 0 15px rgba(99, 102, 241, 0.2);
}

.nav-icon {
    font-size: 18px;
    width: 24px;
    text-align: center;
}

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

.admin-profile {
    display: flex;
    align-items: center;
    gap: 10px;
}

.admin-avatar {
    width: 38px;
    height: 38px;
    border-radius: var(--radius-full);
    background: rgba(99, 102, 241, 0.2);
    border: 1px solid rgba(99, 102, 241, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.admin-meta {
    display: flex;
    flex-direction: column;
}

.admin-name {
    font-weight: 700;
    font-size: 13px;
    color: var(--text-primary);
}

.admin-role {
    font-size: 11px;
    color: var(--accent-amber);
    font-weight: 600;
}

/* ---------------------------------------------------------
   MAIN CONTENT
--------------------------------------------------------- */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.top-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 32px;
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 40;
}

.header-left h1 {
    font-size: 22px;
    margin-bottom: 2px;
}

.page-subtitle {
    color: var(--text-muted);
    font-size: 12.5px;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

.content-body {
    padding: 28px 32px;
    flex: 1;
}

.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
    animation: fadeIn 0.2s ease-out;
}

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

/* ---------------------------------------------------------
   KPI CARDS
--------------------------------------------------------- */
.kpi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
}

.kpi-card {
    padding: 18px 20px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    gap: 16px;
    transition: var(--transition-fast);
}

.kpi-card:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.15);
}

.kpi-icon {
    width: 46px;
    height: 46px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    flex-shrink: 0;
}

.icon-blue { background: rgba(59, 130, 246, 0.15); border: 1px solid rgba(59, 130, 246, 0.3); }
.icon-purple { background: rgba(168, 85, 247, 0.15); border: 1px solid rgba(168, 85, 247, 0.3); }
.icon-gold { background: rgba(245, 158, 11, 0.15); border: 1px solid rgba(245, 158, 11, 0.3); }
.icon-cyan { background: rgba(6, 182, 212, 0.15); border: 1px solid rgba(6, 182, 212, 0.3); }
.icon-green { background: rgba(16, 185, 129, 0.15); border: 1px solid rgba(16, 185, 129, 0.3); }
.icon-pink { background: rgba(236, 72, 153, 0.15); border: 1px solid rgba(236, 72, 153, 0.3); }

.kpi-data {
    display: flex;
    flex-direction: column;
}

.kpi-label {
    font-size: 11.5px;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.kpi-val {
    font-size: 24px;
    line-height: 1.1;
    margin-top: 2px;
}

/* ---------------------------------------------------------
   PANELS & TABLES
--------------------------------------------------------- */
.panel {
    border-radius: var(--radius-md);
    padding: 24px;
}

.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.panel-header h3 {
    font-size: 17px;
}

.subtext {
    color: var(--text-muted);
    font-size: 12px;
}

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

@media (max-width: 1100px) {
    .grid-2-col { grid-template-columns: 1fr; }
}

.table-responsive {
    overflow-x: auto;
}

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

.data-table th {
    padding: 12px 14px;
    font-size: 11.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-muted);
    border-bottom: 1px solid var(--border-color);
}

.data-table td {
    padding: 14px 14px;
    font-size: 13px;
    color: var(--text-secondary);
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    vertical-align: middle;
}

.data-table tr:hover td {
    background: rgba(255, 255, 255, 0.02);
    color: var(--text-primary);
}

.user-cell {
    display: flex;
    align-items: center;
    gap: 10px;
}

.user-avatar-sm {
    width: 32px;
    height: 32px;
    border-radius: var(--radius-full);
    object-fit: cover;
    background: rgba(255, 255, 255, 0.08);
}

.user-name-cell {
    font-weight: 600;
    color: var(--text-primary);
}

/* ---------------------------------------------------------
   BADGES & PILLS
--------------------------------------------------------- */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: var(--radius-full);
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.badge-info { background: rgba(59, 130, 246, 0.2); color: #60A5FA; border: 1px solid rgba(59, 130, 246, 0.3); }
.badge-purple { background: rgba(168, 85, 247, 0.2); color: #C084FC; border: 1px solid rgba(168, 85, 247, 0.3); }
.badge-cyan { background: rgba(6, 182, 212, 0.2); color: #22D3EE; border: 1px solid rgba(6, 182, 212, 0.3); }
.badge-success { background: rgba(16, 185, 129, 0.2); color: #34D399; border: 1px solid rgba(16, 185, 129, 0.3); }
.badge-warning { background: rgba(245, 158, 11, 0.2); color: #FBBF24; border: 1px solid rgba(245, 158, 11, 0.3); }
.badge-danger { background: rgba(244, 63, 94, 0.2); color: #FB7185; border: 1px solid rgba(244, 63, 94, 0.3); }

.filter-pills {
    display: flex;
    gap: 6px;
}

.pill {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    padding: 6px 14px;
    border-radius: var(--radius-full);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-fast);
}

.pill:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.08);
}

.pill.active {
    background: var(--accent-indigo);
    border-color: var(--accent-indigo);
    color: #FFF;
}

/* ---------------------------------------------------------
   BUTTONS & FORMS
--------------------------------------------------------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 9px 18px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    border: 1px solid transparent;
    transition: var(--transition-fast);
    text-decoration: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-indigo), var(--accent-indigo-hover));
    color: #FFF;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(99, 102, 241, 0.45);
}

.btn-outline {
    background: rgba(255, 255, 255, 0.04);
    border-color: var(--border-color);
    color: var(--text-secondary);
}

.btn-outline:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
}

.btn-danger {
    background: rgba(244, 63, 94, 0.2);
    border-color: rgba(244, 63, 94, 0.4);
    color: #FB7185;
}

.btn-danger:hover {
    background: #F43F5E;
    color: #FFF;
}

.btn-outline-danger {
    background: transparent;
    border-color: rgba(244, 63, 94, 0.3);
    color: #FB7185;
}

.btn-outline-danger:hover {
    background: rgba(244, 63, 94, 0.15);
}

.btn-sm { padding: 6px 12px; font-size: 12px; }
.btn-xs { padding: 4px 8px; font-size: 11.5px; border-radius: 6px; }
.btn-block { width: 100%; }

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

.form-group label {
    display: block;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 6px;
}

input[type="text"],
input[type="password"],
input[type="email"],
input[type="url"],
input[type="number"],
.form-select,
.form-file {
    width: 100%;
    padding: 10px 14px;
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-family: inherit;
    font-size: 13.5px;
    outline: none;
    transition: var(--transition-fast);
}

input:focus, .form-select:focus {
    border-color: var(--accent-indigo);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}

.search-bar input {
    width: 320px;
    max-width: 100%;
}

.alert-box {
    padding: 12px 14px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    margin-bottom: 16px;
}

.alert-error {
    background: rgba(244, 63, 94, 0.15);
    border: 1px solid rgba(244, 63, 94, 0.3);
    color: #FB7185;
}

/* ---------------------------------------------------------
   GRIDS (CATEGORIES & IMAGES & UPLOADS)
--------------------------------------------------------- */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 16px;
}

.cat-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 18px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: var(--transition-fast);
}

.cat-card:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.15);
}

.cat-card-top {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.cat-emoji {
    font-size: 32px;
    line-height: 1;
}

.cat-details {
    display: flex;
    flex-direction: column;
}

.cat-title {
    font-size: 16px;
    font-weight: 700;
}

.cat-slug {
    font-size: 11px;
    font-family: 'Fira Code', monospace;
    color: var(--text-muted);
}

.cat-card-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 12px;
}

/* Category Images Grid */
.category-images-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    max-height: 720px;
    overflow-y: auto;
    padding-right: 6px;
}

@media (max-width: 1200px) {
    .category-images-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .category-images-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.img-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: var(--transition-fast);
}

.img-card:hover {
    transform: translateY(-3px);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 24px -4px rgba(0, 0, 0, 0.6);
}

.img-preview-box {
    width: 100%;
    height: 160px;
    position: relative;
    background: #000;
    cursor: pointer;
    overflow: hidden;
}

.img-preview-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-normal);
}

.img-preview-box:hover img {
    transform: scale(1.05);
}

.img-preview-box::after {
    content: '✏️ Edit / Replace';
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.65);
    backdrop-filter: blur(2px);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    color: #FFF;
    opacity: 0;
    transition: opacity var(--transition-fast);
}

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

.img-info-box {
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}

.img-title {
    font-weight: 600;
    font-size: 13px;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.img-card-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 8px;
    margin-top: auto;
}

/* User Uploads Grid */
.uploads-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.upload-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.upload-img-box {
    width: 100%;
    height: 180px;
    background: #000;
    position: relative;
}

.upload-img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.upload-badge-float {
    position: absolute;
    top: 10px;
    right: 10px;
}

.upload-info-box {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
}

.upload-title {
    font-size: 15px;
    font-weight: 700;
}

.upload-reason-box {
    background: rgba(0, 0, 0, 0.25);
    padding: 8px 10px;
    border-radius: 6px;
    font-size: 11.5px;
    color: var(--text-secondary);
    border-left: 3px solid var(--accent-indigo);
}

.upload-actions {
    display: flex;
    gap: 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 12px;
    margin-top: auto;
}

/* Drawer grid */
.drawer-images-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 12px;
    max-height: 360px;
    overflow-y: auto;
}

.user-stats-bar {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    padding: 16px;
    border-radius: var(--radius-md);
    text-align: center;
}

.user-stat-val {
    display: block;
    font-size: 20px;
    font-weight: 800;
    font-family: 'Outfit', sans-serif;
    color: var(--text-primary);
}

.user-stat-lbl {
    font-size: 11px;
    color: var(--text-muted);
    text-transform: uppercase;
    font-weight: 600;
}

/* ---------------------------------------------------------
   MODALS & TOASTS
--------------------------------------------------------- */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(8px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 100;
    padding: 20px;
}

.modal-overlay.active {
    display: flex;
    animation: modalFadeIn 0.2s ease-out;
}

@keyframes modalFadeIn {
    from { opacity: 0; transform: scale(0.96); }
    to { opacity: 1; transform: scale(1); }
}

.modal-box {
    width: 100%;
    max-width: 480px;
    border-radius: var(--radius-lg);
    display: flex;
    flex-direction: column;
    max-height: 90vh;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.8);
}

.modal-md { max-width: 580px; }
.modal-lg { max-width: 780px; }

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

.modal-close {
    background: transparent;
    border: none;
    font-size: 24px;
    color: var(--text-muted);
    cursor: pointer;
    line-height: 1;
}

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

.modal-body {
    padding: 24px;
    overflow-y: auto;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 16px 24px;
    border-top: 1px solid var(--border-color);
}

.tabs-sub {
    display: flex;
    gap: 4px;
    background: rgba(0, 0, 0, 0.3);
    padding: 4px;
    border-radius: var(--radius-sm);
}

.subtab {
    flex: 1;
    padding: 6px 12px;
    background: transparent;
    border: none;
    border-radius: 6px;
    color: var(--text-muted);
    font-weight: 600;
    font-size: 12px;
    cursor: pointer;
}

.subtab.active {
    background: var(--bg-card);
    color: #FFF;
}

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

.toast {
    padding: 12px 18px;
    border-radius: var(--radius-sm);
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
    color: #FFF;
    font-size: 13px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
    animation: toastSlideIn 0.25s ease-out;
}

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

.toast-success { border-color: rgba(16, 185, 129, 0.4); border-left: 4px solid var(--accent-emerald); }
.toast-error { border-color: rgba(244, 63, 94, 0.4); border-left: 4px solid var(--accent-rose); }
.toast-info { border-color: rgba(99, 102, 241, 0.4); border-left: 4px solid var(--accent-indigo); }

.alert-warning {
    background: rgba(245, 158, 11, 0.15);
    border: 1px solid rgba(245, 158, 11, 0.35);
    color: #FCD34D;
}

/* Utility */
.flex-align { display: flex; align-items: center; }
.justify-between { justify-content: space-between; }
.gap-2 { gap: 8px; }
.gap-3 { gap: 12px; }
.mt-1 { margin-top: 4px; }
.mt-2 { margin-top: 8px; }
.mt-3 { margin-top: 12px; }
.mt-4 { margin-top: 16px; }
.mb-2 { margin-bottom: 8px; }
.mb-3 { margin-bottom: 12px; }
.mb-4 { margin-bottom: 16px; }
.text-center { text-align: center; }
.label-nowrap { white-space: nowrap; font-weight: 600; }
.empty-state { padding: 36px; text-align: center; color: var(--text-muted); font-size: 13.5px; }

/* Picture Replacement UI */
.replace-image-container {
    border-top: 1px solid var(--border-color);
    padding-top: 16px;
}

.replace-section-label {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.image-compare-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 14px;
}

.preview-pane {
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 10px;
    display: flex;
    flex-direction: column;
}

.preview-pane-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.preview-pane-title {
    font-size: 11.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
}

.preview-pane-img-box {
    width: 100%;
    height: 130px;
    border-radius: 6px;
    overflow: hidden;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

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

.new-preview-box {
    border: 1px solid rgba(245, 158, 11, 0.4);
    box-shadow: 0 0 12px rgba(245, 158, 11, 0.2);
}

.replace-controls-box {
    background: rgba(15, 23, 42, 0.5);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 12px;
}

/* ---------------------------------------------------------
   PROJECT STYLED CONFIRMATION MODAL
--------------------------------------------------------- */
.modal-overlay-top {
    z-index: 300 !important;
}

.modal-sm {
    max-width: 440px;
}

.confirm-modal-box {
    text-align: center;
    padding: 28px 24px;
    border-radius: var(--radius-lg);
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8), 0 0 35px rgba(99, 102, 241, 0.25);
    animation: modalFadeIn 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.confirm-modal-icon {
    font-size: 46px;
    margin-bottom: 12px;
    line-height: 1;
    display: inline-block;
    filter: drop-shadow(0 0 16px rgba(245, 158, 11, 0.45));
}

.confirm-modal-title {
    font-size: 19px;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.confirm-modal-body {
    font-size: 13.5px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 24px;
}

.confirm-modal-footer {
    display: flex;
    justify-content: center;
    gap: 12px;
}

.confirm-modal-footer .btn {
    min-width: 120px;
    padding: 10px 18px;
    font-size: 13px;
    font-weight: 700;
}

/* ---------------------------------------------------------
   ADMIN ADS MONETIZATION TOGGLE SWITCH
--------------------------------------------------------- */
.ads-control-card {
    transition: all 0.3s ease;
}

.switch-toggle-admin {
    position: relative;
    display: inline-block;
    width: 52px;
    height: 28px;
    margin: 0;
    cursor: pointer;
    vertical-align: middle;
}

.switch-toggle-admin input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider-round-admin {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.25);
    transition: all 0.25s ease;
    border-radius: 34px;
}

.slider-round-admin:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 3px;
    bottom: 3px;
    background-color: #fff;
    transition: all 0.25s ease;
    border-radius: 50%;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

.switch-toggle-admin input:checked + .slider-round-admin {
    background-color: #10b981;
    border-color: #059669;
    box-shadow: 0 0 14px rgba(16, 185, 129, 0.5);
}

.switch-toggle-admin input:checked + .slider-round-admin:before {
    transform: translateX(24px);
    background-color: #ffffff;
}



