/* ========================================================
   POWER BEAUTY HAIRS — ADMIN STYLESHEET
   Luxe gold + black editorial aesthetic
   ======================================================== */

:root {
    --bg-void: #0a0908;
    --bg-onyx: #14120f;
    --bg-obsidian: #1a1714;
    --bg-ember: #221e19;
    --bg-dust: #2a2621;

    --gold-primary: #d4af37;
    --gold-soft: #e8c96c;
    --gold-deep: #a88628;
    --gold-dark: #6b5518;
    --gold-glow: rgba(212, 175, 55, 0.15);

    --ink-pearl: #faf7f2;
    --ink-ivory: #e8e3d8;
    --ink-ash: #8a8478;
    --ink-mute: #5a554c;

    --success: #6fb98f;
    --danger: #c85a5a;
    --warn: #e0a34a;
    --info: #7ba8c9;

    --sidebar-w: 260px;

    --font-display: 'Playfair Display', Georgia, serif;
    --font-body: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-editorial: 'Cormorant Garamond', Georgia, serif;

    --shadow-sm: 0 1px 2px rgba(0,0,0,0.4);
    --shadow-md: 0 4px 16px rgba(0,0,0,0.5);
    --shadow-lg: 0 12px 40px rgba(0,0,0,0.7);
    --shadow-gold: 0 0 24px rgba(212,175,55,0.2);

    --radius-sm: 6px;
    --radius: 10px;
    --radius-lg: 16px;

    --transition: 200ms cubic-bezier(0.4, 0, 0.2, 1);
}

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

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    background: var(--bg-void);
    color: var(--ink-ivory);
    font-size: 15px;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
}

a { color: var(--gold-primary); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--gold-soft); }

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

/* ========== TYPOGRAPHY ========== */
h1, h2, h3, h4, h5 { font-family: var(--font-display); color: var(--ink-pearl); font-weight: 700; letter-spacing: -0.01em; line-height: 1.2; }
h1 { font-size: 2rem; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.2rem; }
h4 { font-size: 1rem; }

.display { font-family: var(--font-display); }
.editorial { font-family: var(--font-editorial); font-style: italic; }

.gold-text {
    background: linear-gradient(135deg, #d4af37 0%, #f4e5a1 50%, #a88628 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: var(--gold-primary);
}

.muted { color: var(--ink-ash); }
.small { font-size: 0.85rem; }
.tiny { font-size: 0.75rem; }

.label {
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-size: 0.7rem;
    color: var(--gold-deep);
    font-weight: 600;
}

/* ========== LAYOUT — FIXED SIDEBAR APPROACH ========== */
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: var(--sidebar-w);
    height: 100vh;
    background: linear-gradient(180deg, var(--bg-obsidian) 0%, var(--bg-void) 100%);
    border-right: 1px solid rgba(212, 175, 55, 0.1);
    z-index: 100;
    overflow-y: auto;
    transition: transform var(--transition);
}

.sidebar-inner {
    display: flex;
    flex-direction: column;
    min-height: 100%;
    padding: 24px 0;
}

.sidebar::-webkit-scrollbar { width: 4px; }
.sidebar::-webkit-scrollbar-track { background: transparent; }
.sidebar::-webkit-scrollbar-thumb { background: var(--gold-dark); border-radius: 2px; }

.content {
    margin-left: var(--sidebar-w);
    min-height: 100vh;
    padding: 32px 40px;
    max-width: calc(100vw - var(--sidebar-w));
}

/* ========== BRAND ========== */
.brand {
    padding: 0 24px 24px;
    border-bottom: 1px solid rgba(212, 175, 55, 0.08);
    margin-bottom: 20px;
}

.brand-logo {
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--ink-pearl);
    letter-spacing: -0.01em;
}

.brand-logo .crown { color: var(--gold-primary); font-size: 1rem; margin-right: 2px; }

.brand-tagline {
    font-family: var(--font-editorial);
    font-style: italic;
    color: var(--ink-ash);
    font-size: 0.85rem;
    margin-top: 4px;
}

/* ========== NAV ========== */
.nav { flex: 1; padding: 0 16px; }

.nav-group { margin-bottom: 24px; }

.nav-title {
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-size: 0.68rem;
    color: var(--gold-dark);
    font-weight: 700;
    padding: 0 12px 10px;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 8px;
    color: var(--ink-ash);
    font-size: 0.92rem;
    font-weight: 500;
    margin-bottom: 2px;
    transition: all var(--transition);
    position: relative;
}

.nav-item:hover {
    background: rgba(212, 175, 55, 0.06);
    color: var(--ink-ivory);
}

