/* ============================================================
   BOOTHBOOK v2 — Modern Android-Native UI
   Icons: Lucide (Shopee-like)
   Font: Inter
   ============================================================ */

:root {
    /* Core Colors */
    --primary: #f97316;
    --primary-dark: #ea580c;
    --primary-light: #fff7ed;
    --primary-soft: #fed7aa;

    /* Semantic Colors */
    --success: #22c55e;
    --success-bg: #dcfce7;
    --danger: #f97316;
    --danger-bg: #fed7aa;
    --warning: #f59e0b;
    --warning-bg: #fef3c7;
    --info: #3b82f6;
    --info-bg: #dbeafe;
    --purple: #8b5cf6;
    --purple-bg: #f3e8ff;

    /* Neutral */
    --bg: #fdfbf7;
    --surface: #ffffff;
    --surface-hover: #fdfbf7;
    --text-primary: #0f172a;
    --text-secondary: #64748b;
    --text-tertiary: #94a3b8;
    --border: #e2e8f0;
    --border-light: #f1f5f9;

    /* Spacing */
    --nav-height: 64px;
    --nav-safe: calc(64px + env(safe-area-inset-bottom, 0px));
    --header-height: 60px;

    /* Radius */
    --radius-xl: 20px;
    --radius-lg: 16px;
    --radius-md: 12px;
    --radius-sm: 8px;
    --radius-full: 9999px;

    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.08), 0 2px 4px -2px rgb(0 0 0 / 0.04);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.08), 0 4px 6px -4px rgb(0 0 0 / 0.04);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.08), 0 8px 10px -6px rgb(0 0 0 / 0.04);
    --shadow-primary: 0 4px 14px 0 rgb(220 38 38 / 0.35);
}

/* ========== RESET & BASE ========== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

html {
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg);
    color: var(--text-primary);
    line-height: 1.5;
    min-height: 100vh;
    min-height: 100dvh;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ========== LAYOUT ========== */
.bb-main {
    padding: 16px;
    padding-bottom: calc(var(--nav-safe) + 16px);
    max-width: 600px;
    margin: 0 auto;
    min-height: calc(100dvh - var(--header-height));
}

/* ========== HEADER ========== */
.bb-header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow-md);
    padding-top: env(safe-area-inset-top, 0px);
}

.bb-header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    max-width: 600px;
    margin: 0 auto;
    height: var(--header-height);
}

.bb-header-left {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    flex: 1;
}

.bb-header-back {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: var(--radius-full);
    background: rgba(255,255,255,0.15);
    color: white;
    text-decoration: none;
    flex-shrink: 0;
    backdrop-filter: blur(8px);
}

.bb-header-title {
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.bb-header-subtitle {
    font-size: 0.7rem;
    opacity: 0.85;
    display: flex;
    align-items: center;
    gap: 4px;
    margin-top: 1px;
}

.bb-header-actions {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

.bb-header-btn {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-full);
    background: rgba(255,255,255,0.12);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    backdrop-filter: blur(8px);
    transition: all 0.2s ease;
}

.bb-header-btn:active {
    background: rgba(255,255,255,0.25);
    transform: scale(0.92);
}

/* ========== BOTTOM NAV (RED) ========== */
.bb-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(180deg, #f97316 0%, #ea580c 100%);
    z-index: 1000;
    padding-bottom: env(safe-area-inset-bottom, 0px);
    box-shadow: 0 -4px 20px rgba(0,0,0,0.15);
    border-top: none;
}

.bb-nav-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: var(--nav-height);
    max-width: 600px;
    margin: 0 auto;
    padding: 0 40px;
    position: relative;
}

/* Kasir & Etalase link */
.bb-nav-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    color: rgba(255,255,255,0.85);
    font-size: 0.6rem;
    font-weight: 600;
    text-decoration: none;
    padding: 6px 10px;
    border-radius: 10px;
    transition: all 0.2s ease;
    min-width: 56px;
}

.bb-nav-link.active {
    color: #fff;
}

.bb-nav-link:active {
    transform: scale(0.9);
    opacity: 0.7;
}

