/**
 * Darjibhai – Full-width professional landing
 * Header, footer & CTA – alternate UI
 */

/* --- Variables --- */
:root, .body-crm {
    --primary: #0f172a;
    --primary-light: #1e293b;
    --secondary: #475569;
    --accent: #b45309;
    --accent-light: #d97706;
    --bg: #f8fafc;
    --bg-alt: #f1f5f9;
    --white: #ffffff;
    --border: #e2e8f0;
    --text: #0f172a;
    --text-muted: #64748b;
}

.cursor1, .cursor2 { display: none !important; }

.body-wrapper.body-crm { background-color: var(--bg); }

/* --- Full width container --- */
.landing-fullwidth .landing-container {
    width: 100%;
    max-width: 1280px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

@media (min-width: 768px) {
    .landing-fullwidth .landing-container { padding-left: 2rem; padding-right: 2rem; }
}


/* --- Typography --- */
.landing-main {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: var(--text);
    line-height: 1.6;
}

.landing-section-label {
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 0.75rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.landing-section-label::before {
    content: "";
    width: 4px;
    height: 1rem;
    background: var(--accent);
    border-radius: 2px;
}

.landing-section-title {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 1rem;
    line-height: 1.25;
}

.landing-section-sub {
    font-size: 1.0625rem;
    color: var(--text-muted);
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 8px;
    text-decoration: none;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
    border: 2px solid transparent;
}

.btn-primary {
    background: var(--accent);
    color: var(--white);
    border-color: var(--accent);
}

.btn-primary:hover { background: var(--accent-light); border-color: var(--accent-light); color: var(--white); }

.btn-outline {
    background: transparent;
    color: var(--primary);
    border-color: var(--primary);
}

.btn-outline:hover { background: var(--primary); color: var(--white); }

.btn--light {
    color: var(--white);
    border-color: rgba(255,255,255,0.8);
}

.btn--light:hover { background: var(--white); color: var(--primary); border-color: var(--white); }

.btn-light {
    background: var(--white);
    color: var(--primary);
}

.btn-light:hover { background: var(--bg); color: var(--primary); }

/* --- Hero: full width --- */
.landing-hero {
    width: 100%;
    padding: clamp(6rem, 14vw, 10rem) 1.5rem clamp(5rem, 12vw, 7rem);
    text-align: center;
    background: linear-gradient(160deg, var(--primary) 0%, var(--primary-light) 100%);
}

.landing-hero-inner {
    max-width: 800px;
    margin: 0 auto;
}

.landing-hero-label {
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--accent-light);
    margin-bottom: 1rem;
}

.landing-hero-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    color: var(--white);
    line-height: 1.15;
    margin-bottom: 0.75rem;
}

.landing-hero-line {
    width: 48px;
    height: 3px;
    background: var(--accent-light);
    margin: 0 auto 1.25rem;
    border-radius: 2px;
}

.landing-hero-text {
    font-size: 1.125rem;
    color: rgba(255,255,255,0.85);
    margin-bottom: 2rem;
    line-height: 1.65;
}

.landing-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
}

/* --- About: full width 50/50 --- */
.landing-about {
    width: 100%;
    padding: 0;
}

.landing-about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 480px;
}

@media (max-width: 991px) {
    .landing-about-grid { grid-template-columns: 1fr; min-height: auto; }
}

.landing-about-image-wrap {
    background: var(--bg-alt);
    overflow: hidden;
}

@media (min-width: 992px) {
    .landing-about-image-wrap { border-radius: 0 12px 12px 0; }
}

.landing-about-image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.landing-about-content {
    padding: clamp(3rem, 6vw, 5rem) clamp(2rem, 5vw, 4rem);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.landing-about-lead {
    font-size: 1.125rem;
    color: var(--primary);
    font-weight: 500;
    margin-bottom: 1rem;
}

.landing-about-body {
    font-size: 1rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

/* --- Services: full width grid --- */
.landing-services {
    width: 100%;
    padding: clamp(4rem, 10vw, 6rem) 0;
    background: var(--white);
}

.landing-section-head { margin-bottom: 2.5rem; }

.landing-section-head .landing-section-title { margin-bottom: 0.5rem; }

.landing-section-head .landing-section-sub { margin-bottom: 0; }

.landing-services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

@media (max-width: 991px) {
    .landing-services-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 575px) {
    .landing-services-grid { grid-template-columns: 1fr; }
}

.landing-card {
    display: block;
    padding: 1.75rem;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    text-decoration: none;
    color: inherit;
    height: 100%;
    transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s ease;
}

.landing-card:hover {
    border-color: var(--accent);
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.1);
    transform: translateY(-4px);
}

.landing-card-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    background: rgba(180, 83, 9, 0.12);
    color: var(--accent);
    border-radius: 10px;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.landing-card-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.375rem;
}

.landing-card-text {
    font-size: 0.9375rem;
    color: var(--text-muted);
    margin: 0;
}

/* --- Process --- */
.landing-process {
    width: 100%;
    padding: clamp(4rem, 10vw, 6rem) 0;
    background: var(--bg-alt);
}

.landing-process-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
}