.nav-item.active {
    background: linear-gradient(90deg, rgba(212, 175, 55, 0.15), rgba(212, 175, 55, 0.02));
    color: var(--gold-primary);
    font-weight: 600;
}

.nav-item.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 20%;
    bottom: 20%;
    width: 3px;
    background: var(--gold-primary);
    border-radius: 0 2px 2px 0;
}

.nav-icon { width: 18px; height: 18px; flex-shrink: 0; }

/* ========== SIDEBAR USER ========== */
.sidebar-user {
    margin: 16px;
    padding: 14px;
    background: rgba(212, 175, 55, 0.04);
    border: 1px solid rgba(212, 175, 55, 0.1);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    gap: 12px;
}

.sidebar-user-info { flex: 1; min-width: 0; }

.sidebar-user-name {
    font-weight: 600;
    color: var(--ink-pearl);
    font-size: 0.9rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sidebar-user-role {
    font-size: 0.72rem;
    color: var(--gold-deep);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.logout-link {
    color: var(--ink-ash);
    padding: 6px;
    border-radius: 6px;
    transition: all var(--transition);
}

.logout-link:hover { background: rgba(200, 90, 90, 0.1); color: var(--danger); }

/* ========== AVATAR ========== */
.avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--gold-primary), var(--gold-deep));
    color: var(--bg-void);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.85rem;
    flex-shrink: 0;
    border: 1px solid rgba(212, 175, 55, 0.3);
}
.avatar.avatar-sm { width: 32px; height: 32px; font-size: 0.75rem; }
.avatar.avatar-lg { width: 56px; height: 56px; font-size: 1.1rem; }

/* ========== MOBILE MENU ========== */
.mobile-menu-btn {
    display: none;
    position: fixed;
    top: 16px;
    left: 16px;
    z-index: 110;
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: var(--bg-obsidian);
    border: 1px solid rgba(212, 175, 55, 0.15);
    color: var(--gold-primary);
    cursor: pointer;
    align-items: center;
    justify-content: center;
}

.sidebar-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 99;
    backdrop-filter: blur(4px);
}

.sidebar-backdrop.active { display: block; }

/* ========== PAGE HEADER ========== */
.page-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 32px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(212, 175, 55, 0.08);
}

.page-title {
    font-size: clamp(1.75rem, 4vw, 2.25rem);
    font-family: var(--font-display);
    font-weight: 700;
    margin-bottom: 4px;
    letter-spacing: -0.02em;
}

.page-subtitle {
    font-family: var(--font-editorial);
    font-style: italic;
    color: var(--ink-ash);
    font-size: 1rem;
}

/* ========== CARDS ========== */
.card {
    background: linear-gradient(180deg, var(--bg-onyx), var(--bg-obsidian));
    border: 1px solid rgba(212, 175, 55, 0.08);
    border-radius: var(--radius-lg);
    padding: 24px;
    position: relative;
    transition: border var(--transition);
}

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

/* ========== METRICS ========== */
.metric-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.metric {
    background: linear-gradient(180deg, var(--bg-onyx), var(--bg-obsidian));
    border: 1px solid rgba(212, 175, 55, 0.08);
    border-radius: var(--radius-lg);
    padding: 24px;
    position: relative;
    overflow: hidden;
}

.metric::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold-primary), transparent);
    opacity: 0.3;
}

.metric-label {
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.7rem;
    color: var(--gold-deep);
    font-weight: 600;
    margin-bottom: 12px;
}

.metric-value {
    font-family: var(--font-display);
    font-size: 1.9rem;
    font-weight: 700;
    color: var(--ink-pearl);
    letter-spacing: -0.02em;
    line-height: 1.1;
    margin-bottom: 8px;
}

.metric-delta { font-size: 0.78rem; font-weight: 500; }
.metric-delta.up { color: var(--success); }
.metric-delta.down { color: var(--danger); }
.metric-delta.muted { color: var(--ink-ash); }

