/* ===================================================================
   DRYFRUITS SHOP — ADMIN CONSOLE
   Premium Dark Dashboard Design System
   =================================================================== */

/* ---------- CSS Variables ---------- */
:root {
    --gold: #C9A96E;
    --gold-light: #F5E6C8;
    --gold-dark: #8B6914;
    --gold-bright: #D4AF37;
    --gold-muted: rgba(201, 169, 110, 0.6);
    --black: #0A0806;
    --black-light: #1A1410;
    --black-card: #12100D;
    --black-elevated: #1E1A15;
    --champagne: #F5E6C8;
    --bronze: #8B6914;

    --green: #4ADE80;
    --green-bg: rgba(74, 222, 128, 0.1);
    --red: #F87171;
    --red-bg: rgba(248, 113, 113, 0.1);
    --yellow: #FBBF24;
    --yellow-bg: rgba(251, 191, 36, 0.1);
    --blue: #60A5FA;
    --blue-bg: rgba(96, 165, 250, 0.1);

    --glass-bg: rgba(18, 16, 13, 0.65);
    --glass-border: rgba(201, 169, 110, 0.12);
    --glass-blur: 20px;
    --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    --glass-highlight: rgba(245, 230, 200, 0.03);

    --font-headline: 'Playfair Display', Georgia, serif;
    --font-body: 'Raleway', 'Segoe UI', sans-serif;
    --font-label: 'Montserrat', 'Segoe UI', sans-serif;

    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);
    --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);

    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;

    --sidebar-width: 260px;
}

/* ---------- Reset & Base ---------- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
    scrollbar-width: thin;
    scrollbar-color: var(--gold-dark) var(--black);
}

html::-webkit-scrollbar {
    width: 6px;
}
html::-webkit-scrollbar-track {
    background: var(--black);
}
html::-webkit-scrollbar-thumb {
    background: var(--gold-dark);
    border-radius: 3px;
}

body {
    font-family: var(--font-body);
    background-color: var(--black);
    color: var(--champagne);
    line-height: 1.6;
    font-weight: 300;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

::selection {
    background: rgba(201, 169, 110, 0.3);
    color: var(--champagne);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
}

button {
    border: none;
    background: none;
    cursor: pointer;
    font-family: inherit;
    color: inherit;
}

/* ---------- Loading Screen ---------- */
#loading-screen {
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: var(--black);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}

#loading-screen.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.loader-content {
    text-align: center;
}

.loader-icon {
    font-size: 36px;
    color: var(--gold);
    animation: pulse-gold 2s ease-in-out infinite;
    margin-bottom: 16px;
}

@keyframes pulse-gold {
    0%, 100% { opacity: 0.6; text-shadow: 0 0 10px rgba(201, 169, 110, 0.3); }
    50% { opacity: 1; text-shadow: 0 0 30px rgba(201, 169, 110, 0.6); }
}

.loader-text {
    font-family: var(--font-label);
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 6px;
    color: var(--gold);
    margin-bottom: 24px;
}

.loader-bar {
    width: 200px;
    height: 2px;
    background: rgba(201, 169, 110, 0.15);
    border-radius: 2px;
    margin: 0 auto 16px;
    overflow: hidden;
}

.loader-bar-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--gold-dark), var(--gold), var(--gold-bright));
    border-radius: 2px;
    animation: loaderFill 1.5s var(--ease-out-expo) forwards;
}

@keyframes loaderFill {
    to { width: 100%; }
}

.loader-tagline {
    font-family: var(--font-body);
    font-size: 12px;
    color: rgba(245, 230, 200, 0.4);
    letter-spacing: 2px;
    text-transform: uppercase;
}

/* ---------- Background Ambient ---------- */
.ambient-bg {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background:
        radial-gradient(ellipse at 15% 20%, rgba(201, 169, 110, 0.04) 0%, transparent 50%),
        radial-gradient(ellipse at 85% 80%, rgba(139, 105, 20, 0.03) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 50%, rgba(201, 169, 110, 0.015) 0%, transparent 70%);
}

