/* ==========================================
   WHATSORDER ADMIN
========================================== */

.admin-body {
    background: #f4f6f8;
    min-height: 100vh;
}


/* HIDDEN */

.hidden {
    display: none !important;
}


/* ==========================================
   AUTH
========================================== */

.auth-wrapper {
    min-height: 100vh;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 30px 15px;
}


.auth-card {
    width: 100%;
    max-width: 440px;

    background: white;

    padding: 35px;

    border-radius: 18px;

    box-shadow:
        0 15px 45px rgba(0,0,0,0.08);
}


.brand-logo {
    width: 55px;
    height: 55px;

    border-radius: 14px;

    background: #25d366;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 26px;
    font-weight: bold;

    margin-bottom: 18px;
}


.auth-card h1 {
    font-size: 30px;
}


.auth-subtitle {
    color: #777;

    margin-bottom: 25px;
}


.auth-card .form-group {
    margin-bottom: 17px;
}


.auth-small {
    margin-top: 20px;

    text-align: center;

    color: #888;

    font-size: 13px;
}


/* ==========================================
   BUTTONS
========================================== */

.primary-admin-button,
.secondary-admin-button {
    width: 100%;

    padding: 13px 18px;

    border-radius: 8px;

    font-weight: bold;

    font-size: 15px;

    cursor: pointer;

    margin-top: 10px;
}


.primary-admin-button {
    border: none;

    background: #111827;

    color: white;
}


.primary-admin-button:hover {
    background: #25d366;

    color: #111;
}


.secondary-admin-button {
    border: 1px solid #ddd;

    background: white;

    color: #333;
}


.inline-button {
    width: auto;
}


/* ==========================================
   MESSAGES
========================================== */

.message-box {
    display: none;

    padding: 12px;

    border-radius: 8px;

    margin: 15px 0;

    font-size: 14px;
}


.message-box.success {
    display: block;

    background: #e8f8ee;

    color: #146c38;
}


.message-box.error {
    display: block;

    background: #fdecec;

    color: #b42318;
}


/* ==========================================
   TOPBAR
========================================== */

.admin-topbar {
    background: #111827;

    color: white;

    padding: 18px 4%;

    display: flex;

    justify-content: space-between;

    align-items: center;

    gap: 20px;

    position: sticky;

    top: 0;

    z-index: 100;
}


.admin-topbar small {
    opacity: 0.7;
}


.admin-top-actions {
    display: flex;

    align-items: center;

    gap: 10px;
}


.store-link-button,
.logout-button {
    padding: 10px 15px;

    border-radius: 7px;

    font-size: 14px;

    text-decoration: none;

    cursor: pointer;
}


.store-link-button {
    background: #25d366;

    color: #111;

    font-weight: bold;
}


.logout-button {
    border: 1px solid #cbd5e1;

    background: #ffffff;

    color: #111827;

    font-weight: 600;
}

/* ==========================================
   MAIN ADMIN
========================================== */

.admin-container {
    width: 92%;

    max-width: 1250px;

    margin: 30px auto 70px;
}


.admin-heading {
    margin-bottom: 25px;
}


.admin-heading h1 {
    font-size: 30px;
}


.admin-heading p {
    color: #777;
}


/* ==========================================
   STATS
========================================== */

.stats-grid {
    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap: 18px;

    margin-bottom: 25px;
}


.stat-card {
    background: white;

    padding: 24px;

    border-radius: 13px;

    box-shadow:
        0 3px 14px rgba(0,0,0,0.05);
}


.stat-card span {
    display: block;

    color: #777;

    margin-bottom: 8px;
}


.stat-card strong {
    font-size: 31px;
}


/* ==========================================
   PANEL
========================================== */

.admin-panel {
    background: white;

    padding: 25px;

    border-radius: 14px;

    margin-bottom: 25px;

    box-shadow:
        0 3px 14px rgba(0,0,0,0.05);
}


.panel-heading {
    display: flex;

    justify-content: space-between;

    align-items: center;

    gap: 20px;

    margin-bottom: 22px;
}


.panel-heading p {
    color: #777;
}


.form-actions {
    display: flex;

    gap: 10px;

    margin-top: 20px;
}


/* ==========================================
   SEARCH
========================================== */

.admin-search {
    width: 260px;

    max-width: 100%;

    padding: 11px;

    border: 1px solid #ddd;

    border-radius: 8px;

    outline: none;
}

/* ==========================================
   SUBSCRIPTION APPROVAL CENTER
========================================== */

.subscription-approvals-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 92px;
    padding: 8px 12px;
    border-radius: 999px;
    background: #fff7ed;
    color: #9a3412;
    font-size: 13px;
    font-weight: 700;
}

.subscription-approvals-nav-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 22px;
    margin-left: auto;
    padding: 0 6px;
    border-radius: 999px;
    background: #dc2626;
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
}

.subscription-approval-status {
    display: inline-flex;
    align-items: center;
    padding: 5px 9px;
    border-radius: 999px;
    background: #fff7ed;
    color: #9a3412;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}

.subscription-approval-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.subscription-approval-actions button {
    min-width: 78px;
}

#subscriptionApprovalsTableBody code {
    display: inline-block;
    max-width: 220px;
    overflow-wrap: anywhere;
    white-space: normal;
}

@media (max-width: 768px) {

    .subscription-approval-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .subscription-approval-actions button {
        width: 100%;
    }

}

/* ==========================================
   TABLE
========================================== */

.table-wrapper {
    overflow-x: auto;
}


.admin-table {
    width: 100%;

    border-collapse: collapse;
}


.admin-table th,
.admin-table td {
    text-align: left;

    padding: 13px 10px;

    border-bottom: 1px solid #eee;

    vertical-align: middle;
}


.admin-table th {
    color: #666;

    font-size: 13px;

    text-transform: uppercase;
}


.product-thumb {
    width: 55px;

    height: 55px;

    border-radius: 8px;

    object-fit: cover;

    background: #eee;
}


.no-image {
    width: 55px;

    height: 55px;

    border-radius: 8px;

    background: #eee;

    display: flex;

    align-items: center;

    justify-content: center;

    font-size: 11px;

    color: #888;
}


.status-active,
.status-hidden {
    display: inline-block;

    padding: 5px 9px;

    border-radius: 20px;

    font-size: 12px;

    font-weight: bold;
}


.status-active {
    background: #e8f8ee;

    color: #146c38;
}


.status-hidden {
    background: #eee;

    color: #666;
}


.action-button {
    border: none;

    padding: 7px 10px;

    border-radius: 6px;

    cursor: pointer;

    margin-right: 5px;
}


.edit-action {
    background: #eef2ff;
}


.delete-action {
    background: #fdecec;
}


/* ==========================================
   MOBILE
========================================== */

@media(max-width: 750px) {

    .stats-grid {
        grid-template-columns: 1fr;
    }


    .panel-heading {
        flex-direction: column;

        align-items: stretch;
    }


    .admin-topbar {
        align-items: flex-start;
    }


    .admin-top-actions {
        flex-direction: column;

        align-items: stretch;
    }


    .admin-table {
        min-width: 760px;
    }

}

/* ==========================================
   STORE SETTINGS
========================================== */

.store-logo-settings {
    display: flex;

    align-items: center;

    gap: 24px;

    margin-top: 8px;

    padding: 18px;

    border: 1px solid #eee;

    border-radius: 12px;

    background: #fafafa;
}


.store-logo-preview {
    width: 110px;

    height: 110px;

    flex-shrink: 0;

    border-radius: 14px;

    border: 1px solid #ddd;

    background: white;

    display: flex;

    align-items: center;

    justify-content: center;

    overflow: hidden;

    color: #999;

    font-size: 13px;
}