@media (max-width: 991px) {
    .landing-process-steps { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 575px) {
    .landing-process-steps { grid-template-columns: 1fr; gap: 1rem; }
}

.landing-process-item {
    text-align: center;
    padding: 1.5rem 1rem;
    background: var(--white);
    border-radius: 12px;
    border: 1px solid var(--border);
    transition: border-color 0.2s, box-shadow 0.2s;
}

.landing-process-item:hover {
    border-color: rgba(180, 83, 9, 0.3);
    box-shadow: 0 6px 20px rgba(15, 23, 42, 0.06);
}

.landing-process-num {
    display: block;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--accent);
    margin-bottom: 0.75rem;
}

.landing-process-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.landing-process-text {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin: 0;
    line-height: 1.5;
}

/* --- CTA: new design – horizontal strip with icon, text, phone, button --- */
.landing-cta {
    width: 100%;
    padding: 0;
}

.landing-cta-strip {
    width: 100%;
    background: linear-gradient(90deg, var(--accent) 0%, var(--accent-light) 100%);
    padding: 2rem 1.5rem;
}

.landing-cta-content {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

@media (max-width: 991px) {
    .landing-cta-content { flex-direction: column; text-align: center; }
}

.landing-cta-left {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

@media (max-width: 991px) {
    .landing-cta-left { flex-direction: column; }
}

.landing-cta-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    background: rgba(255,255,255,0.2);
    color: var(--white);
    border-radius: 12px;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.landing-cta-title {
    font-size: clamp(1.25rem, 2.5vw, 1.5rem);
    font-weight: 700;
    color: var(--white);
    margin: 0 0 0.25rem 0;
}

.landing-cta-text {
    font-size: 0.9375rem;
    color: rgba(255,255,255,0.95);
    margin: 0;
}

.landing-cta-right {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem;
}

@media (max-width: 991px) {
    .landing-cta-right { justify-content: center; }
}

.landing-cta-phone,
.landing-cta-wa {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--primary);
    background: var(--white);
    border-radius: 6px;
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
}

.landing-cta-phone:hover,
.landing-cta-wa:hover { background: var(--primary); color: var(--white); }

.landing-cta-strip .btn-primary {
    background: var(--primary);
    border-color: var(--primary);
}

.landing-cta-strip .btn-primary:hover {
    background: var(--white);
    color: var(--primary);
    border-color: var(--white);
}

/* --- Footer: new UI – light bar + bottom --- */
.landing-footer {
    width: 100%;
    background: var(--white);
    border-top: 1px solid var(--border);
}

.landing-footer-top {
    width: 100%;
    padding: 2rem 0;
}

.landing-footer-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    max-width: 1280px;
    margin: 0 auto;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

@media (min-width: 768px) {
    .landing-footer-inner { padding-left: 2rem; padding-right: 2rem; }
}

.landing-footer-logo img {
    height: 38px;
    width: auto;
    display: block;
}

.landing-footer-nav {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.landing-footer-nav a {
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s;
}

.landing-footer-nav a:hover { color: var(--accent); }

.landing-footer-social {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 0.75rem;
}

.landing-footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--bg);
    color: var(--text-muted);
    border-radius: 8px;
    transition: background 0.2s, color 0.2s;
}

.landing-footer-social a:hover { background: var(--accent); color: var(--white); }

.landing-footer-bottom {
    width: 100%;
    padding: 1rem 0;
    background: var(--bg-alt);
}

.landing-footer-bottom .landing-container {
    max-width: 1280px;
    margin: 0 auto;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

.landing-footer-bottom p {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin: 0;
    text-align: center;
}

.landing-footer-bottom-inner {
    max-width: 1280px;
}

@media (max-width: 767px) {
    .landing-footer-inner { flex-direction: column; text-align: center; }
    .landing-footer-nav { order: 2; }
    .landing-footer-social { order: 3; }
}

/* --- Legacy / modals --- */
.body-crm .wc-btn-primary {
    background: var(--accent);
    color: var(--white);
    border-color: var(--accent);
}

.body-crm .wc-btn-primary:hover {
    background: var(--accent-light);
    color: var(--white);
    border-color: var(--accent-light);
}

.form-box-wrapper .title { color: var(--primary); }

.register-form-box .social-links a:hover,
.login-form-box .social-links a:hover { color: var(--accent); }

/* --- Preloader: professional --- */
.landing-preloader {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

.landing-preloader.loaded,
body:has(#container.loaded) .landing-preloader {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.landing-preloader-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.landing-preloader-content {
    text-align: center;
}

.landing-preloader-logo {
    margin-bottom: 1.5rem;
}

.landing-preloader-logo img {
    width: 56px;
    height: 56px;
    max-width: none;
    object-fit: contain;
    background: transparent;
}

.landing-preloader-spinner {
    width: 40px;
    height: 40px;
    margin: 0 auto 1rem;
    border: 3px solid rgba(243, 120, 5, 0.2);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: landing-preloader-spin 0.8s linear infinite;
}

@keyframes landing-preloader-spin {
    to { transform: rotate(360deg); }
}

.landing-preloader-text {
    font-size: 0.8125rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    color: rgba(26, 26, 26, 0.65);
    margin: 0;
}

/* --- Scroll to top: new UI --- */
.progress-wrap.landing-scroll-top {
    width: 48px;
    height: 48px;
    left: 1.5rem;
    bottom: 1.5rem;
    border-radius: 12px;
    background: var(--primary);
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.2s, visibility 0.2s, transform 0.2s, background 0.2s;
}

.progress-wrap.landing-scroll-top:hover {
    background: var(--accent);
}

.progress-wrap.landing-scroll-top .progress-circle {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border-radius: 12px;
}

.progress-wrap.landing-scroll-top svg path {
    fill: transparent !important;
    stroke: rgba(255,255,255,0.25) !important;
    stroke-width: 3;
}

.progress-wrap.landing-scroll-top .landing-scroll-top-icon {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.125rem;
    color: var(--white);
}

.progress-wrap.landing-scroll-top::after {
    display: none;
}

/* --- Book Appointment modal --- */
.booking-modal .modal-dialog {
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
}

.booking-modal-content {
    border: none;
    border-radius: 16px;
    box-shadow: 0 24px 48px rgba(15, 23, 42, 0.15);
    overflow: hidden;
}

.booking-modal-header {
    position: relative;
    padding: 1.5rem 1.5rem 0.5rem;
    background: var(--white);
    border-bottom: 1px solid var(--border);
}

.booking-modal-title {
    font-size: 1.375rem;
    font-weight: 700;
    color: var(--primary);
    margin: 0 0 0.25rem 0;
}

.booking-modal-subtitle {
    font-size: 0.9375rem;
    color: var(--text-muted);
    margin: 0;
}

.booking-modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg);
    border: none;
    border-radius: 8px;
    color: var(--text-muted);
    font-size: 1.25rem;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}

