/* ==========================================================================
   Tribes Market - Modular Merchant Portal Styles
   ========================================================================== */

.header-brand-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
}

.seller-mobile-menu-btn {
    display: none;
}

.seller-sidebar-overlay {
    display: none;
}

.sidebar-header-mobile {
    display: none;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.header-actions .btn-signout {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-view-storefront {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background-color: var(--brand-tint-bg);
    color: var(--brand-tint-text);
    border: 1px solid var(--brand-tint-border);
    border-radius: 20px;
    font-size: var(--font-small);
    font-weight: 700;
    text-decoration: none;
    transition: all 0.15s ease;
    white-space: nowrap;
}

.btn-view-storefront:hover {
    background-color: var(--brand-tint-border);
    border-color: var(--brand-gold);
    color: var(--brand-brown);
}

.dashboard-layout {
    max-width: 1280px;
    width: 100%;
    margin: 0 auto 60px auto;
    padding: 0 clamp(12px, 3vw, 28px);
    display: grid;
    grid-template-columns: 240px minmax(0, 1fr);
    gap: 32px;
    flex-grow: 1;
    box-sizing: border-box;
}

aside {
    background: transparent;
    border: none;
    border-radius: 0;
    padding: 24px 0 0 0;
    box-shadow: none;
    position: sticky;
    top: 64px;
    align-self: start;
    height: fit-content;
    overflow: visible;
}

.sidebar-store-identity {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--border-light);
}

.sidebar-store-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    overflow: hidden;
    background: var(--brand-tint-bg);
    border: 1.5px solid var(--brand-tint-border);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-weight: 800;
    font-size: var(--font-body);
    color: var(--brand-tint-text);
    user-select: none;
}

.sidebar-store-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sidebar-store-meta {
    min-width: 0;
}

aside h3,
.sidebar-heading {
    font-family: var(--font-sans);
    font-size: var(--font-heading-section);
    font-weight: 800;
    color: var(--text-main);
    margin: 0;
    line-height: 1.2;
    letter-spacing: -0.01em;
}

.sidebar-subtitle {
    font-size: var(--font-small);
    color: var(--text-muted);
    font-weight: 600;
    margin-top: 3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 165px;
}

.dash-menu {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 0;
    margin: 0;
}

.dash-menu a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: var(--font-small);
    padding: 9px 12px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    transition: all 0.15s ease;
    cursor: pointer;
}

.dash-menu a:hover {
    background-color: var(--border-light);
    color: var(--text-main);
}

.dash-menu a.active {
    background-color: var(--brand-tint-bg);
    color: var(--brand-tint-text);
    font-weight: 700;
}

.seller-tab-badge {
    margin-left: auto;
    padding: 1px 7px;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 800;
    line-height: 1.35;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.seller-tab-badge--warn {
    background: var(--brand-gold);
    color: #1e1e24;
}

.seller-tab-badge--danger {
    background: var(--accent-red);
    color: #ffffff;
}

.seller-tab-badge--ochre {
    background: var(--brand-ochre);
    color: #ffffff;
}

.seller-tab-badge--info {
    background: var(--info-text);
    color: #ffffff;
}

.sidebar-utility-group {
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid var(--border-light);
    display: grid;
    gap: 8px;
}

.sidebar-utility-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    background: transparent;
    border: 1px solid var(--border-light);
    color: var(--text-secondary);
    padding: 9px 12px;
    border-radius: 8px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    text-align: left;
    transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.sidebar-utility-btn:hover {
    background: var(--bg-surface-subtle);
    color: var(--text-main);
}

.sidebar-utility-btn.active {
    background: var(--brand-tint-bg);
    border-color: var(--brand-tint-border);
    color: var(--brand-tint-text);
    font-weight: 700;
}

.sidebar-utility-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.sidebar-utility-label svg {
    flex-shrink: 0;
}

/* Sub-tab Bar & Panels (Grow & Store Settings) */
.seller-subtabs {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    background: var(--bg-surface-subtle);
    border: 1px solid var(--border-light);
    padding: 4px;
    border-radius: 10px;
    margin-bottom: 20px;
    max-width: 100%;
    box-sizing: border-box;
}

.seller-subtab-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 16px;
    border-radius: 7px;
    border: none;
    background: transparent;
    color: var(--text-secondary);
    font-family: inherit;
    font-size: var(--font-small);
    font-weight: 700;
    cursor: pointer;
    transition: all 0.15s ease;
    white-space: nowrap;
}

.seller-subtab-btn:hover {
    color: var(--text-main);
}

.seller-subtab-btn.active-subtab {
    background: var(--bg-white);
    color: var(--brand-tint-text);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.seller-subtab-badge {
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 999px;
    background: var(--brand-gold);
    color: #1e1e24;
    font-size: 0.7rem;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.seller-subtab-badge--warn {
    background: var(--brand-gold);
    color: #1e1e24;
}

.seller-subtab-badge--ochre {
    background: var(--brand-ochre);
    color: #ffffff;
}

.seller-subpanel {
    display: none;
}

.seller-subpanel.active-subpanel {
    display: block;
    animation: fadeInTab 0.18s ease;
}

#merchantGreeting[hidden] {
    display: none !important;
}

.settings-payments-section {
    border-top: 1px solid var(--border-light);
    margin-top: 22px;
    padding-top: 20px;
}

.verif-status-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
    padding: 16px 20px;
    margin-bottom: 18px;
    border-left: 4px solid var(--brand-ochre);
}

.verif-status-banner-title {
    margin: 0 0 3px 0;
    font-weight: 800;
    color: var(--text-main);
}

.verif-status-banner-desc {
    margin: 0;
    color: var(--text-muted);
}

/* Home Needs-Attention Action Strip */
.seller-attention-strip {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 18px;
}

.seller-attention-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 14px;
    border-radius: 10px;
    border: 1px solid var(--border-light);
    background: var(--bg-white);
    flex-wrap: wrap;
}

.seller-attention-item--danger {
    background: var(--danger-bg);
    border-color: var(--danger-border);
    color: var(--danger-text);
}

.seller-attention-item--warning {
    background: var(--brand-tint-bg);
    border-color: var(--brand-tint-border);
    color: var(--brand-tint-text);
}

.seller-attention-item--info {
    background: var(--info-bg);
    border-color: var(--info-border);
    color: var(--info-text);
}

.seller-attention-msg {
    display: flex;
    align-items: center;
    gap: 9px;
    min-width: 0;
    flex: 1 1 220px;
}

.seller-attention-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: currentColor;
    flex-shrink: 0;
}

.seller-attention-text {
    font-size: var(--font-small);
    font-weight: 700;
    line-height: 1.35;
}

.seller-attention-btn {
    padding: 6px 12px;
    border-radius: 7px;
    border: 1px solid currentColor;
    background: var(--bg-white);
    color: inherit;
    font-family: inherit;
    font-size: var(--font-xs);
    font-weight: 800;
    cursor: pointer;
    white-space: nowrap;
    transition: opacity 0.15s ease;
}

.seller-attention-btn:hover {
    opacity: 0.85;
}

/* Home Desktop Quick Bar & Snapshot Header */
.overview-desktop-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    border-radius: 10px;
    padding: 12px 16px;
    margin-bottom: 18px;
}

.overview-add-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 9px 16px;
    white-space: nowrap;
    flex-shrink: 0;
}

.overview-share-compact {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1 1 280px;
    min-width: 0;
    max-width: 520px;
}

.overview-share-label {
    font-size: var(--font-xs);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: var(--text-muted);
    white-space: nowrap;
}

.overview-share-compact .share-link-input {
    min-width: 0;
    padding: 7px 10px;
}

.overview-kpi-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 10px;
}

.overview-kpi-heading {
    font-size: var(--font-heading-card);
    font-weight: 800;
    color: var(--text-main);
    margin: 0;
}

.stat-card-interactive {
    cursor: pointer;
}

.stat-label-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    width: 100%;
    margin-bottom: 4px;
}

.stat-label-row p {
    margin: 0;
}

.seller-phone-new-pill {
    font-size: 0.68rem;
    font-weight: 800;
    padding: 2px 7px;
    border-radius: 999px;
    background: var(--danger-bg);
    color: var(--danger-text);
    border: 1px solid var(--danger-border);
    white-space: nowrap;
    flex-shrink: 0;
}

