* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Segoe UI", Tahoma, sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    background: #f8fafc;
    color: #1e293b;
    overflow-x: hidden;
}

.site-header {
    background: #ffffff;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    width: 100%;
}

.header-shell {
    width: min(1180px, 92%);
    margin: 0 auto;
}

.header-top {
    background: #0f172a;
    color: #e2e8f0;
    font-size: 12px;
}

.header-top .header-shell {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 6px 0;
}

.top-links {
    display: flex;
    align-items: center;
    gap: 18px;
}

.top-links a {
    color: #e2e8f0;
    text-decoration: none;
}

.header-main {
    background: #ffffff;
    border-bottom: 1px solid #e2e8f0;
}

.header-main-row {
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    flex-shrink: 0;
}

.brand-mark {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, #f97316, #fb923c);
    color: #ffffff;
    font-size: 14px;
    font-weight: 700;
}

.brand-text {
    display: flex;
    flex-direction: column;
}

.brand-name {
    color: #0f172a;
    font-size: 16px;
    font-weight: 800;
    letter-spacing: 0.3px;
}

.brand-tagline {
    color: #64748b;
    font-size: 10px;
}

.search-bar {
    flex: 1;
    max-width: 400px;
    display: flex;
    align-items: center;
    gap: 6px;
    background: #f8fafc;
    border: 2px solid #fed7aa;
    border-radius: 10px;
    padding: 4px 6px 4px 10px;
}

.search-bar i {
    color: #64748b;
    font-size: 18px;
}

.search-bar input {
    flex: 1;
    border: none;
    outline: none;
    background: transparent;
    font-size: 12px;
    color: #0f172a;
}

.search-bar button {
    border: none;
    background: #f97316;
    color: #ffffff;
    padding: 6px 10px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 12px;
    cursor: pointer;
}

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

.action-link {
    position: relative;
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 6px 8px;
    text-decoration: none;
    color: #334155;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-weight: 600;
    font-size: 12px;
}

.action-link i {
    font-size: 14px;
}

.action-link strong {
    position: absolute;
    top: -6px;
    right: -4px;
    min-width: 20px;
    height: 20px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    background: #ef4444;
    color: #ffffff;
    font-size: 11px;
}

.profile-link {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: grid;
    place-items: center;
    text-decoration: none;
    background: #eff6ff;
    color: #2563eb;
    border: 1px solid #bfdbfe;
    font-size: 16px;
    flex-shrink: 0;
}

.profile-summary,
.logout-btn {
    border: none;
    cursor: pointer;
    font: inherit;
}

.profile-summary.hidden,
.logout-btn.hidden,
.profile-link.hidden,
.header-user-name.hidden {
    display: none;
}

.profile-summary {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #ffffff;
}

.header-user-name {
    color: #0f172a;
    font-weight: 700;
    font-size: 12px;
    max-width: 80px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.header-profile-image-wrap {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: grid;
    place-items: center;
    background: #eff6ff;
    color: #2563eb;
    border: 1px solid #bfdbfe;
    overflow: hidden;
    font-size: 16px;
}

.header-profile-image-wrap img,
.profile-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.logout-btn {
    background: #fee2e2;
    color: #b91c1c;
    padding: 6px 10px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 12px;
}

.header-nav {
    background: #ffffff;
}

.nav-row {
    min-height: 36px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.main-nav a {
    text-decoration: none;
    color: #334155;
    font-size: 12px;
    font-weight: 600;
    transition: color 0.25s ease, border-bottom 0.25s ease;
    padding: 4px 2px;
    border-bottom: 2px solid transparent;
}

.main-nav a:hover {
    color: #f97316;
    border-bottom-color: #fdba74;
}

.main-nav a.active {
    color: #f97316;
    border-bottom-color: #f97316;
    font-weight: 700;
}

.main-nav a:first-child {
    color: #0f172a;
}

/* Services dropdown dropdown */
.nav-dropdown {
    position: relative;
}

.dropdown-trigger {
    display: flex !important;
    align-items: center;
    gap: 4px;
    cursor: pointer;
}

.dropdown-trigger i {
    font-size: 14px;
    transition: transform 0.2s ease;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    background: #ffffff;
    border-radius: 14px;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.15);
    padding: 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: all 0.25s ease;
    z-index: 100;
}

.dropdown-menu a {
    display: block;
    padding: 10px 14px;
    color: #334155;
    font-size: 14px;
    font-weight: 600;
    border-bottom: none !important;
    border-radius: 8px;
    transition: background 0.2s, color 0.2s;
}

.dropdown-menu a:hover {
    background: #fff7ed;
    color: #f97316;
    border-bottom-color: transparent !important;
}

.nav-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-dropdown:hover .dropdown-trigger i {
    transform: rotate(180deg);
}

.offer-badge {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    background: #fff7ed;
    color: #c2410c;
    border: 1px solid #fed7aa;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
}

.auth-modal.hidden,
.auth-modal-view.hidden,
.otp-block.hidden {
    display: none !important;
    pointer-events: none !important;
}

.auth-modal {
    position: fixed;
    inset: 0;
    z-index: 1200;
    display: block;
}

.auth-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.64);
    z-index: 1200;
}

