/* Global Styles for SPA */
body { 
    background-color: #fbf9f7;
}

.product-quick-filter-btn {
    background: transparent;
    color: #8a7176;
    border: 0;
    transition: all 0.2s ease;
    box-shadow: none;
}

/* Mobile Optimizations */
@media (max-width: 767px) {
    input, select, textarea {
        font-size: 16px !important; /* Prevent iOS zoom */
    }
    button, a.btn, .touch-target {
        min-height: 44px;
        min-width: 44px;
    }
}

.product-quick-filter-btn:hover {
    background: rgba(255, 255, 255, 0.7);
    color: #7d562d;
}

.product-quick-filter-btn.is-active {
    background: #ffffff;
    color: #e91e63;
    box-shadow: 0 6px 20px rgba(92, 60, 36, 0.08);
}

.product-editor-shell {
    box-shadow: 0 30px 80px rgba(84, 62, 45, 0.06);
}

.product-library-shell {
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55);
}

.product-library-item {
    border: 1px solid transparent;
}

.product-library-item:hover {
    border-color: rgba(233, 30, 99, 0.08);
    box-shadow: 0 12px 30px rgba(26, 28, 31, 0.04);
}

.product-library-item.is-active {
    border-color: rgba(233, 30, 99, 0.2);
    box-shadow: 0 16px 32px rgba(233, 30, 99, 0.08);
}

.product-editor-header {
    background-image: radial-gradient(circle at top right, rgba(233, 30, 99, 0.06), transparent 28%), linear-gradient(to bottom, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0.9));
}

.material-symbols-outlined { 
    font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24; 
    vertical-align: middle;
}

.no-scrollbar::-webkit-scrollbar { display: none; }
.no-scrollbar { scrollbar-width: none; }

/* Subtle Scrollbar for Horizontal Lists */
.subtle-scrollbar {
    scrollbar-width: thin;
    scrollbar-color: #e1e3e4 transparent;
}
.subtle-scrollbar::-webkit-scrollbar {
    height: 3px;
}
.subtle-scrollbar::-webkit-scrollbar-track {
    background: transparent;
}
.subtle-scrollbar::-webkit-scrollbar-thumb {
    background: #e1e3e4;
    border-radius: 3px;
}

/* Mobile Pricing Styles */
.soft-draft { background-color: rgba(245, 158, 11, 0.1); color: #b45309; }
.soft-approved { background-color: rgba(16, 185, 129, 0.1); color: #065f46; }
.pricing-glow:focus-within { border-color: #e91e63; box-shadow: 0 0 0 2px rgba(233, 30, 99, 0.2); }
.pricing-mob-target-btn.active { background-color: #e91e63; color: #fff; border-color: #e91e63; }

/* Mobile sidebar state is controlled explicitly to avoid transform conflicts. */
@media (max-width: 767px) {
    #global-sidebar {
        display: flex !important;
        transform: translateX(100%) !important;
    }

    body.sidebar-open #global-sidebar {
        transform: translateX(0) !important;
    }
}

/* Premium admin designs: customers, marketers, and order review */
.premium-design-view {
    --premium-bg: #f8f9ff;
    --premium-card: #ffffff;
    --premium-soft: #eff4ff;
    --premium-soft-2: #e5eeff;
    --premium-line: rgba(137, 113, 118, 0.24);
    --premium-primary: #e91e63;
    --premium-primary-bright: #ff4081;
    --premium-secondary: #775a19;
    --premium-gold: #fed488;
    --premium-text: #0b1c30;
    --premium-muted: #564146;
    background:
        radial-gradient(circle at 12% 8%, rgba(254, 212, 136, 0.28), transparent 28rem),
        radial-gradient(circle at 88% 4%, rgba(255, 64, 129, 0.13), transparent 24rem),
        var(--premium-bg);
    color: var(--premium-text);
}

.premium-design-view .ambient-card,
.premium-design-view > header,
.premium-design-view > main > section,
.premium-design-view .bg-surface-container-lowest,
.premium-design-view .bg-white {
    border-color: var(--premium-line) !important;
    box-shadow: 0 4px 20px rgba(100, 116, 139, 0.06);
}

.premium-design-view input,
.premium-design-view select,
.premium-design-view textarea {
    border-color: var(--premium-line) !important;
}

.premium-design-view input:focus,
.premium-design-view select:focus,
.premium-design-view textarea:focus {
    border-color: var(--premium-primary) !important;
    box-shadow: 0 0 0 2px rgba(233, 30, 99, 0.16) !important;
}

.premium-customers-view > div > section:first-child,
.premium-drivers-view > header,
.premium-order-review-view > main > div:first-child > div:first-of-type,
.premium-order-review-view header {
    position: relative;
    overflow: hidden;
    border-radius: 1rem !important;
    border: 1px solid var(--premium-line) !important;
    background: linear-gradient(135deg, rgba(255,255,255,0.94), rgba(239,244,255,0.82)) !important;
}

.premium-customers-view > div > section:first-child::before,
.premium-drivers-view > header::before,
.premium-order-review-view > main > div:first-child > div:first-of-type::before {
    content: '';
    position: absolute;
    inset-block: 0;
    inset-inline-start: 0;
    width: 0.45rem;
    background: linear-gradient(180deg, var(--premium-primary), var(--premium-primary-bright));
}

.premium-customers-view h1,
.premium-drivers-view h1,
.premium-order-review-view h1 {
    color: var(--premium-primary) !important;
    letter-spacing: -0.02em;
}

.premium-customers-view #admin-customers-grid > div,
.premium-drivers-view #drivers-grid > div,
.premium-drivers-view #unassigned-orders-grid > div {
    border: 1px solid var(--premium-line) !important;
    border-radius: 1rem !important;
    background: var(--premium-card) !important;
    box-shadow: 0 4px 20px rgba(100, 116, 139, 0.06) !important;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.premium-customers-view #admin-customers-grid > div:hover,
.premium-drivers-view #drivers-grid > div:hover,
.premium-drivers-view #unassigned-orders-grid > div:hover {
    transform: translateY(-2px);
    border-color: rgba(233, 30, 99, 0.28) !important;
    box-shadow: 0 12px 32px rgba(255, 64, 129, 0.10) !important;
}

.premium-customers-view #admin-customers-grid,
.premium-drivers-view #drivers-grid {
    align-items: stretch;
}

.premium-drivers-view #drivers-grid > div {
    display: flex;
    flex-direction: column;
}

.premium-drivers-view #drivers-grid > div > div:nth-of-type(2),
.premium-customers-view #admin-customers-grid > div > div:nth-of-type(2) {
    background: var(--premium-soft) !important;
    border: 1px solid rgba(220, 192, 197, 0.5);
}

.premium-drivers-view #driver-form-wrapper > div,
.premium-customers-view form,
.premium-order-review-view .lg\:col-span-4 > div,
.premium-order-review-view .lg\:col-span-8 > div {
    border: 1px solid var(--premium-line) !important;
    border-radius: 1rem !important;
    background: var(--premium-card) !important;
    box-shadow: 0 4px 20px rgba(100, 116, 139, 0.06) !important;
}

.premium-order-review-view table {
    border-collapse: separate;
    border-spacing: 0;
    min-width: 760px;
}

.premium-order-review-view thead tr {
    background: #d3e4fe !important;
    color: var(--premium-muted) !important;
}

.premium-order-review-view tbody tr:hover {
    background: rgba(229, 238, 255, 0.64) !important;
}

.premium-order-review-view #review-items-footer {
    padding: 1rem;
    color: var(--premium-primary) !important;
}

.premium-design-view button.bg-primary,
.premium-design-view button[class*="from-primary"],
.premium-design-view a.bg-primary {
    box-shadow: 0 10px 24px rgba(233, 30, 99, 0.18);
}

