/* Profile & Account Hub Styling - Apple & Google Modern Standard */

:root {
    --brand-blue: #1a73e8;
    --brand-blue-hover: #1557b0;
    --slate-50: #f8fafc;
    --slate-100: #f1f5f9;
    --slate-200: #e2e8f0;
    --slate-300: #cbd5e1;
    --slate-400: #94a3b8;
    --slate-500: #64748b;
    --slate-600: #475569;
    --slate-700: #334155;
    --slate-800: #1e293b;
    --slate-900: #0f172a;
}

body.account-hub-body {
    margin: 0;
    padding: 0;
    background-color: #f8fafc;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--slate-900);
    min-height: 100vh;
}

/* ---------------- Main Container (Clean, Pro & Centered naturally) ---------------- */
.account-hub-main {
    padding: 1.5rem 1.25rem 2.5rem 1.25rem;
    display: flex;
    justify-content: center;
}

.account-hub-card {
    width: 100%;
    max-width: 520px;
    margin: 0 auto;
    background: #ffffff;
    border: 1px solid var(--slate-200);
    border-radius: 24px;
    overflow: visible;
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.05);
    transition: max-width 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Dynamically expand width cleanly when inside Add Listing or Manage Listings */
.account-hub-card.expanded-mode {
    max-width: 900px;
}

.account-hub-card.merchant-desk-mode {
    max-width: 1100px;
}

/* Seamless Sub-screen Form reset inside Account Hub */
.account-hub-card #viewAddListing .enterprise-form-card {
    border: none;
    box-shadow: none;
    padding: 0;
    border-radius: 0;
    background: transparent;
}

/* ---------------- City Autocomplete Suggestion Dropdown ---------------- */
.city-suggestions-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    background: #ffffff;
    border: 1px solid var(--slate-300);
    border-radius: 12px;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.15);
    z-index: 150;
    max-height: 250px;
    overflow-y: auto;
    padding: 0.4rem;
}

.city-suggestions-dropdown.open {
    display: block;
}

.city-suggestion-item {
    padding: 0.65rem 0.85rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-radius: 8px;
    transition: all 0.15s ease;
    margin-bottom: 2px;
}

.city-suggestion-item:last-child {
    margin-bottom: 0;
}

.city-suggestion-item:hover, .city-suggestion-item.highlighted {
    background: #f0f7ff;
}

.city-suggestion-item .sugg-city-info {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    text-align: left;
}

.city-suggestion-item .sugg-city-name {
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--slate-900);
    display: flex;
    align-items: center;
    gap: 0.45rem;
}

.city-suggestion-item .sugg-city-details {
    font-size: 0.76rem;
    color: #64748b;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.25rem;
}

.city-suggestion-item .sugg-pin-badge {
    color: #0f172a;
    font-weight: 700;
    background: #e2e8f0;
    padding: 0.1rem 0.45rem;
    border-radius: 4px;
    font-size: 0.72rem;
}

.city-suggestion-item .sugg-select-hint {
    font-size: 0.74rem;
    color: #94a3b8;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    opacity: 0;
    transition: opacity 0.15s ease;
}

.city-suggestion-item:hover .sugg-select-hint {
    opacity: 1;
    color: var(--brand-blue);
}

.account-hub-card #viewAddListing .listing-top-photo-section {
    padding: 0 0 1.25rem 0;
    display: flex;
    justify-content: flex-start;
}

.account-hub-card #viewAddListing .top-photo-card {
    width: 100%;
    max-width: 420px;
    height: 145px;
    min-height: 145px;
    border-radius: 12px;
}

.account-hub-card #viewAddListing #uImageUploadPreview {
    width: 100%;
    height: 100%;
    max-height: 145px;
    object-fit: cover;
    display: block;
}

.account-hub-card #viewAddListing .form-section-block {
    padding-bottom: 1.5rem;
    margin-bottom: 1.5rem;
}

/* ---------------- Daily Operating Schedule Matrix (Day-by-Day Hours) ---------------- */
.daily-schedule-matrix {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 1rem;
}

.matrix-quick-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #f8fafc;
    border: 1px dashed #cbd5e1;
    border-radius: 12px;
    padding: 0.65rem 1rem;
    gap: 0.85rem;
    flex-wrap: wrap;
    margin-bottom: 0.35rem;
}

.matrix-tip {
    font-size: 0.78rem;
    color: var(--slate-600);
    font-weight: 600;
}

.btn-copy-timings {
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    color: #1d4ed8;
    font-size: 0.76rem;
    font-weight: 700;
    padding: 0.35rem 0.75rem;
    border-radius: 8px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    transition: all 0.15s ease;
}

.btn-copy-timings:hover {
    background: #dbeafe;
    color: #1e40af;
}

.matrix-rows-wrap {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

.matrix-day-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #ffffff;
    border: 1px solid var(--slate-200);
    border-radius: 12px;
    padding: 0.65rem 1rem;
    gap: 1rem;
    transition: all 0.2s ease;
}

.matrix-day-row.is-open {
    border-color: #cbd5e1;
}

.matrix-day-row.is-closed {
    background: #f8fafc;
    border-color: #e2e8f0;
}

.matrix-day-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 170px;
}

.matrix-day-name {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--slate-800);
}

.matrix-status-tag {
    font-size: 0.68rem;
    font-weight: 800;
    padding: 0.12rem 0.5rem;
    border-radius: 999px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.matrix-status-tag.tag-open {
    background: #dcfce7;
    color: #15803d;
}

.matrix-status-tag.tag-closed {
    background: #fee2e2;
    color: #b91c1c;
}

/* Day Toggle Switch (iOS / Material style) */
.day-toggle-switch {
    position: relative;
    display: inline-block;
    width: 36px;
    height: 20px;
    flex-shrink: 0;
}

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

.day-toggle-switch .slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #cbd5e1;
    transition: 0.25s;
    border-radius: 34px;
}

.day-toggle-switch .slider:before {
    position: absolute;
    content: "";
    height: 14px;
    width: 14px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.25s;
    border-radius: 50%;
}

.day-toggle-switch input:checked + .slider {
    background-color: #10b981;
}

.day-toggle-switch input:checked + .slider:before {
    transform: translateX(16px);
}

/* Times Box */
.matrix-times-box {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    transition: opacity 0.2s ease;
}

.matrix-time-input-wrap {
    display: flex;
    align-items: center;
    gap: 0.45rem;
}

.matrix-time-input-wrap .time-lbl {
    font-size: 0.74rem;
    color: var(--slate-500);
    font-weight: 600;
}

.matrix-time-sep {
    color: var(--slate-400);
    font-weight: 700;
    font-size: 0.85rem;
}

@media (max-width: 680px) {
    .matrix-day-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }

    .matrix-times-box {
        width: 100%;
        justify-content: space-between;
        flex-wrap: wrap;
        gap: 0.5rem;
    }
}

.account-hub-card .time-ampm-row {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    width: auto;
    max-width: 145px;
}

.account-hub-card .time-ampm-row input {
    width: 78px;
    padding: 0.65rem 0.5rem;
    border: 1px solid var(--slate-300);
    border-radius: 8px;
    font-size: 0.88rem;
    font-weight: 600;
    text-align: center;
    box-sizing: border-box;
}

.account-hub-card .time-ampm-row select {
    width: 62px;
    padding: 0.65rem 0.4rem;
    border: 1px solid var(--slate-300);
    border-radius: 8px;
    background: #ffffff;
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--brand-blue);
    cursor: pointer;
    box-sizing: border-box;
}

@media (max-width: 768px) {
    .account-hub-card .schedule-advanced-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

/* ---------------- Hero Profile Header ---------------- */
.account-profile-header {
    padding: 2.25rem 1.5rem 1.75rem 1.5rem;
    text-align: center;
    background: linear-gradient(180deg, #f1f5f9 0%, #ffffff 100%);
    border-bottom: 1px solid var(--slate-100);
}

.profile-avatar-wrapper {
    position: relative;
    width: 86px;
    height: 86px;
    margin: 0 auto 0.85rem auto;
}

.profile-avatar-circle {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 3.5px solid #ffffff;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
}

.auth-source-badge {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: #ffffff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
}

.user-display-name {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--slate-900);
    margin: 0 0 0.25rem 0;
}

.user-display-email {
    margin: 0 0 0.65rem 0;
    font-size: 0.86rem;
    color: var(--slate-500);
}

.member-since-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: #e0f2fe;
    color: #0369a1;
    font-size: 0.76rem;
    font-weight: 600;
    padding: 0.22rem 0.75rem;
    border-radius: 20px;
}

/* ---------------- Menu List ---------------- */
.account-menu-list {
    padding: 0.75rem 1rem 1rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.menu-list-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.15rem;
    border-radius: 16px;
    text-decoration: none;
    color: inherit;
    border: 1px solid transparent;
    background: transparent;
    width: 100%;
    box-sizing: border-box;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.menu-list-row:hover {
    background: var(--slate-50);
    border-color: var(--slate-200);
    transform: translateX(2px);
}

.menu-row-left {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.menu-icon-box {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    flex-shrink: 0;
}

.menu-icon-box.blue { background: #eff6ff; color: #2563eb; }
.menu-icon-box.green { background: #ecfdf5; color: #10b981; }
.menu-icon-box.purple { background: #f5f3ff; color: #8b5cf6; }
.menu-icon-box.amber { background: #fffbeb; color: #d97706; }
.menu-icon-box.gold { background: #fef3c7; color: #b45309; }
.menu-icon-box.teal { background: #f0fdfa; color: #0d9488; }
.menu-icon-box.red { background: #fef2f2; color: #ef4444; }

.menu-row-info {
    display: flex;
    flex-direction: column;
    text-align: left;
    gap: 0.15rem;
}

.menu-row-info strong {
    font-size: 0.96rem;
    font-weight: 700;
    color: var(--slate-900);
}

.menu-row-info span {
    font-size: 0.78rem;
    color: var(--slate-500);
}

.menu-chevron {
    color: var(--slate-400);
    font-size: 0.85rem;
    transition: transform 0.2s;
}

.menu-list-row:hover .menu-chevron {
    transform: translateX(3px);
    color: var(--brand-blue);
}

/* Logout Row Specific */
.logout-row {
    margin-top: 0.5rem;
    border-top: 1px solid var(--slate-100);
    padding-top: 1.15rem;
    border-radius: 16px;
}

.logout-row:hover {
    background: #fef2f2;
    border-color: #fee2e2;
}

.logout-power-icon {
    color: #fca5a5;
    font-size: 0.95rem;
}

.logout-row:hover .logout-power-icon {
    color: #ef4444;
}

/* ---------------- Sub-Screen Shared UI ---------------- */
.sub-screen-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.15rem 1.25rem;
    border-bottom: 1px solid var(--slate-100);
}

.btn-sub-back {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid var(--slate-200);
    background: #ffffff;
    color: var(--slate-700);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    transition: all 0.2s;
}

.btn-sub-back:hover {
    background: var(--slate-100);
    color: var(--brand-blue);
    border-color: var(--brand-blue);
}

.sub-screen-header h3 {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 1.15rem;
    font-weight: 700;
    margin: 0;
    color: var(--slate-900);
}

.sub-screen-content {
    padding: 1.25rem 1.5rem 1.75rem 1.5rem;
}

.account-form-banner {
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: 12px;
    padding: 0.85rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.82rem;
    color: #1e40af;
    margin-bottom: 1.25rem;
}

.account-form-banner i {
    font-size: 1.15rem;
    color: var(--brand-blue);
}

.account-form-banner.help {
    background: #ecfdf5;
    border-color: #a7f3d0;
    color: #065f46;
}

.account-form-banner.help i {
    color: #10b981;
}

.form-fields-stack {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.hub-field-group {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.hub-field-group label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--slate-700);
}

.hub-field-group input,
.hub-field-group select,
.hub-field-group textarea {
    padding: 0.65rem 0.85rem;
    border: 1px solid var(--slate-300);
    border-radius: 10px;
    font-family: inherit;
    font-size: 0.88rem;
    outline: none;
    transition: border-color 0.2s;
    background: #ffffff;
    color: var(--slate-900);
}

.hub-field-group input:focus,
.hub-field-group select:focus,
.hub-field-group textarea:focus {
    border-color: var(--brand-blue);
    box-shadow: 0 0 0 3px rgba(26, 115, 232, 0.1);
}

.hub-field-group .input-readonly {
    background: #f8fafc;
    color: var(--slate-500);
    cursor: not-allowed;
}

.hub-field-row-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.85rem;
}

.hub-field-row-3 {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 0.85rem;
}

.hub-form-submit-row {
    margin-top: 1.35rem;
}

.btn-hub-primary {
    width: 100%;
    padding: 0.75rem;
    border-radius: 12px;
    background: var(--brand-blue);
    color: #ffffff;
    border: none;
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    box-shadow: 0 4px 12px rgba(26, 115, 232, 0.25);
    transition: background 0.2s;
}

.btn-hub-primary:hover {
    background: var(--brand-blue-hover);
}

/* ---------------- User Add Listing Photo Uploader ---------------- */
.user-listing-upload-card {
    border: 2px dashed var(--slate-300);
    border-radius: 14px;
    background: #f8fafc;
    min-height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    overflow: hidden;
    position: relative;
    transition: all 0.2s;
}

.user-listing-upload-card:hover {
    border-color: var(--brand-blue);
    background: #eff6ff;
}

.user-listing-photo-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.35rem;
    padding: 1rem;
}

.user-listing-photo-placeholder i {
    font-size: 1.6rem;
    color: var(--brand-blue);
}

.user-listing-photo-placeholder strong {
    font-size: 0.92rem;
    color: var(--slate-800);
}

.user-listing-photo-placeholder span {
    font-size: 0.76rem;
    color: var(--slate-500);
}

#userListingPhotoPreview {
    width: 100%;
    max-height: 180px;
    object-fit: cover;
    display: block;
}

/* ---------------- Top Add Listing Header Action ---------------- */
.btn-top-add-listing {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.4rem 0.85rem;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    color: var(--brand-blue);
    font-size: 0.8rem;
    font-weight: 700;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-top-add-listing:hover {
    background: var(--brand-blue);
    color: #ffffff;
    border-color: var(--brand-blue);
}

/* ========================================================
   MANAGE YOUR BUSINESS - MERCHANT HUB & DASHBOARD SUITE
======================================================== */
.biz-selector-bar {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    background: #f8fafc;
    border: 1px solid var(--slate-200);
    padding: 0.6rem 0.85rem;
    border-radius: 12px;
    margin-bottom: 1rem;
}

.biz-sel-lbl {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--slate-600);
    white-space: nowrap;
}

.biz-select-dropdown {
    flex: 1;
    padding: 0.4rem 0.65rem;
    border: 1px solid var(--slate-300);
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--slate-800);
    background: #ffffff;
    outline: none;
    cursor: pointer;
}

/* ========================================================
   MULTINATIONAL ENTERPRISE MERCHANT PORTAL (TOP-TIER SUITE)
======================================================== */
.m-portal-overlay {
    display: none;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    background: #f8fafc !important;
    z-index: 5000 !important;
    align-items: stretch !important;
    justify-content: stretch !important;
    padding: 0 !important;
    box-sizing: border-box !important;
    animation: mPortalFadeIn 0.2s ease !important;
}

.m-portal-overlay.active {
    display: flex !important;
}

@keyframes mPortalFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.m-portal-window {
    background: #ffffff !important;
    width: 100vw !important;
    max-width: 100vw !important;
    height: 100vh !important;
    max-height: 100vh !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    display: flex !important;
    flex-direction: column !important;
    overflow: hidden !important;
    position: relative !important;
}

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

/* 1. Header */
.m-portal-header {
    background: #ffffff !important;
    border-bottom: 1.5px solid #e2e8f0 !important;
    padding: 0.85rem 2rem !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 1.5rem !important;
    flex-shrink: 0 !important;
}

.m-store-identity {
    display: flex !important;
    align-items: center !important;
    gap: 0.75rem !important;
    min-width: 0 !important;
}

.m-store-avatar-wrap {
    width: 44px !important;
    height: 44px !important;
    border-radius: 12px !important;
    overflow: hidden !important;
    border: 1.5px solid #e2e8f0 !important;
    background: #f8fafc !important;
    flex-shrink: 0 !important;
}

.m-store-avatar-wrap img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
}

.m-store-meta {
    min-width: 0 !important;
}

.m-store-title-wrap {
    display: flex !important;
    align-items: center !important;
    gap: 0.55rem !important;
}

.m-store-title-wrap h3 {
    margin: 0 !important;
    font-size: 1.05rem !important;
    font-weight: 800 !important;
    color: #0f172a !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    letter-spacing: -0.2px !important;
}

.m-live-pill {
    display: inline-flex !important;
    align-items: center !important;
    gap: 0.35rem !important;
    background: #dcfce7 !important;
    color: #15803d !important;
    font-size: 0.7rem !important;
    font-weight: 800 !important;
    padding: 0.15rem 0.55rem !important;
    border-radius: 999px !important;
    border: 1px solid #bbf7d0 !important;
    white-space: nowrap !important;
}

.m-live-pill.closed {
    background: #fee2e2 !important;
    color: #b91c1c !important;
    border-color: #fecaca !important;
}

.m-store-sub {
    font-size: 0.78rem !important;
    color: #64748b !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    display: block !important;
}

/* Desktop Segmented Navigation Tabs */
.m-portal-tabs {
    display: inline-flex !important;
    align-items: center !important;
    gap: 0.3rem !important;
    background: #f1f5f9 !important;
    padding: 0.28rem 0.35rem !important;
    border-radius: 12px !important;
}

.m-tab-btn {
    background: transparent !important;
    border: none !important;
    padding: 0.45rem 0.85rem !important;
    border-radius: 9px !important;
    font-size: 0.82rem !important;
    font-weight: 700 !important;
    color: #64748b !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 0.45rem !important;
    cursor: pointer !important;
    transition: all 0.15s ease !important;
    font-family: inherit !important;
    white-space: nowrap !important;
}

.m-tab-btn i {
    font-size: 0.9rem !important;
    color: #64748b !important;
    transition: color 0.15s ease !important;
}

.m-tab-btn:hover {
    color: #0f172a !important;
    background: rgba(255, 255, 255, 0.6) !important;
}

.m-tab-btn.active {
    background: #ffffff !important;
    color: #2563eb !important;
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.08) !important;
}

.m-tab-btn.active i {
    color: #2563eb !important;
}

.m-portal-header-right {
    display: flex !important;
    align-items: center !important;
    gap: 0.55rem !important;
    flex-shrink: 0 !important;
}

.btn-portal-preview {
    background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%) !important;
    color: #ffffff !important;
    border: none !important;
    font-size: 0.82rem !important;
    font-weight: 700 !important;
    padding: 0.48rem 0.95rem !important;
    border-radius: 10px !important;
    cursor: pointer !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 0.45rem !important;
    box-shadow: 0 4px 12px rgba(2, 132, 199, 0.25) !important;
    transition: all 0.2s ease !important;
}

.btn-portal-preview:hover {
    transform: translateY(-1px) !important;
    box-shadow: 0 6px 16px rgba(2, 132, 199, 0.35) !important;
}

.btn-portal-close {
    background: #f1f5f9 !important;
    border: 1px solid #cbd5e1 !important;
    color: #475569 !important;
    width: 36px !important;
    height: 36px !important;
    border-radius: 10px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 1rem !important;
    cursor: pointer !important;
    transition: all 0.15s ease !important;
}

.btn-portal-close:hover {
    background: #fee2e2 !important;
    color: #ef4444 !important;
    border-color: #fca5a5 !important;
}

/* 2. Scrollable Body & Tab Panels */
.m-portal-body {
    flex: 1 !important;
    overflow-y: auto !important;
    padding: 2rem !important;
    background: #f8fafc !important;
    scrollbar-width: thin !important;
    scrollbar-color: #cbd5e1 transparent !important;
}

.m-tab-panel {
    display: none !important;
    max-width: 1200px !important;
    margin: 0 auto !important;
    width: 100% !important;
}

.m-tab-panel.active {
    display: block !important;
    animation: mPanelFade 0.2s ease !important;
}

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

/* Analytics Cards */
.m-metrics-grid {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 1rem !important;
    margin-bottom: 1.5rem !important;
}

.m-metric-card {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 16px !important;
    padding: 1.15rem !important;
    display: flex !important;
    align-items: center !important;
    gap: 0.95rem !important;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04) !important;
}

