/* ====================================================================
   American Creamery RestaurantOS
   Premium Glassmorphic Aesthetics Stylesheet
   ==================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&family=Playfair+Display:ital,wght@0,600;0,700;1,600&display=swap');

:root {
    --bg-primary: #0f0c08;
    --bg-secondary: #262118;
    --gold-primary: #d4af37;
    --gold-hover: #f3e5ab;
    --cream-light: #fdfbf7;
    --text-muted: #a69f92;
    --glass-bg: rgba(30, 25, 20, 0.65);
    --glass-border: rgba(212, 175, 55, 0.15);
    --error-color: #ff6b6b;
    --success-color: #2ecc71;
}

body {
    font-family: 'Outfit', sans-serif;
    background: radial-gradient(circle at center, var(--bg-secondary) 0%, var(--bg-primary) 100%);
    color: var(--cream-light);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow-x: hidden;
}

/* Glassmorphic Container */
.auth-wrapper {
    width: 100%;
    max-width: 460px;
    padding: 20px;
    margin: auto;
}

.auth-wrapper:has(.auth-split),
.auth-wrapper:has(.auth-fullpage),
.auth-wrapper:has(.menu-experience) {
    max-width: 100%;
    width: 100%;
    padding: 0;
    margin: 0;
}

body:has(.auth-split),
body:has(.auth-fullpage) {
    display: block;
    background: var(--bg-primary);
}

.auth-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 40px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.auth-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 25px 50px rgba(212, 175, 55, 0.1);
}

/* Typography Styling */
h2.brand-title {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-style: italic;
    color: var(--gold-primary);
    letter-spacing: 0.5px;
    margin-bottom: 5px;
}

.brand-subtitle {
    font-size: 0.9rem;
    color: var(--text-muted);
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* Inputs & Form Controls */
.form-label {
    font-weight: 500;
    font-size: 0.85rem;
    color: var(--cream-light);
    letter-spacing: 0.5px;
}

.form-control {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    color: var(--cream-light);
    padding: 12px 16px;
    font-size: 0.95rem;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.form-control:focus {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--gold-primary);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.25);
    color: var(--cream-light);
}

/* Input Placeholder */
.form-control::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

/* Buttons */
.btn-gold {
    background: linear-gradient(135deg, #b8860b 0%, var(--gold-primary) 100%);
    border: none;
    border-radius: 12px;
    color: #000;
    font-weight: 600;
    padding: 12px 24px;
    transition: all 0.3s ease;
    letter-spacing: 0.5px;
}

.btn-gold:hover, .btn-gold:focus {
    background: linear-gradient(135deg, var(--gold-primary) 0%, var(--gold-hover) 100%);
    transform: scale(1.02);
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.4);
    color: #000;
}

/* Checkbox Style */
.form-check-input {
    background-color: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.2);
}

.form-check-input:checked {
    background-color: var(--gold-primary);
    border-color: var(--gold-primary);
}

.auth-remember-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0;
    min-height: auto;
}

.auth-remember-row .form-check-input {
    float: none;
    margin: 0;
    flex-shrink: 0;
    width: 1.05rem;
    height: 1.05rem;
    cursor: pointer;
}

.auth-remember-label {
    display: inline-block;
    margin: 0;
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 400;
    line-height: 1.4;
    letter-spacing: 0.01em;
    cursor: pointer;
    user-select: none;
}

/* Custom Links */
.auth-link {
    color: var(--gold-primary);
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.2s ease;
}

.auth-link:hover {
    color: var(--gold-hover);
    text-decoration: underline;
}

/* Status Notifications */
.alert-custom {
    border-radius: 12px;
    padding: 12px 16px;
    font-size: 0.9rem;
    margin-bottom: 20px;
    display: none;
    animation: fadeIn 0.4s ease forwards;
}

.alert-custom-danger {
    background: rgba(255, 107, 107, 0.15);
    border: 1px solid rgba(255, 107, 107, 0.3);
    color: var(--error-color);
}

.alert-custom-success {
    background: rgba(46, 204, 113, 0.15);
    border: 1px solid rgba(46, 204, 113, 0.3);
    color: var(--success-color);
}