/* ===================================================================
   SIDEBAR
   =================================================================== */
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: var(--sidebar-width);
    height: 100vh;
    z-index: 100;
    display: flex;
    flex-direction: column;
    background: rgba(12, 10, 8, 0.9);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border-right: 1px solid var(--glass-border);
    padding: 32px 16px 24px;
    transition: transform 0.5s var(--ease-out-expo);
}

.sidebar-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding-bottom: 32px;
    border-bottom: 1px solid rgba(201, 169, 110, 0.08);
    margin-bottom: 32px;
}

.sidebar-brand .brand-icon {
    font-size: 28px;
    color: var(--gold);
    animation: pulse-gold 3s ease-in-out infinite;
    margin-bottom: 8px;
}

.sidebar-brand .brand-text {
    font-family: var(--font-label);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 5px;
    color: var(--gold);
}

.sidebar-brand .brand-sub {
    font-family: var(--font-label);
    font-size: 9px;
    font-weight: 500;
    letter-spacing: 4px;
    color: var(--gold-muted);
    text-transform: uppercase;
}

.sidebar-nav {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.nav-item {
    position: relative;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 18px;
    border-radius: var(--radius-md);
    color: rgba(245, 230, 200, 0.5);
    font-family: var(--font-label);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    transition: all 0.4s var(--ease-out-expo);
    overflow: hidden;
}

.nav-item::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, rgba(201, 169, 110, 0.1) 0%, rgba(201, 169, 110, 0.03) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.nav-item:hover {
    color: var(--champagne);
}

.nav-item:hover::before {
    opacity: 1;
}

.nav-item.active {
    color: var(--gold);
}

.nav-item.active::before {
    opacity: 1;
    background: linear-gradient(135deg, rgba(201, 169, 110, 0.15) 0%, rgba(201, 169, 110, 0.05) 100%);
}

.nav-item .material-symbols-outlined {
    position: relative;
    z-index: 1;
    font-size: 22px;
}

.nav-item .nav-label {
    position: relative;
    z-index: 1;
}

.nav-indicator {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%) scaleY(0);
    width: 3px;
    height: 24px;
    background: var(--gold);
    border-radius: 0 4px 4px 0;
    transition: transform 0.4s var(--ease-spring);
}

.nav-item.active .nav-indicator {
    transform: translateY(-50%) scaleY(1);
}

.sidebar-footer {
    padding-top: 20px;
    border-top: 1px solid rgba(201, 169, 110, 0.08);
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.sidebar-status {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-label);
    font-size: 10px;
    color: rgba(245, 230, 200, 0.4);
    letter-spacing: 0.5px;
}

.status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--green);
    box-shadow: 0 0 8px rgba(74, 222, 128, 0.5);
    animation: dot-pulse 2s ease-in-out infinite;
}

@keyframes dot-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

.sidebar-version {
    font-family: var(--font-label);
    font-size: 9px;
    color: rgba(245, 230, 200, 0.2);
    letter-spacing: 1px;
}

/* ===================================================================
   MOBILE HEADER
   =================================================================== */
.mobile-header {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 56px;
    z-index: 150;
    background: rgba(12, 10, 8, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    align-items: center;
    padding: 0 16px;
    gap: 12px;
}

.mobile-menu-toggle {
    display: flex;
    flex-direction: column;
    gap: 5px;
    width: 24px;
    padding: 2px 0;
}

.mobile-menu-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--gold);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translateY(5px) translateX(3px);
}
.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}
.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translateY(-5px) translateX(3px);
}

.mobile-brand {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-label);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 3px;
    color: var(--gold);
}

.mobile-brand .brand-icon {
    font-size: 18px;
}

/* ===================================================================
   MAIN CONTENT
   =================================================================== */
.main-content {
    margin-left: var(--sidebar-width);
    min-height: 100vh;
    position: relative;
    z-index: 1;
    padding: 40px 48px;
}

.content-section {
    display: none;
    animation: fadeIn 0.5s var(--ease-out-expo);
}

.content-section.active {
    display: block;
}

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

/* Section Header */
.section-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 36px;
}

