/* ==========================================
   POTTER'S HAND - LUXURY WHITE & GOLD DESIGN SYSTEM
   ========================================== */

:root {
    --bg-main: #fcfbf9;
    --bg-card: #ffffff;
    --bg-card-hover: #f8f6f0;
    --bg-glass: rgba(255, 255, 255, 0.95);
    --border-color: #e8e3d8;
    --border-gold: #c59b27;
    --text-main: #181613;
    --text-muted: #6b6355;
    --gold: #b38714;
    --gold-light: #dfba73;
    --gold-dark: #8c6809;
    --accent-emerald: #059669;
    --accent-blue: #0284c7;
    --accent-red: #dc2626;
    --font-heading: 'Cinzel', 'Playfair Display', serif;
    --font-body: 'Inter', system-ui, -apple-system, sans-serif;
}

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

body {
    background-color: var(--bg-main);
    color: var(--text-main);
    font-family: var(--font-body);
    min-height: 100vh;
    overflow-x: hidden;
    line-height: 1.5;
}

/* Typography */
h1, h2, h3, h4, .brand-title {
    font-family: var(--font-heading);
    letter-spacing: 0.05em;
    color: #181613;
}

/* Top Announcement Bar */
.top-announcement-bar {
    background: #11100e;
    color: #f1f5f9;
    padding: 6px 20px;
    font-size: 0.75rem;
    font-weight: 600;
    border-bottom: 1px solid #2e2c28;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 1001;
}

/* Home Header Navigation Bar */
.home-nav {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 2rem;
    max-width: 100%;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

/* Royal Modern Dark Board Logo Badge */
.brand-wrapper {
    display: inline-flex !important;
    align-items: center !important;
    background: linear-gradient(135deg, #181614 0%, #0d0c0a 100%) !important;
    padding: 6px 14px !important;
    border-radius: 8px !important;
    border: 1px solid rgba(223, 186, 115, 0.5) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2) !important;
    text-decoration: none !important;
    height: 48px !important;
}
.brand-wrapper img, .brand-nav-logo {
    height: 34px !important;
    max-height: 34px !important;
    width: auto !important;
    max-width: 180px !important;
    object-fit: contain !important;
    display: block !important;
}

/* Nav Links */
.home-nav-links {
    display: flex;
    gap: 1.8rem;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
}
.home-nav-links a {
    color: #334155;
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    transition: color 0.2s ease;
    text-transform: uppercase;
}
.home-nav-links a:hover, .home-nav-links a.active {
    color: var(--gold);
}

/* Admin / Retailer Navbar */
.navbar {
    background-color: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
    height: 72px;
    display: flex;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}
.nav-container {
    max-width: 1400px;
    width: 100%;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.nav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Mobile Drawer & Burger */
.burger-btn {
    display: none;
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--gold);
    font-size: 1.35rem;
    padding: 4px 10px;
    border-radius: 8px;
    cursor: pointer;
}
.mobile-drawer {
    display: none;
    position: fixed;
    top: 72px; left: 0; right: 0;
    background: #ffffff;
    border-bottom: 2px solid var(--border-color);
    padding: 1.25rem 1.5rem;
    z-index: 999;
    flex-direction: column;
    gap: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}
.mobile-drawer.open {
    display: flex !important;
}
.mobile-drawer a {
    color: #1e293b;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 700;
    padding: 8px 0;
    border-bottom: 1px solid #f1f5f9;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 18px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    border: none;
}
.btn-gold {
    background: linear-gradient(135deg, #c59b27, #dfba73);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(197, 155, 39, 0.25);
}
.btn-gold:hover {
    background: linear-gradient(135deg, #b38714, #c59b27);
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(197, 155, 39, 0.35);
}
.btn-outline {
    background: #ffffff;
    color: #334155;
    border: 1px solid var(--border-color);
}
.btn-outline:hover {
    background: #f8fafc;
    border-color: var(--gold);
    color: var(--gold);
}

/* Hero Section with Perfect Face Framing */
.hero-banner-wrap {
    max-width: 1400px;
    margin: 1.5rem auto 2.5rem;
    padding: 0 1.5rem;
}
.mobile-hero-img-box {
    display: none;
}

/* Quick Nav Ribbon */
.quick-nav-ribbon {
    background: #ffffff;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    padding: 10px 16px;
    display: flex;
    justify-content: center;
    gap: 24px;
    flex-wrap: wrap;
    font-size: 0.82rem;
    font-weight: 600;
}
.quick-nav-ribbon a {
    color: #475569;
    text-decoration: none;
    transition: color 0.15s;
}
.quick-nav-ribbon a:hover {
    color: var(--gold);
}

/* Value Strip 4-Badges */
.value-strip {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    max-width: 1400px;
    margin: 0 auto 3rem;
    padding: 0 1.5rem;
}
.value-card {
    background: #ffffff;
    border: 1px solid var(--border-color);
    padding: 1.25rem;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 14px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
}
.value-icon {
    font-size: 1.8rem;
    color: var(--gold);
}
.value-title {
    font-size: 0.85rem;
    font-weight: 700;
    color: #0f172a;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.value-desc {
    font-size: 0.74rem;
    color: var(--text-muted);
}

/* Collections 4-Grid */
.category-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
    max-width: 1400px;
    margin: 0 auto 3.5rem;
    padding: 0 1.5rem;
}
.cat-card {
    position: relative;
    height: 380px;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 1.5rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
}
.cat-card:hover {
    transform: translateY(-5px);
    border-color: var(--gold);
    box-shadow: 0 15px 35px rgba(197, 155, 39, 0.2);
}
.cat-card-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center top;
    transition: transform 0.5s ease;
    z-index: 1;
}
.cat-card:hover .cat-card-bg {
    transform: scale(1.05);
}
.cat-card-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 35%, rgba(15, 23, 42, 0.85) 100%);
    z-index: 2;
}
.cat-card-content {
    position: relative;
    z-index: 3;
    color: #ffffff;
}
.cat-card-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 4px;
    color: #ffffff;
}
.cat-card-sub {
    font-size: 0.78rem;
    color: #cbd5e1;
    letter-spacing: 0.05em;
}