.m-metric-icon {
    width: 44px !important;
    height: 44px !important;
    border-radius: 12px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 1.15rem !important;
    flex-shrink: 0 !important;
}

.m-metric-card.blue .m-metric-icon { background: #e0f2fe !important; color: #0284c7 !important; }
.m-metric-card.green .m-metric-icon { background: #dcfce7 !important; color: #16a34a !important; }
.m-metric-card.emerald .m-metric-icon { background: #d1fae5 !important; color: #059669 !important; }
.m-metric-card.amber .m-metric-icon { background: #fef3c7 !important; color: #d97706 !important; }

.m-metric-data {
    display: flex !important;
    flex-direction: column !important;
}

.m-metric-val {
    font-size: 1.35rem !important;
    font-weight: 800 !important;
    color: #0f172a !important;
    line-height: 1.2 !important;
}

.m-metric-lbl {
    font-size: 0.75rem !important;
    font-weight: 600 !important;
    color: #64748b !important;
}

/* Section Headings */
.m-section-heading {
    font-size: 1.05rem !important;
    font-weight: 800 !important;
    color: #0f172a !important;
    margin: 0 0 1rem 0 !important;
    display: flex !important;
    align-items: center !important;
    gap: 0.5rem !important;
}

/* Quick Hub Grid */
.m-quick-hub-section {
    margin-bottom: 1.5rem !important;
}

.m-quick-hub-grid {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 1rem !important;
}

.m-quick-card {
    background: #ffffff !important;
    border: 1.5px solid #e2e8f0 !important;
    border-radius: 16px !important;
    padding: 1.15rem 1.25rem !important;
    display: flex !important;
    align-items: center !important;
    gap: 1rem !important;
    cursor: pointer !important;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.m-quick-card:hover {
    border-color: #2563eb !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 18px rgba(37, 99, 235, 0.12) !important;
}

.m-quick-icon {
    width: 44px !important;
    height: 44px !important;
    border-radius: 12px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 1.15rem !important;
    flex-shrink: 0 !important;
}

.m-quick-icon.indigo { background: #eef2ff !important; color: #4f46e5 !important; }
.m-quick-icon.teal { background: #f0fdfa !important; color: #0d9488 !important; }
.m-quick-icon.rose { background: #fff1f2 !important; color: #e11d48 !important; }
.m-quick-icon.sky { background: #f0f9ff !important; color: #0284c7 !important; }

.m-quick-info {
    flex: 1 !important;
    min-width: 0 !important;
    display: flex !important;
    flex-direction: column !important;
}

.m-quick-info strong {
    font-size: 0.95rem !important;
    font-weight: 800 !important;
    color: #0f172a !important;
}

.m-quick-info span {
    font-size: 0.78rem !important;
    color: #64748b !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}

.m-quick-arrow {
    color: #cbd5e1 !important;
    font-size: 0.9rem !important;
}

/* Leads Section */
.m-leads-list {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 18px !important;
    overflow: hidden !important;
}

.m-lead-item {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 1rem !important;
    padding: 0.95rem 1.25rem !important;
    border-bottom: 1px solid #f1f5f9 !important;
}

.m-lead-item:last-child {
    border-bottom: none !important;
}

.m-lead-avatar {
    width: 40px !important;
    height: 40px !important;
    border-radius: 50% !important;
    background: #eff6ff !important;
    color: #2563eb !important;
    font-weight: 800 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 1rem !important;
}

.m-lead-info {
    flex: 1 !important;
    display: flex !important;
    flex-direction: column !important;
}

.m-lead-info strong {
    font-size: 0.92rem !important;
    color: #0f172a !important;
}

.m-lead-info span {
    font-size: 0.78rem !important;
    color: #64748b !important;
}

.m-lead-tag {
    font-size: 0.74rem !important;
    font-weight: 700 !important;
    padding: 0.25rem 0.65rem !important;
    border-radius: 999px !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 0.35rem !important;
}

.m-lead-tag.wa { background: #dcfce7 !important; color: #15803d !important; }
.m-lead-tag.call { background: #e0f2fe !important; color: #0369a1 !important; }

/* Panel Box Container */
.m-panel-box {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 20px !important;
    padding: 1.5rem !important;
    box-shadow: 0 4px 15px rgba(15, 23, 42, 0.03) !important;
}

.m-panel-box-header {
    display: flex !important;
    align-items: flex-start !important;
    justify-content: space-between !important;
    gap: 1rem !important;
    padding-bottom: 1.1rem !important;
    border-bottom: 1.5px solid #f1f5f9 !important;
    margin-bottom: 1.25rem !important;
}

.m-panel-box-header h4 {
    margin: 0 0 0.25rem 0 !important;
    font-size: 1.15rem !important;
    font-weight: 800 !important;
    color: #0f172a !important;
}

.m-panel-box-header p {
    margin: 0 !important;
    font-size: 0.82rem !important;
    color: #64748b !important;
}

/* Photo Uploader Row */
.m-photo-uploader-row {
    display: flex !important;
    align-items: center !important;
    gap: 1.25rem !important;
}

.m-photo-preview-wrap {
    position: relative !important;
    width: 90px !important;
    height: 90px !important;
    border-radius: 18px !important;
    overflow: hidden !important;
    border: 2px solid #e2e8f0 !important;
    background: #f1f5f9 !important;
    cursor: pointer !important;
    flex-shrink: 0 !important;
}

.m-photo-preview-wrap img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
}

.m-photo-overlay-badge {
    position: absolute !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    background: rgba(15, 23, 42, 0.75) !important;
    color: #ffffff !important;
    font-size: 0.65rem !important;
    font-weight: 700 !important;
    text-align: center !important;
    padding: 0.2rem 0 !important;
}

.m-photo-helper strong {
    font-size: 0.92rem !important;
    color: #0f172a !important;
}

.m-photo-helper p {
    margin: 0.25rem 0 0 0 !important;
    font-size: 0.8rem !important;
    color: #64748b !important;
    line-height: 1.4 !important;
}

/* Forms Grid */
.m-form-grid {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 1.15rem !important;
}

.m-field {
    display: flex !important;
    flex-direction: column !important;
    gap: 0.45rem !important;
}

.m-field.span-2 {
    grid-column: span 2 !important;
}

.m-field label {
    font-size: 0.82rem !important;
    font-weight: 700 !important;
    color: #334155 !important;
}

.m-field input,
.m-field select {
    width: 100% !important;
    padding: 0.72rem 0.95rem !important;
    border: 1.5px solid #cbd5e1 !important;
    border-radius: 12px !important;
    font-size: 0.9rem !important;
    font-weight: 600 !important;
    color: #0f172a !important;
    background: #f8fafc !important;
    outline: none !important;
    transition: all 0.2s ease !important;
    box-sizing: border-box !important;
}

.m-field input:focus,
.m-field select:focus {
    background: #ffffff !important;
    border-color: #2563eb !important;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12) !important;
}

.m-form-action-row {
    margin-top: 1.5rem !important;
    display: flex !important;
    justify-content: flex-end !important;
}

.btn-portal-primary {
    padding: 0.7rem 1.45rem !important;
    border-radius: 12px !important;
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%) !important;
    color: #ffffff !important;
    font-size: 0.86rem !important;
    font-weight: 700 !important;
    border: none !important;
    cursor: pointer !important;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25) !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 0.5rem !important;
    transition: all 0.2s ease !important;
}

.btn-portal-primary:hover {
    transform: translateY(-1.5px) !important;
    box-shadow: 0 6px 16px rgba(37, 99, 235, 0.35) !important;
}

.btn-portal-primary-sm {
    padding: 0.55rem 1.15rem !important;
    border-radius: 10px !important;
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%) !important;
    color: #ffffff !important;
    font-size: 0.82rem !important;
    font-weight: 700 !important;
    border: none !important;
    cursor: pointer !important;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2) !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 0.45rem !important;
    transition: all 0.2s ease !important;
}

.btn-portal-primary-sm:hover {
    transform: translateY(-1.5px) !important;
}

.btn-portal-secondary-sm {
    padding: 0.55rem 1rem !important;
    border-radius: 10px !important;
    background: #ffffff !important;
    color: #334155 !important;
    font-size: 0.82rem !important;
    font-weight: 600 !important;
    border: 1px solid #cbd5e1 !important;
    cursor: pointer !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 0.4rem !important;
    transition: all 0.2s ease !important;
}

.btn-portal-secondary-sm:hover {
    background: #f1f5f9 !important;
    color: #1e293b !important;
    border-color: #94a3b8 !important;
    transform: translateY(-1.5px) !important;
}

/* Catalog Items Grid */
.m-catalog-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)) !important;
    gap: 1rem !important;
}

.m-catalog-card {
    background: #ffffff !important;
    border: 1.5px solid #e2e8f0 !important;
    border-radius: 16px !important;
    padding: 0.95rem !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 0.85rem !important;
    transition: all 0.2s ease !important;
}

.m-catalog-card:hover {
    border-color: #cbd5e1 !important;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.05) !important;
}

.m-cat-card-left {
    display: flex !important;
    align-items: center !important;
    gap: 0.85rem !important;
    min-width: 0 !important;
}

.m-cat-card-thumb {
    width: 48px !important;
    height: 48px !important;
    border-radius: 10px !important;
    object-fit: cover !important;
    flex-shrink: 0 !important;
    border: 1px solid #e2e8f0 !important;
}

.m-cat-card-info {
    min-width: 0 !important;
    display: flex !important;
    flex-direction: column !important;
}

.m-cat-card-name {
    font-size: 0.92rem !important;
    font-weight: 800 !important;
    color: #0f172a !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}

.m-cat-card-price {
    font-size: 0.82rem !important;
    font-weight: 700 !important;
    color: #2563eb !important;
}

.m-cat-card-actions {
    display: flex !important;
    align-items: center !important;
    gap: 0.4rem !important;
}

.btn-card-action {
    background: #f1f5f9 !important;
    border: 1px solid #cbd5e1 !important;
    color: #475569 !important;
    width: 32px !important;
    height: 32px !important;
    border-radius: 8px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 0.82rem !important;
    cursor: pointer !important;
    transition: all 0.15s ease !important;
}

.btn-card-action:hover {
    background: #e2e8f0 !important;
    color: #0f172a !important;
}

.btn-card-action.del:hover {
    background: #fee2e2 !important;
    color: #dc2626 !important;
    border-color: #fca5a5 !important;
}

/* Banners Grid */
.m-banners-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)) !important;
    gap: 1rem !important;
}

.m-banner-card {
    border-radius: 18px !important;
    padding: 1.25rem !important;
    color: #ffffff !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    min-height: 140px !important;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.12) !important;
}

.m-banner-chip {
    display: inline-block !important;
    align-self: flex-start !important;
    background: rgba(255, 255, 255, 0.22) !important;
    font-size: 0.72rem !important;
    font-weight: 800 !important;
    padding: 0.2rem 0.55rem !important;
    border-radius: 6px !important;
    margin-bottom: 0.4rem !important;
}

.m-banner-headline {
    font-size: 1.1rem !important;
    font-weight: 800 !important;
    margin: 0 0 0.25rem 0 !important;
}

.m-banner-deal {
    font-size: 0.82rem !important;
    opacity: 0.9 !important;
    margin: 0 0 1rem 0 !important;
}

.m-banner-bottom-row {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 0.5rem !important;
    border-top: 1px solid rgba(255, 255, 255, 0.2) !important;
    padding-top: 0.65rem !important;
}

.btn-banner-ctrl {
    background: rgba(255, 255, 255, 0.22) !important;
    border: none !important;
    color: #ffffff !important;
    font-size: 0.75rem !important;
    font-weight: 700 !important;
    padding: 0.35rem 0.75rem !important;
    border-radius: 6px !important;
    cursor: pointer !important;
    transition: background 0.15s ease !important;
}

.btn-banner-ctrl:hover {
    background: rgba(255, 255, 255, 0.45) !important;
}

/* Store Sliding Categories Manager Grid */
.m-store-cats-manager-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)) !important;
    gap: 0.85rem !important;
}