.dashboard-main {
    min-width: 0;
    padding-top: 24px;
}

.dashboard-main h1 {
    font-family: var(--font-sans);
    font-size: var(--font-heading-hero);
    font-weight: 800;
    margin-bottom: 20px;
    color: var(--text-main);
}

/* Tab Panels */
.tab-panel {
    display: none;
    animation: fadeInTab 0.2s ease;
}

.tab-panel.active-panel {
    display: block;
}

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

/* 3 / 4 KPI Metric Cards - Seamless Borderless Strip */
.stats-grid-3,
.stats-grid-4 {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    max-width: 100%;
    box-sizing: border-box;
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    border-radius: 10px;
    box-shadow: none;
    overflow: hidden;
    margin-bottom: 24px;
}

.stats-grid-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.stat-card {
    min-width: 0;
    background: transparent;
    padding: 20px 22px;
    border: none;
    border-right: 1px solid var(--border-light);
    border-radius: 0;
    box-shadow: none;
    display: flex;
    align-items: flex-start;
    gap: 14px;
    transition: background-color 0.15s ease;
}

.stats-grid-4 .stat-card {
    padding: clamp(14px, 1.5vw, 20px) clamp(12px, 1.4vw, 18px);
    gap: clamp(10px, 1vw, 14px);
}

.stat-card:last-child {
    border-right: none;
}

.stat-card:hover {
    background: var(--bg-surface-elevated);
    transform: none;
    box-shadow: none;
}

.stat-icon-wrapper {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.revenue-icon { background: var(--success-bg); color: var(--success-text); border: 1px solid var(--success-border); }
.sales-icon { background: var(--brand-tint-bg); color: var(--brand-ochre); border: 1px solid var(--brand-tint-border); }
.leads-icon { background: var(--info-bg); color: var(--info-text); border: 1px solid var(--info-border); }
.conv-icon { background: var(--purple-bg); color: var(--purple-text); border: 1px solid var(--purple-border); }

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

.stat-info p {
    font-size: var(--font-xs);
    font-weight: 700;
    text-transform: uppercase;
    color: var(--text-muted);
    margin: 0 0 4px 0;
    letter-spacing: 0.03em;
    overflow-wrap: break-word;
}

.stat-info h3 {
    font-size: var(--font-heading-section);
    font-weight: 800;
    color: var(--text-main);
    margin: 0;
    line-height: 1.2;
    overflow-wrap: break-word;
}

.stat-hint {
    display: block;
    font-size: var(--font-xs);
    color: var(--text-subtle);
    margin-top: 4px;
    white-space: normal;
    line-height: 1.35;
}

/* Recent Leads Rows */
/* Recent Inquiries List in Overview */
.overview-order-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    border-radius: 10px;
    margin-bottom: 10px;
    gap: 12px;
    transition: border-color 0.15s;
}

.overview-order-row:hover {
    border-color: var(--border-strong);
}

.overview-order-main {
    min-width: 0;
    flex: 1;
}

.overview-order-buyer {
    font-size: var(--font-body);
    font-weight: 700;
    color: var(--text-main);
    margin: 0 0 2px 0;
}

.overview-order-item {
    font-size: var(--font-small);
    color: var(--text-muted);
}

.overview-order-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

@media (max-width: 1100px) {
    .stats-grid-4 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .stats-grid-4 .stat-card:nth-child(2) {
        border-right: none;
    }
    .stats-grid-4 .stat-card:nth-child(1),
    .stats-grid-4 .stat-card:nth-child(2) {
        border-bottom: 1px solid var(--border-light);
    }
}

@media (max-width: 720px) {
    .stats-grid-3 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .stats-grid-3 .stat-card:nth-child(2),
    .stats-grid-3 .stat-card:nth-child(3) {
        border-right: none;
    }
    .stats-grid-3 .stat-card:nth-child(1),
    .stats-grid-3 .stat-card:nth-child(2) {
        border-bottom: 1px solid var(--border-light);
    }
    .stats-grid-3 .stat-card:nth-child(3) {
        grid-column: 1 / -1;
    }
}

@media (max-width: 600px) {
    .stats-grid-3,
    .stats-grid-4 {
        grid-template-columns: minmax(0, 1fr);
    }
    .stat-card {
        border-right: none !important;
        border-bottom: 1px solid var(--border-light);
    }
    .stats-grid-3 .stat-card:nth-child(3) {
        grid-column: auto;
    }
    .stat-card:last-child {
        border-bottom: none;
    }
}

/* Content Cards & Forms - Option A: Clean Seamless Borderless Styling */
.card {
    background: var(--bg-white);
    padding: 24px;
    border-radius: 10px;
    border: 1px solid var(--border-light);
    box-shadow: none;
    margin-bottom: 24px;
}

.card-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 12px;
}

.card h2 {
    font-family: var(--font-sans);
    font-size: var(--font-heading-section);
    font-weight: 800;
    color: var(--text-main);
    margin: 0;
}

.form-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-grid-3 {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 16px;
}

/* Leads Table */
table {
    width: 100%;
    border-collapse: collapse;
    font-size: var(--font-small);
}

th, td {
    text-align: left;
    padding: 12px 14px;
    border-bottom: 1px solid var(--border-light);
    vertical-align: middle;
}

th {
    background-color: var(--bg-surface-elevated);
    font-weight: 700;
    color: var(--text-muted);
    font-size: var(--font-xs);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.status-select {
    padding: 4px 8px;
    border-radius: 6px;
    font-size: var(--font-small);
    font-weight: 700;
    border: 1px solid var(--border-light);
    background: var(--bg-white);
    cursor: pointer;
    font-family: inherit;
}

.status-select.pending { background: var(--brand-tint-bg); color: var(--brand-tint-text); border-color: var(--brand-tint-border); }
.status-select.qualified { background: var(--info-bg); color: var(--info-text); border-color: var(--info-border); }
.status-select.order_placed { background: var(--purple-bg); color: var(--purple-text); border-color: var(--purple-border); }
.status-select.paid { background: var(--success-bg); color: var(--success-text); border-color: var(--success-border); }
.status-select.cancelled { background: var(--danger-bg); color: var(--danger-text); border-color: var(--danger-border); }

.btn-wa-action {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #22c55e;
    color: white;
    text-decoration: none;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: var(--font-xs);
    font-weight: 700;
    transition: background 0.15s;
}

.btn-wa-action:hover {
    background: #16a34a;
}

.btn-wa-tmpl {
    background: var(--bg-surface-subtle);
    color: var(--text-secondary);
    border: 1px solid var(--border-light);
    padding: 6px 10px;
    border-radius: 6px;
    font-size: var(--font-xs);
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.btn-wa-tmpl:hover {
    background: var(--bg-surface-subtle);
    color: var(--text-main);
}

.toggle-switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
}

.toggle-switch input { opacity: 0; width: 0; height: 0; }

.slider {
    position: absolute;
    cursor: pointer;
    inset: 0;
    background-color: var(--border-strong);
    transition: .3s;
    border-radius: 24px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: var(--bg-white);
    transition: .3s;
    border-radius: 50%;
}

input:checked + .slider { background-color: #22c55e; }
input:checked + .slider:before { transform: translateX(20px); }

.btn-edit-product {
    background: var(--bg-surface-subtle);
    border: 1px solid var(--border-light);
    padding: 6px 12px;
    border-radius: 6px;
    font-size: var(--font-small);
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s ease;
}

.btn-edit-product:hover {
    background: var(--bg-surface-subtle);
}

/* ==========================================================================
   Inventory & Catalog Management - Option A (Shopify & Stripe Style)
   ========================================================================== */

.inventory-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 13px 20px;
    border-bottom: 1px solid var(--border-light);
    background: var(--bg-white);
    gap: 12px;
    flex-wrap: wrap;
    position: static;
    top: auto;
    z-index: auto;
    border-radius: 10px 10px 0 0;
    box-shadow: none;
    box-sizing: border-box;
    min-height: 62px;
}

.inventory-heading {
    font-size: var(--font-heading-card);
    font-weight: 800;
    color: var(--text-main);
    margin: 0;
    white-space: nowrap;
    flex-shrink: 0;
}

.inventory-toolbar-right {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    flex: 1 1 auto;
    justify-content: flex-end;
}

.inventory-search-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--bg-white);
    border: 1px solid var(--border-strong);
    border-radius: 8px;
    padding: 7px 12px;
    flex: 1 1 180px;
    min-width: 140px;
    max-width: 240px;
    color: var(--text-subtle);
    white-space: nowrap;
    box-sizing: border-box;
}