/* ========== BUTTONS ========== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 18px;
    border: 1px solid transparent;
    border-radius: 8px;
    font-family: var(--font-body);
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition);
    white-space: nowrap;
    text-decoration: none;
    letter-spacing: 0.01em;
}

.btn-primary {
    background: linear-gradient(135deg, var(--gold-primary), var(--gold-deep));
    color: var(--bg-void);
    border-color: var(--gold-deep);
}
.btn-primary:hover {
    background: linear-gradient(135deg, var(--gold-soft), var(--gold-primary));
    color: var(--bg-void);
    box-shadow: var(--shadow-gold);
    transform: translateY(-1px);
}

.btn-ghost {
    background: transparent;
    color: var(--ink-ivory);
    border-color: rgba(212, 175, 55, 0.2);
}
.btn-ghost:hover { background: rgba(212, 175, 55, 0.06); border-color: var(--gold-deep); color: var(--gold-primary); }

.btn-danger { background: rgba(200, 90, 90, 0.1); color: var(--danger); border-color: rgba(200, 90, 90, 0.3); }
.btn-danger:hover { background: var(--danger); color: white; }

.btn-sm { padding: 6px 12px; font-size: 0.78rem; }
.btn-lg { padding: 14px 24px; font-size: 1rem; }
.btn-icon { padding: 8px; min-width: 36px; }
.w-full { width: 100%; }

/* ========== FORMS ========== */
.form-group { margin-bottom: 16px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.form-row-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 16px; margin-bottom: 16px; }

.form-label {
    display: block;
    margin-bottom: 6px;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--ink-ivory);
    letter-spacing: 0.02em;
}

.form-input, .form-select, .form-textarea {
    width: 100%;
    padding: 10px 14px;
    background: var(--bg-void);
    border: 1px solid rgba(212, 175, 55, 0.15);
    border-radius: 8px;
    color: var(--ink-pearl);
    font-family: var(--font-body);
    font-size: 0.92rem;
    transition: all var(--transition);
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
    outline: none;
    border-color: var(--gold-primary);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.15);
    background: var(--bg-obsidian);
}

.form-textarea { min-height: 90px; resize: vertical; font-family: var(--font-body); }

.form-help { font-size: 0.75rem; color: var(--ink-ash); margin-top: 4px; }

/* ========== TABLES ========== */
.table-wrap {
    background: var(--bg-onyx);
    border: 1px solid rgba(212, 175, 55, 0.08);
    border-radius: var(--radius-lg);
    overflow: hidden;
    overflow-x: auto;
}

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

.table th {
    background: var(--bg-obsidian);
    padding: 12px 16px;
    text-align: left;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--gold-deep);
    font-weight: 700;
    border-bottom: 1px solid rgba(212, 175, 55, 0.1);
}

.table td {
    padding: 14px 16px;
    border-bottom: 1px solid rgba(212, 175, 55, 0.05);
    font-size: 0.88rem;
    color: var(--ink-ivory);
}

.table tr:last-child td { border-bottom: none; }
.table tr:hover td { background: rgba(212, 175, 55, 0.025); }

/* ========== BADGES ========== */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    white-space: nowrap;
}

/* ========== MODAL ========== */
.modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(6px);
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-backdrop.active { display: flex; }

.modal {
    background: linear-gradient(180deg, var(--bg-obsidian), var(--bg-onyx));
    border: 1px solid rgba(212, 175, 55, 0.15);
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 560px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-lg);
    animation: modalIn 0.25s ease;
}

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

.modal-header {
    padding: 20px 24px;
    border-bottom: 1px solid rgba(212, 175, 55, 0.08);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.modal-close {
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--ink-ash);
    font-size: 1.6rem;
    border-radius: 6px;
}

.modal-close:hover { background: rgba(200, 90, 90, 0.1); color: var(--danger); }

.modal-body { padding: 24px; }