/* Main Layout & Cards */
.main-layout {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1.5rem;
}
.card {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

/* Tabs */
.tabs-nav {
    display: flex;
    gap: 8px;
    border-bottom: 2px solid var(--border-color);
    margin-bottom: 1.5rem;
    overflow-x: auto;
}
.tab-btn {
    background: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    padding: 10px 18px;
    color: #64748b;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s;
    white-space: nowrap;
    margin-bottom: -2px;
}
.tab-btn.active {
    color: #0f172a;
    border-bottom-color: var(--gold);
    background: rgba(197, 155, 39, 0.08);
    border-radius: 6px 6px 0 0;
}
.tab-btn:hover {
    color: var(--gold);
}

/* Tables */
.table-responsive {
    overflow-x: auto;
}
.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
    text-align: left;
}
.data-table th {
    background: #f8fafc;
    color: #475569;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.72rem;
    letter-spacing: 0.05em;
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-color);
}
.data-table td {
    padding: 14px 16px;
    border-bottom: 1px solid var(--border-color);
    color: #1e293b;
    vertical-align: middle;
}
.data-table tbody tr:hover {
    background: #f8fafc;
}

/* Badges */
.badge {
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 0.72rem;
    font-weight: 700;
    display: inline-block;
}
.badge-processing {
    background: #eff6ff;
    color: #2563eb;
    border: 1px solid #bfdbfe;
}
.badge-dispatched {
    background: #fefce8;
    color: #ca8a04;
    border: 1px solid #fef08a;
}
.badge-delivered {
    background: #f0fdf4;
    color: #16a34a;
    border: 1px solid #bbf7d0;
}