.inventory-search-wrap input {
    border: none;
    outline: none;
    font-size: var(--font-small);
    width: 100%;
    background: transparent;
    color: var(--text-main);
    white-space: nowrap;
}

.inventory-toolbar select {
    padding: 7px 12px;
    font-size: var(--font-small);
    border: 1px solid var(--border-strong);
    border-radius: 8px;
    background: var(--bg-white);
    outline: none;
    font-weight: 600;
    color: var(--text-main);
    cursor: pointer;
    white-space: nowrap;
}

/* View Switcher: Segmented Control */
.view-switcher {
    display: inline-flex;
    background: var(--bg-surface-subtle);
    border-radius: 8px;
    padding: 2px;
    gap: 2px;
    border: 1px solid var(--border-light);
    flex-shrink: 0;
    white-space: nowrap;
}

.view-toggle-btn {
    background: transparent;
    border: none;
    padding: 6px 9px;
    border-radius: 6px;
    cursor: pointer;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s ease;
}

.view-toggle-btn:hover {
    color: var(--text-main);
}

.view-toggle-btn.active {
    background: var(--bg-white);
    color: var(--text-main);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
}

/* Catalog Container */
.inventory-catalog-container {
    background: var(--bg-white);
    border-radius: 0 0 12px 12px;
    overflow: visible;
}

/* --- Catalog Table View with Sticky Header --- */
.catalog-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    max-width: 100%;
}

.inventory-catalog-container .catalog-table-wrap {
    width: 100%;
    max-width: 100%;
    min-height: 260px;
    max-height: clamp(380px, 62vh, 640px);
    overflow-x: auto;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: 0 0 10px 10px;
}

.catalog-table {
    min-width: 0;
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-size: var(--font-small);
    text-align: left;
}

/* ==========================================================================
   Performance Tab: Traffic History & Traffic Sources
   ========================================================================== */
.perf-history-container {
    background: var(--bg-white);
    border-radius: 14px;
    border: 1px solid var(--border-light);
}

.perf-history-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-light);
}

.perf-time-pills {
    display: inline-flex;
    flex-wrap: wrap;
    max-width: 100%;
    box-sizing: border-box;
    background: var(--bg-surface-subtle);
    padding: 3px;
    border-radius: 10px;
    gap: 2px;
}

.perf-pill {
    background: transparent;
    border: none;
    padding: clamp(6px, 1vw, 7px) clamp(10px, 1.5vw, 16px);
    border-radius: 8px;
    font-size: var(--font-small);
    font-weight: 700;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.15s ease;
    font-family: inherit;
}

.perf-pill:hover {
    color: var(--text-main);
}

.perf-pill.active {
    background: var(--bg-white);
    color: var(--brand-brown);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.perf-history-content {
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) minmax(0, 1.05fr);
    gap: 28px;
    padding-top: 24px;
}

@media (max-width: 1024px) {
    .perf-history-content {
        grid-template-columns: minmax(0, 1fr);
        gap: 24px;
    }
}

.perf-chart-wrap {
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.perf-chart-legend {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px 20px;
    margin-bottom: 16px;
    font-size: var(--font-small);
    font-weight: 600;
    color: var(--text-secondary);
}

.legend-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.legend-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.dot-views {
    background: #b45309;
}

.dot-inquiries {
    background: #10b981;
}

.perf-chart-svg-wrap {
    width: 100%;
    min-height: 245px;
    background: var(--bg-white);
    border-radius: 12px;
    border: 1px solid var(--border-light);
    padding: 16px 16px 12px 16px;
    display: flex;
    flex-direction: column;
    position: relative;
    box-sizing: border-box;
}

.tiktok-chart-container {
    position: relative;
    width: 100%;
    height: 185px;
    touch-action: pan-y;
    user-select: none;
    -webkit-user-select: none;
}

.tiktok-chart-svg {
    width: 100%;
    height: 100%;
    display: block;
    overflow: visible;
}

.tiktok-chart-x-axis {
    display: flex;
    justify-content: space-between;
    padding-top: 8px;
    border-top: 1px solid var(--border-light);
}

.tiktok-chart-x-label {
    font-size: var(--font-xs);
    font-weight: 700;
    color: var(--text-subtle);
    text-align: center;
}

/* TikTok-style Floating Glass Tooltip */
.tiktok-chart-tooltip {
    position: absolute;
    top: 14px;
    pointer-events: none;
    background: rgba(15, 23, 42, 0.94);
    backdrop-filter: blur(8px);
    color: #ffffff;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: var(--font-xs);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.28);
    z-index: 50;
    transition: transform 0.08s ease, opacity 0.15s ease;
    white-space: nowrap;
    display: none;
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.tiktok-chart-tooltip.show {
    display: block;
}

.tiktok-tooltip-time {
    font-size: var(--font-xs);
    font-weight: 700;
    color: #cbd5e1;
    margin-bottom: 4px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    padding-bottom: 4px;
}

.tiktok-tooltip-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 3px;
    font-size: var(--font-xs);
}

.tiktok-tooltip-row strong {
    font-weight: 800;
    color: #ffffff;
    margin-left: auto;
}

/* Traffic Sources Widget */
.perf-sources-wrap {
    min-width: 0;
    display: flex;
    flex-direction: column;
    background: var(--bg-surface-elevated);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    padding: 20px;
}

.perf-sources-heading {
    font-size: var(--font-body);
    font-weight: 800;
    color: var(--brand-brown);
    margin-bottom: 14px;
}

.perf-source-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.perf-source-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.perf-source-info {
    display: flex;
    justify-content: space-between;
    font-size: var(--font-small);
    font-weight: 700;
    color: var(--text-main);
}

.perf-source-pct {
    font-weight: 800;
}

.perf-source-bar-bg {
    width: 100%;
    height: 7px;
    background: var(--border-light);
    border-radius: 4px;
    overflow: hidden;
}

.perf-source-bar-fill {
    height: 100%;
    border-radius: 4px;
    transition: width 0.4s ease;
}

.perf-source-hint {
    font-size: var(--font-xs);
    color: var(--text-muted);
}

.catalog-table thead tr th {
    position: sticky;
    top: 0;
    z-index: 20;
    background: var(--bg-surface-elevated);
    padding: 12px 18px;
    font-size: var(--font-xs);
    font-weight: 700;
    text-transform: uppercase;
    color: var(--text-muted);
    letter-spacing: 0.04em;
    border-bottom: 2px solid var(--border-light);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    white-space: nowrap;
}

.catalog-table td {
    padding: 14px 18px;
    border-bottom: 1px solid var(--border-light);
    vertical-align: middle;
}

.catalog-table tr:hover td {
    background: var(--bg-surface-elevated);
}

.catalog-thumb {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    object-fit: cover;
    border: 1px solid var(--border-light);
    background: var(--bg-surface-elevated);
    flex-shrink: 0;
    cursor: pointer;
}

.catalog-product-meta {
    min-width: 0;
}

.catalog-product-title {
    font-weight: 700;
    color: var(--text-main);
    font-size: var(--font-body);
    line-height: 1.3;
    margin-bottom: 3px;
    cursor: pointer;
    transition: color 0.15s ease;
}

.catalog-product-title:hover {
    color: var(--brand-ochre);
}

.catalog-sub-badge {
    font-size: var(--font-xs);
    color: var(--text-muted);
}

.catalog-price-cell {
    font-weight: 800;
    color: var(--text-main);
    font-size: var(--font-body);
    white-space: nowrap;
}

/* Stock Toggle & Numeric Stepper */
.stock-control-cell {
    white-space: nowrap;
}

.stock-stepper-wrap {
    display: inline-flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
}

.stock-stepper {
    display: inline-flex;
    align-items: center;
    border: 1px solid var(--border-strong);
    border-radius: 8px;
    background: var(--bg-white);
    overflow: hidden;
    height: 32px;
}

.stock-stepper.is-out {
    border-color: var(--danger-border);
    background: var(--danger-bg);
}

.stock-step-btn {
    width: 28px;
    height: 100%;
    border: none;
    background: transparent;
    color: var(--text-main);
    font-size: var(--font-body);
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: background-color 0.15s ease;
}

.stock-step-btn:hover:not(:disabled) {
    background: var(--bg-surface-subtle);
}

.stock-step-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.stock-qty-input {
    width: 42px;
    height: 100%;
    border: none;
    border-left: 1px solid var(--border-light);
    border-right: 1px solid var(--border-light);
    background: transparent;
    text-align: center;
    font-size: var(--font-small);
    font-weight: 700;
    color: var(--text-main);
    padding: 0 2px;
    outline: none;
    -moz-appearance: textfield;
}

.stock-qty-input::-webkit-outer-spin-button,
.stock-qty-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.stock-out-badge {
    font-size: var(--font-xs);
    font-weight: 700;
    color: var(--danger-text);
    text-transform: uppercase;
    letter-spacing: 0.03em;
    line-height: 1.1;
}

.stock-stepper-wrap.seller-control-locked .stock-stepper {
    opacity: 0.55;
    cursor: not-allowed;
}

/* Floating Scroll-to-Top Button for Products Catalogue */
.catalog-scroll-top-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: var(--brand-ochre);
    color: #ffffff;
    border: none;
    box-shadow: 0 4px 16px rgba(180, 83, 9, 0.35);
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 85;
    transition: transform 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.catalog-scroll-top-btn:hover {
    background: #92400e;
    transform: translateY(-3px);
    box-shadow: 0 8px 22px rgba(180, 83, 9, 0.45);
}

/* Three-Dot (···) Actions Overflow Dropdown Menu */
.catalog-actions-cell {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    position: relative;
    white-space: nowrap;
}

.btn-row-menu {
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
    border-radius: 6px;
    border: 1px solid var(--border-strong);
    background: var(--bg-white);
    color: var(--text-secondary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.15s ease;
    padding: 0;
}

.btn-row-menu:hover,
.btn-row-menu.active {
    background: var(--bg-surface-subtle);
    color: var(--text-main);
    border-color: var(--border-strong);
}

.row-menu-dropdown {
    position: absolute;
    right: 0;
    top: calc(100% + 6px);
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    border-radius: 10px;
    box-shadow: 0 12px 28px -4px rgba(0, 0, 0, 0.16), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    z-index: 999;
    min-width: 195px;
    padding: 6px;
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 2px;
    animation: fadeInDropdown 0.12s ease;
}

.row-menu-dropdown.open-upward {
    top: auto;
    bottom: calc(100% + 6px);
}

.row-menu-item {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    min-height: 44px;
    padding: 10px 14px;
    font-size: var(--font-small);
    font-weight: 600;
    color: var(--text-secondary);
    background: transparent;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    text-align: left;
    transition: background-color 0.12s ease;
    white-space: nowrap;
    box-sizing: border-box;
}

.row-menu-item:hover {
    background: var(--bg-surface-elevated);
    color: var(--text-main);
}

.row-menu-item.item-danger {
    color: var(--danger-text);
}

.row-menu-item.item-danger:hover {
    background: var(--danger-bg);
}

.row-menu-divider {
    height: 1px;
    background: var(--bg-surface-subtle);
    margin: 4px 0;
}

/* Modern Viewport-Fitting Modal Dialog System (Guarantees Full Dialog Stays on Screen) */
.modal-dialog-window {
    background: var(--bg-white);
    border-radius: 16px;
    max-width: 560px;
    width: 100%;
    max-height: min(90vh, 760px);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.28);
    position: relative;
    border: 1px solid rgba(0, 0, 0, 0.08);
}

.modal-dialog-header {
    padding: 18px 24px;
    border-bottom: 1px solid var(--border-light);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
    background: var(--bg-white);
}

.modal-dialog-form {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
    overflow: hidden;
    margin: 0;
}

.modal-dialog-body {
    padding: 20px 24px;
    overflow-y: auto;
    flex: 1;
    overscroll-behavior: contain;
}

.modal-dialog-footer {
    padding: 14px 24px;
    border-top: 1px solid var(--border-light);
    background: var(--bg-surface-elevated);
    display: flex;
    gap: 12px;
    flex-shrink: 0;
}

/* --- Catalog Grid View --- */
.catalog-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: clamp(8px, 1.4vw, 16px);
    padding: clamp(12px, 2.5vw, 24px);
}
@media (max-width: 1100px) {
    .catalog-grid { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 859px) {
    .catalog-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 579px) {
    .catalog-grid { grid-template-columns: repeat(2, 1fr); }
}

.catalog-card {
    border: 1px solid var(--border-light);
    border-radius: 10px;
    background: var(--bg-white);
    overflow: visible;
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: border-color 0.15s ease;
    position: relative;
}

.catalog-card:hover {
    border-color: var(--border-strong);
}

.catalog-card .row-menu-dropdown {
    top: auto;
    bottom: calc(100% + 6px);
    min-width: min(195px, 82vw);
}

.catalog-card-image-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-radius: 9px 9px 0 0;
    height: auto;
    background: var(--bg-surface-elevated);
    overflow: hidden;
    cursor: pointer;
}