.auth-modal-dialog {
    position: relative;
    width: min(460px, calc(100% - 24px));

    /* OLD */
    /* margin: 70px auto; */

    /* NEW */
    margin: 30px auto;

    background: #ffffff;
    border-radius: 28px;
    padding: 24px;

    box-shadow: 0 30px 70px rgba(15, 23, 42, 0.25);
    z-index: 1201;

    /* IMPORTANT */
    max-height: calc(100vh - 60px);
    overflow-y: auto;

    scrollbar-width: thin;
    scrollbar-color: #cbd5e1 transparent;
}

/* Profile modal positioned to right */
#profileModal .auth-modal-dialog {
    margin: 70px 24px 70px auto;
    z-index: 1201;
    max-height: calc(100vh - 140px);
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #cbd5e1 transparent;
}

#profileModal .auth-modal-dialog::-webkit-scrollbar {
    width: 6px;
}

#profileModal .auth-modal-dialog::-webkit-scrollbar-track {
    background: transparent;
}

#profileModal .auth-modal-dialog::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 10px;
}

#profileModal .auth-modal-dialog::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

.auth-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 50%;
    background: #f1f5f9;
    color: #0f172a;
    cursor: pointer;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.auth-close:hover {
    background: #e2e8f0;
    transform: rotate(90deg);
}

.auth-modal-label {
    color: #f97316;
    text-transform: uppercase;
    letter-spacing: 1.4px;
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 10px;
}

.auth-modal-dialog h2 {
    color: #0f172a;
    margin-bottom: 20px;
}

#recaptcha-container {
    margin-top: 10px;
    display: flex;
    justify-content: center;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 4px;
}

.form-group label {
    font-size: 13px;
    font-weight: 700;
    color: #475569;
    display: flex;
    align-items: center;
    gap: 4px;
}

.required-star {
    color: #ef4444;
}

.input-with-btn {
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
}

.phone-input-wrap {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 14px;
    padding-left: 14px;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.phone-input-wrap:focus-within {
    border-color: #f97316;
    box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.1);
}

.phone-prefix {
    color: #64748b;
    font-weight: 700;
    font-size: 15px;
    user-select: none;
}

.phone-input-wrap input {
    border: none !important;
    box-shadow: none !important;
    padding-left: 8px !important;
}

.verify-trigger-btn,
.verify-action-btn {
    padding: 8px 16px !important;
    width: auto !important;
    height: auto !important;
    font-size: 12px !important;
    border-radius: 10px !important;
    background: #f97316 !important;
    color: white !important;
    font-weight: 700 !important;
    cursor: pointer;
    white-space: nowrap;
}

.verify-trigger-btn.hidden,
.verify-action-btn.hidden {
    display: none !important;
}

.verify-status {
    font-size: 11px;
    margin-top: 4px;
    font-weight: 600;
}

.final-submit-btn:disabled {
    background: #cbd5e1 !important;
    cursor: not-allowed;
    transform: none !important;
}

input:read-only {
    background-color: #f8fafc !important;
    cursor: not-allowed;
    border-color: #e2e8f0 !important;
}

.verify-status.success {
    color: #16a34a !important;
}

.verify-status.error {
    color: #ef4444 !important;
}

.auth-modal-form {
    display: grid;
    gap: 14px;
}