.store-logo-preview img {
    width: 100%;

    height: 100%;

    object-fit: contain;

    padding: 6px;
}


.store-logo-controls {
    flex: 1;

    display: flex;

    flex-direction: column;

    align-items: flex-start;

    gap: 10px;
}


.store-logo-controls input {
    width: 100%;
}


.store-logo-controls small {
    color: #777;
}


.logo-remove-button {
    width: auto;

    padding: 9px 14px;

    margin-top: 4px;
}


/* ==========================================
   STORE SETTINGS MOBILE
========================================== */

@media(max-width: 650px) {

    .store-logo-settings {
        flex-direction: column;

        align-items: flex-start;
    }


    .store-logo-preview {
        width: 100px;

        height: 100px;
    }


    .store-logo-controls {
        width: 100%;
    }

}

/* ==========================================
   ORDER MANAGEMENT
========================================== */

.order-filters {
    display: flex;

    align-items: center;

    gap: 10px;
}


.order-filters select {
    padding: 11px;

    border: 1px solid #ddd;

    border-radius: 8px;

    background: white;
}


.order-status-select {
    padding: 7px;

    border: 1px solid #ddd;

    border-radius: 7px;

    background: white;
}


.order-status {
    display: inline-block;

    padding: 5px 9px;

    border-radius: 20px;

    font-size: 11px;

    font-weight: bold;
}


.order-new {
    background: #eef2ff;

    color: #3730a3;
}


.order-processing {
    background: #fff4e5;

    color: #9a5a00;
}


.order-completed {
    background: #e8f8ee;

    color: #146c38;
}


.order-cancelled {
    background: #fdecec;

    color: #b42318;
}


@media(max-width: 750px) {

    .order-filters {
        flex-direction: column;

        align-items: stretch;
    }

}

/* ==========================================
   ORDER ACTION BUTTONS
========================================== */

.order-view-action {
    background: #eef2ff;
    color: #3730a3;
}


.order-confirm-action {
    background: #dcfce7;
    color: #166534;
}


.order-complete-action {
    background: #d1fae5;
    color: #065f46;
}


.order-cancel-action {
    background: #fee2e2;
    color: #991b1b;
}


.order-view-action:hover,
.order-confirm-action:hover,
.order-complete-action:hover,
.order-cancel-action:hover {
    opacity: 0.85;
}


/* ==========================================
   PLATFORM MERCHANT DETAILS
========================================== */

.platform-merchant-modal-content {
    max-width: 920px;
}

.platform-merchant-detail-grid {
    display: grid;
    grid-template-columns:
        repeat(
            3,
            minmax(0, 1fr)
        );
    gap: 15px;
    margin-top: 24px;
}

.platform-merchant-detail-grid > div {
    min-width: 0;
    padding: 16px;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    background: #f9fafb;
}

.platform-merchant-detail-grid span {
    display: block;
    margin-bottom: 6px;
    color: #6b7280;
    font-size: 12px;
}

.platform-merchant-detail-grid strong {
    display: block;
    color: #111827;
    font-size: 14px;
    overflow-wrap: anywhere;
}

.platform-merchant-table-secondary {
    margin-top: 4px;
    color: #6b7280;
    font-size: 11px;
}

.platform-merchant-modal-actions {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid #e5e7eb;
}

.platform-merchant-modal-actions a,
.platform-merchant-modal-actions button {
    width: auto;
    margin-top: 0;
}

@media (max-width: 850px) {

    .platform-merchant-detail-grid {
        grid-template-columns:
            repeat(
                2,
                minmax(0, 1fr)
            );
    }

}

@media (max-width: 600px) {

    .platform-merchant-detail-grid {
        grid-template-columns: 1fr;
    }

    .platform-merchant-modal-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .platform-merchant-modal-actions a,
    .platform-merchant-modal-actions button {
        width: 100%;
        text-align: center;
    }

}

/* ==========================================
   ORDER MODAL
========================================== */

.order-modal {
    position: fixed;

    inset: 0;

    z-index: 5000;

    display: flex;

    align-items: center;

    justify-content: center;

    padding: 25px;
}


.order-modal.hidden {
    display: none;
}


.order-modal-backdrop {
    position: absolute;

    inset: 0;

    background:
        rgba(17, 24, 39, 0.65);
}


.order-modal-content {
    position: relative;

    z-index: 1;

    width: 100%;

    max-width: 900px;

    max-height: 90vh;

    overflow-y: auto;

    background: white;

    border-radius: 16px;

    padding: 26px;

    box-shadow:
        0 25px 60px
        rgba(0, 0, 0, 0.25);
}


body.modal-open {
    overflow: hidden;
}


/* ==========================================
   MODAL HEADER
========================================== */

.order-modal-header {
    display: flex;

    justify-content: space-between;

    align-items: flex-start;

    gap: 20px;

    padding-bottom: 18px;

    border-bottom: 1px solid #eee;
}


.order-modal-header h2 {
    margin: 0 0 4px;
}


.order-modal-header p {
    color: #666;

    font-weight: bold;
}


.order-modal-close {
    width: 38px;

    height: 38px;

    border: none;

    border-radius: 50%;

    background: #f3f4f6;

    cursor: pointer;

    font-size: 25px;

    line-height: 1;
}


/* ==========================================
   STATUS ROW
========================================== */

.order-detail-status-row {
    display: grid;

    grid-template-columns:
        1fr 1fr;

    gap: 20px;

    margin: 22px 0;

    padding: 16px;

    background: #f9fafb;

    border-radius: 10px;
}


/* ==========================================
   DETAIL SECTIONS
========================================== */

.order-detail-section {
    margin-top: 26px;
}


.order-detail-section h3 {
    margin-bottom: 14px;
}


.order-detail-grid {
    display: grid;

    grid-template-columns:
        1fr 1fr;

    gap: 18px;

    padding: 18px;

    background: #fafafa;

    border-radius: 10px;
}


.detail-label {
    display: block;

    color: #777;

    font-size: 12px;

    margin-bottom: 5px;

    text-transform: uppercase;
}


.detail-full-width {
    grid-column: 1 / -1;
}


/* ==========================================
   ORDER TOTALS
========================================== */

.order-detail-totals {
    margin-top: 25px;

    margin-left: auto;

    max-width: 350px;

    border-top: 1px solid #eee;

    padding-top: 15px;
}


.order-detail-totals > div {
    display: flex;

    justify-content: space-between;

    gap: 20px;

    padding: 7px 0;
}


.order-detail-grand-total {
    margin-top: 6px;

    padding-top: 12px !important;

    border-top: 2px solid #eee;

    font-size: 20px;
}


/* ==========================================
   DETAIL ACTIONS
========================================== */

.order-detail-actions {
    display: flex;

    justify-content: flex-end;

    flex-wrap: wrap;

    gap: 12px;

    margin-top: 25px;

    padding-top: 20px;

    border-top: 1px solid #eee;
}


.order-large-action {
    border: none;

    padding: 13px 20px;

    border-radius: 8px;

    font-size: 14px;

    font-weight: bold;

    cursor: pointer;
}


.order-confirm-button {
    background: #16a34a;

    color: white;
}


.order-complete-button {
    background: #111827;

    color: white;
}


.order-cancel-button {
    background: #fee2e2;

    color: #991b1b;
}


.order-final-message {
    width: 100%;

    padding: 14px;

    border-radius: 8px;

    text-align: center;

    background: #dcfce7;

    color: #166534;

    font-weight: bold;
}