.catalog-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.2s ease;
}

.catalog-card:hover .catalog-card-img {
    transform: scale(1.02);
}

.catalog-card-body {
    padding: clamp(10px, 1.8vw, 16px);
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    justify-content: space-between;
}

.catalog-card-category {
    font-size: clamp(0.68rem, 1.4vw, 0.74rem);
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.03em;
    margin-bottom: 4px;
}

.catalog-card-title {
    font-size: clamp(0.82rem, 1.8vw, 0.92rem);
    font-weight: 700;
    color: var(--text-main);
    line-height: 1.35;
    margin-bottom: 8px;
    cursor: pointer;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.6em;
}

.catalog-card-title:hover {
    color: var(--brand-ochre);
}

.catalog-card-price {
    font-size: clamp(0.92rem, 2.2vw, 1.05rem);
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 6px;
}

.catalog-activity-cell {
    white-space: nowrap;
}

.catalog-activity-pill {
    display: inline-flex;
    align-items: center;
    padding: 3px 9px;
    border-radius: 999px;
    background: var(--bg-surface-subtle);
    border: 1px solid var(--border-light);
    font-size: var(--font-xs);
    font-weight: 700;
    color: var(--text-secondary);
}

.catalog-card-activity {
    font-size: 0.74rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 10px;
}

/* Shared Orders Filter Bar (Desktop & Mobile) */
.orders-filter-header {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 14px;
}

.orders-filter-title-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
}

.orders-filter-title-row h2 {
    font-size: var(--font-heading-section);
    font-weight: 800;
    color: var(--text-main);
    margin: 0;
}

.seller-order-filter-pills {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.seller-order-filter-pill {
    padding: 6px 12px;
    border-radius: 999px;
    border: 1px solid var(--border-strong);
    background: var(--bg-white);
    color: var(--text-secondary);
    font-family: inherit;
    font-size: var(--font-xs);
    font-weight: 700;
    cursor: pointer;
    transition: all 0.15s ease;
}

.seller-order-filter-pill:hover {
    border-color: var(--brand-ochre);
    color: var(--text-main);
}

.seller-order-filter-pill.active {
    background: var(--brand-brown);
    border-color: var(--brand-brown);
    color: #ffffff;
}

/* Grow -> Market Opportunities Grid */
.market-opp-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

@media (max-width: 720px) {
    .market-opp-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}

.market-opp-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 10px;
    border: 1px solid var(--border-light);
    background: var(--bg-surface-elevated);
}

.market-opp-main {
    min-width: 0;
}

.market-opp-query {
    font-size: var(--font-body);
    font-weight: 700;
    color: var(--text-main);
    overflow-wrap: break-word;
}

.market-opp-meta {
    font-size: var(--font-xs);
    color: var(--text-muted);
    margin-top: 2px;
}

.market-opp-count {
    flex-shrink: 0;
    padding: 4px 10px;
    border-radius: 999px;
    background: var(--brand-tint-bg);
    border: 1px solid var(--brand-tint-border);
    color: var(--brand-tint-text);
    font-size: var(--font-xs);
    font-weight: 800;
    white-space: nowrap;
}

.catalog-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    padding-top: 12px;
    border-top: 1px solid var(--border-light);
    margin-top: auto;
    gap: 8px;
}

/* Modal close button */
.modal-close-btn {
    background: transparent;
    border: none;
    font-size: var(--font-heading-card);
    font-weight: 700;
    color: var(--text-muted);
    cursor: pointer;
    padding: 8px 12px;
    min-width: 44px;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    line-height: 1;
    transition: all 0.15s ease;
}