.section-tag {
    display: inline-block;
    font-family: var(--font-label);
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 8px;
}

.section-title {
    font-family: var(--font-headline);
    font-size: clamp(28px, 4vw, 40px);
    font-weight: 700;
    color: var(--champagne);
    line-height: 1.2;
    margin-bottom: 8px;
}

.section-desc {
    font-size: 14px;
    color: rgba(245, 230, 200, 0.45);
    letter-spacing: 0.5px;
}

.header-actions {
    display: flex;
    gap: 10px;
}

.btn-icon-action {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    border: 1px solid var(--glass-border);
    background: var(--glass-bg);
    color: var(--gold);
    transition: all 0.3s ease;
}

.btn-icon-action:hover {
    border-color: var(--gold);
    background: rgba(201, 169, 110, 0.1);
    transform: scale(1.05);
}

.btn-icon-action .material-symbols-outlined {
    font-size: 20px;
}

/* ===================================================================
   GLASS CARD
   =================================================================== */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--glass-shadow), inset 0 1px 0 var(--glass-highlight);
    overflow: hidden;
}

.card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 24px 28px;
    border-bottom: 1px solid rgba(201, 169, 110, 0.06);
}

.card-header .material-symbols-outlined {
    color: var(--gold);
    font-size: 22px;
}

.card-header h2 {
    font-family: var(--font-label);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--champagne);
}

/* ===================================================================
   PRODUCT FORM
   =================================================================== */
.form-layout {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 24px;
    align-items: start;
}

.form-card {
    padding-bottom: 0;
}

.form-card form {
    padding: 28px;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 24px;
}

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

.form-group label {
    display: block;
    font-family: var(--font-label);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 8px;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 14px 16px;
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 400;
    color: var(--champagne);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(201, 169, 110, 0.12);
    border-radius: var(--radius-sm);
    outline: none;
    transition: all 0.3s ease;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(245, 230, 200, 0.2);
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--gold);
    background: rgba(201, 169, 110, 0.04);
    box-shadow: 0 0 0 3px rgba(201, 169, 110, 0.08);
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
}

.field-hint {
    display: block;
    font-family: var(--font-body);
    font-size: 11px;
    color: rgba(245, 230, 200, 0.25);
    margin-top: 6px;
}

/* Image Preview */
.image-preview-area {
    width: 100%;
    height: 200px;
    border: 2px dashed rgba(201, 169, 110, 0.15);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 28px;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.2);
    transition: border-color 0.3s ease;
}

.image-preview-area.has-image {
    border-color: var(--gold-dark);
}

.preview-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: rgba(245, 230, 200, 0.2);
}

.preview-placeholder .material-symbols-outlined {
    font-size: 40px;
}

.preview-placeholder p {
    font-size: 12px;
    letter-spacing: 1px;
}

#image-preview {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Form Actions */
.form-actions {
    display: flex;
    gap: 14px;
    justify-content: flex-end;
    padding-top: 8px;
    border-top: 1px solid rgba(201, 169, 110, 0.06);
    padding: 20px 0 0;
}

.btn-primary-form {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-label);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--black);
    padding: 14px 32px;
    border-radius: var(--radius-sm);
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
    transition: all 0.4s var(--ease-out-expo);
    overflow: hidden;
}

.btn-primary-form:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(201, 169, 110, 0.3);
}

.btn-primary-form.loading {
    pointer-events: none;
    opacity: 0.7;
}

.btn-primary-form .material-symbols-outlined {
    font-size: 18px;
}

