img, video, iframe, canvas {
    max-width: 100%;
}
/* ==============================================================================
   SIGNATURE NOX - MASTER LUXURY ADMIN DASHBOARD STYLESHEET
   تصميم ملوكي فاخر عالي الدقة خاص بـ Signature NOX (أزرق ملكي، أونيكس، وذهب)
   ============================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;500;600;700;800;900&family=Cinzel:wght@600;700;800;900&family=Rubik:wght@300;400;500;600;700;800&display=swap');

:root {
    --adm-bg: #07080B;
    --adm-sidebar: #0B0E14;
    --adm-topbar: rgba(11, 14, 20, 0.88);
    --adm-card: rgba(14, 18, 26, 0.8);
    --adm-card-solid: #0E121A;
    --adm-card-border: rgba(40, 130, 234, 0.18);
    --adm-card-hover: rgba(18, 24, 36, 0.95);
    
    --adm-primary: #2882EA;
    --adm-primary-hover: #1f6ecc;
    --adm-primary-light: #5ca7ff;
    --adm-primary-glow: rgba(40, 130, 234, 0.3);
    
    --adm-gold: #ffb800;
    --adm-gold-light: #fde047;
    --adm-gold-glow: rgba(255, 184, 0, 0.25);
    
    --adm-text: #f3f4f6;
    --adm-text-muted: #9ca3af;
    --adm-text-dim: #6b7280;
    
    --adm-input-bg: rgba(9, 11, 17, 0.85);
    --adm-input-border: rgba(255, 255, 255, 0.12);
    
    --adm-success: #10b981;
    --adm-warning: #f59e0b;
    --adm-danger: #ef4444;
    --adm-cyan: #06b6d4;
    
    --adm-radius: 12px;
    --adm-radius-lg: 18px;
    --adm-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    --adm-transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ==============================================================================
   GLOBAL SLIM ROYAL SCROLLBAR (شريط تمرير رفيع بلون أزرق المتجر الملكي)
   ============================================================================== */
::-webkit-scrollbar {
    width: 5px;
    height: 5px;
}

::-webkit-scrollbar-track {
    background: #07080B;
}

::-webkit-scrollbar-thumb {
    background: #2882EA;
    border-radius: 10px;
    transition: all 0.25s ease;
}

::-webkit-scrollbar-thumb:hover {
    background: #5ca7ff;
    box-shadow: 0 0 10px rgba(40, 130, 234, 0.6);
}

* {
    scrollbar-width: thin;
    scrollbar-color: #2882EA #07080B;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body.admin-body {
    font-family: 'Cairo', 'Rubik', sans-serif;
    background-color: var(--adm-bg);
    background-image: 
        radial-gradient(circle at 12% 15%, rgba(40, 130, 234, 0.14) 0%, transparent 45%),
        radial-gradient(circle at 88% 85%, rgba(255, 184, 0, 0.08) 0%, transparent 50%);
    background-attachment: fixed;
    color: var(--adm-text);
    min-height: 100vh;
    direction: rtl;
    text-align: right;
    line-height: 1.6;
    overflow-x: hidden;
}

/* ==============================================================================
   1. LOGIN GATEWAY OVERLAY
   ============================================================================== */
.admin-login-overlay {
    position: fixed;
    inset: 0;
    background: rgba(7, 8, 11, 0.95);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    padding: 1.5rem;
}