.modal-close-btn:hover {
    background: var(--bg-surface-subtle);
    color: var(--text-main);
}

.btn-preset-discount {
    background: var(--bg-surface-subtle);
    border: 1px solid var(--border-light);
    border-radius: 6px;
    padding: 6px 10px;
    font-size: var(--font-xs);
    font-weight: 700;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.15s ease;
}

.btn-preset-discount:hover {
    background: var(--danger-bg);
    border-color: var(--danger-border);
    color: var(--danger-text);
}

.btn-preset-discount.active {
    background: #dc2626;
    border-color: #dc2626;
    color: #ffffff;
}

/* Locked regular price input in Quick Discount modal */
.input-locked {
    background: var(--bg-surface-subtle) !important;
    color: var(--text-secondary) !important;
    border-color: var(--border-strong) !important;
    cursor: not-allowed;
    font-weight: 700;
}

.input-locked:focus {
    outline: none;
    border-color: var(--border-strong) !important;
    box-shadow: none !important;
}

.input-locked-hint {
    display: block;
    font-size: var(--font-xs);
    color: var(--text-muted);
    margin-top: 4px;
}

.share-link-input {
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    padding: 8px 12px;
    border-radius: 6px;
    font-size: var(--font-small);
    color: var(--text-main);
    flex: 1;
    font-family: monospace;
}

.sidebar-mobile-actions {
    display: none;
}

@media (max-width: 860px) {
    .header-main {
        padding: 0 16px;
        gap: 12px;
    }

    .header-actions .btn-view-storefront,
    .header-actions .btn-signout {
        display: none;
    }

    .sidebar-mobile-actions {
        display: grid;
        gap: 8px;
        margin-top: 4px;
    }

    .seller-mobile-menu-btn {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
        min-width: 40px;
        min-height: 40px;
        padding: 0;
        background: var(--bg-surface-elevated);
        border: 1px solid var(--border-light);
        border-radius: 8px;
        color: var(--text-main);
        cursor: pointer;
        transition: background-color 0.15s ease, border-color 0.15s ease;
    }

    .seller-mobile-menu-btn:hover,
    .seller-mobile-menu-btn:focus-visible {
        background: var(--border-light);
        border-color: var(--border-strong);
        outline: none;
    }

    .seller-sidebar-overlay {
        display: block;
        position: fixed;
        inset: 0;
        background: rgba(15, 23, 42, 0.45);
        backdrop-filter: blur(2px);
        -webkit-backdrop-filter: blur(2px);
        z-index: 1040;
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transition: opacity 0.25s ease, visibility 0.25s ease;
    }

    .seller-sidebar-overlay.active,
    body.seller-menu-open .seller-sidebar-overlay {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }

    .dashboard-layout {
        grid-template-columns: 1fr;
        padding: 0 16px;
        gap: 16px;
    }

    aside {
        position: fixed;
        top: 0;
        left: 0;
        bottom: 0;
        width: 290px;
        max-width: 85vw;
        height: 100vh;
        height: 100dvh;
        background: var(--bg-white);
        border-right: 1px solid var(--border-light, var(--border-light));
        box-shadow: 4px 0 24px rgba(0, 0, 0, 0.15);
        padding: 20px 18px 24px 18px;
        z-index: 1050;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        display: flex;
        flex-direction: column;
        transform: translateX(-100%);
        transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);
        align-self: unset;
    }

    aside.active,
    aside.mobile-open,
    body.seller-menu-open aside {
        transform: translateX(0);
    }

    .sidebar-header-mobile {
        display: flex;
        align-items: center;
        justify-content: space-between;
        margin-bottom: 16px;
        padding-bottom: 12px;
        border-bottom: 1px solid var(--border-light, var(--border-light));
    }

    .sidebar-mobile-title {
        font-family: var(--font-sans);
        font-size: var(--font-heading-card);
        font-weight: 800;
        color: var(--text-main, var(--text-main));
    }

    .seller-drawer-close-btn {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 36px;
        height: 36px;
        border-radius: 8px;
        border: 1px solid var(--border-light);
        background: var(--bg-surface-elevated);
        color: var(--text-secondary);
        cursor: pointer;
        transition: all 0.15s ease;
    }

    .seller-drawer-close-btn:hover {
        background: var(--danger-bg);
        border-color: var(--danger-border);
        color: var(--danger-text);
    }

    aside .sidebar-store-identity {
        margin-bottom: 16px;
        padding-bottom: 14px;
        border-bottom: 1px solid var(--border-light, var(--border-light));
    }

    aside .dash-menu {
        flex-direction: column;
        overflow-x: visible;
        flex-wrap: nowrap;
        gap: 6px;
        padding-bottom: 0;
    }

    aside .dash-menu li {
        flex-shrink: 0;
        width: 100%;
    }

    aside .dash-menu a {
        white-space: nowrap;
        padding: 11px 14px;
        font-size: var(--font-body);
        border-radius: 8px;
        display: flex;
        align-items: center;
    }

    body.seller-menu-open {
        overflow: hidden;
    }

    .form-grid-2, .form-grid-3 { grid-template-columns: 1fr; }
    .btn-row-menu {
        width: 44px;
        height: 44px;
        min-width: 44px;
        min-height: 44px;
    }
}

@media (max-width: 579px) {
    .catalog-grid {
        grid-template-columns: repeat(2, 1fr);
        padding: clamp(10px, 2.5vw, 14px);
        gap: clamp(8px, 1.4vw, 12px);
    }

    .inventory-toolbar {
        padding: 12px 14px;
    }

    .catalog-table thead tr th,
    .catalog-table td {
        padding: 10px 8px;
    }

    .stock-stepper {
        height: 30px;
    }

    .stock-step-btn {
        width: 24px;
    }

    .stock-qty-input {
        width: 34px;
        font-size: var(--font-small);
    }

    .inventory-toolbar-right {
        justify-content: flex-start;
        width: 100%;
    }

    .inventory-search-wrap {
        max-width: none;
        flex: 1 1 100%;
    }

    .modal-dialog-window {
        max-height: 94dvh;
        border-radius: 12px;
    }

    .modal-dialog-header {
        padding: 14px 16px;
    }

    .modal-dialog-body {
        padding: 16px;
    }

    .modal-dialog-footer {
        padding: 12px 16px;
    }
}

/* ---------- Paused / Under-Review Inventory Lock States ---------- */
.seller-paused-badge {
    display: inline-block;
    background: var(--danger-bg);
    color: var(--danger-text);
    border: 1px solid var(--danger-border);
    font-size: var(--font-xs);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    padding: 2px 8px;
    border-radius: 999px;
    margin-left: 6px;
    vertical-align: middle;
}

.seller-paused-note {
    font-size: var(--font-xs);
    color: var(--danger-text);
    background: var(--danger-bg);
    border: 1px solid var(--danger-border);
    border-radius: 6px;
    padding: 4px 8px;
    margin-top: 4px;
    line-height: 1.35;
}

.catalog-row-paused {
    background: var(--danger-bg);
}

.catalog-card-paused {
    border-color: var(--danger-border);
    background: var(--danger-bg);
}

.toggle-switch.seller-control-locked {
    opacity: 0.45;
    cursor: not-allowed;
}

.toggle-switch.seller-control-locked .slider {
    cursor: not-allowed;
    background: var(--border-strong);
}

.btn-edit-product:disabled,
.btn-row-menu:disabled,
.seller-btn-locked {
    opacity: 0.45;
    cursor: not-allowed;
    pointer-events: none;
}

/* ==========================================================================
   Boost / Featured Tab: Plan Cards, Notices & Status Badges (Light & Dark Safe)
   ========================================================================== */
.boost-plans-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
    gap: 12px;
}

.boost-plan-card {
    display: block;
    width: 100%;
    text-align: left;
    font-family: inherit;
    color: var(--text-main);
    cursor: pointer;
    border: 2px solid var(--border-light);
    background: var(--bg-white);
    border-radius: 10px;
    padding: 14px;
    transition: border-color 0.15s ease, background-color 0.15s ease, opacity 0.15s ease;
}

.boost-plan-card:hover {
    border-color: var(--border-strong);
}

.boost-plan-card.is-selected {
    border-color: var(--brand-ochre);
    background: var(--brand-tint-bg);
}