.booking-modal-close:hover {
    background: var(--border);
    color: var(--primary);
}

.booking-modal-body {
    padding: 1.5rem;
    background: var(--white);
}

.booking-form-message {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1rem;
    border-radius: 10px;
    margin-bottom: 1rem;
}

.booking-form-message--success {
    background: #dcfce7;
    color: #166534;
}

.booking-form-message--success i { font-size: 1.25rem; flex-shrink: 0; }

.booking-form-message--error {
    background: #fee2e2;
    color: #991b1b;
}

.booking-form-message--error i { font-size: 1.25rem; flex-shrink: 0; }

.booking-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

@media (max-width: 480px) {
    .booking-form-grid { grid-template-columns: 1fr; }
}

.booking-form-field {
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
}

.booking-form-field--full { grid-column: 1 / -1; }

.booking-form-field label,
.booking-form-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--primary);
}

.booking-form-field input,
.booking-form-field textarea {
    width: 100%;
    padding: 0.625rem 0.875rem;
    font-size: 0.9375rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--white);
    transition: border-color 0.2s;
}

.booking-form-field textarea {
    resize: vertical;
    min-height: 96px;
}

.booking-form-field input.booking-form-field-input--locked,
.booking-form-field input.booking-form-field-input--locked:focus {
    background-color: #f4f4f5;
    border-color: #e4e4e7;
    color: #52525b;
    cursor: not-allowed;
    box-shadow: none;
}

.booking-form-field input:focus,
.booking-form-field textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(180, 83, 9, 0.15);
}

.booking-form-radios {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.booking-form-radio {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--text);
    cursor: pointer;
}

.booking-form-radio input { width: auto; accent-color: var(--accent); }

.booking-form-actions {
    margin-top: 0.5rem;
}

.booking-form-actions .btn--block { width: 100%; }

/* Email fields: show lowercase in the UI (text-transform is visual; blur/submit JS still sets the real value). */
#book-appointment-modal-form input[type="email"],
#book-appointment-form input[type="email"] {
    text-transform: lowercase;
}

.booking-modal-social {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
}

.booking-modal-social-title {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--text-muted);
    margin: 0 0 0.75rem 0;
}

.booking-modal-social-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 0.5rem;
}

.booking-modal-social-list a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--bg);
    color: var(--text-muted);
    border-radius: 8px;
    transition: background 0.2s, color 0.2s;
}

.booking-modal-social-list a:hover {
    background: var(--accent);
    color: var(--white);
}

/* --- Login page --- */
.login-page {
    min-height: calc(100vh - 108px);
    padding: 3rem 1.25rem 4rem;
    background:
        radial-gradient(ellipse 80% 60% at 50% -10%, rgba(243, 120, 5, 0.08), transparent 60%),
        var(--bg);
}

.login-page-container {
    max-width: 480px;
    margin: 0 auto;
}

.login-page-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 16px;
    box-shadow: 0 20px 48px rgba(15, 23, 42, 0.08);
    overflow: hidden;
}

.login-page-header {
    padding: 2rem 2rem 1.25rem;
    text-align: center;
    border-bottom: 1px solid var(--border);
    background: linear-gradient(180deg, #fff8f0 0%, var(--white) 100%);
}

.login-page-logo {
    width: 72px;
    height: 72px;
    margin: 0 auto 1rem;
    border-radius: 16px;
    background: var(--white);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 20px rgba(243, 120, 5, 0.12);
}

.login-page-logo img {
    width: 52px;
    height: 52px;
    object-fit: contain;
}

.login-page-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    margin: 0 0 0.35rem;
}

.login-page-subtitle {
    font-size: 0.9375rem;
    color: var(--text-muted);
    margin: 0;
}

.login-page-body {
    padding: 1.75rem 2rem 2rem;
}

.login-page-form {
    display: flex;
    flex-direction: column;
    gap: 1.125rem;
}

.login-page-field label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 0.375rem;
}

.login-page-input-wrap {
    position: relative;
}