.auth-modal-form input,
.auth-modal-form button,
.otp-block input,
.otp-actions button {
    width: 100%;
    padding: 14px 16px;
    border-radius: 14px;
    font: inherit;
}

.auth-modal-form input,
.otp-block input {
    border: 1px solid #cbd5e1;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.auth-modal-form input:focus,
.otp-block input:focus {
    border-color: #f97316;
    box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.1);
    outline: none;
}

.auth-modal-form button,
.otp-actions button {
    border: none;
    background: #f97316;
    color: #ffffff;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
}

.auth-modal-form button:hover,
.otp-actions button:hover {
    background: #ea580c;
}

.auth-modal-form button:active,
.otp-actions button:active {
    transform: scale(0.98);
}

.otp-block {
    margin-top: 18px;
    padding: 20px;
    background: #fff7ed;
    border-radius: 18px;
    border: 1px dashed #fed7aa;
}

.otp-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 12px;
}

.secondary-auth-btn {
    background: #eff6ff !important;
    color: #2563eb !important;
}

.secondary-auth-btn:hover {
    background: #dbeafe !important;
}

.role-select {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.role-btn {
    border: 2px solid #cbd5e1;
    background: #f1f5f9;
    color: #475569;
    padding: 14px 16px;
    border-radius: 14px;
    font-weight: 700;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.25s ease;
}

.role-btn:first-child {
    background: #dbeafe;
    color: #2563eb;
    border-color: #93c5fd;
}

.role-btn:last-child {
    background: #dcfce7;
    color: #16a34a;
    border-color: #86efac;
}

.role-btn.active {
    background: #f97316 !important;
    color: #ffffff !important;
    border-color: #f97316 !important;
    box-shadow: 0 4px 12px rgba(249, 115, 22, 0.4);
    transform: scale(1.02);
}

.auth-modal-switch {
    margin-top: 18px;
    color: #475569;
}

.auth-modal-switch a {
    color: #2563eb;
    font-weight: 700;
    text-decoration: none;
}

.auth-modal-message {
    margin-top: 18px;
    font-weight: 700;
    font-size: 14px;
}

.profile-modal-content {
    text-align: center;
}

.profile-modal-email {
    color: #64748b;
    margin-bottom: 8px;
    font-size: 14px;
}

.profile-preview {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    margin: 0 auto 16px;
    display: grid;
    place-items: center;
    background: #eff6ff;
    color: #2563eb;
    font-size: 40px;
    overflow: hidden;
    border: 3px solid #bfdbfe;
    box-shadow: 0 10px 20px rgba(37, 99, 235, 0.1);
}

.profile-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-details {
    background: #f8fafc;
    border-radius: 20px;
    padding: 20px;
    margin-bottom: 20px;
    border: 1px solid #e2e8f0;
}

.profile-detail-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid #e2e8f0;
    color: #334155;
    font-size: 14px;
    text-align: left;
}

.profile-detail-row:last-child {
    border-bottom: none;
}

.profile-detail-row i {
    color: #64748b;
    font-size: 20px;
    width: 24px;
    height: 24px;
    display: grid;
    place-items: center;
    background: #ffffff;
    border-radius: 6px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.profile-image-section {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
}

.image-upload-label {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px;
    background: #eff6ff;
    color: #2563eb;
    border-radius: 14px;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    transition: background 0.2s;
    border: 1px dashed #bfdbfe;
}

.image-upload-label:hover {
    background: #dbeafe;
}

#profileImageInput {
    display: none;
}

#uploadProfileImageBtn {
    padding: 14px;
    background: #2563eb;
    color: #ffffff;
    border: none;
    border-radius: 14px;
    font-weight: 700;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s;
}

#uploadProfileImageBtn:hover {
    background: #1d4ed8;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.profile-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.profile-logout-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px;
    background: #fee2e2;
    color: #b91c1c;
    border: none;
    border-radius: 14px;
    font-weight: 700;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.2s;
}

.profile-logout-btn:hover {
    background: #fecaca;
    color: #991b1b;
}

.profile-logout-btn i {
    font-size: 20px;
}

.profile-delete-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px;
    background: #ffffff;
    color: #dc2626;
    border: 2px solid #fecaca;
    border-radius: 14px;
    font-weight: 700;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.2s;
}