@media (max-width: 767px) {
    .premium-design-view {
        background: var(--premium-bg);
    }

    .premium-drivers-view {
        max-width: none !important;
        overflow-x: hidden;
        padding: 4.5rem 0.75rem 5.5rem !important;
    }

    .premium-drivers-view > header {
        padding: 1rem !important;
        border-radius: 1rem !important;
    }

    .premium-drivers-view > header > div {
        align-items: stretch !important;
        gap: 1rem !important;
    }

    .premium-drivers-view > header > div > div:last-child {
        flex-direction: column !important;
        gap: 0.75rem !important;
    }

    .premium-drivers-view > header > div > div:last-child > div,
    .premium-drivers-view #toggle-driver-form-btn {
        width: 100% !important;
        min-width: 0 !important;
    }

    .premium-drivers-view > main {
        padding: 1rem 0 0 !important;
    }

    .premium-drivers-view > main > section:first-child {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 0.75rem !important;
    }

    .premium-drivers-view > main > section:first-child article {
        padding: 1rem !important;
        border-radius: 1rem !important;
    }

    .premium-drivers-view > main > section:first-child article div:last-child {
        font-size: 1.5rem !important;
    }

    .premium-drivers-view > main > section:nth-of-type(2) {
        align-items: stretch !important;
        border-radius: 1.25rem !important;
        padding: 1rem !important;
    }

    .premium-drivers-view #public-marketers-board-link {
        max-width: 100% !important;
        white-space: nowrap;
    }

    .premium-drivers-view #driver-form-wrapper > div {
        padding: 1rem !important;
        border-radius: 1rem !important;
    }

    .premium-drivers-view #drivers-search,
    .premium-drivers-view #drivers-state-filter {
        width: 100% !important;
    }

    .premium-drivers-view #drivers-search {
        min-width: 0;
    }

    .premium-drivers-view #drivers-grid,
    .premium-drivers-view #unassigned-orders-grid {
        gap: 1rem !important;
    }

    .premium-drivers-view #drivers-grid > div {
        width: 100% !important;
        min-width: 0 !important;
        padding: 3rem 1rem 1rem !important;
        border-radius: 1.25rem !important;
        box-shadow: 0 6px 22px rgba(100, 116, 139, 0.08) !important;
    }

    .premium-drivers-view #drivers-grid > div > span:first-child {
        top: 0.85rem !important;
        left: 0.85rem !important;
    }

    .premium-drivers-view #drivers-grid > div > label:first-of-type {
        top: 0.85rem !important;
        right: 0.85rem !important;
    }

    .premium-drivers-view #drivers-grid > div > div:first-of-type {
        align-items: center !important;
        margin-bottom: 0.9rem !important;
        min-width: 0 !important;
    }

    .premium-drivers-view #drivers-grid > div > div:first-of-type > div:last-child {
        min-width: 0 !important;
        flex: 1 1 auto;
        padding-inline-end: 0.25rem;
    }

    .premium-drivers-view #drivers-grid > div > div:first-of-type h4 {
        max-width: 100%;
        font-size: 0.98rem !important;
        line-height: 1.4 !important;
    }

    .premium-drivers-view #drivers-grid > div > div:nth-of-type(2) {
        padding: 0.85rem !important;
        margin-bottom: 0.9rem !important;
        border-radius: 1rem !important;
        overflow: hidden;
    }

    .premium-drivers-view #drivers-grid > div > div:nth-of-type(2) > div:not(:last-child) {
        gap: 0.75rem;
    }

    .premium-drivers-view #drivers-grid > div > div:nth-of-type(2) > div:not(:last-child) span:first-child {
        font-size: 0.72rem !important;
    }

    .premium-drivers-view #drivers-grid > div > div:nth-of-type(2) > div:not(:last-child) span:last-child {
        text-align: left;
        white-space: nowrap;
    }

    .premium-drivers-view #drivers-grid > div > div:nth-of-type(2) > div:last-child {
        max-width: 100%;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        direction: ltr;
        text-align: left;
        font-size: 0.68rem !important;
    }

    .premium-drivers-view #drivers-grid > div > div:last-child {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 0.6rem !important;
    }

    .premium-drivers-view #drivers-grid > div > div:last-child button {
        min-height: 2.65rem;
        padding: 0.7rem 0.5rem !important;
        border-radius: 0.9rem !important;
        font-size: 0.76rem !important;
        line-height: 1.2;
    }

    .premium-customers-view #admin-customers-grid > div:hover,
    .premium-drivers-view #drivers-grid > div:hover,
    .premium-drivers-view #unassigned-orders-grid > div:hover {
        transform: none;
    }

    .premium-customers-view #admin-customers-grid,
    .premium-drivers-view #drivers-grid {
        grid-template-columns: 1fr !important;
    }

    .premium-drivers-view > main > section:nth-of-type(3) > div:first-child,
    .premium-drivers-view > main > section:nth-of-type(4) > div:first-child {
        flex-direction: column;
        align-items: stretch !important;
        gap: 0.75rem !important;
    }

    .premium-drivers-view #unassigned-orders-count {
        display: inline-flex;
        justify-content: center;
        width: 100%;
    }

    .premium-customers-view {
        padding: 4.5rem 0.75rem 5.5rem !important;
        max-width: none !important;
    }

    .premium-customers-view > div {
        gap: 1rem !important;
    }

    .premium-customers-view > div > section:first-child {
        padding: 1rem !important;
    }

    .premium-customers-view > div > section:first-child > div:last-child {
        flex-direction: column !important;
        width: 100% !important;
    }

    .premium-customers-view > div > section:first-child > div:last-child > div {
        width: 100% !important;
        min-width: 0 !important;
    }

    .premium-customers-view #admin-customers-grid > div {
        padding: 1rem !important;
        min-width: 0 !important;
    }

    .premium-customers-view #admin-customers-grid > div > div:first-of-type {
        max-width: calc(100% - 1.25rem);
    }

    .premium-customers-view #admin-customers-grid > div > div:first-of-type h4 {
        font-size: 0.95rem !important;
        line-height: 1.4 !important;
    }

    .premium-customers-view #admin-customers-grid > div > div:nth-of-type(2) {
        padding: 0.85rem !important;
    }

    .premium-customers-view #admin-customers-grid > div > div:nth-of-type(2) > div {
        align-items: flex-start !important;
        gap: 0.5rem !important;
    }

    .premium-customers-view #admin-customers-grid > div > div:nth-of-type(2) > div span:last-child {
        text-align: left;
        margin-inline-start: auto;
    }

    .premium-customers-view form {
        padding: 1rem !important;
    }

    .premium-customers-view #customer-admin-form > div:nth-of-type(6) > div,
    .premium-customers-view #customer-admin-form > div:nth-of-type(7) > div {
        flex-direction: column;
    }

    #view-fast-order {
        padding-inline: 0.75rem !important;
    }

    #view-fast-order header > div:last-child {
        width: 100%;
        flex-direction: column;
        align-items: stretch;
    }

    #view-fast-order header > div:last-child button {
        width: 100%;
        justify-content: center;
    }

    #view-fast-order .grid.grid-cols-1.xl\:grid-cols-12 {
        gap: 1rem !important;
    }

    #view-fast-order #product-form {
        padding: 1rem !important;
        gap: 1.25rem !important;
    }

    #view-fast-order #admin-products-grid {
        padding-right: 0 !important;
    }

    #view-pricing .md\:hidden > header {
        padding-inline: 0.75rem !important;
        gap: 0.5rem;
    }

    #view-pricing .md\:hidden > header > div:first-child,
    #view-pricing .md\:hidden > header > div:last-child {
        gap: 0.35rem !important;
    }

    #view-pricing .md\:hidden > header h1 {
        font-size: 1rem !important;
        white-space: nowrap;
    }

    #view-pricing .md\:hidden > header button {
        min-height: 2.75rem;
    }

    #pricing-mobile-wrapper {
        padding-inline: 0.75rem !important;
    }

    .premium-order-review-view {
        padding-inline: 1rem !important;
    }

    #mobile-menu-btn,
    #mobile-menu-btn-top,
    #mobile-sidebar-close {
        width: 2.75rem;
        height: 2.75rem;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    #mobile-nav {
        height: 4.5rem;
        padding-inline: 0.25rem;
    }

    #mobile-nav .nav-link {
        min-width: 3.5rem;
        min-height: 3.5rem;
        justify-content: center;
        border-radius: 0.85rem;
    }

    .premium-customers-view #customer-access-code {
        min-width: 0;
        font-size: 0.82rem !important;
    }

    .premium-customers-view #customer-copy-access-code-btn {
        min-width: 2.75rem;
        min-height: 2.75rem;
    }

    .premium-customers-view #customer-provision-access-btn,
    .premium-customers-view #customer-regenerate-code-btn,
    .premium-customers-view #customer-save-status-btn {
        min-height: 2.75rem;
    }

    .premium-customers-view #customer-admin-form > div:nth-of-type(7) > div {
        flex-direction: column;
    }
}

/* Custom scrollbar for matrix table */
.matrix-container::-webkit-scrollbar {
    height: 6px;
}
.matrix-container::-webkit-scrollbar-track {
    background: #f4f3f1;
}
.matrix-container::-webkit-scrollbar-thumb {
    background: #b0b2af;
    border-radius: 10px;
}

/* Sticky Column Logic for Fast Order */
.sticky-col {
    position: sticky;
    right: 0;
    z-index: 10;
    background-color: inherit;
}

/* Glass panel */
.glass-panel { 
    backdrop-filter: blur(20px); 
    -webkit-backdrop-filter: blur(20px); 
}