.login-page-input-wrap i.login-page-input-icon {
    position: absolute;
    left: 0.875rem;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
    font-size: 0.9rem;
    pointer-events: none;
}

.login-page-input-wrap input {
    width: 100%;
    padding: 0.7rem 0.875rem 0.7rem 2.5rem;
    font-size: 0.9375rem;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--white);
    transition: border-color 0.2s, box-shadow 0.2s;
}

.login-page-input-wrap input:focus {
    outline: none;
    border-color: #F37805;
    box-shadow: 0 0 0 3px rgba(243, 120, 5, 0.15);
}

.login-page-input-wrap input.is-invalid {
    border-color: #dc2626;
}

.login-page-input-wrap--password input {
    padding-right: 2.75rem;
}

.login-page-toggle-password {
    position: absolute;
    right: 0.65rem;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    border: none;
    background: transparent;
    color: #9ca3af;
    padding: 0.35rem;
    cursor: pointer;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.login-page-toggle-password:hover {
    color: #F37805;
}

.login-page-field-error {
    font-size: 0.8125rem;
    color: #dc2626;
    margin-top: 0.35rem;
}

.login-page-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.login-page-remember {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--text);
    cursor: pointer;
    margin: 0;
}

.login-page-remember input {
    width: auto;
    accent-color: #F37805;
}

.login-page-submit {
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.8rem 1.25rem;
    font-size: 0.9375rem;
    font-weight: 600;
    color: #fff;
    background: #F37805;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
}

.login-page-submit:hover:not(:disabled) {
    background: #c45e00;
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(243, 120, 5, 0.3);
}

.login-page-submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.login-page-footer {
    margin-top: 1.25rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--border);
    text-align: center;
    font-size: 0.875rem;
    color: var(--text-muted);
}

.login-page-footer a {
    color: #F37805;
    font-weight: 600;
    text-decoration: none;
}

.login-page-footer a:hover {
    text-decoration: underline;
}

.login-page-logged-in {
    text-align: center;
    padding: 0.5rem 0 0.25rem;
}

.login-page-logged-in p {
    color: var(--text-muted);
    margin: 0 0 1.25rem;
}

.login-page-logged-in-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.login-page-link-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    font-size: 0.9375rem;
    font-weight: 600;
    border-radius: 10px;
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
}

.login-page-link-btn--primary {
    background: #F37805;
    color: #fff;
}

.login-page-link-btn--primary:hover {
    background: #c45e00;
    color: #fff;
}

.login-page-link-btn--ghost {
    background: var(--bg);
    color: var(--primary);
    border: 1px solid var(--border);
}

.login-page-link-btn--ghost:hover {
    background: #fff8f0;
    color: #F37805;
}

@media (max-width: 575px) {
    .login-page {
        padding: 2rem 1rem 3rem;
    }

    .login-page-header,
    .login-page-body {
        padding-left: 1.25rem;
        padding-right: 1.25rem;
    }
}

/* --- Customer portal --- */
.darji-profile-menu-toggle::after {
    margin-left: 0.35rem;
}

.darji-profile-menu-dropdown {
    min-width: 220px;
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.12);
    padding: 0.5rem;
}

.darji-profile-menu-header {
    padding: 0.65rem 0.75rem 0.5rem;
}

.darji-profile-menu-header strong {
    display: block;
    font-size: 0.9rem;
    color: var(--primary);
}

.darji-profile-menu-header span {
    display: block;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 0.15rem;
}

.darji-profile-menu-dropdown .dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    border-radius: 8px;
    font-size: 0.9rem;
    padding: 0.55rem 0.75rem;
}

.darji-profile-menu-dropdown .dropdown-item i {
    width: 16px;
    color: #9ca3af;
}

.darji-profile-menu-dropdown .dropdown-item:hover,
.darji-profile-menu-dropdown .dropdown-item:focus {
    background: #fff8f0;
    color: #F37805;
}

.darji-profile-menu-dropdown .dropdown-item:hover i,
.darji-profile-menu-dropdown .dropdown-item:focus i {
    color: #F37805;
}

.darji-profile-menu-logout {
    width: 100%;
    border: 0;
    background: transparent;
    text-align: left;
}

.customer-portal-page {
    min-height: calc(100vh - 108px);
    padding: 2.5rem 0 4rem;
    background:
        radial-gradient(ellipse 80% 50% at 50% -10%, rgba(243, 120, 5, 0.06), transparent 55%),
        linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
    overflow-x: clip;
}

.customer-portal-page-container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding-left: 1.25rem;
    padding-right: 1.25rem;
}

@media (min-width: 880px) {
    .customer-portal-page-container {
        padding-left: 2.5rem;
        padding-right: 2.5rem;
    }
}

.customer-portal-page-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.customer-portal-page-head-main {
    min-width: 0;
    flex: 1;
}

.customer-portal-page-head--detail {
    align-items: center;
}

.customer-portal-back--head {
    margin-bottom: 0;
    flex-shrink: 0;
    align-self: center;
}

.customer-portal-page-eyebrow {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #F37805;
    margin: 0 0 0.35rem;
}

.customer-portal-page-title {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 700;
    color: var(--primary);
    margin: 0 0 0.35rem;
}

.customer-portal-page-subtitle {
    color: var(--text-muted);
    margin: 0;
    font-size: 0.9375rem;
    line-height: 1.5;
}