/* Loader Overlay */
.loader-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(15, 12, 8, 0.85);
    backdrop-filter: blur(10px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.loader-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.gold-spinner {
    width: 50px;
    height: 50px;
    border: 3px solid rgba(212, 175, 55, 0.1);
    border-radius: 50%;
    border-top-color: var(--gold-primary);
    animation: spin 1s ease-in-out infinite;
}

/* Dashboard Mock Styles */
.dashboard-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 30px;
    margin-top: 20px;
}

.text-gold {
    color: var(--gold-primary);
}

.fs-7 {
    font-size: 0.82rem;
}

.text-truncate-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.cart-drawer-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1040;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

.cart-drawer-backdrop.active {
    opacity: 1;
    pointer-events: auto;
}

.cart-drawer {
    position: fixed;
    top: 0;
    right: 0;
    width: min(420px, 95vw);
    height: 100vh;
    background: rgba(20, 18, 15, 0.97);
    border-left: 1px solid var(--glass-border);
    z-index: 1045;
    transform: translateX(100%);
    transition: transform 0.25s ease;
    display: flex;
    flex-direction: column;
}

.cart-drawer.active {
    transform: translateX(0);
}

.cart-items-body {
    min-height: 0;
}

/* Public Menu Redesign */
.menu-experience {
    width: min(1240px, 100%);
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.menu-onboarding {
    max-width: 980px;
}

.menu-hero-shell {
    position: relative;
    border-radius: 26px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    min-height: 260px;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(43, 29, 18, 0.95), rgba(13, 10, 8, 0.95));
}

.menu-hero-shell::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: var(--menu-hero-image);
    background-size: cover;
    background-position: center;
    transform: scale(1.04);
}

.menu-hero-overlay,
.menu-banner-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, rgba(9, 8, 7, 0.75), rgba(9, 8, 7, 0.25));
    z-index: 1;
}

.menu-hero-content {
    position: relative;
    z-index: 2;
    padding: 36px;
    max-width: 680px;
}

.menu-kicker {
    margin: 0;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: rgba(255, 240, 207, 0.85);
}

.menu-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.7rem, 3vw, 2.6rem);
    color: #ffe4ab;
    margin: 8px 0 6px;
    line-height: 1.12;
}

.menu-subtitle {
    margin: 0;
    color: rgba(247, 238, 220, 0.92);
    font-size: 0.98rem;
    max-width: 580px;
}

.menu-selection-panel {
    background: rgba(24, 20, 16, 0.86);
    border: 1px solid rgba(214, 176, 99, 0.22);
    border-radius: 24px;
    padding: 24px;
}

.menu-selection-header h2 {
    margin: 0;
    font-size: 1.4rem;
    color: #f7e3b1;
}

.menu-selection-header p {
    margin: 4px 0 14px;
    color: rgba(235, 220, 187, 0.65);
    font-size: 0.86rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.menu-notice {
    background: rgba(255, 208, 116, 0.11);
    border: 1px solid rgba(255, 208, 116, 0.35);
    color: #ffd58f;
    border-radius: 14px;
    padding: 11px 13px;
    font-size: 0.86rem;
    margin-bottom: 14px;
}

.menu-banner {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    min-height: 170px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: linear-gradient(140deg, rgba(28, 19, 12, 0.96), rgba(8, 8, 7, 0.96));
}

.menu-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: var(--menu-hero-image);
    background-size: cover;
    background-position: center;
    opacity: 0.42;
    transform: scale(1.05);
}

.menu-banner-content {
    position: relative;
    z-index: 2;
    padding: 24px;
    display: flex;
    align-items: end;
    justify-content: space-between;
    flex-wrap: wrap;
}

.menu-table-pill {
    align-items: center;
    padding: 6px 12px;
    border-radius: 999px;
    border: 1px solid rgba(255, 222, 158, 0.35);
    color: #ffe6b3;
    background: rgba(39, 28, 15, 0.65);
    font-size: 0.84rem;
}

.menu-content-grid {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 18px;
}

.menu-categories-panel,
.menu-products-panel {
    background: rgba(20, 18, 15, 0.82);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 16px;
}

.menu-panel-title {
    margin: 0 0 12px;
    font-size: 0.8rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(252, 231, 185, 0.82);
}

.menu-product-card {
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01));
    padding: 12px;
    transition: transform 0.18s ease, border-color 0.18s ease;
}

.menu-product-card:hover {
    transform: translateY(-3px);
    border-color: rgba(245, 200, 123, 0.48);
}

.menu-product-image-wrap {
    height: 160px;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 10px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(11, 10, 8, 0.75);
    display: flex;
    align-items: center;
    justify-content: center;
}