.order-final-message.cancelled {
    background: #fee2e2;

    color: #991b1b;
}


/* ==========================================
   MOBILE ORDER MODAL
========================================== */

@media(max-width: 700px) {

    .order-modal {
        padding: 10px;

        align-items: flex-end;
    }


    .order-modal-content {
        max-height: 94vh;

        padding: 18px;

        border-radius:
            16px 16px 0 0;
    }


    .order-detail-status-row,
    .order-detail-grid {
        grid-template-columns:
            1fr;
    }


    .detail-full-width {
        grid-column: auto;
    }


    .order-detail-actions {
        flex-direction: column;
    }


    .order-large-action {
        width: 100%;
    }

}

/* ==========================================
   PROFESSIONAL DASHBOARD ANALYTICS
========================================== */

.analytics-grid {
    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 22px;

    margin-bottom: 22px;
}


.analytics-grid .admin-panel {
    margin-bottom: 0;
}


.analytics-card {
    min-width: 0;
}


/* ==========================================
   CHART CONTAINER
========================================== */

.chart-container {
    position: relative;

    width: 100%;

    height: 320px;

    margin-top: 10px;
}


.chart-container canvas {
    width: 100% !important;

    height: 100% !important;
}


/* ==========================================
   EMPTY ANALYTICS STATE
========================================== */

.analytics-empty {
    text-align: center;

    padding: 28px !important;

    color: #777;
}


/* ==========================================
   LOW STOCK BADGES
========================================== */

.analytics-stock-badge {
    display: inline-block;

    padding: 5px 9px;

    border-radius: 20px;

    font-size: 11px;

    font-weight: bold;
}


.analytics-low-stock {
    background: #fff4e5;

    color: #9a5a00;
}


.analytics-out-stock {
    background: #fdecec;

    color: #b42318;
}

/* ==========================================
   PLATFORM DASHBOARD ACTIONS
========================================== */

.platform-dashboard-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
}

.platform-dashboard-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

@media (max-width: 768px) {

    .platform-dashboard-heading {
        flex-direction: column;
        align-items: stretch;
    }

    .platform-dashboard-actions {
        width: 100%;
        flex-direction: column;
        align-items: stretch;
    }

    .platform-dashboard-actions button {
        width: 100%;
    }

}


/* ==========================================
   DASHBOARD STAT CARD IMPROVEMENT
========================================== */

.stats-grid {
    grid-template-columns:
        repeat(
            auto-fit,
            minmax(170px, 1fr)
        );
}


.stat-card strong {
    display: block;

    margin-top: 8px;

    font-size: 25px;
}


/* ==========================================
   TABLE IMPROVEMENT
========================================== */

.analytics-grid .admin-table td,
.analytics-grid .admin-table th {
    white-space: nowrap;
}


/* ==========================================
   TABLET
========================================== */

@media(max-width: 950px) {

    .analytics-grid {
        grid-template-columns: 1fr;
    }

}


/* ==========================================
   MOBILE
========================================== */

@media(max-width: 650px) {

    .chart-container {
        height: 270px;
    }


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


    .stat-card strong {
        font-size: 21px;
    }

}


/* ==========================================
   VERY SMALL MOBILE
========================================== */

@media(max-width: 390px) {

    .stats-grid {
        grid-template-columns: 1fr;
    }

}

/* ==========================================
   WHATSORDER PROFESSIONAL ADMIN LAYOUT
   PHASE 2H
========================================== */


/* ==========================================
   APPLICATION LAYOUT
========================================== */

.admin-app-layout {
    min-height: 100vh;
    display: flex;
    background: #f5f7fb;
}


.admin-main-area {
    flex: 1;
    min-width: 0;
    margin-left: 260px;
}



/* ==========================================
   SIDEBAR
========================================== */

.admin-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;

    width: 260px;

    display: flex;
    flex-direction: column;

    background: #111827;
    color: white;

    z-index: 3000;

    overflow-y: auto;

    box-shadow:
        4px 0 20px
        rgba(0, 0, 0, 0.08);
}



/* ==========================================
   SIDEBAR BRAND
========================================== */

.admin-sidebar-brand {
    display: flex;
    align-items: center;
    gap: 12px;

    padding: 24px 20px;

    border-bottom:
        1px solid
        rgba(255, 255, 255, 0.08);
}


.sidebar-brand-icon {
    width: 42px;
    height: 42px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 10px;

    background: #16a34a;

    color: white;

    font-size: 22px;
    font-weight: 800;
}


.admin-sidebar-brand strong {
    display: block;
    font-size: 18px;
}


.admin-sidebar-brand small {
    display: block;

    margin-top: 2px;

    color: #9ca3af;
}



/* ==========================================
   STORE INFORMATION
========================================== */

.sidebar-store {
    margin: 18px 16px 8px;

    padding: 14px;

    background:
        rgba(255, 255, 255, 0.06);

    border-radius: 10px;
}


.sidebar-store small {
    display: block;

    margin-bottom: 5px;

    color: #9ca3af;

    font-size: 10px;

    letter-spacing: 1px;
}


.sidebar-store strong {
    display: block;

    overflow: hidden;

    text-overflow: ellipsis;

    white-space: nowrap;
}



/* ==========================================
   NAVIGATION
========================================== */

.admin-navigation {
    flex: 1;

    padding: 12px;
}


.admin-nav-button {
    width: 100%;

    display: flex;
    align-items: center;

    gap: 13px;

    padding: 13px 14px;

    margin-bottom: 5px;

    border: none;

    border-radius: 8px;

    background: transparent;

    color: #d1d5db;

    text-align: left;

    font-size: 14px;

    cursor: pointer;

    transition:
        background 0.2s,
        color 0.2s;
}


.admin-nav-button:hover {
    background:
        rgba(255, 255, 255, 0.08);

    color: white;
}


.admin-nav-button.active {
    background: #16a34a;

    color: white;

    font-weight: 600;
}


.admin-nav-icon {
    width: 24px;

    display: inline-flex;

    align-items: center;

    justify-content: center;

    font-size: 17px;
}



/* ==========================================
   SIDEBAR FOOTER
========================================== */

.admin-sidebar-footer {
    padding: 16px;

    border-top:
        1px solid
        rgba(255, 255, 255, 0.08);
}


.sidebar-store-link,
.sidebar-logout-button {
    width: 100%;

    display: block;

    box-sizing: border-box;

    padding: 11px 13px;

    margin-top: 7px;

    border-radius: 7px;

    text-decoration: none;

    font-size: 13px;

    cursor: pointer;
}


.sidebar-store-link {
    background:
        rgba(255, 255, 255, 0.08);

    color: white;
}


.sidebar-logout-button {
    border: none;

    background: transparent;

    color: #fca5a5;

    text-align: left;
}


.sidebar-store-link:hover,
.sidebar-logout-button:hover {
    background:
        rgba(255, 255, 255, 0.13);
}



/* ==========================================
   ADMIN PAGE
========================================== */

.admin-page {
    display: block;
    animation:
        adminPageFade
        0.2s ease;
}


.admin-page.hidden {
    display: none !important;
}


@keyframes adminPageFade {

    from {
        opacity: 0;
        transform:
            translateY(4px);
    }

    to {
        opacity: 1;
        transform:
            translateY(0);
    }

}



/* ==========================================
   TOPBAR
========================================== */

.admin-topbar {
    position: sticky;

    top: 0;

    z-index: 1000;

    min-height: 72px;

    box-sizing: border-box;

    background:
        rgba(255, 255, 255, 0.96);

    backdrop-filter:
        blur(10px);

    border-bottom:
        1px solid #e5e7eb;
}