.login-modal-card {
    position: relative;
    width: 100%;
    max-width: 440px;
    background: rgba(14, 18, 26, 0.92);
    border: 1px solid var(--adm-card-border);
    border-radius: 22px;
    padding: 2.8rem 2.2rem;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.85), 0 0 30px var(--adm-primary-glow);
    text-align: center;
    overflow: hidden;
    animation: loginSlideUp 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes loginSlideUp {
    from { opacity: 0; transform: translateY(25px) scale(0.96); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.login-card-glow {
    position: absolute;
    top: -60px;
    right: 50%;
    transform: translateX(50%);
    width: 240px;
    height: 120px;
    background: radial-gradient(ellipse, rgba(40, 130, 234, 0.4) 0%, rgba(255, 184, 0, 0.25) 60%, transparent 80%);
    filter: blur(35px);
    pointer-events: none;
}

.login-header {
    margin-bottom: 2rem;
    position: relative;
    z-index: 2;
}

.login-logo-img {
    width: 72px;
    height: auto;
    margin-bottom: 0.8rem;
    filter: drop-shadow(0 0 16px var(--adm-primary-glow));
}

.login-brand-title {
    font-family: 'Cinzel', serif;
    font-size: 1.7rem;
    font-weight: 900;
    letter-spacing: 2px;
    color: #ffffff;
    margin-bottom: 0.3rem;
}

.brand-gradient {
    background: linear-gradient(135deg, #60a5fa 0%, #2882EA 50%, #ffb800 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.login-sub-text {
    font-size: 0.9rem;
    color: var(--adm-text-muted);
}

.login-form-body {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    text-align: right;
    position: relative;
    z-index: 2;
}

.login-field-group {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.login-field-group label {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--adm-text-muted);
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.input-icon-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.login-input {
    width: 100%;
    background: var(--adm-input-bg);
    border: 1px solid var(--adm-input-border);
    border-radius: var(--adm-radius);
    padding: 0.85rem 2.6rem 0.85rem 1rem;
    color: #ffffff;
    font-family: inherit;
    font-size: 0.95rem;
    transition: var(--adm-transition);
}

.login-input:focus {
    outline: none;
    border-color: var(--adm-primary);
    box-shadow: 0 0 0 3px var(--adm-primary-glow);
    background: rgba(14, 18, 26, 0.95);
}

.input-icon {
    position: absolute;
    right: 1rem;
    color: var(--adm-text-dim);
    font-size: 0.95rem;
    pointer-events: none;
}

.btn-toggle-pwd {
    position: absolute;
    left: 0.9rem;
    background: none;
    border: none;
    color: var(--adm-text-dim);
    cursor: pointer;
    font-size: 1rem;
    padding: 0.3rem;
    transition: var(--adm-transition);
}

.btn-toggle-pwd:hover {
    color: var(--adm-primary-light);
}

.login-error-alert {
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.35);
    border-radius: var(--adm-radius);
    padding: 0.75rem 1rem;
    color: #fca5a5;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-login-submit {
    background: linear-gradient(135deg, var(--adm-primary-light) 0%, var(--adm-primary) 60%, #1557a6 100%);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--adm-radius);
    color: #ffffff;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 700;
    padding: 0.95rem 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    box-shadow: 0 8px 20px var(--adm-primary-glow);
    transition: var(--adm-transition);
    margin-top: 0.4rem;
}

.btn-login-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 25px rgba(40, 130, 234, 0.45);
}

.login-card-footer {
    margin-top: 2rem;
    font-size: 0.8rem;
    color: var(--adm-text-dim);
}

/* ==============================================================================
   2. MAIN ADMIN SHELL LAYOUT
   ============================================================================== */
.admin-wrapper {
    display: flex;
    min-height: 100vh;
    width: 100%;
}

/* SIDEBAR */
.admin-sidebar {
    width: 270px;
    background: var(--adm-sidebar);
    border-left: 1px solid var(--adm-card-border);
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    bottom: 0;
    right: 0;
    z-index: 1000;
    transition: var(--adm-transition);
    overflow: hidden;
}

.sidebar-header {
    padding: 1.1rem 1.1rem 0.9rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
}

.brand-box {
    display: flex;
    align-items: center;
    gap: 0.7rem;
}

.admin-brand-logo {
    width: 34px;
    height: auto;
    filter: drop-shadow(0 0 8px var(--adm-primary-glow));
}

.brand-meta {
    display: flex;
    flex-direction: column;
}

.brand-name {
    font-family: 'Cinzel', serif;
    font-size: 1rem;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: 1px;
}

.brand-gold {
    color: var(--adm-gold);
}

.brand-role {
    font-size: 0.72rem;
    color: var(--adm-text-muted);
}

.sidebar-close-btn {
    display: none;
    background: none;
    border: none;
    color: var(--adm-text-muted);
    font-size: 1.2rem;
    cursor: pointer;
}

/* NAVIGATION MENU (NO SCROLLBAR, PERFECT FIT) */
.sidebar-menu {
    flex: 1;
    padding: 0.7rem 0.7rem;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    overflow-y: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.sidebar-menu::-webkit-scrollbar {
    display: none;
    width: 0;
    height: 0;
}

.sidebar-menu .menu-item {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    padding: 0.58rem 0.85rem;
    border-radius: var(--adm-radius);
    color: var(--adm-text-muted);
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 600;
    transition: var(--adm-transition);
    position: relative;
    flex-shrink: 0;
}

.sidebar-menu .menu-item i {
    font-size: 0.95rem;
    width: 18px;
    text-align: center;
    color: var(--adm-text-dim);
    transition: var(--adm-transition);
}

.sidebar-menu .menu-item:hover {
    color: #ffffff;
    background: rgba(40, 130, 234, 0.08);
}

.sidebar-menu .menu-item:hover i {
    color: var(--adm-primary-light);
}

.sidebar-menu .menu-item.active {
    color: #ffffff;
    background: linear-gradient(135deg, rgba(40, 130, 234, 0.22) 0%, rgba(40, 130, 234, 0.08) 100%);
    border: 1px solid rgba(40, 130, 234, 0.35);
    box-shadow: 0 4px 15px rgba(40, 130, 234, 0.15);
}

.sidebar-menu .menu-item.active i {
    color: var(--adm-primary-light);
}

.badge-orders-count {
    margin-right: auto;
    background: var(--adm-primary);
    color: #ffffff;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.12rem 0.45rem;
    border-radius: 20px;
    box-shadow: 0 0 10px var(--adm-primary-glow);
}

.sidebar-footer {
    padding: 0.8rem 0.7rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    flex-shrink: 0;
}

.btn-view-site {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    background: rgba(40, 130, 234, 0.1);
    border: 1px solid rgba(40, 130, 234, 0.25);
    border-radius: var(--adm-radius);
    color: var(--adm-primary-light);
    text-decoration: none;
    font-size: 0.82rem;
    font-weight: 600;
    padding: 0.5rem;
    transition: var(--adm-transition);
}

.btn-view-site:hover {
    background: var(--adm-primary);
    color: #ffffff;
}

.btn-logout {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.25);
    border-radius: var(--adm-radius);
    color: #fca5a5;
    font-family: inherit;
    font-size: 0.82rem;
    font-weight: 600;
    padding: 0.5rem;
    cursor: pointer;
    transition: var(--adm-transition);
}

.btn-logout:hover {
    background: var(--adm-danger);
    color: #ffffff;
}

/* MAIN CONTENT */
.admin-main-content {
    flex: 1;
    margin-right: 270px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: transparent;
}

/* TOPBAR */
.admin-topbar {
    height: 72px;
    background: var(--adm-topbar);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--adm-card-border);
    position: sticky;
    top: 0;
    z-index: 900;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 2rem;
}

.topbar-left {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.mobile-toggle-btn {
    display: none;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    color: #ffffff;
    font-size: 1.1rem;
    padding: 0.5rem 0.7rem;
    cursor: pointer;
}

.topbar-live-status {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.25);
    border-radius: 20px;
    padding: 0.4rem 0.9rem;
}

.live-pulse-dot {
    width: 8px;
    height: 8px;
    background: var(--adm-success);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--adm-success);
    animation: livePulse 1.8s infinite;
}

@keyframes livePulse {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
    70% { transform: scale(1.1); box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.live-status-text {
    font-size: 0.82rem;
    font-weight: 600;
    color: #6ee7b7;
}

.topbar-right {
    display: flex;
    align-items: center;
    gap: 1.2rem;
}

.btn-save-master {
    background: linear-gradient(135deg, var(--adm-primary-light) 0%, var(--adm-primary) 60%, #1557a6 100%);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--adm-radius);
    color: #ffffff;
    font-family: inherit;
    font-size: 0.92rem;
    font-weight: 700;
    padding: 0.65rem 1.4rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 4px 15px var(--adm-primary-glow);
    transition: var(--adm-transition);
}

.btn-save-master:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(40, 130, 234, 0.45);
}

.btn-save-master.pulse-save {
    animation: pulseGlow 1.5s infinite;
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    border-color: #fbbf24;
}

.btn-save-master.saved-flash {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border-color: #34d399;
}

@keyframes pulseGlow {
    0% { box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(245, 158, 11, 0); }
    100% { box-shadow: 0 0 0 0 rgba(245, 158, 11, 0); }
}

.topbar-user-badge {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 0.35rem 0.8rem 0.35rem 0.4rem;
}

.user-avatar-circle {
    width: 28px;
    height: 28px;
    background: linear-gradient(135deg, var(--adm-gold) 0%, #b45309 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 0.75rem;
}

.user-name {
    font-size: 0.86rem;
    font-weight: 600;
    color: var(--adm-text);
}

/* ==============================================================================
   3. TAB PANES & SECTIONS
   ============================================================================== */
.tab-pane {
    display: none;
    padding: 2rem;
    animation: paneFadeIn 0.35s ease;
}

.tab-pane.active {
    display: block;
}

@keyframes paneFadeIn {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}

/* SECTION CARDS */
.section-card {
    background: var(--adm-card);
    border: 1px solid var(--adm-card-border);
    border-radius: var(--adm-radius-lg);
    padding: 2rem;
    box-shadow: var(--adm-shadow);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.section-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2rem;
    padding-bottom: 1.2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    flex-wrap: wrap;
    gap: 1rem;
}

.header-titles h2 {
    font-size: 1.45rem;
    font-weight: 800;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 0.3rem;
}

.header-titles h2 i {
    color: var(--adm-primary-light);
}

.header-titles p {
    font-size: 0.9rem;
    color: var(--adm-text-muted);
}

.header-tools {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    flex-wrap: wrap;
}

/* DASHBOARD BANNER */
.dashboard-banner {
    background: linear-gradient(135deg, rgba(40, 130, 234, 0.2) 0%, rgba(14, 18, 26, 0.9) 60%, rgba(255, 184, 0, 0.08) 100%);
    border: 1px solid var(--adm-card-border);
    border-radius: var(--adm-radius-lg);
    padding: 2.2rem;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1.5rem;
    box-shadow: var(--adm-shadow);
}

.welcome-heading {
    font-size: 1.6rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 0.4rem;
}

.welcome-sub {
    font-size: 0.95rem;
    color: var(--adm-text-muted);
    max-width: 600px;
}

.banner-actions {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.btn-banner-action {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--adm-radius);
    color: #ffffff;
    font-family: inherit;
    font-size: 0.92rem;
    font-weight: 600;
    padding: 0.75rem 1.3rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--adm-transition);
}

.btn-banner-action:hover {
    background: var(--adm-primary);
    border-color: var(--adm-primary);
}

.btn-banner-gold {
    background: rgba(255, 184, 0, 0.15);
    border-color: rgba(255, 184, 0, 0.35);
    color: var(--adm-gold);
}

.btn-banner-gold:hover {
    background: var(--adm-gold);
    color: #000000;
}

/* STATS GRID */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: var(--adm-card);
    border: 1px solid var(--adm-card-border);
    border-radius: var(--adm-radius-lg);
    padding: 1.6rem;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    box-shadow: var(--adm-shadow);
    transition: var(--adm-transition);
}

.stat-card:hover {
    transform: translateY(-4px);
    border-color: var(--adm-primary);
}

.stat-icon-wrap {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.card-glow-blue .stat-icon-wrap { background: rgba(40, 130, 234, 0.15); color: var(--adm-primary-light); }
.card-glow-gold .stat-icon-wrap { background: rgba(255, 184, 0, 0.15); color: var(--adm-gold); }
.card-glow-cyan .stat-icon-wrap { background: rgba(6, 182, 212, 0.15); color: var(--adm-cyan); }
.card-glow-green .stat-icon-wrap { background: rgba(16, 185, 129, 0.15); color: var(--adm-success); }

.stat-info {
    display: flex;
    flex-direction: column;
}

.stat-label {
    font-size: 0.86rem;
    color: var(--adm-text-muted);
}

.stat-value {
    font-size: 1.8rem;
    font-weight: 800;
    color: #ffffff;
    line-height: 1.2;
    margin-top: 0.2rem;
}

.stat-trend {
    font-size: 0.8rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.trend-blue { color: var(--adm-primary-light); }
.trend-gold { color: var(--adm-gold); }
.trend-cyan { color: var(--adm-cyan); }
.trend-green { color: var(--adm-success); }

/* DASHBOARD 2-COL GRID */
.dash-grid-2 {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 1.5rem;
}

.dash-card {
    background: var(--adm-card);
    border: 1px solid var(--adm-card-border);
    border-radius: var(--adm-radius-lg);
    padding: 1.6rem;
    box-shadow: var(--adm-shadow);
}

.dash-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.4rem;
    padding-bottom: 0.8rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.header-left {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.header-left h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #ffffff;
}

.header-left i {
    color: var(--adm-primary-light);
}

.badge-chart-live {
    background: rgba(40, 130, 234, 0.12);
    color: var(--adm-primary-light);
    font-size: 0.76rem;
    font-weight: 600;
    padding: 0.25rem 0.65rem;
    border-radius: 12px;
}


.chart-canvas-wrapper {
    width: 100%;
    height: 220px;
    position: relative;
    overflow: hidden;
}

.chart-canvas-wrapper canvas {
    width: 100% !important;
    height: 100% !important;
    display: block;
}


.chart-footer-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-top: 1.2rem;
    padding-top: 1.2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.c-stat {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.c-label {
    font-size: 0.8rem;
    color: var(--adm-text-muted);
}

.c-stat strong {
    font-size: 1.05rem;
}

.gold-text { color: var(--adm-gold); }
.green-text { color: var(--adm-success); }

.status-breakdown-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.8rem;
}

.status-stat-pill {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--adm-radius);
    padding: 0.8rem 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.pill-new { border-right: 4px solid var(--adm-primary); }
.pill-processing { border-right: 4px solid var(--adm-warning); }
.pill-shipped { border-right: 4px solid #f43f5e; }
.pill-completed { border-right: 4px solid var(--adm-success); }

.status-name { font-size: 0.88rem; color: var(--adm-text-muted); }
.status-num { font-size: 1.2rem; font-weight: 800; color: #ffffff; }

.dash-divider {
    border: none;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
    margin: 1.4rem 0;
}

.quick-links-title {
    font-size: 0.92rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 0.8rem;
}

.quick-links-btns {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.btn-quick-nav {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--adm-radius);
    color: var(--adm-text);
    font-family: inherit;
    font-size: 0.88rem;
    font-weight: 600;
    padding: 0.65rem 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    transition: var(--adm-transition);
    text-align: right;
}

.btn-quick-nav:hover {
    background: rgba(40, 130, 234, 0.15);
    border-color: var(--adm-primary);
    color: var(--adm-primary-light);
}

.btn-sm-action {
    background: none;
    border: none;
    color: var(--adm-primary-light);
    font-family: inherit;
    font-size: 0.86rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.recent-orders-list {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.recent-order-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--adm-radius);
    padding: 0.85rem 1.2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    transition: var(--adm-transition);
}

.recent-order-item:hover {
    background: rgba(40, 130, 234, 0.08);
    border-color: var(--adm-primary);
}

.r-left { display: flex; align-items: center; gap: 0.8rem; }
.r-left strong { color: var(--adm-primary-light); }
.r-left span { color: var(--adm-text); font-size: 0.9rem; }
.r-right { display: flex; align-items: center; gap: 1rem; }
.r-price { font-weight: 700; color: var(--adm-gold); }
.r-date { font-size: 0.8rem; color: var(--adm-text-dim); }

/* ==============================================================================
   4. ORDERS MANAGEMENT TAB (LUXURY CARDS)
   ============================================================================== */
.orders-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.2rem;
    margin-bottom: 1.8rem;
    flex-wrap: wrap;
}

.search-box {
    flex: 1;
    min-width: 280px;
    position: relative;
    display: flex;
    align-items: center;
}

.search-box i {
    position: absolute;
    right: 1.1rem;
    color: var(--adm-text-dim);
}

.search-box input {
    width: 100%;
    background: var(--adm-input-bg);
    border: 1px solid var(--adm-input-border);
    border-radius: var(--adm-radius);
    padding: 0.8rem 2.8rem 0.8rem 1rem;
    color: #ffffff;
    font-family: inherit;
    font-size: 0.92rem;
    transition: var(--adm-transition);
}

.search-box input:focus {
    outline: none;
    border-color: var(--adm-primary);
    box-shadow: 0 0 0 3px var(--adm-primary-glow);
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.filter-group label {
    font-size: 0.88rem;
    color: var(--adm-text-muted);
}

.orders-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
}

.order-glass-card {
    background: rgba(14, 18, 26, 0.85);
    border: 1px solid var(--adm-card-border);
    border-radius: var(--adm-radius-lg);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
    box-shadow: var(--adm-shadow);
    transition: var(--adm-transition);
}

.order-glass-card:hover {
    transform: translateY(-3px);
    border-color: var(--adm-primary);
    box-shadow: 0 12px 30px rgba(40, 130, 234, 0.18);
}

.order-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 0.8rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.head-left {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.order-id-badge {
    background: rgba(40, 130, 234, 0.18);
    border: 1px solid rgba(40, 130, 234, 0.35);
    color: var(--adm-primary-light);
    font-family: 'Cinzel', serif;
    font-weight: 800;
    font-size: 0.85rem;
    padding: 0.25rem 0.6rem;
    border-radius: 8px;
    cursor: pointer;
}

.order-time-pill {
    font-size: 0.78rem;
    color: var(--adm-text-dim);
}

.select-status-table {
    background: rgba(9, 11, 17, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    color: #ffffff;
    font-family: inherit;
    font-size: 0.84rem;
    font-weight: 600;
    padding: 0.35rem 0.7rem;
    cursor: pointer;
}

.order-card-body {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.card-customer-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.cust-avatar-circle {
    width: 38px;
    height: 38px;
    background: linear-gradient(135deg, var(--adm-primary) 0%, #0d3880 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 0.95rem;
}

.cust-info {
    display: flex;
    flex-direction: column;
}

.cust-name-text {
    font-size: 1rem;
    font-weight: 700;
    color: #ffffff;
}

.cust-phone-link {
    font-size: 0.86rem;
    color: var(--adm-primary-light);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.card-location-row {
    background: rgba(255, 255, 255, 0.03);
    border-radius: var(--adm-radius);
    padding: 0.6rem 0.8rem;
}

.city-pill-tag {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--adm-gold);
}

.addr-detail-text {
    font-size: 0.85rem;
    color: var(--adm-text-muted);
    margin-top: 0.2rem;
}

.card-package-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.pkg-pill-clean {
    background: rgba(40, 130, 234, 0.15);
    color: var(--adm-primary-light);
    font-size: 0.82rem;
    font-weight: 700;
    padding: 0.3rem 0.7rem;
    border-radius: 8px;
}

.tag-gift-pill {
    background: rgba(255, 184, 0, 0.15);
    color: var(--adm-gold);
    font-size: 0.8rem;
    font-weight: 600;
    padding: 0.3rem 0.6rem;
    border-radius: 8px;
}

.card-price-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem 0.8rem;
    background: rgba(255, 184, 0, 0.06);
    border-radius: var(--adm-radius);
}

.price-label { font-size: 0.85rem; color: var(--adm-text-muted); }
.price-val { font-size: 1.15rem; font-weight: 800; color: var(--adm-gold); }

.card-notes-row {
    font-size: 0.82rem;
    color: var(--adm-warning);
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.order-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 0.8rem;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
    gap: 0.6rem;
}

.btn-card-act {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.55rem 0.9rem;
    border-radius: var(--adm-radius);
    font-size: 0.84rem;
    font-weight: 700;
    text-decoration: none;
    transition: var(--adm-transition);
}

.btn-wa {
    background: #25D366;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.25);
}

.btn-wa:hover {
    background: #1eb857;
    transform: translateY(-1px);
}

.card-footer-btns {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.btn-act {
    width: 34px;
    height: 34px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: var(--adm-text);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    transition: var(--adm-transition);
}

.btn-act:hover {
    background: var(--adm-primary);
    color: #ffffff;
    border-color: var(--adm-primary);
}

.btn-act.btn-del:hover {
    background: var(--adm-danger);
    border-color: var(--adm-danger);
}

.empty-orders-view {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--adm-text-muted);
}

.empty-orders-view i {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.4;
    color: var(--adm-primary-light);
}

/* ==============================================================================
   5. CMS FORM GROUPS & INPUTS
   ============================================================================== */
.cms-group-card {
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: var(--adm-radius-lg);
    padding: 1.8rem;
    margin-bottom: 1.8rem;
}

.cms-group-title {
    font-size: 1.15rem;
    font-weight: 800;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 1.4rem;
    padding-bottom: 0.6rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.cms-group-title i {
    color: var(--adm-primary-light);
}

.cms-form-grid-2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.2rem;
}

.form-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.2rem;
}

.form-field {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.form-field.full-width {
    grid-column: 1 / -1;
}

.form-field label {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--adm-text-muted);
}

.admin-input, .admin-select, .admin-textarea {
    width: 100%;
    background: var(--adm-input-bg);
    border: 1px solid var(--adm-input-border);
    border-radius: var(--adm-radius);
    padding: 0.8rem 1rem;
    color: #ffffff;
    font-family: inherit;
    font-size: 0.94rem;
    transition: var(--adm-transition);
}

.admin-input:focus, .admin-select:focus, .admin-textarea:focus {
    outline: none;
    border-color: var(--adm-primary);
    box-shadow: 0 0 0 3px var(--adm-primary-glow);
    background: rgba(14, 18, 26, 0.95);
}

.admin-textarea {
    resize: vertical;
}

.subgroup-heading {
    font-size: 0.96rem;
    font-weight: 700;
    color: var(--adm-gold);
    margin: 1.2rem 0 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* 7 INGREDIENTS GRID */
.ingredients-admin-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.2rem;
}

.ingredient-edit-box {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--adm-radius);
    padding: 1.2rem;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.ing-box-header {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.ing-badge {
    width: 24px;
    height: 24px;
    background: var(--adm-primary);
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 800;
}

.ing-box-header h4 {
    font-size: 0.94rem;
    font-weight: 700;
    color: #ffffff;
}

/* 4 FEATURES GRID */
.features-admin-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.2rem;
}

.feature-edit-box {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--adm-radius);
    padding: 1.2rem;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    position: relative;
}

.feat-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    font-family: 'Cinzel', serif;
    font-size: 0.85rem;
    font-weight: 800;
    color: var(--adm-gold);
}

/* REVIEWS GRID */
.reviews-admin-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.2rem;
}

.review-admin-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--adm-radius);
    padding: 1.2rem;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.review-admin-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.review-admin-top h4 {
    font-size: 0.94rem;
    font-weight: 700;
    color: #ffffff;
}

.rev-stars-preview {
    color: var(--adm-gold);
    font-size: 0.8rem;
}

.cms-save-bottom-bar {
    margin-top: 2rem;
    display: flex;
    justify-content: flex-end;
}

/* ==============================================================================
   6. MEDIA & IMAGES MANAGEMENT
   ============================================================================== */
.media-grid-admin {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
}

.media-card-box {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--adm-card-border);
    border-radius: var(--adm-radius-lg);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    transition: var(--adm-transition);
}

.media-card-box:hover {
    border-color: var(--adm-primary);
    box-shadow: 0 8px 25px rgba(40, 130, 234, 0.15);
}

.media-preview-wrap {
    width: 100%;
    height: 160px;
    background: #090B10;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--adm-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.media-preview-wrap img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    transition: var(--adm-transition);
}

.media-preview-wrap.circle-preview img {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    border: 2px solid var(--adm-primary-light);
    box-shadow: 0 0 15px var(--adm-primary-glow);
}

.media-details h4 {
    font-size: 1rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 0.2rem;
}

.media-details p {
    font-size: 0.84rem;
    color: var(--adm-text-muted);
    margin-bottom: 0.8rem;
}

.media-upload-actions {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.btn-upload-file {
    background: rgba(40, 130, 234, 0.15);
    border: 1px dashed var(--adm-primary);
    border-radius: var(--adm-radius);
    color: var(--adm-primary-light);
    font-size: 0.88rem;
    font-weight: 600;
    padding: 0.75rem;
    text-align: center;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: var(--adm-transition);
}

.btn-upload-file input[type="file"] {
    display: none;
}

.btn-upload-file:hover {
    background: var(--adm-primary);
    color: #ffffff;
}

/* ==============================================================================
   7. PRICING & PACKAGES
   ============================================================================== */
.packages-admin-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.pkg-admin-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--adm-card-border);
    border-radius: var(--adm-radius-lg);
    padding: 1.8rem;
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
    position: relative;
    transition: var(--adm-transition);
}

.pkg-admin-card.featured-pkg {
    border-color: rgba(40, 130, 234, 0.6);
    box-shadow: 0 0 25px rgba(40, 130, 234, 0.2);
}

.pkg-admin-card.royal-pkg {
    border-color: rgba(255, 184, 0, 0.6);
    box-shadow: 0 0 25px rgba(255, 184, 0, 0.2);
}

.pkg-admin-header {
    display: flex;
    align-items: center;
    gap: 0.7rem;
}

.pkg-num-badge {
    width: 28px;
    height: 28px;
    background: var(--adm-primary);
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.85rem;
}

.royal-pkg .pkg-num-badge {
    background: var(--adm-gold);
    color: #000000;
}

.pkg-admin-header h3 {
    font-size: 1.05rem;
    font-weight: 800;
    color: #ffffff;
}

/* ==============================================================================
   8. THEME & PRESETS
   ============================================================================== */
.presets-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1.2rem;
    margin-top: 1.2rem;
}