/* Active Navigation Indicators */
/* For Sidebar */
.nav-link.sidebar-active {
    background-color: #ffffff;
    color: #7d562d;
    font-weight: 700;
}
.dark .nav-link.sidebar-active {
    background-color: #1c1917; /* stone-900 / 800 */
}
.nav-link.sidebar-active .material-symbols-outlined {
    font-variation-settings: 'FILL' 1;
}

/* For Topnav */
.nav-link.topnav-active {
    color: #7d562d;
    border-bottom: 2px solid #7d562d;
    font-weight: 600;
}

/* ═══════════════════════════════════════════════════════════════ */
/* INVOICE — Premium A4 Portrait Design                          */
/* ═══════════════════════════════════════════════════════════════ */

.invoice-a4 {
    width: min(210mm, 100%);
    min-height: 297mm;
    padding: 14mm 12mm 12mm;
    border-radius: 16px;
    border: 1px solid rgba(233, 30, 99, 0.08);
    background: #ffffff;
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.04);
    position: relative;
    overflow: visible;
}

/* Header Grid: Brand + Invoice Badge */
.invoice-header-grid {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(233, 30, 99, 0.08);
    margin-bottom: 14px;
    position: relative;
}

.invoice-header-grid::before {
    content: '';
    position: absolute;
    top: -60px;
    right: -60px;
    width: 160px;
    height: 160px;
    background: rgba(233, 30, 99, 0.03);
    border-radius: 50%;
    filter: blur(40px);
    pointer-events: none;
}

.invoice-logo-wrap {
    flex-shrink: 0;
}

.invoice-brand-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.invoice-brand-name {
    color: #e91e63;
    font-size: 22px;
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.invoice-brand-tagline {
    color: #8a7176;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.04em;
}

.invoice-badge-area {
    text-align: left;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
}

.invoice-badge-tag {
    display: inline-flex;
    background: rgba(233, 30, 99, 0.08);
    padding: 8px 20px;
    border-radius: 14px;
    border: 1px solid rgba(233, 30, 99, 0.12);
    color: #e91e63;
    font-size: 20px;
    font-weight: 900;
    margin-bottom: 6px;
}

.invoice-status-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 32px;
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 900;
    border: 1px solid transparent;
}

.invoice-status-badge-pending {
    background: rgba(255, 193, 7, 0.12);
    color: #8a6800;
    border-color: rgba(255, 193, 7, 0.32);
}

.invoice-status-badge-approved {
    background: rgba(46, 125, 50, 0.12);
    color: #2e7d32;
    border-color: rgba(46, 125, 50, 0.24);
}

.invoice-info-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.invoice-info-label {
    color: #8a7176;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.invoice-info-value {
    color: #1a1c1f;
    font-size: 15px;
    font-weight: 800;
    letter-spacing: -0.01em;
}

/* Customer Identity Grid */
.invoice-customer-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 24px;
}

.invoice-customer-card {
    padding: 14px 16px;
    border-radius: 16px;
    background: rgba(243, 243, 248, 0.5);
    border: 1px solid rgba(226, 226, 231, 0.5);
}

.invoice-customer-card--left {
    text-align: left;
}

.invoice-customer-card--left .invoice-section-title,
.invoice-customer-card--left .invoice-customer-detail {
    justify-content: flex-end;
}

.invoice-section-title {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #e91e63;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 8px;
}

.invoice-customer-name {
    color: #1a1c1f;
    font-size: 16px;
    font-weight: 800;
    line-height: 1.4;
}

.invoice-customer-detail {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-top: 6px;
    color: #574146;
    font-size: 12px;
}

.invoice-customer-detail strong {
    color: #1a1c1f;
    font-weight: 800;
}

/* Simplified Customer Identity - New Clean Layout */
.invoice-customer-simple {
    margin-bottom: 24px;
    padding: 18px 22px;
    background: rgba(243, 243, 248, 0.5);
    border-radius: 16px;
    border: 1px solid rgba(226, 226, 231, 0.5);
    text-align: center;
}

.invoice-customer-line {
    color: #1a1c1f;
    font-size: 14px;
    line-height: 1.85;
    font-weight: 500;
}

.invoice-customer-line--primary {
    font-size: 18px;
    font-weight: 800;
    color: #1a1c1f;
    line-height: 1.5;
}

.invoice-customer-line--phone {
    font-weight: 700;
    color: #e91e63;
    unicode-bidi: embed;
}

/* Product Table */
.invoice-table-wrap {
    margin-bottom: 24px;
    overflow: visible;
    border: 1px solid rgba(233, 30, 99, 0.08);
    border-radius: 14px;
}

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

.invoice-table-header {
    background: #e91e63;
}

.invoice-table-header th {
    padding: 12px 14px;
    color: #ffffff !important;
    font-size: 12px;
    font-weight: 700;
}

.invoice-table-header th:first-child {
    border-radius: 0 12px 0 0;
}

.invoice-table-header th:last-child {
    border-radius: 12px 0 0 0;
}

.product-card-media {
    min-height: clamp(220px, 58vw, 340px);
    max-height: 360px;
    padding: 12px;
    background:
        radial-gradient(circle at top center, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.45) 55%, rgba(244, 243, 241, 0.8) 100%),
        linear-gradient(180deg, #f7f4f1 0%, #ece8e3 100%);
}

.product-card-media-image {
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    object-position: center center;
    filter: drop-shadow(0 12px 22px rgba(48, 51, 49, 0.12));
}

@media (min-width: 768px) {
    .product-card-media {
        min-height: clamp(240px, 32vw, 420px);
        max-height: 440px;
        padding: 14px;
    }
}

@media (min-width: 1280px) {
    .product-card-media {
        min-height: clamp(240px, 24vw, 380px);
        max-height: 400px;
    }
}

.invoice-table th {
    padding: 10px 12px;
    color: #574146;
    font-size: 11px;
    font-weight: 800;
}

.invoice-table td {
    padding: 10px 12px;
    font-size: 12px;
    border-bottom: 1px solid rgba(226, 226, 231, 0.5);
}

.invoice-row:nth-child(even) {
    background: rgba(243, 243, 248, 0.3);
}

.invoice-row:last-child td {
    border-bottom: none;
}

.invoice-header-grid,
.invoice-customer-grid,
.invoice-table-wrap,
.invoice-footer-grid,
.invoice-signature-grid,
.invoice-bottom-bar,
.invoice-row {
    break-inside: avoid;
    page-break-inside: avoid;
}

.invoice-footer-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 260px;
    gap: 20px;
    margin-bottom: 24px;
    margin-top: 8px;
}

.invoice-note-panel,
.invoice-total-panel {
    border-radius: 16px;
    border: 1px solid rgba(226, 226, 231, 0.5);
    background: #fff;
}

.invoice-note-panel {
    padding: 16px;
    background: #fafafa;
}

.invoice-panel-title {
    color: #e91e63;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.invoice-total-label {
    color: #ffffff;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.invoice-note-list {
    margin-top: 8px;
    padding: 0 16px 0 0;
    color: #574146;
    font-size: 11px;
    line-height: 1.65;
}

.invoice-note-list li {
    margin-bottom: 4px;
}

.invoice-total-panel {
    padding: 16px;
    color: #fff;
    background: linear-gradient(180deg, #e91e63 0%, #ff4081 100%);
    box-shadow: 0 12px 30px rgba(233, 30, 99, 0.18);
    position: relative;
    overflow: visible;
}

.invoice-pricing-state {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
    color: #fff8fd;
    font-size: 11px;
    font-weight: 900;
}

.invoice-total-divider {
    height: 1px;
    margin: 10px 0;
    background: rgba(255, 255, 255, 0.24);
}

.invoice-total-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    font-size: 12px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.9);
    padding: 6px 0;
}

.invoice-total-row strong {
    color: #fff;
    font-size: 14px;
    font-weight: 900;
}

.invoice-total-value {
    margin-top: 8px;
    font-size: 24px;
    line-height: 1.1;
    font-weight: 900;
    color: #fff;
}

/* Signature Area */
.invoice-signature-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    margin-bottom: 24px;
    margin-top: 8px;
}

.invoice-sig-block {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.invoice-sig-label {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #574146;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.invoice-sig-line {
    height: 34px;
    border-bottom: 2px dotted rgba(226, 226, 231, 0.8);
}

.invoice-stamp-area {
    height: 60px;
    border: 2px dashed rgba(226, 226, 231, 0.6);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(243, 243, 248, 0.3);
    position: relative;
    overflow: hidden;
}

/* Bottom Contact Bar */
.invoice-bottom-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 10px;
    border-top: 1px solid rgba(226, 226, 231, 0.5);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.06em;
}

@page {
    size: A4 portrait;
    margin: 8mm;
}

@media screen {
    .invoice-sheet {
        max-width: 210mm;
    }
}

.wholesale-accordion-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
    align-items: center;
    width: 100%;
    padding: 14px;
    background: linear-gradient(180deg, #fff9fc 0%, #fff 100%);
    border-bottom: 1px solid #f1e4db;
}