.menu-product-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@media (max-width: 992px) {
    .menu-content-grid {
        grid-template-columns: 1fr;
    }

    .menu-categories-panel {
        order: 2;
    }

    .menu-products-panel {
        order: 1;
    }
}

@media (max-width: 768px) {
    .menu-hero-content,
    .menu-banner-content,
    .menu-selection-panel {
        padding: 18px;
    }

    .menu-title {
        font-size: 1.65rem;
    }
}

.management-shell {
    max-width: 1100px;
    width: 100%;
}

.form-shell {
    max-width: 680px;
    width: 100%;
}

.management-table th,
.management-table td {
    vertical-align: middle;
}

.category-thumb,
.category-preview {
    width: 72px;
    height: 72px;
    object-fit: cover;
    border-radius: 14px;
    border: 1px solid var(--glass-border);
    background: rgba(0, 0, 0, 0.25);
}

.category-thumb-placeholder {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
}

.category-preview {
    width: 120px;
    height: 120px;
}

.category-description {
    max-width: 420px;
}

.sort-controls,
.action-button-group {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.icon-btn {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.04);
    color: var(--cream-light);
    transition: all 0.2s ease;
}

.icon-btn:hover:not(:disabled) {
    border-color: var(--gold-primary);
    color: var(--gold-primary);
}

.icon-btn:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

.empty-state {
    min-height: 180px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.empty-state i {
    color: var(--gold-primary);
    font-size: 2rem;
}

.current-image-panel {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 16px;
    border-radius: 16px;
    border: 1px solid var(--glass-border);
    background: rgba(0, 0, 0, 0.18);
}

.form-select {
    background-color: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.08);
    color: var(--cream-light);
}

.form-control[type="file"]::file-selector-button {
    background: rgba(212, 175, 55, 0.14);
    border: 0;
    color: var(--gold-primary);
    border-radius: 8px;
    margin-right: 12px;
    padding: 8px 12px;
}

.role-badge {
    background: rgba(212, 175, 55, 0.15);
    border: 1px solid var(--gold-primary);
    color: var(--gold-primary);
    font-size: 0.8rem;
    padding: 4px 12px;
    border-radius: 20px;
    text-transform: uppercase;
    font-weight: 600;
}

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

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

/* ====================================================================
   Staff Application Shell
   ==================================================================== */

body.staff-body {
    display: block;
    align-items: stretch;
    justify-content: flex-start;
    background: var(--bg-primary);
    color: var(--cream-light);
}

body.staff-body .text-muted {
    color: var(--text-muted) !important;
}

body.staff-body .table {
    --bs-table-color: var(--cream-light);
    --bs-table-bg: transparent;
    --bs-table-border-color: rgba(255, 255, 255, 0.08);
    color: var(--cream-light);
}

body.staff-body .table td,
body.staff-body .table th {
    color: var(--cream-light);
}

body.staff-body .staff-section-title {
    color: var(--cream-light);
}

body.staff-body .dashboard-hero-content .menu-kicker {
    color: rgba(243, 229, 171, 0.92);
}

body.staff-body .dashboard-hero-content p {
    color: rgba(253, 251, 247, 0.9);
}

.staff-app {
    display: flex;
    min-height: 100vh;
}

.staff-sidebar {
    width: 268px;
    flex-shrink: 0;
    background: linear-gradient(180deg, rgba(22, 18, 14, 0.98) 0%, rgba(12, 10, 8, 0.98) 100%);
    border-right: 1px solid var(--glass-border);
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    z-index: 1040;
    transition: transform 0.25s ease;
}

.staff-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 20px 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.staff-brand-logo {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    object-fit: cover;
    border: 1px solid var(--glass-border);
}

.staff-brand-name {
    font-family: 'Playfair Display', serif;
    font-size: 1rem;
    font-weight: 700;
    color: var(--gold-primary);
    margin: 0;
    line-height: 1.2;
}

.staff-brand-tag {
    margin: 2px 0 0;
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--text-muted);
}

.staff-nav {
    flex: 1;
    padding: 16px 12px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    overflow-y: auto;
}

.staff-nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 14px;
    border-radius: 12px;
    color: rgba(253, 251, 247, 0.72);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

.staff-nav-link i {
    width: 18px;
    text-align: center;
    color: var(--text-muted);
    transition: color 0.2s ease;
}

