
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

    body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: #f8f9fa;
    line-height: 1.6;
    color: #333;

    padding-top: 110px; /* ✅ reserve space for fixed 2-row header */
}

@media (max-width: 850px){
    body{
        padding-top: 120px;
    }
}


/* ===== LEGACY HEADER DISABLED (replaced by .site-header enterprise system) =====
.header {
    background: #fff;
    border-bottom: 1px solid #e0e0e0;
    padding: 16px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}
*/

/* ===== Buyer Orders Pagination (Enterprise style) ===== */

.buyer-pagination {

    text-align: center;

    margin-top: 40px;
    margin-bottom: 10px;

}

.buyer-pagination a {

    display: inline-block;

}

.buyer-pagination a,
.buyer-pagination span {

    text-decoration: none;
    border-radius: 6px;
    padding: 6px 14px;
    margin: 0 4px;
    font-size: 14px;

}

/* Disabled state (first/last page) */
.buyer-pagination [aria-disabled="true"] {
    opacity: 0.45;
    cursor: not-allowed;
    pointer-events: none;
}

.buyer-pagination a {

    background: #ffffff;
    border: 1px solid #e5e7eb;
    color: #374151;

}

.buyer-pagination a:hover {

    background: #0F9F9A;
    border-color: #0F9F9A;
    color: #ffffff;

}

.buyer-pagination span {

    background: #0F9F9A;
    border: 1px solid #0F9F9A;
    color: #ffffff;

}

/* NEW — Buyer custom pagination buttons */
.buyer-pagination .buyer-page-btn{
    text-decoration: none;
    border-radius: 6px;
    padding: 6px 14px;
    margin: 0 4px;
    font-size: 14px;

    background: #ffffff;
    border: 1px solid #e5e7eb;
    color: #374151;
}

.buyer-pagination .buyer-page-btn:hover{
    background: #0F9F9A;
    border-color: #0F9F9A;
    color: #ffffff;
}



               /* ===== BeanJars NEW Header (2-row: header-strip + header-main) ===== */
        .site-header{
            position: fixed;      /* ✅ enterprise: works even when sticky is blocked */
            top: 0;
            left: 0;
            right: 0;
            width: 100%;
            z-index: 3000;        /* higher than most UI */
        }

        /* Ensure both rows keep their background while sticky */
        .site-header .header-strip,
        .site-header .header-main{
            background: #0F9F9A;
        }

        .header-content {
            max-width: 1200px;
            margin: 0 auto;
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 0 24px;
        }

        .logo {
            font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
            font-size: 24px;
            font-weight: 700;
            color: #0F9F9A;
            text-decoration: none;
        }

        .search-container {
            flex: 1;
            max-width: 600px;
            margin: 0 20px;
        }

    .search-form {
    display: block;     /* ENTERPRISE FIX: allow absolute positioning to anchor correctly */
    width: 100%;
    position: relative; /* anchor for inside icon */
}

        .search-input {
            flex: 1;
            padding: 10px 16px;
            border: 2px solid #0F9F9A;
            border-radius: 24px 0 0 24px;
            font-size: 14px;
            outline: none;
        }

        .search-button {
            background: #0F9F9A;
            color: white;
            border: none;
            padding: 10px 20px;
            border-radius: 0 24px 24px 0;
            cursor: pointer;
            font-size: 14px;
        }

        .user-menu {
            display: flex;
            align-items: center;
            gap: 12px;
            position: relative;
        }

        .username-display {
            font-weight: 600;
            color: #333;
            font-size: 14px;
        }

        .user-avatar {
            width: 40px;
            height: 40px;
            background: #0F9F9A;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-weight: 600;
            font-size: 16px;
            cursor: pointer;
            overflow: hidden;
            transition: transform 0.2s;
        }

        .user-avatar:hover {
            transform: scale(1.05);
        }

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

        .user-dropdown {
            position: absolute;
            top: 100%;
            right: 0;
            background: white;
            border: 1px solid #e0e0e0;
            border-radius: 8px;
            box-shadow: 0 4px 12px rgba(0,0,0,0.1);
            min-width: 200px;
            display: none;
            z-index: 1000;
            opacity: 0;
            transform: translateY(-10px);
            transition: opacity 0.2s, transform 0.2s;
        }

        .user-menu:hover .user-dropdown {
            display: block;
            opacity: 1;
            transform: translateY(0);
        }

        .user-dropdown a {
            display: block;
            padding: 12px 16px;
            color: #333;
            text-decoration: none;
            border-bottom: 1px solid #f0f0f0;
            transition: background-color 0.2s;
        }

        .user-dropdown a:hover {
            background: #f8f9fa;
            color: #0F9F9A;
        }

        .user-dropdown a:last-child {
            border-bottom: none;
        }

        .main-container {
            max-width: 1200px;
            margin: 32px auto;
            padding: 0 24px;
            display: grid;
            grid-template-columns: 280px 1fr;
            gap: 24px;
        }

        .sidebar {
            background: #fff;
            border-radius: 12px;
            padding: 0;
            box-shadow: 0 1px 3px rgba(0,0,0,0.1);
            height: fit-content;
        }


        .sidebar-section {
            padding: 20px;
            border-bottom: 1px solid #f0f0f0;
        }

        .sidebar-section:last-child {
            border-bottom: none;
        }

        .sidebar-title {
            font-size: 16px;
            font-weight: 600;
            color: #333;
            margin-bottom: 12px;
            cursor: pointer;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .sidebar-menu {
            list-style: none;
            display: none;
        }

        .sidebar-menu.show {
            display: block;
        }

        .sidebar-menu li {
            margin-bottom: 4px;
        }

        .sidebar-menu a {
            display: flex;
            align-items: center;
            padding: 10px 12px;
            color: #666;
            text-decoration: none;
            border-radius: 6px;
            transition: background-color 0.2s;
            font-size: 14px;
        }

        .sidebar-menu a:hover, .sidebar-menu a.active {
            background: #fff5f2;
            color: #0F9F9A;
        }

          .main-content {
            background: #fff;
            border-radius: 12px;
            padding: 24px;
            box-shadow: 0 1px 3px rgba(0,0,0,0.1);
            min-height: 600px;
        }

/* BeanJars: narrow page wrapper (Order Details etc) */
.bj-page-narrow {
    max-width: 720px;
    margin: 24px auto 40px auto;  /* ✅ add bottom breathing space */
    width: 100%;
    padding: 24px 16px;
    box-sizing: border-box;

    background: #fff;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

        /* DASHBOARD OVERVIEW - FIXED: Always show at top */
        .dashboard-overview {
            margin-bottom: 24px;
        }

        .section-title {
            font-size: 20px;
            color: #333;
            font-weight: 600;
            margin-bottom: 16px;
        }

        .stats-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
            gap: 16px;
            margin-bottom: 24px;
        }

        .stat-card {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            color: white;
            padding: 20px;
            border-radius: 8px;
            text-align: center;
            cursor: pointer;
            transition: transform 0.2s;
        }

        .stat-card:hover {
            transform: translateY(-2px);
        }

        .stat-card:nth-child(2) {
            background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
        }

        .stat-card:nth-child(3) {
            background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
        }

        .stat-number {
            font-size: 24px;
            font-weight: 700;
            margin-bottom: 4px;
        }

        .stat-label {
            font-size: 13px;
            opacity: 0.9;
        }

        .content-section {
            display: none;
        }

        .content-section.active {
            display: block;
        }

        .profile-container {
            display: grid;
            grid-template-columns: 1fr 300px;
            gap: 30px;
        }

        .profile-form {
            background: #fafafa;
            border-radius: 8px;
            padding: 24px;
        }

        .form-group {
            margin-bottom: 20px;
        }

        label {
            display: block;
            margin-bottom: 6px;
            color: #333;
            font-weight: 500;
            font-size: 14px;
        }

        .form-control {
            width: 100%;
            padding: 10px 12px;
            border: 1px solid #ddd;
            border-radius: 6px;
            font-size: 14px;
            font-family: inherit;
        }

        .form-control:focus {
            outline: none;
            border-color: #0F9F9A;
            box-shadow: 0 0 0 2px rgba(255, 111, 60, 0.1);
        }

        .image-upload {
            text-align: center;
            padding: 20px;
            border: 2px dashed #ddd;
            border-radius: 8px;
            background: #fafafa;
        }

        .profile-image {
            width: 120px;
            height: 120px;
            border-radius: 50%;
            object-fit: cover;
            margin-bottom: 16px;
            border: 3px solid #fff;
            box-shadow: 0 4px 12px rgba(0,0,0,0.1);
        }

        .file-input {
            margin-bottom: 12px;
        }

        .btn {
            padding: 10px 20px;
            border: none;
            border-radius: 6px;
            font-size: 14px;
            font-weight: 500;
            cursor: pointer;
            transition: all 0.2s;
        }

        .btn-primary {
            background: #0F9F9A;
            color: white;
        }

        .btn-primary:hover {
            background: #0F766E;
        }

        .btn-secondary {
            background: #f5f5f5;
            color: #666;
        }

        .btn-secondary:hover {
            background: #e0e0e0;
        }

        .btn-danger {
            background: #dc3545;
            color: white;
        }

        .btn-danger:hover {
            background: #c82333;
        }

        .bank-cards-grid {
            display: grid;
            grid-template-columns: 1fr;
            gap: 30px;
            margin-bottom: 24px;
        }

        .bank-card-section {
            background: #fff;
            border: 1px solid #e0e0e0;
            border-radius: 8px;
            padding: 24px;
        }

        .bank-card-section h4 {
            margin-bottom: 16px;
            color: #333;
            font-size: 18px;
            font-weight: 600;
        }

        .add-btn {
            background: #fff;
            border: 2px dashed #ddd;
            border-radius: 8px;
            padding: 20px;
            text-align: center;
            cursor: pointer;
            transition: all 0.2s;
        }

        .add-btn:hover {
            border-color: #0F9F9A;
            color: #0F9F9A;
        }

        .address-list, .cards-list, .accounts-list {
            margin-bottom: 20px;
        }

        .address-card, .card-item, .account-item {
            background: #f8f9fa;
            border: 1px solid #e0e0e0;
            border-radius: 8px;
            padding: 16px;
            margin-bottom: 12px;
            display: flex;
            justify-content: space-between;
            align-items: flex-start;
        }

        .address-info h4, .card-info h4, .account-info h4 {
            margin-bottom: 8px;
            color: #333;
        }

        .address-info p, .card-info p, .account-info p {
            color: #666;
            font-size: 14px;
            margin-bottom: 4px;
        }

        .card-actions, .account-actions {
            display: flex;
            gap: 8px;
        }

        .notification-item {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 16px 0;
            border-bottom: 1px solid #f0f0f0;
        }

        .notification-info h4 {
            margin-bottom: 4px;
            color: #333;
        }

        .notification-info p {
            color: #666;
            font-size: 14px;
        }

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

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

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

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

        input:checked + .slider {
            background-color: #0F9F9A;
        }

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

        .ads-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
            gap: 20px;
        }

        .ad-card {
            background: #fff;
            border: 1px solid #e0e0e0;
            border-radius: 8px;
            overflow: hidden;
            transition: transform 0.2s, box-shadow 0.2s;
        }

        .ad-card:hover {
            transform: translateY(-2px);
            box-shadow: 0 4px 12px rgba(0,0,0,0.1);
        }

        .ad-image {
            width: 100%;
            height: 160px;
            object-fit: cover;
            background: #f8f9fa;
        }

        .ad-info {
            padding: 12px;
        }

        .ad-title {
            font-size: 14px;
            font-weight: 600;
            margin-bottom: 8px;
            color: #333;
        }

        .ad-price {
            font-size: 16px;
            font-weight: 700;
            color: #0F9F9A;
            margin-bottom: 8px;
        }

        .ad-meta {
            font-size: 12px;
            color: #666;
            margin-bottom: 12px;
        }

        .ad-actions {
            display: flex;
            gap: 8px;
        }

        .ad-actions .btn {
            flex: 1;
            padding: 6px 12px;
            font-size: 12px;
        }

        .purchase-tabs {
            display: flex;
            border-bottom: 1px solid #e0e0e0;
            margin-bottom: 20px;
            flex-wrap: wrap;
        }

        .purchase-tab {
            padding: 12px 20px;
            background: none;
            border: none;
            cursor: pointer;
            font-size: 14px;
            color: #666;
            border-bottom: 2px solid transparent;
        }

        .purchase-tab.active {
            color: #0F9F9A;
            border-bottom-color: #0F9F9A;
        }

        /* FIX 2: Phone Change Modal - Improved for better visibility */
        .modal {
            display: none;
            position: fixed;
            z-index: 4000;
            left: 0;
            top: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0,0,0,0.5);
            overflow-y: auto; /* Enable scrolling */
        }

        .modal-content {
            background-color: white;
            margin: 5% auto;
            padding: 30px;
            border-radius: 12px;
            width: 90%;
            max-width: 500px;
            max-height: 90vh; /* Limit height */
            overflow-y: auto; /* Enable scrolling inside modal */
            box-shadow: 0 10px 30px rgba(0,0,0,0.3);
            position: relative;
        }

        .close-modal {
            position: absolute;
            right: 20px;
            top: 15px;
            font-size: 24px;
            font-weight: bold;
            color: #999;
            cursor: pointer;
            background: none;
            border: none;
            z-index: 10;
        }

        .close-modal:hover {
            color: #333;
        }

        .step-indicator {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin: 24px 0;
            position: relative;
        }

        .step-indicator::before {
            content: '';
            position: absolute;
            top: 15px;
            left: 0;
            right: 0;
            height: 2px;
            background: #e0e0e0;
            z-index: 1;
        }

        .step {
            display: flex;
            flex-direction: column;
            align-items: center;
            position: relative;
            z-index: 2;
        }

        .step-number {
            width: 30px;
            height: 30px;
            border-radius: 50%;
            background: #e0e0e0;
            color: #666;
            display: flex;
            align-items: center;
            justify-content: center;
            font-weight: 600;
            margin-bottom: 8px;
        }

        .step.active .step-number {
            background: #0F9F9A;
            color: white;
        }

        .step-label {
            font-size: 12px;
            color: #666;
        }

        .step.active .step-label {
            color: #0F9F9A;
            font-weight: 600;
        }

        .verification-step {
            display: none;
        }

        .verification-step.active {
            display: block;
        }

        .verification-method {
            border: 1px solid #e0e0e0;
            border-radius: 8px;
            padding: 16px;
            margin-bottom: 12px;
            cursor: pointer;
            transition: all 0.2s;
        }

        .verification-method:hover {
            border-color: #0F9F9A;
            background: #fff9f7;
        }

        .verification-method.selected {
            border-color: #0F9F9A;
            background: #fff5f2;
        }

        .method-header {
            display: flex;
            align-items: center;
            gap: 12px;
            margin-bottom: 8px;
        }

        .method-icon {
            font-size: 20px;
        }

        .method-title {
            font-weight: 600;
            color: #333;
        }

        .method-description {
            font-size: 14px;
            color: #666;
            line-height: 1.4;
        }

    .toast {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 12px 20px;
    border-radius: 6px;
    color: white;
    font-size: 14px;
    font-weight: 500;
    z-index: 3000; /* higher than fixed buttons (1000) */
    transform: translateX(400px);
    transition: transform 0.3s ease;
}

        .toast.show {
            transform: translateX(0);
        }

        .toast.success {
            background: #2e7d32;
        }

        .toast.error {
            background: #d32f2f;
        }

        .validation-message {
            font-size: 12px;
            margin-top: 4px;
            padding: 4px 8px;
            border-radius: 4px;
            display: none;
        }

        .validation-success {
            background: #d4edda;
            color: #155724;
            border: 1px solid #c3e6cb;
        }

        .validation-error {
            background: #f8d7da;
            color: #721c24;
            border: 1px solid #f5c6cb;
        }

        .profile-image-container {
            position: relative;
            display: inline-block;
        }

        .remove-image-btn {
            position: absolute;
            top: -5px;
            right: -5px;
            background: #dc3545;
            color: white;
            border: none;
            border-radius: 50%;
            width: 24px;
            height: 24px;
            font-size: 12px;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            z-index: 10;
        }

        .remove-image-btn:hover {
            background: #c82333;
        }

        /* FIX 2: Better modal scrolling */
        .modal-body {
            max-height: calc(90vh - 150px);
            overflow-y: auto;
            padding-right: 10px;
        }

        /* Scrollbar styling */
        .modal-body::-webkit-scrollbar {
            width: 6px;
        }

        .modal-body::-webkit-scrollbar-track {
            background: #f1f1f1;
            border-radius: 3px;
        }

        .modal-body::-webkit-scrollbar-thumb {
            background: #888;
            border-radius: 3px;
        }

        .modal-body::-webkit-scrollbar-thumb:hover {
            background: #555;
        }

        /* FIX 2: Phone verification status badge */
        .phone-verified-badge {
            display: inline-flex;
            align-items: center;
            gap: 4px;
            background: #d4edda;
            color: #155724;
            padding: 4px 8px;
            border-radius: 12px;
            font-size: 12px;
            font-weight: 500;
            margin-left: 8px;
        }

        .phone-verified-badge::before {
            content: "✓";
            font-weight: bold;
        }

     @media (max-width: 768px) {

    .main-container {
        grid-template-columns: 1fr;
    }

    .profile-container {
        grid-template-columns: 1fr;
    }

    .header-content {
        flex-direction: column;
        gap: 12px;
    }

      .search-container {
        margin: 0;
        width: 100%;
    }

    /* Mobile: make search icon sit INSIDE input (far right) */
    .search-form{
        position: relative;
        width: 100%;
    }

    /* give space at right for the icon */
    .search-input{
        width: 100%;
        padding-right: 44px;
    }

    /* the icon button inside the input */
    .search-btn--inside{
        display: inline-flex;
        align-items: center;
        justify-content: center;

        position: absolute;
        top: 50%;
        right: 12px;              /* FAR RIGHT */
        transform: translateY(-50%);

        background: transparent;
        border: none;
        padding: 0;
        box-shadow: none;

        color: #0F9F9A;           /* ORANGE icon */
        cursor: pointer;
    }

    .search-btn--inside .search-btn-text{
        display: none;
    }

    .username-display {
        display: none;
    }

    /* FIX 2: Better mobile modal */

    .modal-content {
        margin: 10% auto;
        width: 95%;
        max-height: 85vh;
        padding: 20px;
    }

    .modal-body {
        max-height: calc(85vh - 130px);
    }

    /* ===== Stripe mobile: icon only (enterprise clean) ===== */
    .header-strip .strip-text {
        display: none;
    }

    .header-strip .strip-right .strip-link i {
        font-size: 18px;
    }

    .header-strip .live-videos-title {
        display: none;
    }

    /* ===== Mobile: hide duplicate stripe links (keep only ☰ + logo) ===== */
    .header-strip .strip-right > a.strip-link {
        display: none;
    }

    /* ===== Mobile: hide Live+Videos teaser on top strip ===== */
    .header-strip .strip-left.has-coming-soon {
        display: none;
    }

      /* Mobile: show logo in top strip (Stripe 1) */
    .header-strip .mobile-top-logo {
        display: flex;
        align-items: center;
    }

    /* ===== Mobile: Search button = icon only (no square) ===== */
  .header-main .header-post .search-btn{
    background: transparent;
    border: none;
    padding: 0;
    border-radius: 0;
    box-shadow: none;
    min-width: 0;
    height: auto;
    line-height: 1;

    color: #0F9F9A;   /* FIX: make icon visible */
}

    .header-main .header-post .search-btn i{
        font-size: 18px;
    }

        .header-main .header-post .search-btn .search-btn-text{
    display: none;
}

/* ===== Mobile: Search icon INSIDE input (enterprise clean) ===== */

/* Hide OUTSIDE search button completely */
.header-main .header-post{
    display: none;
}

/* Make search form positioning container */
.header-main .header-search{
    flex: 1 1 100%;
    min-width: 0;
    position: relative;   /* ENTERPRISE FIX: anchor for inside icon */
}

.header-main .header-search .search-form{
    position: relative;
    width: 100%;
}

/* Input full width + space for icon */
.header-main .header-search .search-input{
    width: 100%;
    padding-right: 56px;     /* reserve space so the icon can sit fully right */
}

.header-main .header-search .search-btn--inside{
    display: inline-flex;
    align-items: center;
    justify-content: center;

    position: absolute;
    top: 50%;
    right: 8px;              /* push closer to the right edge */
    transform: translateY(-50%);

    background: transparent;
    border: none;
    padding: 0;
    box-shadow: none;

    width: 36px;             /* fixed hit-area prevents shifting */
    height: 36px;            /* fixed hit-area prevents shifting */
    line-height: 1;

    color: #0F9F9A;
}

/* Hide text label */
.header-main .header-search .search-btn--inside .search-btn-text{
    display: none;
}

/* Mobile: hide Cart icon on Stripe 2 */
.header-main .header-cart{
    display: none;
}

    /* Mobile: hide Row 2 logo (prevents duplicate) */
    .header-main .header-logo {

       display: none;
    }

        /* Mobile: SHOW Chat + Cart quick actions */
    .mobile-strip-actions {
        display: inline-flex;
    }
}