.wholesale-accordion-media {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 84px;
    max-height: clamp(84px, 16vw, 120px);
    border-radius: 20px;
    background: linear-gradient(180deg, #fff7fb 0%, #f8efe6 100%);
    padding: 8px;
}

.product-fluid-image {
    display: block;
    height: auto;
    max-width: 100%;
    max-height: 100%;
    margin: 0 auto;
}

.quick-order-product-media {
    position: relative;
    width: min(100%, 372px);
    margin: 0 auto;
}

.quick-order-product-media__frame {
    position: relative;
    width: 100%;
    padding: 14px 14px 12px;
    border: 1px solid rgba(233, 30, 99, 0.14);
    border-radius: 24px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(252, 246, 248, 0.96)),
        linear-gradient(135deg, rgba(125, 86, 45, 0.04), rgba(233, 30, 99, 0.05));
    box-shadow:
        0 18px 40px rgba(73, 46, 53, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.quick-order-product-media__frame::after {
    content: '';
    position: absolute;
    inset: 8px;
    border: 1px solid rgba(125, 86, 45, 0.1);
    border-radius: 18px;
    pointer-events: none;
}

.quick-order-product-media__sheet {
    position: relative;
    overflow: hidden;
    width: 100%;
    aspect-ratio: 210 / 148;
    border-radius: 16px;
    border: 1px solid rgba(233, 30, 99, 0.08);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(250, 245, 247, 0.98));
}

.quick-order-product-media__image {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center;
    filter: drop-shadow(0 4px 8px rgba(48, 51, 49, 0.06));
}

.quick-order-product-media__plate {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid rgba(233, 30, 99, 0.1);
}

.quick-order-product-media__plate-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.quick-order-product-media__plate-logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    flex-shrink: 0;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(233, 30, 99, 0.12), rgba(125, 86, 45, 0.14));
}

.quick-order-product-media__plate-logo img {
    width: 22px;
    height: 22px;
    object-fit: contain;
}

.quick-order-product-media__plate-copy {
    display: flex;
    flex-direction: column;
    min-width: 0;
    line-height: 1.25;
}

.quick-order-product-media__plate-copy span:first-child {
    font-size: 12px;
    font-weight: 700;
    color: #e91e63;
}

.quick-order-product-media__plate-copy span:last-child {
    font-size: 10px;
    font-weight: 600;
    color: #8a7176;
}

.quick-order-product-media__plate-product-brand {
    display: inline-flex;
    align-items: center;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(233, 30, 99, 0.08);
    color: #7d562d;
    font-size: 10px;
    font-weight: 800;
    white-space: nowrap;
}

.quick-order-product-media__placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    border: 1px dashed rgba(233, 30, 99, 0.16);
    background: rgba(255, 255, 255, 0.82);
}

@media (max-width: 480px) {
    .quick-order-product-media {
        width: min(100%, 320px);
    }

    .quick-order-product-media__frame {
        padding: 12px 12px 10px;
        border-radius: 20px;
    }

    .quick-order-product-media__frame::after {
        inset: 7px;
        border-radius: 15px;
    }

    .quick-order-product-media__sheet {
        border-radius: 14px;
    }

    .quick-order-product-media__plate {
        gap: 10px;
        margin-top: 10px;
        padding-top: 10px;
    }

    .quick-order-product-media__plate-logo {
        width: 30px;
        height: 30px;
        border-radius: 10px;
    }

    .quick-order-product-media__plate-logo img {
        width: 19px;
        height: 19px;
    }

    .quick-order-product-media__plate-copy span:first-child {
        font-size: 11px;
    }

    .quick-order-product-media__plate-copy span:last-child,
    .quick-order-product-media__plate-product-brand {
        font-size: 9px;
    }
}

.wholesale-accordion-main {
    min-width: 0;
}

.wholesale-accordion-category {
    display: inline-flex;
    padding: 5px 10px;
    border-radius: 999px;
    background: #fce7f3;
    color: #b03a74;
    font-size: 11px;
    font-weight: 800;
}

.wholesale-accordion-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 999px;
    background: #fff;
    border: 1px solid #edd7e5;
    color: #8b1f57;
    transition: transform 0.18s ease;
}

.wholesale-accordion-arrow.is-open {
    transform: rotate(180deg);
}

.wholesale-stat-chip {
    padding: 8px 6px;
    border-radius: 16px;
    background: #fff;
    border: 1px solid #f1e4db;
}

.wholesale-stat-label {
    color: #7b6a5d;
    font-size: 10px;
    font-weight: 700;
}

.wholesale-stat-value {
    margin-top: 4px;
    color: #2f241d;
    font-size: 12px;
    font-weight: 800;
}

.wholesale-accordion-body {
    background: #fff;
}

.wholesale-sheet__head {
    letter-spacing: 0.01em;
}

.product-order-row {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 0;
}

.product-order-stack {
    display: block;
}

.product-order-media {
    min-height: 100%;
}

.product-order-media--top {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 180px;
    max-height: clamp(180px, 38vh, 360px);
    border-radius: 24px;
    overflow: hidden;
}

.product-order-content {
    min-width: 0;
}

.product-order-content--stacked {
    min-width: 0;
}

.mobile-qty-sheet {
    border: 1px solid #eadfd6;
    border-radius: 24px;
    background: linear-gradient(180deg, #fffdfa 0%, #ffffff 100%);
    padding: 12px;
}

.product-matrix {
    border: 1px solid #eadfd6;
    border-radius: 24px;
    background: linear-gradient(180deg, #fffdfa 0%, #ffffff 100%);
    padding: 12px;
}

.product-matrix__legend {
    color: #7b6a5d;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.7;
    margin-bottom: 12px;
}

.product-matrix__scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 2px;
}

.product-matrix__table {
    width: 100%;
    min-width: 720px;
    border-collapse: separate;
    border-spacing: 0;
    table-layout: fixed;
}

.product-matrix__head {
    padding: 10px 8px;
    background: #fff3fa;
    color: #7f5a44;
    font-size: 12px;
    font-weight: 800;
    text-align: center;
    white-space: nowrap;
    border-bottom: 1px solid #eadfd6;
}

.product-matrix__head--shade {
    width: 220px;
    text-align: right;
}

.product-matrix__head--carton {
    width: 96px;
}

.product-matrix-row td {
    padding: 8px 6px;
    border-bottom: 1px solid #f1e6de;
    background: #fff;
}

.product-matrix-row:last-child td {
    border-bottom: 0;
}

.product-matrix-row.is-selected td {
    background: #fff7fb;
}

.product-matrix-row__shade-cell {
    width: 220px;
}

.product-matrix-shade {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #2f241d;
    font-size: 13px;
    font-weight: 800;
}

.product-matrix-shade__name {
    line-height: 1.35;
}

.product-matrix-shade__meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    margin-top: 6px;
    flex-wrap: wrap;
}

.product-matrix-selected {
    color: #7b6a5d;
    font-size: 10px;
    font-weight: 700;
}

.product-matrix-selected strong {
    color: #8b1f57;
    font-size: 13px;
    font-weight: 900;
}

.product-matrix-cell {
    text-align: center;
    vertical-align: middle;
    width: 64px;
}

.product-matrix-choice {
    width: 100%;
    min-height: 38px;
    padding: 0 4px;
    border-radius: 12px;
    border: 1.5px solid #e4d8cf;
    background: #fcfbfa;
    color: #6f4e37;
    font-size: 12px;
    font-weight: 800;
    transition: all 0.18s ease;
}