/* Form Controls */
.form-group {
    margin-bottom: 1rem;
}
.form-group label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    color: #334155;
    margin-bottom: 6px;
}
.form-input, .form-select {
    width: 100%;
    padding: 9px 12px;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    color: #0f172a;
    font-size: 0.85rem;
    outline: none;
    transition: border-color 0.2s;
}
.form-input:focus, .form-select:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(197, 155, 39, 0.15);
}

/* Modals */
.modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.65);
    backdrop-filter: blur(4px);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}
.modal.active {
    display: flex;
}
.modal-content {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    width: 100%;
    max-width: 600px;
    padding: 1.5rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    color: #0f172a;
}

/* User Profile Menu */
.user-profile-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #f8fafc;
    border: 1px solid var(--border-color);
    border-radius: 30px;
    padding: 4px 12px 4px 6px;
    cursor: pointer;
    font-size: 0.82rem;
    color: #0f172a;
}
.user-menu-dropdown {
    display: none;
    position: absolute;
    right: 0;
    top: calc(100% + 8px);
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    min-width: 220px;
    z-index: 1000;
    overflow: hidden;
}
.user-menu-dropdown.open {
    display: block;
}
.user-menu-header {
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-color);
    background: #f8fafc;
}
.user-menu-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    color: #334155;
    text-decoration: none;
    font-size: 0.85rem;
    cursor: pointer;
    border: none;
    background: transparent;
    width: 100%;
    text-align: left;
}
.user-menu-item:hover {
    background: #f1f5f9;
    color: var(--gold);
}
.user-menu-item.danger {
    color: #dc2626;
    border-top: 1px solid var(--border-color);
}
.user-menu-item.danger:hover {
    background: #fef2f2;
}

/* KPI Cards */
.kpi-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
    margin-bottom: 1.5rem;
}
.kpi-card {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.25rem;
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
}
.kpi-icon {
    font-size: 2rem;
}
.kpi-val {
    font-size: 1.5rem;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.1;
}
.kpi-label {
    font-size: 0.75rem;
    color: #64748b;
    margin-top: 4px;
}

/* Barcode Studio Specifics */
.barcode-studio-grid {
    display: grid;
    grid-template-columns: 380px 1fr;
    gap: 1.5rem;
}
.barcode-preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 12px;
    max-height: 600px;
    overflow-y: auto;
    padding: 12px;
    background: #f8fafc;
    border: 1px solid var(--border-color);
    border-radius: 8px;
}

/* Retailer Lot Grid */
.lot-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
}
.lot-card {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
    transition: transform 0.2s ease, border-color 0.2s ease;
}
.lot-card:hover {
    transform: translateY(-4px);
    border-color: var(--gold);
}

/* Footer */
footer {
    background: #ffffff;
    border-top: 1px solid var(--border-color);
    padding: 3.5rem 1.5rem 1.5rem;
    text-align: center;
    font-size: 0.85rem;
    color: #64748b;
    margin-top: 3.5rem;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .home-nav {
        padding: 0 1rem;
        height: 64px;
    }
    .home-nav-links {
        display: none;
    }
    .burger-btn {
        display: block;
    }
    .mobile-hero-img-box {
        display: none !important;
    }
    .value-strip, .category-grid, .kpi-grid, .barcode-studio-grid {
        grid-template-columns: 1fr;
    }
}