.btn-loader {
    display: none;
    width: 16px;
    height: 16px;
    border: 2px solid transparent;
    border-top-color: var(--black);
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

.btn-primary-form.loading .btn-loader {
    display: block;
}

.btn-primary-form.loading .material-symbols-outlined {
    display: none;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.btn-ghost-form {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-label);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: rgba(245, 230, 200, 0.5);
    padding: 14px 24px;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(201, 169, 110, 0.12);
    transition: all 0.3s ease;
}

.btn-ghost-form:hover {
    color: var(--champagne);
    border-color: rgba(201, 169, 110, 0.3);
    background: rgba(201, 169, 110, 0.05);
}

.btn-ghost-form .material-symbols-outlined {
    font-size: 16px;
}

/* ===================================================================
   RECENT PRODUCTS LIST
   =================================================================== */
.recent-card {
    position: sticky;
    top: 40px;
}

.recent-products-list {
    max-height: 600px;
    overflow-y: auto;
    padding: 8px 0;
    scrollbar-width: thin;
    scrollbar-color: var(--gold-dark) transparent;
}

.recent-product-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 20px;
    transition: background 0.3s ease;
    cursor: default;
    border-bottom: 1px solid rgba(201, 169, 110, 0.04);
}

.recent-product-item:last-child {
    border-bottom: none;
}

.recent-product-item:hover {
    background: rgba(201, 169, 110, 0.04);
}

.recent-product-img {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-sm);
    object-fit: cover;
    border: 1px solid rgba(201, 169, 110, 0.15);
    flex-shrink: 0;
}

.recent-product-info {
    flex: 1;
    min-width: 0;
}

.recent-product-name {
    font-family: var(--font-label);
    font-size: 12px;
    font-weight: 600;
    color: var(--champagne);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 2px;
}

.recent-product-meta {
    font-size: 11px;
    color: rgba(245, 230, 200, 0.35);
    display: flex;
    gap: 8px;
}

.recent-product-id {
    color: var(--gold-muted);
    font-weight: 500;
}

.recent-product-price {
    color: var(--gold);
    font-weight: 500;
}

.recent-product-stock {
    color: rgba(245, 230, 200, 0.3);
}

/* Skeleton Loading */
.loading-skeleton {
    padding: 14px 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.skeleton-item {
    height: 48px;
    background: linear-gradient(90deg, rgba(201, 169, 110, 0.04) 25%, rgba(201, 169, 110, 0.08) 50%, rgba(201, 169, 110, 0.04) 75%);
    background-size: 200% 100%;
    border-radius: var(--radius-sm);
    animation: skeleton-shimmer 1.5s infinite;
}

@keyframes skeleton-shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* ===================================================================
   STATS ROW
   =================================================================== */
.stats-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 28px;
}

.stat-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 22px 24px;
}

.stat-icon-wrap {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(201, 169, 110, 0.08);
    color: var(--gold);
    flex-shrink: 0;
}

.stat-icon-wrap.revenue {
    background: var(--green-bg);
    color: var(--green);
}

.stat-icon-wrap.paid {
    background: var(--blue-bg);
    color: var(--blue);
}

.stat-icon-wrap.pending {
    background: var(--yellow-bg);
    color: var(--yellow);
}

.stat-icon-wrap .material-symbols-outlined {
    font-size: 24px;
}

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

.stat-value {
    font-family: var(--font-headline);
    font-size: 24px;
    font-weight: 700;
    color: var(--champagne);
    line-height: 1.2;
}

.stat-info .stat-label {
    font-family: var(--font-label);
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: rgba(245, 230, 200, 0.35);
}

/* ===================================================================
   ORDERS TABLE
   =================================================================== */
.table-card {
    overflow: visible;
}

.table-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 20px 24px;
    border-bottom: 1px solid rgba(201, 169, 110, 0.06);
}

.search-box {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 14px;
    height: 42px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(201, 169, 110, 0.1);
    border-radius: var(--radius-sm);
    flex: 1;
    max-width: 400px;
    transition: border-color 0.3s ease;
}

.search-box:focus-within {
    border-color: var(--gold);
}

.search-box .material-symbols-outlined {
    font-size: 18px;
    color: rgba(245, 230, 200, 0.3);
}

.search-box input {
    flex: 1;
    background: none;
    border: none;
    outline: none;
    font-family: var(--font-body);
    font-size: 13px;
    color: var(--champagne);
}

.search-box input::placeholder {
    color: rgba(245, 230, 200, 0.2);
}