.product-matrix-choice.active {
    border-color: #ec5fb4;
    background: linear-gradient(180deg, #ec5fb4 0%, #c63b80 100%);
    color: #fff;
    box-shadow: 0 8px 16px rgba(236, 95, 180, 0.24);
}

.product-matrix-choice--carton {
    min-width: 0;
}

.mobile-qty-sheet__legend {
    color: #7b6a5d;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.7;
    margin-bottom: 12px;
}

.mobile-qty-sheet__rows {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.mobile-shade-card {
    border: 1px solid #efe4db;
    border-radius: 20px;
    background: #fff;
    padding: 12px;
    transition: border-color 0.18s ease, background-color 0.18s ease, box-shadow 0.18s ease;
}

.mobile-shade-card.is-selected {
    border-color: rgba(236, 95, 180, 0.4);
    background: #fff7fb;
    box-shadow: 0 10px 24px rgba(236, 95, 180, 0.08);
}

.mobile-shade-card__top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
}

.mobile-shade-card__name-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.mobile-shade-card__name {
    color: #2f241d;
    font-size: 14px;
    font-weight: 800;
    line-height: 1.5;
}

.mobile-shade-card__meta {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.mobile-shade-card__selected {
    color: #7b6a5d;
    font-size: 11px;
    font-weight: 700;
}

.mobile-shade-card__selected strong {
    color: #8b1f57;
    font-size: 14px;
    font-weight: 900;
}

.mobile-shade-card__choices {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
    margin-top: 12px;
}

.mobile-shade-chip {
    min-height: 44px;
    border-radius: 16px;
    border: 1.5px solid #e4d8cf;
    background: #fcfbfa;
    color: #6f4e37;
    font-size: 14px;
    font-weight: 800;
    transition: all 0.18s ease;
}

.mobile-shade-chip__value {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 100%;
}

.mobile-shade-chip.active {
    border-color: #ec5fb4;
    background: linear-gradient(180deg, #ec5fb4 0%, #c63b80 100%);
    color: #fff;
    box-shadow: 0 8px 16px rgba(236, 95, 180, 0.24);
    transform: translateY(-1px);
}

.mobile-shade-chip:active {
    transform: scale(0.98);
}

.mobile-order-bar {
    position: fixed;
    right: 12px;
    left: 12px;
    bottom: 76px;
    z-index: 55;
    border: 1px solid rgba(139, 31, 87, 0.12);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: 0 18px 36px rgba(48, 32, 23, 0.12);
    padding: 12px;
}

.mobile-order-bar__meta,
.mobile-order-bar__actions {
    display: grid;
    gap: 10px;
}

.mobile-order-bar__meta {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: center;
    margin-bottom: 10px;
}

.mobile-order-bar__label {
    color: #7b6a5d;
    font-size: 11px;
    font-weight: 700;
}

.mobile-order-bar__value {
    margin-top: 2px;
    color: #8b1f57;
    font-size: 18px;
    font-weight: 900;
}

.mobile-order-bar__actions {
    grid-template-columns: 96px minmax(0, 1fr);
}

.mobile-order-bar__primary,
.mobile-order-bar__secondary {
    min-height: 48px;
    border-radius: 18px;
    font-size: 15px;
    font-weight: 800;
}

.mobile-order-bar__primary {
    background: linear-gradient(180deg, #8b1f57 0%, #b03a74 100%);
    color: #fff;
    box-shadow: 0 10px 22px rgba(176, 58, 116, 0.22);
}

.mobile-order-bar__secondary {
    border: 1px solid rgba(139, 31, 87, 0.16);
    background: #fff;
    color: #6a5b52;
}

@media (max-width: 1100px) {
    .product-order-row {
        grid-template-columns: 180px minmax(0, 1fr);
    }
}

@media (max-width: 900px) {
    .mobile-safe-area {
        padding-bottom: 180px;
    }

    .wholesale-accordion-head {
        padding: 12px;
    }

    .wholesale-accordion-media {
        min-height: 72px;
        max-height: 92px;
    }

    .product-order-row {
        grid-template-columns: 1fr;
        border-radius: 24px;
    }

    .product-order-media {
        display: none;
    }

    .product-order-media--top {
        display: block;
        min-height: 150px;
        max-height: clamp(150px, 30vh, 240px);
        padding: 10px;
    }

    .product-order-content {
        padding: 14px;
    }

    .product-matrix {
        padding: 8px;
    }

    .product-matrix__table {
        min-width: 560px;
    }

    .product-matrix__head {
        padding: 8px 4px;
        font-size: 10px;
    }

    .product-matrix__head--shade {
        width: 150px;
    }

    .product-matrix__head--carton {
        width: 72px;
    }

    .product-matrix-row td {
        padding: 6px 4px;
    }

    .product-matrix-row__shade-cell {
        width: 150px;
    }

    .product-matrix-shade {
        font-size: 12px;
        gap: 5px;
    }

    .product-matrix-shade__name {
        line-height: 1.25;
    }

    .product-matrix-shade__meta {
        margin-top: 4px;
        gap: 4px;
    }

    .product-matrix-selected {
        font-size: 9px;
    }

    .product-matrix-selected strong {
        font-size: 12px;
    }

    .product-matrix-choice {
        width: 100%;
        min-height: 34px;
        padding: 0 2px;
        border-radius: 10px;
        font-size: 11px;
    }

    .product-matrix-choice--carton {
        min-width: 0;
    }

    .wholesale-sheet__head {
        padding: 14px 18px;
        font-size: 18px;
    }

    .mobile-qty-sheet {
        padding: 10px;
    }

    .mobile-qty-sheet__rows {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }

    .mobile-shade-card {
        padding: 10px;
        border-radius: 18px;
    }

    .mobile-shade-card__top {
        flex-direction: column;
        align-items: stretch;
    }

    .mobile-shade-card__meta {
        justify-content: space-between;
    }

    .mobile-shade-card__choices {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 6px;
    }

    .mobile-shade-chip {
        min-height: 42px;
        border-radius: 14px;
        font-size: 13px;
    }

    .invoice-sheet {
        overflow: hidden;
    }

    .invoice-hero,
    .invoice-meta-grid,
    .invoice-footer-grid {
        grid-template-columns: 1fr;
    }

    .invoice-a4 {
        width: 100%;
        min-height: auto;
        padding: 24px 18px;
    }
}

@media (max-width: 420px) {
    .product-matrix__table {
        min-width: 520px;
    }

    .product-matrix__head--shade,
    .product-matrix-row__shade-cell {
        width: 132px;
    }

    .product-matrix__head--carton {
        width: 68px;
    }
}

@media print {
    @page {
        size: A4 portrait;
        margin: 8mm;
    }

    html,
    body {
        width: auto !important;
        min-height: auto !important;
    }

    body {
        background: #ffffff !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
        margin: 0 !important;
    }

    header,
    #page-loader,
    #toast-container,
    .print\:hidden {
        display: none !important;
    }

    #app {
        opacity: 1 !important;
        min-height: auto !important;
    }

    main {
        margin: 0 !important;
        padding: 0 !important;
        max-width: none !important;
    }

    .customer-view {
        display: none !important;
    }

    #invoice-view {
        display: block !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    .invoice-sheet {
        width: 100% !important;
        min-height: auto !important;
        max-width: none !important;
        margin: 0 auto !important;
        border: 0 !important;
        box-shadow: none !important;
        border-radius: 0 !important;
        padding: 10mm 8mm 8mm !important;
        background: #ffffff !important;
        overflow: visible !important;
    }

    .invoice-a4 {
        width: 100% !important;
        min-height: auto !important;
        padding: 0 !important;
        overflow: visible !important;
    }

    /* Header */
    .invoice-header-grid {
        padding-bottom: 10px !important;
        margin-bottom: 12px !important;
    }

    .invoice-header-grid::before {
        display: none !important;
    }

    .invoice-badge-tag {
        font-size: 16px !important;
        padding: 5px 14px !important;
    }

    .invoice-status-badge {
        min-height: 26px !important;
        padding: 4px 10px !important;
        font-size: 9px !important;
    }

    .invoice-info-value {
        font-size: 13px !important;
    }

    .invoice-logo-wrap svg,
    .invoice-logo-wrap img {
        width: 48px !important;
        height: 48px !important;
    }

    .invoice-brand-name {
        font-size: 18px !important;
    }

    .invoice-brand-tagline {
        font-size: 9px !important;
    }

    /* Customer Grid */
    .invoice-customer-grid {
        gap: 10px !important;
        margin-bottom: 18px !important;
    }

    .invoice-customer-card {
        padding: 10px 12px !important;
        border-radius: 10px !important;
    }

    .invoice-customer-name {
        font-size: 13px !important;
    }

    .invoice-customer-detail {
        font-size: 10px !important;
    }

    /* Simplified Customer Identity (Print) */
    .invoice-customer-simple {
        padding: 12px 16px !important;
        border-radius: 10px !important;
        margin-bottom: 18px !important;
    }

    .invoice-customer-line {
        font-size: 11px !important;
        line-height: 1.7 !important;
    }

    .invoice-customer-line--primary {
        font-size: 14px !important;
    }

    /* Table */
    .invoice-table-wrap {
        margin-bottom: 18px !important;
        border-radius: 10px !important;
    }

    .invoice-table-header th {
        padding: 8px 10px !important;
        font-size: 10px !important;
        color: #ffffff !important;
    }

    .invoice-table th,
    .invoice-table td {
        padding: 6px 8px !important;
        font-size: 10px !important;
        word-break: break-word !important;
        white-space: normal !important;
    }

    .invoice-row:nth-child(even) {
        background: rgba(243, 243, 248, 0.3) !important;
    }

    /* Footer */
    .invoice-footer-grid {
        grid-template-columns: minmax(0, 1fr) 74mm !important;
        gap: 6mm !important;
        margin-bottom: 18px !important;
        margin-top: 6px !important;
    }

    .invoice-note-panel,
    .invoice-total-panel {
        padding: 10px 12px !important;
        border-radius: 10px !important;
    }

    .invoice-note-list {
        font-size: 9px !important;
        line-height: 1.4 !important;
    }

    .invoice-pricing-state {
        margin-bottom: 8px !important;
        padding: 4px 10px !important;
        font-size: 9px !important;
    }

    .invoice-total-value {
        font-size: 18px !important;
    }

    .invoice-total-row {
        font-size: 10px !important;
    }

    /* Signature */
    .invoice-signature-grid {
        gap: 14px !important;
        margin-bottom: 18px !important;
        margin-top: 6px !important;
    }

    .invoice-sig-label {
        font-size: 9px !important;
    }

    .invoice-sig-line {
        height: 30px !important;
    }

    .invoice-stamp-area {
        height: 50px !important;
        border-radius: 8px !important;
    }

    /* Bottom bar */
    .invoice-bottom-bar {
        font-size: 9px !important;
        padding-top: 6px !important;
    }

    .invoice-table-wrap {
        overflow: visible !important;
    }

    .invoice-table-header,
    .invoice-status-badge,
    .invoice-total-panel,
    .invoice-stamp-area,
    .invoice-a4 {
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
    }

    table {
        page-break-inside: auto;
    }

    tr {
        page-break-inside: avoid;
        page-break-after: auto;
    }

    .invoice-header-grid,
    .invoice-customer-grid,
    .invoice-footer-grid,
    .invoice-signature-grid,
    .invoice-bottom-bar {
        page-break-inside: avoid !important;
    }
}

/* === Quantity Selection Buttons — Redesigned (show number, larger touch target) === */
.matrix-radio {
    appearance: none;
    -webkit-appearance: none;
    width: 52px;
    height: 40px;
    border: 2px solid #ddbfc5;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.22s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    background: #fcfbfa;
    padding: 0;
    display: inline-block;
    color: #6f4e37;
}
.matrix-radio::before {
    content: attr(data-qty);
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: 'Cairo', sans-serif;
    font-size: 13px;
    font-weight: 800;
    color: inherit;
    line-height: 1;
    pointer-events: none;
}
.matrix-radio::after {
    content: none !important;
    display: none !important;
}
.matrix-radio:hover {
    border-color: rgba(233, 30, 99, 0.45);
    background: rgba(233, 30, 99, 0.05);
    color: #e91e63;
}
.matrix-radio.active {
    border-color: #e91e63;
    background: linear-gradient(135deg, #ff4081, #e91e63);
    color: white;
    transform: scale(1.08);
    box-shadow: 0 6px 18px rgba(233, 30, 99, 0.30);
}
.matrix-radio.active::before {
    color: white;
}
.matrix-radio.active::after {
    display: none !important;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes zoomIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

.animate-fade-in {
    animation: fadeIn 0.5s ease-out forwards;
}

.animate-zoom-in {
    animation: zoomIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

/* Custom Success Animation */
.success-checkmark {
    animation: zoomIn 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

/* =================================================
   ALOSTA UI REDESIGN — Quick Order & Review v2.0
   ================================================= */

/* --- Design Tokens --- */
:root {
    --a-primary: #e91e63;
    --a-primary-light: #ff4081;
    --a-primary-glow: rgba(233, 30, 99, 0.12);
    --a-step-size: 34px;
    --a-card-radius: 20px;
}

/* --- New Keyframe Animations --- */
@keyframes slideUpFade {
    from { opacity: 0; transform: translateY(12px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes countBump {
    0%, 100% { transform: scale(1); }
    50%       { transform: scale(1.3); }
}
@keyframes shimmerLoad {
    from { background-position: -600px 0; }
    to   { background-position:  600px 0; }
}
@keyframes subtlePulse {
    0%, 100% { box-shadow: 0 8px 28px rgba(233, 30, 99, 0.18); }
    50%       { box-shadow: 0 12px 42px rgba(233, 30, 99, 0.32); }
}

/* View entry animation */
.customer-view:not(.hidden) {
    animation: slideUpFade 0.28s ease-out both;
}

/* --- Progress Steps Bar --- */
.site-header {
    position: sticky;
    top: 0;
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(221, 191, 197, 0.35);
    box-shadow: 0 2px 10px rgba(233, 30, 99, 0.05);
}
.site-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 12px 16px;
}
.site-header__brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}
.site-header__logo {
    height: 44px;
    width: auto;
    object-fit: contain;
    display: block;
}
.site-header__brand-ar,
.brand-name-ar {
    font-family: 'Cairo', sans-serif;
    font-size: 14px;
    font-weight: 800;
    color: #6b5c53;
    line-height: 1.2;
    white-space: nowrap;
}
.site-header__actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    flex-wrap: wrap;
}
.site-header__action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 40px;
    padding: 8px 14px;
    border-radius: 999px;
    border: 1px solid rgba(233, 30, 99, 0.14);
    background: rgba(255, 255, 255, 0.95);
    color: #6b5c53;
    font-size: 13px;
    font-weight: 800;
    line-height: 1;
    transition: border-color 0.2s, color 0.2s, background 0.2s, transform 0.15s;
}
.site-header__action:hover {
    border-color: rgba(233, 30, 99, 0.28);
    color: #e91e63;
    background: rgba(233, 30, 99, 0.05);
}
.site-header__action:active {
    transform: scale(0.98);
}
.site-header__action--primary {
    background: rgba(233, 30, 99, 0.1);
    color: #e91e63;
    border-color: rgba(233, 30, 99, 0.12);
}
.site-header__action--danger {
    color: #9e422c;
    border-color: rgba(158, 66, 44, 0.16);
    background: rgba(158, 66, 44, 0.05);
}
.brand-logo-full {
    display: block;
    width: auto;
    height: 44px;
    object-fit: contain;
}
.brand-logo-full--invoice {
    height: 56px;
}
.alosta-steps-bar {
    display: none;
    position: relative;
    top: 0;
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(221, 191, 197, 0.35);
    box-shadow: 0 2px 8px rgba(233, 30, 99, 0.04);
    margin-bottom: 8px;
}
.alosta-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    direction: rtl;
}
.alosta-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    padding: 4px 10px;
    border-radius: 12px;
    cursor: pointer;
    border: none;
    background: none;
    font-family: 'Cairo', sans-serif;
    transition: background 0.18s ease;
    -webkit-tap-highlight-color: transparent;
}
.alosta-step:hover { background: rgba(233, 30, 99, 0.06); }
.step-circle {
    width: var(--a-step-size);
    height: var(--a-step-size);
    border-radius: 50%;
    border: 2px solid #ddbfc5;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 900;
    color: #8b4a5e;
    background: white;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    font-family: 'Cairo', sans-serif;
    line-height: 1;
}
.step-label {
    font-size: 10px;
    font-weight: 700;
    color: #8b4a5e;
    white-space: nowrap;
    font-family: 'Cairo', sans-serif;
    transition: color 0.2s;
}
.alosta-step.is-active .step-circle {
    background: linear-gradient(135deg, #ff4081, #e91e63);
    border-color: transparent;
    color: white;
    box-shadow: 0 4px 14px rgba(233, 30, 99, 0.42);
    transform: scale(1.12);
}
.alosta-step.is-active .step-label {
    color: #e91e63;
    font-weight: 900;
}
.alosta-step.is-done .step-circle {
    background: rgba(233, 30, 99, 0.10);
    border-color: rgba(233, 30, 99, 0.30);
    color: #e91e63;
}
.alosta-step.is-done .step-label { color: #e91e63; }
.step-connector {
    width: 40px;
    height: 2px;
    background: #ddbfc5;
    flex-shrink: 0;
    margin-bottom: 20px;
    border-radius: 2px;
    transition: background 0.4s ease;
}
.step-connector.is-filled {
    background: linear-gradient(90deg, #e91e63, #ff4081);
}
@media (max-width: 380px) {
    .site-header__inner {
        align-items: flex-start;
        gap: 10px;
        padding: 10px 12px;
    }
    .site-header__logo {
        height: 40px;
    }
    .site-header__brand {
        gap: 8px;
    }
    .site-header__brand-ar,
    .brand-name-ar {
        font-size: 11px;
    }
    .site-header__actions {
        gap: 6px;
        max-width: 56%;
    }
    .site-header__action {
        min-height: 36px;
        padding: 7px 10px;
        font-size: 11px;
    }
    .alosta-step { padding: 4px 6px; }
    .step-circle { width: 28px; height: 28px; font-size: 11px; }
    .step-connector { width: 22px; }
}

@media (max-width: 767px) {
    .site-header__inner {
        padding: 10px 14px;
    }
    .site-header__logo {
        height: 42px;
    }
    .site-header__actions {
        max-width: 58%;
        gap: 6px;
    }
    .site-header__action {
        padding: 7px 12px;
        font-size: 12px;
    }
    .brand-logo-full {
        height: 40px;
    }
}

@media (min-width: 768px) {
    .alosta-steps-bar {
        display: block;
    }
    .site-header__inner {
        padding: 14px 24px;
    }
    .site-header__logo {
        height: 46px;
    }
}

/* --- Hero Banner --- */
.alosta-hero-banner {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    background: linear-gradient(145deg, #fff5f8 0%, #ffffff 50%, #fdf3f7 100%);
    border: 1px solid rgba(233, 30, 99, 0.11);
    box-shadow: 0 4px 24px rgba(233, 30, 99, 0.06);
}
.alosta-stat-chip {
    background: white;
    border: 1px solid rgba(221, 191, 197, 0.55);
    border-radius: 18px;
    padding: 14px 18px;
    text-align: center;
    min-width: 100px;
    box-shadow: 0 2px 10px rgba(233, 30, 99, 0.06);
    transition: transform 0.2s, box-shadow 0.2s;
}
.alosta-stat-chip:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(233, 30, 99, 0.10);
}
.stat-chip-label {
    font-size: 9px;
    font-weight: 800;
    color: #8b4a5e;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: 6px;
    font-family: 'Cairo', sans-serif;
}
.stat-chip-value {
    font-size: 24px;
    font-weight: 900;
    line-height: 1;
    font-family: 'Cairo', sans-serif;
    color: #e91e63;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* --- Filter Select Wrappers --- */
.alosta-select-wrap {
    position: relative;
    display: inline-block;
}
.alosta-select-wrap select {
    appearance: none;
    -webkit-appearance: none;
    background: white;
    border: 1.5px solid rgba(221, 191, 197, 0.65);
    border-radius: 999px;
    padding: 9px 38px 9px 18px;
    font-size: 13px;
    font-weight: 700;
    color: #574146;
    font-family: 'Cairo', sans-serif;
    cursor: pointer;
    transition: border-color 0.18s, box-shadow 0.18s, background 0.18s;
    box-shadow: 0 1px 4px rgba(233, 30, 99, 0.05);
    min-width: 130px;
}
.alosta-select-wrap select:hover {
    border-color: rgba(233, 30, 99, 0.35);
    background: #fff8fb;
}
.alosta-select-wrap select:focus {
    outline: none;
    border-color: rgba(233, 30, 99, 0.50);
    box-shadow: 0 0 0 3px rgba(233, 30, 99, 0.09);
}
.alosta-select-wrap::after {
    content: 'expand_more';
    font-family: 'Material Symbols Outlined';
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #e91e63;
    font-size: 18px;
    pointer-events: none;
    font-variation-settings: 'FILL' 0, 'wght' 300, 'GRAD' 0, 'opsz' 24;
}

/* --- Search Input --- */
.alosta-search-input {
    width: 100%;
    background: white;
    border: 1.5px solid rgba(221, 191, 197, 0.55);
    border-radius: 999px;
    padding: 10px 42px 10px 16px;
    font-size: 13px;
    font-family: 'Cairo', sans-serif;
    color: #1a1c1f;
    transition: border-color 0.18s, box-shadow 0.18s;
    box-shadow: 0 1px 4px rgba(233, 30, 99, 0.04);
}
.alosta-search-input:focus {
    outline: none;
    border-color: rgba(233, 30, 99, 0.50);
    box-shadow: 0 0 0 3px rgba(233, 30, 99, 0.08);
}
.alosta-search-input::placeholder { color: #b5909a; }

/* --- Sidebar Confirm Button Pulse --- */
.sidebar-confirm-btn {
    animation: subtlePulse 4s ease-in-out infinite;
}
.sidebar-confirm-btn:hover { animation: none; }

/* --- Review Page Header Banner --- */
.review-header-banner {
    background: linear-gradient(140deg, #fff5f8 0%, white 65%);
    border: 1px solid rgba(233, 30, 99, 0.11);
    border-radius: 20px;
    padding: 22px 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    box-shadow: 0 2px 12px rgba(233, 30, 99, 0.05);
}
@media (min-width: 768px) {
    .review-header-banner {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }
}
.review-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 12px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 800;
    background: rgba(255, 193, 7, 0.12);
    color: #8a6800;
    border: 1px solid rgba(255, 193, 7, 0.35);
    margin-bottom: 6px;
    font-family: 'Cairo', sans-serif;
}

/* --- Review Table --- */
.review-table {
    width: 100%;
    border-collapse: collapse;
}
.review-table thead tr {
    background: linear-gradient(135deg, #fff5f8, #fdf3f7);
    border-bottom: 2px solid rgba(233, 30, 99, 0.08);
}
.review-table thead th {
    color: #8b1f57;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.05em;
    padding: 13px 16px;
    font-family: 'Cairo', sans-serif;
}
.review-table tbody tr {
    border-bottom: 1px solid rgba(221, 191, 197, 0.18);
    transition: background 0.12s ease;
}
.review-table tbody tr:last-child { border-bottom: none; }
.review-table tbody tr:hover { background: rgba(233, 30, 99, 0.025); }

/* --- Quick Tools Card --- */
.quick-tools-card {
    box-shadow: 0 12px 30px rgba(233, 30, 99, 0.05);
}

.quick-tool-btn {
    display: inline-flex;
    min-height: 50px;
    align-items: center;
    justify-content: center;
    gap: 7px;
    border-radius: 14px;
    padding: 11px 14px;
    font-family: 'Cairo', sans-serif;
    font-size: 13px;
    font-weight: 900;
    text-decoration: none;
    transition: transform 0.15s ease, opacity 0.15s ease, background 0.15s ease;
    -webkit-tap-highlight-color: transparent;
}

.quick-tool-btn:hover {
    opacity: 0.95;
}

.quick-tool-btn:active {
    transform: scale(0.98);
}

.quick-tool-btn-primary {
    border: none;
    background: linear-gradient(135deg, #ff4081, #e91e63);
    color: #ffffff;
    box-shadow: 0 8px 18px rgba(233, 30, 99, 0.20);
}

.quick-tool-btn-secondary {
    border: 1px solid rgba(233, 30, 99, 0.12);
    background: rgba(255, 255, 255, 0.82);
    color: #5a4450;
}

.quick-tool-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.96);
}

/* --- Fast Order Quantity Matrix --- */

@media (max-width: 420px) {
    .quick-tool-btn {
        min-height: 48px;
        padding: 10px 12px;
        font-size: 12px;
    }
}

/* --- Progressive Send-Order Reveal --- */
#desktop-submit-section {
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.35s ease, transform 0.35s ease;
}
body.order-ready #desktop-submit-section {
    opacity: 1;
    transform: translateY(0);
}

#mobile-cart-summary {
    display: none !important;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.35s ease, transform 0.35s ease;
}
body.order-ready #mobile-cart-summary {
    display: flex !important;
    opacity: 1;
    transform: translateY(0);
}

#order-ready-hint {
    animation: order-ready-hint-pulse 2.4s ease-in-out infinite;
}
body.order-ready #order-ready-hint {
    display: none !important;
}
@keyframes order-ready-hint-pulse {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-3px); }
}

/* --- Mobile Action Bar (Full Redesign) --- */
.mobile-action-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 40;
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid rgba(221, 191, 197, 0.40);
    box-shadow: 0 -4px 24px rgba(233, 30, 99, 0.08);
    padding-bottom: env(safe-area-inset-bottom, 0px);
}
.mobile-nav-bar {
    display: flex;
    align-items: center;
    justify-content: space-around;
    padding: 10px 6px 6px;
    border-bottom: 1px solid rgba(221, 191, 197, 0.20);
}
.mobile-nav-btn.is-active {
    background: rgba(233, 30, 99, 0.10) !important;
    color: #e91e63 !important;
}
.mobile-nav-btn.is-active .nav-icon {
    font-variation-settings: 'FILL' 1;
}
.mobile-nav-btn.is-active .nav-label {
    color: #e91e63;
    font-weight: 900;
}
.mobile-nav-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    padding: 6px 14px;
    border-radius: 14px;
    background: none;
    border: none;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
    color: #8b4a5e;
    font-family: 'Cairo', sans-serif;
    text-decoration: none;
    -webkit-tap-highlight-color: transparent;
}
/* Override navigateTo() Tailwind class injections on mobile nav buttons */
.mobile-nav-btn.bg-primary,
.mobile-nav-btn.bg-white {
    background: none !important;
    box-shadow: none !important;
}
.mobile-nav-btn.shadow-lg { box-shadow: none !important; }
.mobile-nav-btn.text-white { color: #e91e63 !important; }
.mobile-nav-btn.text-secondary { color: #8b4a5e; }
.mobile-nav-btn.bg-primary {
    background: rgba(233, 30, 99, 0.10) !important;
    color: #e91e63 !important;
}
.mobile-nav-btn .nav-icon { font-size: 22px; line-height: 1; }
.mobile-nav-btn .nav-label { font-size: 10px; font-weight: 700; line-height: 1; }
.mobile-cart-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 16px;
    padding-bottom: max(16px, env(safe-area-inset-bottom));
    gap: 14px;
}
.submit-summary-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
    padding: 10px 14px;
    border-radius: 999px;
    background: rgba(233, 30, 99, 0.08);
    border: 1px solid rgba(233, 30, 99, 0.16);
    color: #8b4a5e;
    white-space: nowrap;
    font-family: 'Cairo', sans-serif;
}
.submit-summary-separator {
    color: rgba(139, 74, 94, 0.6);
}
.cart-mini-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}
.cart-count-label {
    font-size: 10px;
    font-weight: 700;
    color: #8b4a5e;
    font-family: 'Cairo', sans-serif;
    line-height: 1.4;
}
.cart-total-label {
    font-size: 17px;
    font-weight: 900;
    color: #e91e63;
    font-family: 'Cairo', sans-serif;
    line-height: 1.2;
}
.cart-submit-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, #ff4081, #e91e63);
    color: white;
    padding: 12px 24px;
    border-radius: 999px;
    font-weight: 900;
    font-size: 15px;
    border: none;
    cursor: pointer;
    font-family: 'Cairo', sans-serif;
    box-shadow: 0 6px 20px rgba(233, 30, 99, 0.30);
    transition: opacity 0.2s, transform 0.15s;
    white-space: nowrap;
    flex-shrink: 0;
    -webkit-tap-highlight-color: transparent;
}
.cart-submit-btn:active {
    transform: scale(0.97);
    opacity: 0.90;
}