/* Desktop default: HIDE mobile top logo */
.mobile-top-logo {
    display: none;
}

/* Desktop default: HIDE mobile Chat + Cart quick actions */
.mobile-strip-actions {
    display: none;
    align-items: center;
    gap: 12px;
}

/* Zenbook Fold header right-edge protection */
@media (min-width: 1120px) and (max-width: 1150px) {
    .site-header .header-strip .header-container {
        padding-left: 10px;
        padding-right: 34px;
    }

    .site-header .header-strip .strip-right {
        gap: 8px;
        padding-right: 12px;
        box-sizing: border-box;
    }

    .site-header .header-strip .strip-link {
        white-space: nowrap;
    }
}

/* Mobile: SHOW Chat + Cart quick actions after default hide */
@media (max-width: 768px) {
    .mobile-strip-actions {
        display: inline-flex;
    }
}

.mobile-strip-action {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    text-decoration: none;
    border-radius: 999px;
    position: relative;
}

.mobile-strip-action i {
    font-size: 18px;
    line-height: 1;
}

/* Header icon badges: shared base only */
.bj-header-badge {
    min-width: 17px;
    height: 17px;
    padding: 0 5px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: #ef4444;
    color: #ffffff;
    font-size: 10px;
    font-weight: 800;
    line-height: 1;
    box-shadow: 0 0 0 2px #0F9F9A;
    box-sizing: border-box;
}

/* Mobile/tablet badge positioning */
.bj-header-badge--mobile {
    position: absolute;
    top: 1px;
    right: -3px;
}

/* Desktop badge positioning */
.bj-header-icon-wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.bj-header-badge--desktop {
    position: absolute;
    top: -9px;
    right: -10px;
    box-shadow: 0 0 0 2px #ffffff;
}

/* =========================================================
   Wide Tablet Header: cart icon breathing space
   Purpose: prevent desktop-style cart icon/badge from clipping on wide tablet views
   Desktop: protected because this applies only from 851px to 1280px
   Phones: protected because phone header uses separate mobile layout
   ========================================================= */

@media (min-width: 851px) and (max-width: 1280px) {
    .site-header .header-cart {
        padding-right: 20px;
        box-sizing: border-box;
    }
}

/* =========================================================
   Tablet Mobile Header
   Scope: iPad Air / similar tablet mobile layout range only
   Purpose: make header match mobile category layout up to 850px
   Desktop: protected because this applies only from 769px to 850px
   ========================================================= */
@media (min-width: 769px) and (max-width: 900px) {
    .header-strip .strip-right > a.strip-link {
        display: none;
    }

    .header-strip .strip-left.has-coming-soon {
        display: none;
    }

    .header-strip .mobile-top-logo {
        display: flex;
        align-items: center;
    }

    .mobile-strip-actions {
        display: inline-flex;
    }

    .header-main .header-logo {
        display: none;
    }

    .header-main .header-post {
        display: none;
    }

    .header-main .header-cart {
        display: none;
    }

    .header-main .header-search {
        flex: 1 1 100%;
        min-width: 0;
        position: relative;
    }

    .header-main .header-search .search-form {
        position: relative;
        width: 100%;
    }

    .header-main .header-search .search-input {
        width: 100%;
        padding-right: 56px;
    }

    .header-main .header-search .search-btn--inside {
        display: inline-flex;
        align-items: center;
        justify-content: center;

        position: absolute;
        top: 50%;
        right: 8px;
        transform: translateY(-50%);

        background: transparent;
        border: none;
        padding: 0;
        box-shadow: none;

        width: 36px;
        height: 36px;
        line-height: 1;

        color: #0F9F9A;
    }

    .header-main .header-search .search-btn--inside .search-btn-text {
        display: none;
    }
}