.admin-topbar-left {
    display: flex;

    align-items: center;

    gap: 14px;
}


.admin-topbar-left h2 {
    margin: 0;

    font-size: 20px;
}


.topbar-store-name {
    color: #555;

    font-size: 13px;

    font-weight: 600;
}



/* ==========================================
   MOBILE MENU BUTTON
========================================== */

.admin-menu-button {
    display: none;

    width: 40px;
    height: 40px;

    border: none;

    border-radius: 8px;

    background: #f3f4f6;

    color: #111827;

    font-size: 21px;

    cursor: pointer;
}



/* ==========================================
   MOBILE OVERLAY
========================================== */

.admin-sidebar-overlay {
    display: none;

    position: fixed;

    inset: 0;

    z-index: 2500;

    background:
        rgba(17, 24, 39, 0.55);
}


.admin-sidebar-overlay.show {
    display: block;
}



/* ==========================================
   DESKTOP ADMIN CONTAINER
========================================== */

.admin-container {
    width: 100%;

    max-width: 1500px;

    box-sizing: border-box;

    margin: 0 auto;

    padding:
        25px
        28px
        50px;
}



/* ==========================================
   TABLET / MOBILE
========================================== */

@media(max-width: 900px) {

    .admin-main-area {
        margin-left: 0;
    }


    .admin-sidebar {
        transform:
            translateX(-100%);

        transition:
            transform 0.25s ease;

        box-shadow:
            15px 0 40px
            rgba(0, 0, 0, 0.2);
    }


    .admin-sidebar.open {
        transform:
            translateX(0);
    }


    .admin-menu-button {
        display:
            inline-flex;

        align-items:
            center;

        justify-content:
            center;
    }


    body.sidebar-open {
        overflow:
            hidden;
    }


    .topbar-store-name {
        display:
            none;
    }

}



/* ==========================================
   MOBILE
========================================== */

@media(max-width: 650px) {

    .admin-sidebar {
        width:
            min(
                285px,
                85vw
            );
    }


    .admin-container {
        padding:
            18px
            12px
            40px;
    }


    .admin-topbar {
        padding:
            12px;
    }


    .admin-top-actions
    .store-link-button,

    .admin-top-actions
    .logout-button {
        display:
            none;
    }


    .admin-topbar-left h2 {
        font-size:
            18px;
    }

}

/* ==========================================
   WHATSORDER PLAN & BILLING
   PHASE 2J2
========================================== */


/* SIDEBAR PLAN BADGE */

.sidebar-plan-badge {
    display: inline-block;
    margin-top: 9px;
    padding: 4px 8px;
    border-radius: 20px;
    background: rgba(22, 163, 74, 0.18);
    color: #86efac;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.7px;
}


/* CURRENT PLAN */

.subscription-current-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
}


.subscription-eyebrow {
    display: block;
    margin-bottom: 7px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1px;
    color: #6b7280;
}


.subscription-current-header h2 {
    margin: 0 0 5px;
    font-size: 30px;
}


.subscription-current-header p {
    margin: 0;
    color: #6b7280;
}


.subscription-main-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 13px;
    border-radius: 20px;
    background: #dcfce7;
    color: #166534;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.8px;
}


/* SUBSCRIPTION SUMMARY */

.subscription-summary-grid {
    display: grid;
    grid-template-columns:
        repeat(
            4,
            minmax(0, 1fr)
        );
    gap: 15px;
    margin-top: 25px;
}


.subscription-summary-grid > div {
    padding: 16px;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    background: #fafafa;
}


.subscription-summary-grid span {
    display: block;
    margin-bottom: 6px;
    color: #6b7280;
    font-size: 12px;
}


.subscription-summary-grid strong {
    font-size: 15px;
    color: #111827;
}


/* USAGE */

.subscription-usage-grid {
    display: grid;
    grid-template-columns:
        repeat(
            3,
            minmax(0, 1fr)
        );
    gap: 18px;
}


.subscription-usage-card {
    padding: 18px;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    background: #ffffff;
}


.subscription-usage-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 13px;
}


.subscription-usage-heading span {
    font-size: 13px;
    color: #374151;
}


.subscription-usage-heading strong {
    font-size: 13px;
    color: #111827;
}


.subscription-progress {
    width: 100%;
    height: 9px;
    overflow: hidden;
    border-radius: 20px;
    background: #e5e7eb;
}


.subscription-progress-bar {
    width: 0;
    height: 100%;
    border-radius: inherit;
    background: #16a34a;
    transition: width 0.35s ease;
}


/* FEATURE GRID */

.subscription-feature-grid {
    display: grid;
    grid-template-columns:
        repeat(
            3,
            minmax(0, 1fr)
        );
    gap: 15px;
}


.subscription-feature-grid > div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
}


.subscription-feature-grid span {
    font-size: 13px;
    color: #374151;
}


.subscription-feature-enabled {
    color: #15803d;
    font-size: 12px;
}


.subscription-feature-disabled {
    color: #9ca3af;
    font-size: 12px;
}


/* PLAN CARDS */

.subscription-plans-grid {
    display: grid;
    grid-template-columns:
        repeat(
            4,
            minmax(0, 1fr)
        );
    gap: 18px;
}


.subscription-plan-card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: 21px;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    background: #ffffff;
    transition:
        transform 0.2s,
        box-shadow 0.2s,
        border-color 0.2s;
}


.subscription-plan-card:hover {
    transform: translateY(-3px);
    box-shadow:
        0 12px 30px
        rgba(17, 24, 39, 0.08);
}


.subscription-plan-card.current-plan {
    border: 2px solid #16a34a;
}


.subscription-plan-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
}


.subscription-plan-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 700;
    color: #111827;
}


.subscription-plan-header h3 {
    margin: 0;
    font-size: 27px;
    color: #111827;
}


.subscription-plan-header h3 small {
    font-size: 12px;
    font-weight: 500;
    color: #6b7280;
}


.subscription-current-badge {
    padding: 5px 8px;
    border-radius: 20px;
    background: #dcfce7;
    color: #166534;
    font-size: 9px;
    font-weight: 800;
}


.subscription-plan-description {
    min-height: 55px;
    margin: 17px 0;
    font-size: 13px;
    line-height: 1.55;
    color: #6b7280;
}


.subscription-plan-features {
    flex: 1;
    margin-bottom: 20px;
}


.subscription-plan-features > div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 9px 0;
    border-bottom: 1px solid #f3f4f6;
}


.subscription-plan-features span {
    font-size: 12px;
    color: #6b7280;
}


.subscription-plan-features strong {
    font-size: 12px;
    color: #111827;
}


/* PLAN BUTTON */

.subscription-plan-button {
    width: 100%;
    padding: 11px 14px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 700;
}


.upgrade-plan-button {
    border: none;
    background: #16a34a;
    color: white;
    cursor: pointer;
}


.upgrade-plan-button:hover {
    background: #15803d;
}


.current-plan-button {
    border: 1px solid #d1d5db;
    background: #f9fafb;
    color: #6b7280;
    cursor: default;
}


.subscription-empty-state {
    grid-column: 1 / -1;
    padding: 40px 20px;
    text-align: center;
    color: #6b7280;
}


/* RESPONSIVE */

@media(max-width: 1200px) {

    .subscription-plans-grid {
        grid-template-columns:
            repeat(
                2,
                minmax(0, 1fr)
            );
    }

}


@media(max-width: 850px) {

    .subscription-summary-grid {
        grid-template-columns:
            repeat(
                2,
                minmax(0, 1fr)
            );
    }


    .subscription-usage-grid,
    .subscription-feature-grid {
        grid-template-columns:
            1fr;
    }

}