.customer-portal-page-head-link {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.55rem 0.9rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--white);
    color: var(--primary);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 600;
    white-space: nowrap;
}

.customer-portal-page-head-link:hover {
    border-color: #F37805;
    color: #F37805;
    background: #fff8f0;
}

.customer-portal-back {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    margin-bottom: 0.85rem;
    padding: 0.45rem 0.85rem 0.45rem 0.65rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--white);
    color: var(--primary);
    text-decoration: none;
    font-size: 0.8125rem;
    font-weight: 600;
    line-height: 1.2;
    transition: background 0.2s, color 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.customer-portal-back-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 6px;
    background: #fff8f0;
    color: #F37805;
    font-size: 0.7rem;
    transition: background 0.2s, color 0.2s;
}

.customer-portal-back:hover {
    border-color: #F37805;
    color: #F37805;
    background: #fff8f0;
    box-shadow: 0 2px 8px rgba(243, 120, 5, 0.12);
    text-decoration: none;
}

.customer-portal-back:hover .customer-portal-back-icon {
    background: #F37805;
    color: #fff;
}

.customer-portal-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 14px;
    box-shadow:
        0 1px 2px rgba(15, 23, 42, 0.04),
        0 8px 24px rgba(15, 23, 42, 0.05);
    padding: 1.5rem;
}

.customer-portal-card--spaced {
    margin-top: 1.25rem;
}

.customer-portal-card-title {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin: 0 0 1.15rem;
    padding-bottom: 0.85rem;
    border-bottom: 1px solid var(--border);
}

.customer-portal-card-title::before {
    content: "";
    width: 3px;
    height: 14px;
    border-radius: 2px;
    background: #F37805;
    flex-shrink: 0;
}

.customer-portal-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 1.25rem;
}

.customer-portal-search {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1.35rem;
    padding: 1rem;
    background: #f8fafc;
    border: 1px solid var(--border);
    border-radius: 12px;
}

.customer-portal-search-field {
    flex: 1;
    min-width: 220px;
    position: relative;
}

.customer-portal-search-field i {
    position: absolute;
    left: 0.875rem;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
}

.customer-portal-search-field input {
    width: 100%;
    padding: 0.7rem 0.875rem 0.7rem 2.4rem;
    border: 1px solid var(--border);
    border-radius: 10px;
    font-size: 0.9375rem;
    background: var(--white);
    transition: border-color 0.2s, box-shadow 0.2s;
}

.customer-portal-search-field input:focus {
    outline: none;
    border-color: #F37805;
    box-shadow: 0 0 0 3px rgba(243, 120, 5, 0.15);
}

.customer-portal-search-btn,
.customer-portal-search-clear {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.7rem 1rem;
    border-radius: 10px;
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
}

.customer-portal-search-btn {
    border: none;
    background: #F37805;
    color: #fff;
    cursor: pointer;
}

.customer-portal-search-btn:hover {
    background: #e06d04;
    box-shadow: 0 4px 12px rgba(243, 120, 5, 0.25);
}

.customer-portal-search-clear {
    border: 1px solid var(--border);
    background: var(--white);
    color: var(--text-muted);
}

.customer-portal-empty {
    text-align: center;
    padding: 2.5rem 1rem;
}

.customer-portal-empty-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 1rem;
    border-radius: 50%;
    background: #fff8f0;
    color: #F37805;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.customer-portal-empty h2 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.customer-portal-empty p {
    color: var(--text-muted);
    margin-bottom: 1.25rem;
}

.customer-portal-empty-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.25rem;
    border-radius: 10px;
    background: #F37805;
    color: #fff;
    text-decoration: none;
    font-weight: 600;
}

.customer-portal-table-panel {
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    background: var(--white);
}

.customer-portal-table-wrap {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.customer-portal-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 720px;
}

.customer-portal-table th,
.customer-portal-table td {
    padding: 0.875rem 1.1rem;
    text-align: left;
    border-bottom: 1px solid var(--border);
    vertical-align: middle;
    font-size: 0.875rem;
    color: var(--text);
}

.customer-portal-table thead th {
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-muted);
    background: #f8fafc;
    white-space: nowrap;
    border-bottom: 1px solid var(--border);
}

.customer-portal-table tbody tr {
    transition: background 0.15s ease;
}

.customer-portal-table tbody tr:hover {
    background: #fafbfc;
}

.customer-portal-table tbody tr:nth-child(even) {
    background: rgba(248, 250, 252, 0.65);
}

.customer-portal-table tbody tr:nth-child(even):hover {
    background: #f1f5f9;
}

.customer-portal-table tbody tr:last-child td,
.customer-portal-table tbody tr:last-child th {
    border-bottom: 0;
}

.customer-portal-table-sr {
    color: var(--text-muted);
    width: 3rem;
    white-space: nowrap;
}

.customer-portal-table-id {
    font-weight: 700;
    color: var(--primary);
    white-space: nowrap;
}

.customer-portal-table-id--rowspan {
    vertical-align: middle;
}

.customer-portal-table-products {
    max-width: 280px;
}

.customer-portal-table-count {
    color: var(--text-muted);
    font-size: 0.8125rem;
}

.customer-portal-table-action-col {
    text-align: right;
    white-space: nowrap;
}