.profile-delete-btn:hover {
    background: #fef2f2;
    border-color: #fca5a5;
}

.profile-delete-btn i {
    font-size: 20px;
}

/* ================================================================== */
/* PREMIUM PROFILE MODAL                                              */
/* ================================================================== */

.profile-dialog {
    max-width: 420px !important;
    padding: 0 !important;
    border-radius: 28px !important;
    overflow: hidden;
}

.profile-content {
    position: relative;
    padding: 24px 24px 28px;
    text-align: center;
    background: #ffffff;
}

/* Gradient hero header */
.profile-hero {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 140px;
    background: linear-gradient(135deg, #f97316 0%, #ea580c 40%, #c2410c 100%);
    border-radius: 28px 28px 0 0;
    overflow: hidden;
}

.profile-hero-pattern {
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 20% 50%, rgba(255,255,255,0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255,255,255,0.1) 0%, transparent 40%),
        radial-gradient(circle at 50% 80%, rgba(255,255,255,0.08) 0%, transparent 45%);
    pointer-events: none;
}

.profile-hero-glow {
    position: absolute;
    bottom: -30px;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 60px;
    background: radial-gradient(ellipse, rgba(249,115,22,0.3) 0%, transparent 70%);
    pointer-events: none;
}

/* Avatar section */
.profile-avatar-wrap {
    position: relative;
    z-index: 2;
    display: inline-block;
    margin-top: 70px;
    margin-bottom: 12px;
}

.profile-avatar-ring {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    padding: 4px;
    background: linear-gradient(135deg, #f97316, #fb923c, #fbbf24);
    box-shadow: 0 0 0 4px #ffffff, 0 8px 30px rgba(249,115,22,0.25);
    animation: avatar-ring-glow 3s ease-in-out infinite;
}

@keyframes avatar-ring-glow {
    0%, 100% { box-shadow: 0 0 0 4px #ffffff, 0 8px 30px rgba(249,115,22,0.25); }
    50% { box-shadow: 0 0 0 4px #ffffff, 0 8px 40px rgba(249,115,22,0.45); }
}

.profile-preview {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: #fff7ed;
    color: #f97316;
    font-size: 40px;
    overflow: hidden;
}

.profile-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-camera-btn {
    position: absolute;
    bottom: 4px;
    right: 4px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #f97316;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(249,115,22,0.4);
    transition: all 0.2s ease;
    border: 2px solid #ffffff;
}

.profile-camera-btn:hover {
    transform: scale(1.1);
    background: #ea580c;
}

/* Name & badges */
.profile-name {
    font-size: 22px;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 4px;
    position: relative;
    z-index: 1;
}

.profile-badges {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 4px;
}

.profile-role-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 12px;
    background: #fff7ed;
    color: #c2410c;
    border: 1px solid #fed7aa;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
}

.profile-verified-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 12px;
    background: #f0fdf4;
    color: #16a34a;
    border: 1px solid #bbf7d0;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
}

.profile-verified-tag i {
    font-size: 14px;
}

.profile-verified-tag.hidden {
    display: none !important;
}

.profile-email {
    color: #64748b;
    font-size: 14px;
    margin-bottom: 16px;
}

/* Stats row */
.profile-stats-row {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 8px;
    margin-bottom: 16px;
    padding: 12px;
    background: #f8fafc;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
}

.profile-stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: 8px 4px;
    border-radius: 12px;
    transition: background 0.2s;
}

.profile-stat-item:hover {
    background: #ffffff;
}

.profile-stat-item + .profile-stat-item {
    border-left: 1px solid #e2e8f0;
}

.profile-stat-num {
    font-size: 22px;
    font-weight: 800;
    color: #f97316;
}

.profile-stat-lbl {
    font-size: 11px;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Profile completion */
.profile-completion {
    margin-bottom: 16px;
}

.profile-completion-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
    font-size: 12px;
    color: #64748b;
    font-weight: 600;
}

.profile-completion-head span:first-child {
    display: flex;
    align-items: center;
    gap: 6px;
}

.profile-completion-head span:last-child {
    font-weight: 800;
    color: #f97316;
}