.staff-nav-link:hover {
    background: rgba(255, 255, 255, 0.04);
    color: var(--cream-light);
    border-color: rgba(255, 255, 255, 0.06);
}

.staff-nav-link.active {
    background: rgba(212, 175, 55, 0.12);
    color: var(--gold-hover);
    border-color: rgba(212, 175, 55, 0.28);
}

.staff-nav-link.active i {
    color: var(--gold-primary);
}

.staff-sidebar-footer {
    padding: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

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

.staff-user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: rgba(212, 175, 55, 0.15);
    border: 1px solid var(--glass-border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold-primary);
}

.staff-user-name {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--cream-light);
}

.staff-user-role {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
}

.staff-main {
    flex: 1;
    margin-left: 268px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.staff-topbar {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px 24px;
    background: rgba(15, 12, 8, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    position: sticky;
    top: 0;
    z-index: 1030;
}

.staff-menu-toggle {
    display: none;
    position: relative;
    z-index: 1050;
}

.staff-topbar-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.25rem;
    color: var(--gold-hover);
    flex: 1;
}

.staff-content {
    padding: 24px;
    flex: 1;
}

.staff-section-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.35rem;
    color: var(--gold-hover);
    margin: 0;
}

.staff-panel {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 22px;
}

.staff-panel-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--gold-primary);
    margin-bottom: 16px;
}

.staff-tabs .nav-link {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--cream-light);
    border-radius: 12px;
    padding: 10px 18px;
    font-size: 0.88rem;
    font-weight: 500;
}

.staff-tabs .nav-link.active {
    background: rgba(212, 175, 55, 0.18);
    border-color: rgba(212, 175, 55, 0.35);
    color: var(--gold-hover);
}

/* Dashboard */
.dashboard-hero {
    position: relative;
    border-radius: 22px;
    overflow: hidden;
    min-height: 200px;
    margin-bottom: 22px;
    border: 1px solid var(--glass-border);
}

.dashboard-hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transform: scale(1.03);
}

.dashboard-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(105deg, rgba(8, 7, 5, 0.88) 0%, rgba(8, 7, 5, 0.45) 60%, rgba(8, 7, 5, 0.25) 100%);
}

.dashboard-hero-content {
    position: relative;
    z-index: 2;
    padding: 28px 32px;
}

.dashboard-hero-content h1 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    color: var(--gold-hover);
    margin: 0 0 6px;
}

.dashboard-hero-content p {
    margin: 0;
    color: rgba(253, 251, 247, 0.78);
    font-size: 0.92rem;
}

.dashboard-gallery {
    display: flex;
    gap: 10px;
    margin-top: 18px;
    flex-wrap: wrap;
}

.dashboard-gallery img {
    width: 72px;
    height: 52px;
    object-fit: cover;
    border-radius: 10px;
    border: 1px solid rgba(212, 175, 55, 0.25);
    opacity: 0.85;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.dashboard-gallery img:hover {
    opacity: 1;
    transform: scale(1.05);
}

.dashboard-kpi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 14px;
    margin-bottom: 22px;
}

.dashboard-kpi {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 18px;
    transition: border-color 0.2s ease;
}

.dashboard-kpi:hover {
    border-color: rgba(212, 175, 55, 0.3);
}

.dashboard-kpi-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    margin-bottom: 6px;
}

.dashboard-kpi-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--cream-light);
    line-height: 1.1;
}

.dashboard-kpi-value.gold {
    color: var(--gold-primary);
}

.dashboard-actions {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 12px;
}

.dashboard-action-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 18px 12px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--cream-light);
    text-decoration: none;
    font-size: 0.82rem;
    font-weight: 500;
    transition: all 0.2s ease;
    text-align: center;
}

.dashboard-action-btn i {
    font-size: 1.4rem;
    color: var(--gold-primary);
}

.dashboard-action-btn:hover {
    background: rgba(212, 175, 55, 0.1);
    border-color: rgba(212, 175, 55, 0.3);
    color: var(--gold-hover);
    transform: translateY(-2px);
}

/* Kitchen Display System */
.kds-board {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    min-height: 420px;
}