.modal-footer {
    padding: 16px 24px;
    border-top: 1px solid rgba(212, 175, 55, 0.08);
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

/* ========== ALERTS ========== */
.alert {
    padding: 12px 16px;
    border-radius: 10px;
    margin-bottom: 16px;
    border-left: 3px solid;
    font-size: 0.9rem;
    animation: slideDown 0.3s ease;
}

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

.alert-success { background: rgba(111, 185, 143, 0.1); border-color: var(--success); color: var(--success); }
.alert-error { background: rgba(200, 90, 90, 0.1); border-color: var(--danger); color: var(--danger); }
.alert-info { background: rgba(123, 168, 201, 0.1); border-color: var(--info); color: var(--info); }
.alert-warn { background: rgba(224, 163, 74, 0.1); border-color: var(--warn); color: var(--warn); }

/* ========== UTILITY ========== */
.flex { display: flex; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.gap-2 { gap: 8px; }
.gap-3 { gap: 12px; }
.gap-4 { gap: 16px; }
.mb-2 { margin-bottom: 8px; }
.mb-3 { margin-bottom: 12px; }
.mb-4 { margin-bottom: 16px; }
.mb-6 { margin-bottom: 24px; }
.mt-2 { margin-top: 8px; }
.mt-3 { margin-top: 12px; }
.mt-4 { margin-top: 16px; }
.mt-6 { margin-top: 24px; }
.text-center { text-align: center; }

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

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 16px;
}

.product-card {
    background: linear-gradient(180deg, var(--bg-onyx), var(--bg-obsidian));
    border: 1px solid rgba(212, 175, 55, 0.08);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all var(--transition);
}

.product-card:hover {
    border-color: rgba(212, 175, 55, 0.25);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.product-image {
    aspect-ratio: 1;
    background: var(--bg-ember);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

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

.product-image .placeholder {
    font-family: var(--font-display);
    font-style: italic;
    color: var(--gold-deep);
    font-size: 3rem;
    opacity: 0.5;
}

.stock-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(10, 9, 8, 0.85);
    color: var(--gold-primary);
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 600;
    border: 1px solid var(--gold-dark);
}

.stock-badge.low { color: var(--danger); border-color: var(--danger); }

.product-info { padding: 14px; }

.product-name {
    font-weight: 600;
    color: var(--ink-pearl);
    margin-bottom: 4px;
    font-size: 0.95rem;
    line-height: 1.3;
}

.product-meta { font-size: 0.75rem; color: var(--ink-ash); margin-bottom: 8px; }

.product-price {
    font-family: var(--font-display);
    font-size: 1.1rem;
    color: var(--gold-primary);
    font-weight: 700;
}

/* ========== EMPTY STATE ========== */
.empty {
    text-align: center;
    padding: 48px 20px;
    color: var(--ink-ash);
}

.empty .icon {
    font-size: 3rem;
    color: var(--gold-deep);
    opacity: 0.3;
    margin-bottom: 16px;
    font-family: var(--font-display);
}

.empty h3 { color: var(--ink-ivory); margin-bottom: 6px; }
.empty p { color: var(--ink-ash); }

/* ========== STAGGER ANIMATION ========== */
.stagger > * { animation: fadeUp 0.4s ease backwards; }
.stagger > *:nth-child(1) { animation-delay: 0.02s; }
.stagger > *:nth-child(2) { animation-delay: 0.06s; }
.stagger > *:nth-child(3) { animation-delay: 0.1s; }
.stagger > *:nth-child(4) { animation-delay: 0.14s; }
.stagger > *:nth-child(5) { animation-delay: 0.18s; }
.stagger > *:nth-child(n+6) { animation-delay: 0.22s; }

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

/* ========== LOGIN PAGE ========== */
.login-wrap {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: radial-gradient(ellipse at top, var(--bg-ember), var(--bg-void));
}

.login-card {
    width: 100%;
    max-width: 420px;
    background: linear-gradient(180deg, var(--bg-obsidian), var(--bg-onyx));
    border: 1px solid rgba(212, 175, 55, 0.15);
    border-radius: var(--radius-lg);
    padding: 40px 32px;
    box-shadow: var(--shadow-lg);
}

.login-brand { text-align: center; margin-bottom: 32px; }
.login-brand .logo { font-family: var(--font-display); font-size: 2rem; font-weight: 700; }
.login-brand .tagline { font-family: var(--font-editorial); font-style: italic; color: var(--ink-ash); margin-top: 4px; }

/* ========== RESPONSIVE ========== */
@media (max-width: 1024px) {
    .two-col { grid-template-columns: 1fr; }
    .content { padding: 24px; }
}

@media (max-width: 900px) {
    .mobile-menu-btn { display: flex; }
    .sidebar { transform: translateX(-100%); }
    .sidebar.open { transform: translateX(0); box-shadow: var(--shadow-lg); }
    .content { margin-left: 0; max-width: 100vw; padding: 70px 20px 20px; }
}

@media (max-width: 600px) {
    .content { padding: 70px 16px 16px; }
    .card, .metric { padding: 16px; }
    .metric-value { font-size: 1.5rem; }
    .form-row, .form-row-3 { grid-template-columns: 1fr; }
    .page-header { flex-direction: column; align-items: flex-start; }
    .page-title { font-size: 1.5rem; }
    .modal { max-height: 95vh; }
    .modal-body { padding: 16px; }
    .table th, .table td { padding: 10px; font-size: 0.82rem; }
}

/* ========== PRINT ========== */
@media print {
    .sidebar, .mobile-menu-btn, .sidebar-backdrop, .btn, .modal-backdrop, .no-print { display: none !important; }
    .content { margin-left: 0 !important; padding: 0 !important; max-width: 100% !important; }
    body { background: white; color: black; }
}

/* ========== MISSING / POS / EXTRA COMPONENTS ========== */
.metric-icon {
    width: 36px; height: 36px;
    border-radius: 8px;
    background: rgba(212, 175, 55, 0.08);
    color: var(--gold-primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
}

.actions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 14px;
    margin-bottom: 24px;
}

.action-card {
    background: linear-gradient(180deg, var(--bg-onyx), var(--bg-obsidian));
    border: 1px solid rgba(212, 175, 55, 0.1);
    border-radius: var(--radius);
    padding: 18px;
    text-decoration: none;
    color: var(--ink-ivory);
    transition: all var(--transition);
    display: flex;
    align-items: center;
    gap: 12px;
}

.action-card:hover {
    border-color: rgba(212, 175, 55, 0.3);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.action-card .icon {
    width: 40px; height: 40px;
    border-radius: 8px;
    background: rgba(212, 175, 55, 0.1);
    color: var(--gold-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.action-card .title { font-weight: 600; color: var(--ink-pearl); }
.action-card .desc { font-size: 0.78rem; color: var(--ink-ash); }

.logo-mark {
    width: 64px; height: 64px;
    margin: 0 auto 16px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--gold-primary), var(--gold-deep));
    display: flex; align-items: center; justify-content: center;
    font-family: var(--font-display); font-style: italic; font-size: 2rem;
    color: var(--bg-void); font-weight: 700;
}

.divider-gold {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.4), transparent);
    margin: 20px 0;
}

/* ========== POS ========== */
.pos-layout {
    display: grid;
    grid-template-columns: 1.6fr 1fr;
    gap: 20px;
    align-items: start;
    min-height: calc(100vh - 140px);
}

.pos-tab {
    padding: 10px 18px;
    border: 1px solid rgba(212, 175, 55, 0.15);
    border-radius: 8px;
    background: transparent;
    color: var(--ink-ivory);
    cursor: pointer;
    font-family: inherit;
    font-size: 0.88rem;
    font-weight: 600;
    transition: all var(--transition);
}

.pos-tab:hover { background: rgba(212, 175, 55, 0.06); }

.pos-tab.active {
    background: linear-gradient(135deg, var(--gold-primary), var(--gold-deep));
    color: var(--bg-void);
    border-color: var(--gold-deep);
}

.pos-items-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 12px;
}