/* --- Skeleton Loader --- */
.skeleton {
    background: linear-gradient(90deg, #f5eff2 25%, #ede4e8 50%, #f5eff2 75%);
    background-size: 936px 100%;
    animation: shimmerLoad 1.6s infinite linear;
    border-radius: 12px;
}

/* --- Input Focus Enhancement (Global) --- */
input[class*="bg-surface"]:focus,
input[class*="bg-white"]:focus,
textarea[class*="bg-surface"]:focus {
    border-color: rgba(233, 30, 99, 0.45) !important;
    box-shadow: 0 0 0 3px rgba(233, 30, 99, 0.08) !important;
    outline: none !important;
}

/* --- Print: Prevent regression --- */
@media print {
    .alosta-steps-bar { display: none !important; }
}

/* --- Auth Pages --- */
.auth-shell {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px 16px;
    position: relative;
    overflow-x: hidden;
    overflow-y: auto;
}

.auth-shell::before,
.auth-shell::after {
    display: none;
}

.auth-card {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 400px;
    border-radius: 12px;
    border: 1px solid #e0e0e0;
    background: #ffffff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    overflow: visible;
}

.auth-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    height: 4px;
    background: linear-gradient(90deg, #e91e63, #ff4081);
}

.auth-card__body {
    padding: 30px 28px 26px;
}

.auth-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-bottom: 28px;
}