@media(max-width: 600px) {

    .subscription-plans-grid,
    .subscription-summary-grid {
        grid-template-columns:
            1fr;
    }


    .subscription-current-header {
        flex-direction: column;
    }


    .subscription-plan-description {
        min-height: 0;
    }

}

/* ==========================================
   SUBSCRIPTION MANUAL BANK TRANSFER
========================================== */

.subscription-bank-transfer-modal-content {
    max-width: 620px;
}


.subscription-bank-plan-summary {
    display: grid;
    grid-template-columns:
        repeat(
            3,
            1fr
        );
    gap: 12px;
    margin-bottom: 22px;
}


.subscription-bank-plan-summary > div {
    padding: 14px;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    background: #f8fafc;
}


.subscription-bank-plan-summary span {
    display: block;
    margin-bottom: 5px;
    color: #64748b;
    font-size: 12px;
}


.subscription-bank-plan-summary strong {
    color: #111827;
    font-size: 15px;
}


/* ==========================================
   BANK DETAILS
========================================== */

.subscription-bank-details {
    margin-bottom: 22px;
    padding: 18px;
    border: 1px solid #dbe3ea;
    border-radius: 12px;
    background: #f8fafc;
}


.subscription-bank-details-heading {
    margin-bottom: 14px;
}


.subscription-bank-details-heading h3 {
    margin:
        0
        0
        5px;
    color: #111827;
    font-size: 16px;
}


.subscription-bank-details-heading p {
    margin: 0;
    color: #64748b;
    font-size: 13px;
    line-height: 1.5;
}


.subscription-bank-detail-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    padding: 11px 0;
    border-bottom: 1px solid #e5e7eb;
}


.subscription-bank-detail-row span {
    color: #64748b;
    font-size: 13px;
}


.subscription-bank-detail-row strong {
    color: #111827;
    font-size: 14px;
    text-align: right;
    overflow-wrap: anywhere;
}


#copySubscriptionBankAccountButton {
    width: 100%;
    margin-top: 14px;
}


.subscription-bank-instructions {
    margin-top: 14px;
    padding: 12px 14px;
    border-radius: 9px;
    background: #ecfdf5;
    color: #166534;
    font-size: 13px;
    line-height: 1.6;
}


/* ==========================================
   TRANSFER REFERENCE
========================================== */

.subscription-bank-reference-section {
    margin-bottom: 20px;
}


.subscription-bank-reference-section
.form-group {
    margin: 0;
}


.subscription-bank-reference-section input {
    width: 100%;
}


/* ==========================================
   PENDING NOTICE
========================================== */

.subscription-bank-pending-notice {
    margin-bottom: 20px;
    padding: 14px 16px;
    border: 1px solid #fde68a;
    border-radius: 10px;
    background: #fffbeb;
}


.subscription-bank-pending-notice strong {
    display: block;
    margin-bottom: 5px;
    color: #92400e;
    font-size: 14px;
}


.subscription-bank-pending-notice p {
    margin: 0;
    color: #92400e;
    font-size: 13px;
    line-height: 1.6;
}


/* ==========================================
   MOBILE
========================================== */

@media (max-width: 650px) {

    .subscription-bank-plan-summary {
        grid-template-columns:
            1fr;
    }


    .subscription-bank-detail-row {
        display: block;
    }


    .subscription-bank-detail-row span {
        display: block;
        margin-bottom: 4px;
    }


    .subscription-bank-detail-row strong {
        display: block;
        text-align: left;
    }

}

/* ==========================================
   WHATSORDER
   SUBSCRIPTION MANAGEMENT
   PHASE 2J3C
========================================== */

.subscription-management-grid {
    display: grid;
    grid-template-columns:
        repeat(
            4,
            minmax(0, 1fr)
        );
    gap: 15px;
    margin-top: 20px;
}


.subscription-management-item {
    padding: 17px;
    border: 1px solid #e5e7eb;
    border-radius: 11px;
    background: #fafafa;
    min-width: 0;
}


.subscription-management-item span {
    display: block;
    margin-bottom: 7px;
    color: #6b7280;
    font-size: 12px;
}


.subscription-management-item strong {
    display: block;
    overflow-wrap: anywhere;
    color: #111827;
    font-size: 14px;
}


.subscription-management-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 22px;
}


.subscription-management-actions button {
    width: auto;
    min-width: 170px;
}


.subscription-management-actions button:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}


@media(max-width: 1100px) {

    .subscription-management-grid {
        grid-template-columns:
            repeat(
                2,
                minmax(0, 1fr)
            );
    }

}


@media(max-width: 650px) {

    .subscription-management-grid {
        grid-template-columns:
            1fr;
    }


    .subscription-management-actions {
        flex-direction: column;
        align-items: stretch;
    }


    .subscription-management-actions button {
        width: 100%;
    }

}

/* ==========================================
   WHATSORDER
   FEATURE ENTITLEMENTS
   PHASE 2J3D2
========================================== */


/* ==========================================
   ANALYTICS LOCK
========================================== */

.analytics-locked-banner {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-bottom: 22px;
    padding: 20px;
    border: 1px solid #dbe3ec;
    border-radius: 14px;
    background: #ffffff;
}


.analytics-lock-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    flex: 0 0 48px;
    border-radius: 12px;
    background: #f3f4f6;
    font-size: 23px;
}


.analytics-lock-content {
    flex: 1;
}


.analytics-lock-content h3 {
    margin: 0 0 5px;
    color: #111827;
}


.analytics-lock-content p {
    margin: 0;
    color: #6b7280;
    line-height: 1.5;
}


.analytics-feature-locked {
    display: none !important;
}


/* ==========================================
   USAGE WARNINGS
========================================== */

.subscription-usage-card.usage-warning {
    border-color: #f59e0b;
    background: #fffbeb;
}


.subscription-usage-card.usage-danger {
    border-color: #dc2626;
    background: #fef2f2;
}


.subscription-usage-warning {
    margin-top: 12px;
    font-size: 12px;
    line-height: 1.5;
    color: #6b7280;
}


.usage-warning
.subscription-usage-warning {
    color: #92400e;
}


.usage-danger
.subscription-usage-warning {
    color: #991b1b;
}


.subscription-usage-warning button {
    margin-left: 7px;
    padding: 4px 8px;
    border: none;
    border-radius: 6px;
    background: #16a34a;
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
}


/* ==========================================
   BRANDING FEATURE
========================================== */

.feature-status-badge {
    padding: 6px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
}


.feature-status-active {
    background: #dcfce7;
    color: #166534;
}


.feature-status-locked {
    background: #f3f4f6;
    color: #6b7280;
}


.branding-setting-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
    padding: 20px;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    background: #fafafa;
}


.branding-setting-card h3 {
    margin: 0 0 6px;
    font-size: 16px;
}


.branding-setting-card p {
    margin: 0;
    color: #6b7280;
    font-size: 13px;
}


/* SWITCH */

.branding-switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 28px;
    flex: 0 0 50px;
}


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


.branding-slider {
    position: absolute;
    inset: 0;
    border-radius: 30px;
    background: #d1d5db;
    cursor: pointer;
    transition: 0.2s;
}


.branding-slider::before {
    content: "";
    position: absolute;
    width: 22px;
    height: 22px;
    left: 3px;
    top: 3px;
    border-radius: 50%;
    background: #ffffff;
    transition: 0.2s;
}


.branding-switch
input:checked
+
.branding-slider {
    background: #16a34a;
}


.branding-switch
input:checked
+
.branding-slider::before {
    transform: translateX(22px);
}