.m-store-cat-card {
    background: #f8fafc !important;
    border: 1.5px solid #e2e8f0 !important;
    border-radius: 14px !important;
    padding: 0.85rem 1rem !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 0.65rem !important;
    transition: all 0.2s ease !important;
}

.m-store-cat-card:hover {
    border-color: #cbd5e1 !important;
    background: #ffffff !important;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.05) !important;
}

.m-store-cat-meta {
    display: flex !important;
    align-items: center !important;
    gap: 0.75rem !important;
    min-width: 0 !important;
}

.m-store-cat-icon {
    width: 40px !important;
    height: 40px !important;
    border-radius: 10px !important;
    background: transparent !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 1.75rem !important;
    line-height: 1 !important;
    flex-shrink: 0 !important;
}

.m-store-cat-icon .cat-emoji {
    font-size: 1.75rem !important;
    line-height: 1 !important;
}

.m-store-cat-name {
    font-size: 0.88rem !important;
    font-weight: 700 !important;
    color: #0f172a !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}

.m-store-cat-tag {
    font-size: 0.72rem !important;
    color: #64748b !important;
    display: block !important;
}

.m-store-cat-actions {
    display: flex !important;
    align-items: center !important;
    gap: 0.35rem !important;
    flex-shrink: 0 !important;
}

/* Schedule Days Grid */
.m-days-checkboxes {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(115px, 1fr)) !important;
    gap: 0.55rem !important;
    margin-top: 0.35rem !important;
}

.m-check-chip {
    display: flex !important;
    align-items: center !important;
    gap: 0.45rem !important;
    font-size: 0.85rem !important;
    font-weight: 600 !important;
    color: #334155 !important;
    cursor: pointer !important;
    background: #f8fafc !important;
    border: 1.5px solid #e2e8f0 !important;
    border-radius: 10px !important;
    padding: 0.5rem 0.75rem !important;
    transition: all 0.15s ease !important;
}

.m-check-chip:has(input:checked) {
    background: #eff6ff !important;
    border-color: #93c5fd !important;
    color: #1d4ed8 !important;
}

/* ---------------- MERCHANT PORTAL AUTO-HIDE SIDEBAR DRAWER & HAMBURGER SYSTEM ---------------- */
.m-portal-drawer-backdrop {
    position: fixed !important;
    inset: 0 !important;
    background: rgba(15, 23, 42, 0.45) !important;
    backdrop-filter: blur(4px) !important;
    z-index: 1000 !important;
    opacity: 0 !important;
    pointer-events: none !important;
    transition: opacity 0.25s ease !important;
}

.m-portal-drawer-backdrop.active {
    opacity: 1 !important;
    pointer-events: auto !important;
}

.m-portal-drawer {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    bottom: 0 !important;
    width: 320px !important;
    max-width: 85vw !important;
    background: #ffffff !important;
    box-shadow: 10px 0 35px rgba(15, 23, 42, 0.15) !important;
    z-index: 1001 !important;
    display: flex !important;
    flex-direction: column !important;
    transform: translateX(-105%) !important;
    transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1) !important;
    border-right: 1.5px solid #e2e8f0 !important;
}

.m-portal-drawer.active {
    transform: translateX(0) !important;
}

.m-portal-drawer-header {
    padding: 1.25rem 1.25rem !important;
    border-bottom: 1.5px solid #f1f5f9 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 0.75rem !important;
    background: #f8fafc !important;
}

.m-portal-brand {
    display: flex !important;
    align-items: center !important;
    gap: 0.75rem !important;
    min-width: 0 !important;
}

.m-brand-avatar {
    width: 44px !important;
    height: 44px !important;
    border-radius: 12px !important;
    overflow: hidden !important;
    background: #e2e8f0 !important;
    border: 1.5px solid #cbd5e1 !important;
    flex-shrink: 0 !important;
}

.m-brand-avatar img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
}

.m-brand-text {
    min-width: 0 !important;
}

.m-brand-text h4 {
    margin: 0 !important;
    font-size: 0.95rem !important;
    font-weight: 800 !important;
    color: #0f172a !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}

.m-brand-badge {
    display: inline-block !important;
    font-size: 0.7rem !important;
    font-weight: 700 !important;
    color: #2563eb !important;
    background: #eff6ff !important;
    padding: 0.1rem 0.45rem !important;
    border-radius: 6px !important;
    margin-top: 2px !important;
}

.btn-drawer-close {
    background: transparent !important;
    border: none !important;
    width: 34px !important;
    height: 34px !important;
    border-radius: 8px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: #64748b !important;
    cursor: pointer !important;
    font-size: 1.05rem !important;
    transition: all 0.15s ease !important;
}

.btn-drawer-close:hover {
    background: #fee2e2 !important;
    color: #ef4444 !important;
}

.m-portal-drawer-menu {
    flex: 1 !important;
    overflow-y: auto !important;
    padding: 1rem 0.85rem !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 0.45rem !important;
}

.m-drawer-item {
    background: transparent !important;
    border: 1px solid transparent !important;
    border-radius: 12px !important;
    padding: 0.75rem 0.85rem !important;
    display: flex !important;
    align-items: center !important;
    gap: 0.85rem !important;
    text-align: left !important;
    cursor: pointer !important;
    transition: all 0.15s ease !important;
    font-family: inherit !important;
    width: 100% !important;
}

.m-drawer-item:hover {
    background: #f8fafc !important;
    border-color: #e2e8f0 !important;
}

.m-drawer-item-icon {
    width: 38px !important;
    height: 38px !important;
    border-radius: 10px !important;
    background: #f1f5f9 !important;
    color: #475569 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 1.05rem !important;
    flex-shrink: 0 !important;
    transition: all 0.15s ease !important;
}

.m-drawer-item-content {
    display: flex !important;
    flex-direction: column !important;
    min-width: 0 !important;
}

.m-drawer-item-title {
    font-size: 0.9rem !important;
    font-weight: 700 !important;
    color: #1e293b !important;
    transition: color 0.15s ease !important;
}

.m-drawer-item-sub {
    font-size: 0.72rem !important;
    color: #64748b !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}

.m-drawer-item.active {
    background: #eff6ff !important;
    border-color: #bfdbfe !important;
}

.m-drawer-item.active .m-drawer-item-icon {
    background: #2563eb !important;
    color: #ffffff !important;
    box-shadow: 0 4px 10px rgba(37, 99, 235, 0.25) !important;
}

.m-drawer-item.active .m-drawer-item-title {
    color: #1d4ed8 !important;
}

.m-portal-drawer-footer {
    padding: 1rem 0.85rem !important;
    border-top: 1.5px solid #f1f5f9 !important;
    background: #ffffff !important;
}

.btn-drawer-exit {
    width: 100% !important;
    padding: 0.75rem 1rem !important;
    background: #f8fafc !important;
    border: 1.5px solid #e2e8f0 !important;
    border-radius: 12px !important;
    color: #475569 !important;
    font-size: 0.85rem !important;
    font-weight: 700 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0.65rem !important;
    cursor: pointer !important;
    transition: all 0.15s ease !important;
    font-family: inherit !important;
}

.btn-drawer-exit:hover {
    background: #fee2e2 !important;
    border-color: #fca5a5 !important;
    color: #dc2626 !important;
}

/* Floating Topbar with Hamburger */
.m-portal-floating-topbar {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 0.85rem !important;
    padding: 0.85rem 1.5rem !important;
    background: #ffffff !important;
    border-bottom: 1.5px solid #e2e8f0 !important;
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.03) !important;
    flex-shrink: 0 !important;
    z-index: 50 !important;
}

.m-hamburger-btn {
    background: #f1f5f9 !important;
    border: 1.5px solid #cbd5e1 !important;
    color: #0f172a !important;
    padding: 0.45rem 0.85rem !important;
    border-radius: 10px !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 0.55rem !important;
    cursor: pointer !important;
    font-family: inherit !important;
    font-size: 0.85rem !important;
    font-weight: 700 !important;
    transition: all 0.15s ease !important;
}

.m-hamburger-btn:hover {
    background: #e2e8f0 !important;
    border-color: #94a3b8 !important;
    transform: translateY(-1px) !important;
}

.m-hamburger-btn i {
    font-size: 1rem !important;
    color: #2563eb !important;
}

.m-portal-active-tab-title {
    display: inline-flex !important;
    align-items: center !important;
    gap: 0.45rem !important;
    font-size: 0.95rem !important;
    font-weight: 800 !important;
    color: #334155 !important;
    padding-left: 0.5rem !important;
    border-left: 1.5px solid #e2e8f0 !important;
}

.m-portal-active-tab-title i {
    color: #2563eb !important;
}

/* 2. Scrollable Body & Tab Panels */
.m-portal-body {
    flex: 1 !important;
    overflow-y: auto !important;
    padding: 2rem !important;
    padding-bottom: 3rem !important;
    background: #f8fafc !important;
    scrollbar-width: thin !important;
    scrollbar-color: #cbd5e1 transparent !important;
}

/* ================= 1. TAB 1: LISTING IMAGES GALLERY ================= */
.m-gallery-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)) !important;
    gap: 1.25rem !important;
    margin-top: 1rem !important;
}

.m-gallery-card {
    background: #ffffff !important;
    border: 1.5px solid #e2e8f0 !important;
    border-radius: 14px !important;
    overflow: hidden !important;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.04) !important;
    display: flex !important;
    flex-direction: column !important;
    transition: transform 0.15s ease, box-shadow 0.15s ease !important;
}

.m-gallery-card.is-primary {
    border-color: #3b82f6 !important;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.25), 0 6px 18px rgba(15, 23, 42, 0.06) !important;
}

.m-gallery-img-box {
    position: relative !important;
    width: 100% !important;
    height: 140px !important;
    background: #f1f5f9 !important;
}

.m-gallery-img-box img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
}

.m-gallery-primary-chip {
    position: absolute !important;
    top: 8px !important;
    left: 8px !important;
    background: rgba(15, 23, 42, 0.85) !important;
    color: #facc15 !important;
    font-size: 0.7rem !important;
    font-weight: 800 !important;
    padding: 0.2rem 0.55rem !important;
    border-radius: 999px !important;
    backdrop-filter: blur(4px) !important;
}

.m-gallery-actions {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 0.65rem 0.85rem !important;
    background: #ffffff !important;
    border-top: 1px solid #f1f5f9 !important;
}

.btn-gallery-action {
    background: #f1f5f9 !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 8px !important;
    padding: 0.35rem 0.65rem !important;
    font-size: 0.75rem !important;
    font-weight: 700 !important;
    color: #475569 !important;
    cursor: pointer !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 0.35rem !important;
    transition: all 0.15s ease !important;
}

.btn-gallery-action:hover {
    background: #e2e8f0 !important;
    color: #0f172a !important;
}

.btn-gallery-action.del {
    color: #ef4444 !important;
    padding: 0.35rem 0.55rem !important;
}

.btn-gallery-action.del:hover {
    background: #fee2e2 !important;
    border-color: #fca5a5 !important;
}

/* ================= 4. TAB 4: PRODUCTS & SERVICES MULTI-IMAGES & STOCK ================= */
.m-catalog-filter-bar {
    display: flex !important;
    align-items: center !important;
    gap: 0.75rem !important;
    padding: 0.75rem 0 !important;
    overflow-x: auto !important;
    scrollbar-width: none !important;
}

.m-filter-chips {
    display: flex !important;
    align-items: center !important;
    gap: 0.45rem !important;
    flex-wrap: nowrap !important;
}

.m-filter-chip {
    background: #ffffff !important;
    border: 1.5px solid #e2e8f0 !important;
    border-radius: 999px !important;
    padding: 0.35rem 0.85rem !important;
    font-size: 0.8rem !important;
    font-weight: 700 !important;
    color: #475569 !important;
    cursor: pointer !important;
    white-space: nowrap !important;
    transition: all 0.15s ease !important;
}

.m-filter-chip:hover {
    background: #f1f5f9 !important;
    color: #0f172a !important;
}

.m-filter-chip.active {
    background: #2563eb !important;
    color: #ffffff !important;
    border-color: #2563eb !important;
}