/* Menu button (TENGAH, FAB) - RED THEME */
.bb-menu-center-btn {
    position: relative;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    border: 3px solid #f97316;
    background: #fff;
    color: #f97316;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.2);
    cursor: pointer;
    z-index: 1001;
    font-size: 0.6rem;
    font-weight: 700;
    font-family: inherit;
    transition: all 0.2s cubic-bezier(0.4,0,0.2,1);
    flex-shrink: 0;
    margin: 0 4px;
}

.bb-menu-center-btn:active {
    transform: scale(0.92);
}

/* ========== POPUP MENU BARU ========== */
.menu-popup-wrap {
    position: fixed;
    inset: 0;
    z-index: 9999;
    visibility: hidden;
    opacity: 0;
    transition: visibility 0s linear 0.3s, opacity 0.3s ease;
}

.menu-popup-wrap.open {
    visibility: visible;
    opacity: 1;
    transition: visibility 0s, opacity 0.3s ease;
}

/* Backdrop gelap */
.menu-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(4px);
}

/* Panel menu */
.menu-panel {
    position: absolute;
    bottom: calc(var(--nav-height) + 16px);
    left: 50%;
    transform: translateX(-50%) translateY(20px) scale(0.95);
    width: 92%;
    max-width: 380px;
    background: #fff;
    border-radius: 20px;
    padding: 18px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    opacity: 0;
    transition: all 0.25s cubic-bezier(0.4,0,0.2,1);
    pointer-events: none;
}

.menu-popup-wrap.open .menu-panel {
    transform: translateX(-50%) translateY(0) scale(1);
    opacity: 1;
    pointer-events: all;
}

/* Header panel */
.menu-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid #f1f5f9;
}

.menu-panel-title {
    font-size: 0.9rem;
    font-weight: 800;
    color: #0f172a;
    display: flex;
    align-items: center;
    gap: 6px;
}

.menu-panel-close {
    background: #f1f5f9;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #64748b;
}

.menu-panel-close:active { background: #e2e8f0; }

/* Grid menu item */
.menu-panel-body {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.menu-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 12px 4px;
    border-radius: 14px;
    text-decoration: none;
    color: #0f172a;
    background: #f8fafc;
    border: 2px solid transparent;
    transition: all 0.15s ease;
}

.menu-item:active {
    transform: scale(0.95);
    background: #f1f5f9;
}

.menu-item.active {
    border-color: var(--primary);
    background: var(--primary-light);
}

.mi-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mi-label {
    font-size: 0.65rem;
    font-weight: 600;
    text-align: center;
    color: #64748b;
}

/* ========== CARDS ========== */
.bb-card {
    background: var(--surface);
    border-radius: var(--radius-lg);
    padding: 18px;
    margin-bottom: 14px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
    position: relative;
    overflow: hidden;
}

.bb-card-flat {
    background: var(--surface);
    border-radius: var(--radius-md);
    padding: 14px;
    margin-bottom: 10px;
    border: 1px solid var(--border);
}

.bb-card-title {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.bb-card-title .title-icon {
    color: var(--primary);
    background: var(--primary-light);
    padding: 6px;
    border-radius: var(--radius-sm);
}

.bb-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
}

.bb-section-title {
    font-size: 1rem;
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: -0.01em;
}

.bb-section-link {
    font-size: 0.75rem;
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 2px;
}

/* ========== SUMMARY CARDS ========== */
.bb-summary-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-bottom: 14px;
}

.bb-summary-card {
    background: var(--surface);
    border-radius: var(--radius-md);
    padding: 14px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
    position: relative;
    transition: transform 0.15s ease;
}

.bb-summary-card:active {
    transform: scale(0.98);
}

.bb-summary-card .card-accent {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    border-radius: var(--radius-md) var(--radius-md) 0 0;
}

.bb-summary-label {
    font-size: 0.65rem;
    color: var(--text-secondary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    display: flex;
    align-items: center;
    gap: 4px;
}

.bb-summary-value {
    font-size: 1.05rem;
    font-weight: 800;
    margin-top: 6px;
    letter-spacing: -0.02em;
    font-feature-settings: 'tnum';
}

/* ========== BUTTONS ========== */
.bb-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 20px;
    border-radius: var(--radius-md);
    border: none;
    font-family: inherit;
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    width: 100%;
    line-height: 1;
    -webkit-appearance: none;
}