.filter-select {
    padding: 10px 14px;
    font-family: var(--font-label);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 1px;
    color: var(--champagne);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(201, 169, 110, 0.1);
    border-radius: var(--radius-sm);
    outline: none;
    cursor: pointer;
    transition: border-color 0.3s ease;
    appearance: none;
    -webkit-appearance: none;
    padding-right: 28px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='%23C9A96E'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
}

.filter-select option {
    background: var(--black-light);
    color: var(--champagne);
}

.filter-select:focus {
    border-color: var(--gold);
}

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

.orders-table {
    width: 100%;
    border-collapse: collapse;
}

.orders-table thead th {
    font-family: var(--font-label);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--gold-muted);
    text-align: left;
    padding: 14px 20px;
    border-bottom: 1px solid rgba(201, 169, 110, 0.08);
    white-space: nowrap;
}

.orders-table tbody tr {
    border-bottom: 1px solid rgba(201, 169, 110, 0.04);
    transition: background 0.3s ease;
}

.orders-table tbody tr:hover {
    background: rgba(201, 169, 110, 0.03);
}

.orders-table tbody td {
    padding: 16px 20px;
    font-size: 13px;
    color: rgba(245, 230, 200, 0.7);
    vertical-align: middle;
    white-space: nowrap;
}

.invoice-number {
    font-family: var(--font-label);
    font-weight: 600;
    font-size: 12px;
    color: var(--champagne);
    letter-spacing: 0.5px;
}

.customer-cell {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.customer-name {
    font-weight: 500;
    color: var(--champagne);
    font-size: 13px;
}

.customer-email {
    font-size: 11px;
    color: rgba(245, 230, 200, 0.3);
}

.order-total {
    font-family: var(--font-label);
    font-weight: 600;
    color: var(--champagne);
}

/* Status Badges */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 12px;
    border-radius: 20px;
    font-family: var(--font-label);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.status-badge.paid {
    background: var(--green-bg);
    color: var(--green);
}

.status-badge.pending {
    background: var(--yellow-bg);
    color: var(--yellow);
}

.status-badge.cancelled {
    background: var(--red-bg);
    color: var(--red);
}

.status-badge .material-symbols-outlined {
    font-size: 14px;
}

/* View Details Button */
.btn-view-details {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 14px;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(201, 169, 110, 0.12);
    font-family: var(--font-label);
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--gold);
    transition: all 0.3s ease;
}

.btn-view-details:hover {
    border-color: var(--gold);
    background: rgba(201, 169, 110, 0.08);
}

.btn-view-details .material-symbols-outlined {
    font-size: 14px;
}

/* Table Footer */
.table-footer {
    padding: 14px 24px;
    border-top: 1px solid rgba(201, 169, 110, 0.06);
}

.table-count {
    font-family: var(--font-label);
    font-size: 11px;
    color: rgba(245, 230, 200, 0.3);
    letter-spacing: 0.5px;
}

/* Loading State */
.table-loader {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 48px 0;
    color: rgba(245, 230, 200, 0.3);
    font-size: 13px;
}

.spinner {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(201, 169, 110, 0.15);
    border-top-color: var(--gold);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 64px 24px;
    color: rgba(245, 230, 200, 0.3);
}

.empty-state .material-symbols-outlined {
    font-size: 48px;
    color: rgba(201, 169, 110, 0.15);
    margin-bottom: 12px;
}

.empty-state h3 {
    font-family: var(--font-label);
    font-size: 14px;
    font-weight: 600;
    color: rgba(245, 230, 200, 0.4);
    letter-spacing: 1px;
    margin-bottom: 4px;
}

.empty-state p {
    font-size: 12px;
    color: rgba(245, 230, 200, 0.2);
}

/* ===================================================================
   ORDER DETAIL MODAL
   =================================================================== */
.modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 500;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
}

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

.modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.95);
    z-index: 600;
    width: 90%;
    max-width: 600px;
    max-height: 85vh;
    background: rgba(18, 16, 13, 0.95);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-xl);
    box-shadow: 0 32px 64px rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s var(--ease-out-expo);
    display: flex;
    flex-direction: column;
}