.m-cat-card-thumb-wrap {
    position: relative !important;
    width: 60px !important;
    height: 60px !important;
    flex-shrink: 0 !important;
    border-radius: 12px !important;
    overflow: hidden !important;
}

.m-cat-card-thumb {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
}

.m-cat-img-count-badge {
    position: absolute !important;
    bottom: 3px !important;
    right: 3px !important;
    background: rgba(15, 23, 42, 0.85) !important;
    color: #ffffff !important;
    font-size: 0.62rem !important;
    font-weight: 800 !important;
    padding: 0.1rem 0.35rem !important;
    border-radius: 6px !important;
}

.m-cat-card-price-row {
    display: flex !important;
    align-items: center !important;
    gap: 0.55rem !important;
    margin-top: 2px !important;
}

.m-stock-pill {
    font-size: 0.68rem !important;
    font-weight: 800 !important;
    padding: 0.12rem 0.5rem !important;
    border-radius: 999px !important;
}

.m-stock-pill.in {
    background: #dcfce7 !important;
    color: #15803d !important;
    border: 1px solid #bbf7d0 !important;
}

.m-stock-pill.out {
    background: #fee2e2 !important;
    color: #b91c1c !important;
    border: 1px solid #fecaca !important;
}

.m-cat-card-cat-tag {
    font-size: 0.72rem !important;
    color: #64748b !important;
    display: block !important;
    margin-top: 3px !important;
}

.m-multi-img-preview-row {
    display: flex !important;
    gap: 0.55rem !important;
    flex-wrap: wrap !important;
    margin-top: 0.55rem !important;
}

.m-modal-thumb-item {
    position: relative !important;
    width: 70px !important;
    height: 70px !important;
    border-radius: 10px !important;
    overflow: hidden !important;
    border: 1.5px solid #cbd5e1 !important;
}

.m-modal-thumb-item img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
}

.m-modal-thumb-item.is-first {
    border-color: #3b82f6 !important;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.3) !important;
}

.thumb-badge {
    position: absolute !important;
    bottom: 2px !important;
    left: 2px !important;
    background: rgba(37, 99, 235, 0.9) !important;
    color: #ffffff !important;
    font-size: 0.55rem !important;
    font-weight: 800 !important;
    padding: 0.1rem 0.25rem !important;
    border-radius: 4px !important;
}

.btn-thumb-remove {
    position: absolute !important;
    top: 2px !important;
    right: 2px !important;
    background: rgba(239, 68, 68, 0.9) !important;
    color: #ffffff !important;
    border: none !important;
    width: 18px !important;
    height: 18px !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 0.65rem !important;
    cursor: pointer !important;
}

/* Product Preview Modal Carousel */
.m-prev-modal-body {
    padding: 1.25rem !important;
}

.m-prev-slider-wrap {
    position: relative !important;
    background: #0f172a !important;
    border-radius: 14px !important;
    overflow: hidden !important;
}

.m-prev-slider-track {
    display: flex !important;
    overflow-x: auto !important;
    scroll-snap-type: x mandatory !important;
    scrollbar-width: none !important;
}

.m-prev-slide-item {
    flex: 0 0 100% !important;
    scroll-snap-align: center !important;
    height: 280px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.m-prev-slide-item img {
    max-width: 100% !important;
    max-height: 100% !important;
    object-fit: contain !important;
}

.m-prev-slider-dots {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0.35rem !important;
    padding: 0.65rem 0 !important;
    background: #0f172a !important;
}

.m-prev-dot {
    width: 7px !important;
    height: 7px !important;
    border-radius: 50% !important;
    background: rgba(255, 255, 255, 0.35) !important;
}

.m-prev-dot.active {
    width: 18px !important;
    border-radius: 999px !important;
    background: #ffffff !important;
}

.m-prev-meta {
    padding: 1rem 0.25rem 0.25rem 0.25rem !important;
}

.m-prev-price-row {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
}

.m-prev-price {
    font-size: 1.45rem !important;
    font-weight: 800 !important;
    color: #1e293b !important;
}

.m-prev-stock-badge {
    font-size: 0.78rem !important;
    font-weight: 800 !important;
    padding: 0.25rem 0.75rem !important;
    border-radius: 999px !important;
}

.m-prev-stock-badge.in {
    background: #dcfce7 !important;
    color: #15803d !important;
}

.m-prev-stock-badge.out {
    background: #fee2e2 !important;
    color: #b91c1c !important;
}

.m-prev-name {
    margin: 0.5rem 0 0.35rem 0 !important;
    font-size: 1.15rem !important;
    font-weight: 800 !important;
    color: #0f172a !important;
}

.m-prev-desc {
    margin: 0 !important;
    font-size: 0.85rem !important;
    color: #475569 !important;
    line-height: 1.5 !important;
}

/* ================= 5. TAB 5: BANNERS (16:9) ================= */
.m-banner-16-9-card {
    position: relative !important;
    aspect-ratio: 16 / 9 !important;
    border-radius: 14px !important;
    overflow: hidden !important;
    border: 1.5px solid #e2e8f0 !important;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.06) !important;
}

.m-banner-16-9-img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
}

.m-banner-16-9-overlay {
    position: absolute !important;
    inset: 0 !important;
    background: linear-gradient(to top, rgba(15, 23, 42, 0.85) 0%, transparent 60%) !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    padding: 0.85rem !important;
}

.m-banner-16-9-badge {
    align-self: flex-start !important;
    background: rgba(255, 255, 255, 0.9) !important;
    color: #0f172a !important;
    font-size: 0.7rem !important;
    font-weight: 800 !important;
    padding: 0.2rem 0.55rem !important;
    border-radius: 6px !important;
}

/* ================= 6. TAB 6: SCHEDULE (DAILY OPEN/CLOSE) ================= */
.m-daily-schedule-list {
    display: flex !important;
    flex-direction: column !important;
    gap: 0.65rem !important;
    margin-top: 1rem !important;
}

.m-day-schedule-row {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    background: #ffffff !important;
    border: 1.5px solid #e2e8f0 !important;
    border-radius: 12px !important;
    padding: 0.75rem 1rem !important;
    transition: all 0.15s ease !important;
    gap: 1rem !important;
    flex-wrap: wrap !important;
}

.m-day-schedule-row.is-closed {
    background: #f8fafc !important;
    border-color: #f1f5f9 !important;
}

.m-day-toggle-col {
    display: flex !important;
    align-items: center !important;
    gap: 0.75rem !important;
    min-width: 160px !important;
}

.m-switch-wrap {
    position: relative !important;
    display: inline-block !important;
    width: 42px !important;
    height: 24px !important;
    flex-shrink: 0 !important;
}

.m-switch-wrap input {
    opacity: 0 !important;
    width: 0 !important;
    height: 0 !important;
}

.m-switch-slider {
    position: absolute !important;
    cursor: pointer !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    background-color: #cbd5e1 !important;
    transition: .2s !important;
    border-radius: 24px !important;
}

.m-switch-slider:before {
    position: absolute !important;
    content: "" !important;
    height: 18px !important;
    width: 18px !important;
    left: 3px !important;
    bottom: 3px !important;
    background-color: white !important;
    transition: .2s !important;
    border-radius: 50% !important;
}

.m-switch-wrap input:checked + .m-switch-slider {
    background-color: #2563eb !important;
}

.m-switch-wrap input:checked + .m-switch-slider:before {
    transform: translateX(18px) !important;
}

.m-day-name {
    font-size: 0.92rem !important;
    font-weight: 700 !important;
    color: #1e293b !important;
}

.m-day-status-pill {
    font-size: 0.68rem !important;
    font-weight: 800 !important;
    padding: 0.15rem 0.5rem !important;
    border-radius: 999px !important;
}

.m-day-status-pill.open {
    background: #dcfce7 !important;
    color: #15803d !important;
}

.m-day-status-pill.closed {
    background: #fee2e2 !important;
    color: #b91c1c !important;
}

.m-day-times-col {
    display: flex !important;
    align-items: center !important;
    gap: 0.55rem !important;
    flex-wrap: wrap !important;
}

.m-time-picker-group {
    display: flex !important;
    align-items: center !important;
    gap: 0.35rem !important;
    background: #f8fafc !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 8px !important;
    padding: 0.25rem 0.5rem !important;
}

.m-time-lbl {
    font-size: 0.72rem !important;
    font-weight: 700 !important;
    color: #64748b !important;
}

.m-time-input {
    width: 58px !important;
    border: none !important;
    background: transparent !important;
    font-size: 0.85rem !important;
    font-weight: 700 !important;
    color: #0f172a !important;
    padding: 0.15rem !important;
    text-align: center !important;
}

.m-time-input:focus {
    outline: none !important;
}

.m-ampm-select {
    border: none !important;
    background: #e2e8f0 !important;
    font-size: 0.75rem !important;
    font-weight: 800 !important;
    color: #1e293b !important;
    border-radius: 6px !important;
    padding: 0.2rem 0.35rem !important;
    cursor: pointer !important;
}

.m-time-divider {
    font-size: 0.78rem !important;
    font-weight: 700 !important;
    color: #94a3b8 !important;
}

/* ================= 7. TAB 7: INBOX (CHAT THREADS & REPLIES) ================= */
.m-inbox-layout {
    display: flex !important;
    height: 70vh !important;
    min-height: 480px !important;
    background: #ffffff !important;
    border: 1.5px solid #e2e8f0 !important;
    border-radius: 16px !important;
    overflow: hidden !important;
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.04) !important;
}

.m-inbox-sidebar {
    width: 340px !important;
    max-width: 35% !important;
    border-right: 1.5px solid #e2e8f0 !important;
    display: flex !important;
    flex-direction: column !important;
    background: #f8fafc !important;
}

.m-inbox-search {
    padding: 0.85rem !important;
    border-bottom: 1.5px solid #e2e8f0 !important;
    position: relative !important;
    display: flex !important;
    align-items: center !important;
}

.m-inbox-search i {
    position: absolute !important;
    left: 1.35rem !important;
    color: #94a3b8 !important;
    font-size: 0.85rem !important;
}

.m-inbox-search input {
    width: 100% !important;
    padding: 0.55rem 0.85rem 0.55rem 2.2rem !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 10px !important;
    font-size: 0.82rem !important;
    background: #ffffff !important;
}

.m-inbox-threads {
    flex: 1 !important;
    overflow-y: auto !important;
}

.m-inbox-thread-item {
    display: flex !important;
    align-items: center !important;
    gap: 0.75rem !important;
    padding: 0.85rem 1rem !important;
    border-bottom: 1px solid #f1f5f9 !important;
    cursor: pointer !important;
    transition: background 0.15s ease !important;
}

.m-inbox-thread-item:hover {
    background: #ffffff !important;
}

.m-inbox-thread-item.active {
    background: #eff6ff !important;
    border-left: 3px solid #2563eb !important;
}

.m-inbox-thread-item.unread .m-thread-name {
    font-weight: 800 !important;
    color: #0f172a !important;
}

.m-inbox-thread-item.unread .m-thread-last-msg {
    font-weight: 700 !important;
    color: #1e293b !important;
}

.m-thread-avatar {
    width: 42px !important;
    height: 42px !important;
    border-radius: 12px !important;
    background: #e2e8f0 !important;
    color: #334155 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-weight: 800 !important;
    font-size: 1.05rem !important;
    flex-shrink: 0 !important;
}

.m-thread-info {
    flex: 1 !important;
    min-width: 0 !important;
}

.m-thread-top {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    margin-bottom: 2px !important;
}

.m-thread-name {
    font-size: 0.88rem !important;
    font-weight: 700 !important;
    color: #334155 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}

.m-thread-time {
    font-size: 0.7rem !important;
    color: #94a3b8 !important;
}

.m-thread-last-msg {
    margin: 0 !important;
    font-size: 0.78rem !important;
    color: #64748b !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}

.m-inbox-main {
    flex: 1 !important;
    display: flex !important;
    flex-direction: column !important;
    background: #ffffff !important;
}

.m-inbox-empty-state {
    flex: 1 !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 2rem !important;
    color: #94a3b8 !important;
    text-align: center !important;
}

.m-inbox-empty-state i {
    font-size: 3rem !important;
    margin-bottom: 0.75rem !important;
    color: #cbd5e1 !important;
}

.m-inbox-empty-state h4 {
    margin: 0 0 0.35rem 0 !important;
    font-size: 1.05rem !important;
    color: #334155 !important;
    font-weight: 700 !important;
}

.m-inbox-empty-state p {
    margin: 0 !important;
    font-size: 0.82rem !important;
    color: #64748b !important;
    max-width: 320px !important;
}

.m-inbox-chat-panel {
    display: flex !important;
    flex-direction: column !important;
    height: 100% !important;
}

.m-inbox-chat-header {
    padding: 0.85rem 1.25rem !important;
    border-bottom: 1.5px solid #f1f5f9 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    background: #ffffff !important;
}

.m-chat-user-info {
    display: flex !important;
    align-items: center !important;
    gap: 0.75rem !important;
}

.m-chat-user-avatar {
    width: 38px !important;
    height: 38px !important;
    border-radius: 10px !important;
    background: #eff6ff !important;
    color: #2563eb !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-weight: 800 !important;
}

.m-chat-user-info h4 {
    margin: 0 !important;
    font-size: 0.95rem !important;
    font-weight: 800 !important;
    color: #0f172a !important;
}

.m-chat-status {
    font-size: 0.72rem !important;
    color: #16a34a !important;
}

.m-inbox-chat-messages {
    flex: 1 !important;
    overflow-y: auto !important;
    padding: 1.25rem !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 0.75rem !important;
    background: #f8fafc !important;
}

.m-chat-bubble-row {
    display: flex !important;
}

.m-chat-bubble-row.incoming {
    justify-content: flex-start !important;
}

.m-chat-bubble-row.outgoing {
    justify-content: flex-end !important;
}

.m-chat-bubble {
    max-width: 70% !important;
    padding: 0.75rem 1rem !important;
    border-radius: 14px !important;
    font-size: 0.85rem !important;
    line-height: 1.45 !important;
    position: relative !important;
}

.m-chat-bubble-row.incoming .m-chat-bubble {
    background: #ffffff !important;
    color: #1e293b !important;
    border: 1px solid #e2e8f0 !important;
    border-bottom-left-radius: 3px !important;
}

.m-chat-bubble-row.outgoing .m-chat-bubble {
    background: #2563eb !important;
    color: #ffffff !important;
    border-bottom-right-radius: 3px !important;
}

.m-bubble-time {
    display: block !important;
    font-size: 0.65rem !important;
    margin-top: 0.35rem !important;
    opacity: 0.75 !important;
    text-align: right !important;
}

.m-inbox-reply-bar {
    padding: 0.85rem 1.25rem !important;
    border-top: 1.5px solid #e2e8f0 !important;
    background: #ffffff !important;
    display: flex !important;
    align-items: center !important;
    gap: 0.65rem !important;
}

.m-inbox-reply-bar input {
    flex: 1 !important;
    padding: 0.65rem 1rem !important;
    border: 1.5px solid #cbd5e1 !important;
    border-radius: 12px !important;
    font-size: 0.85rem !important;
}

@media (max-width: 768px) {
    .m-inbox-layout {
        flex-direction: column !important;
        height: auto !important;
    }
    .m-inbox-sidebar {
        width: 100% !important;
        max-width: 100% !important;
        height: 220px !important;
    }
    .m-inbox-main {
        min-height: 380px !important;
    }
}

.m-mob-nav-item.active span {
    font-weight: 800 !important;
    color: #2563eb !important;
}

/* ================= NESTED SUBMODALS (POPUPS INSIDE PORTAL) ================= */
.m-submodal-overlay {
    display: none;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    background: rgba(15, 23, 42, 0.8) !important;
    backdrop-filter: blur(6px) !important;
    -webkit-backdrop-filter: blur(6px) !important;
    z-index: 99999 !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 1rem !important;
    box-sizing: border-box !important;
    animation: mPortalFadeIn 0.2s ease !important;
}

.m-submodal-overlay.active {
    display: flex !important;
}

.m-submodal-card {
    background: #ffffff !important;
    border-radius: 20px !important;
    width: 100% !important;
    max-width: 480px !important;
    max-height: 90vh !important;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.3) !important;
    overflow: hidden !important;
    display: flex !important;
    flex-direction: column !important;
    animation: mPortalPop 0.22s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.m-submodal-header {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 1.15rem 1.4rem !important;
    border-bottom: 1px solid #e2e8f0 !important;
}

.m-submodal-header h4 {
    margin: 0 !important;
    font-size: 1.05rem !important;
    font-weight: 800 !important;
    color: #0f172a !important;
    display: flex !important;
    align-items: center !important;
    gap: 0.5rem !important;
}

.btn-submodal-close {
    background: none !important;
    border: none !important;
    color: #94a3b8 !important;
    font-size: 1.15rem !important;
    cursor: pointer !important;
    transition: color 0.15s ease !important;
}

.btn-submodal-close:hover {
    color: #0f172a !important;
}

.m-submodal-card form {
    padding: 1.35rem 1.4rem !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 1rem !important;
    overflow-y: auto !important;
}

.m-submodal-upload {
    border: 1.5px dashed #cbd5e1 !important;
    border-radius: 12px !important;
    padding: 1rem !important;
    text-align: center !important;
    background: #f8fafc !important;
    cursor: pointer !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 90px !important;
    transition: all 0.2s ease !important;
}

.m-submodal-upload:hover {
    background: #eff6ff !important;
    border-color: #2563eb !important;
}

#pCatItemPlaceholder,
#pBannerPlaceholder {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0.4rem !important;
    color: #64748b !important;
    font-size: 0.85rem !important;
    font-weight: 600 !important;
}

#pCatItemPlaceholder i,
#pBannerPlaceholder i {
    font-size: 1.8rem !important;
    color: #2563eb !important;
    margin-bottom: 0.2rem !important;
}