.preset-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--adm-card-border);
    border-radius: var(--adm-radius);
    padding: 1.2rem;
    text-align: center;
    cursor: pointer;
    transition: var(--adm-transition);
}

.preset-card:hover {
    border-color: var(--adm-primary);
    transform: translateY(-2px);
}

.preset-card.active {
    border-color: var(--adm-primary-light);
    background: rgba(40, 130, 234, 0.12);
    box-shadow: 0 0 20px var(--adm-primary-glow);
}

.preset-preview {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    margin: 0 auto 0.8rem;
    position: relative;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.6);
}

.preview-sapphire { background: radial-gradient(circle, #2882EA 0%, #07080B 100%); }
.preview-noir { background: radial-gradient(circle, #3b82f6 0%, #030712 100%); }
.preview-cyan { background: radial-gradient(circle, #06b6d4 0%, #04161f 100%); }
.preview-emerald { background: radial-gradient(circle, #059669 0%, #02140d 100%); }
.preview-amethyst { background: radial-gradient(circle, #7c3aed 0%, #0f0728 100%); }
.preview-amber { background: radial-gradient(circle, #d97706 0%, #180e03 100%); }
.preview-silver { background: radial-gradient(circle, #64748b 0%, #0b0f19 100%); }

.dot-gold {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 16px;
    height: 16px;
    background: var(--adm-gold);
    border: 2px solid #ffffff;
    border-radius: 50%;
}

.preset-card h4 {
    font-size: 0.92rem;
    font-weight: 700;
    color: #ffffff;
}

.preset-card p {
    font-size: 0.78rem;
    color: var(--adm-text-muted);
}

.color-pickers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.2rem;
    margin-top: 1.2rem;
}

.color-pick-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--adm-radius);
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.color-pick-item label {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--adm-text-muted);
}

.pick-control {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.pick-control input[type="color"] {
    width: 44px;
    height: 44px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    background: transparent;
}

.hex-code {
    font-family: monospace;
    font-size: 0.95rem;
    text-transform: uppercase;
}

/* ==============================================================================
   9. MODALS & INVOICES
   ============================================================================== */
.admin-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(7, 8, 11, 0.88);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    padding: 1.5rem;
}

.admin-modal-overlay.active {
    display: flex;
}

.admin-modal-card {
    background: var(--adm-card-solid);
    border: 1px solid var(--adm-card-border);
    border-radius: var(--adm-radius-lg);
    width: 100%;
    max-width: 620px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.9);
    animation: modalScaleUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalScaleUp {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

.modal-header {
    padding: 1.4rem 1.8rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.modal-title-wrap {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.modal-title-wrap h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: #ffffff;
}

.modal-title-wrap i {
    color: var(--adm-primary-light);
}

.modal-close-btn {
    background: none;
    border: none;
    color: var(--adm-text-muted);
    font-size: 1.2rem;
    cursor: pointer;
    transition: var(--adm-transition);
}

.modal-close-btn:hover { color: #ffffff; }

.modal-form-body, .modal-body {
    padding: 1.8rem;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.modal-footer {
    padding: 1.2rem 1.8rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.8rem;
}

.btn-tool {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--adm-radius);
    color: var(--adm-text);
    font-family: inherit;
    font-size: 0.88rem;
    font-weight: 600;
    padding: 0.6rem 1.1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.45rem;
    transition: var(--adm-transition);
}

.btn-tool:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
}

.btn-add-order {
    background: rgba(40, 130, 234, 0.15);
    border-color: rgba(40, 130, 234, 0.35);
    color: var(--adm-primary-light);
}

.btn-add-order:hover {
    background: var(--adm-primary);
    color: #ffffff;
}

.btn-export-csv {
    background: rgba(16, 185, 129, 0.15);
    border-color: rgba(16, 185, 129, 0.35);
    color: var(--adm-success);
}

.btn-export-csv:hover {
    background: var(--adm-success);
    color: #ffffff;
}

.btn-danger-soft {
    background: rgba(239, 68, 68, 0.15);
    border-color: rgba(239, 68, 68, 0.35);
    color: #fca5a5;
}

.btn-danger-soft:hover {
    background: var(--adm-danger);
    color: #ffffff;
}

.backup-actions-row {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    flex-wrap: wrap;
}

.backup-note {
    font-size: 0.84rem;
    color: var(--adm-text-muted);
    margin-top: 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

/* ORDER DETAILS VIEW */
.order-detail-view-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.d-item {
    background: rgba(255, 255, 255, 0.03);
    border-radius: var(--adm-radius);
    padding: 0.8rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.d-item.full {
    grid-column: 1 / -1;
}

.d-item label {
    font-size: 0.8rem;
    color: var(--adm-text-muted);
}

.d-item strong {
    font-size: 0.95rem;
    color: #ffffff;
}

.d-item a {
    color: var(--adm-primary-light);
    text-decoration: none;
    font-weight: 700;
}

/* INVOICE AREA */
.invoice-modal-card {
    max-width: 680px;
    background: #ffffff;
    color: #111827;
}

.invoice-printable-area {
    padding: 2.2rem;
    font-family: 'Cairo', sans-serif;
    color: #111827;
}

.inv-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid #e5e7eb;
    padding-bottom: 1.5rem;
    margin-bottom: 1.5rem;
}

.inv-brand {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.inv-logo {
    width: 48px;
    height: auto;
}

.inv-brand h2 {
    font-family: 'Cinzel', serif;
    font-size: 1.3rem;
    color: #0f172a;
}

.inv-brand p {
    font-size: 0.8rem;
    color: #64748b;
}

.inv-meta {
    font-size: 0.85rem;
    text-align: left;
    color: #334155;
}

.inv-customer-box {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 1.2rem;
    margin-bottom: 1.5rem;
}

.inv-customer-box h4 {
    font-size: 0.92rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 0.6rem;
}

.inv-cust-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.6rem;
    font-size: 0.88rem;
}

.inv-items-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1.5rem;
}

.inv-items-table th, .inv-items-table td {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #e2e8f0;
    text-align: right;
    font-size: 0.9rem;
}

.inv-items-table th {
    background: #f1f5f9;
    font-weight: 700;
    color: #334155;
}

.inv-total-cell {
    font-size: 1.2rem;
    font-weight: 800;
    color: #2882EA;
}

.inv-footer-note {
    text-align: center;
    font-size: 0.82rem;
    color: #64748b;
    border-top: 1px dashed #cbd5e1;
    padding-top: 1rem;
}

/* ==============================================================================
   10. LIVE PREVIEW TAB
   ============================================================================== */
.live-preview-container {
    width: 100%;
    display: flex;
    justify-content: center;
    padding: 1.5rem 0;
}

.preview-iframe {
    border: 1px solid var(--adm-card-border);
    border-radius: var(--adm-radius-lg);
    background: #000000;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7);
    transition: var(--adm-transition);
}

.preview-iframe.desktop-mode {
    width: 100%;
    height: 750px;
}

.preview-iframe.mobile-mode {
    width: 390px;
    height: 780px;
    border-radius: 36px;
    border: 8px solid #1e293b;
}

/* ==============================================================================
   11. TOAST NOTIFICATION
   ============================================================================== */
.admin-toast {
    position: fixed;
    bottom: 2rem;
    left: 2rem;
    background: rgba(14, 18, 26, 0.95);
    border: 1px solid var(--adm-card-border);
    border-radius: var(--adm-radius);
    padding: 0.9rem 1.4rem;
    color: #ffffff;
    font-size: 0.92rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7), 0 0 20px var(--adm-primary-glow);
    z-index: 999999;
    transform: translateY(100px);
    opacity: 0;
    transition: var(--adm-transition);
    pointer-events: none;
}

.admin-toast.active {
    transform: translateY(0);
    opacity: 1;
}

.admin-toast .toast-icon {
    color: var(--adm-primary-light);
    font-size: 1.1rem;
}



/* ==============================================================================
   12. MASTER ULTRA-RESPONSIVE SYSTEM (جميع الشاشات والأجهزة بدقة متناهية)
   ============================================================================== */

/* Backdrop overlay for mobile drawer */
.sidebar-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.78);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.sidebar-backdrop.active {
    opacity: 1;
    visibility: visible;
}

/* 1. Large Screens & Desktops (> 1200px) */
@media (min-width: 1201px) {
    .stats-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    .packages-admin-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .orders-cards-grid {
        grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    }
}

/* 2. Medium Laptops & Desktops (993px - 1200px) */
@media (max-width: 1200px) and (min-width: 993px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .dash-grid-2 {
        grid-template-columns: 1fr;
    }
    .packages-admin-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .orders-cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* 3. Tablets & Mobile Drawer Mode (<= 992px) */
@media (max-width: 992px) {
    .admin-sidebar {
        transform: translateX(100%);
        width: min(85vw, 300px);
        box-shadow: -10px 0 35px rgba(0, 0, 0, 0.9);
        z-index: 10000;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .admin-sidebar.open {
        transform: translateX(0);
    }

    .sidebar-close-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 34px;
        height: 34px;
        background: rgba(255, 255, 255, 0.08);
        border: 1px solid rgba(255, 255, 255, 0.12);
        border-radius: 8px;
        color: #ffffff;
    }

    .mobile-toggle-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 42px;
        height: 42px;
        background: rgba(40, 130, 234, 0.12);
        border: 1px solid rgba(40, 130, 234, 0.3);
        border-radius: 10px;
        color: var(--adm-primary-light);
    }

    .mobile-toggle-btn:hover {
        background: var(--adm-primary);
        color: #ffffff;
    }

    .admin-main-content {
        margin-right: 0 !important;
        width: 100%;
        min-width: 0;
    }

    .admin-topbar {
        padding: 0 1.2rem;
    }

    .tab-pane {
        padding: 1.4rem 1.2rem;
    }

    .section-card {
        padding: 1.5rem 1.2rem;
    }

    .dash-grid-2 {
        grid-template-columns: 1fr;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .packages-admin-grid {
        grid-template-columns: 1fr;
    }

    .orders-cards-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }
}

/* 4. Mobile Devices (<= 768px) */
@media (max-width: 768px) {
    .admin-topbar {
        min-height: 62px;
        height: auto;
        padding: 0.6rem 0.9rem;
        gap: 0.6rem;
    }

    .topbar-left {
        gap: 0.6rem;
    }

    .topbar-right {
        gap: 0.6rem;
    }

    .topbar-live-status {
        padding: 0.35rem 0.7rem;
    }

    .live-status-text {
        font-size: 0.78rem;
    }

    .btn-save-master {
        padding: 0.5rem 0.9rem;
        font-size: 0.85rem;
    }

    .tab-pane {
        padding: 1rem 0.8rem;
    }

    .section-card {
        padding: 1.2rem 0.9rem;
        border-radius: 14px;
    }

    .dashboard-banner {
        padding: 1.4rem 1.1rem;
        flex-direction: column;
        align-items: flex-start;
        gap: 1.2rem;
        border-radius: 14px;
    }

    .welcome-heading {
        font-size: 1.25rem;
    }

    .welcome-sub {
        font-size: 0.86rem;
    }

    .banner-actions {
        width: 100%;
        display: flex;
        flex-direction: column;
        gap: 0.6rem;
    }

    .btn-banner-action {
        width: 100%;
        justify-content: center;
        padding: 0.75rem;
    }

    .stats-grid {
        grid-template-columns: 1fr;
        gap: 0.9rem;
    }

    .stat-card {
        padding: 1.2rem 1rem;
        border-radius: 14px;
    }

    .section-card-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
        margin-bottom: 1.4rem;
    }

    .header-titles h2 {
        font-size: 1.25rem;
    }

    .header-tools {
        width: 100%;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 0.5rem;
    }

    .header-tools .btn-tool {
        width: 100%;
        justify-content: center;
        padding: 0.65rem 0.5rem;
        font-size: 0.82rem;
    }

    .header-tools .btn-danger-soft {
        grid-column: 1 / -1;
    }

    .orders-toolbar {
        flex-direction: column;
        align-items: stretch;
        gap: 0.8rem;
        margin-bottom: 1.4rem;
    }

    .search-box {
        min-width: 100%;
        width: 100%;
    }

    .filter-group {
        width: 100%;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.4rem;
    }

    .filter-group .admin-select {
        width: 100%;
    }

    .orders-cards-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .order-glass-card {
        padding: 1.2rem 1rem;
        border-radius: 14px;
    }

    .order-card-footer {
        flex-direction: column;
        gap: 0.7rem;
    }

    .btn-card-act.btn-wa {
        width: 100%;
        justify-content: center;
        padding: 0.7rem;
        font-size: 0.9rem;
    }

    .card-footer-btns {
        width: 100%;
        display: flex;
        justify-content: space-between;
        gap: 0.5rem;
    }

    .card-footer-btns .btn-act {
        flex: 1;
        height: 40px;
        font-size: 1rem;
    }

    .form-grid-2, .cms-form-grid-2 {
        grid-template-columns: 1fr !important;
        gap: 0.9rem;
    }

    .cms-group-card {
        padding: 1.2rem 1rem;
        border-radius: 14px;
        margin-bottom: 1.2rem;
    }

    .ingredients-admin-grid, .features-admin-grid, .reviews-admin-grid, .media-grid-admin {
        grid-template-columns: 1fr !important;
        gap: 0.9rem;
    }

    .presets-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 0.8rem;
    }

    .color-pickers-grid {
        grid-template-columns: 1fr !important;
        gap: 0.8rem;
    }

    .backup-actions-row {
        display: flex;
        flex-direction: column;
        width: 100%;
        gap: 0.6rem;
    }

    .backup-actions-row .btn-tool {
        width: 100%;
        justify-content: center;
        padding: 0.75rem;
    }

    .admin-modal-card {
        width: 95%;
        max-height: 90vh;
        margin: 0 auto;
        border-radius: 16px;
    }

    .modal-header {
        padding: 1rem 1.2rem;
    }

    .modal-form-body, .modal-body {
        padding: 1.2rem 1rem;
        gap: 1rem;
    }

    .modal-footer {
        padding: 1rem 1.2rem;
        flex-direction: column-reverse;
        width: 100%;
        gap: 0.5rem;
    }

    .modal-footer button {
        width: 100%;
        justify-content: center;
        padding: 0.75rem;
    }

    .order-detail-view-grid {
        grid-template-columns: 1fr;
        gap: 0.7rem;
    }

    .invoice-printable-area {
        padding: 1.2rem 0.8rem;
    }

    .inv-head {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.9rem;
    }

    .inv-meta {
        text-align: right;
    }

    .inv-cust-grid {
        grid-template-columns: 1fr;
    }

    .inv-items-table {
        display: block;
        overflow-x: auto;
        width: 100%;
        -webkit-overflow-scrolling: touch;
    }

    .preview-iframe.desktop-mode {
        height: 500px;
    }

    .preview-iframe.mobile-mode {
        width: 100%;
        max-width: 350px;
        height: 640px;
    }

    .cms-save-bottom-bar .btn-save-master {
        width: 100%;
        justify-content: center;
        padding: 0.85rem;
        font-size: 0.95rem;
    }

    .chart-footer-stats {
        grid-template-columns: 1fr;
        gap: 0.7rem;
    }
}

/* 5. Extra Small Mobile Devices (<= 420px) */
@media (max-width: 420px) {
    .topbar-user-badge .user-name {
        display: none;
    }

    .topbar-user-badge {
        padding: 0.3rem;
    }

    .topbar-live-status .live-status-text {
        display: none;
    }

    .topbar-live-status {
        padding: 0.45rem;
    }

    .login-modal-card {
        padding: 1.8rem 1.2rem;
        border-radius: 16px;
    }

    .login-brand-title {
        font-size: 1.4rem;
    }

    .presets-grid {
        grid-template-columns: 1fr !important;
    }

    .admin-toast {
        left: 0.8rem;
        right: 0.8rem;
        bottom: 0.8rem;
        justify-content: center;
        font-size: 0.84rem;
        padding: 0.75rem 1rem;
    }
}

/* PRINT STYLES */
@media print {
    body * {
        visibility: hidden;
    }
    .invoice-printable-area, .invoice-printable-area * {
        visibility: visible;
    }
    .invoice-printable-area {
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
        margin: 0;
        padding: 1.5cm;
    }
    .no-print {
        display: none !important;
    }
}

/* Live Sync Indicator */
.live-sync-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    background: rgba(16, 185, 129, 0.12);
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 700;
    color: #10b981;
    margin-left: 12px;
}
.live-dot-pulse {
    width: 8px;
    height: 8px;
    background: #10b981;
    border-radius: 50%;
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    animation: livePulseAnim 1.8s infinite;
}
@keyframes livePulseAnim {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}


/* LUXURY ORDER CARD ENHANCEMENTS */
.order-glass-card {
    background: rgba(14, 18, 26, 0.92) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 16px !important;
    padding: 1.4rem !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 1rem !important;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4) !important;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
    position: relative !important;
}

.order-glass-card:hover {
    transform: translateY(-4px) !important;
    border-color: var(--adm-primary, #2882EA) !important;
    box-shadow: 0 16px 35px rgba(40, 130, 234, 0.22) !important;
}

.order-status-new { border-top: 3px solid #2882EA !important; }
.order-status-processing, .order-status-confirmed { border-top: 3px solid #ffb800 !important; }
.order-status-shipped { border-top: 3px solid #f43f5e !important; }
.order-status-completed, .order-status-delivered { border-top: 3px solid #10b981 !important; }
.order-status-cancelled { border-top: 3px solid #6b7280 !important; }

.order-card-head {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding-bottom: 0.8rem !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
    gap: 0.5rem !important;
    flex-wrap: wrap !important;
}

.head-left {
    display: flex !important;
    align-items: center !important;
    gap: 0.6rem !important;
}

.order-id-badge {
    background: rgba(40, 130, 234, 0.15) !important;
    border: 1px solid rgba(40, 130, 234, 0.35) !important;
    color: #5ca7ff !important;
    font-family: 'Cinzel', serif !important;
    font-weight: 800 !important;
    font-size: 0.88rem !important;
    padding: 0.3rem 0.65rem !important;
    border-radius: 8px !important;
    cursor: pointer !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 0.35rem !important;
}

.order-time-pill {
    font-size: 0.78rem !important;
    color: #9ca3af !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 0.3rem !important;
}

.select-status-table {
    background: #0d121c !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    border-radius: 8px !important;
    color: #ffffff !important;
    font-family: inherit !important;
    font-size: 0.84rem !important;
    font-weight: 600 !important;
    padding: 0.35rem 0.7rem !important;
    cursor: pointer !important;
    outline: none !important;
}

.card-customer-row {
    display: flex !important;
    align-items: center !important;
    gap: 0.85rem !important;
}

.cust-avatar-circle {
    width: 42px !important;
    height: 42px !important;
    background: linear-gradient(135deg, #2882EA 0%, #0d3880 100%) !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: #ffffff !important;
    font-size: 1rem !important;
    font-weight: 800 !important;
    box-shadow: 0 4px 10px rgba(40, 130, 234, 0.3) !important;
}

.cust-info {
    display: flex !important;
    flex-direction: column !important;
    gap: 0.15rem !important;
}

.cust-name-text {
    font-size: 1.05rem !important;
    font-weight: 800 !important;
    color: #ffffff !important;
}

.cust-phone-link {
    font-size: 0.88rem !important;
    color: #5ca7ff !important;
    text-decoration: none !important;
    display: flex !important;
    align-items: center !important;
    gap: 0.4rem !important;
    font-weight: 600 !important;
}

.card-location-row {
    background: rgba(255, 255, 255, 0.03) !important;
    border: 1px solid rgba(255, 255, 255, 0.05) !important;
    border-radius: 10px !important;
    padding: 0.7rem 0.9rem !important;
}

.city-pill-tag {
    font-size: 0.85rem !important;
    font-weight: 800 !important;
    color: #ffb800 !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 0.35rem !important;
}

.addr-detail-text {
    font-size: 0.86rem !important;
    color: #cbd5e1 !important;
    margin-top: 0.25rem !important;
    line-height: 1.4 !important;
}

.card-package-row {
    display: flex !important;
    align-items: center !important;
    gap: 0.5rem !important;
    flex-wrap: wrap !important;
}

.pkg-pill-clean {
    background: rgba(40, 130, 234, 0.15) !important;
    border: 1px solid rgba(40, 130, 234, 0.3) !important;
    color: #5ca7ff !important;
    font-size: 0.84rem !important;
    font-weight: 700 !important;
    padding: 0.35rem 0.8rem !important;
    border-radius: 8px !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 0.35rem !important;
}

.tag-gift-pill {
    background: rgba(255, 184, 0, 0.15) !important;
    border: 1px solid rgba(255, 184, 0, 0.3) !important;
    color: #ffb800 !important;
    font-size: 0.82rem !important;
    font-weight: 700 !important;
    padding: 0.35rem 0.7rem !important;
    border-radius: 8px !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 0.35rem !important;
}

.qty-pill-badge {
    background: linear-gradient(135deg, rgba(255, 184, 0, 0.2), rgba(255, 184, 0, 0.08)) !important;
    border: 1.5px solid rgba(255, 184, 0, 0.5) !important;
    color: #ffb800 !important;
    font-size: 0.84rem !important;
    font-weight: 800 !important;
    padding: 0.35rem 0.8rem !important;
    border-radius: 8px !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 0.4rem !important;
    box-shadow: 0 2px 10px rgba(255, 184, 0, 0.15) !important;
}

.qty-pill-badge strong {
    color: #ffffff !important;
    font-size: 0.95rem !important;
    font-weight: 900 !important;
    background: rgba(255, 184, 0, 0.25);
    padding: 1px 7px;
    border-radius: 5px;
    border: 1px solid rgba(255, 184, 0, 0.45);
}

.badge-qty-small {
    background: rgba(255, 184, 0, 0.18);
    border: 1px solid rgba(255, 184, 0, 0.4);
    color: #ffb800;
    font-size: 0.72rem;
    font-weight: 800;
    padding: 0.15rem 0.5rem;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    margin-right: 4px;
}

.card-price-row {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 0.65rem 0.9rem !important;
    background: rgba(255, 184, 0, 0.08) !important;
    border: 1px solid rgba(255, 184, 0, 0.15) !important;
    border-radius: 10px !important;
}

.price-label { font-size: 0.85rem !important; color: #cbd5e1 !important; }
.price-val { font-size: 1.25rem !important; font-weight: 900 !important; color: #ffb800 !important; }

.order-card-footer {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding-top: 0.8rem !important;
    border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
    gap: 0.6rem !important;
}

.btn-card-act {
    display: inline-flex !important;
    align-items: center !important;
    gap: 0.45rem !important;
    padding: 0.6rem 1rem !important;
    border-radius: 10px !important;
    font-size: 0.86rem !important;
    font-weight: 700 !important;
    text-decoration: none !important;
    transition: all 0.2s ease !important;
}

.btn-wa {
    background: #25D366 !important;
    color: #ffffff !important;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3) !important;
}

.btn-wa:hover {
    background: #1eb857 !important;
    transform: translateY(-2px) !important;
}

.card-footer-btns {
    display: flex !important;
    align-items: center !important;
    gap: 0.5rem !important;
}

.btn-act {
    width: 36px !important;
    height: 36px !important;
    background: rgba(255, 255, 255, 0.06) !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    border-radius: 10px !important;
    color: #ffffff !important;
    cursor: pointer !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 0.9rem !important;
    transition: all 0.2s ease !important;
}

.btn-act:hover {
    background: #2882EA !important;
    border-color: #2882EA !important;
    transform: scale(1.05) !important;
}

.btn-act.btn-del:hover {
    background: #dc2626 !important;
    border-color: #dc2626 !important;
}