.auth-brand__logo {
    width: auto;
    height: auto;
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0;
    background: transparent;
    box-shadow: none;
    overflow: visible;
    margin-bottom: 12px;
}

.auth-brand__logo img {
    width: auto;
    height: 72px;
    object-fit: contain;
}

.auth-brand__eyebrow {
    margin-top: 10px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(233, 30, 99, 0.08);
    color: #8a3557;
    font-size: 11px;
    font-weight: 900;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.auth-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.auth-field__label {
    font-size: 13px;
    font-weight: 800;
    color: #6d5760;
    padding-right: 4px;
}

.auth-input-wrap {
    position: relative;
}

.auth-input-icon,
.auth-input-action {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: #9f8890;
}

.auth-input-icon {
    right: 14px;
    pointer-events: none;
}

.auth-input-action {
    left: 14px;
}

.auth-input {
    width: 100%;
    min-height: 54px;
    border-radius: 18px;
    border: 1px solid rgba(221, 191, 197, 0.55);
    background: #f8f6f7;
    padding: 14px 48px;
    font-size: 14px;
    color: #1f2125;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.auth-input:focus {
    outline: none;
    border-color: rgba(233, 30, 99, 0.38);
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(233, 30, 99, 0.08);
}

.auth-input[aria-invalid='true'] {
    border-color: rgba(186, 26, 26, 0.45);
    box-shadow: 0 0 0 4px rgba(186, 26, 26, 0.08);
}

.auth-error-box {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 14px 16px;
    border-radius: 18px;
    background: rgba(186, 26, 26, 0.08);
    color: #8f1d1d;
    border: 1px solid rgba(186, 26, 26, 0.14);
    font-size: 13px;
    font-weight: 700;
}

.auth-error-text {
    min-height: 16px;
    font-size: 12px;
    font-weight: 800;
    color: #ba1a1a;
    padding-right: 4px;
}

.auth-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    font-size: 13px;
}