.boost-plan-card.is-ineligible {
    opacity: 0.55;
    border-style: dashed;
    border-color: var(--border-strong);
    background: var(--bg-surface-elevated);
}

.boost-plan-ineligible-note {
    margin-top: 6px;
    font-size: var(--font-xs);
    font-weight: 700;
    color: var(--text-muted);
}

.boost-badge-fb {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 700;
    background: var(--info-bg);
    color: var(--info-text);
    border: 1px solid var(--info-border);
    padding: 2px 8px;
    border-radius: 999px;
    margin-bottom: 4px;
}

.boost-notice-box {
    border-radius: 10px;
    padding: 12px 16px;
    font-size: var(--font-small);
    line-height: 1.5;
    color: var(--text-main);
    border: 1px solid var(--border-light);
    background: var(--bg-surface-elevated);
}

.boost-notice-box > strong {
    display: block;
    margin-bottom: 4px;
}

.boost-notice-box p {
    margin: 0;
    color: var(--text-main);
}

.boost-notice-box.notice-info {
    background: var(--info-bg);
    border-color: var(--info-border);
}

.boost-notice-box.notice-info > strong {
    color: var(--info-text);
}

.boost-notice-box.notice-warning {
    background: var(--brand-tint-bg);
    border-color: var(--brand-tint-border);
}

.boost-notice-box.notice-warning > strong {
    color: var(--brand-tint-text);
}

.boost-notice-box.notice-success {
    background: var(--success-bg);
    border-color: var(--success-border);
}

.boost-notice-box.notice-success > strong {
    color: var(--success-text);
}

.boost-notice-box.notice-danger {
    background: var(--danger-bg);
    border-color: var(--danger-border);
}

.boost-notice-box.notice-danger > strong {
    color: var(--danger-text);
}

.boost-code-chip {
    background: var(--bg-white);
    color: var(--info-text);
    border: 1px solid var(--info-border);
    padding: 1px 6px;
    border-radius: 4px;
    font-weight: 700;
}

.boost-status-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 700;
    border: 1px solid transparent;
}

.boost-status-badge.status-pending {
    background: var(--brand-tint-bg);
    color: var(--brand-tint-text);
    border-color: var(--brand-tint-border);
}

.boost-status-badge.status-active {
    background: var(--success-bg);
    color: var(--success-text);
    border-color: var(--success-border);
}

.boost-status-badge.status-expired {
    background: var(--bg-surface-subtle);
    color: var(--text-secondary);
    border-color: var(--border-light);
}

.boost-status-badge.status-rejected {
    background: var(--danger-bg);
    color: var(--danger-text);
    border-color: var(--danger-border);
}

/* Edit Product Active Discount Notice */
.edit-discount-notice {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    background: var(--brand-tint-bg);
    border: 1px solid var(--brand-tint-border);
    color: var(--text-main);
    border-radius: 10px;
    padding: 10px 14px;
    margin-bottom: 16px;
    font-size: var(--font-small);
    line-height: 1.4;
}

.edit-discount-notice-text strong {
    color: var(--brand-tint-text);
}

/* Live Formatted Price Preview */
.price-preview-text {
    display: none;
    margin-block-start: 6px;
    font-size: var(--font-small);
    font-weight: 700;
    color: var(--brand-tint-text);
    line-height: 1.4;
}

/* ==========================================================================
   Phone-Only Mobile Shell & Responsive Views (<= 579px Only)
   Desktop (>= 860px) and Tablet (580px - 859px) keep original layout unchanged.
   ========================================================================== */
.seller-phone-icon-btn,
.seller-phone-overview-bar,
.seller-mobile-subtab-header,
.orders-phone-view,
.btn-phone-discount,
.seller-mobile-bottom-nav,
.seller-more-backdrop,
.seller-more-sheet {
    display: none;
}