/* Collections Section Cards in White Theme */
.collection-lot-card {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
    transition: all 0.25s ease;
}
.collection-lot-card:hover {
    transform: translateY(-3px);
    border-color: var(--gold);
    box-shadow: 0 8px 25px rgba(197, 155, 39, 0.15);
}
.collection-lot-card h3 {
    color: #0f172a;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}
.collection-lot-card p {
    color: #475569;
    font-size: 0.85rem;
    line-height: 1.5;
}
.sub-gold {
    color: var(--gold);
    font-weight: 700;
    font-size: 0.78rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}
.section-header h2 {
    color: #0f172a;
    font-size: 1.8rem;
    margin: 4px 0 8px;
}



/* High Contrast White Theme Tabs Navigation */
.tabs-nav {
    display: flex;
    gap: 8px;
    border-bottom: 2px solid #e2e8f0;
    margin-bottom: 1.5rem;
    overflow-x: auto;
    background: #ffffff;
    padding: 6px 12px 0;
    border-radius: 8px 8px 0 0;
}
.tab-btn {
    background: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    padding: 10px 20px;
    color: #475569;
    font-weight: 700;
    font-size: 0.92rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
    white-space: nowrap;
    margin-bottom: -2px;
}
.tab-btn.active {
    color: #0f172a !important;
    border-bottom-color: #b38714 !important;
    background: #f8fafc !important;
    border-radius: 6px 6px 0 0;
    box-shadow: 0 -2px 6px rgba(0,0,0,0.02);
}
.tab-btn:hover {
    color: #0f172a;
    background: #f1f5f9;
}
.tab-btn .tab-text {
    font-weight: 700;
}
.card {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 12px !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04) !important;
    overflow: hidden !important;
}
.card h3 {
    color: #0f172a !important;
    font-weight: 800 !important;
}
.card p {
    color: #64748b !important;
}



/* Stacked Royal Dark Board for Hero & Footer */
.hero-brand-board {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #181614 0%, #0d0c0a 100%);
    padding: 18px 32px;
    border-radius: 14px;
    border: 1.5px solid rgba(223, 186, 115, 0.6);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25), inset 0 1px 2px rgba(255, 255, 255, 0.1);
    margin-bottom: 1.5rem;
    text-align: center;
}
.hero-pot-emblem {
    height: 58px !important;
    width: auto !important;
    object-fit: contain;
    margin-bottom: 8px;
    filter: drop-shadow(0 2px 6px rgba(0,0,0,0.6));
}
.hero-word-emblem {
    height: 28px !important;
    width: auto !important;
    object-fit: contain;
    margin-bottom: 6px;
    filter: drop-shadow(0 2px 6px rgba(0,0,0,0.6));
}
.hero-tagline-badge {
    font-family: 'Cinzel', serif;
    font-size: 0.72rem;
    color: #dfba73;
    font-weight: 800;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}
.hero-lead-text {
    font-size: 1.05rem;
    color: #0f172a;
    font-weight: 700;
    line-height: 1.6;
    margin-bottom: 1.75rem;
    text-align: center;
    max-width: 520px;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
}
.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    max-width: 560px;
    padding: 3rem 2rem;
}
.hero-btn-group {
    display: flex;
    gap: 14px;
    justify-content: center;
    width: 100%;
}



/* Hero Banner Card - Crisp Model Clarity & Clean Framing */
/* Stacked Royal Dark Board for Hero & Footer - Grand Scale */
.footer-brand-board {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #181614 0%, #0d0c0a 100%);
    padding: 16px 28px;
    border-radius: 12px;
    border: 1px solid rgba(223, 186, 115, 0.5);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}



