
        * {
            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;
        }

        .header {
            background: #fff;
            border-bottom: 1px solid #e0e0e0;
            padding: 16px 0;
            position: sticky;
            top: 0;
            z-index: 100;
        }

        .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: #ff6f3c;
            text-decoration: none;
        }

        .search-container {
            flex: 1;
            max-width: 600px;
            margin: 0 20px;
        }

        .search-form {
            display: flex;
            width: 100%;
        }

        .search-input {
            flex: 1;
            padding: 10px 16px;
            border: 2px solid #ff6f3c;
            border-radius: 24px 0 0 24px;
            font-size: 14px;
            outline: none;
        }

        .search-button {
            background: #ff6f3c;
            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: #ff6f3c;
            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: #ff6f3c;
        }

        .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: #ff6f3c;
        }

        .main-content {
            background: #fff;
            border-radius: 12px;
            padding: 24px;
            box-shadow: 0 1px 3px rgba(0,0,0,0.1);
            min-height: 600px;
        }

        /* 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: #ff6f3c;
            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: #ff6f3c;
            color: white;
        }

        .btn-primary:hover {
            background: #e85a20;
        }

        .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: #ff6f3c;
            color: #ff6f3c;
        }

        .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: #ff6f3c;
        }

        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: #ff6f3c;
            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: #ff6f3c;
            border-bottom-color: #ff6f3c;
        }

        /* FIX 2: Phone Change Modal - Improved for better visibility */
        .modal {
            display: none;
            position: fixed;
            z-index: 1000;
            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: #ff6f3c;
            color: white;
        }

        .step-label {
            font-size: 12px;
            color: #666;
        }

        .step.active .step-label {
            color: #ff6f3c;
            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: #ff6f3c;
            background: #fff9f7;
        }

        .verification-method.selected {
            border-color: #ff6f3c;
            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%;
            }
            
            .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);
            }
        }

        /* FIX 4: Banks & Cards - Shopee-like styling */
        .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: #ff6f3c;
            color: #ff6f3c;
            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: #ff6f3c;
            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;
        }
 
/* ===== 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);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.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 #ff6f3c;
}

/* 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;
}

/* Phone input (Shopee-style) */
.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: #ff6f3c;
    color: #fff;
    border-radius: 10px;
    padding: 12px;
    font-weight: 600;
    display: block;
}

.btn-primary:hover {
    background: #e85a20;
}

.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;
}

.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: #ff6f3c;
    box-shadow: 0 0 0 2px rgba(255, 111, 60, 0.15);
}

.otp-footer {
    margin-top: 18px;
    font-size: 13px;
    color: #666;
    text-align: center;
}

.resend-link {
    color: #ff6f3c;
    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: #ff6f3c; /* 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: #ff6f3c !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: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.buyer-orders-table th,
.buyer-orders-table td {
    padding: 12px 16px;
    vertical-align: middle;
    white-space: nowrap;
    text-align: left; /* FORCE LEFT ALIGN */
}

.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;
}

/* =========================================================
   Seller Orders (scoped UI)
   File: C:\beanjars-project\resources\views\seller\orders\index.blade.php
   ========================================================= */

.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: #ff6f3c;
    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: #ff6f3c;
    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: #ff6f3c;
}

/* 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: #ff6f3c;
    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); }

/* 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; }

/* ===== Live Videos (Top Strip - shared on ALL pages) ===== */
.header-strip .header-container{
    display:flex;
    justify-content:space-between;
    align-items:center;
}

.strip-left{
    display:flex;
    align-items:center;
}

.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;
}