.branding-switch
input:disabled
+
.branding-slider {
    opacity: 0.45;
    cursor: not-allowed;
}


.branding-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 18px;
}

#saveBrandingButton:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
}

/* RESPONSIVE */

@media(max-width: 700px) {

    .analytics-locked-banner {
        align-items: flex-start;
        flex-direction: column;
    }


    .branding-setting-card {
        align-items: flex-start;
    }

}

/* ==========================================
   WHATSORDER
   BILLING LIFECYCLE + HISTORY
   PHASE 2J3E
========================================== */


/* ==========================================
   LIFECYCLE BANNER
========================================== */

.billing-lifecycle-banner {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-bottom: 22px;
    padding: 20px;
    border: 1px solid #dbe3ec;
    border-radius: 14px;
}


.billing-lifecycle-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    flex: 0 0 48px;
    border-radius: 12px;
    font-size: 22px;
}


.billing-lifecycle-content {
    flex: 1;
}


.billing-lifecycle-content h3 {
    margin: 0 0 5px;
    font-size: 16px;
}


.billing-lifecycle-content p {
    margin: 0;
    line-height: 1.55;
    font-size: 13px;
}


.billing-lifecycle-success {
    border-color: #bbf7d0;
    background: #f0fdf4;
}


.billing-lifecycle-success
.billing-lifecycle-icon {
    background: #dcfce7;
}


.billing-lifecycle-success
.billing-lifecycle-content h3 {
    color: #166534;
}


.billing-lifecycle-warning {
    border-color: #fde68a;
    background: #fffbeb;
}


.billing-lifecycle-warning
.billing-lifecycle-icon {
    background: #fef3c7;
}


.billing-lifecycle-warning
.billing-lifecycle-content h3 {
    color: #92400e;
}


.billing-lifecycle-danger {
    border-color: #fecaca;
    background: #fef2f2;
}


.billing-lifecycle-danger
.billing-lifecycle-icon {
    background: #fee2e2;
}


.billing-lifecycle-danger
.billing-lifecycle-content h3 {
    color: #991b1b;
}


.billing-lifecycle-info {
    border-color: #bfdbfe;
    background: #eff6ff;
}


.billing-lifecycle-info
.billing-lifecycle-icon {
    background: #dbeafe;
}


.billing-lifecycle-info
.billing-lifecycle-content h3 {
    color: #1e40af;
}



/* ==========================================
   BILLING SUMMARY
========================================== */

.billing-summary-grid {
    display: grid;
    grid-template-columns:
        repeat(
            4,
            minmax(0, 1fr)
        );
    gap: 15px;
    margin-top: 20px;
}


.billing-summary-card {
    padding: 18px;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    background: #fafafa;
}


.billing-summary-card span {
    display: block;
    margin-bottom: 8px;
    color: #6b7280;
    font-size: 12px;
}


.billing-summary-card strong {
    display: block;
    color: #111827;
    font-size: 17px;
}



/* ==========================================
   PAYMENT STATUS
========================================== */

.billing-payment-status {
    display: inline-flex;
    align-items: center;
    padding: 5px 9px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
}


.billing-payment-success {
    background: #dcfce7;
    color: #166534;
}


.billing-payment-failed {
    background: #fee2e2;
    color: #991b1b;
}


.billing-payment-pending {
    background: #fef3c7;
    color: #92400e;
}



/* ==========================================
   REFERENCE
========================================== */

.billing-reference {
    display: inline-block;
    max-width: 220px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    padding: 4px 6px;
    border-radius: 5px;
    background: #f3f4f6;
    font-size: 11px;
}



/* ==========================================
   RESPONSIVE
========================================== */

@media(max-width: 1000px) {

    .billing-summary-grid {
        grid-template-columns:
            repeat(
                2,
                minmax(0, 1fr)
            );
    }

}


@media(max-width: 650px) {

    .billing-summary-grid {
        grid-template-columns:
            1fr;
    }


    .billing-lifecycle-banner {
        flex-direction: column;
        align-items: flex-start;
    }


    .billing-lifecycle-banner button {
        width: 100%;
    }

}

/* ==========================================
   WHATSORDER
   MERCHANT ONBOARDING
   PHASE 2J3F
========================================== */

body.onboarding-open {
    overflow: hidden;
}


.onboarding-overlay {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 25px;
    background: rgba(15, 23, 42, 0.72);
    overflow-y: auto;
}


.onboarding-shell {
    width: min(760px, 100%);
    max-height: calc(100vh - 50px);
    overflow-y: auto;
    padding: 28px;
    border-radius: 18px;
    background: #ffffff;
    box-shadow:
        0 25px 70px
        rgba(0, 0, 0, 0.22);
}


.onboarding-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 20px;
}


.onboarding-header h2 {
    margin: 4px 0 5px;
    font-size: 25px;
}


.onboarding-header p {
    margin: 0;
    color: #6b7280;
    line-height: 1.5;
}


.onboarding-eyebrow {
    color: #16a34a;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.08em;
}


.onboarding-later-button {
    flex: 0 0 auto;
    padding: 8px 11px;
    border: 0;
    background: transparent;
    color: #6b7280;
    cursor: pointer;
}


.onboarding-later-button:hover {
    color: #111827;
}


.onboarding-progress {
    height: 8px;
    overflow: hidden;
    border-radius: 20px;
    background: #e5e7eb;
}


.onboarding-progress-bar {
    width: 16.666%;
    height: 100%;
    border-radius: inherit;
    background: #16a34a;
    transition: width 0.25s ease;
}


.onboarding-step-label {
    margin-top: 9px;
    margin-bottom: 22px;
    color: #6b7280;
    font-size: 12px;
}


.onboarding-step {
    min-height: 310px;
}


.onboarding-step h3 {
    margin: 8px 0 6px;
    color: #111827;
    font-size: 20px;
}


.onboarding-step > p {
    margin: 0 0 22px;
    color: #6b7280;
    line-height: 1.5;
}


.onboarding-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 26px;
}


.onboarding-existing-info {
    margin-bottom: 18px;
    padding: 12px 14px;
    border: 1px solid #bbf7d0;
    border-radius: 10px;
    background: #f0fdf4;
    color: #166534;
    font-size: 13px;
}


.onboarding-publish-icon {
    margin-top: 15px;
    text-align: center;
    font-size: 52px;
}


#onboardingStep6 {
    text-align: center;
}


.onboarding-ready-list {
    display: grid;
    grid-template-columns:
        repeat(
            2,
            minmax(0, 1fr)
        );
    gap: 10px;
    max-width: 500px;
    margin: 25px auto;
    text-align: left;
}


.onboarding-ready-list div {
    padding: 12px;
    border-radius: 9px;
    background: #f0fdf4;
    color: #166534;
    font-size: 13px;
}


#onboardingStep6
.onboarding-actions {
    justify-content: center;
}


@media(max-width: 650px) {

    .onboarding-overlay {
        padding: 0;
    }


    .onboarding-shell {
        min-height: 100vh;
        max-height: none;
        border-radius: 0;
        padding: 20px;
    }


    .onboarding-header {
        flex-direction: column;
    }


    .onboarding-ready-list {
        grid-template-columns: 1fr;
    }


    .onboarding-actions {
        flex-direction: column-reverse;
    }


    .onboarding-actions button {
        width: 100%;
    }

}

/* ==========================================
   WHATSORDER
   MERCHANT DASHBOARD HOME
   PHASE 2J3G
========================================== */


/* ==========================================
   WELCOME
========================================== */