.bb-btn:active {
    transform: scale(0.97);
    opacity: 0.9;
}

.bb-btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    box-shadow: var(--shadow-primary);
}

.bb-btn-success {
    background: linear-gradient(135deg, var(--success) 0%, #16a34a 100%);
    color: white;
    box-shadow: 0 4px 14px 0 rgb(34 197 94 / 0.3);
}

.bb-btn-danger {
    background: linear-gradient(135deg, var(--danger) 0%, #f97316 100%);
    color: white;
}

.bb-btn-secondary {
    background: var(--bg);
    color: var(--text-primary);
    border: 1.5px solid var(--border);
}

.bb-btn-ghost {
    background: transparent;
    color: var(--text-secondary);
    border: none;
}

.bb-btn-sm {
    padding: 8px 14px;
    font-size: 0.75rem;
    width: auto;
}

.bb-btn-fab {
    position: fixed;
    bottom: calc(var(--nav-safe) + 16px);
    right: 16px;
    width: 56px;
    height: 56px;
    border-radius: var(--radius-full);
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-primary), var(--shadow-lg);
    z-index: 99;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s ease;
}

.bb-btn-fab:active {
    transform: scale(0.9) rotate(90deg);
}

/* ========== FORMS ========== */
.bb-form-group {
    margin-bottom: 16px;
}

.bb-form-label {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.bb-form-input,
.bb-form-select,
.bb-form-textarea {
    width: 100%;
    padding: 13px 14px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-md);
    font-family: inherit;
    font-size: 0.9rem;
    background: var(--surface);
    color: var(--text-primary);
    transition: all 0.2s ease;
    -webkit-appearance: none;
    appearance: none;
    outline: none;
}

.bb-form-input:focus,
.bb-form-select:focus,
.bb-form-textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-soft);
}

.bb-form-textarea {
    min-height: 90px;
    resize: vertical;
}

.bb-form-select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 36px;
}

/* ========== LIST ITEMS ========== */
.bb-list-item {
    display: flex;
    align-items: center;
    padding: 14px;
    background: var(--surface);
    border-radius: var(--radius-md);
    margin-bottom: 8px;
    border: 1px solid var(--border-light);
    text-decoration: none;
    color: var(--text-primary);
    transition: all 0.15s ease;
    cursor: pointer;
}

.bb-list-item:active {
    background: var(--primary-light);
    transform: scale(0.985);
}

.bb-list-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
    flex-shrink: 0;
    color: white;
}

.bb-list-icon svg {
    stroke-width: 2;
}

.bb-list-content {
    flex: 1;
    min-width: 0;
}

.bb-list-title {
    font-weight: 700;
    font-size: 0.85rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.4;
}

.bb-list-subtitle {
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-top: 2px;
    line-height: 1.5;
}

.bb-list-action {
    color: var(--text-tertiary);
    flex-shrink: 0;
    margin-left: 8px;
}

/* ========== BADGES ========== */
.bb-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 10px;
    border-radius: var(--radius-full);
    font-size: 0.7rem;
    font-weight: 700;
    line-height: 1.4;
}