.modal.active {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1);
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 28px;
    border-bottom: 1px solid rgba(201, 169, 110, 0.08);
    flex-shrink: 0;
}

.modal-header h2 {
    font-family: var(--font-headline);
    font-size: 20px;
    font-weight: 600;
    color: var(--champagne);
}

.modal-close {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: rgba(245, 230, 200, 0.4);
    transition: all 0.3s ease;
}

.modal-close:hover {
    color: var(--champagne);
    background: rgba(201, 169, 110, 0.1);
}

.modal-body {
    padding: 28px;
    overflow-y: auto;
    flex: 1;
}

.modal-detail-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 12px 0;
    border-bottom: 1px solid rgba(201, 169, 110, 0.04);
}

.modal-detail-row:last-child {
    border-bottom: none;
}

.detail-label {
    font-family: var(--font-label);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--gold-muted);
}

.detail-value {
    font-size: 13px;
    color: var(--champagne);
    text-align: right;
    max-width: 60%;
    word-break: break-word;
}

.modal-section-title {
    font-family: var(--font-label);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--gold);
    margin-top: 24px;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(201, 169, 110, 0.08);
}

.modal-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid rgba(201, 169, 110, 0.03);
}

.modal-item-img {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    object-fit: cover;
    border: 1px solid rgba(201, 169, 110, 0.12);
    flex-shrink: 0;
}

.modal-item-info {
    flex: 1;
}

.modal-item-name {
    font-size: 13px;
    font-weight: 500;
    color: var(--champagne);
}

.modal-item-qty {
    font-size: 11px;
    color: rgba(245, 230, 200, 0.35);
}

.modal-item-price {
    font-family: var(--font-label);
    font-size: 13px;
    font-weight: 600;
    color: var(--champagne);
}

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

.toast {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    border-radius: var(--radius-md);
    background: rgba(18, 16, 13, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
    min-width: 300px;
    max-width: 420px;
    animation: toastIn 0.5s var(--ease-spring) forwards;
}

.toast.removing {
    animation: toastOut 0.3s ease forwards;
}

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

@keyframes toastOut {
    to { opacity: 0; transform: translateX(40px) scale(0.95); }
}

.toast .material-symbols-outlined {
    font-size: 22px;
    flex-shrink: 0;
}

.toast.success .material-symbols-outlined { color: var(--green); }
.toast.error .material-symbols-outlined { color: var(--red); }
.toast.info .material-symbols-outlined { color: var(--blue); }

.toast-message {
    flex: 1;
    font-size: 13px;
    color: var(--champagne);
    line-height: 1.4;
}

.toast-close {
    color: rgba(245, 230, 200, 0.3);
    transition: color 0.3s ease;
    flex-shrink: 0;
}

.toast-close:hover {
    color: var(--champagne);
}

.toast-close .material-symbols-outlined {
    font-size: 18px;
}

/* ===================================================================
   RESPONSIVE
   =================================================================== */
@media (max-width: 1100px) {
    .form-layout {
        grid-template-columns: 1fr;
    }

    .recent-card {
        position: static;
    }
}

@media (max-width: 900px) {
    .stats-row {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
        z-index: 200;
    }

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

    .mobile-header {
        display: flex;
    }

    .main-content {
        margin-left: 0;
        padding: 72px 16px 32px;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }

    .table-toolbar {
        flex-direction: column;
        align-items: stretch;
    }

    .search-box {
        max-width: none;
    }

    .section-header {
        flex-direction: column;
        gap: 16px;
    }

    .stats-row {
        grid-template-columns: 1fr 1fr;
    }

    /* Horizontal scroll hint for table */
    .orders-table thead th:first-child,
    .orders-table tbody td:first-child {
        position: sticky;
        left: 0;
        background: rgba(18, 16, 13, 0.95);
        z-index: 1;
    }
}

@media (max-width: 480px) {
    .stats-row {
        grid-template-columns: 1fr;
    }

    .form-actions {
        flex-direction: column;
    }

    .btn-primary-form,
    .btn-ghost-form {
        width: 100%;
        justify-content: center;
    }
}