.profile-completion-track {
    height: 6px;
    background: #e2e8f0;
    border-radius: 999px;
    overflow: hidden;
}

.profile-completion-fill {
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, #f97316, #fb923c);
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Detail card */
.profile-detail-card {
    background: #f8fafc;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    margin-bottom: 16px;
    overflow: hidden;
}

.profile-detail-row {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    border-bottom: 1px solid #e2e8f0;
    text-align: left;
}

.profile-detail-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

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

.profile-detail-lbl {
    display: block;
    font-size: 11px;
    font-weight: 600;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 2px;
}

.profile-detail-val {
    display: block;
    font-size: 14px;
    font-weight: 700;
    color: #0f172a;
}

/* Image upload */
.profile-upload-section {
    margin-bottom: 12px;
}

.profile-upload-label {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px;
    background: linear-gradient(135deg, #fff7ed, #ffedd5);
    color: #c2410c;
    border: 1.5px dashed #fed7aa;
    border-radius: 14px;
    cursor: pointer;
    font-weight: 700;
    font-size: 13px;
    transition: all 0.2s ease;
}

.profile-upload-label:hover {
    background: linear-gradient(135deg, #ffedd5, #fed7aa);
    border-color: #fb923c;
}

.profile-upload-label i {
    font-size: 18px;
}

.profile-file-name {
    display: block;
    margin: 6px 0;
    font-size: 12px;
    color: #64748b;
    font-style: italic;
}

.profile-upload-btn {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, #2563eb, #3b82f6);
    color: #ffffff;
    border: none;
    border-radius: 14px;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.profile-upload-btn:hover {
    box-shadow: 0 4px 16px rgba(37,99,235,0.35);
    transform: translateY(-1px);
}

.profile-upload-btn:active {
    transform: translateY(0);
}

/* Logout action */
.profile-action-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #fef2f2, #fee2e2);
    color: #b91c1c;
    border: 1.5px solid #fecaca;
    border-radius: 14px;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.profile-action-btn:hover {
    background: linear-gradient(135deg, #fee2e2, #fecaca);
    border-color: #fca5a5;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(185,28,28,0.15);
}

.profile-action-btn:active {
    transform: translateY(0);
}

.profile-action-btn i {
    font-size: 18px;
}

/* Override old styles */
#profileModal .auth-modal-dialog {
    /* Keep right-aligned positioning */
}

.profile-modal-email,
.profile-details,
.profile-logout-btn,
.profile-delete-btn {
    /* Old classes kept for script compat when updating elements */
}

/* Make sure the auth modal backdrop can't block clicks when hidden */
.auth-modal-backdrop {
    pointer-events: auto;
}

.auth-modal.hidden .auth-modal-backdrop {
    pointer-events: none !important;
}

/* Mobile menu button */
.mobile-menu-btn {
    display: none;
    width: 44px;
    height: 44px;
    border: none;
    border-radius: 12px;
    background: #f8fafc;
    color: #334155;
    cursor: pointer;
    font-size: 24px;
    align-items: center;
    justify-content: center;
}

/* Mobile nav overlay */
.mobile-nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.5);
    z-index: 200;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mobile-nav-overlay.active {
    opacity: 1;
}

.mobile-nav-panel {
    position: fixed;
    top: 0;
    left: 0;
    width: 280px;
    height: 100%;
    background: #ffffff;
    z-index: 201;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    padding: 24px;
    overflow-y: auto;
}

.mobile-nav-panel.active {
    transform: translateX(0);
}

.mobile-nav-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid #e2e8f0;
}

.mobile-nav-close {
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 50%;
    background: #f1f5f9;
    color: #0f172a;
    cursor: pointer;
    font-size: 18px;
    display: grid;
    place-items: center;
}

.mobile-nav-links {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.mobile-nav-links a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    text-decoration: none;
    color: #334155;
    font-weight: 600;
    border-radius: 12px;
    transition: background 0.2s;
}

.mobile-nav-links a:hover {
    background: #f8fafc;
}

.mobile-nav-links a i {
    font-size: 20px;
    color: #64748b;
}

@media (max-width: 768px) {
    .mobile-menu-btn {
        display: flex;
    }

    .header-top .header-shell {
        flex-direction: row;
        padding: 6px 0;
    }

    .top-links {
        gap: 10px;
    }

    .header-main {
        padding: 8px 0;
    }

    .header-main-row {
        flex-direction: row;
        min-height: auto;
        gap: 8px;
        padding: 0;
    }

    .brand {
        justify-content: flex-start;
    }

    .brand-name {
        font-size: 16px;
    }

    .brand-mark {
        width: 30px;
        height: 30px;
        font-size: 13px;
    }

    .brand-tagline {
        display: none;
    }

    .search-bar {
        max-width: 100%;
        order: 3;
        width: 100%;
    }

    .header-actions {
        gap: 6px;
    }

    .action-link {
        padding: 6px 8px;
        font-size: 12px;
    }

    .action-link span {
        display: none;
    }

    .action-link i {
        font-size: 18px;
    }

    .profile-link {
        width: 36px;
        height: 36px;
    }

    .nav-row {
        flex-direction: row;
        min-height: auto;
        padding: 8px 0;
    }

    .main-nav {
        display: none;
    }

    .offer-badge {
        display: none;
    }

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

    .hidden {
        display: none !important;
    }
}

@media (max-width: 480px) {
    .header-top .header-shell {
        flex-wrap: wrap;
        justify-content: center;
    }

    .top-links {
        width: 100%;
        justify-content: center;
    }

    .header-main-row {
        flex-wrap: nowrap;
    }

    .brand {
        flex: 0;
    }

    .header-actions {
        flex: 0;
        margin-left: auto;
    }

    .action-link {
        padding: 6px 8px;
    }

    /* 
    .auth-modal-dialog {
        width: calc(100% - 16px);
        margin: 40px auto;
        padding: 20px;
        border-radius: 20px;
    } */

    .auth-modal-form input,
    .auth-modal-form button,
    .otp-block input,
    .otp-actions button {
        padding: 12px 14px;
    }
}

/* Cart count badge styles */
#cartCountBadge {
    position: absolute;
    top: -8px;
    right: -8px;
    min-width: 22px;
    height: 22px;
    border-radius: 999px;
    display: none;
    place-items: center;
    background: #ef4444;
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    box-shadow: 0 2px 6px rgba(239, 68, 68, 0.4);
    animation: badge-pulse 0.3s ease;
    z-index: 10;
}

#cartCountBadge.badge-active {
    display: grid !important;
}