.m-submodal-actions {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 0.75rem !important;
    margin-top: 0.5rem !important;
    padding-top: 0.75rem !important;
    border-top: 1px solid #f1f5f9 !important;
}

.btn-submodal-cancel {
    padding: 0.65rem 1.25rem !important;
    border-radius: 12px !important;
    background: #f1f5f9 !important;
    border: 1px solid #cbd5e1 !important;
    color: #475569 !important;
    font-size: 0.85rem !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    transition: all 0.15s ease !important;
}

.btn-submodal-cancel:hover {
    background: #e2e8f0 !important;
    color: #0f172a !important;
}

/* ================= RESPONSIVE BEHAVIOR (DESKTOP VS MOBILE) ================= */
@media (max-width: 820px) {
    .m-portal-overlay {
        padding: 0 !important;
    }

    .m-portal-window {
        width: 100vw !important;
        height: 100vh !important;
        max-width: 100vw !important;
        max-height: 100vh !important;
        border-radius: 0 !important;
    }

    .m-portal-body {
        padding: 1rem !important;
        padding-bottom: 2.5rem !important;
    }

    .m-metrics-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    .m-quick-hub-grid {
        grid-template-columns: 1fr !important;
    }

    .m-form-grid {
        grid-template-columns: 1fr !important;
    }

    .m-field.span-2 {
        grid-column: span 1 !important;
    }

    .m-catalog-grid {
        grid-template-columns: 1fr !important;
    }

    .m-banners-grid {
        grid-template-columns: 1fr !important;
    }
}

/* ========================================================
   ADD / EDIT LISTING STEP-BY-STEP PROGRESS BAR & ACTIONS (SMOOTH HORIZONTAL SLIDE)
======================================================== */
.listing-steps-bar {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.75rem 1.25rem;
    background: #f8fafc;
    border-bottom: 1.5px solid var(--slate-200);
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
    position: relative;
}

.listing-steps-bar::-webkit-scrollbar {
    display: none;
}

.step-nav-pill {
    background: #ffffff;
    border: 1px solid var(--slate-200);
    padding: 0.6rem 1.15rem;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    outline: none;
    flex-shrink: 0;
    white-space: nowrap;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
}

.step-nav-pill .step-num {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--slate-200);
    color: var(--slate-700);
    font-size: 0.74rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    flex-shrink: 0;
}

.step-nav-pill .step-lbl {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--slate-600);
    white-space: nowrap;
}

.step-nav-pill:hover {
    border-color: var(--slate-300);
    background: #f1f5f9;
}

.step-nav-pill.active {
    background: #eff6ff;
    border-color: #93c5fd;
    box-shadow: 0 2px 8px rgba(2, 132, 199, 0.12);
}

.step-nav-pill.active .step-num {
    background: var(--brand-blue);
    color: #ffffff;
}

.step-nav-pill.active .step-lbl {
    color: var(--brand-blue);
    font-weight: 800;
}

.step-nav-pill.completed .step-num {
    background: #16a34a;
    color: #ffffff;
}

@media (max-width: 520px) {
    .listing-steps-bar {
        padding: 0.65rem 1rem;
        gap: 0.5rem;
    }
    .step-nav-pill {
        padding: 0.5rem 0.95rem;
    }
    .step-nav-pill .step-lbl {
        font-size: 0.76rem;
    }
}

/* ========================================================
   MULTIPLE IMAGES UPLOAD GRID & DOCTOR CHAMBER CARDS
======================================================== */
/* Compact Fixed Photo Picker Component */
.compact-photo-picker-box {
    margin-bottom: 1.25rem;
    border-radius: 14px;
    border: 1.5px solid #e2e8f0;
    background: #ffffff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    overflow: hidden;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.compact-photo-picker-box:hover {
    border-color: #cbd5e1;
}

.compact-photo-top-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.85rem 1.15rem;
    gap: 1rem;
    background: #ffffff;
    border-bottom: 1px solid #f1f5f9;
}

.compact-photo-title-wrap {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    flex: 1;
    min-width: 0;
}

.compact-photo-icon-badge {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: #eff6ff;
    color: var(--brand-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    flex-shrink: 0;
    border: 1px solid #dbeafe;
    transition: all 0.2s ease;
}

.compact-photo-icon-badge.has-photos {
    background: #ecfdf5;
    color: #059669;
    border-color: #a7f3d0;
}

.compact-photo-title-row {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    flex-wrap: wrap;
}

.compact-photo-title {
    font-size: 0.96rem;
    font-weight: 800;
    color: var(--slate-900);
    margin: 0;
}

.compact-photo-count-pill {
    font-size: 0.72rem;
    font-weight: 700;
    padding: 0.15rem 0.55rem;
    border-radius: 999px;
    background: #f1f5f9;
    color: #64748b;
    letter-spacing: 0.2px;
    transition: all 0.2s ease;
}

.compact-photo-count-pill.has-photos {
    background: #e0f2fe;
    color: #0284c7;
    font-weight: 800;
}

.compact-photo-sub {
    font-size: 0.76rem;
    color: var(--slate-500);
    margin: 0.15rem 0 0 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.btn-compact-view-photos {
    padding: 0.42rem 0.85rem;
    border-radius: 999px;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    color: #1d4ed8;
    font-size: 0.78rem;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    flex-shrink: 0;
    transition: all 0.2s ease;
}

.btn-compact-view-photos:hover {
    background: #dbeafe;
    border-color: #93c5fd;
    color: #1e40af;
}

.compact-photo-action-bar {
    padding: 0.75rem 1.15rem;
    background: #f8fafc;
}

.btn-compact-add-photo {
    width: 100%;
    padding: 0.65rem 1rem;
    border-radius: 10px;
    background: #ffffff;
    border: 1.5px dashed #94a3b8;
    color: var(--slate-700);
    font-size: 0.84rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.2s ease;
}

.btn-compact-add-photo:hover {
    background: #eff6ff;
    border-color: var(--brand-blue);
    color: var(--brand-blue);
}

.drawer-arrow {
    font-size: 0.7rem;
    transition: transform 0.2s ease;
}

.drawer-arrow.rotated {
    transform: rotate(180deg);
}

/* Collapsible drawer container */
.compact-photo-drawer {
    border-top: 1px solid #f1f5f9;
    background: #fafafa;
    padding: 0.9rem 1.15rem;
}

.drawer-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--slate-600);
    margin-bottom: 0.75rem;
}

.btn-drawer-add-more {
    background: none;
    border: none;
    color: var(--brand-blue);
    font-size: 0.78rem;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.2rem 0.5rem;
    border-radius: 6px;
}

.btn-drawer-add-more:hover {
    background: #eff6ff;
}

/* Scrollable thumbnails row/grid with fixed height */
.compact-thumbnails-scroll {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    overflow-x: auto;
    padding-bottom: 0.4rem;
    scrollbar-width: thin;
}

.compact-thumbnails-scroll::-webkit-scrollbar {
    height: 5px;
}

.compact-thumbnails-scroll::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 10px;
}

.multi-img-item {
    position: relative;
    width: 90px;
    height: 90px;
    flex-shrink: 0;
    border-radius: 10px;
    overflow: hidden;
    background: #e2e8f0;
    border: 1px solid var(--slate-200);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
}

.multi-img-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.btn-remove-multi-img {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: rgba(220, 38, 38, 0.92);
    color: #ffffff;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.65rem;
    transition: transform 0.15s ease;
}

.btn-remove-multi-img:hover {
    transform: scale(1.15);
    background: #b91c1c;
}

.primary-badge-tag {
    position: absolute;
    bottom: 4px;
    left: 4px;
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(4px);
    color: #ffffff;
    font-size: 0.58rem;
    font-weight: 800;
    padding: 0.12rem 0.38rem;
    border-radius: 4px;
    text-transform: uppercase;
}

/* Doctor Chamber Cards */
.section-sub-desc {
    font-size: 0.82rem;
    color: var(--slate-500);
    margin: -0.35rem 0 1rem 0;
}

.doctors-list-wrap {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.doctor-chamber-card {
    background: #f8fafc;
    border: 1.5px solid #e2e8f0;
    border-left: 4px solid var(--brand-blue);
    border-radius: 14px;
    padding: 1.15rem;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    position: relative;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
}

.doctor-card-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
}

.btn-remove-doc {
    align-self: flex-end;
    background: #fee2e2;
    border: 1px solid #fecaca;
    color: #dc2626;
    padding: 0.35rem 0.85rem;
    border-radius: 6px;
    font-size: 0.78rem;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    transition: all 0.15s ease;
}

.btn-remove-doc:hover {
    background: #dc2626;
    color: #ffffff;
}

@media (max-width: 600px) {
    .doctor-card-grid {
        grid-template-columns: 1fr;
    }
}

/* ========================================================
   PREMIUM ENTERPRISE MODAL ALERT (MNC STYLE NOTIFICATION)
======================================================== */
.lb-alert-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.65);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.25rem;
    animation: lbAlertFadeIn 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

.lb-alert-card {
    background: #ffffff;
    width: 100%;
    max-width: 440px;
    border-radius: 22px;
    padding: 2rem 1.75rem 1.6rem 1.75rem;
    box-shadow: 0 25px 60px -15px rgba(15, 23, 42, 0.35), 0 0 0 1px rgba(226, 232, 240, 0.8);
    text-align: center;
    position: relative;
    transform: scale(0.94);
    animation: lbAlertPop 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes lbAlertFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes lbAlertPop {
    from {
        opacity: 0;
        transform: scale(0.92) translateY(12px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.lb-alert-icon-wrap {
    width: 66px;
    height: 66px;
    margin: 0 auto 1.25rem auto;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.85rem;
    transition: all 0.2s ease;
}

/* Alert Themes */
.lb-alert-icon-wrap.warning {
    background: #fef3c7;
    color: #d97706;
    box-shadow: 0 0 0 8px rgba(254, 243, 199, 0.45);
}

.lb-alert-icon-wrap.error {
    background: #fee2e2;
    color: #dc2626;
    box-shadow: 0 0 0 8px rgba(254, 226, 226, 0.45);
}

.lb-alert-icon-wrap.success {
    background: #dcfce7;
    color: #16a34a;
    box-shadow: 0 0 0 8px rgba(220, 252, 231, 0.45);
}

.lb-alert-icon-wrap.info {
    background: #e0f2fe;
    color: #0284c7;
    box-shadow: 0 0 0 8px rgba(224, 242, 254, 0.45);
}

.lb-alert-title {
    font-size: 1.25rem;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 0.55rem 0;
    letter-spacing: -0.3px;
    line-height: 1.3;
}

.lb-alert-desc {
    font-size: 0.92rem;
    color: #475569;
    line-height: 1.55;
    margin: 0 0 1.6rem 0;
    font-weight: 500;
}

.lb-alert-action-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}

.btn-lb-alert-primary {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    color: #ffffff;
    font-size: 0.94rem;
    font-weight: 700;
    padding: 0.8rem 2rem;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.3);
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    font-family: inherit;
    width: 100%;
}

.btn-lb-alert-primary:hover {
    background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%);
    transform: translateY(-1.5px);
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.4);
}