/* Desktop ONLY: hide INSIDE search button (prevent duplicate search buttons) */
@media (min-width: 769px) {
    .header-main .header-search .search-btn--inside {
        display: none;
    }
}

        /* FIX 4: Banks & Cards */
        .empty-state {
            text-align: center;
            padding: 40px 20px;
            color: #666;
        }

        .empty-state-icon {
            font-size: 48px;
            margin-bottom: 16px;
            opacity: 0.5;
        }

        .empty-state h4 {
            margin-bottom: 8px;
            color: #666;
            font-weight: 600;
        }

        .empty-state p {
            color: #888;
            font-size: 14px;
            margin-bottom: 20px;
        }

        .bank-card-section .add-btn {
            background: #f8f9fa;
            border: 2px dashed #ddd;
            border-radius: 8px;
            padding: 20px;
            text-align: center;
            cursor: pointer;
            transition: all 0.2s;
            color: #666;
        }

        .bank-card-section .add-btn:hover {
            border-color: #0F9F9A;
            color: #0F9F9A;
            background: #fff5f2;
        }

        /* Stripe card element styling */
        .StripeElement {
            box-sizing: border-box;
            height: 40px;
            padding: 10px 12px;
            border: 1px solid #ddd;
            border-radius: 6px;
            background-color: white;
            transition: border-color 0.2s;
        }

        .StripeElement--focus {
            border-color: #0F9F9A;
            box-shadow: 0 0 0 2px rgba(255, 111, 60, 0.1);
        }

        .StripeElement--invalid {
            border-color: #dc3545;
        }

        .StripeElement--webkit-autofill {
            background-color: #fefde5 !important;
        }

        /* Spinner for loading states */
        .spinner-border {
            display: inline-block;
            width: 1rem;
            height: 1rem;
            vertical-align: text-bottom;
            border: 0.2em solid currentColor;
            border-right-color: transparent;
            border-radius: 50%;
            animation: spinner-border .75s linear infinite;
        }

        @keyframes spinner-border {
            to { transform: rotate(360deg); }
        }

        .visually-hidden {
            position: absolute !important;
            width: 1px !important;
            height: 1px !important;
            padding: 0 !important;
            margin: -1px !important;
            overflow: hidden !important;
            clip: rect(0,0,0,0) !important;
            white-space: nowrap !important;
            border: 0 !important;
        }
 
/* ===== Account Messages (Reusable) ===== */

.account-message {
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    border: 1px solid transparent;
}

.account-message--success {
    background: #d4edda;
    color: #155724;
    border-color: #c3e6cb;
}

.account-message--error {
    background: #f8d7da;
    color: #721c24;
    border-color: #f5c6cb;
}

.account-message-list {
    margin: 8px 0 0 18px;
    padding: 0;
}

/* ===== Sidebar Profile (Centered Avatar + Text) ===== */
.sidebar-profile {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 20px 12px;
}

.sidebar-profile-avatar {
    margin-bottom: 10px;
}

.sidebar-profile-avatar img {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    object-fit: cover;
}

.sidebar-profile-avatar-text {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    font-weight: 600;
}

.sidebar-profile-info {
    margin-top: 6px;
}

.sidebar-profile-name {
    font-weight: 600;
    font-size: 15px;
}

.sidebar-profile-meta {
    font-size: 12px;
    opacity: 0.7;
    margin-top: 2px;
}



/* ===== Auth Pages – BeanJars Signup (Polish) ===== */

/* Centered card */
.auth-container {
    min-height: calc(100vh - 120px);
    padding: 24px;

    /* ENTERPRISE LAYOUT:
       - Keep the auth-card truly centered in the page
       - Put the side note on the right without shifting the card */
    display: grid;
    grid-template-columns: 1fr minmax(0, 420px) 40px minmax(0, 340px) 1fr;
    align-items: center;
}

.auth-card {
    background: #fff;
    width: 100%;
    max-width: 420px;
    padding: 32px;
    border-radius: 14px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    border-top: 4px solid #0F9F9A;
}

/* Grid placement */
.auth-container .auth-card {
    grid-column: 2;
}

.auth-container:not(:has(.auth-side-note)) .auth-card {
    grid-column: 1 / -1;
    justify-self: center;
}

.auth-container .auth-side-note {
    grid-column: 4;
}

/* Title & subtitle */
.auth-title {
    font-size: 22px;
    font-weight: 600;
    text-align: center;
    margin-bottom: 6px;
}

.auth-subtitle {
    font-size: 14px;
    color: #777;
    text-align: center;
    margin-bottom: 26px;
}

/* Right-side caption (Sandbox notice) */
.auth-side-note {
    max-width: 340px;
    font-size: 14px;
    line-height: 1.6;
    color: #0F9F9A; /* BeanJars orange */
}

.auth-side-note p {
    margin: 0;
}

/* Mobile responsiveness (enterprise) */
@media (max-width: 768px) {
    .auth-container {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        gap: 18px;
        padding: 18px;
    }

    .auth-container.signup-page {
        justify-content: center;
        padding-top: 48px;
        padding-bottom: 56px;
    }

    .auth-container.otp-verify-page {
        justify-content: center;
        padding-top: 48px;
        padding-bottom: 56px;
    }

    .auth-container.set-password-page {
        justify-content: center;
        padding-top: 48px;
        padding-bottom: 56px;
    }

    .auth-side-note {
        max-width: 420px;
        text-align: center;
    }
}

/* Signup tablet/wide-tablet polish */
@media (min-width: 769px) and (max-width: 1280px) {
    .auth-container.signup-page .auth-card {
        max-width: 500px;
        padding: 40px;
    }
}

/* Signup wide-tablet polish */
@media (min-width: 901px) and (max-width: 1150px) {
    .auth-container.signup-page .auth-card {
        max-width: 560px;
        padding: 48px;
    }
}

/* Phone input */
.phone-input {
    display: flex;
    gap: 10px;
    align-items: center;
}

.country-code,
.phone-number {
    height: 44px;
    border-radius: 8px;
    border: 1px solid #ddd;
    font-size: 14px;
    padding: 0 12px;
}

.country-code {
    width: 68px;
    background: #f7f7f7;
    text-align: center;
}

.phone-number {
    max-width: 240px;
}

/* Button fixes */
.btn {
    text-decoration: none;
}

.btn-primary {
    background: #0F9F9A;
    color: #fff;
    border-radius: 10px;
    padding: 12px;
    font-weight: 600;
    display: block;
}

.btn-primary:hover {
    background: #0F766E;
}

.btn-full {
    width: 100%;
    text-align: center;
    margin-top: 20px;
}

/* ===== OTP Page (BeanJars Style) ===== */

.otp-input-group {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 24px;
}

.auth-container.otp-verify-page .otp-input-group {
    justify-content: center;
}

.otp-input {
    width: 44px;
    height: 48px;
    text-align: center;
    font-size: 18px;
    font-weight: 600;
    border-radius: 8px;
    border: 1px solid #ddd;
}

.otp-input:focus {
    outline: none;
    border-color: #0F9F9A;
    box-shadow: 0 0 0 2px rgba(255, 111, 60, 0.15);
}

@media (max-width: 420px) {
    .auth-container.otp-verify-page .otp-input-group {
        gap: 6px;
    }

    .auth-container.otp-verify-page .otp-input {
        width: 38px;
        height: 44px;
    }
}

.otp-footer {
    margin-top: 18px;
    font-size: 13px;
    color: #666;
    text-align: center;
}

.resend-link {
    color: #0F9F9A;
    font-weight: 600;
    text-decoration: none;
    margin-left: 4px;
}

.resend-link:hover {
    text-decoration: underline;
}

/* OTP submit disabled state */
.otp-submit.disabled {
    opacity: 0.5;
    pointer-events: none;
}

/* ===== Set Password Page ===== */

.password-hint {
    margin-top: 16px;
    font-size: 13px;
    color: #777;
    text-align: center;
}

/* ===== Password UX ===== */

.password-wrapper {
    position: relative;
}

.toggle-password {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    font-size: 14px;
    opacity: 0.6;
}

.toggle-password:hover {
    opacity: 1;
}

.password-strength {
    margin: 12px 0 20px;
}

.strength-bar {
    height: 6px;
    background: #eee;
    border-radius: 4px;
    overflow: hidden;
}

.strength-bar span {
    display: block;
    height: 100%;
    width: 0;
    transition: width 0.3s;
}

.strength-bar span.weak {
    background: #dc3545;
}

.strength-bar span.medium {
    background: #ffc107;
}

.strength-bar span.strong {
    background: #28a745;
}

.strength-text {
    font-size: 12px;
    margin-top: 6px;
    color: #666;
}

.sell-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: #0F9F9A; /* Or your desired background */
    color: white;
    padding: 10px 20px;
    border-radius: 6px;
    text-decoration: none;
    margin-top: 10px; /* Optional to create space */
}

.sell-btn i {
    margin-right: 8px; /* Space between icon and text */
}

/* chat button to make it appear */
.chat-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    background-color: #0F9F9A !important;
    color: white !important;
    padding: 10px 20px !important;
    border-radius: 6px !important;
    margin-top: 10px !important;
    z-index: 9999 !important; /* Ensure it appears on top */
}

.chat-btn i {
    margin-right: 8px !important; /* Space between icon and text */
}

.chat-btn {
    display: block !important;
    background-color: red !important;  /* Just for visibility */
    border: 2px solid yellow;         /* Just for visibility */
}

/* ===== Buyer Orders – Search Bar (Scoped) ===== */
.buyer-orders-search {
    margin-top: 16px;
}

.buyer-orders-search .search-form {
    max-width: 100%;
}

.buyer-orders-search .search-input {
    border-radius: 8px;        /* less rounded */
    width: 100%;               /* stretch left → right */
}

.buyer-orders-search .search-button {
    border-radius: 0 8px 8px 0;
}

/* ===== Buyer Orders – Tabs Container (Scoped) ===== */
.buyer-orders-tabs {
    background: #f5f5f5;        /* light grey box */
    padding: 8px 12px;
    border-radius: 8px;
    margin-top: 20px;           /* spacing from text above */
}

.buyer-orders-tabs .purchase-tabs {
    margin-bottom: 0;           /* keep box tight */
}

/* ================================
   Buyer Orders – Scoped Table Fix
   ================================ */

.buyer-orders-table {
    width: auto;
    border-collapse: separate;
    border-spacing: 0;
}

/* Buyer Orders – horizontal scroll container */
.buyer-orders-table-wrapper {
    width: 100%;
    overflow-x: auto;
}

.buyer-orders-table th,
.buyer-orders-table td {
    padding: 8px 10px;
    vertical-align: middle;
    white-space: nowrap;
    text-align: left;
    font-size: 14px;         /* same as tabs */
}


/* ===== Buyer Orders – Center Action & Invoice columns (enterprise) ===== */
/* ===== Buyer Orders – Default all columns LEFT (enterprise clean) ===== */
.buyer-orders-table th,
.buyer-orders-table td {
    text-align: left;
}

.buyer-orders-table th {
    font-weight: 600;
    color: #374151; /* gray-700 */
}


.buyer-orders-table td {
    color: #1f2937; /* gray-800 */
}

.buyer-orders-table tbody tr:hover {
    background-color: #f9fafb; /* gray-50 */
}

/* Buyer Orders Tabs – remove link underline */
.buyer-orders-tabs .purchase-tab {
    text-decoration: none;
}

/* =========================================
   Buyer Orders – Enterprise Small Button System
   Safe reusable base for Buyer / Seller / Escrow later
   ========================================= */

.bo-btn-group {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    flex-wrap: nowrap; /* force single row */
}

.bo-btn-form {
    display: inline;
    margin: 0;
}

.bo-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-width: 56px;
    height: 28px;
    padding: 0 10px;

    border: 1px solid transparent;
    border-radius: 6px;

    font-size: 12px;
    font-weight: 600;
    line-height: 1;
    text-decoration: none;

    cursor: pointer;
    white-space: nowrap;
    vertical-align: middle;

    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.bo-btn:hover,
.bo-btn:focus,
.bo-btn:active,
.bo-btn:visited {
    text-decoration: none;
}

.bo-btn:focus {
    outline: none;
}

.buyer-orders-page a.bo-btn {
    text-decoration: none;
}

.buyer-orders-page a.bo-btn:visited {
    text-decoration: none;
}

.bo-btn--pay {
    background: #0F9F9A;
    border-color: #0F9F9A;
    color: #ffffff;
}

.bo-btn--pay:hover {
    background: #0F766E;
    border-color: #0F766E;
    color: #ffffff;
}

.bo-btn--cancel {
    background: #e5e7eb;
    border-color: #d1d5db;
    color: #374151;
}

.bo-btn--cancel:hover {
    background: #d1d5db;
    border-color: #cbd5e1;
    color: #1f2937;
}

.bo-btn--invoice {
    background: #3b82f6;
    border-color: #3b82f6;
    color: #ffffff;
}

.bo-btn--invoice:hover {
    background: #2563eb;
    border-color: #2563eb;
    color: #ffffff;
}

/* Buyer Orders – Received (success) */
.bo-btn--received {
    background: #16a34a;
    border-color: #16a34a;
    color: #ffffff;
}

.bo-btn--received:hover {
    background: #15803d;
    border-color: #15803d;
    color: #ffffff;
}

/* =========================================================
   Seller Earnings (scoped UI)
   ========================================================= */

.seller-earnings-page .stats-grid .stat-card:nth-child(3) .stat-label {
    color: #111827;
    opacity: 1;
}

/* =========================================================
   Seller Orders (scoped UI)
   ========================================================= */

.seller-orders-page .seller-orders-tabs .purchase-tab {
    padding: 8px 12px;
    border-radius: 10px;
    text-decoration: none;
    display: inline-block;
}