.kds-column {
    background: rgba(18, 15, 12, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 18px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.kds-column-pending .kds-column-header { border-top: 3px solid #f39c12; }
.kds-column-preparing .kds-column-header { border-top: 3px solid #e74c3c; }
.kds-column-ready .kds-column-header { border-top: 3px solid #2ecc71; }
.kds-column-completed .kds-column-header { border-top: 3px solid #3498db; }

.kds-column-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 14px;
    font-size: 0.82rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--cream-light);
    background: rgba(0, 0, 0, 0.2);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.kds-count {
    background: rgba(255, 255, 255, 0.08);
    padding: 2px 9px;
    border-radius: 20px;
    font-size: 0.78rem;
}

.kds-cards {
    flex: 1;
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    overflow-y: auto;
    max-height: 65vh;
}

.kds-empty {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.82rem;
    padding: 24px 12px;
}

.kds-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 12px;
    transition: border-color 0.2s ease;
}

.kds-card:hover {
    border-color: rgba(212, 175, 55, 0.25);
}

.kds-card-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 8px;
}

.kds-order-id {
    font-weight: 700;
    color: var(--gold-primary);
    font-size: 0.95rem;
}

.kds-table {
    font-size: 0.78rem;
    color: var(--text-muted);
}

.kds-time {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-variant-numeric: tabular-nums;
}

.kds-items {
    list-style: none;
    padding: 0;
    margin: 0 0 8px;
    font-size: 0.82rem;
}

.kds-items li {
    display: flex;
    gap: 6px;
    padding: 3px 0;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.05);
}

.kds-qty {
    font-weight: 700;
    color: var(--gold-primary);
    min-width: 24px;
}

.kds-notes {
    font-size: 0.75rem;
    color: #f39c12;
    background: rgba(243, 156, 18, 0.1);
    padding: 6px 8px;
    border-radius: 8px;
    margin-bottom: 8px;
}

.kds-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.kds-item-count {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.kds-total {
    font-weight: 700;
    color: var(--gold-primary);
}

.live-indicator {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.78rem;
    color: var(--text-muted);
}

.live-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--success-color);
    animation: pulse 2s infinite;
}

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

/* Cashier */
.cashier-order-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 14px;
    transition: border-color 0.2s ease;
}

.cashier-order-card:hover {
    border-color: rgba(212, 175, 55, 0.25);
}

.cashier-table-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 12px;
    font-weight: 800;
    font-size: 1rem;
}

.cashier-order-paid {
    opacity: 0.92;
    border-style: dashed;
}

.kds-awaiting-pay {
    font-size: 0.72rem;
    font-weight: 600;
    color: #2ecc71;
    background: rgba(46, 204, 113, 0.12);
    padding: 4px 10px;
    border-radius: 8px;
    white-space: nowrap;
}

.invoice-preview {
    min-height: 320px;
}

@media (max-width: 991px) {
    .invoice-preview-panel {
        position: sticky;
        bottom: 0;
        z-index: 10;
    }

    .invoice-preview {
        min-height: 200px;
    }
}

.receipt-preview-wrap {
    display: flex;
    justify-content: center;
    padding: 8px 0 16px;
}

.receipt-preview-wrap .receipt-sheet {
    width: 100%;
    max-width: 340px;
    color: #1a1510;
    background: #fffdf8;
    border-color: rgba(212, 175, 55, 0.55);
}

.receipt-preview-wrap .receipt-brand-name,
.receipt-preview-wrap .receipt-total-row--grand span:last-child {
    color: #5c4a1a;
}

.invoice-doc {
    font-size: 0.88rem;
}

.invoice-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 14px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.invoice-header h4 {
    font-family: 'Playfair Display', serif;
    color: var(--gold-primary);
    margin: 0;
    font-size: 1.1rem;
}

.invoice-badge {
    background: rgba(212, 175, 55, 0.15);
    color: var(--gold-primary);
    padding: 3px 10px;
    border-radius: 6px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.1em;
}

.invoice-meta {
    display: flex;
    gap: 16px;
    font-size: 0.82rem;
    color: var(--text-muted);
}

.invoice-table {
    width: 100%;
    font-size: 0.82rem;
    margin: 12px 0;
}

.invoice-table th {
    color: var(--text-muted);
    font-weight: 500;
    padding: 6px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.invoice-table td {
    padding: 6px 0;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.05);
}