.btn-lb-alert-primary.warning {
    background: linear-gradient(135deg, #d97706 0%, #b45309 100%);
    box-shadow: 0 4px 14px rgba(217, 119, 6, 0.3);
}

.btn-lb-alert-primary.warning:hover {
    background: linear-gradient(135deg, #b45309 0%, #92400e 100%);
}

.btn-lb-alert-primary.success {
    background: linear-gradient(135deg, #16a34a 0%, #15803d 100%);
    box-shadow: 0 4px 14px rgba(22, 163, 74, 0.3);
}

.btn-lb-alert-primary.success:hover {
    background: linear-gradient(135deg, #15803d 0%, #166534 100%);
}

/* Status Badges in Manage Businesses Card */
.ctrl-badge-status.pending {
    background: #d97706 !important;
    color: #ffffff !important;
    box-shadow: 0 2px 6px rgba(217, 119, 6, 0.38) !important;
}

.ctrl-badge-status.verified {
    background: #059669 !important;
    color: #ffffff !important;
    box-shadow: 0 2px 6px rgba(5, 150, 105, 0.38) !important;
}

.step-action-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem 0 0.5rem 0;
    margin-top: 1.5rem;
    border-top: 1px dashed #e2e8f0;
    gap: 1rem;
}

.btn-step-prev {
    background: #ffffff;
    border: 1.5px solid #cbd5e1;
    color: #334155;
    font-size: 0.88rem;
    font-weight: 700;
    padding: 0.75rem 1.4rem;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    font-family: inherit;
}

.btn-step-prev i {
    font-size: 0.85rem;
    transition: transform 0.2s ease;
}

.btn-step-prev:hover {
    background: #f8fafc;
    border-color: #94a3b8;
    color: #0f172a;
    transform: translateX(-3px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.btn-step-next {
    background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
    border: none;
    color: #ffffff;
    font-size: 0.9rem;
    font-weight: 800;
    padding: 0.75rem 1.6rem;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    cursor: pointer;
    box-shadow: 0 6px 18px rgba(2, 132, 199, 0.28);
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    font-family: inherit;
    letter-spacing: -0.2px;
}

.btn-step-next i {
    font-size: 0.85rem;
    transition: transform 0.2s ease;
}

.btn-step-next:hover {
    background: linear-gradient(135deg, #0369a1 0%, #075985 100%);
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(2, 132, 199, 0.38);
}

.btn-step-next:hover i {
    transform: translateX(4px);
}

.btn-primary-action.btn-large {
    background: linear-gradient(135deg, #16a34a 0%, #15803d 100%);
    border: none;
    color: #ffffff;
    font-size: 0.92rem;
    font-weight: 800;
    padding: 0.78rem 1.75rem;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(22, 163, 74, 0.28);
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    font-family: inherit;
    letter-spacing: -0.2px;
}

.btn-primary-action.btn-large:hover {
    background: linear-gradient(135deg, #15803d 0%, #166534 100%);
    transform: translateY(-2px);
    box-shadow: 0 10px 26px rgba(22, 163, 74, 0.38);
}

@media (max-width: 480px) {
    .step-action-bar {
        gap: 0.65rem;
    }
    .btn-step-prev {
        padding: 0.65rem 1rem;
        font-size: 0.82rem;
    }
    .btn-step-next {
        padding: 0.65rem 1.15rem;
        font-size: 0.84rem;
    }
    .btn-primary-action.btn-large {
        padding: 0.65rem 1.2rem;
        font-size: 0.84rem;
    }
    /* Ensure action button text is always visible on mobile in account listing steps */
    .step-action-bar .btn-primary-action span,
    .step-action-bar .uPublishBtnText {
        display: inline !important;
        font-weight: 700;
        white-space: nowrap;
    }
}

/* Dark mode support */
body.dark-mode .merchant-bottom-nav-bar {
    color: #94a3b8;
}

body.dark-mode .merchant-nav-item.active {
    color: #38bdf8;
}

body.dark-mode .merchant-nav-item.active i,
body.dark-mode .merchant-nav-item.active span {
    color: #38bdf8;
}

.biz-tab-pane {
    display: none;
    animation: fadeInTab 0.2s ease;
}

.biz-tab-pane.active {
    display: block;
}

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

/* KPI Analytics Grid */
.biz-kpi-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.85rem;
    margin-bottom: 1.25rem;
}

.biz-kpi-card {
    background: #ffffff;
    border: 1px solid var(--slate-200);
    border-radius: 14px;
    padding: 0.95rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02);
}

.biz-kpi-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    flex-shrink: 0;
}

.biz-kpi-icon.blue { background: #eff6ff; color: #0284c7; }
.biz-kpi-icon.green { background: #f0fdf4; color: #16a34a; }
.biz-kpi-icon.emerald { background: #ecfdf5; color: #059669; }
.biz-kpi-icon.amber { background: #fffbeb; color: #d97706; }

.biz-kpi-val {
    display: block;
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--slate-900);
    line-height: 1.1;
}

.biz-kpi-lbl {
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--slate-500);
    margin-top: 0.2rem;
    display: block;
}

/* Quick Action Strip */
.biz-quick-action-card {
    background: #f8fafc;
    border: 1px solid var(--slate-200);
    border-radius: 14px;
    padding: 0.95rem 1.15rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.biz-quick-left {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex: 1;
}

.biz-quick-left i {
    font-size: 1.25rem;
    color: var(--brand-blue);
}

.biz-quick-left strong {
    display: block;
    font-size: 0.88rem;
    color: var(--slate-900);
}

.biz-quick-left p {
    margin: 0.15rem 0 0 0;
    font-size: 0.78rem;
    color: var(--slate-500);
}

.btn-biz-primary-sm {
    background: var(--brand-blue);
    color: #ffffff;
    border: none;
    padding: 0.55rem 0.95rem;
    border-radius: 8px;
    font-size: 0.82rem;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    transition: background 0.15s ease;
}

.btn-biz-primary-sm:hover {
    background: #1557b0;
}

/* Catalog Management Panel */
.biz-catalog-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    gap: 0.65rem;
}

.biz-catalog-header h4 {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--slate-900);
    margin: 0;
}

.biz-catalog-header p {
    font-size: 0.78rem;
    color: var(--slate-500);
    margin: 0.15rem 0 0 0;
}

.biz-catalog-list {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.biz-catalog-item-row {
    background: #ffffff;
    border: 1px solid var(--slate-200);
    border-radius: 12px;
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.85rem;
}

.biz-catalog-item-left {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.biz-catalog-thumb {
    width: 44px;
    height: 44px;
    border-radius: 8px;
    object-fit: cover;
    background: #e2e8f0;
}

.biz-catalog-item-name {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--slate-900);
    display: block;
}

.biz-catalog-item-price {
    font-size: 0.78rem;
    font-weight: 700;
    color: #16a34a;
}

/* Timings & Holidays Overview */
.biz-schedule-overview-card {
    background: #ffffff;
    border: 1px solid var(--slate-200);
    border-radius: 16px;
    padding: 1.15rem;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.biz-sched-row {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.biz-sched-lbl {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--slate-500);
    text-transform: uppercase;
    letter-spacing: 0.3px;
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.biz-open-days-chips,
.biz-holidays-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.biz-day-badge {
    background: #eff6ff;
    color: #0369a1;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 0.2rem 0.55rem;
    border-radius: 6px;
    border: 1px solid #bae6fd;
}

.biz-holiday-badge {
    background: #fef2f2;
    color: #b91c1c;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 0.2rem 0.55rem;
    border-radius: 6px;
    border: 1px solid #fecaca;
}

/* Leads & Inquiries List */
.biz-leads-banner {
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: 12px;
    padding: 0.85rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    font-size: 0.84rem;
    color: #1e40af;
}

.biz-leads-list {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.biz-lead-card {
    background: #ffffff;
    border: 1px solid var(--slate-200);
    border-radius: 12px;
    padding: 0.85rem 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.85rem;
}

.biz-lead-left {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.biz-lead-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #e0f2fe;
    color: #0284c7;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.9rem;
}

.biz-lead-name {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--slate-900);
    margin: 0;
}

.biz-lead-meta {
    font-size: 0.74rem;
    color: var(--slate-500);
    margin: 0.15rem 0 0 0;
}

.biz-lead-action {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.45rem 0.75rem;
    border-radius: 8px;
    font-size: 0.78rem;
    font-weight: 700;
    text-decoration: none;
}

.biz-lead-action.wa {
    background: #25d366;
    color: #ffffff;
}

.biz-lead-action.call {
    background: #eff6ff;
    color: #0284c7;
    border: 1px solid #bfdbfe;
}

@media (max-width: 640px) {
    .biz-kpi-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ---------------- Control Panel Header Stats Bar ---------------- */
.ctrl-panel-stats-bar {
    display: grid;
    grid-template-columns: 1fr 1fr auto;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}

.ctrl-stat-card {
    background: #f8fafc;
    border: 1px solid var(--slate-200);
    border-radius: 12px;
    padding: 0.75rem 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.ctrl-stat-num {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--slate-900);
    line-height: 1.1;
}

.ctrl-stat-lbl {
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--slate-500);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 0.2rem;
}

.ctrl-btn-new-listing {
    background: var(--brand-blue);
    color: #ffffff;
    border: none;
    border-radius: 12px;
    padding: 0 1.25rem;
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    box-shadow: 0 4px 12px rgba(26, 115, 232, 0.25);
    transition: background 0.2s;
}

.ctrl-btn-new-listing:hover {
    background: var(--brand-blue-hover);
}

/* ---------------- Empty State ---------------- */
.ctrl-empty-state {
    text-align: center;
    padding: 2.75rem 1.5rem;
    background: #f8fafc;
    border-radius: 16px;
    border: 1px dashed var(--slate-300);
}

.ctrl-empty-state i {
    font-size: 2.5rem;
    color: #cbd5e1;
    display: block;
    margin-bottom: 0.75rem;
}

.ctrl-empty-state strong {
    font-size: 1.05rem;
    color: var(--slate-800);
    display: block;
    margin-bottom: 0.35rem;
}

.ctrl-empty-state span {
    font-size: 0.82rem;
    color: var(--slate-500);
    display: block;
    max-width: 380px;
    margin: 0 auto;
}

/* ---------------- Professional Control Panel Listing Cards ---------------- */
.user-listings-feed-wrap {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.ctrl-listing-card {
    background: #ffffff;
    border: 1px solid var(--slate-200);
    border-radius: 16px;
    padding: 1.1rem 1.25rem;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    position: relative;
}

.ctrl-listing-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.08);
    border-color: #93c5fd;
}

.ctrl-listing-card:hover .ctrl-card-arrow {
    transform: translateX(4px);
    color: #2563eb !important;
}

.ctrl-card-top {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.ctrl-thumb-wrapper {
    position: relative;
    width: 68px;
    height: 68px;
    flex-shrink: 0;
}

.ctrl-listing-thumb {
    width: 100%;
    height: 100%;
    border-radius: 12px;
    object-fit: cover;
    background: #f1f5f9;
    border: 1px solid var(--slate-200);
}

.ctrl-badge-status {
    position: absolute;
    bottom: -6px;
    left: 50%;
    transform: translateX(-50%);
    background: #059669;
    color: #ffffff;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 0.1rem 0.45rem;
    border-radius: 10px;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    box-shadow: 0 2px 4px rgba(5, 150, 105, 0.35);
}

.ctrl-card-details {
    flex: 1;
    min-width: 0;
}

.ctrl-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 0.35rem;
}

.ctrl-listing-title {
    margin: 0;
    font-size: 1.02rem;
    font-weight: 700;
    color: var(--slate-900);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ctrl-cat-tag {
    background: #eff6ff;
    color: #2563eb;
    font-size: 0.72rem;
    font-weight: 600;
    padding: 0.18rem 0.55rem;
    border-radius: 6px;
    white-space: nowrap;
    border: 1px solid #dbeafe;
}

.ctrl-meta-line {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.85rem;
    font-size: 0.8rem;
    color: var(--slate-600);
    margin-bottom: 0.35rem;
}

.ctrl-meta-line span i {
    color: #64748b;
    margin-right: 0.25rem;
}

.ctrl-meta-line span:first-child i {
    color: #ef4444;
}

/* Time in dedicated single line */
.ctrl-timing-line {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.78rem;
    color: #0369a1;
    background: #f0f9ff;
    padding: 0.2rem 0.55rem;
    border-radius: 6px;
    width: fit-content;
    margin-bottom: 0.35rem;
    font-weight: 500;
    border: 1px solid #e0f2fe;
}

.ctrl-timing-line i {
    color: #0284c7;
    font-size: 0.75rem;
}

/* Listing ID in its own professional bottom row */
.ctrl-id-line {
    display: flex;
    align-items: center;
    margin-top: 0.15rem;
}

.ctrl-id-badge {
    background: #f1f5f9;
    color: #64748b;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 0.15rem 0.5rem;
    border-radius: 6px;
    letter-spacing: 0.4px;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    border: 1px solid #e2e8f0;
}

.ctrl-id-badge i {
    font-size: 0.65rem;
    color: #94a3b8;
}

/* Control Panel Actions Bar */
.ctrl-card-actions {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--slate-100);
}

.ctrl-action-btn {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    padding: 0.55rem 0.65rem;
    border-radius: 10px;
    font-size: 0.8rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s;
    border: 1px solid transparent;
}

.ctrl-action-btn.btn-view {
    background: #f8fafc;
    border-color: var(--slate-200);
    color: var(--slate-700);
}

.ctrl-action-btn.btn-view:hover {
    background: #f1f5f9;
    color: var(--brand-blue);
    border-color: #cbd5e1;
}

.ctrl-action-btn.btn-edit {
    background: #eff6ff;
    border-color: #bfdbfe;
    color: #1d4ed8;
}

.ctrl-action-btn.btn-edit:hover {
    background: #2563eb;
    color: #ffffff;
    border-color: #2563eb;
}

.ctrl-action-btn.btn-delete {
    background: #fef2f2;
    border-color: #fecaca;
    color: #dc2626;
    flex: 0 0 auto;
    padding: 0.55rem 0.85rem;
}

.ctrl-action-btn.btn-delete:hover {
    background: #dc2626;
    color: #ffffff;
    border-color: #dc2626;
}

/* Dark Mode Overrides for Control Panel */
body.dark-mode .ctrl-stat-card {
    background: #1e293b;
    border-color: #334155;
}

body.dark-mode .ctrl-stat-num {
    color: #f8fafc;
}

body.dark-mode .ctrl-listing-card {
    background: #0f172a;
    border-color: #1e293b;
}

body.dark-mode .ctrl-listing-title {
    color: #f8fafc;
}

body.dark-mode .ctrl-card-actions {
    border-top-color: #1e293b;
}

body.dark-mode .ctrl-action-btn.btn-view {
    background: #1e293b;
    border-color: #334155;
    color: #cbd5e1;
}

body.dark-mode .ctrl-empty-state {
    background: #1e293b;
    border-color: #334155;
}

/* Mobile Responsive Tweaks for Control Panel */
@media (max-width: 540px) {
    .ctrl-panel-stats-bar {
        grid-template-columns: 1fr 1fr;
    }

    .ctrl-btn-new-listing {
        grid-column: span 2;
        padding: 0.65rem 1rem;
        justify-content: center;
    }

    .ctrl-card-actions {
        flex-wrap: wrap;
    }

    .ctrl-action-btn {
        font-size: 0.78rem;
        padding: 0.5rem 0.5rem;
    }
}

/* ---------------- Help & Support Attachments ---------------- */
.help-attach-trigger {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.35rem 0.15rem;
    cursor: pointer;
}

.attach-btn-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.45rem 0.95rem;
    border-radius: 20px;
    background: #f1f5f9;
    border: 1px solid var(--slate-300);
    color: var(--slate-800);
    font-size: 0.82rem;
    font-weight: 600;
}

.help-attach-trigger:hover .attach-btn-pill {
    background: #e2e8f0;
}

.attach-hint-text {
    font-size: 0.74rem;
    color: var(--slate-500);
}

.help-attachment-preview {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.6rem 0.85rem;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    margin-top: 0.4rem;
}

.attach-file-info {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    font-size: 0.82rem;
    color: var(--slate-800);
}

.attach-file-info i {
    color: var(--brand-blue);
    font-size: 1rem;
}

.attach-badge-size {
    background: #e0f2fe;
    color: #0369a1;
    font-size: 0.72rem;
    font-weight: 600;
    padding: 0.12rem 0.45rem;
    border-radius: 10px;
}

.btn-remove-attach {
    background: none;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    font-size: 0.9rem;
    padding: 0.25rem;
}

.btn-remove-attach:hover {
    color: #ef4444;
}

/* ---------------- Settings Blocks ---------------- */
.settings-block-card {
    background: #ffffff;
    border: 1px solid var(--slate-200);
    border-radius: 16px;
    padding: 1.15rem 1.25rem;
}

.settings-block-card h4 {
    margin: 0 0 0.25rem 0;
    font-size: 0.96rem;
    font-weight: 700;
    color: var(--slate-900);
    display: flex;
    align-items: center;
    gap: 0.45rem;
}

.settings-desc {
    margin: 0 0 0.85rem 0;
    font-size: 0.78rem;
    color: var(--slate-500);
}

.theme-switch-pills {
    display: flex;
    gap: 0.75rem;
}

.theme-pill-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.65rem 0.85rem;
    border-radius: 12px;
    border: 1.5px solid var(--slate-200);
    background: #f8fafc;
    color: var(--slate-600);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.theme-pill-btn:hover {
    background: #f1f5f9;
}

.theme-pill-btn.active {
    border-color: var(--brand-blue);
    background: #eff6ff;
    color: var(--brand-blue);
}

/* Toggle Switches */
.toggle-setting-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 0;
    border-bottom: 1px solid #f1f5f9;
    gap: 1rem;
}

.toggle-setting-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.toggle-setting-row div strong {
    display: block;
    font-size: 0.85rem;
    color: var(--slate-900);
}

.toggle-setting-row div span {
    font-size: 0.74rem;
    color: var(--slate-500);
}

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

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

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: #cbd5e1;
    transition: .25s;
    border-radius: 24px;
}

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

input:checked + .toggle-slider {
    background-color: var(--brand-blue);
}

input:checked + .toggle-slider:before {
    transform: translateX(20px);
}

/* Dark Theme Support for Account Hub */
body.dark-mode {
    background-color: #090d16;
    color: #e2e8f0;
}

body.dark-mode .account-hub-card {
    background: #0f172a;
    border-color: #1e293b;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

body.dark-mode .account-profile-header {
    background: linear-gradient(180deg, #1e293b 0%, #0f172a 100%);
    border-bottom-color: #1e293b;
}

body.dark-mode .user-display-name,
body.dark-mode .sub-screen-header h3,
body.dark-mode .menu-row-info strong,
body.dark-mode .settings-block-card h4,
body.dark-mode .toggle-setting-row div strong,
body.dark-mode .hub-field-group label {
    color: #f8fafc;
}

body.dark-mode .menu-list-row:hover {
    background: #1e293b;
    border-color: #334155;
}

body.dark-mode .hub-field-group input,
body.dark-mode .hub-field-group select,
body.dark-mode .hub-field-group textarea,
body.dark-mode .settings-block-card {
    background: #1e293b;
    border-color: #334155;
    color: #f8fafc;
}

body.dark-mode .theme-pill-btn {
    background: #1e293b;
    border-color: #334155;
    color: #94a3b8;
}

body.dark-mode .theme-pill-btn.active {
    background: #1e3a8a;
    border-color: #3b82f6;
    color: #93c5fd;
}

body.dark-mode .btn-sub-back {
    background: #1e293b;
    border-color: #334155;
    color: #cbd5e1;
}

body.dark-mode .sub-screen-header {
    border-bottom-color: #1e293b;
}

/* ---------------- Mobile Responsive ---------------- */
@media (max-width: 768px) {
    /* Form Grids Stacking on Mobile */
    .form-grid-3,
    .form-grid-2 {
        grid-template-columns: 1fr !important;
        gap: 0.85rem !important;
    }

    .form-field.span-2,
    .span-2 {
        grid-column: span 1 !important;
    }

    /* Top Photo Cover Uploader on Mobile */
    .top-photo-card {
        max-width: 100% !important;
        height: auto !important;
        min-height: 120px !important;
    }

    .top-photo-placeholder {
        padding: 0.85rem 0.75rem !important;
        gap: 0.75rem !important;
    }

    .photo-icon-circle {
        width: 38px !important;
        height: 38px !important;
        min-width: 38px !important;
        font-size: 1.1rem !important;
    }

    .photo-text-wrap h4 {
        font-size: 0.86rem !important;
    }

    .photo-text-wrap p {
        font-size: 0.7rem !important;
        margin-bottom: 0.25rem !important;
    }

    .btn-browse-photo {
        padding: 0.25rem 0.65rem !important;
        font-size: 0.72rem !important;
    }

    /* Schedule & Timings on Mobile */
    .schedule-advanced-grid {
        grid-template-columns: 1fr !important;
        gap: 0.85rem !important;
    }

    .account-hub-card .schedule-advanced-grid {
        grid-template-columns: 1fr !important;
        gap: 0.85rem !important;
    }

    .time-ampm-row,
    .account-hub-card .time-ampm-row {
        display: flex !important;
        width: 100% !important;
        max-width: 100% !important;
        gap: 0.5rem !important;
    }

    .time-ampm-row input,
    .account-hub-card .time-ampm-row input {
        flex: 1 !important;
        width: auto !important;
        text-align: left !important;
        padding: 0.65rem 0.75rem !important;
    }

    .time-ampm-row select,
    .account-hub-card .time-ampm-row select {
        width: 80px !important;
        flex-shrink: 0 !important;
        padding: 0.65rem 0.5rem !important;
    }

    /* Calendar Popover full width on mobile */
    .calendar-popover {
        position: fixed !important;
        top: 50% !important;
        left: 50% !important;
        transform: translate(-50%, -50%) !important;
        width: 90vw !important;
        max-width: 320px !important;
        z-index: 1000 !important;
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3) !important;
    }

    .btn-cal-done {
        padding: 0.45rem 1rem !important;
        font-size: 0.82rem !important;
        font-weight: 700 !important;
        border-radius: 8px !important;
    }

/* ================= DIRECT CUSTOM CATALOG & EDIT MODALS (UNIVERSAL POPUP STYLING) ================= */
.custom-modal-backdrop {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    background: rgba(15, 23, 42, 0.75) !important;
    backdrop-filter: blur(8px) !important;
    -webkit-backdrop-filter: blur(8px) !important;
    z-index: 99999 !important; /* Always sits on top of everything including merchant dashboard */
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 1.25rem !important;
    box-sizing: border-box !important;
    animation: modalBackdropFadeIn 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.custom-modal-backdrop[style*="display: none"],
.custom-modal-backdrop[style*="display:none"] {
    display: none !important;
}

@keyframes modalBackdropFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.custom-modal-card {
    background: #ffffff !important;
    border-radius: 24px !important;
    width: 100% !important;
    max-width: 520px !important;
    max-height: 90vh !important;
    display: flex !important;
    flex-direction: column !important;
    box-shadow: 0 25px 60px -10px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(255, 255, 255, 0.15) !important;
    overflow: hidden !important;
    animation: modalPopIn 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
    position: relative !important;
}

@keyframes modalPopIn {
    from { opacity: 0; transform: scale(0.92) translateY(14px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

.custom-modal-header {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 1.15rem 1.45rem !important;
    border-bottom: 1.5px solid #e2e8f0 !important;
    background: #ffffff !important;
    flex-shrink: 0 !important;
}

.custom-modal-header h4 {
    margin: 0 !important;
    font-size: 1.12rem !important;
    font-weight: 800 !important;
    color: var(--slate-900) !important;
    display: flex !important;
    align-items: center !important;
    gap: 0.55rem !important;
    letter-spacing: -0.2px !important;
}

.btn-close-custom-modal {
    background: #f1f5f9 !important;
    border: 1px solid #cbd5e1 !important;
    color: var(--slate-600) !important;
    width: 34px !important;
    height: 34px !important;
    border-radius: 10px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 1rem !important;
    cursor: pointer !important;
    transition: all 0.15s ease !important;
}

.btn-close-custom-modal:hover {
    background: #fee2e2 !important;
    color: #ef4444 !important;
    border-color: #fca5a5 !important;
}

.custom-modal-form {
    padding: 1.35rem 1.45rem !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 1.1rem !important;
    overflow-y: auto !important;
    max-height: calc(90vh - 75px) !important;
    scrollbar-width: thin !important;
    scrollbar-color: #cbd5e1 transparent !important;
}

.custom-modal-form::-webkit-scrollbar {
    width: 6px;
}

.custom-modal-form::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 10px;
}

.custom-modal-form .form-field {
    display: flex !important;
    flex-direction: column !important;
    gap: 0.45rem !important;
}

.custom-modal-form .form-field label {
    font-size: 0.82rem !important;
    font-weight: 700 !important;
    color: var(--slate-700) !important;
}

.custom-modal-form .form-field input,
.custom-modal-form .form-field select {
    width: 100% !important;
    padding: 0.72rem 0.95rem !important;
    border: 1.5px solid #cbd5e1 !important;
    border-radius: 12px !important;
    font-size: 0.9rem !important;
    font-weight: 600 !important;
    color: var(--slate-800) !important;
    background: #f8fafc !important;
    box-sizing: border-box !important;
    transition: all 0.2s ease !important;
    outline: none !important;
}

.custom-modal-form .form-field input:focus,
.custom-modal-form .form-field select:focus {
    background: #ffffff !important;
    border-color: #2563eb !important;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12) !important;
}

.custom-modal-form .form-row-2 {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 0.85rem !important;
}

.custom-img-upload-box {
    border: 2px dashed #cbd5e1 !important;
    border-radius: 14px !important;
    padding: 1.25rem !important;
    text-align: center !important;
    background: #f8fafc !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 105px !important;
}

.custom-img-upload-box:hover {
    background: #eff6ff !important;
    border-color: var(--brand-blue) !important;
}

#customImgPlaceholder,
#directStorePhotoPlaceholder {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 0.4rem !important;
    color: var(--slate-500) !important;
    font-size: 0.82rem !important;
    font-weight: 700 !important;
}

#customImgPlaceholder i,
#directStorePhotoPlaceholder i {
    font-size: 1.5rem !important;
    color: var(--brand-blue) !important;
}

.custom-modal-actions {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 0.75rem !important;
    margin-top: 0.65rem !important;
    padding-top: 0.75rem !important;
    border-top: 1px solid #f1f5f9 !important;
}

.btn-sub-cancel {
    padding: 0.65rem 1.25rem !important;
    border-radius: 12px !important;
    background: #f1f5f9 !important;
    border: 1px solid #cbd5e1 !important;
    color: var(--slate-700) !important;
    font-size: 0.85rem !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    transition: all 0.15s ease !important;
}

.btn-sub-cancel:hover {
    background: #e2e8f0 !important;
    color: var(--slate-900) !important;
}

.btn-biz-primary {
    padding: 0.65rem 1.35rem !important;
    border-radius: 12px !important;
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%) !important;
    color: #ffffff !important;
    font-size: 0.85rem !important;
    font-weight: 700 !important;
    border: none !important;
    cursor: pointer !important;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25) !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 0.5rem !important;
    transition: all 0.2s ease !important;
}

.btn-biz-primary:hover {
    transform: translateY(-1.5px) !important;
    box-shadow: 0 6px 16px rgba(37, 99, 235, 0.35) !important;
}

.ctrl-action-btn.btn-del {
    color: #ef4444;
}

.ctrl-action-btn.btn-del:hover {
    background: #fee2e2;
    border-color: #fca5a5;
}
    .section-title-action {
        flex-direction: row !important;
        align-items: center !important;
        justify-content: space-between !important;
        gap: 0.5rem !important;
    }

    .section-title-action .form-section-title {
        font-size: 0.95rem !important;
    }

    .product-item-row {
        display: flex !important;
        flex-wrap: wrap !important;
        gap: 0.5rem !important;
        padding: 0.75rem !important;
        background: #f8fafc !important;
        border: 1px solid var(--slate-200) !important;
        border-radius: 12px !important;
        position: relative !important;
    }

    .prod-img-box {
        width: 44px !important;
        height: 44px !important;
        min-width: 44px !important;
        flex-shrink: 0 !important;
    }

    .product-item-row .prod-name {
        flex: 1 1 calc(100% - 95px) !important;
        min-width: 140px !important;
    }

    .product-item-row .prod-price {
        flex: 1 1 100% !important;
        width: 100% !important;
    }

    .btn-remove-row {
        position: absolute !important;
        top: 0.75rem !important;
        right: 0.75rem !important;
        width: 34px !important;
        height: 34px !important;
        min-width: 34px !important;
    }

    /* Form Section Block & Spacing */
    .form-section-block {
        margin-bottom: 1.25rem !important;
        padding-bottom: 1.25rem !important;
    }

    .form-section-title {
        font-size: 0.96rem !important;
        margin-bottom: 0.85rem !important;
    }

    .form-submit-bar {
        display: flex !important;
        flex-direction: column-reverse !important;
        gap: 0.65rem !important;
        margin-top: 1.5rem !important;
    }

    .form-submit-bar button {
        width: 100% !important;
        justify-content: center !important;
    }
}

@media (max-width: 600px) {
    .account-hub-main {
        padding: 0.5rem 0.85rem 2rem 0.85rem;
    }

    .account-hub-card {
        border-radius: 20px;
    }

    .account-profile-header {
        padding: 1.75rem 1rem 1.25rem 1rem;
    }

    .profile-avatar-wrapper {
        width: 78px;
        height: 78px;
    }

    .user-display-name {
        font-size: 1.2rem;
    }

    .user-display-email {
        font-size: 0.82rem;
    }

    .menu-list-row {
        padding: 0.85rem 0.85rem;
    }

    .menu-icon-box {
        width: 38px;
        height: 38px;
        font-size: 1rem;
        border-radius: 10px;
    }

    .menu-row-info strong {
        font-size: 0.9rem;
    }

    .menu-row-info span {
        font-size: 0.74rem;
    }

    .sub-screen-content {
        padding: 1rem 0.85rem 1.5rem 0.85rem;
    }

    .hub-field-row-2,
    .hub-field-row-3 {
        grid-template-columns: 1fr;
    }
}

/* ========================================================
   PROFESSIONAL DESKTOP & WIDE SCREEN STYLING
   (Strictly @media min-width: 992px to preserve 100% mobile view)
======================================================== */
@media (min-width: 992px) {
    .account-hub-main {
        padding: 3rem 2rem 4rem 2rem;
        background: #f8fafc;
        min-height: calc(100vh - 70px);
    }

    .account-hub-card {
        max-width: 600px;
        border-radius: 24px;
        box-shadow: 0 12px 35px rgba(15, 23, 42, 0.06);
        border: 1px solid #e2e8f0;
    }

    .account-hub-card.expanded-mode {
        max-width: 980px;
    }

    .account-profile-header {
        padding: 2.5rem 2rem 1.75rem 2rem;
    }

    .profile-avatar-wrapper {
        width: 95px;
        height: 95px;
    }

    .user-display-name {
        font-size: 1.45rem;
    }

    .menu-list-row {
        padding: 1.1rem 1.35rem;
        transition: background 0.18s ease, transform 0.18s ease;
    }

    .menu-list-row:hover {
        background: #f8fafc;
        transform: translateX(4px);
    }

    /* Enterprise Add Listing Form Layout on Desktop */
    .account-hub-card #viewAddListing .enterprise-form-card {
        padding: 0.5rem 1rem;
    }

    .form-grid-3 {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.25rem;
    }

    /* Merchant Dashboard on Desktop */
    .biz-kpi-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 1.25rem;
    }

    .biz-dashboard-bottom-nav {
        max-width: 650px;
        margin: 0 auto;
        border-radius: 16px 16px 0 0;
    }
}

/* ================= 3. TOP PRODUCTS SHOWCASE STYLES ================= */
.m-top-products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 0.85rem;
}

.m-top-prod-card {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.65rem 0.85rem;
    background: #ffffff;
    border: 1.5px solid #fed7aa;
    border-radius: 14px;
    box-shadow: 0 2px 6px rgba(245, 158, 11, 0.08);
    position: relative;
    transition: transform 0.15s, box-shadow 0.15s;
}

.m-top-prod-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(245, 158, 11, 0.15);
}

.m-top-prod-thumb {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    object-fit: cover;
    flex-shrink: 0;
}

.m-top-prod-info {
    flex: 1;
    min-width: 0;
}

.m-top-prod-name {
    font-size: 0.88rem;
    color: #1e293b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
}

.m-top-prod-price {
    font-size: 0.82rem;
    font-weight: 800;
    color: #0f172a;
}

.m-top-prod-cat {
    font-size: 0.72rem;
    background: #fef3c7;
    color: #b45309;
    padding: 2px 7px;
    border-radius: 10px;
    font-weight: 700;
}

.btn-card-action.is-top-active {
    background: #fffbeb;
    border-color: #fde68a;
}

/* ==========================================
   MERCHANT BUSINESS LIST: SHARE & QR STANDEE
   ========================================== */
.ctrl-card-right-group {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding-left: 0.5rem;
}

.btn-ctrl-share {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    background: #eff6ff;
    color: #1d4ed8;
    border: 1px solid #bfdbfe;
    padding: 0.45rem 0.95rem;
    border-radius: 9999px;
    font-size: 0.82rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    white-space: nowrap;
    box-shadow: 0 1px 2px rgba(37, 99, 235, 0.08);
}

.btn-ctrl-share i {
    color: #2563eb;
    font-size: 0.95rem;
    transition: transform 0.2s ease;
}

.btn-ctrl-share:hover {
    background: #2563eb;
    color: #ffffff;
    border-color: #2563eb;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(37, 99, 235, 0.3);
}

.btn-ctrl-share:hover i {
    color: #ffffff;
    transform: scale(1.12);
}

.btn-ctrl-share:active {
    transform: translateY(0);
}

.ctrl-card-arrow {
    color: #94a3b8;
    font-size: 1.15rem;
    display: flex;
    align-items: center;
    transition: transform 0.2s ease, color 0.2s ease;
}

/* QR & Share Standee Modal Card */
.qr-modal-card {
    background: #ffffff !important;
    border-radius: 24px !important;
    width: 100% !important;
    max-width: 440px !important;
    max-height: 94vh !important;
    box-shadow: 0 25px 60px rgba(15, 23, 42, 0.25) !important;
    border: 1px solid #e2e8f0;
    overflow: hidden !important;
    display: flex !important;
    flex-direction: column !important;
    padding: 0 !important;
}

.qr-modal-card .m-submodal-header {
    padding: 1rem 1.35rem !important;
    flex-shrink: 0 !important;
}

.qr-modal-body {
    padding: 0.65rem 1.25rem 0.5rem 1.25rem !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    overflow-y: auto !important;
    flex: 1 1 auto !important;
    -webkit-overflow-scrolling: touch;
    max-height: calc(94vh - 145px) !important;
}

/* Dedicated Pinned Action Footer (Download Image: More Space, Share: Less Space) */
.qr-modal-footer {
    padding: 0.85rem 1.25rem 1.1rem 1.25rem !important;
    background: #ffffff !important;
    border-top: 1px solid #f1f5f9 !important;
    width: 100% !important;
    box-sizing: border-box !important;
    flex-shrink: 0 !important;
    display: flex !important;
    align-items: center !important;
    gap: 0.75rem !important;
}

.qr-modal-footer .btn-qr-action.download {
    flex: 2 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0.55rem !important;
    background: #059669 !important;
    color: #ffffff !important;
    font-size: 0.92rem !important;
    font-weight: 800 !important;
    padding: 0.85rem 1.15rem !important;
    border-radius: 14px !important;
    border: none !important;
    cursor: pointer !important;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
    box-shadow: 0 4px 14px rgba(5, 150, 105, 0.3) !important;
    white-space: nowrap !important;
}

.qr-modal-footer .btn-qr-action.download:hover {
    background: #047857 !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(5, 150, 105, 0.4) !important;
}

.qr-modal-footer .btn-qr-action.share {
    flex: 1 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0.45rem !important;
    background: #2563eb !important;
    color: #ffffff !important;
    font-size: 0.92rem !important;
    font-weight: 800 !important;
    padding: 0.85rem 0.95rem !important;
    border-radius: 14px !important;
    border: none !important;
    cursor: pointer !important;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.3) !important;
    white-space: nowrap !important;
}