.pos-item {
    background: var(--bg-obsidian);
    border: 1px solid rgba(212, 175, 55, 0.08);
    border-radius: var(--radius);
    padding: 12px;
    cursor: pointer;
    transition: all var(--transition);
    text-align: left;
}

.pos-item:hover {
    border-color: var(--gold-primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.pos-item.disabled { opacity: 0.4; pointer-events: none; }

.pos-item .pos-item-image {
    aspect-ratio: 1;
    background: var(--bg-ember);
    border-radius: 6px;
    margin-bottom: 10px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pos-item .pos-item-image img {
    width: 100%; height: 100%; object-fit: cover;
}

.pos-item .pos-item-name {
    font-weight: 600;
    color: var(--ink-pearl);
    font-size: 0.88rem;
    margin-bottom: 4px;
    line-height: 1.3;
}

.pos-item .pos-item-meta {
    font-size: 0.72rem;
    color: var(--ink-ash);
    margin-bottom: 6px;
}

.pos-item .pos-item-price {
    font-family: var(--font-display);
    font-weight: 700;
    color: var(--gold-primary);
    font-size: 0.95rem;
}

.product-item, .service-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: var(--bg-obsidian);
    border: 1px solid rgba(212, 175, 55, 0.08);
    border-radius: var(--radius);
    margin-bottom: 8px;
}

.product-item:hover, .service-item:hover {
    border-color: rgba(212, 175, 55, 0.25);
}

.cat-btn {
    padding: 8px 14px;
    border-radius: 999px;
    border: 1px solid rgba(212, 175, 55, 0.15);
    background: transparent;
    color: var(--ink-ivory);
    font-size: 0.82rem;
    font-family: inherit;
    cursor: pointer;
    transition: all var(--transition);
}

.cat-btn:hover, .cat-btn.active {
    background: var(--gold-primary);
    color: var(--bg-void);
    border-color: var(--gold-primary);
}

/* ========== FORM CHECKBOX STYLING ========== */
input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--gold-primary);
    cursor: pointer;
}

input[type="radio"] {
    accent-color: var(--gold-primary);
    cursor: pointer;
}

/* ========== MODAL QUICK RESPONSIVE OVERRIDES ========== */
@media (max-width: 900px) {
    .pos-layout { grid-template-columns: 1fr; }
}