/* Centered Luxury Hero Layout */
.hero-banner-card {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    min-height: 480px;
    background: linear-gradient(180deg, #ffffff 0%, #faf8f5 100%);
    border: 1px solid var(--border-color);
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    padding: 3.5rem 1.5rem;
}
.hero-banner-overlay {
    display: none !important;
}
.hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 700px;
    margin: 0 auto !important;
    padding: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
}
.hero-brand-board {
    display: inline-flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    background: linear-gradient(135deg, #181614 0%, #0d0c0a 100%) !important;
    padding: 16px 32px !important;
    border-radius: 14px !important;
    border: 1.5px solid rgba(223, 186, 115, 0.6) !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18) !important;
    margin-bottom: 1.5rem !important;
    width: auto !important;
    max-width: 320px !important;
}
.hero-pot-emblem {
    height: 56px !important;
    max-height: 56px !important;
    width: auto !important;
    object-fit: contain !important;
    margin-bottom: 6px !important;
}
.hero-word-emblem {
    height: 26px !important;
    max-height: 26px !important;
    width: auto !important;
    object-fit: contain !important;
}
.hero-lead-text {
    font-size: 1.05rem !important;
    color: #475569 !important;
    font-weight: 500 !important;
    line-height: 1.6 !important;
    margin-bottom: 1.75rem !important;
    text-align: center !important;
    max-width: 620px !important;
    width: 100% !important;
}
.hero-btn-group {
    display: flex !important;
    gap: 12px !important;
    justify-content: center !important;
    width: 100% !important;
    flex-wrap: wrap !important;
}
.hero-btn-group .btn {
    white-space: nowrap !important;
    padding: 12px 28px !important;
    font-size: 0.92rem !important;
    font-weight: 700 !important;
}



/* User Menu Button & Profile Pill in White Luxury Theme */
.user-menu-wrapper {
    position: relative;
    display: inline-block;
}
.user-menu-btn {
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    background: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 30px !important;
    padding: 5px 14px 5px 6px !important;
    cursor: pointer !important;
    font-size: 0.85rem !important;
    font-weight: 700 !important;
    color: #0f172a !important;
    box-shadow: 0 2px 6px rgba(0,0,0,0.04) !important;
    transition: all 0.2s ease !important;
}
.user-menu-btn:hover {
    border-color: var(--gold) !important;
    background: #f8fafc !important;
    box-shadow: 0 4px 12px rgba(197, 155, 39, 0.15) !important;
}
.user-menu-btn img {
    width: 26px !important;
    height: 26px !important;
    border-radius: 50% !important;
    object-fit: cover !important;
    border: 1.5px solid var(--gold) !important;
}
.user-menu-dropdown {
    display: none;
    position: absolute;
    right: 0;
    top: calc(100% + 8px);
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 12px !important;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12) !important;
    min-width: 240px;
    z-index: 1000;
    overflow: hidden;
}
.user-menu-dropdown.open {
    display: block !important;
}
.user-menu-header {
    padding: 12px 16px;
    border-bottom: 1px solid #e2e8f0;
    background: #f8fafc;
}
.user-menu-email {
    font-size: 0.75rem;
    color: #64748b;
    margin-top: 2px;
}
.user-menu-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    color: #334155 !important;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    background: transparent;
    width: 100%;
    text-align: left;
    transition: background 0.15s;
}
.user-menu-item:hover {
    background: #f1f5f9 !important;
    color: var(--gold) !important;
}
.user-menu-item.danger {
    color: #dc2626 !important;
    border-top: 1px solid #e2e8f0;
}
.user-menu-item.danger:hover {
    background: #fef2f2 !important;
}



/* High-Precision Input and Search Fields for White Theme */
.form-input, input[type="text"], input[type="search"], input[type="number"], input[type="tel"], input[type="email"], select.form-select {
    background: #ffffff !important;
    color: #0f172a !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 6px !important;
    font-size: 0.85rem !important;
    padding: 8px 12px !important;
    outline: none !important;
    box-shadow: 0 1px 2px rgba(0,0,0,0.03) !important;
}

.form-input:focus, input:focus, select:focus {
    border-color: #b38714 !important;
    box-shadow: 0 0 0 3px rgba(197, 155, 39, 0.15) !important;
}

.form-input::placeholder, input::placeholder {
    color: #94a3b8 !important;
    font-weight: 500 !important;
}

/* Subtab Button Switcher */
.btn-outline {
    background: #ffffff !important;
    color: #334155 !important;
    border: 1px solid #cbd5e1 !important;
}
.btn-outline:hover {
    background: #f8fafc !important;
    border-color: #b38714 !important;
    color: #b38714 !important;
}