.qr-modal-footer .btn-qr-action.share:hover {
    background: #1d4ed8 !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.4) !important;
}

/* Luxury Merchant Table Standee */
.qr-standee-card {
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    border: 2px solid #e2e8f0;
    border-radius: 20px;
    padding: 1.15rem 1.15rem;
    width: 100%;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.9);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    box-sizing: border-box;
}

.standee-header {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.75rem;
    padding-bottom: 0.6rem;
    border-bottom: 1px dashed #cbd5e1;
}

.standee-brand-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 100%);
    color: #ffffff;
    font-weight: 800;
    font-size: 0.78rem;
    padding: 0.35rem 0.85rem;
    border-radius: 9999px;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.3);
}

.standee-brand-pill i {
    font-size: 0.82rem;
    color: #93c5fd;
}

.standee-verified-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    background: #ecfdf5;
    color: #059669;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 0.3rem 0.65rem;
    border-radius: 9999px;
    border: 1px solid #a7f3d0;
}

.standee-store-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 0.75rem;
    width: 100%;
}

.standee-avatar {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    object-fit: cover;
    border: 3px solid #ffffff;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.12);
    margin-bottom: 0.45rem;
    background: #f1f5f9;
}

.standee-store-name {
    font-size: 1.18rem;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 0.15rem 0;
    line-height: 1.3;
    max-width: 100%;
    word-break: break-word;
}