@keyframes badge-pulse {
    0% {
        transform: scale(0.8);
    }

    50% {
        transform: scale(1.2);
    }

    100% {
        transform: scale(1);
    }
}

.auth-modal-dialog::-webkit-scrollbar {
    width: 6px;
}

/* Floating WhatsApp Button */
.whatsapp-float {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #25D366;
    color: #ffffff !important;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
    z-index: 9999;
    transition: all 0.3s ease;
    text-decoration: none;
    animation: whatsapp-pulse 2s infinite;
    cursor: pointer;
}
.whatsapp-float:hover {
    transform: scale(1.1) !important;
    box-shadow: 0 8px 30px rgba(37, 211, 102, 0.6);
    color: #ffffff !important;
}
.whatsapp-tooltip {
    position: absolute;
    right: 64px;
    background: #0f172a;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    padding: 8px 14px;
    border-radius: 8px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    pointer-events: none;
}
.whatsapp-tooltip::after {
    content: '';
    position: absolute;
    right: -6px;
    top: 50%;
    transform: translateY(-50%);
    border-left: 6px solid #0f172a;
    border-top: 6px solid transparent;
    border-bottom: 6px solid transparent;
}
.whatsapp-float:hover .whatsapp-tooltip {
    opacity: 1;
    visibility: visible;
}
@keyframes whatsapp-pulse {
    0% { box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4); }
    50% { box-shadow: 0 6px 30px rgba(37, 211, 102, 0.7); }
    100% { box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4); }
}

/* ====== Toast Notification ====== */
.toast-container {
    position: fixed;
    top: 24px;
    right: 24px;
    z-index: 99999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}

.toast {
    pointer-events: auto;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    border-radius: 14px;
    background: #ffffff;
    box-shadow: 0 12px 40px rgba(15, 23, 42, 0.18);
    border-left: 4px solid #16a34a;
    font-size: 14px;
    font-weight: 600;
    color: #1e293b;
    max-width: 400px;
    animation: toast-slide-in 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    transition: all 0.3s ease;
}