.seller-orders-page .seller-orders-search input {
    border-radius: 14px;
}

.seller-orders-page .seller-orders-table table th,
.seller-orders-page .seller-orders-table table td {
    padding: 12px 10px;
    text-align: left;
    vertical-align: middle;
}

.seller-orders-page .seller-orders-table table thead th {
    border-bottom: 1px solid #eee;
}

.seller-orders-page .seller-orders-table table tbody tr:hover {
    background: #fafafa;
}

/* =========================================================
   Seller + Buyer Orders – Stable copyable truncate (NO layout shift)
   ========================================================= */

/* Anchor for hover layer */
.seller-orders-page .sj-trunc-cell,
.buyer-orders-page .sj-trunc-cell {
    position: relative;
}

/* Always-truncated inline text (never expands) */
.seller-orders-page .sj-trunc,
.buyer-orders-page .sj-trunc {
    display: inline-block;
    max-width: 180px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    vertical-align: bottom;
}

/* REAL popup element (copyable) — NO layout shift */
.seller-orders-page .sj-pop,
.buyer-orders-page .sj-pop {
    display: none;               /* hidden by default */
    position: absolute;
    left: 0;

    /* IMPORTANT: no gap, so you can move cursor onto it */
    top: calc(100% - 2px);

    max-width: 360px;
    white-space: normal;

    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    padding: 6px 8px;

    color: #111827;
    font-size: 13px;
    line-height: 1.4;

    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    z-index: 9999;

    user-select: text;           /* allow highlight/copy */
    cursor: text;
}

/* Show popup when hovering the cell (no click needed). */
.seller-orders-page .sj-trunc-cell:hover .sj-pop,
.buyer-orders-page .sj-trunc-cell:hover .sj-pop {
    display: block;
}

/* Always-truncated inline text (never expands) */
.seller-orders-page .sj-trunc {
    display: inline-block;
    max-width: 180px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    vertical-align: bottom;

    /* REMOVE LINK UNDERLINE (seller orders only) */
    text-decoration: none;
    color: inherit;
}

/* REAL popup element (copyable) — NO layout shift */
.seller-orders-page .sj-pop {
    display: none;               /* hidden by default */
    position: absolute;
    left: 0;

    /* IMPORTANT: no gap, so you can move cursor onto it */
    top: calc(100% - 2px);

    max-width: 360px;
    white-space: normal;

    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    padding: 6px 8px;

    color: #111827;
    font-size: 13px;
    line-height: 1.4;

    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    z-index: 9999;

    user-select: text;           /* allow highlight/copy */
    cursor: text;
}

/* Show popup when hovering the cell (no click needed).
   Popup stays visible while cursor is on it because it's inside the <td>. */
.seller-orders-page .sj-trunc-cell:hover .sj-pop {
    display: block;
}

/* Seller Orders: lock table layout + column widths so hover never shifts */
.seller-orders-page .seller-orders-table {
    table-layout: fixed;
    width: 100%;
}

.seller-orders-page .seller-orders-table th,
.seller-orders-page .seller-orders-table td {
    overflow: hidden;            /* prevents content pushing columns */
    text-overflow: ellipsis;
    white-space: nowrap;         /* default (hover overrides inside span) */
}

/* Column widths (adjust later if needed) */
.seller-orders-page .seller-orders-table th:nth-child(1),
.seller-orders-page .seller-orders-table td:nth-child(1) { width: 190px; }

.seller-orders-page .seller-orders-table th:nth-child(2),
.seller-orders-page .seller-orders-table td:nth-child(2) { width: 190px; }

.seller-orders-page .seller-orders-table th:nth-child(3),
.seller-orders-page .seller-orders-table td:nth-child(3) { width: 240px; }

.seller-orders-page .seller-orders-table th:nth-child(4),
.seller-orders-page .seller-orders-table td:nth-child(4) { width: 120px; }

.seller-orders-page .seller-orders-table th:nth-child(5),
.seller-orders-page .seller-orders-table td:nth-child(5) { width: 120px; }

.seller-orders-page .seller-orders-table th:nth-child(6),
.seller-orders-page .seller-orders-table td:nth-child(6) { width: 140px; }

.seller-orders-page .seller-orders-table th:nth-child(7),
.seller-orders-page .seller-orders-table td:nth-child(7) { width: 140px; }

/* Seller Tracking ONLY — FORCE button position */
/* Back (gray) LEFT | Save Tracking (orange) RIGHT */

.seller-orders-page .form-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* FIX FIELD LENGTH (same scope, no new section) */
.seller-orders-page .form-control {
    width: 320px;
    max-width: 320px;
}

/* LEFT */
.seller-orders-page .form-actions .btn-secondary {
    order: 1;
    background: #e5e7eb;
    color: #374151;
    border: 1px solid #d1d5db;
}

/* RIGHT */
.seller-orders-page .form-actions .btn-primary {
    order: 2;
    background: #0F9F9A;
    color: #ffffff;
}

/* =========================================================
   Seller Tracking – Card tone alignment (ENTERPRISE)
   Purpose:
   - Slightly darken BOTH Order Summary + Tracking Form cards
   - Scoped to seller tracking page only
   - Does NOT affect other pages using .profile-form
   ========================================================= */
.seller-orders-page .profile-form {
    background: #f1f3f5; /* slightly darker than default, enterprise-neutral */
}

/* Seller Tracking – ensure Order Summary matches same tone */
.seller-orders-page .order-summary {
    background: #f1f3f5;
    border-radius: 8px;
    padding: 24px;
}

/* =========================================
   Ad Details Page (SCOPED)
   File: resources/views/components/ad-details-with-images.blade.php
   IMPORTANT:
   - NO global body styles here
   - Everything must be scoped under .ad-container
========================================= */

/* Owner Badge */
.ad-container .details-box .owner-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;

    padding: 8px 14px;
    margin: 0 auto 14px auto;

    border-radius: 999px; /* pill */
    border: 1px solid rgba(255, 111, 60, 0.35);

    background: linear-gradient(135deg, #e65a1f, #ff6a26);
    color: #111827;

    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.2px;

    box-shadow:
        0 1px 0 rgba(255,255,255,0.9) inset,
        0 8px 18px rgba(17, 24, 39, 0.08);
}
.ad-container .details-box .owner-badge::before {
    content: "✓";
    width: 18px;
    height: 18px;
    border-radius: 999px;

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

    background: #0F9F9A;
    color: #ffffff;

    font-size: 12px;
    font-weight: 900;
    line-height: 1;
}

/* MAIN CONTAINER */
.ad-container {
    max-width: 900px;
    margin: 0 auto;
    background: #fff;
    padding: 20px 30px;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* IMAGE GALLERY SECTION */
.ad-container .image-section {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    max-width: calc(300px + 10px + 130px * 3);
    margin: 0 auto;
}

/* BIG SLIDER CONTAINER */
.ad-container .big-slider-container {
    position: relative;
    flex-shrink: 0;
    width: 300px;
}

.ad-container .big-slider-wrapper {
    width: 300px;
    height: 300px;
    background: #eee;
    border-radius: 10px;
    border: 1px solid #ccc;
    position: relative;
    overflow: hidden;
}

/* SWIPER SLIDER STYLES */
.ad-container .swiper {
    width: 100%;
    height: 100%;
}

.ad-container .swiper-slide {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000000;
    overflow: hidden;
}

.ad-container .big-slider-image {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
    background-color: #000000 !important;
    padding: 8px !important;
    box-sizing: border-box !important;
}

/* Swiper navigation buttons */
.ad-container .swiper-button-next,
.ad-container .swiper-button-prev {
    color: white;
    background: rgba(0, 77, 77, 0.8);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    transition: background 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ad-container .swiper-button-next:after,
.ad-container .swiper-button-prev:after {
    font-size: 16px;
    font-weight: bold;
}

.ad-container .swiper-button-next:hover,
.ad-container .swiper-button-prev:hover {
    background: rgba(0, 77, 77, 1);
}

.ad-container .swiper-button-next { right: 8px; }
.ad-container .swiper-button-prev { left: 8px; }

/* Swiper pagination dots */
.ad-container .swiper-pagination { bottom: 10px; }

.ad-container .swiper-pagination-bullet {
    width: 12px;
    height: 12px;
    background: #ccc;
    opacity: 1;
}

.ad-container .swiper-pagination-bullet-active {
    background: #0F9F9A;
}

/* NO IMAGE PLACEHOLDER */
.ad-container .no-image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #eee;
    color: #888;
    font-size: 16px;
    font-weight: bold;
    border-radius: 10px;
    border: 1px solid #ccc;
}

/* RIGHT: THUMBNAILS */
.ad-container .thumbnails-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex-shrink: 0;
}

.ad-container .thumbnail-row {
    display: flex;
    gap: 10px;
}