.customer-portal-table-view-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.4rem 0.75rem;
    font-size: 0.8125rem;
    font-weight: 600;
    line-height: 1.2;
    color: #F37805;
    background: #fff8f0;
    border: 1px solid rgba(243, 120, 5, 0.22);
    border-radius: 6px;
    text-decoration: none;
    white-space: nowrap;
    transition: background 0.2s, color 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.customer-portal-table-view-btn i {
    font-size: 0.75rem;
}

.customer-portal-table-view-btn:hover {
    color: #fff;
    background: #F37805;
    border-color: #F37805;
    box-shadow: 0 2px 8px rgba(243, 120, 5, 0.22);
    text-decoration: none;
}

.customer-portal-table--details {
    min-width: 0;
}

.customer-portal-table--details th[scope="row"] {
    width: 180px;
    font-weight: 600;
    color: var(--text-muted);
    background: #f8fafc;
    font-size: 0.875rem;
    text-transform: none;
    letter-spacing: normal;
}

.customer-portal-table--details td {
    font-weight: 600;
    color: var(--text);
    word-break: break-word;
}

.customer-portal-table-panel .customer-portal-table {
    min-width: 0;
}

.customer-portal-table-panel .customer-portal-table tbody tr:last-child td {
    border-bottom: 0;
}

.customer-order-summary-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.85rem;
    margin: 0;
}

.customer-order-summary-item {
    margin: 0;
    min-width: 0;
    padding: 1rem 1.1rem;
    background: #f8fafc;
    border: 1px solid var(--border);
    border-radius: 10px;
}

.customer-order-summary-item--full {
    grid-column: 1 / -1;
}

.customer-order-summary-label {
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin: 0 0 0.4rem;
}

.customer-order-summary-value {
    margin: 0;
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--text);
    line-height: 1.45;
    word-break: break-word;
}

.customer-order-summary-value--id {
    font-size: 1rem;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: 0.01em;
}

.customer-order-summary-value--status {
    font-weight: 400;
}

@media (min-width: 576px) and (max-width: 991px) {
    .customer-order-summary-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.customer-portal-card--flush {
    padding-left: 0;
    padding-right: 0;
    overflow: hidden;
}

.customer-portal-card--flush > .customer-portal-card-title {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
}

.customer-orders-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.customer-order-card {
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 1.1rem 1.15rem;
    background: #fcfcfd;
}

.customer-order-card-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.9rem;
}

.customer-order-card-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-muted);
    margin: 0 0 0.2rem;
}

.customer-order-card-id {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary);
    margin: 0;
}

.customer-order-card-status--large .badge {
    font-size: 0.8rem;
}

.customer-order-card-meta {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.customer-order-card-meta-label {
    display: block;
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 0.15rem;
}

.customer-order-card-products {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin: 0 0 0.9rem;
}

.customer-order-card-view {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    color: #F37805;
    font-weight: 600;
    text-decoration: none;
    font-size: 0.9rem;
}

.customer-order-card-view:hover {
    text-decoration: underline;
}

.customer-portal-pagination {
    margin-top: 1.25rem;
    padding-top: 1.15rem;
    border-top: 1px solid var(--border);
}

.customer-portal-table-panel + .customer-portal-pagination {
    margin-top: 1.35rem;
}

.customer-portal-pagination-bar {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: space-between;
    gap: 0.75rem;
}

@media (min-width: 576px) {
    .customer-portal-pagination-bar {
        flex-direction: row;
        align-items: center;
        gap: 1rem;
    }
}

.customer-portal-pagination-summary {
    flex: 1;
    min-width: 0;
}

.customer-portal-pagination-summary-text {
    margin: 0;
    font-size: 0.875rem;
    color: var(--text-muted);
    text-align: center;
    line-height: 1.4;
}

@media (min-width: 576px) {
    .customer-portal-pagination-summary-text {
        text-align: left;
    }
}

.customer-portal-pagination-pages {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2px;
    list-style: none;
    margin: 0;
    padding: 0;
    width: 100%;
}

@media (min-width: 576px) {
    .customer-portal-pagination-pages {
        justify-content: flex-end;
        width: auto;
        flex-shrink: 0;
    }
}

.customer-portal-pagination-pages-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2rem;
    padding: 0.375rem 0.625rem;
    font-size: 0.875rem;
    font-weight: 500;
    line-height: 1.25;
    text-align: center;
    text-decoration: none;
    border: none;
    border-radius: 6px;
    background: transparent;
    color: var(--primary);
    box-shadow: none;
    transition: background 0.2s, color 0.2s;
}

.customer-portal-pagination-pages-item:not(.is-active):not(.is-disabled) .customer-portal-pagination-pages-link:hover {
    background: #fff8f0;
    color: #F37805;
}

.customer-portal-pagination-pages-item.is-active .customer-portal-pagination-pages-link {
    background: #F37805;
    color: #fff;
    box-shadow: 0 2px 8px rgba(243, 120, 5, 0.28);
}

.customer-portal-pagination-pages-item.is-disabled .customer-portal-pagination-pages-link {
    color: rgba(15, 23, 42, 0.35);
    background: transparent;
    pointer-events: none;
}

.customer-profile-hero {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1.35rem;
    padding: 1.1rem 1.15rem;
    background: linear-gradient(135deg, #fff8f0 0%, #f8fafc 100%);
    border: 1px solid var(--border);
    border-radius: 12px;
}

.customer-profile-hero-info {
    flex: 1;
    min-width: 180px;
}

.customer-profile-edit-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.55rem 0.9rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--white);
    color: var(--primary);
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: border-color 0.2s, color 0.2s, background 0.2s;
}

