/* Simple customer experience */
.cx-shell {
    background:
        radial-gradient(circle at 94% 0%, rgba(24, 169, 164, .09), transparent 25rem),
        #f6f8fa;
}
.cx-page--auth { min-height: 100vh; display: grid; place-items: center; }
.cx-auth-card { width: min(100%, 470px); padding: 30px; border: 1px solid #e4eaf0; border-radius: 25px; background: #fff; box-shadow: 0 20px 55px rgba(16,36,59,.09); }
.cx-auth-intro { margin-block: 28px 22px; }
.cx-auth-intro h1 { margin: 0; color: var(--ehsami-navy); font-size: 1.55rem; line-height: 1.5; }
.cx-auth-intro > p:last-child { margin: 7px 0 0; color: var(--ehsami-muted); font-size: .9rem; }
.cx-auth-note { display: flex; gap: 8px; margin: 17px 0 0; color: var(--ehsami-muted); font-size: .79rem; }
.cx-auth-note span { color: var(--ehsami-success); font-weight: 800; }
.cx-otp-input { direction: ltr; text-align: center; letter-spacing: .45em; font-size: 1.35rem !important; font-weight: 800; }
.cx-resend { display: flex; justify-content: space-between; gap: 12px; margin-top: 16px; border-top: 1px solid #e8edf1; padding-top: 12px; }
.cx-page { width: min(100% - 32px, 820px); margin-inline: auto; padding-block: 24px 52px; }
.cx-page--detail { width: min(100% - 32px, 900px); }
.cx-topbar { min-height: 62px; display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 34px; }
.cx-brand { display: inline-flex; align-items: center; gap: 11px; color: var(--ehsami-navy); text-decoration: none; }
.cx-brand__mark { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 14px; background: var(--ehsami-navy); color: #fff; font: 700 19px Arial, sans-serif; box-shadow: inset -3px -3px 0 rgba(24,169,164,.4); }
.cx-brand strong, .cx-brand small { display: block; }
.cx-brand strong { font-size: 1rem; }
.cx-brand small { color: var(--ehsami-muted); font-size: .74rem; }
.cx-topbar__actions { display: flex; align-items: center; gap: 18px; }
.cx-topbar form { margin: 0; }
.cx-text-button { border: 0; background: none; padding: 8px 4px; color: var(--ehsami-muted); font: inherit; font-size: .85rem; text-decoration: none; cursor: pointer; }
.cx-text-button:hover { color: var(--ehsami-navy); }
.cx-welcome { padding: 30px 32px; border-radius: 26px; background: linear-gradient(130deg, #10243b, #24435b); color: #fff; box-shadow: 0 18px 44px rgba(16,36,59,.13); }
.cx-kicker { margin: 0 0 7px; color: var(--ehsami-turquoise); font-size: .78rem; font-weight: 700; }
.cx-welcome .cx-kicker { color: #75ddd4; }
.cx-welcome h1, .cx-project-hero h1 { margin: 0; color: inherit; font-size: clamp(1.4rem, 4vw, 2rem); line-height: 1.5; }
.cx-welcome > p:last-child { max-width: 44rem; margin: 8px 0 0; color: rgba(255,255,255,.78); }
.cx-section { margin-top: 32px; }
.cx-section__heading { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.cx-section__heading h2, .cx-panel__heading h2, .cx-support-card h2 { margin: 0; color: var(--ehsami-navy); font-size: 1.2rem; }
.cx-count { padding: 5px 10px; border-radius: 99px; background: #e9f2f4; color: var(--ehsami-navy); font-size: .76rem; }
.cx-project-card, .cx-panel, .cx-empty-state, .cx-support-card { border: 1px solid #e4eaf0; border-radius: 22px; background: #fff; box-shadow: 0 10px 28px rgba(16,36,59,.045); }
.cx-project-card { padding: 22px; }
.cx-project-card + .cx-project-card { margin-top: 14px; }
.cx-project-card__top { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.cx-project-icon, .cx-empty-state__icon { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 14px; background: #e8f8f6; color: #148781; font-size: 1.2rem; }
.cx-project-card h3 { margin: 16px 0 4px; color: var(--ehsami-navy); font-size: 1.12rem; }
.cx-project-card__hint { margin: 0 0 18px; color: var(--ehsami-muted); font-size: .88rem; }
.cx-status-pill { display: inline-flex; align-items: center; width: fit-content; padding: 6px 11px; border: 1px solid #e7e3d8; border-radius: 99px; background: #fff8e9; color: #835c19; font-size: .75rem; font-weight: 700; }
.cx-status-pill--active { border-color: #ccebe3; background: #eaf8f2; color: #147454; }
.cx-button { min-height: 46px; display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 11px 18px; border: 1px solid transparent; border-radius: 13px; font: inherit; font-size: .9rem; font-weight: 700; line-height: 1.5; text-decoration: none; cursor: pointer; transition: transform .16s ease, box-shadow .16s ease, background .16s ease; }
.cx-button:hover { transform: translateY(-1px); }
.cx-button:focus-visible, .cx-text-button:focus-visible, .cx-details summary:focus-visible, .cx-back-link:focus-visible { outline: 3px solid rgba(24,169,164,.36); outline-offset: 3px; }
.cx-button--primary { background: var(--ehsami-turquoise); color: #062e31; box-shadow: 0 7px 16px rgba(24,169,164,.16); }
.cx-button--primary:hover { background: #20b8b0; }
.cx-button--secondary { border-color: #d8e2e9; background: #fff; color: var(--ehsami-navy); }
.cx-button--large { min-height: 54px; width: 100%; font-size: .98rem; }
.cx-empty-state { padding: 34px 24px; text-align: center; }
.cx-empty-state__icon { margin: 0 auto 12px; }
.cx-empty-state h3 { margin: 0 0 5px; color: var(--ehsami-navy); }
.cx-empty-state p { max-width: 34rem; margin: 0 auto; color: var(--ehsami-muted); font-size: .9rem; }
.cx-empty-state--small { padding: 20px; }
.cx-footer { margin-top: 30px; color: #84909c; font-size: .78rem; text-align: center; }
.cx-back-link { display: inline-flex; margin: -16px 0 18px; color: #526577; font-size: .86rem; text-decoration: none; }
.cx-back-link:hover { color: var(--ehsami-navy); }
.cx-project-hero { display: flex; align-items: center; justify-content: space-between; gap: 22px; margin-bottom: 18px; padding: 27px 30px; border-radius: 24px; background: #10243b; color: #fff; }
.cx-project-hero p:last-child { margin: 7px 0 0; color: rgba(255,255,255,.75); }
.cx-project-hero .cx-kicker { color: #75ddd4; }
.cx-project-hero--compact { align-items: start; }
.cx-alert { padding: 13px 16px; border: 1px solid transparent; border-radius: 13px; }
.cx-alert--success { border-color: #ccebe3; background: #eaf8f2; color: #146649; }
.cx-alert--danger { border-color: #f0d0d2; background: #fff1f1; color: #922f37; }
.cx-alert--info { border-color: #cde5ed; background: #eff8fb; color: #315b70; }
.cx-panel { margin-top: 16px; padding: 24px; }
.cx-panel__heading { display: flex; align-items: center; gap: 13px; margin-bottom: 18px; }
.cx-step-icon { flex: 0 0 42px; width: 42px; height: 42px; display: grid; place-items: center; border-radius: 14px; background: #edf5f6; color: #187e7b; font-size: .78rem; font-weight: 800; }
.cx-panel__heading .cx-kicker { margin-bottom: 2px; }
.cx-price-summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 17px 18px; border: 1px solid #e3edf0; border-radius: 16px; background: #f6fafb; color: #5b6b78; }
.cx-price-summary strong { color: var(--ehsami-navy); font-size: 1.12rem; }
.cx-price-summary small, .cx-installment__amount small { font-size: .72em; font-weight: 500; }
.cx-payment-preview { display: grid; gap: 7px; margin-top: 10px; padding: 14px 16px; border-inline-start: 3px solid var(--ehsami-turquoise); border-radius: 10px; background: #fbfcfd; color: #586979; font-size: .84rem; }
.cx-payment-preview strong { color: var(--ehsami-navy); }
.cx-explain, .cx-legal-note { margin: 12px 0; color: var(--ehsami-muted); font-size: .84rem; }
.cx-service-list { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.cx-service-list li { display: grid; gap: 2px; padding: 13px 15px; border-radius: 13px; background: #f8fafb; }
.cx-service-list strong { color: var(--ehsami-navy); }
.cx-service-list span { color: var(--ehsami-muted); font-size: .84rem; }
.cx-installments { display: grid; gap: 12px; margin-top: 16px; }
.cx-installment { padding: 17px; border: 1px solid #e4eaf0; border-radius: 16px; }
.cx-installment--paid { border-color: #ccebe3; background: #fbfefc; }
.cx-installment__top { display: flex; justify-content: space-between; gap: 14px; }
.cx-installment__top > div { display: grid; gap: 3px; }
.cx-installment__top span { color: var(--ehsami-muted); font-size: .8rem; }
.cx-installment__amount { color: var(--ehsami-navy); white-space: nowrap; }
.cx-payment-state { margin: 10px 0 0; color: #786126; font-size: .82rem; }
.cx-payment-state--paid { color: #147454; }
.cx-payment-state--error { color: #9c343a; }
.cx-review-note { margin: 6px 0; color: #7b4c35; font-size: .82rem; }
.cx-payment-actions { display: grid; justify-items: start; gap: 12px; margin-top: 12px; }
.cx-payment-actions form { margin: 0; }
.cx-details { border-top: 1px solid #e8edf1; padding-top: 14px; }
.cx-details--payment { width: 100%; }
.cx-details summary { color: var(--ehsami-navy); font-size: .88rem; font-weight: 700; cursor: pointer; }
.cx-contract-text { max-height: 330px; overflow: auto; margin-top: 12px; padding: 15px; border-radius: 12px; background: #f7f9fa; color: #455565; font-size: .84rem; line-height: 2; white-space: pre-wrap; overflow-wrap: anywhere; }
.cx-accept-form { margin-top: 18px; padding-top: 16px; border-top: 1px solid #e8edf1; }
.cx-check { display: flex; align-items: start; gap: 10px; color: var(--ehsami-text); font-size: .88rem; }
.cx-check input { width: 18px; height: 18px; margin-top: 4px; accent-color: var(--ehsami-turquoise); }
.cx-legal-note { line-height: 1.9; }
.cx-bank-box { display: grid; gap: 8px; padding: 13px; border-radius: 12px; background: #f6f8fa; }
.cx-bank-box div { display: flex; justify-content: space-between; gap: 14px; }
.cx-bank-box span { color: var(--ehsami-muted); font-size: .8rem; }
.cx-bank-box strong { color: var(--ehsami-navy); font-size: .85rem; }
.cx-form { display: grid; gap: 14px; }
.cx-field { display: grid; gap: 7px; color: var(--ehsami-navy); font-size: .86rem; font-weight: 700; }
.cx-field small { color: var(--ehsami-muted); font-weight: 400; }
.cx-field input, .cx-field select, .cx-field textarea { width: 100%; min-height: 46px; padding: 11px 13px; border: 1px solid #dbe3e9; border-radius: 12px; background: #fff; color: var(--ehsami-text); font: inherit; font-size: .9rem; }
.cx-field textarea { min-height: 112px; resize: vertical; }
.cx-field input:focus, .cx-field select:focus, .cx-field textarea:focus { border-color: var(--ehsami-turquoise); outline: 3px solid rgba(24,169,164,.14); }
.cx-form-error { margin: 0; color: #a13038; font-size: .82rem; }
.cx-timeline { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; }
.cx-timeline li { position: relative; display: grid; grid-template-columns: 18px minmax(0,1fr); gap: 12px; padding-bottom: 20px; }
.cx-timeline li:not(:last-child)::before { position: absolute; top: 18px; right: 7px; bottom: 0; width: 2px; background: #dcefeb; content: ''; }
.cx-timeline__dot { z-index: 1; width: 16px; height: 16px; margin-top: 4px; border: 4px solid #cdeee9; border-radius: 50%; background: #148781; }
.cx-timeline li div { display: grid; gap: 4px; }
.cx-timeline strong { color: var(--ehsami-navy); }
.cx-timeline time, .cx-timeline p { margin: 0; color: var(--ehsami-muted); font-size: .82rem; }
.cx-support-card { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-top: 16px; padding: 22px; }
.cx-support-card p:last-child { margin: 5px 0 0; color: var(--ehsami-muted); font-size: .84rem; }
.cx-ticket-row { display: flex; align-items: center; gap: 12px; margin-top: 10px; padding: 14px; border: 1px solid #e4eaf0; border-radius: 15px; background: #fff; color: inherit; text-decoration: none; }
.cx-ticket-row:hover { border-color: #a7ded8; }
.cx-ticket-row__icon { display: grid; place-items: center; width: 38px; height: 38px; flex: 0 0 38px; border-radius: 12px; background: #edf5f6; color: #187e7b; }
.cx-ticket-row__copy { display: grid; min-width: 0; gap: 3px; }
.cx-ticket-row__copy strong { overflow: hidden; color: var(--ehsami-navy); text-overflow: ellipsis; white-space: nowrap; }
.cx-ticket-row__copy small { color: var(--ehsami-muted); }
.cx-ticket-row__arrow { margin-inline-start: auto; color: var(--ehsami-muted); }
.cx-conversation { display: grid; gap: 13px; }
.cx-message { max-width: 90%; padding: 14px 16px; border-radius: 16px; background: #f4f7f9; }
.cx-message--customer { justify-self: end; border-bottom-right-radius: 5px; background: #eaf8f6; }
.cx-message--staff { justify-self: start; border-bottom-left-radius: 5px; }
.cx-message__meta { display: flex; flex-wrap: wrap; gap: 10px; color: var(--ehsami-navy); font-size: .78rem; }
.cx-message__meta time { color: var(--ehsami-muted); }
.cx-message p { margin: 7px 0 0; white-space: pre-wrap; overflow-wrap: anywhere; }
@media (max-width: 640px) {
    .cx-page, .cx-page--detail { width: min(100% - 22px, 900px); padding-block: 14px 34px; }
    .cx-page--auth { width: min(100% - 22px, 470px); }
    .cx-auth-card { padding: 23px 20px; border-radius: 20px; }
    .cx-topbar { margin-bottom: 22px; }
    .cx-welcome { padding: 23px 21px; border-radius: 20px; }
    .cx-project-hero { display: grid; padding: 22px 20px; border-radius: 20px; }
    .cx-panel, .cx-project-card { padding: 18px; border-radius: 18px; }
    .cx-panel__heading h2 { font-size: 1.05rem; }
    .cx-price-summary { align-items: start; flex-direction: column; gap: 2px; }
    .cx-installment__top { flex-direction: column; }
    .cx-support-card { align-items: stretch; flex-direction: column; padding: 19px; }
    .cx-support-card .cx-button { width: 100%; }
    .cx-message { max-width: 96%; }
}