@media (max-width: 579px) {
    body {
        padding-bottom: calc(64px + env(safe-area-inset-bottom, 0px));
    }

    body.seller-more-open {
        overflow: hidden;
    }

    /* Keep top header bar always pinned & visible on Store Admin phones */
    body.mobile-bars-hidden header {
        transform: none;
    }

    header {
        min-height: 48px;
        padding: 0;
        position: sticky;
        top: 0;
        z-index: 200;
    }

    .header-main {
        min-height: 48px;
        padding: 0 12px;
        gap: 8px;
    }

    .header-brand-wrap {
        gap: 8px;
        min-width: 0;
    }

    .header-brand-wrap .logo {
        font-size: 0.98rem;
        letter-spacing: 0.015em;
        white-space: nowrap;
        gap: 6px;
    }

    .header-brand-wrap .logo .brand-logo-mark {
        width: 22px;
        height: 22px;
    }

    .header-actions {
        gap: 6px;
        flex-shrink: 0;
    }

    .seller-phone-icon-btn,
    .header-actions .theme-toggle-btn {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 32px;
        height: 32px;
        min-width: 32px;
        min-height: 32px;
        border-radius: 8px;
        border: 1px solid var(--border-light);
        background: var(--bg-white);
        color: var(--text-secondary);
        padding: 0;
        cursor: pointer;
        text-decoration: none;
    }

    #sellerMobileMenuBtn,
    #sellerSidebar,
    #sellerSidebarOverlay,
    #merchantGreeting,
    .overview-desktop-bar {
        display: none !important;
    }

    .dashboard-layout {
        padding: 10px 12px calc(88px + env(safe-area-inset-bottom, 0px));
        margin: 0 auto;
        gap: 0;
    }

    .dashboard-main {
        min-width: 0;
        width: 100%;
    }

    /* Sub-tab Header (shown only when inside a More tool tab) */
    .seller-mobile-subtab-header.visible {
        display: flex;
        align-items: center;
        margin-bottom: 10px;
    }

    .seller-subtab-title {
        font-size: 1rem;
        font-weight: 800;
        color: var(--text-main);
        margin: 0;
        min-width: 0;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    /* ======================================================================
       TAB 1: HOME / OVERVIEW (Mobile Order & Card Hierarchy)
       ====================================================================== */
    #panelOverview.active-panel {
        display: flex;
        flex-direction: column;
    }

    #sellerAttentionStrip {
        order: 0;
        margin-bottom: 10px;
    }

    .seller-attention-item {
        padding: 9px 11px;
        gap: 8px;
    }

    #sellerPhoneOverviewBar {
        display: flex;
        flex-direction: column;
        gap: 8px;
        margin-bottom: 10px;
        order: 1;
    }

    #panelOverview .overview-kpi-header {
        order: 2;
        margin-bottom: 8px;
    }

    #panelOverview .overview-kpi-heading {
        font-size: 0.92rem;
    }

    #panelOverview .stats-grid-4 {
        order: 3;
    }

    #panelOverview .overview-recent-orders-card {
        order: 4;
    }

    .seller-phone-add-cta {
        width: 100%;
        min-height: 42px;
        border-radius: 10px;
        justify-content: center;
        font-size: 0.88rem;
        font-weight: 700;
        gap: 7px;
    }

    .seller-phone-quick-row {
        display: flex;
        flex-wrap: wrap;
        gap: 6px;
    }

    .seller-phone-quick-chip {
        flex: 1 1 0%;
        min-height: 34px;
        padding: 6px 6px;
        border-radius: 8px;
        border: 1px solid var(--border-light);
        background: var(--bg-white);
        color: var(--text-secondary);
        font-family: inherit;
        font-size: 0.74rem;
        font-weight: 600;
        text-align: center;
        cursor: pointer;
        white-space: nowrap;
    }

    /* Compact 2x2 KPI Cards */
    .stats-grid-3,
    .stats-grid-4 {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
        background: transparent;
        border: none;
        border-radius: 0;
        overflow: visible;
        margin-bottom: 0;
    }

    .stats-grid-3 .stat-icon-wrapper,
    .stats-grid-4 .stat-icon-wrapper,
    .stat-hint {
        display: none !important;
    }

    .stat-card {
        background: var(--bg-white);
        border: 1px solid var(--border-light) !important;
        border-radius: 12px;
        padding: 10px 12px !important;
        gap: 4px !important;
        flex-direction: column;
        align-items: stretch;
        box-shadow: 0 2px 8px rgba(15, 23, 42, 0.05);
    }

    .stat-label-row {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 4px;
        width: 100%;
    }

    .stat-info p {
        font-size: 0.7rem;
        font-weight: 600;
        text-transform: none;
        letter-spacing: 0;
        color: var(--text-muted);
        margin: 0 0 4px 0;
    }

    .stat-label-row p {
        margin: 0;
    }

    .stat-label-row {
        margin-bottom: 4px;
    }

    .stat-info h3 {
        font-size: 1.2rem;
        font-weight: 800;
        line-height: 1.15;
    }

    .seller-phone-new-pill {
        font-size: 0.65rem;
        font-weight: 700;
        padding: 1px 6px;
        border-radius: 999px;
        background: var(--danger-bg);
        color: var(--danger-text);
        white-space: nowrap;
        flex-shrink: 0;
    }

    .stats-grid-3 .stat-card:nth-child(3) {
        grid-column: 1 / -1;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }

    .stats-grid-3 .stat-card:nth-child(3) .stat-info {
        display: flex;
        width: 100%;
        align-items: center;
        justify-content: space-between;
        gap: 8px;
    }

    .stats-grid-3 .stat-card:nth-child(3) .stat-info p {
        margin: 0;
    }

    .seller-subtabs {
        display: flex;
        width: 100%;
        margin-bottom: 12px;
    }

    .seller-subtab-btn {
        flex: 1 1 auto;
        justify-content: center;
        padding: 7px 10px;
        font-size: 0.78rem;
    }

    /* Compact Cards (override desktop inline padding:24px / margin-top:20px) */
    .card {
        padding: 12px !important;
        border-radius: 12px !important;
        margin-top: 10px !important;
        margin-bottom: 0 !important;
        box-shadow: 0 2px 8px rgba(15, 23, 42, 0.05);
    }

    #panelLeads > .card:first-child,
    #subpanelGrowBoosts > .card:first-child,
    #subpanelSettingsProfile > .card:first-child,
    #subpanelSettingsVerification > .card:first-child {
        margin-top: 0 !important;
    }

    .card-header-row {
        margin-bottom: 8px !important;
        gap: 8px;
        align-items: center;
    }

    .card h2 {
        font-size: 0.9rem;
    }

    #panelOverview .card-header-row p {
        display: none;
    }

    #panelOverview .card-header-row .btn-secondary {
        background: transparent !important;
        border: none !important;
        color: var(--brand-ochre) !important;
        padding: 0 !important;
        font-size: 0.76rem !important;
        font-weight: 700 !important;
        box-shadow: none !important;
    }

    #overviewRecentOrdersContainer {
        margin-top: 4px !important;
    }

    .overview-order-row {
        padding: 8px 0 !important;
        margin: 0 !important;
        border: none !important;
        border-top: 1px solid var(--border-light) !important;
        border-radius: 0 !important;
        background: transparent !important;
        gap: 10px;
    }

    .overview-order-row:first-child {
        border-top: none !important;
        padding-top: 2px !important;
    }

    .overview-order-row:last-child {
        padding-bottom: 2px !important;
    }

    .overview-order-buyer {
        font-size: 0.82rem;
        margin: 0 0 2px 0;
    }

    .overview-order-item {
        font-size: 0.72rem;
    }

    .overview-order-actions {
        flex-direction: column;
        align-items: flex-end;
        gap: 3px;
    }

    .overview-order-actions .btn-primary {
        padding: 4px 10px !important;
        font-size: 0.72rem !important;
    }

    /* ======================================================================
       TAB 2: INVENTORY & PRODUCTS (Borderless Toolbar + 2-Col Edit/Discount)
       ====================================================================== */
    #panelInventory > .card {
        background: transparent;
        border: none;
        padding: 0 !important;
        margin-top: 0 !important;
        box-shadow: none;
    }

    #panelInventory .inventory-toolbar {
        background: transparent;
        border: none;
        border-radius: 0;
        padding: 0;
        min-height: 0;
        margin-bottom: 10px;
    }

    #panelInventory .inventory-toolbar-left {
        display: none;
    }

    #panelInventory .inventory-toolbar-right {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
        width: 100%;
    }

    #panelInventory .inventory-toolbar-right > #btnInventoryAddProduct {
        order: 1;
        width: 100%;
        min-height: 42px;
        border-radius: 10px;
        justify-content: center;
        font-size: 0.88rem !important;
        font-weight: 700;
        padding: 10px 14px !important;
    }

    #panelInventory .inventory-search-wrap {
        order: 2;
        flex: 1 1 100% !important;
        width: 100%;
        min-width: 0;
        max-width: none;
        min-height: 40px;
        padding: 6px 10px;
        border-radius: 9px;
    }

    #panelInventory .view-switcher {
        display: none !important;
    }

    #panelInventory #sellerInventoryCatFilter,
    #panelInventory #sellerInventoryStatusFilter {
        order: 4;
        flex: 1 1 calc(50% - 6px);
        min-width: 130px;
        min-height: 38px;
        border-radius: 8px;
    }

    .inventory-catalog-container {
        background: transparent;
    }

    #panelInventory .catalog-grid {
        padding: 0;
        gap: 8px;
    }

    #panelInventory .catalog-card {
        border-radius: 10px;
        box-shadow: 0 2px 6px rgba(15, 23, 42, 0.05);
    }

    #panelInventory .catalog-card-body {
        padding: 8px;
    }

    #panelInventory .catalog-card-category {
        display: none;
    }

    #panelInventory .catalog-card-title {
        font-size: 0.8rem;
        line-height: 1.25;
        margin-bottom: 4px;
        -webkit-line-clamp: 1;
        min-height: auto;
    }

    #panelInventory .catalog-card-price {
        font-size: 0.84rem;
        margin-bottom: 4px;
    }

    #panelInventory .catalog-card-activity {
        font-size: 0.7rem;
        margin-bottom: 6px;
    }

    #panelInventory .catalog-card-footer {
        padding-top: 8px;
        gap: 6px;
        flex-direction: column;
        align-items: stretch;
    }

    #panelInventory .catalog-actions-cell {
        width: 100%;
        display: flex;
        align-items: center;
        gap: 5px;
    }

    #panelInventory .catalog-card-footer .btn-edit-product {
        flex: 1 1 0%;
        min-height: 32px;
        padding: 5px 4px;
        border-radius: 7px;
        font-size: 0.72rem;
        font-weight: 600;
        background: var(--bg-surface-subtle);
        border: 1px solid var(--border-strong);
        color: var(--text-main);
    }

    .btn-phone-discount {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        flex: 1 1 0%;
        min-height: 32px;
        padding: 5px 4px;
        border-radius: 7px;
        border: 1px solid var(--brand-tint-border);
        background: var(--brand-tint-bg);
        color: var(--brand-tint-text);
        font-family: inherit;
        font-size: 0.72rem;
        font-weight: 600;
        cursor: pointer;
    }

    #panelInventory .catalog-card-footer .btn-row-menu {
        width: 30px;
        height: 32px;
        min-width: 30px;
        min-height: 32px;
        border-radius: 7px;
        flex-shrink: 0;
    }

    /* ======================================================================
       TAB 3: ORDERS (Dedicated Phone Cards + Shared Filter Pills)
       ====================================================================== */
    .orders-desktop-card {
        display: none !important;
    }

    .orders-phone-view {
        display: block;
    }

    .orders-filter-header {
        margin-bottom: 10px;
        gap: 8px;
    }

    .orders-filter-title-row h2 {
        font-size: 1rem;
    }

    .orders-filter-title-row .text-small {
        display: none;
    }

    .seller-order-filter-pill {
        padding: 5px 11px;
        font-size: 0.74rem;
        font-weight: 600;
    }

    .seller-phone-orders-list {
        display: flex;
        flex-direction: column;
        gap: 8px;
    }

    .seller-order-card {
        background: var(--bg-white);
        border: 1px solid var(--border-light);
        border-radius: 12px;
        padding: 12px;
        box-shadow: 0 2px 8px rgba(15, 23, 42, 0.05);
        display: flex;
        flex-direction: column;
        gap: 8px;
    }

    .seller-order-top {
        display: flex;
        justify-content: space-between;
        align-items: flex-start;
        gap: 8px;
    }

    .seller-order-ref {
        display: inline-block;
        font-size: 0.68rem;
        font-weight: 700;
        color: var(--text-muted);
        font-family: ui-monospace, monospace;
        margin-bottom: 1px;
    }

    .seller-order-buyer {
        font-size: 0.86rem;
        font-weight: 700;
        color: var(--text-main);
    }

    .seller-order-meta {
        font-size: 0.72rem;
        color: var(--text-muted);
    }

    .seller-order-card .status-pill {
        font-size: 0.66rem;
        font-weight: 700;
        padding: 2px 7px;
        border-radius: 999px;
        white-space: nowrap;
        flex-shrink: 0;
    }

    .seller-order-card .status-pill.status-new { background: var(--danger-bg); color: var(--danger-text); }
    .seller-order-card .status-pill.status-paid { background: var(--success-bg); color: var(--success-text); }
    .seller-order-card .status-pill.status-qualified { background: var(--info-bg); color: var(--info-text); }
    .seller-order-card .status-pill.status-neutral { background: var(--bg-surface-subtle); color: var(--text-secondary); }

    .seller-order-item-line {
        font-size: 0.78rem;
        color: var(--text-secondary);
        background: var(--bg-surface-subtle);
        padding: 6px 9px;
        border-radius: 7px;
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 8px;
    }

    .seller-order-actions {
        display: flex;
        align-items: center;
        gap: 6px;
        flex-wrap: wrap;
    }

    .seller-order-actions .status-select {
        flex: 1 1 130px;
        min-height: 36px;
        border-radius: 8px;
        font-size: 0.8rem;
        padding: 4px 8px;
    }

    .seller-order-bank-btn,
    .seller-order-dispatch-btn {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-height: 36px;
        padding: 6px 10px;
        border-radius: 8px;
        border: 1px solid #15803d;
        background: var(--bg-white);
        color: #15803d;
        font-size: 0.74rem;
        font-weight: 700;
        text-decoration: none;
        white-space: nowrap;
    }

    .seller-order-dispatch-btn {
        border-color: var(--border-strong);
        color: var(--text-secondary);
    }

    .seller-order-wa-btn {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-height: 36px;
        padding: 6px 12px;
        border-radius: 8px;
        background: #15803d;
        color: #ffffff;
        font-size: 0.76rem;
        font-weight: 700;
        text-decoration: none;
        white-space: nowrap;
    }

    /* ======================================================================
       Boost Plans & History Table -> Mobile Stack
       ====================================================================== */
    .boost-plans-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    #subpanelGrowBoosts table.data-table,
    #subpanelGrowBoosts table.data-table tbody {
        display: block;
        width: 100%;
    }

    #subpanelGrowBoosts table.data-table thead {
        display: none;
    }

    #subpanelGrowBoosts table.data-table tbody {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }

    #subpanelGrowBoosts table.data-table tr {
        display: flex;
        flex-direction: column;
        gap: 5px;
        background: var(--bg-surface-elevated);
        border: 1px solid var(--border-light);
        border-radius: 10px;
        padding: 12px;
    }

    #subpanelGrowBoosts table.data-table td {
        display: block;
        border: none;
        padding: 0;
        max-width: none !important;
        width: 100%;
    }

    #subpanelGrowBoosts table.data-table td[colspan] {
        text-align: center;
        padding: 16px 8px;
    }

    /* Performance Tab Compact Adjustments */
    .perf-time-pills {
        width: 100%;
        display: flex;
        flex-wrap: wrap;
        gap: 6px;
    }

    .perf-pill {
        flex: 1 1 auto;
        text-align: center;
    }

    /* ======================================================================
       TAB 8: Full-Height Help & Feedback Support Chat down to Bottom Nav Edge
       ====================================================================== */
    body.seller-support-active .dashboard-layout {
        padding: 8px 10px 6px;
        margin-bottom: 0;
    }

    #panelSupport .card {
        padding: 0 !important;
        margin: 0 !important;
        border-radius: 12px !important;
    }

    #panelSupport .tm-chat-shell--embedded {
        height: calc(100dvh - 166px);
        min-height: 360px;
    }

    #panelSupport .tm-chat-header {
        padding: 10px 14px;
    }

    /* Product Modals -> Bottom Sheet Presentation */
    #addProductModal.modal-backdrop,
    #editProductModal.modal-backdrop,
    #discountModal.modal-backdrop {
        align-items: flex-end;
        padding: 0;
    }

    #addProductModal .modal-dialog-window,
    #editProductModal .modal-dialog-window,
    #discountModal .modal-window {
        width: 100%;
        max-width: 100% !important;
        max-height: 92dvh;
        border-radius: 18px 18px 0 0;
        margin: 0;
    }

    #addProductModal .modal-dialog-footer,
    #editProductModal .modal-dialog-footer {
        padding-bottom: calc(16px + env(safe-area-inset-bottom, 0px));
    }

    /* Floating Catalog Scroll-to-Top above Bottom Nav */
    #catalogScrollTopBtn {
        bottom: calc(74px + env(safe-area-inset-bottom, 0px));
        right: 14px;
    }

    /* Always-Visible 4-Tab Sticky Bottom Navigation */
    .seller-mobile-bottom-nav {
        display: flex;
        align-items: stretch;
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 1030;
        background: var(--bg-white);
        border-top: 1px solid var(--border-light);
        padding: 5px 4px calc(7px + env(safe-area-inset-bottom, 0px));
        box-shadow: 0 -2px 10px rgba(15, 23, 42, 0.06);
    }

    .seller-bottom-nav-btn {
        flex: 1 1 0%;
        min-width: 0;
        border: none;
        background: transparent;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 3px;
        padding: 3px 2px;
        color: var(--text-muted);
        font-family: inherit;
        font-size: 0.68rem;
        font-weight: 600;
        cursor: pointer;
    }

    .seller-bottom-nav-btn.active {
        color: var(--brand-ochre);
        font-weight: 700;
    }

    .seller-bottom-icon-wrap {
        position: relative;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .seller-bottom-badge {
        position: absolute;
        top: -4px;
        right: -9px;
        min-width: 16px;
        height: 16px;
        padding: 0 4px;
        border-radius: 999px;
        background: var(--accent-red);
        color: #ffffff;
        font-size: 0.62rem;
        font-weight: 800;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        line-height: 1;
    }

    /* More Store Tools Slide-Up Sheet */
    .seller-more-backdrop {
        display: block;
        position: fixed;
        inset: 0;
        background: rgba(15, 23, 42, 0.45);
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transition: opacity 0.2s ease, visibility 0.2s ease;
        z-index: 1060;
    }

    .seller-more-backdrop.open {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }

    .seller-more-sheet {
        display: flex;
        flex-direction: column;
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        max-height: 82dvh;
        overflow-y: auto;
        background: var(--bg-white);
        border-radius: 18px 18px 0 0;
        padding: 14px 16px calc(22px + env(safe-area-inset-bottom, 0px));
        box-shadow: 0 -8px 30px rgba(0, 0, 0, 0.22);
        visibility: hidden;
        pointer-events: none;
        transform: translateY(105%);
        transition: transform 0.24s ease, visibility 0.24s ease;
        z-index: 1070;
    }

    .seller-more-sheet.open {
        visibility: visible;
        pointer-events: auto;
        transform: translateY(0);
    }

    .seller-more-sheet-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding-bottom: 10px;
        margin-bottom: 10px;
        border-bottom: 1px solid var(--border-light);
    }

    .seller-more-sheet-title {
        font-size: 0.96rem;
        font-weight: 800;
        color: var(--text-main);
    }

    .seller-more-sheet-list {
        display: flex;
        flex-direction: column;
        gap: 6px;
    }

    .seller-more-item {
        width: 100%;
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 10px 12px;
        border-radius: 10px;
        border: 1px solid var(--border-light);
        background: var(--bg-surface-elevated);
        color: var(--text-main);
        font-family: inherit;
        font-size: 0.86rem;
        font-weight: 600;
        text-align: left;
        text-decoration: none;
        cursor: pointer;
    }

    .seller-more-item.active {
        border-color: var(--brand-ochre);
        background: var(--brand-tint-bg);
        color: var(--brand-tint-text);
    }

    .seller-more-item-danger {
        color: var(--danger-text);
    }

    .seller-more-badge {
        min-width: 20px;
        height: 20px;
        padding: 0 6px;
        border-radius: 999px;
        background: var(--brand-ochre);
        color: #ffffff;
        font-size: 0.7rem;
        font-weight: 800;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .seller-more-badge-info {
        background: var(--info-text);
    }
}