.invoice-totals {
    margin-top: 12px;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.invoice-totals div {
    display: flex;
    justify-content: space-between;
    padding: 3px 0;
    font-size: 0.84rem;
    color: var(--text-muted);
}

.invoice-grand {
    font-weight: 700 !important;
    font-size: 1rem !important;
    color: var(--gold-primary) !important;
    margin-top: 6px;
    padding-top: 8px !important;
    border-top: 2px solid rgba(212, 175, 55, 0.3) !important;
}

.payment-summary {
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.staff-modal {
    background: var(--bg-secondary);
    border: 1px solid var(--glass-border);
    color: var(--cream-light);
}

/* Reports */
.reports-kpi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 14px;
}

.kpi-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 20px;
}

.kpi-card.kpi-highlight {
    border-color: rgba(212, 175, 55, 0.35);
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.08), rgba(30, 25, 20, 0.65));
}

.kpi-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    margin-bottom: 6px;
}

.kpi-value {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--cream-light);
}

.pipeline-stats .pipeline-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.06);
    font-size: 0.88rem;
}

.pipeline-stats .pipeline-row:last-child {
    border-bottom: none;
}

.chart-tabs .nav-link {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text-muted);
    border-radius: 8px;
    padding: 6px 14px;
    font-size: 0.8rem;
}

.chart-tabs .nav-link.active {
    background: rgba(212, 175, 55, 0.15);
    border-color: rgba(212, 175, 55, 0.3);
    color: var(--gold-primary);
}

.chart-wrap {
    padding: 12px 0;
    min-height: 280px;
}

/* Settings tabs */
.settings-tabs .nav-link {
    border-radius: 10px;
    color: var(--text-muted);
    font-size: 0.85rem;
    padding: 10px 16px;
    border: 1px solid transparent;
}

.settings-tabs .nav-link.active {
    background: rgba(212, 175, 55, 0.12);
    border-color: rgba(212, 175, 55, 0.25);
    color: var(--gold-primary);
}

/* Login full-page layout */
.auth-fullpage {
    position: relative;
    min-height: 100vh;
    width: 100%;
    background-image: var(--auth-bg);
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.auth-fullpage-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(105deg, rgba(8, 7, 5, 0.88) 0%, rgba(8, 7, 5, 0.55) 50%, rgba(8, 7, 5, 0.75) 100%);
}

.auth-fullpage-inner {
    position: relative;
    z-index: 2;
    min-height: 100vh;
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 48px 40px;
    display: grid;
    grid-template-columns: 1fr minmax(320px, 420px);
    gap: 48px;
    align-items: center;
}

.auth-fullpage-brand {
    padding-right: 20px;
}

.auth-fullpage-logo {
    width: 80px;
    height: 80px;
    border-radius: 18px;
    object-fit: cover;
    border: 2px solid rgba(212, 175, 55, 0.35);
    margin-bottom: 20px;
}

.auth-fullpage-brand h1 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2rem, 4vw, 3rem);
    color: var(--gold-hover);
    margin: 0 0 12px;
}

.auth-fullpage-tagline {
    font-size: 1.05rem;
    color: rgba(253, 251, 247, 0.82);
    max-width: 520px;
    line-height: 1.6;
    margin-bottom: 28px;
}

.auth-fullpage-photos {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.auth-fullpage-photos img {
    width: 120px;
    height: 88px;
    object-fit: cover;
    border-radius: 14px;
    border: 1px solid rgba(212, 175, 55, 0.25);
}

.auth-fullpage-form-wrap {
    width: 100%;
}

.auth-login-card {
    width: 100%;
    margin: 0;
}

/* Legacy split (kept for compatibility) */
.auth-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 100vh;
    width: 100%;
}

.auth-split-hero {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
}

.auth-split-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: var(--auth-hero-image);
    background-size: cover;
    background-position: center;
}

.auth-split-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(8, 7, 5, 0.2) 0%, rgba(8, 7, 5, 0.92) 100%);
}

.auth-split-hero-content {
    position: relative;
    z-index: 2;
    padding: 40px;
}

.auth-split-hero-content h1 {
    font-family: 'Playfair Display', serif;
    font-size: 2.4rem;
    color: var(--gold-hover);
    margin: 0 0 8px;
}

.auth-split-form {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 24px;
    background: var(--bg-primary);
}

/* Theme variants */
html[data-theme="light-cream"] {
    --bg-primary: #f8f4ec;
    --bg-secondary: #ede6d8;
    --cream-light: #2a2218;
    --text-muted: #6b5f4f;
    --glass-bg: rgba(255, 255, 255, 0.85);
    --glass-border: rgba(180, 140, 60, 0.2);
}