.btn-gold {
    background: linear-gradient(135deg, #c59b27, #dfba73) !important;
    color: #ffffff !important;
    border: 1px solid #b38714 !important;
    box-shadow: 0 4px 12px rgba(197, 155, 39, 0.25) !important;
}
.btn-gold:hover {
    background: linear-gradient(135deg, #b38714, #c59b27) !important;
    box-shadow: 0 6px 16px rgba(197, 155, 39, 0.35) !important;
}



/* High Precision Dual-Mode Wholesale Billing Modal (Scanner & Manual SKU) */
.billing-mode-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 1.25rem;
    border-bottom: 2px solid #e2e8f0;
    padding-bottom: 4px;
}
.billing-mode-btn {
    flex: 1;
    padding: 10px 14px;
    border-radius: 8px 8px 0 0;
    border: none;
    background: #f1f5f9;
    color: #64748b;
    font-weight: 700;
    font-size: 0.88rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s;
}
.billing-mode-btn.active {
    background: #ffffff;
    color: #0f172a;
    border-bottom: 3px solid #b38714;
    box-shadow: 0 -2px 8px rgba(0,0,0,0.04);
}
.scanner-active-box {
    background: #f0fdf4;
    border: 2px dashed #22c55e;
    border-radius: 10px;
    padding: 1rem;
    text-align: center;
    margin-bottom: 1rem;
}
.scanner-scan-input {
    width: 100%;
    padding: 12px 16px;
    font-size: 1.1rem;
    font-family: monospace;
    font-weight: 700;
    text-align: center;
    background: #ffffff;
    border: 2px solid #22c55e;
    border-radius: 8px;
    outline: none;
    color: #0f172a;
    letter-spacing: 0.05em;
    box-shadow: 0 4px 12px rgba(34, 197, 94, 0.15);
}
.scanner-scan-input:focus {
    box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.25);
}
.scanned-items-list {
    max-height: 180px;
    overflow-y: auto;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #ffffff;
    padding: 6px;
    margin-bottom: 1rem;
}
.scanned-item-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 10px;
    border-bottom: 1px solid #f1f5f9;
    font-size: 0.82rem;
}
.scanned-item-row:last-child {
    border-bottom: none;
}
.duplicate-alert-banner {
    display: none;
    background: #fef2f2;
    border: 1px solid #f87171;
    color: #dc2626;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 10px;
}



/* ============================================================
   RESPONSIVE MOBILE DESIGN SYSTEM (POTTER'S HAND LUXURY WHITE)
   ============================================================ */