.merchant-welcome-panel {
    margin-bottom: 24px;
    padding: 26px;
    border-radius: 18px;
    background:
        linear-gradient(
            135deg,
            #ffffff,
            #f0fdf4
        );
    border: 1px solid #d1fae5;
}


.merchant-welcome-main {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 25px;
}


.merchant-welcome-eyebrow {
    display: block;
    margin-bottom: 7px;
    color: #16a34a;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.08em;
}


.merchant-welcome-main h2 {
    margin: 0 0 6px;
    color: #111827;
    font-size: 25px;
}


.merchant-welcome-main p {
    margin: 0;
    color: #6b7280;
    line-height: 1.55;
}


.merchant-store-status {
    min-width: 120px;
    text-align: right;
}


.merchant-store-status > span {
    display: block;
    margin-bottom: 7px;
    color: #6b7280;
    font-size: 11px;
}


.merchant-status-badge {
    display: inline-flex;
    align-items: center;
    padding: 6px 11px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 800;
}


.merchant-status-live {
    background: #dcfce7;
    color: #166534;
}


.merchant-status-draft {
    background: #fef3c7;
    color: #92400e;
}


.merchant-welcome-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 22px;
}



/* ==========================================
   DASHBOARD GRID
========================================== */

.merchant-dashboard-grid {
    display: grid;
    grid-template-columns:
        repeat(
            2,
            minmax(0, 1fr)
        );
    gap: 22px;
    margin-bottom: 22px;
}



/* ==========================================
   SETUP
========================================== */

.merchant-setup-score {
    display: inline-flex;
    padding: 7px 10px;
    border-radius: 20px;
    background: #f0fdf4;
    color: #166534;
    font-size: 12px;
    font-weight: 800;
}


.merchant-setup-progress {
    height: 8px;
    overflow: hidden;
    margin: 15px 0 20px;
    border-radius: 20px;
    background: #e5e7eb;
}


.merchant-setup-progress-bar {
    width: 0;
    height: 100%;
    border-radius: inherit;
    background: #16a34a;
    transition: width 0.35s ease;
}


.merchant-checklist {
    display: grid;
    gap: 9px;
}


.merchant-checklist-item {
    display: flex;
    align-items: flex-start;
    gap: 11px;
    padding: 11px;
    border-radius: 10px;
    background: #fafafa;
}


.merchant-check-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 23px;
    height: 23px;
    flex: 0 0 23px;
    border-radius: 50%;
    background: #e5e7eb;
    color: #6b7280;
    font-size: 13px;
    font-weight: 800;
}


.merchant-checklist-item strong {
    display: block;
    margin-bottom: 2px;
    color: #111827;
    font-size: 13px;
}


.merchant-checklist-item small {
    color: #6b7280;
    line-height: 1.4;
}


.merchant-checklist-item.completed {
    background: #f0fdf4;
}


.merchant-checklist-item.completed
.merchant-check-icon {
    background: #16a34a;
    color: #ffffff;
}



/* ==========================================
   QUICK ACTIONS
========================================== */

.merchant-quick-actions {
    display: grid;
    grid-template-columns:
        repeat(
            2,
            minmax(0, 1fr)
        );
    gap: 11px;
    margin-top: 18px;
}


.merchant-quick-actions button {
    display: flex;
    align-items: flex-start;
    gap: 11px;
    width: 100%;
    padding: 15px;
    border: 1px solid #e5e7eb;
    border-radius: 11px;
    background: #ffffff;
    text-align: left;
    cursor: pointer;
    transition:
        transform 0.18s ease,
        border-color 0.18s ease,
        box-shadow 0.18s ease;
}


.merchant-quick-actions button:hover {
    transform: translateY(-2px);
    border-color: #86efac;
    box-shadow:
        0 8px 20px
        rgba(15, 23, 42, 0.07);
}


.merchant-quick-actions button > span {
    font-size: 22px;
}


.merchant-quick-actions strong {
    display: block;
    margin-bottom: 3px;
    color: #111827;
    font-size: 13px;
}


.merchant-quick-actions small {
    color: #6b7280;
    line-height: 1.4;
}



/* ==========================================
   PLAN USAGE
========================================== */

.merchant-plan-usage-grid {
    display: grid;
    grid-template-columns:
        repeat(
            3,
            minmax(0, 1fr)
        );
    gap: 15px;
    margin-top: 18px;
}


.merchant-plan-usage-card {
    padding: 16px;
    border: 1px solid #e5e7eb;
    border-radius: 11px;
    background: #fafafa;
}


.merchant-plan-usage-card > div:first-child {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
}


.merchant-plan-usage-card span {
    color: #374151;
    font-size: 12px;
}


.merchant-plan-usage-card strong {
    color: #111827;
    font-size: 13px;
}


.merchant-usage-progress {
    height: 7px;
    overflow: hidden;
    margin-top: 13px;
    border-radius: 20px;
    background: #e5e7eb;
}


.merchant-usage-progress-bar {
    width: 0;
    height: 100%;
    border-radius: inherit;
    background: #16a34a;
    transition: width 0.35s ease;
}


.merchant-usage-progress-bar.usage-medium {
    background: #f59e0b;
}


.merchant-usage-progress-bar.usage-high {
    background: #dc2626;
}



/* ==========================================
   FIRST SALE
========================================== */

.merchant-first-sale-grid {
    display: grid;
    grid-template-columns:
        repeat(
            4,
            minmax(0, 1fr)
        );
    gap: 14px;
    margin-top: 20px;
}


.merchant-first-sale-grid > div {
    padding: 16px;
    border: 1px solid #e5e7eb;
    border-radius: 11px;
    background: #fafafa;
}


.merchant-first-sale-grid > div > span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    margin-bottom: 12px;
    border-radius: 50%;
    background: #16a34a;
    color: #ffffff;
    font-size: 12px;
    font-weight: 800;
}


.merchant-first-sale-grid strong {
    display: block;
    margin-bottom: 6px;
    color: #111827;
    font-size: 13px;
}


.merchant-first-sale-grid p {
    margin: 0;
    color: #6b7280;
    font-size: 12px;
    line-height: 1.5;
}


.merchant-first-sale-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
}



/* ==========================================
   FIRST ORDER SUCCESS
========================================== */

.merchant-first-order-success {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 22px;
    padding: 20px;
    border: 1px solid #bbf7d0;
    border-radius: 14px;
    background: #f0fdf4;
}


.merchant-first-order-success > div {
    display: flex;
    align-items: center;
    gap: 14px;
}


.merchant-success-icon {
    font-size: 30px;
}


.merchant-first-order-success h3 {
    margin: 0 0 4px;
    color: #166534;
}


.merchant-first-order-success p {
    margin: 0;
    color: #4b5563;
    font-size: 13px;
}



/* ==========================================
   QR MODAL
========================================== */

body.merchant-modal-open {
    overflow: hidden;
}


.merchant-qr-modal {
    position: fixed;
    inset: 0;
    z-index: 12000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}


.merchant-qr-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.7);
}


.merchant-qr-card {
    position: relative;
    z-index: 1;
    width: min(430px, 100%);
    padding: 28px;
    border-radius: 18px;
    background: #ffffff;
    text-align: center;
    box-shadow:
        0 25px 70px
        rgba(0, 0, 0, 0.25);
}


.merchant-qr-card h2 {
    margin: 5px 0 6px;
}


.merchant-qr-card p {
    margin: 0;
    color: #6b7280;
}


.merchant-qr-close {
    position: absolute;
    top: 12px;
    right: 14px;
    width: 34px;
    height: 34px;
    border: none;
    border-radius: 50%;
    background: #f3f4f6;
    font-size: 22px;
    cursor: pointer;
}