html[data-theme="classic-red"] {
    --bg-primary: #1a0a0a;
    --bg-secondary: #2d1212;
    --gold-primary: #c9a227;
}

/* Responsive */
@media (max-width: 1200px) {
    .kds-board {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 769px) and (max-width: 1200px) {
    .kds-board--scroll {
        display: flex;
        overflow-x: auto;
        gap: 14px;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 8px;
    }

    .kds-board--scroll .kds-column {
        flex: 0 0 min(320px, 85vw);
        scroll-snap-align: start;
        min-height: 380px;
    }
}

@media (max-width: 992px) {
    .auth-fullpage-inner {
        grid-template-columns: 1fr;
        padding: 32px 20px;
        gap: 32px;
    }

    .auth-fullpage-brand {
        text-align: center;
        padding-right: 0;
    }

    .auth-fullpage-tagline {
        margin-left: auto;
        margin-right: auto;
    }

    .auth-fullpage-photos {
        justify-content: center;
    }

    .staff-sidebar {
        transform: translateX(-100%);
    }

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

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

    .staff-menu-toggle {
        display: inline-flex;
    }

    .auth-split {
        grid-template-columns: 1fr;
    }

    .auth-split-hero {
        min-height: 220px;
    }
}

@media (max-width: 768px) {
    .kds-board {
        grid-template-columns: 1fr;
    }

    .staff-content {
        padding: 16px;
    }

    .staff-topbar {
        padding: 12px 16px;
    }

    .staff-topbar-title {
        font-size: 1.05rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .staff-topbar-meta .role-badge {
        font-size: 0.65rem;
        padding: 4px 8px;
    }

    .staff-panel {
        padding: 16px;
        border-radius: 16px;
    }

    .settings-tabs .nav-link,
    .chart-tabs .nav-link {
        font-size: 0.78rem;
        padding: 8px 12px;
    }

    .chart-tabs {
        flex-wrap: wrap;
        width: 100%;
    }

    .chart-tabs .nav-item {
        flex: 1 1 auto;
    }

    .chart-tabs .nav-link {
        width: 100%;
        text-align: center;
    }

    .dashboard-hero-content h1 {
        font-size: 1.6rem;
    }

    .dashboard-gallery {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Staff sidebar mobile backdrop */
.staff-sidebar-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    z-index: 1035;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}

.staff-sidebar-backdrop.show {
    display: block;
    opacity: 1;
    pointer-events: auto;
}

body.staff-sidebar-open {
    overflow: hidden;
}

/* Settings opening hours */
.settings-hours-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.04);
}

.settings-hours-day {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--cream-light);
    min-width: 90px;
    flex-shrink: 0;
}

.settings-hours-times {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.settings-hours-times input[type="time"] {
    width: 110px;
    font-size: 0.85rem;
    padding: 4px 8px;
}

@media (max-width: 576px) {
    .settings-hours-row {
        flex-direction: column;
        align-items: stretch;
    }

    .settings-hours-times {
        justify-content: stretch;
    }

    .settings-hours-times input[type="time"] {
        flex: 1;
        min-width: 0;
        width: auto;
    }
}

/* Users: mobile card layout */
.users-table-wrap {
    display: block;
}

.users-mobile-list {
    display: none;
}

.user-mobile-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 16px;
    margin-bottom: 12px;
}

.user-mobile-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 10px;
}

.user-mobile-card-name {
    font-weight: 600;
    color: var(--cream-light);
    font-size: 1rem;
}

.user-mobile-card-email {
    font-size: 0.82rem;
    color: var(--text-muted);
    word-break: break-all;
    margin-top: 4px;
}

.user-mobile-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}

.user-mobile-card-actions {
    display: flex;
    gap: 8px;
}

.user-mobile-card-actions .btn {
    flex: 1;
}

@media (max-width: 767px) {
    .users-table-wrap {
        display: none;
    }

    .users-mobile-list {
        display: block;
    }
}

/* Catalog modal variant panel */
.catalog-variant-panel {
    border-left: none;
    padding-left: 0;
}

@media (min-width: 768px) {
    .catalog-variant-panel {
        border-left: 1px solid rgba(255, 255, 255, 0.15) !important;
        padding-left: 1.5rem !important;
    }
}

@media (max-width: 992px) {
    .auth-fullpage {
        background-attachment: scroll;
    }
}