.toast.toast-hiding {
    opacity: 0;
    transform: translateX(100px);
}

.toast i {
    font-size: 20px;
    flex-shrink: 0;
}

.toast.toast-success {
    border-left-color: #16a34a;
}
.toast.toast-success i {
    color: #16a34a;
}

.toast.toast-error {
    border-left-color: #dc2626;
}
.toast.toast-error i {
    color: #dc2626;
}

.toast.toast-info {
    border-left-color: #2563eb;
}
.toast.toast-info i {
    color: #2563eb;
}

.toast-close-btn {
    margin-left: auto;
    background: none;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    font-size: 16px;
    padding: 2px;
    flex-shrink: 0;
    transition: color 0.2s;
}
.toast-close-btn:hover {
    color: #475569;
}

@keyframes toast-slide-in {
    from {
        opacity: 0;
        transform: translateX(60px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@media (max-width: 480px) {
    .toast-container {
        top: 16px;
        right: 12px;
        left: 12px;
    }
    .toast {
        max-width: 100%;
        font-size: 13px;
        padding: 12px 16px;
    }
}

/* Search Suggestions Dropdown */
.search-bar-wrapper {
    position: relative;
    flex: 1;
    max-width: 560px;
}

.search-suggestions {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 12px 40px rgba(15, 23, 42, 0.15);
    border: 1px solid #e2e8f0;
    max-height: 420px;
    overflow-y: auto;
    z-index: 1500;
    display: none;
    padding: 8px 0;
    scrollbar-width: thin;
    scrollbar-color: #cbd5e1 transparent;
}

.search-suggestions::-webkit-scrollbar {
    width: 6px;
}

.search-suggestions::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 8px;
}

.search-suggestions.active {
    display: block;
}

.suggestion-section-header {
    padding: 8px 16px 4px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: #94a3b8;
}

.suggestion-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    cursor: pointer;
    transition: background 0.15s ease;
    text-decoration: none;
    color: #334155;
}

.suggestion-item:hover {
    background: #fff7ed;
}

.suggestion-item .suggestion-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
}

.suggestion-item .suggestion-icon.product-icon {
    background: #eff6ff;
    color: #2563eb;
}

.suggestion-item .suggestion-icon.service-icon {
    background: #fff7ed;
    color: #f97316;
}

.suggestion-item .suggestion-icon.category-icon {
    background: #f0fdf4;
    color: #16a34a;
}

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

.suggestion-info .suggestion-name {
    font-size: 14px;
    font-weight: 600;
    color: #0f172a;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.suggestion-info .suggestion-meta {
    font-size: 12px;
    color: #94a3b8;
    margin-top: 1px;
}

.suggestion-item .suggestion-price {
    font-size: 13px;
    font-weight: 700;
    color: #f97316;
    white-space: nowrap;
}

.suggestion-view-all {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 16px;
    color: #2563eb;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    border-top: 1px solid #e2e8f0;
    margin-top: 4px;
    text-decoration: none;
    transition: background 0.15s ease;
}

.suggestion-view-all:hover {
    background: #f8fafc;
}

/* Mobile Search Overlay */
.mobile-search-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: #ffffff;
    z-index: 1100;
    padding: 12px 16px;
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.12);
    transform: translateY(-100%);
    transition: transform 0.3s ease;
}

.mobile-search-overlay.active {
    transform: translateY(0);
}

.mobile-search-overlay .search-bar {
    max-width: 100% !important;
    width: 100% !important;
}

.mobile-search-btn {
    display: none !important;
}

.mobile-search-overlay-close {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    border: none;
    background: transparent;
    font-size: 24px;
    color: #64748b;
    cursor: pointer;
    padding: 4px;
}

@media (max-width: 768px) {
    .mobile-search-btn {
        display: flex !important;
    }
}

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

.auth-modal-dialog::-webkit-scrollbar-track {
    background: transparent;
}

@media (max-width: 480px) {
    .auth-modal-dialog {
        width: calc(100% - 16px);
        margin: 20px auto;
        padding: 18px;
        border-radius: 20px;

        max-height: calc(100vh - 40px);
        overflow-y: auto;
    }
}