@media (max-width: 768px) {
    /* Top Header Navigation */
    .home-nav {
        padding: 0 0.75rem !important;
        height: 62px !important;
    }
    .brand-wrapper {
        height: 42px !important;
        padding: 4px 10px !important;
    }
    .brand-wrapper img, .brand-nav-logo {
        height: 28px !important;
        max-height: 28px !important;
        max-width: 140px !important;
    }
    .home-nav-links {
        display: none !important;
    }
    .burger-btn {
        display: block !important;
    }
    .desktop-auth-btn .btn {
        font-size: 0.75rem !important;
        padding: 6px 10px !important;
    }

    /* Hero Section Mobile Integration */
    .hero-banner-wrap {
        margin: 0.75rem auto 1.5rem !important;
        padding: 0 0.75rem !important;
    }
    .hero-banner-card {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        height: auto !important;
        min-height: 380px !important;
        background: linear-gradient(180deg, #ffffff 0%, #faf8f5 100%) !important;
        background-image: none !important;
        border-radius: 14px !important;
        padding: 2.5rem 1rem !important;
        text-align: center !important;
    }
    .hero-banner-overlay {
        display: none !important;
    }
    .hero-content {
        width: 100% !important;
        max-width: 100% !important;
        margin-left: 0 !important;
        padding: 0 !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
    }
    .hero-brand-board {
        padding: 14px 24px !important;
        margin-bottom: 1.25rem !important;
        max-width: 280px !important;
    }
    .hero-pot-emblem {
        height: 48px !important;
        max-height: 48px !important;
        margin-bottom: 4px !important;
    }
    .hero-word-emblem {
        height: 22px !important;
        max-height: 22px !important;
    }
    .hero-lead-text {
        font-size: 0.92rem !important;
        line-height: 1.6 !important;
        margin-bottom: 1.5rem !important;
        padding: 0 0.5rem !important;
        text-align: center !important;
    }
    .hero-btn-group {
        flex-direction: column !important;
        gap: 8px !important;
        width: 100% !important;
        align-items: center !important;
    }
    .hero-btn-group .btn {
        width: 100% !important;
        max-width: 280px !important;
        padding: 12px 20px !important;
        font-size: 0.9rem !important;
        text-align: center !important;
    }
    .mobile-hero-img-box {
        display: none !important;
    }

    /* Grids & Cards */
    .value-strip {
        grid-template-columns: 1fr 1fr !important;
        gap: 0.75rem !important;
        padding: 0 0.75rem !important;
        margin-bottom: 2rem !important;
    }
    .value-card {
        padding: 0.85rem !important;
        gap: 8px !important;
    }
    .value-icon {
        font-size: 1.4rem !important;
    }
    .value-title {
        font-size: 0.75rem !important;
    }
    .value-desc {
        font-size: 0.68rem !important;
    }

    .category-grid {
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
        padding: 0 0.75rem !important;
        margin-bottom: 2.5rem !important;
    }
    .cat-card {
        height: 300px !important;
    }

    /* Admin Grids */
    .kpi-grid {
        grid-template-columns: 1fr 1fr !important;
        gap: 0.75rem !important;
    }
    .barcode-studio-grid {
        grid-template-columns: 1fr !important;
    }
}



/* ============================================================
   RESPONSIVE BARCODE STUDIO & ALL HUBS (MOBILE & DESKTOP)
   ============================================================ */
.barcode-studio-grid {
    display: grid !important;
    grid-template-columns: 380px 1fr !important;
    gap: 1.5rem !important;
}

.barcode-preview-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)) !important;
    gap: 12px !important;
    max-height: 620px !important;
    overflow-y: auto !important;
    padding: 14px !important;
    background: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 10px !important;
}

@media (max-width: 900px) {
    .barcode-studio-grid {
        grid-template-columns: 1fr !important;
    }
    .barcode-preview-grid {
        max-height: 480px !important;
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)) !important;
        padding: 10px !important;
        margin-top: 1rem !important;
    }
    .main-layout {
        padding: 0.75rem !important;
    }
    .tabs-nav {
        padding: 4px 6px 0 !important;
        gap: 4px !important;
    }
    .tab-btn {
        padding: 8px 12px !important;
        font-size: 0.8rem !important;
    }
    .data-table th, .data-table td {
        padding: 10px 8px !important;
        font-size: 0.78rem !important;
    }
}



/* High-Precision Viewport-Fit Modals with Elegant Smooth Scrolling */
.modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.65);
    backdrop-filter: blur(5px);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    overflow-y: auto;
}

.modal.active {
    display: flex !important;
}

.modal-content {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 14px !important;
    width: 100% !important;
    max-width: 600px !important;
    max-height: 90vh !important;
    overflow-y: auto !important;
    padding: 1.5rem !important;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2) !important;
    color: #0f172a !important;
    position: relative !important;
    margin: auto !important;
}

/* Custom Sleek Scrollbars inside Modals */
.modal-content::-webkit-scrollbar {
    width: 6px;
}
.modal-content::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}
.modal-content::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

@media (max-width: 768px) {
    .modal {
        padding: 0.5rem !important;
        align-items: flex-start !important;
    }
    .modal-content {
        max-height: 95vh !important;
        padding: 1.1rem !important;
        border-radius: 10px !important;
    }
}