.ad-container .thumbnail-box {
    width: 130px;
    height: 150px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid #ccc;
    cursor: pointer;
    transition: transform 0.3s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.ad-container .thumbnail-box:hover { transform: scale(1.1); }

.ad-container .thumbnail-placeholder {
    display: flex;
    justify-content: center;
    align-items: center;
    background: #eee;
    color: #888;
    font-size: 14px;
    font-weight: bold;
    border: 1px solid #ccc;
    border-radius: 8px;
    width: 130px;
    height: 150px;
    transition: transform 0.3s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    cursor: pointer;
}

.ad-container .thumbnail-placeholder:hover { transform: scale(1.1); }

/* DETAILS SECTION */
.ad-container .details-section {
    margin-top: 20px;
    max-width: calc(300px + 10px + 130px * 3);
    margin-left: auto;
    margin-right: auto;
}

.ad-container .details-box {
    background: #f2f2f2;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.ad-container .details-box h2 {
    color: #004d4d;
    margin: 10px 0;
    text-align: left;
    font-size: 24px;
}

.ad-container .details-box p {
    margin: 8px 0;
    font-size: 15px;
    text-align: left;
}

.ad-container .details-box strong { color: #004d4d; }

.ad-container .price-display {
    font-size: 22px;
    color: #0F9F9A;
    font-weight: bold;
    margin: 12px 0;
    padding: 10px 0;
}

/* READ MORE */
.ad-container .description-area {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px dashed #ccc;
}

.ad-container .description-container { position: relative; }

.ad-container .short-description {
    line-height: 1.4;
    max-height: 4.2em;
    overflow: hidden;
    position: relative;
}

.ad-container .short-description::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 40px;
    background: linear-gradient(to bottom, transparent, #f2f2f2);
    display: none;
}

.ad-container .short-description.truncated::after { display: block; }

.ad-container .full-description {
    line-height: 1.4;
    display: none;
}

.ad-container .full-description.show { display: block; }

.ad-container .read-more-toggle {
    background: none;
    border: none;
    color: #004d4d;
    cursor: pointer;
    font-weight: bold;
    padding: 5px 10px;
    margin-top: 5px;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.ad-container .read-more-toggle:hover {
    text-decoration: underline;
    background: #e6e6e6;
    border-radius: 4px;
}

.ad-container .read-more-toggle .icon {
    font-size: 12px;
    transition: transform 0.3s;
}

.ad-container .read-more-toggle.expanded .icon { transform: rotate(180deg); }

/* Bottom Action Bar – Disabled State */
.ad-action-bar .ad-action-btn:disabled,
.ad-action-bar .ad-action-btn[aria-disabled="true"] {
    opacity: 0.45;
    cursor: not-allowed;
    filter: grayscale(1);
}

/* CONTACT BUTTONS */
.ad-container .contact-buttons {
    margin-top: 20px;
    display: flex;
    gap: 10px;
}

.ad-container .contact-btn {
    display: inline-block;
    padding: 12px 24px;
    background: #004d4d;
    color: #fff;
    border-radius: 6px;
    text-decoration: none;
    font-size: 16px;
    transition: background 0.2s ease;
}

.ad-container .contact-btn:hover { background: #003737; }

.ad-container .whatsapp-btn { background: #25d366; }
.ad-container .whatsapp-btn:hover { background: #1da851; }

/* Desktop Ad Details: bottom breathing space below the whole white canvas */
@media (min-width: 1151px) {
    .ad-container.ad-container--needs-bottom-space {
        margin-bottom: 80px;
    }
}

/* ===== Live Videos (Top Strip - shared on ALL pages) ===== */
.header-strip .header-container{
display:flex;
justify-content:space-between;
align-items:center;

width:100%;
max-width:1200px;
margin:0 auto;
padding:0 16px;

flex-wrap:wrap;
box-sizing:border-box;
}

.strip-left{
    display:flex;
    align-items:center;
}

.strip-right{
    display:flex;
    flex-wrap:wrap;
    justify-content:flex-end;
    gap:12px;
}

/* Desktop default: HIDE mobile ☰ menu */
.mobile-strip-menu{
    display:none;
    position:relative;
}

/* Mobile only: SHOW mobile ☰ menu */
@media (max-width: 768px) {
    .mobile-strip-menu{
        display:block;
    }
}

.mobile-strip-trigger{
    background:none;
    border:none;
    cursor:pointer;
    padding:6px 10px;
    border-radius:8px;
}

/* Dropdown default: ALWAYS hidden unless JS opens it */
.mobile-strip-dropdown{
    display:none;
    position:absolute;
    right:0;
    top:100%;
    margin-top:8px;
    background:#fff;
    border:1px solid #e5e7eb;
    border-radius:10px;
    min-width:220px;
    box-shadow:0 10px 25px rgba(0,0,0,0.12);
    overflow:hidden;
    z-index:9999;
}

/* Mobile dropdown link (replaces inline styles) */
.mobile-strip-dropdown .mobile-dd-link{
    display:flex;
    align-items:center;
    gap:10px;
    padding:12px 14px;
    text-decoration:none;
    color:#111827;
}

.mobile-strip-dropdown .mobile-dd-link--divider{
    border-bottom:1px solid #f1f5f9;
}

.mobile-strip-dropdown .mobile-dd-link--muted{
    color:#6b7280;
}

.mobile-strip-dropdown .mobile-dd-link--between{
    justify-content:space-between;
}

.mobile-strip-dropdown .mobile-dd-row{
    display:flex;
    align-items:center;
    gap:10px;
}

.mobile-strip-dropdown .mobile-dd-badge{
    font-size:11px;
    padding:2px 8px;
    border-radius:999px;
    border:1px solid rgba(255,111,60,0.35);
    background:#fff5f2;
    color:#0F9F9A;
    font-weight:600;
}

/* Desktop: ensure mobile dropdown never appears */
@media (min-width: 769px) {
    .mobile-strip-dropdown{
        display:none;
    }
}

.header-flex{
    display:flex;
    flex-wrap:wrap;
    gap:10px;
}

.live-videos-link{
    display:inline-flex;
    align-items:center;
    gap:4px; /* tighter spacing */
    text-decoration:none;
}

.live-videos-icon{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    width:22px;
    height:22px;
    flex:0 0 22px;
}

.live-videos-title{
    font-weight:500;
    line-height:1;
}

/* ===== My Ads action buttons (Enterprise safe, reuse everywhere later) ===== */

.myads-btn {
    cursor: pointer;
    padding: 6px 12px;
    border-radius: 4px;
    border: 1px solid #ddd;
    background-color: #fff;
    transition: all 0.2s ease;
}

.myads-btn:hover {
    background-color: #0F766E;
    border-color: #0F766E;
    color: #fff;
}

/* ===== Activities Sell – Platform Fee Notice (Scoped, Enterprise) ===== */
.platform-fee-page-title {
    margin-top: 20px;
}

.platform-fee-card-title {
    margin-bottom: 16px;
}

.platform-fee-text {
    max-width: 700px;
    margin: 0 auto;
    text-align: justify;
    line-height: 1.7;
}

.platform-fee-actions {
    max-width: 700px;
    margin: 48px auto 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.platform-fee-actions .btn-primary,
.platform-fee-actions .btn-outline-secondary {
    display: inline-flex;
    width: auto;
}

/* =========================================
   Buyer Orders – Cancel Popup (Scoped, Enterprise)
   File: resources\views\buyer\orders\index.blade.php
   ========================================= */

.buyer-cancel-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;

    background: rgba(0, 0, 0, 0.55);

    display: none; /* controlled by JS */
    align-items: center;
    justify-content: center;

    z-index: 9999;
}

.buyer-cancel-popup-container {
    background: #ffffff;
    border-radius: 14px;

    width: 90%;
    max-width: 420px;

    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
    overflow: hidden;

    animation: buyerCancelFadeIn 0.25s ease;
}

.buyer-cancel-popup-header {
    padding: 18px 20px 10px;
    text-align: center;
}

.buyer-cancel-popup-icon {
    font-size: 28px;
    margin-bottom: 6px;
}

.buyer-cancel-popup-title {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.buyer-cancel-popup-body {
    padding: 10px 20px 18px;
    text-align: center;
}

.buyer-cancel-popup-message {
    font-size: 14px;
    color: #4b5563;
    line-height: 1.5;
}

.buyer-cancel-popup-footer {
    display: flex;
    gap: 10px;

    padding: 16px 20px;
    border-top: 1px solid #e5e7eb;
    background: #f9fafb;
}

.buyer-cancel-popup-btn {
    flex: 1;

    padding: 10px 12px;
    border-radius: 8px;

    font-size: 13px;
    font-weight: 600;

    cursor: pointer;
    border: 1px solid transparent;

    transition: all 0.2s ease;
}

.buyer-cancel-popup-btn--secondary {
    background: #ffffff;
    border-color: #d1d5db;
    color: #374151;
}

.buyer-cancel-popup-btn--secondary:hover {
    background: #f3f4f6;
}

.buyer-cancel-popup-btn--primary {
    background: #ef4444;
    border-color: #ef4444;
    color: #ffffff;
}

.buyer-cancel-popup-btn--primary:hover {
    background: #dc2626;
    border-color: #dc2626;
}

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

/* =========================================
   Profile Settings Page (Scoped)
   ========================================= */

.profile-settings-page .profile-settings-field-row {
    display: flex;
    gap: 10px;
    align-items: flex-start;
}

.profile-settings-page .profile-settings-readonly {
    background: #f5f5f5;
}

.profile-settings-page .profile-settings-edit-actions {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

/* =========================================
   Seller Verification Page (Scoped)
   ========================================= */

.seller-verification-page .profile-form {
    background: #fafafa; /* keep theme only */

    max-width: 70%;
    margin: 0 auto;

    display: flex;
    flex-direction: column;
    align-items: center;
}

/* reduce field width ONLY (not global) */
.seller-verification-page .form-control {
    max-width: 420px;
}

/* align inputs nicely */
.seller-verification-page .form-group {
    display: flex;
    flex-direction: column;
    align-items: flex-start;

    width: 420px;
}

.seller-verification-page .form-control,
.seller-verification-page input[type="file"] {
    width: 420px;
}

/* button same width as fields */
.seller-verification-page .btn-primary {
    width: auto;
    min-width: 200px;
    border-radius: 8px;
    display: block;
    margin: 28px auto 0 auto;
}

.seller-verification-page .form-group {
    margin-bottom: 16px;
}

/* Fix submit button width */
.seller-verification-page .btn-primary {
    width: auto;
    min-width: 200px;
}

/* Style file input button (safe, scoped) */
.seller-verification-page input[type="file"] {
    padding: 6px;
    background: #fff;
    border-radius: 6px;
}

.seller-verification-page .seller-verification-selfie-input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.seller-verification-page input[type="file"]::file-selector-button {
    background: #e5e7eb;
    color: #374151;
    border: 1px solid #d1d5db;
    padding: 6px 12px;
    border-radius: 6px;
    cursor: pointer;
}

.seller-verification-page input[type="file"]::file-selector-button:hover {
    background: #d1d5db;
}

/* Seller Verification alerts (scoped) */
.seller-verification-page .seller-verification-alert {
    margin-bottom: 16px;
    padding: 12px;
    border-radius: 6px;
}

.seller-verification-page .seller-verification-alert--success {
    background: #d4edda;
    color: #155724;
}

.seller-verification-page .seller-verification-alert--error {
    background: #f8d7da;
    color: #721c24;
}

.seller-verification-page .px-6.pt-6 p {
    text-align: center;
}

/* Pending message (scoped, enterprise) */
.seller-verification-page .seller-verification-pending-msg {
    margin-top: 8px;
    color: #28a745;
    font-weight: 600;
}

.seller-verification-page .seller-verification-approved-msg {
    margin-top: 8px;
    color: #28a745;
    font-weight: 600;
}

.seller-verification-page .seller-verification-rejected-msg {
    margin-top: 8px;
    color: #dc3545;
    font-weight: 600;
}

/* Selfie camera section (scoped, enterprise) */
.seller-verification-page .seller-verification-camera-panel {
    width: 100%;
    margin-top: 12px;
    padding: 14px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #ffffff;
}

.seller-verification-page .seller-verification-camera-note {
    margin: 0 0 12px 0;
    font-size: 13px;
    line-height: 1.5;
    color: #6b7280;
    text-align: center;
}

.seller-verification-page .seller-verification-camera-actions {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.seller-verification-page .seller-verification-camera-status {
    margin: 12px 0;
    font-size: 13px;
    font-weight: 600;
    color: #15803d;
    text-align: center;

    opacity: 0;
    transform: translateX(40px);

    transition:
        opacity 0.3s ease,
        transform 0.3s ease;
}

.seller-verification-page .seller-verification-camera-status.is-visible {
    opacity: 1;
    transform: translateX(0);
}

.seller-verification-page .seller-verification-camera-error {
    margin: 12px 0;
    font-size: 13px;
    font-weight: 600;
    color: #dc3545;
    text-align: center;
}

.seller-verification-page .seller-verification-camera-preview {
    display: none;
    position: relative;
    width: 100%;
    height: 320px;
    margin-bottom: 14px;
    border-radius: 8px;
    overflow: hidden;
    background: #111827;
}

.seller-verification-page .seller-verification-face-guide {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 190px;
    height: 250px;
    border: 3px solid rgba(255, 255, 255, 0.85);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    pointer-events: none;

    transition:
        border-color 0.25s ease,
        box-shadow 0.25s ease;
}

.seller-verification-page .seller-verification-face-guide.is-scanning {
    border-color: #22c55e;

    box-shadow:
        0 0 0 4px rgba(34, 197, 94, 0.15),
        0 0 18px rgba(34, 197, 94, 0.45);
}

.seller-verification-page .seller-verification-camera-preview.is-active {
    display: block;
}

.seller-verification-page .seller-verification-camera-preview.is-flashing {
    animation: sellerVerificationCameraFlash 0.35s ease;
}

@keyframes sellerVerificationCameraFlash {
    0% {
        opacity: 1;
    }

    50% {
        opacity: 0.15;
    }

    100% {
        opacity: 1;
    }
}

.seller-verification-page .seller-verification-camera-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.seller-verification-page .seller-verification-camera-canvas {
    display: none;
}

/* =========================================
   Seller Payout Settings Page (Scoped)
   ========================================= */

.seller-payout-page .payout-summary {
    background: #f8f9fa;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 20px;
}

.seller-payout-page .payout-summary-row {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 12px 0;
    border-bottom: 1px solid #d1d5db;
}

.seller-payout-page .payout-summary-row:last-child {
    border-bottom: none;
}

.seller-payout-page .payout-summary-label {
    color: #555;
    font-size: 14px;
    font-weight: 600;
}

.seller-payout-page .payout-summary-value {
    color: #c2410c;
    font-size: 16px;
    font-weight: 700;
    text-align: right;
}

.seller-payout-page .form-actions {
    display: flex;
    justify-content: center;
    margin-top: 24px;
}

.seller-payout-page .form-actions .btn {
    min-width: 220px;
    text-align: center;
}

.seller-payout-page .profile-form {
    max-width: 70%;
    margin: 0 auto;
}

.seller-payout-page .profile-header p {
    text-align: center;
}

.seller-payout-page .payout-bank-picker {
    position: relative;
    width: 100%;
}

.seller-payout-page .payout-bank-picker__button {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    min-height: 38px;
    padding: 8px 12px;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    color: #111827;
    font-size: 14px;
    line-height: 1.3;
    text-align: left;
    cursor: pointer;
    box-sizing: border-box;
}

.seller-payout-page .payout-bank-picker__panel {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    z-index: 40;
    width: 100%;
    padding: 10px;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 10px;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.16);
    box-sizing: border-box;
}

.seller-payout-page .payout-bank-picker__panel[hidden] {
    display: none !important;
}

.seller-payout-page .payout-bank-picker__search {
    width: 100%;
    min-height: 38px;
    margin-bottom: 8px;
    padding: 8px 10px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 14px;
    box-sizing: border-box;
}

.seller-payout-page .payout-bank-picker__list {
    max-height: 220px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.seller-payout-page .payout-bank-picker__option {
    display: block;
    width: 100%;
    padding: 10px 8px;
    background: #ffffff;
    border: 0;
    border-bottom: 1px solid #eef2f7;
    color: #111827;
    font-size: 14px;
    line-height: 1.35;
    text-align: left;
    white-space: normal;
    word-break: break-word;
    cursor: pointer;
}

.seller-payout-page .payout-bank-picker__option:hover,
.seller-payout-page .payout-bank-picker__option:focus {
    background: #f4f7f8;
}

.seller-payout-page .payout-bank-picker__option[hidden] {
    display: none !important;
}

.seller-payout-page .payout-account-type-picker {
    display: none;
}

/* =========================================================
   Seller Payout Settings mobile shell===================
   Seller Payout Settings mobile shell
   Scope: Payout Settings page only, mobile/tablet <= 850px.
   Desktop/wide screens remain unchanged.
========================================================= */
@media (max-width: 850px) {
    body:has(.seller-payout-page) .dashboard-overview,
    body:has(.seller-payout-page) .account-sidebar {
        display: none !important;
    }

    body:has(.seller-payout-page) .account-dashboard-wrapper {
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    body:has(.seller-payout-page) .account-main-content {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 auto !important;
        padding: 0 !important;
        overflow: visible !important;
    }

    body:has(.seller-payout-page) .account-main-content > div {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        background: transparent !important;
        border-radius: 0 !important;
        box-shadow: none !important;
    }

    body:has(.seller-payout-page) .account-main-content > div > div:not(.dashboard-overview) {
        width: 100% !important;
        max-width: 430px !important;
        margin: 0 auto !important;
        padding: 16px 14px !important;
        background: #ffffff !important;
        border-radius: 14px !important;
        box-shadow: 0 4px 16px rgba(0,0,0,0.05) !important;
        box-sizing: border-box !important;
    }

    .seller-payout-page {
        min-height: 100dvh;
        background: #f4f7f8;
        padding: 18px 12px 96px;
        box-sizing: border-box;
    }

    .seller-payout-page .profile-header h2 {
        font-size: 22px;
        line-height: 1.2;
        margin: 0 0 8px;
        text-align: center;
    }

    .seller-payout-page .profile-header p {
        max-width: 280px;
        margin: 0 auto 18px;
        font-size: 12px;
        line-height: 1.4;
        text-align: center;
    }

    .seller-payout-page .profile-form {
        width: 100%;
        max-width: 100%;
        margin: 0;
    }

    .seller-payout-page .form-group {
        margin-bottom: 14px;
    }

    .seller-payout-page .form-group label {
        display: block;
        margin-bottom: 6px;
        font-size: 12px;
        font-weight: 700;
        color: #374151;
    }

    .seller-payout-page .form-control {
        width: 100%;
        min-height: 42px;
        box-sizing: border-box;
    }

    .seller-payout-page .payout-account-type-select {
        position: absolute;
        width: 1px;
        height: 1px;
        opacity: 0;
        pointer-events: none;
    }

    .seller-payout-page .payout-account-type-picker {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .seller-payout-page .payout-account-type-picker__option {
        min-height: 42px;
        padding: 10px 12px;
        background: #ffffff;
        border: 1px solid #d1d5db;
        border-radius: 10px;
        color: #374151;
        font-size: 13px;
        font-weight: 700;
        text-align: center;
        cursor: pointer;
        box-sizing: border-box;
    }

    .seller-payout-page .payout-account-type-picker__option.is-selected {
        border-color: #0f9f9a;
        background: rgba(15, 159, 154, 0.08);
        color: #0f766e;
    }

    .seller-payout-page .payout-summary {
        padding: 12px;
        background: #f8f9fa;
    }

    .seller-payout-page .payout-summary-row {
        display: block;
        gap: 0;
        padding: 12px 0;
    }

    .seller-payout-page .payout-summary-label {
        display: block;
        margin-bottom: 5px;
        font-size: 12px;
    }

    .seller-payout-page .payout-summary-value {
        display: block;
        font-size: 14px;
        line-height: 1.35;
        text-align: left;
        word-break: break-word;
    }

    .seller-payout-page .form-actions {
        margin-top: 20px;
    }

    .seller-payout-page .form-actions .btn {
        width: 100%;
        min-width: 0;
        max-width: 260px;
    }
}

/* =========================================================
   Seller Payout Settings account type picker
   Scope: Payout Settings wide/special tablet views only.
   Targets iPad Pro, Surface Pro 7, Asus Zenbook Fold,
   Nest Hub, and Nest Hub Max style viewports.
========================================================= */
@media (min-width: 851px) and (max-width: 1280px) {
    .seller-payout-page .payout-account-type-select {
        position: absolute;
        width: 1px;
        height: 1px;
        opacity: 0;
        pointer-events: none;
    }

    .seller-payout-page .payout-account-type-picker {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
        width: 100%;
    }

    .seller-payout-page .payout-account-type-picker__option {
        min-height: 38px;
        padding: 9px 12px;
        background: #ffffff;
        border: 1px solid #d1d5db;
        border-radius: 10px;
        color: #374151;
        font-size: 13px;
        font-weight: 700;
        text-align: center;
        cursor: pointer;
        box-sizing: border-box;
    }

    .seller-payout-page .payout-account-type-picker__option.is-selected {
        border-color: #0f9f9a;
        background: rgba(15, 159, 154, 0.08);
        color: #0f766e;
    }
}

/* =========================================================
   Seller Payout Settings account type picker
   Scope: Asus Zenbook Fold portrait only.
========================================================= */
@media (min-width: 851px) and (max-width: 900px) and (min-height: 1200px),
       (min-width: 1600px) and (max-width: 1800px) and (min-height: 2400px) {
    body:has(.seller-payout-page) .seller-payout-page .payout-account-type-select {
        position: absolute !important;
        width: 1px !important;
        height: 1px !important;
        opacity: 0 !important;
        pointer-events: none !important;
    }

    body:has(.seller-payout-page) .seller-payout-page .payout-account-type-picker {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 10px !important;
        width: 100% !important;
    }

    body:has(.seller-payout-page) .seller-payout-page .payout-account-type-picker__option {
        min-height: 38px !important;
        padding: 9px 12px !important;
        background: #ffffff !important;
        border: 1px solid #d1d5db !important;
        border-radius: 10px !important;
        color: #374151 !important;
        font-size: 13px !important;
        font-weight: 700 !important;
        text-align: center !important;
        cursor: pointer !important;
        box-sizing: border-box !important;
    }

    body:has(.seller-payout-page) .seller-payout-page .payout-account-type-picker__option.is-selected {
        border-color: #0f9f9a !important;
        background: rgba(15, 159, 154, 0.08) !important;
        color: #0f766e !important;
    }
}

/* =========================================
   Checkout FIUU Success Notice (Scoped)
   ========================================= */

.checkout-success-notice-page {
    max-width: 520px;
    margin: 40px auto;
    padding: 0 16px;
}

.checkout-success-notice-card {
    background: #ffffff;
    border-radius: 14px;
    padding: 32px 28px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    border-top: 4px solid #0F9F9A;
    text-align: center;
}

.checkout-success-notice-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: #fff5f2;
    color: #0F9F9A;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 18px auto;
    font-size: 28px;
    font-weight: 700;
}

.checkout-success-notice-title {
    font-size: 22px;
    font-weight: 700;
    color: #111827;
    margin-bottom: 10px;
}

.checkout-success-notice-text {
    font-size: 14px;
    color: #4b5563;
    line-height: 1.6;
    margin-bottom: 24px;
}

.checkout-success-notice-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #0F9F9A;
    color: #ffffff;
    border-radius: 10px;
    padding: 12px 22px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
}

.checkout-success-notice-action:hover {
    background: #0F766E;
    color: #ffffff;
    text-decoration: none;
}

/* =========================================
   FIUU Success Page (Scoped)
   ========================================= */

.fiuu-success-page {
    max-width: 720px;
}

.fiuu-success-card {
    text-align: center;
    padding: 12px 8px;
}

.fiuu-success-icon {
    width: 82px;
    height: 82px;

    margin: 0 auto 20px auto;

    border-radius: 50%;

    background: #dcfce7;
    color: #16a34a;

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

    font-size: 42px;
    font-weight: 700;

    box-shadow: 0 6px 18px rgba(22, 163, 74, 0.12);
}

.fiuu-success-title {
    font-size: 30px;
    font-weight: 700;
    color: #111827;

    margin-bottom: 10px;
}

.fiuu-success-subtitle {
    font-size: 15px;
    color: #6b7280;

    margin-bottom: 22px;
}

.fiuu-success-alert {
    max-width: 520px;

    margin: 0 auto 24px auto;

    padding: 14px 16px;

    border-radius: 10px;

    background: #fff7ed;
    border: 1px solid #fdba74;

    color: #9a3412;

    font-size: 14px;
    line-height: 1.6;
}

.fiuu-success-info {
    max-width: 420px;

    margin: 0 auto 28px auto;

    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 12px;

    overflow: hidden;
}

.fiuu-success-info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;

    gap: 16px;

    padding: 16px 18px;

    border-bottom: 1px solid #e5e7eb;
}

.fiuu-success-info-row:last-child {
    border-bottom: none;
}

.fiuu-success-label {
    font-size: 14px;
    font-weight: 600;
    color: #374151;
}

.fiuu-success-value {
    font-size: 14px;
    color: #111827;
    font-weight: 600;
}

.fiuu-success-value--success {
    color: #16a34a;
}

.fiuu-success-actions {
    display: flex;
    justify-content: center;
    gap: 12px;

    flex-wrap: wrap;
}

.fiuu-success-actions .btn {
    min-width: 180px;
}

@media (max-width: 640px) {

    .fiuu-success-title {
        font-size: 24px;
    }

    .fiuu-success-actions {
        flex-direction: column;
        align-items: center;
    }

    .fiuu-success-actions .btn {
        width: 100%;
        max-width: 320px;
    }

    .fiuu-success-info-row {
        flex-direction: column;
        align-items: flex-start;
    }
}

.seller-verification-camera-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 14px;
}

.seller-verification-camera-icon-symbol {
    font-size: 42px;
    line-height: 1;
    display: inline-flex;
}

/* ===========================
   Signup Phone Validation
   Scope: .signup-page
   =========================== */

.signup-page .signup-phone-message {
    min-height: 20px;
    margin-top: 8px;
    font-size: 14px;
    font-weight: 500;
    display: block;
}

/* =========================================================
   Seller Escrow mobile shell
   Scope: Escrow page only, mobile/tablet <= 850px.
   Desktop/wide screens remain unchanged.
========================================================= */
@media (max-width: 850px) {
    body:has(.seller-escrow-page) {
        padding-top: 0 !important;
        background: #f4f5f7;
    }

    body:has(.seller-escrow-page) .header,
    body:has(.seller-escrow-page) .site-header,
    body:has(.seller-escrow-page) .dashboard-overview,
    body:has(.seller-escrow-page) .account-sidebar {
        display: none !important;
    }

    body:has(.seller-escrow-page) .account-dashboard-wrapper {
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    body:has(.seller-escrow-page) .account-main-content {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 auto !important;
        padding: 0 !important;
        overflow: visible !important;
    }

    body:has(.seller-escrow-page) .account-main-content > div {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        background: transparent !important;
        border-radius: 0 !important;
        box-shadow: none !important;
    }

    .seller-escrow-page {
        min-height: 100vh;
        background: #ffffff;
        padding: 0 10px 96px;
        box-sizing: border-box;
    }

    .seller-escrow-page > .px-6 {
        padding: 24px 6px 12px !important;
        text-align: center;
    }

    .seller-escrow-page h1 {
        color: #0F9F9A;
        font-size: 28px;
        line-height: 1.2;
        margin: 0;
    }

    .seller-escrow-page h1 + p {
        max-width: 420px;
        margin: 8px auto 0;
        font-size: 12px;
        line-height: 1.45;
        text-align: center;
    }

    .seller-escrow-page h1 + p + p {
        max-width: 380px;
        margin: 6px auto 0;
        font-size: 11px;
        line-height: 1.4;
        text-align: center;
    }

    .seller-escrow-page .buyer-orders-search {
        max-width: none;
        margin: 10px 0 0;
        padding: 0;
    }

    .seller-escrow-page .search-form {
        display: flex;
        align-items: center;
        gap: 0;
        width: 100%;
    }

    .seller-escrow-page .search-input {
        flex: 1 1 auto;
        min-width: 0;
        width: auto;
        height: 36px;
        border-radius: 8px 0 0 8px;
        box-sizing: border-box;
    }

    .seller-escrow-page .search-button {
        flex: 0 0 auto;
        width: auto;
        min-width: 78px;
        height: 36px;
        border-radius: 0 8px 8px 0;
        box-sizing: border-box;
    }

    .seller-escrow-page > .p-4 {
        padding: 12px 0 0 !important;
    }

    .seller-escrow-page > .p-4 > .bg-white {
        width: 100%;
        max-width: 430px;
        margin: 0 auto;
        border-radius: 14px;
        box-sizing: border-box;
    }
}

.seller-escrow-mobile-list {
    display: none;
}

/* =========================================================
   Seller Escrow mobile cards
   Scope: Escrow page only, mobile/tablet <= 850px.
   Desktop table remains unchanged.
========================================================= */
@media (max-width: 850px) {
    .seller-escrow-page > .p-4 {
        display: none !important;
    }

    .seller-escrow-page .seller-escrow-mobile-list {
        display: block;
        max-width: none;
        margin: 12px 0 0;
        padding: 0 2px 18px;
        box-sizing: border-box;
    }

    .seller-escrow-page .seller-escrow-mobile-empty {
        background: #ffffff;
        border-radius: 14px;
        padding: 18px 14px;
        color: #6b7280;
        font-size: 13px;
        text-align: center;
        box-shadow: 0 1px 8px rgba(0,0,0,0.06);
    }

    .seller-escrow-page .seller-escrow-mobile-card {
        background: #ffffff;
        border: 1px solid #eef2f2;
        border-radius: 14px;
        margin: 10px 0;
        box-shadow: 0 1px 8px rgba(0,0,0,0.06);
        overflow: hidden;
    }

    .seller-escrow-page .seller-escrow-mobile-card__top {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
        padding: 10px 12px;
        border-bottom: 1px solid #f0f0f0;
    }

    .seller-escrow-page .seller-escrow-mobile-card__buyer {
        display: flex;
        align-items: center;
        gap: 7px;
        min-width: 0;
        color: #374151;
        font-size: 12px;
        font-weight: 700;
    }

    .seller-escrow-page .seller-escrow-mobile-card__buyer span {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .seller-escrow-page .seller-escrow-mobile-card__status {
        flex: 0 0 auto;
        max-width: 150px;
        border-radius: 999px;
        padding: 4px 8px;
        background: #eef2ff;
        color: #4f46e5;
        font-size: 10px;
        font-weight: 800;
        line-height: 1.15;
        text-align: center;
    }

    .seller-escrow-page .seller-escrow-mobile-card__body {
        display: flex;
        gap: 10px;
        padding: 12px;
        color: inherit;
        text-decoration: none;
    }

    .seller-escrow-page .seller-escrow-mobile-card__body:hover,
    .seller-escrow-page .seller-escrow-mobile-card__body:focus,
    .seller-escrow-page .seller-escrow-mobile-card__body:active,
    .seller-escrow-page .seller-escrow-mobile-card__body:visited {
        color: inherit;
        text-decoration: none;
    }

    .seller-escrow-page .seller-escrow-mobile-card__body *,
    .seller-escrow-page .seller-escrow-mobile-card__body:hover *,
    .seller-escrow-page .seller-escrow-mobile-card__body:focus *,
    .seller-escrow-page .seller-escrow-mobile-card__body:active *,
    .seller-escrow-page .seller-escrow-mobile-card__body:visited * {
        text-decoration: none;
    }

    .seller-escrow-page .seller-escrow-mobile-card__image {
        width: 76px;
        height: 76px;
        flex: 0 0 76px;
        border-radius: 10px;
        overflow: hidden;
        background: #f3f4f6;
    }

    .seller-escrow-page .seller-escrow-mobile-card__image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }

    .seller-escrow-page .seller-escrow-mobile-card__info {
        min-width: 0;
        flex: 1;
    }

    .seller-escrow-page .seller-escrow-mobile-card__order {
        color: #6b7280;
        font-size: 11px;
        font-weight: 700;
        margin-bottom: 4px;
    }

    .seller-escrow-page .seller-escrow-mobile-card__title {
        color: #111827;
        font-size: 14px;
        font-weight: 800;
        line-height: 1.35;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .seller-escrow-page .seller-escrow-mobile-card__meta {
        margin-top: 5px;
        color: #777777;
        font-size: 12px;
    }

    .seller-escrow-page .seller-escrow-mobile-card__subtotal {
        margin-top: 6px;
        color: #0F9F9A;
        font-size: 14px;
        font-weight: 850;
    }

    .seller-escrow-page .seller-escrow-mobile-card__footer {
        padding: 0 12px 12px;
        border-top: 1px solid #f0f0f0;
    }

    .seller-escrow-page .seller-escrow-mobile-card__total {
        padding-top: 10px;
        color: #374151;
        font-size: 13px;
        text-align: right;
    }

    .seller-escrow-page .seller-escrow-mobile-card__info-list {
        margin-top: 8px;
    }

    .seller-escrow-page .seller-escrow-mobile-card__info-row {
        display: flex;
        align-items: flex-start;
        justify-content: space-between;
        gap: 12px;
        padding-top: 7px;
        color: #6b7280;
        font-size: 12px;
    }

    .seller-escrow-page .seller-escrow-mobile-card__info-label {
        color: #6b7280;
        font-weight: 650;
    }

    .seller-escrow-page .seller-escrow-mobile-card__info-value {
        color: #1f2937;
        font-weight: 700;
        text-align: right;
        max-width: 60%;
        word-break: break-word;
    }

    .seller-escrow-page .seller-escrow-mobile-card__actions {
        display: flex;
        justify-content: flex-end;
        margin-top: 12px;
    }

    .seller-escrow-page .seller-escrow-mobile-form {
        margin: 0;
    }

    .seller-escrow-page .seller-escrow-mobile-btn {
        min-height: 34px;
        padding: 8px 14px;
        border: 0;
        border-radius: 999px;
        font-size: 12px;
        font-weight: 800;
        cursor: pointer;
    }

    .seller-escrow-page .seller-escrow-mobile-btn--primary {
        background: #16a34a;
        color: #ffffff;
    }

    .seller-escrow-page .seller-escrow-mobile-card__note {
        color: #6b7280;
        font-size: 12px;
        font-weight: 800;
    }
}

@media (max-width: 380px) {
    .seller-escrow-page .seller-escrow-mobile-card__image {
        width: 70px;
        height: 70px;
        flex-basis: 70px;
    }
}

/* =========================================================
   Seller Escrow Details mobile shell
   Scope: seller escrow details page only.
   Purpose: prevent account sidebar/dashboard from squeezing phone view.
========================================================= */
@media (max-width: 850px) {
    body:has(.seller-escrow-details-page) {
        padding-top: 0 !important;
        background: #f4f5f7;
    }

    body:has(.seller-escrow-details-page) .header,
    body:has(.seller-escrow-details-page) .site-header,
    body:has(.seller-escrow-details-page) .dashboard-overview,
    body:has(.seller-escrow-details-page) .account-sidebar {
        display: none !important;
    }

    body:has(.seller-escrow-details-page) .account-dashboard-wrapper {
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        background: #f4f5f7 !important;
        overflow-x: hidden !important;
        box-sizing: border-box;
    }

    body:has(.seller-escrow-details-page) .account-main-content {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
        overflow-x: hidden !important;
        box-sizing: border-box;
    }

    body:has(.seller-escrow-details-page) .account-main-content > div {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        background: transparent !important;
        border: 0 !important;
        box-shadow: none !important;
        overflow-x: hidden !important;
        box-sizing: border-box;
    }

    .seller-escrow-details-page {
        width: 100%;
        max-width: 100%;
        min-height: 100vh;
        margin: 0;
        padding: 0 10px 96px;
        background: #ffffff;
        overflow-x: hidden;
        box-sizing: border-box;
    }

    .seller-escrow-details-page .px-6 {
        padding: 24px 6px 12px !important;
        text-align: center;
    }

    .seller-escrow-details-page .px-6 h1 {
        color: #0F9F9A;
        font-size: 28px;
        line-height: 1.15;
        margin: 0;
    }

    .seller-escrow-details-page .px-6 p {
        max-width: 320px;
        margin-left: auto;
        margin-right: auto;
        font-size: 12px;
        line-height: 1.5;
    }

    .seller-escrow-details-page > .p-4 {
        padding: 8px 0 20px !important;
    }

    .seller-escrow-details-page .order-summary {
        display: grid;
        gap: 8px;
        padding: 14px;
        border-radius: 12px;
        background: #f8fafc;
        overflow-wrap: anywhere;
        box-sizing: border-box;
    }

    .seller-escrow-details-page .section-title {
        color: #111827;
        font-size: 16px;
        font-weight: 800;
        margin-bottom: 10px;
    }

    .seller-escrow-details-page .overflow-x-auto {
        width: 100%;
        max-width: 100%;
        overflow-x: auto;
        box-sizing: border-box;
    }

    .seller-escrow-details-page .buyer-orders-table {
        min-width: 520px;
        table-layout: fixed;
        font-size: 12px;
    }

    .seller-escrow-details-page .buyer-orders-table th,
    .seller-escrow-details-page .buyer-orders-table td {
        padding-left: 8px;
        padding-right: 8px;
        overflow-wrap: anywhere;
    }

    .seller-escrow-details-page .form-actions {
        display: flex;
        flex-direction: column;
        gap: 10px;
        padding: 4px 0 18px;
    }

    .seller-escrow-details-page .form-actions .btn,
    .seller-escrow-details-page .form-actions .bo-btn,
    .seller-escrow-details-page .form-actions form {
        width: 100%;
        max-width: 100%;
    }

    .seller-escrow-details-page .form-actions .btn,
    .seller-escrow-details-page .form-actions .bo-btn {
        justify-content: center;
        text-align: center;
    }
}

/* =========================================================
   Seller Escrow wide/special desktop containment
   Scope only:
   - Nest Hub style view: 1024 x 600
   - iPad Pro style view: 1024 x 1366
   - Surface Pro 7 style view: 912 x 1368
   Phones/mobile cards remain unchanged.
   Normal desktop remains unchanged.
========================================================= */
@media (min-width: 901px) and (max-width: 1100px) and (max-height: 700px),
       (min-width: 1000px) and (max-width: 1100px) and (min-height: 1000px),
       (min-width: 901px) and (max-width: 950px) and (min-height: 1000px) {

    body:has(.seller-escrow-page) .account-dashboard-wrapper {
        width: calc(100vw - 32px);
        max-width: calc(100vw - 32px);
        margin-left: auto;
        margin-right: auto;
        overflow-x: hidden;
        box-sizing: border-box;
        gap: 12px;
    }

    body:has(.seller-escrow-page) .account-main-content {
        min-width: 0;
        flex: 1 1 auto;
        overflow: hidden;
    }

    body:has(.seller-escrow-page) .account-main-content > div {
        min-width: 0;
        max-width: 100%;
        overflow: hidden;
        box-sizing: border-box;
    }

    body:has(.seller-escrow-page) .dashboard-overview {
        overflow: hidden;
    }

    body:has(.seller-escrow-page) .stats-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 10px;
    }

    body:has(.seller-escrow-page) .stat-card {
        min-width: 0;
        padding: 14px 10px;
    }

    body:has(.seller-escrow-page) .seller-escrow-page {
        min-width: 0;
        max-width: 100%;
        overflow: hidden;
    }

    body:has(.seller-escrow-page) .seller-escrow-page .buyer-orders-search {
        max-width: 100%;
    }

    body:has(.seller-escrow-page) .seller-escrow-page .search-form {
        display: flex;
        width: 100%;
    }

    body:has(.seller-escrow-page) .seller-escrow-page .search-input {
        min-width: 0;
        flex: 1 1 auto;
    }

    body:has(.seller-escrow-page) .seller-escrow-page .search-button {
        flex: 0 0 auto;
    }

    body:has(.seller-escrow-page) .seller-escrow-page > .p-4,
    body:has(.seller-escrow-page) .seller-escrow-page > .p-4 > .bg-white,
    body:has(.seller-escrow-page) .seller-escrow-page .overflow-x-auto {
        width: 100%;
        max-width: 100%;
        min-width: 0;
        box-sizing: border-box;
    }

    body:has(.seller-escrow-page) .seller-escrow-page .overflow-x-auto {
        overflow-x: auto;
    }

    body:has(.seller-escrow-page) .seller-escrow-page .buyer-orders-table {
        min-width: 640px;
        table-layout: fixed;
    }

    body:has(.seller-escrow-page) .seller-escrow-page .buyer-orders-table th,
    body:has(.seller-escrow-page) .seller-escrow-page .buyer-orders-table td {
        padding-left: 8px;
        padding-right: 8px;
        font-size: 12px;
    }
}

/* =========================================================
   Seller Earnings mobile summary cards
   Scope: Seller Earnings page only, mobile/tablet <= 850px
   Desktop/wide screens remain unchanged.
========================================================= */
@media (max-width: 850px) {
    body:has(.seller-earnings-page) .dashboard-overview,
    body:has(.seller-earnings-page) .account-sidebar {
        display: none !important;
    }

    body:has(.seller-earnings-page) .account-dashboard-wrapper {
        display: block !important;
        max-width: 100% !important;
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    body:has(.seller-earnings-page) .account-main-content {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 auto !important;
        padding: 0 !important;
        overflow: visible !important;
    }

    body:has(.seller-earnings-page) .account-main-content > * {
        max-width: 100% !important;
        width: 100% !important;
    }

    .seller-earnings-page {
        min-height: 100dvh;
        background: #f4f7f8;
        padding: 18px 12px 96px;
    }

    .seller-earnings-page > .px-6 {
        padding: 0 2px 12px !important;
    }

    .seller-earnings-page h1 {
        color: #111827;
        font-size: 24px;
        line-height: 1.2;
        margin: 0;
    }

     .seller-earnings-page h1 + p {
        max-width: 270px;
        font-size: 12px;
        line-height: 1.35;
        margin: 6px auto 0;
        text-align: justify;
        text-align-last: center;
    }

    .seller-earnings-page > .p-4:first-of-type {
        padding: 0 !important;
        margin-top: 10px;
    }

    .seller-earnings-page .stats-grid {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
        width: 100%;
        max-width: 430px;
        margin: 0 auto 16px;
    }

    .seller-earnings-page .stats-grid .stat-card {
        min-height: 112px;
        border-radius: 16px;
        padding: 16px 14px;
        box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
        transform: none !important;
    }

    .seller-earnings-page .stats-grid .stat-card:nth-child(3) {
        order: 1;
        grid-column: 1 / -1;
        min-height: 148px;
        display: flex;
        flex-direction: column;
        justify-content: flex-end;
        background: linear-gradient(135deg, #0F9F9A 0%, #17C9C3 100%) !important;
    }

    .seller-earnings-page .stats-grid .stat-card:nth-child(2) {
        order: 2;
    }

    .seller-earnings-page .stats-grid .stat-card:nth-child(1) {
        order: 3;
    }

    .seller-earnings-page .stats-grid .stat-card:nth-child(4) {
        order: 4;
        grid-column: 1 / -1;
        min-height: 90px;
        background: linear-gradient(135deg, #eef7ff 0%, #ffffff 100%) !important;
        color: #0f172a;
    }

    .seller-earnings-page .stats-grid .stat-number {
        font-size: 20px;
        line-height: 1.15;
        font-weight: 800;
        margin-bottom: 8px;
    }

    .seller-earnings-page .stats-grid .stat-label {
        font-size: 11px;
        line-height: 1.25;
        font-weight: 700;
        opacity: 0.95;
    }

    .seller-earnings-page .stats-grid .stat-card:nth-child(3) .stat-number {
        font-size: 30px;
        letter-spacing: -0.4px;
    }

    .seller-earnings-page .stats-grid .stat-card:nth-child(3) .stat-label {
        font-size: 13px;
    }
}

/* =========================================================
   Seller Earnings mobile order cards
   Scope: Seller Earnings page only, mobile/tablet <= 850px
   Desktop table remains for desktop/wide screens.
========================================================= */
.seller-earnings-mobile-list {
    display: none;
}

@media (max-width: 850px) {
    .seller-earnings-page .seller-earnings-desktop-table {
        display: none !important;
    }

    .seller-earnings-page .seller-earnings-mobile-list {
        display: block;
        margin-top: 12px;
    }

    .seller-earnings-page .seller-earning-mobile-empty {
        background: #ffffff;
        border: 1px dashed #d1d5db;
        border-radius: 12px;
        padding: 18px;
        text-align: center;
        font-size: 13px;
        color: #6b7280;
    }

    .seller-earnings-page .seller-earning-mobile-card {
        background: #ffffff;
        border-radius: 12px;
        margin: 10px 0;
        box-shadow: 0 1px 8px rgba(0,0,0,0.06);
        overflow: hidden;
    }

    .seller-earnings-page .seller-earning-mobile-card__top {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
        padding: 10px 12px;
        border-bottom: 1px solid #f0f0f0;
    }

     .seller-earnings-page .seller-earning-mobile-card__order {
        display: flex;
        align-items: center;
        gap: 7px;
        min-width: 0;
        font-size: 12px;
        font-weight: 650;
        letter-spacing: 0.01em;
        color: #1f2937;
    }

    .seller-earnings-page .seller-earning-mobile-card__order span {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .seller-earnings-page .seller-earning-mobile-card__status {
        flex: 0 0 auto;
        max-width: 132px;
        border-radius: 999px;
        padding: 4px 8px;
        font-size: 10px;
        line-height: 1.15;
        font-weight: 700;
        letter-spacing: 0.01em;
        text-align: center;
    }

    .seller-earnings-page .seller-earning-mobile-card__status.is-available {
        background: #e6fffb;
        color: #0F9F9A;
    }

    .seller-earnings-page .seller-earning-mobile-card__status.is-pending {
        background: #fff1f8;
        color: #db2777;
    }

    .seller-earnings-page .seller-earning-mobile-card__status.is-paid-out {
        background: #eef2ff;
        color: #4f46e5;
    }

    .seller-earnings-page .seller-earning-mobile-card__status.is-muted {
        background: #f3f4f6;
        color: #6b7280;
    }

    .seller-earnings-page .seller-earning-mobile-card__body {
        padding: 12px;
    }

    .seller-earnings-page .seller-earning-mobile-card__item {
        font-size: 14px;
        font-weight: 700;
        color: #111827;
        line-height: 1.38;
    }

    .seller-earnings-page .seller-earning-mobile-card__amount {
        margin-top: 8px;
        font-size: 15px;
        font-weight: 760;
        letter-spacing: -0.01em;
        color: #0F9F9A;
    }

    .seller-earnings-page .seller-earning-mobile-card__info-list {
        padding: 0 12px 12px;
    }

    .seller-earnings-page .seller-earning-mobile-card__info-row {
        display: flex;
        align-items: flex-start;
        justify-content: space-between;
        gap: 12px;
        padding-top: 8px;
        font-size: 12px;
        color: #6b7280;
    }

    .seller-earnings-page .seller-earning-mobile-card__info-row strong {
        color: #1f2937;
        text-align: right;
        font-weight: 650;
        max-width: 58%;
        word-break: break-word;
    }

    .seller-earnings-page .buyer-pagination {
        padding-top: 18px !important;
        margin-top: 12px !important;
    }
}

/* =========================================================
   Seller Earnings mobile summary icon + premium number polish
   Scope: Seller Earnings page only, mobile/tablet <= 850px
========================================================= */
.seller-earning-stat-icon,
.seller-earning-stat-arrow {
    display: none;
}

@media (max-width: 850px) {
    .seller-earnings-page .seller-earning-stat-card {
        position: relative;
        overflow: hidden;
        -webkit-font-smoothing: antialiased;
        text-rendering: geometricPrecision;
    }

    .seller-earnings-page .seller-earning-stat-card::after {
        content: "";
        position: absolute;
        right: -34px;
        bottom: -42px;
        width: 150px;
        height: 90px;
        border-radius: 999px;
        background: rgba(255,255,255,0.13);
        pointer-events: none;
    }

    .seller-earnings-page .seller-earning-stat-icon {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 34px;
        height: 34px;
        border-radius: 14px;
        margin-bottom: 12px;
        background: rgba(255,255,255,0.88);
        color: #0F9F9A;
        box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08);
        font-size: 15px;
        position: relative;
        z-index: 1;
    }

    .seller-earnings-page .seller-earning-stat-card__top {
        display: flex;
        align-items: flex-start;
        justify-content: center;
        gap: 10px;
        position: relative;
        z-index: 1;
    }

    .seller-earnings-page .seller-earning-stat-arrow {
        display: none !important;
    }

    .seller-earnings-page .seller-earning-stat-card .stat-label {
        position: relative;
        z-index: 1;
        font-size: 11px;
        line-height: 1.25;
        font-weight: 680;
        letter-spacing: -0.01em;
    }

    .seller-earnings-page .seller-earning-stat-card .stat-number {
        position: relative;
        z-index: 1;
        display: block;
        max-width: 100%;
        white-space: nowrap;
        font-size: clamp(16px, 4.6vw, 20px);
        line-height: 1.08;
        font-weight: 720;
        letter-spacing: -0.045em;
        font-variant-numeric: tabular-nums;
    }

    .seller-earnings-page .seller-earning-stat-card--available .stat-label {
        margin-top: 4px;
        font-size: 13px;
        font-weight: 680;
    }

    .seller-earnings-page .seller-earning-stat-card--available .stat-number {
        margin-top: 8px;
        font-size: clamp(24px, 7.2vw, 30px);
        font-weight: 730;
        letter-spacing: -0.055em;
    }

    .seller-earnings-page .seller-earning-stat-card--pending .seller-earning-stat-icon {
        color: #db2777;
        background: rgba(255,255,255,0.88);
    }

    .seller-earnings-page .seller-earning-stat-card--completed .seller-earning-stat-icon {
        color: #7c3aed;
        background: rgba(255,255,255,0.88);
    }

    .seller-earnings-page .seller-earning-stat-card--paid {
        display: flex !important;
        align-items: center;
        gap: 14px;
        justify-content: flex-start;
    }

    .seller-earnings-page .seller-earning-stat-card--paid .seller-earning-stat-icon {
        flex: 0 0 42px;
        width: 42px;
        height: 42px;
        margin-bottom: 0;
        color: #0369a1;
        background: #bae6fd;
    }

    .seller-earnings-page .seller-earning-stat-card--paid .stat-label {
        margin-bottom: 4px;
        color: #334155;
    }

    .seller-earnings-page .seller-earning-stat-card--paid .stat-number {
        color: #0f172a;
        font-size: clamp(18px, 5.4vw, 22px);
    }
}

/* Seller Earnings mobile card link foundation */
@media (max-width: 850px) {
    .seller-earnings-page .seller-earning-mobile-card__link {
        display: block;
        color: inherit;
        text-decoration: none;
    }

    .seller-earnings-page .seller-earning-mobile-card__link:active {
        background: rgba(15, 159, 154, 0.04);
    }
}

/* Seller Earnings ad order panel mobile title polish */
@media (max-width: 850px) {
    .bj-ad-order-panel--seller-earnings .bj-ad-order-panel__header {
        position: relative;
        align-items: flex-start;
        gap: 10px;
    }

    .bj-ad-order-panel--seller-earnings .bj-ad-order-panel__header > div:first-child {
        min-width: 0;
        flex: 1 1 auto;
        padding-right: 108px;
    }

    .bj-ad-order-panel--seller-earnings .bj-ad-order-panel__eyebrow,
    .bj-ad-order-panel--seller-earnings .bj-ad-order-panel__title {
        text-align: left;
    }

    .bj-ad-order-panel--seller-earnings .bj-ad-order-panel__title {
        white-space: nowrap;
        font-size: 15px;
        line-height: 1.2;
        letter-spacing: -0.02em;
    }

    .bj-ad-order-panel--seller-earnings .bj-ad-order-panel__status {
        position: absolute;
        top: 0;
        right: 0;
        max-width: 104px;
        text-align: center;
    }
}

/* Seller Earnings seller-order panel: small-phone header spacing
   Scope: Galaxy S8+ / Galaxy Z Fold 5 style widths only.
   Keeps wide devices/tablets/desktop unchanged. */
@media (max-width: 430px) {
    .bj-ad-order-panel--seller-earnings .bj-ad-order-panel__header {
        display: block;
        position: relative;
        padding-right: 0;
    }

    .bj-ad-order-panel--seller-earnings .bj-ad-order-panel__header > div:first-child {
        width: 100%;
        padding-right: 0;
    }

    .bj-ad-order-panel--seller-earnings .bj-ad-order-panel__eyebrow {
        display: block;
        max-width: calc(100% - 112px);
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        text-align: left;
    }

/* Seller Earnings desktop/wide Order ID link */
.seller-earnings-page .seller-earning-order-id-link {
    color: inherit;
    text-decoration: none;
    font-weight: inherit;
}

.seller-earnings-page .seller-earning-order-id-link:hover {
    color: #0F9F9A;
    text-decoration: underline;
    text-underline-offset: 2px;
}

    .bj-ad-order-panel--seller-earnings .bj-ad-order-panel__title {
        display: block;
        width: 100%;
        margin-top: 6px;
        white-space: nowrap;
        text-align: left;
        font-size: clamp(13px, 4vw, 15px);
        line-height: 1.2;
        letter-spacing: -0.02em;
    }

    .bj-ad-order-panel--seller-earnings .bj-ad-order-panel__status {
        position: absolute;
        top: 0;
        right: 0;
        max-width: 104px;
        text-align: center;
    }
}

/* Seller Earnings wide desktop-style fit
   Scope only:
   - Nest Hub
   - iPad Pro
   - Surface Pro 7
   Keeps phone mobile cards unchanged. */
@media (min-width: 901px) and (max-width: 1100px) and (max-height: 700px),
       (min-width: 1000px) and (max-width: 1100px) and (min-height: 1000px),
       (min-width: 901px) and (max-width: 950px) and (min-height: 1000px) {

    body:has(.seller-earnings-page) .account-dashboard-wrapper {
        width: calc(100vw - 32px);
        max-width: calc(100vw - 32px);
        margin-left: auto;
        margin-right: auto;
        overflow-x: hidden;
    }

    body:has(.seller-earnings-page) .account-main-content {
        min-width: 0;
        width: calc(100vw - 352px);
        max-width: calc(100vw - 352px);
    }

    body:has(.seller-earnings-page) .account-main-content > * {
        min-width: 0;
        max-width: 100%;
    }

    .seller-earnings-page {
        min-width: 0;
        max-width: 100%;
    }

    .seller-earnings-page .stats-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px;
    }

    .seller-earnings-page .seller-earnings-desktop-table {
        max-width: 100%;
        overflow-x: auto;
    }

    .seller-earnings-page .seller-earnings-desktop-table table {
        min-width: 720px;
    }
}