.customer-profile-edit-btn:hover {
    border-color: #F37805;
    color: #F37805;
    background: #fff8f0;
}

.customer-profile-hero-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
}

.customer-profile-edit-btn--password i {
    color: #F37805;
}

.customer-profile-password-wrap {
    position: relative;
}

.customer-profile-password-wrap input {
    width: 100%;
    padding-right: 2.75rem;
}

.customer-profile-password-toggle {
    position: absolute;
    right: 0.65rem;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    border: 0;
    background: transparent;
    color: var(--text-muted);
    padding: 0.35rem;
    line-height: 1;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.customer-profile-password-toggle:hover {
    color: #F37805;
}

.customer-profile-hero-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--white);
    color: #F37805;
    border: 2px solid rgba(243, 120, 5, 0.2);
    box-shadow: 0 4px 12px rgba(243, 120, 5, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    flex-shrink: 0;
}

.customer-profile-hero-name {
    font-size: 1.2rem;
    margin: 0 0 0.2rem;
}

.customer-profile-hero-phone {
    color: var(--text-muted);
    margin: 0;
}

.customer-profile-list {
    margin: 0;
}

.customer-profile-list-row {
    display: grid;
    grid-template-columns: 140px 1fr;
    gap: 0.75rem;
    padding: 0.8rem 0;
    border-bottom: 1px solid var(--border);
}

.customer-profile-list-row:last-child {
    border-bottom: 0;
}

.customer-profile-list-row dt {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin: 0;
}

.customer-profile-list-row dd {
    margin: 0;
    font-weight: 600;
    color: var(--primary);
}

.customer-profile-form {
    margin-bottom: 1.25rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid var(--border);
}

.customer-profile-form-section {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.customer-profile-form-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--primary);
    margin: 0;
}

.customer-profile-form-field label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 0.375rem;
}

.customer-profile-form-field input,
.customer-profile-form-field textarea {
    width: 100%;
    padding: 0.7rem 0.875rem;
    font-size: 0.9375rem;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--white);
    transition: border-color 0.2s, box-shadow 0.2s;
}

.customer-profile-form-field textarea {
    resize: vertical;
    min-height: 96px;
}

.customer-profile-form-field input:focus,
.customer-profile-form-field textarea:focus {
    outline: none;
    border-color: #F37805;
    box-shadow: 0 0 0 3px rgba(243, 120, 5, 0.15);
}

.customer-profile-form-field input.is-invalid,
.customer-profile-form-field textarea.is-invalid {
    border-color: #dc2626;
}

.customer-profile-form-error {
    font-size: 0.8125rem;
    color: #dc2626;
    margin-top: 0.35rem;
}

.customer-profile-form-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.75rem 1.25rem;
    border: none;
    border-radius: 10px;
    background: #F37805;
    color: #fff;
    font-size: 0.9375rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
}

.customer-profile-form-submit:hover:not(:disabled) {
    background: #c45e00;
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(243, 120, 5, 0.3);
}

.customer-profile-form-submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.customer-profile-list--readonly {
    margin-top: 0.5rem;
}

.customer-profile-actions {
    margin-top: 1.25rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--border);
}

.customer-profile-actions-logout {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.7rem 1rem;
    border: 1px solid #fecaca;
    border-radius: 10px;
    background: #fff5f5;
    color: #b91c1c;
    font-weight: 600;
    cursor: pointer;
}

.customer-order-items {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.customer-order-item {
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 0.9rem 1rem;
    background: #fcfcfd;
}

.customer-order-item h3 {
    font-size: 1rem;
    margin: 0 0 0.25rem;
}

.customer-order-item-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.875rem;
    color: var(--text-muted);
}

.customer-portal-muted {
    color: var(--text-muted);
}

@media (max-width: 991px) {
    .customer-portal-page {
        padding: 2rem 0 3.5rem;
    }

    .customer-portal-card {
        padding: 1.25rem;
    }
}