.merchant-qr-code {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 220px;
    height: 220px;
    margin: 22px auto 15px;
    padding: 15px;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
}


.merchant-qr-code img,
.merchant-qr-code canvas {
    max-width: 100%;
}


.merchant-qr-link {
    overflow-wrap: anywhere;
    padding: 10px;
    border-radius: 8px;
    background: #f9fafb;
    color: #6b7280;
    font-size: 11px;
}


.merchant-qr-actions {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 9px;
    margin-top: 18px;
}



/* ==========================================
   RESPONSIVE
========================================== */

@media(max-width: 1000px) {

    .merchant-dashboard-grid {
        grid-template-columns:
            1fr;
    }


    .merchant-plan-usage-grid {
        grid-template-columns:
            1fr;
    }


    .merchant-first-sale-grid {
        grid-template-columns:
            repeat(
                2,
                minmax(0, 1fr)
            );
    }

}


@media(max-width: 650px) {

    .merchant-welcome-main {
        flex-direction: column;
    }


    .merchant-store-status {
        text-align: left;
    }


    .merchant-welcome-actions {
        flex-direction: column;
    }


    .merchant-welcome-actions button {
        width: 100%;
    }


    .merchant-quick-actions {
        grid-template-columns:
            1fr;
    }


    .merchant-first-sale-grid {
        grid-template-columns:
            1fr;
    }


    .merchant-first-sale-actions {
        flex-direction: column;
    }


    .merchant-first-sale-actions button {
        width: 100%;
    }


    .merchant-first-order-success {
        align-items: flex-start;
        flex-direction: column;
    }


    .merchant-first-order-success button {
        width: 100%;
    }


    .merchant-qr-actions {
        flex-direction: column;
    }


    .merchant-qr-actions button {
        width: 100%;
    }

}

/* ==========================================
   WHATSORDER
   MERCHANT NOTIFICATIONS
   PHASE 2J3H
========================================== */

.merchant-notification-wrapper {
    position: relative;
}


.merchant-notification-button {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    background: #ffffff;
    cursor: pointer;
    font-size: 18px;
}


.merchant-notification-button:hover {
    background: #f9fafb;
}


.merchant-notification-badge {
    position: absolute;
    top: -6px;
    right: -6px;
    min-width: 19px;
    height: 19px;
    padding: 0 5px;
    border: 2px solid #ffffff;
    border-radius: 20px;
    background: #dc2626;
    color: #ffffff;
    font-size: 10px;
    font-weight: 800;
    line-height: 15px;
}


.merchant-notification-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    z-index: 11000;
    width: min(390px, calc(100vw - 30px));
    max-height: 520px;
    overflow: hidden;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    background: #ffffff;
    box-shadow:
        0 20px 50px
        rgba(15, 23, 42, 0.16);
}


.merchant-notification-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    padding: 16px;
    border-bottom: 1px solid #e5e7eb;
}


.merchant-notification-header strong {
    display: block;
    color: #111827;
}


.merchant-notification-header small {
    display: block;
    margin-top: 2px;
    color: #6b7280;
}


.merchant-notification-header button {
    border: 0;
    background: transparent;
    color: #16a34a;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
}


.merchant-notification-list {
    max-height: 430px;
    overflow-y: auto;
}


.merchant-notification-item {
    display: flex;
    align-items: flex-start;
    gap: 11px;
    width: 100%;
    padding: 14px 15px;
    border: 0;
    border-bottom: 1px solid #f3f4f6;
    background: #ffffff;
    text-align: left;
    cursor: pointer;
}


.merchant-notification-item:hover {
    background: #f9fafb;
}


.merchant-notification-item.unread {
    background: #f0fdf4;
}


.merchant-notification-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    flex: 0 0 36px;
    border-radius: 10px;
    background: #f3f4f6;
    font-size: 17px;
}


.merchant-notification-content {
    flex: 1;
    min-width: 0;
}


.merchant-notification-title {
    display: flex;
    align-items: center;
    gap: 7px;
}


.merchant-notification-title strong {
    color: #111827;
    font-size: 12px;
}


.merchant-notification-dot {
    width: 7px;
    height: 7px;
    flex: 0 0 7px;
    border-radius: 50%;
    background: #16a34a;
}


.merchant-notification-content p {
    margin: 4px 0;
    color: #4b5563;
    font-size: 12px;
    line-height: 1.45;
}


.merchant-notification-content small {
    color: #9ca3af;
    font-size: 10px;
}


.merchant-notification-item.priority-critical {
    border-left: 3px solid #dc2626;
}


.merchant-notification-item.priority-high {
    border-left: 3px solid #f59e0b;
}


.merchant-notification-empty {
    padding: 35px 20px;
    text-align: center;
    color: #6b7280;
    font-size: 12px;
}


@media(max-width: 650px) {

    .merchant-notification-dropdown {
        position: fixed;
        top: 70px;
        left: 15px;
        right: 15px;
        width: auto;
    }

}

/* ==========================================
   WHATSORDER
   SECURITY + ACTIVITY LOG
   PHASE 2J3I1
========================================== */

.merchant-audit-summary {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}


.merchant-audit-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    border-radius: 9px;
    background: #f3f4f6;
    font-size: 16px;
}


.merchant-audit-summary strong {
    display: block;
    color: #111827;
    font-size: 12px;
}


.merchant-audit-summary small {
    display: block;
    margin-top: 3px;
    color: #6b7280;
    font-size: 10px;
}


.merchant-audit-event-badge {
    display: inline-flex;
    padding: 5px 8px;
    border-radius: 20px;
    font-size: 10px;
    font-weight: 700;
}


.merchant-audit-event-badge.audit-success {
    background: #dcfce7;
    color: #166534;
}


.merchant-audit-event-badge.audit-danger {
    background: #fee2e2;
    color: #991b1b;
}


.merchant-audit-event-badge.audit-info {
    background: #dbeafe;
    color: #1e40af;
}


.merchant-audit-source {
    display: inline-flex;
    padding: 5px 8px;
    border-radius: 20px;
    font-size: 10px;
    font-weight: 700;
}


.merchant-source-user {
    background: #f0fdf4;
    color: #166534;
}


.merchant-source-system {
    background: #f3f4f6;
    color: #4b5563;
}

/* ==========================================
   PASSWORD VISIBILITY TOGGLE
========================================== */

.password-input-wrapper {
    position: relative;
    width: 100%;
}

.password-input-wrapper input {
    width: 100%;
    padding-right: 52px;
}

.password-toggle-button {
    position: absolute;
    top: 50%;
    right: 8px;
    transform: translateY(-50%);

    width: 40px;
    height: 40px;

    display: flex;
    align-items: center;
    justify-content: center;

    border: none;
    background: transparent;

    cursor: pointer;
    font-size: 18px;
    line-height: 1;

    border-radius: 8px;
}

.password-toggle-button:hover {
    background: rgba(255, 255, 255, 0.06);
}

.password-toggle-button:focus-visible {
    outline: 2px solid currentColor;

/* ==========================================
   PLATFORM MERCHANT STATUS ACTION
========================================== */

.platform-merchant-status-button {
    margin-top: 0;
}

.platform-merchant-activate-button {
    background: #16a34a;
    color: #ffffff;
}

.platform-merchant-activate-button:hover {
    background: #15803d;
    color: #ffffff;
}

.platform-merchant-deactivate-button {
    background: #dc2626;
    color: #ffffff;
}

.platform-merchant-deactivate-button:hover {
    background: #b91c1c;
    color: #ffffff;
}

.platform-merchant-status-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}