.standee-store-meta {
    font-size: 0.8rem;
    color: #64748b;
    font-weight: 600;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
}

/* Standee QR Frame with Corner Brackets */
.standee-qr-frame {
    position: relative;
    padding: 10px;
    background: #ffffff;
    border-radius: 18px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    border: 1px solid #e2e8f0;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.qr-corner-bracket {
    position: absolute;
    width: 18px;
    height: 18px;
    border-color: #2563eb;
    border-style: solid;
    pointer-events: none;
}

.qr-corner-bracket.top-left {
    top: 6px;
    left: 6px;
    border-width: 3px 0 0 3px;
    border-top-left-radius: 6px;
}

.qr-corner-bracket.top-right {
    top: 6px;
    right: 6px;
    border-width: 3px 3px 0 0;
    border-top-right-radius: 6px;
}

.qr-corner-bracket.bottom-left {
    bottom: 6px;
    left: 6px;
    border-width: 0 0 3px 3px;
    border-bottom-left-radius: 6px;
}

.qr-corner-bracket.bottom-right {
    bottom: 6px;
    right: 6px;
    border-width: 0 3px 3px 0;
    border-bottom-right-radius: 6px;
}

.standee-qr-box {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    border-radius: 12px;
    padding: 6px;
}

.standee-qr-box canvas,
.standee-qr-box img {
    display: block;
    max-width: 190px !important;
    height: auto !important;
    border-radius: 8px;
}

/* Footer Section of Standee */
.standee-footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
    width: 100%;
}

.standee-scan-prompt {
    font-size: 0.85rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
}

.standee-scan-prompt i {
    color: #2563eb;
    font-size: 0.95rem;
}

/* Standee Link Box with Copy Button */
.standee-link-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    width: 100%;
    background: #f8fafc;
    border: 1.5px solid #e2e8f0;
    border-radius: 9999px;
    padding: 0.25rem 0.35rem 0.25rem 0.85rem;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.03);
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.standee-link-row:hover {
    border-color: #cbd5e1;
    background: #f1f5f9;
}

.standee-link-url {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    flex: 1;
    min-width: 0;
    text-decoration: none;
    color: #2563eb;
    font-size: 0.76rem;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-weight: 600;
}

.standee-link-url:hover {
    color: #1d4ed8;
    text-decoration: underline;
}

.standee-link-url i {
    font-size: 0.75rem;
    color: #64748b;
    flex-shrink: 0;
}

.standee-link-text {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: inline-block;
    max-width: 100%;
}

.standee-copy-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    background: #2563eb;
    color: #ffffff;
    border: none;
    border-radius: 9999px;
    padding: 0.35rem 0.8rem;
    font-size: 0.72rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
    box-shadow: 0 1px 3px rgba(37, 99, 235, 0.25);
}

.standee-copy-btn:hover {
    background: #1d4ed8;
    transform: scale(1.03);
}

.standee-copy-btn.copied {
    background: #059669 !important;
    box-shadow: 0 1px 4px rgba(5, 150, 105, 0.35);
}

.standee-link-pill {
    display: inline-block;
    max-width: 90%;
    background: #f1f5f9;
    color: #475569;
    font-family: monospace;
    font-size: 0.72rem;
    font-weight: 600;
    padding: 0.3rem 0.75rem;
    border-radius: 9999px;
    border: 1px solid #e2e8f0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.standee-tagline {
    font-size: 0.72rem;
    color: #94a3b8;
    margin-top: 0.15rem;
}

/* Action Controls Row */
.qr-modal-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.6rem;
    width: 100%;
}

.btn-qr-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.7rem 0.85rem;
    border-radius: 12px;
    font-size: 0.82rem;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    border: 1px solid transparent;
    text-align: center;
}

.btn-qr-action.print {
    background: #0f172a;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.2);
}

.btn-qr-action.print:hover {
    background: #1e293b;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.3);
}

.btn-qr-action.download {
    background: #059669;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(5, 150, 105, 0.25);
}

.btn-qr-action.download:hover {
    background: #047857;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(5, 150, 105, 0.35);
}

.btn-qr-action.copy {
    background: #eff6ff;
    color: #1d4ed8;
    border-color: #bfdbfe;
}

.btn-qr-action.copy:hover {
    background: #dbeafe;
    transform: translateY(-2px);
}

.btn-qr-action.whatsapp {
    background: #25d366;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.25);
}

.btn-qr-action.whatsapp:hover {
    background: #1eb855;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(37, 211, 102, 0.35);
}

/* Official Print Layout for Physical Standee / Table Top */
@media print {
    body * {
        visibility: hidden !important;
    }
    #listingShareQRModal,
    #listingShareQRModal * {
        visibility: visible !important;
    }
    #listingShareQRModal {
        position: fixed !important;
        left: 0 !important;
        top: 0 !important;
        width: 100vw !important;
        height: 100vh !important;
        background: #ffffff !important;
        backdrop-filter: none !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        padding: 0 !important;
        margin: 0 !important;
        z-index: 999999 !important;
    }
    .m-submodal-header,
    .qr-modal-actions,
    .qr-modal-footer,
    .standee-footer {
        display: none !important;
    }
    .qr-modal-card {
        box-shadow: none !important;
        border: none !important;
        max-width: 100% !important;
        padding: 0 !important;
        margin: 0 auto !important;
    }
    .qr-standee-card {
        border: 2px solid #0f172a !important;
        box-shadow: none !important;
        width: 380px !important;
        margin: 20px auto !important;
        padding: 2.2rem 1.8rem !important;
        page-break-inside: avoid;
    }
}

/* Mobile Responsiveness for Listings */
@media (max-width: 576px) {
    .ctrl-card-top {
        flex-wrap: wrap;
    }
    .ctrl-card-right-group {
        width: 100%;
        justify-content: space-between;
        margin-top: 0.5rem;
        padding-top: 0.5rem;
        border-top: 1px dashed #e2e8f0;
    }
    .btn-ctrl-share {
        flex: 1;
        justify-content: center;
    }
    .standee-link-row {
        padding: 0.2rem 0.3rem 0.2rem 0.65rem;
    }
    .standee-link-url {
        font-size: 0.72rem;
    }
    .standee-copy-btn {
        padding: 0.3rem 0.65rem;
        font-size: 0.7rem;
    }
    .qr-modal-actions {
        grid-template-columns: 1fr;
    }
}

/* ================= CLAIM MY LISTING MODULE ================= */
.claim-tab-btn {
    transition: all 0.2s ease;
}
.claim-tab-btn.active {
    background: #4f46e5 !important;
    color: #ffffff !important;
    border-color: #4f46e5 !important;
    box-shadow: 0 2px 6px rgba(79, 70, 229, 0.25);
}
.claim-file-chip {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem 0.75rem;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 0.82rem;
    transition: all 0.15s ease;
}
.claim-file-chip:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
}
.claim-file-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    overflow: hidden;
}
.claim-file-name {
    font-weight: 600;
    color: #334155;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 220px;
}
.claim-file-size {
    color: #64748b;
    font-size: 0.75rem;
}
.btn-remove-claim-file {
    background: none;
    border: none;
    color: #ef4444;
    cursor: pointer;
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    font-size: 0.85rem;
}
.btn-remove-claim-file:hover {
    background: #fee2e2;
}
.claim-history-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 1.15rem;
    margin-bottom: 1rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.claim-history-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