@media (max-width: 767px) {
    .customer-portal-page {
        min-height: calc(100vh - 70px);
        padding: 1.5rem 0 3rem;
    }

    .customer-portal-page-container {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .login-page {
        min-height: calc(100vh - 70px);
    }

    .customer-portal-page-head {
        flex-direction: column;
        align-items: stretch;
    }

    .customer-portal-page-head-link {
        width: 100%;
        justify-content: center;
    }

    .customer-portal-page-title {
        font-size: 1.5rem;
    }

    .customer-portal-page-subtitle {
        font-size: 0.9rem;
    }

    .customer-portal-card {
        padding: 1.1rem;
        border-radius: 14px;
    }

    .customer-portal-grid {
        grid-template-columns: 1fr;
    }

    .customer-portal-search {
        flex-direction: column;
        align-items: stretch;
    }

    .customer-portal-search-field {
        min-width: 0;
        width: 100%;
    }

    .customer-portal-search-btn,
    .customer-portal-search-clear {
        width: 100%;
    }

    .customer-portal-table th,
    .customer-portal-table td {
        padding: 0.7rem 0.75rem;
        font-size: 0.85rem;
    }

    .customer-portal-table--details th[scope="row"] {
        width: 130px;
    }

    .customer-order-summary-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    .customer-portal-card--flush > .customer-portal-card-title {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .customer-order-card {
        padding: 1rem;
    }

    .customer-order-card-top {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.65rem;
    }

    .customer-order-card-id {
        font-size: 1rem;
        word-break: break-word;
    }

    .customer-order-card-status .badge {
        font-size: 0.75rem;
    }

    .customer-order-card-meta {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .customer-order-card-products {
        font-size: 0.85rem;
    }

    .customer-profile-hero {
        flex-direction: column;
        align-items: stretch;
    }

    .customer-profile-hero-actions {
        width: 100%;
    }

    .customer-profile-edit-btn {
        flex: 1 1 100%;
        justify-content: center;
    }

    .customer-profile-list-row {
        grid-template-columns: 1fr;
        gap: 0.25rem;
    }

    .customer-profile-list-row dd {
        word-break: break-word;
    }

    .customer-order-item-meta {
        flex-direction: column;
        gap: 0.35rem;
    }

    .customer-portal-page-head--detail {
        flex-direction: row;
        flex-wrap: wrap;
        align-items: flex-start;
        justify-content: space-between;
    }

    .customer-portal-page-head--detail .customer-portal-page-head-main {
        flex: 1;
        min-width: 0;
    }

    .customer-portal-back:not(.customer-portal-back--head) {
        width: 100%;
        justify-content: center;
    }

    .customer-portal-back--head {
        align-self: flex-start;
        margin-top: 0.15rem;
    }

    .customer-profile-actions-logout {
        width: 100%;
        justify-content: center;
    }

    .darji-profile-menu-toggle span {
        max-width: 72px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .booking-modal .modal-dialog {
        margin: 0.75rem auto;
        max-width: calc(100% - 1.5rem);
    }

    .booking-modal-header,
    .booking-modal-body {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .booking-modal-title {
        font-size: 1.2rem;
        padding-right: 2.5rem;
    }
}

@media (max-width: 575px) {
    .customer-portal-page {
        padding: 1.25rem 0 2.5rem;
    }

    .customer-portal-page-container {
        padding-left: 0.85rem;
        padding-right: 0.85rem;
    }

    .customer-portal-card {
        padding: 1rem;
        border-radius: 12px;
    }

    .customer-order-card-meta {
        grid-template-columns: 1fr;
    }

    .customer-portal-empty-btn {
        width: 100%;
    }

    .customer-portal-pagination-bar {
        gap: 0.75rem;
    }

    .customer-portal-pagination-summary {
        width: 100%;
    }

    .customer-portal-pagination-summary-text {
        font-size: 0.8125rem;
    }

    .customer-portal-pagination-pages {
        justify-content: center;
        gap: 4px;
    }

    .customer-portal-pagination-pages-link {
        min-width: 1.75rem;
        padding: 0.3125rem 0.5rem;
        font-size: 0.8125rem;
    }

    .login-page-title {
        font-size: 1.35rem;
    }

    .login-page-logo {
        width: 64px;
        height: 64px;
    }

    .login-page-logo img {
        width: 46px;
        height: 46px;
    }

    .darji-profile-menu-toggle span {
        display: none;
    }

    .darji-profile-menu-dropdown {
        min-width: 200px;
    }

    .booking-modal .modal-dialog {
        margin: 0.5rem auto;
        max-width: calc(100% - 1rem);
    }

    .booking-form-grid {
        gap: 0.85rem;
    }
}

@media (max-width: 380px) {
    .darji-header-actions {
        gap: 6px;
    }

    .darji-header-book-btn,
    .darji-profile-menu-toggle,
    .darji-header-phone-btn {
        padding: 8px 10px;
        font-size: 12px;
    }

    .customer-portal-empty {
        padding: 2rem 0.5rem;
    }
}

.web-flash-banner {
    position: fixed;
    top: 108px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1050;
    width: calc(100% - 2rem);
    max-width: 520px;
    animation: webFlashBannerIn 0.35s ease;
}

.web-flash-banner-inner {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.85rem 1rem;
    border-radius: 12px;
    border: 1px solid #bbf7d0;
    background: #f0fdf4;
    color: #166534;
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.12);
}

.web-flash-banner-inner i:first-child {
    flex-shrink: 0;
    font-size: 1.1rem;
}

.web-flash-banner-inner p {
    flex: 1;
    font-size: 0.9rem;
    font-weight: 500;
}

.web-flash-banner-close {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border: none;
    border-radius: 8px;
    background: transparent;
    color: #166534;
    cursor: pointer;
    transition: background 0.2s;
}

.web-flash-banner-close:hover {
    background: rgba(22, 101, 52, 0.1);
}

@keyframes webFlashBannerIn {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

@media (max-width: 600px) {
    .web-flash-banner {
        top: 78px;
    }
}

.swal2-container {
    z-index: 2000 !important;
}

.web-portal-toast.swal2-popup {
    margin-top: 5.5rem;
    font-family: var(--site-font-body, "Roboto", sans-serif);
    font-size: 0.9rem;
    padding: 0.75rem 1rem;
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.14);
}

.web-portal-toast .swal2-title {
    font-size: 0.9rem;
    font-weight: 600;
    margin: 0;
}

@media (max-width: 600px) {
    .web-portal-toast.swal2-popup {
        margin-top: 4.75rem;
    }
}