.auth-check {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #6d5760;
    font-weight: 700;
}

.auth-check input {
    width: 16px;
    height: 16px;
}

.auth-muted-link {
    color: #8a3557;
    font-weight: 800;
}

.auth-submit {
    min-height: 60px;
    width: 100%;
    border: none;
    border-radius: 18px;
    background: linear-gradient(135deg, #e91e63, #ff4081);
    color: #fff;
    font-size: 16px;
    font-weight: 900;
    line-height: 1.2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 18px;
    box-shadow: 0 14px 30px rgba(233, 30, 99, 0.20);
    transition: transform 0.15s ease, opacity 0.15s ease;
    white-space: nowrap;
    text-align: center;
    overflow: visible;
}

.auth-submit .material-symbols-outlined {
    flex-shrink: 0;
    line-height: 1;
}

.auth-submit span {
    line-height: 1.1;
}

.auth-submit:hover {
    opacity: 0.96;
}

.auth-submit:active {
    transform: scale(0.985);
}

.auth-submit:disabled {
    opacity: 0.7;
    cursor: wait;
}

.auth-footer {
    margin-top: 26px;
    padding-top: 18px;
    border-top: 1px solid rgba(221, 191, 197, 0.24);
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
    text-align: center;
    font-size: 14px;
    color: #6d5760;
}

.auth-footer a {
    font-weight: 900;
    color: #e91e63;
}

.auth-back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #7b6871 !important;
    font-weight: 800;
}

.auth-support-note {
    font-size: 12px;
    color: #84717a;
    text-align: center;
    line-height: 1.6;
}

@media (max-width: 480px) {
    .auth-card__body {
        padding: 26px 20px 22px;
    }

    .auth-brand__logo {
        width: auto;
        height: auto;
        border-radius: 0;
    }

    .auth-brand__logo img {
        width: auto;
        height: 64px;
    }

    .auth-submit {
        font-size: 15px;
        gap: 8px;
        padding: 13px 16px;
        min-height: 58px;
    }
}


/* Subtle Paper Texture Overlay */
.texture-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background-image: url('data:image/svg+xml;utf8,%3Csvg viewBox="0 0 200 200" xmlns="http://www.w3.org/2000/svg"%3E%3Cfilter id="noiseFilter"%3E%3CfeTurbulence type="fractalNoise" baseFrequency="0.65" numOctaves="3" stitchTiles="stitch"/%3E%3C/filter%3E%3Crect width="100%25" height="100%25" filter="url(%23noiseFilter)" opacity="0.02"/%3E%3C/svg%3E');
    pointer-events: none;
    z-index: 1;
}

/* Glassmorphism gradient for Primary CTA */
.btn-primary-glass {
    background: linear-gradient(135deg, #a23759 0%, #c24f71 100%);
    box-shadow: 0px 8px 24px rgba(162, 55, 89, 0.2);
    transition: all 0.3s ease;
}
.btn-primary-glass:hover {
    box-shadow: 0px 12px 32px rgba(162, 55, 89, 0.3);
    transform: translateY(-1px);
}

/* Custom Scrollbar for Form Overlay */
.custom-scrollbar::-webkit-scrollbar { width: 6px; }
.custom-scrollbar::-webkit-scrollbar-track { background: transparent; }
.custom-scrollbar::-webkit-scrollbar-thumb { background: #dbc0c4; border-radius: 4px; }

/* Ghost border input focus */
.input-ghost-focus:focus-within {
    background-color: #ffffff;
    outline: 2px solid rgba(162, 55, 89, 0.3);
}

/* Customers Page Styles */
.soft-shadow {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
}
.custom-scrollbar::-webkit-scrollbar {
    width: 6px;
}
.custom-scrollbar::-webkit-scrollbar-thumb {
    background-color: #dee2e6;
    border-radius: 10px;
}