.bb-badge-success { background: var(--success-bg); color: #166534; }
.bb-badge-danger  { background: var(--danger-bg);  color: #991b1b; }
.bb-badge-warning { background: var(--warning-bg); color: #92400e; }
.bb-badge-info    { background: var(--info-bg);    color: #1e40af; }
.bb-badge-purple  { background: var(--purple-bg);  color: #6b21a8; }
.bb-badge-orange  { background: var(--primary-soft); color: #9a3412; }

/* ========== ALERTS ========== */
.alert {
    padding: 13px 16px;
    border-radius: var(--radius-md);
    font-size: 0.85rem;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
}

.alert-success { background: var(--success-bg); color: #166534; border: 1px solid #bbf7d0; }
.alert-error   { background: var(--danger-bg);  color: #991b1b; border: 1px solid #fed7aa; }
.alert-warning { background: var(--warning-bg); color: #92400e; border: 1px solid #fde68a; }
.alert-info    { background: var(--info-bg);    color: #1e40af; border: 1px solid #bfdbfe; }

/* ========== EMPTY STATE ========== */
.bb-empty {
    text-align: center;
    padding: 48px 24px;
    color: var(--text-secondary);
}

.bb-empty-icon {
    color: var(--text-tertiary);
    margin-bottom: 16px;
    display: inline-flex;
    padding: 16px;
    background: var(--bg);
    border-radius: var(--radius-full);
}

.bb-empty-title {
    font-weight: 700;
    font-size: 0.95rem;
    margin-bottom: 6px;
    color: var(--text-primary);
}

.bb-empty-desc {
    font-size: 0.8rem;
}

/* ========== STATS ROW (Horizontal Scroll) ========== */
.bb-stats-row {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 4px;
    margin: 0 -16px;
    padding-left: 16px;
    padding-right: 16px;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.bb-stats-row::-webkit-scrollbar { display: none; }

.bb-stat-pill {
    background: var(--surface);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-full);
    padding: 8px 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    font-weight: 700;
    white-space: nowrap;
    flex-shrink: 0;
    box-shadow: var(--shadow-sm);
}

.bb-stat-pill .dot {
    width: 8px;
    height: 8px;
    border-radius: var(--radius-full);
}

/* ========== QUICK ACTIONS ========== */
.bb-quick-actions {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.bb-quick-action {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: var(--text-primary);
    padding: 14px 4px;
    border-radius: var(--radius-md);
    background: var(--surface);
    border: 1px solid var(--border-light);
    transition: all 0.15s ease;
    font-weight: 600;
}

.bb-quick-action:active {
    background: var(--primary-light);
    transform: scale(0.95);
    border-color: var(--primary-soft);
}

.bb-quick-action .icon-bg {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bb-quick-action .icon-bg svg {
    stroke-width: 2;
}

.bb-quick-action .label {
    font-size: 0.65rem;
    text-align: center;
    color: var(--text-secondary);
}

/* ========== MODAL ========== */
.bb-modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 2000;
    align-items: flex-end;
    justify-content: center;
    backdrop-filter: blur(4px);
}

.bb-modal-overlay.active { display: flex; }

.bb-modal {
    background: var(--surface);
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
    width: 100%;
    max-width: 600px;
    max-height: 88vh;
    overflow-y: auto;
    padding: 24px;
    animation: slideUp 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-xl);
}

@keyframes slideUp {
    from { transform: translateY(100%); opacity: 0; }
    to   { transform: translateY(0);     opacity: 1; }
}

.bb-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    position: sticky;
    top: 0;
    background: var(--surface);
    padding-top: 4px;
    z-index: 1;
}

.bb-modal-title {
    font-size: 1.1rem;
    font-weight: 800;
}

.bb-modal-close {
    background: var(--bg);
    border: none;
    width: 36px;
    height: 36px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text-secondary);
    transition: all 0.2s;
}

.bb-modal-close:active { background: var(--border); }

/* ========== AUTH PAGES ========== */
.bb-auth-page {
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 20px;
    background: linear-gradient(160deg, #fff7ed 0%, #fff 40%, #fff7ed 100%);
}

.bb-auth-box {
    max-width: 400px;
    margin: 0 auto;
    width: 100%;
}

.bb-auth-logo {
    text-align: center;
    margin-bottom: 32px;
}

.bb-auth-logo .logo-icon {
    display: inline-flex;
    padding: 16px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-radius: var(--radius-lg);
    color: white;
    margin-bottom: 16px;
    box-shadow: var(--shadow-primary);
}

.bb-auth-logo h1 {
    font-size: 1.6rem;
    font-weight: 900;
    color: var(--primary);
    letter-spacing: -0.03em;
}

.bb-auth-logo p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-top: 6px;
}

.bb-auth-card {
    background: var(--surface);
    border-radius: var(--radius-xl);
    padding: 28px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-light);
}

.bb-auth-footer {
    text-align: center;
    margin-top: 20px;
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.bb-auth-footer a {
    color: var(--primary);
    font-weight: 700;
    text-decoration: none;
}

/* ========== MENU GRID ========== */
.bb-menu-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.bb-menu-item {
    background: var(--surface);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 18px;
    text-align: center;
    text-decoration: none;
    color: var(--text-primary);
    transition: all 0.15s ease;
}

.bb-menu-item:active {
    transform: scale(0.97);
    background: var(--primary-light);
    border-color: var(--primary-soft);
}

.bb-menu-item .icon-wrap {
    display: inline-flex;
    padding: 12px;
    border-radius: var(--radius-md);
    margin-bottom: 10px;
}

.bb-menu-item .label {
    font-size: 0.8rem;
    font-weight: 700;
    display: block;
}

.bb-menu-item .desc {
    font-size: 0.7rem;
    color: var(--text-secondary);
    margin-top: 2px;
    display: block;
}

/* ========== STOCK WARNING ========== */
.bb-stock-warning {
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    border: 1px solid #fcd34d;
    border-radius: var(--radius-md);
    padding: 14px;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: inherit;
    transition: all 0.15s ease;
}

.bb-stock-warning:active { transform: scale(0.98); }

.bb-stock-warning .warning-icon {
    color: #f59e0b;
    flex-shrink: 0;
}

.bb-stock-warning .content { flex: 1; }

.bb-stock-warning .title {
    font-size: 0.8rem;
    font-weight: 700;
    color: #92400e;
}

.bb-stock-warning .text {
    font-size: 0.75rem;
    color: #78350f;
    margin-top: 2px;
}

/* ========== ADMIN STYLES ========== */
.bb-admin-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: linear-gradient(135deg, var(--purple), #7c3aed);
    color: white;
    padding: 4px 12px;
    border-radius: var(--radius-full);
    font-size: 0.65rem;
    font-weight: 700;
}

/* ========== ANIMATIONS ========== */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}

.bb-animate {
    animation: fadeIn 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ========== ICON SIZES ========== */
.icon-12 { width: 12px; height: 12px; }
.icon-14 { width: 14px; height: 14px; }
.icon-16 { width: 16px; height: 16px; }
.icon-18 { width: 18px; height: 18px; }
.icon-20 { width: 20px; height: 20px; }
.icon-22 { width: 22px; height: 22px; }
.icon-24 { width: 24px; height: 24px; }
.icon-26 { width: 26px; height: 26px; }
.icon-28 { width: 28px; height: 28px; }
.icon-32 { width: 32px; height: 32px; }
.icon-48 { width: 48px; height: 48px; }

/* ========== UTILITIES ========== */
.text-center { text-align: center; }
.text-success { color: var(--success) !important; }
.text-danger  { color: var(--danger) !important; }
.text-primary { color: var(--primary) !important; }
.text-warning { color: var(--warning) !important; }
.text-info    { color: var(--info) !important; }
.text-purple  { color: var(--purple) !important; }
.text-light   { color: var(--text-secondary) !important; }
.font-bold    { font-weight: 700; }
.font-extrabold { font-weight: 800; }
.mb-0 { margin-bottom: 0 !important; }
.mb-1 { margin-bottom: 4px !important; }
.mb-2 { margin-bottom: 8px !important; }
.mb-3 { margin-bottom: 12px !important; }
.mt-2 { margin-top: 8px !important; }
.mt-3 { margin-top: 12px !important; }
.d-flex { display: flex; }
.justify-between { justify-content: space-between; }
.align-center { align-items: center; }
.gap-2 { gap: 8px; }
.w-100 { width: 100%; }
.d-none { display: none !important; }

/* ========== PRINT ========== */
@media print {
    body { padding-bottom: 0; }
    .bb-bottom-nav, .bb-header, .bb-btn-fab, .no-print { display: none !important; }
    .bb-main { max-width: 100%; padding: 0; }
    .bb-card { border: none; box-shadow: none; }
}

/* ========== SCROLLBAR ========== */
::-webkit-scrollbar { width: 4px; height: 4px; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }
::-webkit-scrollbar-track { background: transparent; }
