:root {
    --accent: #4b5563;
    --accent-soft: #f3f4f6;
    --ink: #344054;
    --ink-soft: #667085;
    --line: #e4e7ec;
    --surface: #ffffff;
    --surface-soft: #f8fafc;
    --surface-elev: #f2f4f7;
    --danger: #d92d20;
    --danger-soft: #fff5f5;
    --success: #374151;
    --select-accent: #ea580c;
    --select-accent-strong: #c2410c;
    --select-accent-soft: #fff7ed;
    --select-accent-line: #fdba74;
    --select-glow: rgba(234, 88, 12, 0.24);
}

* { box-sizing: border-box; }

.grid {
    display: grid;
}
.justify-center {
    justify-content: center;
}
 
.items-center {
    align-items: center;
}
 .text-slate-600 {
    --tw-text-opacity: 1;
    color: rgb(71 85 105 / var(--tw-text-opacity, 1));
}
 
.font-bold {
    font-weight: 700;
}
 
.text-xs {
    font-size: 0.75rem;
    line-height: 1rem;
}
 
.text-center {
    text-align: center;
} 
.rounded-\[2rem\] {
    border-radius: 2rem;
}
 .text-slate-900 {
    --tw-text-opacity: 1;
    color: rgb(15 23 42 / var(--tw-text-opacity, 1));
}
.flex-col {
    flex-direction: column;
}
.text-slate-400 {
    --tw-text-opacity: 1;
    color: rgb(148 163 184 / var(--tw-text-opacity, 1));
}
 
.tracking-\[0\.2em\] {
    letter-spacing: 0.2em;
}
 
.uppercase {
    text-transform: uppercase;
}

 .mb-8 {
    margin-bottom: 2rem;
}
.text-sm {
    font-size: 0.875rem;
    line-height: 1.25rem;
}
 
.px-4 {
    padding-left: 1rem;
    padding-right: 1rem;
}
.text-xl {
    font-size: 1.25rem;
    line-height: 1.75rem;
}
 
.mb-2 {
    margin-bottom: 0.5rem;
}
.font-900 {
    font-weight: 700 !important;
}
.justify-center {
    justify-content: center;
}
 
.items-center {
    align-items: center;
}
 
.w-20 {
    width: 5rem;
}
 
.h-20 {
    height: 5rem;
}
.py-8 {
    padding-top: 2rem;
    padding-bottom: 2rem;
}
 
.items-center {
    align-items: center;
}
 
.flex-col {
    flex-direction: column;
}
.cursor-pointer {
    cursor: pointer;
}
.min-h-screen {
    min-height: 100vh;
}
.space-y-4 > :not([hidden]) ~ :not([hidden]) {
    --tw-space-y-reverse: 0;
    margin-top: calc(1rem * calc(1 - var(--tw-space-y-reverse)));
    margin-bottom: calc(1rem * var(--tw-space-y-reverse));
}
 .grid-cols-1 {
    grid-template-columns: repeat(1, minmax(0, 1fr));
}
 
 @media (min-width: 640px) {
    .sm\:px-10 {
        padding-left: 2.5rem;
        padding-right: 2.5rem;
    }
}
 @media (min-width: 640px) {
    .sm\:gap-4 {
        gap: 1rem;
    }
}
@media (min-width: 640px) {
    .sm\:w-16 {
        width: 4rem;
    }
}
.text-3xl {
    font-size: 1.875rem;
    line-height: 2.25rem;
}
.text-slate-500 {
    --tw-text-opacity: 1;
    color: rgb(100 116 139 / var(--tw-text-opacity, 1));
}
 @media (min-width: 640px) {
    .sm\:grid-cols-2 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 640px) {
    .sm\:col-span-2 {
        grid-column: span 2 / span 2;
    }
}

.gap-2 {
    gap: 0.5rem;
}
 
.left-4 {
    left: 1rem;
}
 
.absolute {
    position: absolute;
}

.text-slate-400 {
    --tw-text-opacity: 1;
    color: rgb(148 163 184 / var(--tw-text-opacity, 1));
}
 
.tracking-\[0\.18em\] {
    letter-spacing: 0.18em;
}
 
.uppercase {
    text-transform: uppercase;
}
 
.font-black {
    font-weight: 900;
}
 
.text-\[10px\] {
    font-size: 10px;
}
 
.justify-between {
    justify-content: space-between;
}
 
.items-center {
    align-items: center;
}
 
.flex {
    display: flex;
}
body {
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Helvetica Neue", Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    margin: 0;
    background: #f3f4f8;
    color: var(--ink);
}

.font-900 { font-weight: 700 !important; }

#modalOverlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.46);
    backdrop-filter: blur(24px) saturate(125%);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 36px 18px;
}

.modal-card {
    background: #ffffff;
    border-radius: 28px;
    width: 100%;
    max-width: 780px;
    height: 900px;
    max-height: 95vh;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(228, 231, 236, 0.95);
    box-shadow:
        0 36px 80px -42px rgba(15, 23, 42, 0.5),
        0 6px 20px -14px rgba(15, 23, 42, 0.28);
    overflow: hidden;
    animation: none;
}

@keyframes modalPop {
    from { opacity: 0; transform: translateY(24px) scale(0.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

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

.header-fixed {
    position: relative;
    padding: 30px 30px 18px;
    flex-shrink: 0;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(8px);
}

.header-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding-right: 56px;
}

.brand-strip {
    display: flex;
    align-items: center;
    margin-bottom: 0;
}

.brand-logo {
    width: min(176px, 46vw);
    max-width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
    flex-shrink: 0;
}

.header-step-side {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    justify-content: flex-end;
    min-width: 0;
    flex: 1;
}

.header-close-btn {
    position: absolute;
    top: 26px;
    right: 24px;
    flex-shrink: 0;
}

.step-head {
    text-align: right;
    max-width: 100%;
}

.step-head .hero-title {
    font-size: clamp(1.08rem, 1.9vw, 1.55rem);
    line-height: 1.18;
}

.step-head .step-kicker {
    margin-top: 6px;
}

.search-fixed {
    padding: 0 30px 15px;
    flex-shrink: 0;
    background: rgba(255, 255, 255, 0.9);
}

.scrollable-body {
    flex: 1;
    overflow-y: auto;
    padding: 20px 30px 26px;
    background: #f8fafc;
}

.scrollable-body > * {
    animation: none;
}

/* Footer hizası Tailwind'e (justify-between/items-center) bırakılmaz;
   canlı sayfada Tailwind CDN olmadığında butonlar dağılıyordu. */
.footer-fixed {
    padding: 7px 20px;
    background: #f9fafb;
    flex-shrink: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

/* GERİ butonu — Tailwind'siz kendi görünümü */
.footer-back-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px 8px;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.04em;
    color: #94a3b8;
    transition: color 0.18s ease;
    white-space: nowrap;
}

.footer-back-btn:hover { color: var(--select-accent); }

.footer-back-btn svg,
.footer-back-btn .lucide-slot i {
    width: 18px;
    height: 18px;
}

/* İşlem butonu alanı: buton kendi genişliğinde, sağa hizalı
   (GERİ solda, işlem butonu sağda — footer space-between dağıtır) */
#actionBtnArea {
    display: flex;
    justify-content: flex-end;
    margin-left: auto;
    min-width: 0;
}

/* Bileşenlerdeki w-full sınıfı Tailwind'le tam genişlik yapıyordu;
   buton artık içeriği kadar geniş */
#actionBtnArea .btn-next { width: auto; }

.app-trigger {
    background: var(--select-accent);
    border: 1px solid rgba(234, 88, 12, 0.3);
    letter-spacing: 0.01em;
    box-shadow: 0 24px 36px -24px rgba(194, 65, 12, 0.38);
}

.hero-title {
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue", Arial, sans-serif;
    letter-spacing: -0.015em;
    color: #4b5563;
    font-weight: 600;
}

.step-kicker {
    font-size: 10px;
    font-weight: 500;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    display: none;
}

.progress-track {
    margin-top: 10px;
    width: 100%;
    height: 5px;
    border-radius: 999px;
    background: #e8ebf0;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    width: 0;
    border-radius: inherit;
    background: var(--select-accent);
    transition: width 0.3s ease;
}

.form-label {
    font-size: 11px;
    font-weight: 600;
    color: var(--ink-soft);
    margin-bottom: 8px;
    display: block;
    letter-spacing: 0.01em;
}

/* Grid hücresi içeriğinden dar kalamaz (min-width:auto) — inputlu
   hücrelerin kolonla birlikte daralabilmesi için sıfırla */
.input-group {
    min-width: 0;
    display: block;
}

.form-input {
    width: 100%;
    /* Tarih gibi inputların içsel asgari genişliği dar kolonlarda
       grid'i taşırabilir — kolonla birlikte daralabilsin */
    min-width: 0;
    padding: 13px 15px;
    background: #ffffff;
    border: 1.5px solid var(--line);
    border-radius: 13px;
    font-size: 14px;
    font-weight: 500;
    color: var(--ink);
    outline: none;
    transition: border-color 0.18s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.form-input:hover {
    border-color: #ccd3dc;
}

.form-input:focus {
    border-color: var(--select-accent);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(234, 88, 12, 0.14);
}

.referral-entry {
    border: 1px solid #d0d5dd;
    background: #f7f8fa;
    border-radius: 16px;
    padding: 14px;
}

.ref-entry-title {
    margin: 0;
    color: #374151;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.3;
}

.ref-apply-row {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 10px;
    align-items: center;
}

.ref-apply-btn {
    height: 46px;
    border-radius: 12px;
    padding: 0 15px;
    font-size: 12px;
    white-space: nowrap;
}

.ref-code-hint {
    margin-top: 8px;
    color: #667085;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.35;
}

.ref-impact {
    border: 2px solid var(--select-accent-line);
    background: #fffaf5;
    border-radius: 20px;
    padding: 16px;
    display: grid;
    gap: 12px;
    box-shadow: 0 16px 28px -24px var(--select-glow);
}

.ref-impact-top {
    display: flex;
    justify-content: flex-start;
    align-items: center;
}

.ref-impact-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border-radius: 999px;
    border: 1px solid var(--select-accent-line);
    background: var(--select-accent-soft);
    color: var(--select-accent-strong);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 6px 10px;
}

.ref-impact-main {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 12px;
    align-items: center;
}

.ref-impact-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 78px;
    height: 58px;
    padding: 0 12px;
    border-radius: 14px;
    border: 1px solid var(--select-accent-line);
    background: #ffffff;
    color: var(--select-accent-strong);
    font-size: 24px;
    font-weight: 900;
    letter-spacing: 0.02em;
    line-height: 1;
}

.ref-impact-copy {
    display: grid;
    gap: 4px;
}

.ref-impact-copy strong {
    color: #1f2937;
    font-size: clamp(22px, 3.2vw, 30px);
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -0.02em;
}

.ref-impact-copy p {
    margin: 0;
    color: #6b7280;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.35;
}

.ref-summary-note {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border-radius: 10px;
    border: 1px solid #d0d5dd;
    background: #f3f4f6;
    color: #374151;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.35;
    padding: 7px 9px;
}

.payment-layout {
    display: grid;
    gap: 14px;
}

.payment-overview {
    border: 1px solid #e1e6ee;
    background: #ffffff;
    border-radius: 18px;
    padding: 16px;
}

.payment-overview-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
}

.payment-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #374151;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.2;
}

.payment-state-pill {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    border: 1px solid #d5dbe5;
    background: #f8fafc;
    color: #667085;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 5px 10px;
}

.payment-total {
    margin-top: 12px;
    border: 1px solid #e8ecf3;
    background: #f8fafc;
    border-radius: 14px;
    padding: 12px 14px;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 10px;
}

.payment-total span {
    color: #667085;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.2;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.payment-total strong {
    color: #111827;
    font-size: 30px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.02em;
}

.payment-mini-grid {
    margin-top: 10px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.payment-mini-item {
    border: 1px solid #e5e9f1;
    background: #ffffff;
    border-radius: 12px;
    padding: 10px 11px;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.payment-mini-item span {
    color: #667085;
    font-size: 10px;
    font-weight: 700;
    line-height: 1.2;
}

.payment-mini-item strong {
    color: #111827;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.2;
}

.payment-note {
    margin: 12px 0 0;
    color: #475467;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.4;
}

.payment-entry {
    border: 1px solid #e4e7ec;
    background: #ffffff;
    border-radius: 18px;
    padding: 12px;
    display: grid;
    gap: 12px;
}

.payment-card-visual {
    border: 1px solid #283445;
    background: #111827;
    border-radius: 18px;
    padding: 18px;
    color: #e5e7eb;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.payment-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.payment-chip {
    width: 38px;
    height: 26px;
    border-radius: 7px;
    border: 1px solid #9ca3af;
    background: #d1d5db;
}

.payment-brand-logos {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.card-brand-logo {
    height: 24px;
    min-width: 46px;
    border-radius: 8px;
    border: 1px solid rgba(206, 219, 239, 0.38);
    color: #d1d5db;
    opacity: 0.45;
    transition: 0.2s ease;
}

.card-brand-logo.active {
    opacity: 1;
    border-color: var(--select-accent-line);
    box-shadow: 0 6px 16px -10px var(--select-glow);
}

.card-brand-logo.visa {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.08em;
    background: rgba(37, 99, 235, 0.22);
}

.card-brand-logo.mastercard {
    min-width: 58px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    background: rgba(255, 255, 255, 0.08);
}

.mc-circle {
    width: 15px;
    height: 15px;
    border-radius: 999px;
    display: inline-block;
}

.mc-left {
    background: #ff5f00;
}

.mc-right {
    background: #eb001b;
    margin-left: -5px;
    mix-blend-mode: screen;
}

.payment-card-number {
    margin: 18px 0 14px;
    color: #ffffff;
    font-size: 24px;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: 0.08em;
}

.payment-card-brand-name {
    margin: -4px 0 12px;
    color: #cbd5e1;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

.payment-card-meta {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 10px;
}

.payment-card-meta span {
    display: block;
    color: #9ca3af;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.08em;
    line-height: 1.2;
}

.payment-card-meta strong {
    display: block;
    margin-top: 4px;
    color: #ffffff;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: 0.03em;
}

.payment-form-card {
    border: 1px solid #e6eaf0;
    background: #fcfdff;
    border-radius: 14px;
    padding: 14px;
}

.payment-form-head {
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.payment-form-head h4 {
    margin: 0;
    color: #1f2937;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.payment-form-head span {
    border-radius: 999px;
    border: 1px solid #d6dde8;
    background: #ffffff;
    color: #667085;
    font-size: 10px;
    font-weight: 700;
    padding: 4px 9px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.payment-inline-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.payment-security-note {
    margin: 12px 0 0;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #667085;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.3;
}

.card-brand-hint {
    margin: 7px 0 0;
    color: #667085;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.3;
}

.success-stage {
    display: grid;
    gap: 14px;
    padding: 4px 0 2px;
}

.success-hero {
    display: grid;
    justify-items: center;
    text-align: center;
    gap: 8px;
    padding: 6px 6px 2px;
}

.success-icon-wrap {
    width: 78px;
    height: 78px;
    border-radius: 999px;
    border: 1px solid #bde4ce;
    background: #eaf9f0;
    color: #198754;
    display: flex;
    align-items: center;
    justify-content: center;
}

.success-hero h4 {
    margin: 0;
    color: #1f2937;
    font-size: clamp(26px, 3.7vw, 34px);
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -0.02em;
}

.success-hero p {
    margin: 0;
    max-width: 620px;
    color: #667085;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.45;
}

.success-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.success-card {
    border: 1px solid #e4e7ec;
    background: #ffffff;
    border-radius: 18px;
    padding: 14px;
}

.success-card-head {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: #374151;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.success-keyvals {
    margin-top: 10px;
    display: grid;
    gap: 8px;
}

.success-keyval {
    border: 1px solid #edf0f4;
    background: #f8fafc;
    border-radius: 12px;
    padding: 9px 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.success-keyval span {
    color: #667085;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.success-keyval strong {
    color: #1f2937;
    font-size: 12px;
    font-weight: 800;
    text-align: right;
}

.success-card-note {
    margin: 10px 0 0;
    color: #6b7280;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.35;
}

.success-timeline {
    margin-top: 10px;
    display: grid;
    gap: 8px;
}

.success-timeline-item {
    border: 1px solid #edf0f4;
    background: #fbfcfd;
    border-radius: 12px;
    padding: 9px 10px;
    display: flex;
    gap: 6px;
}

.success-time-chip {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    border-radius: 999px;
    border: 1px solid var(--select-accent-line);
    background: var(--select-accent-soft);
    color: var(--select-accent-strong);
    padding: 3px 8px;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.success-timeline-item p {
    margin: 0;
    color: #475467;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.35;
}

.success-info-note {
    border: 1px solid #dbe3ee;
    background: #f8fafc;
    border-radius: 14px;
    padding: 10px 12px;
    display: flex;
    align-items: flex-start;
    gap: 8px;
    color: #475467;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.4;
}

.success-info-note strong {
    color: #1f2937;
    font-weight: 800;
}

.success-restart-btn {
    width: 100%;
    margin-top: 4px;
    border: 1px solid rgba(234, 88, 12, 0.3);
    background: var(--select-accent);
    color: #ffffff;
    border-radius: 14px;
    padding: 13px 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.08em;
    cursor: pointer;
    transition: filter 0.2s ease;
}

.success-restart-btn:hover {
    filter: brightness(1.03);
}

.input-group.has-error .form-input,
.form-input.input-error {
    border-color: var(--danger);
    background: var(--danger-soft);
}

.input-hint {
    margin-top: 6px;
    font-size: 11px;
    font-weight: 600;
    color: var(--danger);
}

.feedback-banner {
    display: none;
    margin: 0 30px 12px;
    padding: 12px 14px;
    border-radius: 12px;
    background: var(--danger-soft);
    border: 1px solid #ffd4d4;
    color: #a32020;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.35;
}

.feedback-banner.success {
    background: #f3f4f6;
    border-color: #d1d5db;
    color: #374151;
}

.address-chip-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.chip-summary {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 12px;
    border-radius: 999px;
    background: #ecfdf3;
    color: #166534;
    font-size: 11px;
    font-weight: 700;
}

.chip-summary-btn {
    border: 1px solid #86efac;
    cursor: pointer;
    transition: 0.2s ease;
    box-shadow: 0 2px 8px -6px rgba(22, 163, 74, 0.5);
}

.chip-summary-btn:hover,
.chip-summary-btn:focus-visible {
    background: #dcfce7;
    border-color: #4ade80;
    color: #166534;
    outline: none;
}

.chip-summary-icon {
    color: #16a34a;
}

.helper-banner {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid #d0d5dd;
    background: #f3f4f6;
    color: #374151;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.35;
}

.summary-stage {
    display: grid;
    gap: 12px;
}

.summary-intro {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border-radius: 12px;
    border: 1px solid #e4e7ec;
    background: #f9fafb;
    color: #4b5563;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.3;
    padding: 11px 13px;
}

.summary-card {
    border: 1px solid #e4e7ec;
    background: #f9fafb;
    border-radius: 18px;
    padding: 14px;
    display: grid;
    gap: 10px;
}

.summary-card--soft {
    border-color: #fed7aa;
    background: #fffbf5;
}

.summary-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
}

.summary-title-wrap {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.summary-icon-chip {
    width: 30px;
    height: 30px;
    border-radius: 10px;
    border: 1px solid #d8dee8;
    background: #ffffff;
    color: #4b5563;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.summary-kicker {
    margin: 0 0 1px;
    color: #9ca3af;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.09em;
    line-height: 1;
}

.summary-title {
    margin: 0;
    color: #1f2937;
    font-size: 14px;
    font-weight: 800;
    line-height: 1.15;
}

.summary-list {
    display: grid;
    gap: 7px;
}

.summary-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
}

.summary-row {
    border: 1px solid #e5e7eb;
    background: #ffffff;
    border-radius: 11px;
    padding: 10px 11px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
}

.summary-row span {
    color: #6b7280;
    font-size: 11px;
    font-weight: 700;
}

.summary-row strong {
    color: #1f2937;
    font-size: 11px;
    font-weight: 800;
    line-height: 1.3;
    text-align: right;
    max-width: 68%;
    white-space: normal;
    word-break: break-word;
}

.summary-row-full {
    grid-column: 1 / -1;
}

.summary-status-ok,
.summary-status-missing {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 88px;
    border-radius: 999px;
    padding: 5px 10px;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.summary-status-ok {
    border: 1px solid #86efac;
    background: #f0fdf4;
    color: #166534;
}

.summary-status-missing {
    border: 1px solid #fecaca;
    background: #fef2f2;
    color: #b91c1c;
}

.due-card {
    border: 1px solid #fdba74;
    background: #fff7ed;
    border-radius: 22px;
    padding: 16px;
    box-shadow: 0 10px 24px -18px rgba(234, 88, 12, 0.5);
    display: grid;
    gap: 10px;
}

.due-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    flex-wrap: wrap;
}

.due-card-kicker {
    color: #9a3412;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.due-card-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    border: 1px solid #fdba74;
    background: #ffffff;
    color: #c2410c;
    border-radius: 999px;
    padding: 5px 10px;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.due-card-row {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 10px;
}

.due-card-row-main strong {
    color: #7c2d12;
    font-size: clamp(31px, 4vw, 46px);
    line-height: 1;
    letter-spacing: -0.03em;
    font-weight: 800;
}

.due-card-label {
    display: block;
    color: #1f2937;
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.due-card-help {
    margin: 4px 0 0;
    color: #7c2d12;
    font-size: 11px;
    font-weight: 600;
}

.due-card-divider {
    height: 1px;
    background: #fed7aa;
}

.due-card-label-muted {
    color: #9a3412;
    font-size: 11px;
    font-weight: 700;
}

.due-card-sub-value {
    color: #c2410c;
    font-size: 22px;
    font-weight: 800;
    line-height: 1;
}

.edit-link-btn {
    border: 1px solid #d0d5dd;
    background: #f3f4f6;
    color: #374151;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 6px 11px;
    cursor: pointer;
    transition: 0.2s;
    flex-shrink: 0;
}

.edit-link-btn:hover {
    background: var(--select-accent-soft);
    border-color: var(--select-accent-line);
    color: var(--select-accent-strong);
}

.upload-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.upload-card {
    border: 1.5px dashed #cbd8e6;
    border-radius: 15px;
    padding: 14px;
    background: #fbfcfe;
}

.upload-card.has-file {
    border-style: solid;
    border-color: #b9d3ee;
    background: #f8fbff;
}

.upload-placeholder {
    height: 180px;
    border-radius: 12px;
    border: 1px dashed #cfd9e6;
    background: #f5f8fc;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: #6e6e73;
    font-size: 12px;
    font-weight: 600;
}

.upload-placeholder small {
    font-size: 10px;
    font-weight: 600;
    color: #98a2b3;
}

.upload-dropzone {
    border-radius: 12px;
    transition: 0.2s ease;
}

.upload-dropzone.is-dragover .upload-placeholder {
    border-color: var(--select-accent-line);
    background: var(--select-accent-soft);
    color: var(--select-accent-strong);
}

.upload-dropzone.is-dragover .upload-preview {
    outline: 2px solid var(--select-accent-line);
    outline-offset: -2px;
}

.upload-preview {
    width: 100%;
    height: 180px;
    border-radius: 12px;
    object-fit: cover;
    border: 1px solid #d8e2ef;
    background: #fff;
}

.upload-meta {
    margin-top: 8px;
    font-size: 11px;
    font-weight: 600;
    color: #6e6e73;
    word-break: break-word;
}

.upload-actions {
    margin-top: 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.upload-action-btn {
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.upload-camera-btn {
    border-color: var(--select-accent-line);
    background: var(--select-accent-soft);
    color: var(--select-accent-strong);
}

.plan-stage {
    display: grid;
    gap: 14px;
}

.speed-card {
    border: 1px solid #d5d9e0;
    background: #f5f6f8;
    border-radius: 20px;
    padding: 18px;
}

.speed-card-head h4 {
    margin: 0;
    color: #1f2937;
    font-size: 44px;
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: -0.03em;
}

.speed-card-head p {
    margin: 8px 0 0;
    color: #4b5563;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.4;
}

.speed-card-features {
    margin-top: 14px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.speed-feature {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: 1px solid #d4d7dd;
    background: #ffffff;
    color: #374151;
    border-radius: 999px;
    padding: 7px 11px;
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
}

.plan-choice-wrap {
    border: 1px solid #e8eaf1;
    background: #fcfdff;
    border-radius: 18px;
    padding: 14px;
}

.plan-choice-title {
    margin: 0 0 10px;
    color: #667085;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.plan-choice-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    align-items: stretch;
}

.plan-choice-card {
    position: relative;
    display: flex;
    flex-direction: column;
    border: 1.5px solid #e4e7ec;
    background: #ffffff;
    border-radius: 16px;
    padding: 14px;
    text-align: left;
    cursor: pointer;
    transition: 0.2s ease;
}

.plan-choice-card--monthly {
    border-color: #d8dde5;
    background: #ffffff;
}

.plan-choice-card--yearly {
    border-color: #f3d1b7;
    background: #fffbf6;
}

.plan-choice-card.is-selected {
    border-color: var(--select-accent);
    background: var(--select-accent-soft);
    box-shadow: 0 12px 22px -18px var(--select-glow);
}

.plan-choice-card--monthly.is-selected {
    background: #fffaf5;
}

.plan-choice-card--yearly.is-selected {
    background: #fff3e5;
    box-shadow: 0 16px 28px -20px rgba(234, 88, 12, 0.35);
}

.plan-choice-kicker {
    display: block;
    color: #6b7280;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.plan-choice-card.is-selected .plan-choice-kicker {
    color: var(--select-accent-strong);
}

.plan-choice-badge {
    position: absolute;
    top: -8px;
    right: 10px;
    border: 1px solid var(--select-accent-line);
    background: var(--select-accent-soft);
    color: var(--select-accent-strong);
    border-radius: 999px;
    padding: 3px 8px;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.08em;
}

.plan-choice-name {
    margin: 7px 0 0;
    color: #1f2937;
    font-size: 28px;
    font-weight: 700;
    line-height: 1.1;
}

.plan-choice-price {
    margin: 8px 0 0;
    color: #374151;
    font-size: 28px;
    font-weight: 700;
    line-height: 1.1;
}

.plan-choice-price small {
    font-size: 14px;
    color: #667085;
    font-weight: 600;
}

.plan-choice-meta {
    margin: 8px 0 0;
    color: #667085;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.35;
    min-height: 30px;
}

.plan-choice-mode {
    margin-top: 8px;
    display: inline-flex;
    align-items: center;
    width: fit-content;
    border-radius: 999px;
    padding: 4px 8px;
    border: 1px solid #e1e6ee;
    background: #f9fafb;
    color: #6b7280;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.01em;
}

.plan-choice-card--yearly .plan-choice-mode {
    border-color: #f5c9a8;
    background: #fff5ea;
    color: var(--select-accent-strong);
}

.plan-choice-check {
    margin-top: auto;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border-radius: 999px;
    border: 1px solid var(--select-accent-line);
    background: var(--select-accent-soft);
    color: var(--select-accent-strong);
    padding: 5px 9px;
    font-size: 10px;
    font-weight: 700;
    visibility: hidden;
    opacity: 0;
}

.plan-choice-card.is-selected .plan-choice-check {
    visibility: visible;
    opacity: 1;
}

.ip-choice-wrap {
    border: 1px solid #e8eaf1;
    background: #fcfdff;
    border-radius: 18px;
    padding: 14px;
}

.ip-choice-title {
    margin: 0 0 10px;
    color: #667085;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.ip-choice-segment {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    background: #f3f4f8;
    border-radius: 14px;
    padding: 6px;
}

.ip-choice-btn {
    border: 1px solid transparent;
    background: transparent;
    border-radius: 10px;
    color: #4b5563;
    font-size: 12px;
    font-weight: 700;
    padding: 10px 12px;
    text-align: center;
    cursor: pointer;
    transition: 0.2s ease;
}

.ip-choice-btn.is-selected {
    border-color: var(--select-accent-line);
    background: var(--select-accent-soft);
    color: var(--select-accent-strong);
    box-shadow: 0 8px 16px -12px var(--select-glow);
}

.pf-stage {
    display: grid;
    gap: 12px;
}

.pf-hero {
    border: 1px solid #dce2ea;
    background: #ffffff;
    border-radius: 18px;
    padding: 14px;
}

.pf-hero-head h4 {
    margin: 0;
    color: #1f2937;
    font-size: clamp(32px, 4.3vw, 42px);
    font-weight: 800;
    line-height: 1.04;
    letter-spacing: -0.03em;
}

.pf-hero-head p {
    margin: 8px 0 0;
    color: #667085;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.45;
}

.pf-feature-row {
    margin-top: 12px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.pf-feature-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: 1px solid #d7dce5;
    background: #f8fafc;
    color: #4b5563;
    border-radius: 999px;
    padding: 7px 11px;
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
}

.pf-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
    gap: 10px;
}

.pf-config-col {
    display: grid;
    gap: 10px;
}

.pf-block,
.pf-summary-col {
    border: 1px solid #e2e7ee;
    background: #ffffff;
    border-radius: 16px;
    padding: 13px;
}

.pf-block-head,
.pf-summary-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 9px;
}

.pf-block-head span,
.pf-summary-head span {
    color: #374151;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.pf-block-head small,
.pf-summary-head small {
    color: #98a2b3;
    font-size: 10px;
    font-weight: 700;
    line-height: 1.2;
}

.pf-plan-stack {
    display: grid;
    gap: 8px;
}

.pf-plan-option {
    position: relative;
    border: 1.5px solid #dce2ea;
    background: #fafbfd;
    border-radius: 14px;
    padding: 12px;
    display: grid;
    gap: 9px;
    text-align: left;
    cursor: pointer;
    transition: 0.2s ease;
}

.pf-plan-option.is-selected {
    border-color: var(--select-accent);
    background: var(--select-accent-soft);
    box-shadow: 0 8px 16px -13px var(--select-glow);
}

.pf-plan-option--featured {
    border-color: #f2c9ad;
    background: #fffbf6;
}

.pf-plan-badge {
    position: absolute;
    top: -8px;
    right: 10px;
    border-radius: 999px;
    border: 1px solid var(--select-accent-line);
    background: #fff7ed;
    color: var(--select-accent-strong);
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.08em;
    padding: 3px 8px;
}

.pf-plan-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
}

.pf-plan-copy strong {
    display: block;
    color: #111827;
    font-size: 24px;
    font-weight: 800;
    line-height: 1.05;
}

.pf-plan-copy p {
    margin: 4px 0 0;
    color: #667085;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.3;
}

.pf-plan-price {
    display: inline-flex;
    align-items: baseline;
    gap: 3px;
    color: #1f2937;
}

.pf-plan-price span {
    font-size: 24px;
    font-weight: 800;
    line-height: 1;
}

.pf-plan-price small {
    color: #667085;
    font-size: 11px;
    font-weight: 700;
}

.pf-plan-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    flex-wrap: wrap;
}

.pf-plan-pill {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    border: 1px solid #e2e8f0;
    background: #ffffff;
    color: #667085;
    font-size: 10px;
    font-weight: 700;
    padding: 4px 8px;
}

.pf-plan-check {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: var(--select-accent-strong);
    font-size: 10px;
    font-weight: 800;
    visibility: hidden;
    opacity: 0;
}

.pf-plan-option.is-selected .pf-plan-check {
    visibility: visible;
    opacity: 1;
}

.pf-addon-segment {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
    background: #f8fafc;
    border-radius: 13px;
    padding: 6px;
}

.pf-addon-btn {
    border: 1px solid transparent;
    background: transparent;
    border-radius: 9px;
    color: #4b5563;
    font-size: 11px;
    font-weight: 700;
    padding: 9px 10px;
    cursor: pointer;
    transition: 0.2s ease;
    text-align: center;
    line-height: 1.25;
}

.pf-addon-btn small {
    display: block;
    color: #98a2b3;
    font-size: 10px;
    font-weight: 700;
}

.pf-addon-btn.is-selected {
    border-color: var(--select-accent-line);
    background: var(--select-accent-soft);
    color: var(--select-accent-strong);
}

.pf-addon-btn.is-selected small {
    color: var(--select-accent-strong);
}

.pf-summary-col {
    display: grid;
    align-content: start;
    gap: 10px;
}

.pf-summary-list {
    display: grid;
    gap: 7px;
}

.pf-summary-row {
    border: 1px solid #edf0f4;
    background: #fbfcfd;
    border-radius: 11px;
    padding: 8px 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.pf-summary-row span {
    color: #667085;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.03em;
}

.pf-summary-row strong {
    color: #1f2937;
    font-size: 13px;
    font-weight: 800;
}

.pf-summary-row.total {
    border-color: var(--select-accent-line);
    background: var(--select-accent-soft);
}

.pf-summary-row.total span,
.pf-summary-row.total strong {
    color: var(--select-accent-strong);
}

.pf-saving-note {
    border: 1px solid #cdebd8;
    background: #edf9f2;
    color: #146c43;
    border-radius: 11px;
    padding: 8px 10px;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.3;
}

.pf-saving-note strong {
    font-weight: 800;
}

.pf-summary-note {
    margin: 0;
    color: #6b7280;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.35;
}

.pc-stage {
    display: grid;
    gap: 12px;
}

.pc-top {
    border: 1px solid #dde3ec;
    background: #ffffff;
    border-radius: 18px;
    padding: 14px;
    display: grid;
    gap: 10px;
}

.pc-title h4 {
    margin: 0;
    color: #111827;
    font-size: clamp(31px, 4.2vw, 40px);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.03em;
}

.pc-title p {
    margin: 8px 0 0;
    color: #667085;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.45;
}

.pc-benefits {
        display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
 
    gap: 8px;
}

.pc-benefits span {
    display: inline-flex;
    align-items: center;
    gap: 2px;
 
    background: #f8fafc;
    color: #475467;
 
    padding: 6px 10px;
    font-size: 10px;
    font-weight: 700;
}

.pc-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    gap: 10px;
}

.pc-controls,
.pc-summary {
    border: 1px solid #e1e6ef;
    background: #ffffff;
    border-radius: 16px;
    padding: 13px;
}

.pc-controls {
    display: grid;
    gap: 10px;
}

.pc-control {
    border: 1px solid #edf1f6;
    background: #fafbfc;
    border-radius: 13px;
    padding: 10px;
    display: grid;
    gap: 8px;
}

.pc-control-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 8px;
}

.pc-control-head span {
    color: #374151;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.pc-control-head small {
    color: #98a2b3;
    font-size: 10px;
    font-weight: 700;
}

.pc-segment {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 17px;
}

.pc-segment-btn ,.pc-toggle{
    border: 1.5px solid #d9e0ea;
    background: #ffffff;
    border-radius: 12px;
    padding: 7px 12px;
    display: grid;
    text-align: left;
 
    cursor: pointer;
    transition: 0.2s ease;
}

.pc-segment-btn strong {
    color: #111827;
    font-size: 19px;
    font-weight: 800;
    line-height: 1.05;
}

.pc-segment-btn small {
    color: #667085;
    font-size: 11px;
    font-weight: 700;
}

.pc-segment-btn.is-active {
    border-color: var(--select-accent);
    background: var(--select-accent-soft);
    box-shadow: 0 10px 18px -14px var(--select-glow);
}

.pc-hint {
    margin: 0;
    color: #667085;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.35;
}

.pc-toggle-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 17px;
}

 
.pc-toggle span {
    color: #667085;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.pc-toggle strong {
    color: #111827;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.25;
}

.pc-toggle.is-active {
    border-color: var(--select-accent-line);
    background: var(--select-accent-soft);
}

.pc-highlight {
    border: 1px solid #cdebd8;
    background: #edf9f2;
    border-radius: 12px;
    padding: 8px 10px;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: #146c43;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.35;
}

.pc-highlight strong {
    font-weight: 800;
}

.pc-summary {
    display: grid;
    align-content: start;
    gap: 10px;
}

.pc-summary-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 8px;
}

.pc-summary-head span {
    color: #374151;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.pc-summary-head small {
    color: #98a2b3;
    font-size: 10px;
    font-weight: 700;
}

.pc-flow {
    display: grid;
    gap: 7px;
}

.pc-flow-item {
    border: 1px solid #ebeff4;
    background: #fafbfd;
    border-radius: 11px;
    padding: 8px 10px;
    display: grid;
    gap: 4px;
}

.pc-flow-item span {
    color: #667085;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.pc-flow-item strong {
    color: #1f2937;
    font-size: 18px;
    font-weight: 800;
    line-height: 1.1;
}

.pc-flow-item p {
    margin: 0;
    color: #6b7280;
    font-size: 11px;
    font-weight: 600;
}

.pc-flow-item.now {
    border-color: var(--select-accent-line);
    background: var(--select-accent-soft);
}

.pc-flow-item.now span,
.pc-flow-item.now strong {
    color: var(--select-accent-strong);
}

.pc-summary-list {
    border: 1px solid #eef1f5;
    background: #ffffff;
    border-radius: 11px;
    overflow: hidden;
}

.pc-summary-list > div {
    padding: 8px 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    border-bottom: 1px solid #edf1f5;
}

.pc-summary-list > div:last-child {
    border-bottom: none;
}

.pc-summary-list span {
    color: #667085;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.03em;
}

.pc-summary-list strong {
    color: #1f2937;
    font-size: 12px;
    font-weight: 800;
}

.pc-note {
    margin: 0;
    color: #6b7280;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.35;
}

.plan-card {
    flex: 1;
    border: 1.5px solid #e6e8ed;
    border-radius: 16px;
    padding: 20px;
    cursor: pointer;
    transition: 0.22s ease;
    position: relative;
    text-align: center;
    background: #ffffff;
}

.offer-hero {
    border-radius: 26px;
    border: 1px solid #d0d5dd;
    background: #f7f4ff;
    padding: 24px;
    text-align: center;
    box-shadow: 0 18px 30px -26px rgba(75, 85, 99, 0.24);
}

.offer-topline {
    margin: 0 0 6px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #4b5563;
}

.offer-main {
    margin: 0;
    font-size: 38px;
    font-weight: 700;
    line-height: 1.08;
    letter-spacing: -0.02em;
    color: #1f2937;
}

.offer-copy {
    margin: 8px 0 0;
    color: #4b5563;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.45;
}

.offer-chip-row {
    margin-top: 14px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
}

.offer-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 11px;
    border-radius: 999px;
    background: #ffffff;
    border: 1px solid #d0d5dd;
    color: #374151;
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
}

.plan-card.selected {
    border-color: var(--select-accent);
    background: var(--select-accent-soft);
    box-shadow: 0 14px 24px -18px var(--select-glow);
}

.toggle-btn {
    flex: 1;
    padding: 13px;
    border-radius: 13px;
    font-weight: 700;
    font-size: 11px;
    text-align: center;
    cursor: pointer;
    transition: 0.2s;
    border: 1.5px solid #e5e8ee;
    color: var(--ink-soft);
    background: #ffffff;
}

.toggle-btn.active {
    background: var(--select-accent);
    color: white;
    border-color: var(--select-accent);
    box-shadow: 0 8px 16px -12px var(--select-glow);
}

.address-item {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 9px;
    background: #fff;
    border: 1.5px solid #e5e7ec;
    border-radius:.35rem;
    font-weight: 600;
    color: #6d6d74;
    transition: 0.2s;
    text-align: left;
}

.address-item:hover,
.address-item:focus-visible {
    border-color: var(--select-accent);
    background: var(--select-accent-soft);
    outline: none;
}

.btn-next {
    background: var(--select-accent);
    color: white;
    padding: 10px 31px;
    border-radius: 13px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: transform 0.18s ease, filter 0.2s ease;
    cursor: pointer;
    justify-content: center;
    border: 1px solid rgba(234, 88, 12, 0.3);
}

.btn-next:hover {
    filter: brightness(1.03);
}

.btn-next:disabled {
    cursor: not-allowed;
    opacity: 0.6;
    transform: none;
}

.otp-input:focus {
    border-color: var(--select-accent);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(234, 88, 12, 0.12);
}

.ghost-btn {
    border: 1px solid #d0d5dd;
    background: #f3f4f6;
    color: #374151;
    border-radius: 11px;
    font-size: 11px;
    font-weight: 700;
    padding: 9px 12px;
    cursor: pointer;
    transition: 0.2s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.ghost-btn:hover { background: #eef0f2; }

.ghost-btn:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.ghost-btn.danger-btn {
    border-color: #ffd0d0;
    background: #fff5f5;
    color: #c62828;
}

.confirm-overlay {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(15, 23, 42, 0.52);
    z-index: 10040;
}

.confirm-overlay.is-open {
    display: flex;
}

.confirm-dialog {
    width: min(460px, 100%);
    background: #ffffff;
    border-radius: 22px;
    border: 1px solid #e4e7ec;
    box-shadow:
        0 26px 48px -30px rgba(15, 23, 42, 0.55),
        0 8px 16px -12px rgba(15, 23, 42, 0.22);
    padding: 24px;
}

.confirm-icon-wrap {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    border: 1px solid #d0d5dd;
    background: #f3f4f6;
    color: #374151;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
}

.confirm-title {
    margin: 0 0 8px;
    font-size: 20px;
    line-height: 1.2;
    font-weight: 700;
    color: #0f172a;
    letter-spacing: -0.01em;
}

.confirm-text {
    margin: 0;
    color: #475467;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.5;
}

.confirm-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 20px;
}

.confirm-actions .ghost-btn,
.confirm-actions .btn-next {
    min-width: 122px;
}

.confirm-leave-btn {
    background: var(--select-accent);
    border-color: rgba(234, 88, 12, 0.3);
}

/* Tailwind utility override'ları: form içinde daha sade ve tek dil */
#modalOverlay .bg-blue-600 {
    background: var(--select-accent) !important;
    box-shadow: 0 20px 30px -24px var(--select-glow);
}

#modalOverlay .bg-blue-50 {
    background: #f3f4f6 !important;
}

#modalOverlay .bg-slate-50 {
    background: #f8fafc !important;
}

#modalOverlay .border-blue-100,
#modalOverlay .border-slate-200 {
    border-color: #e2e8f0 !important;
}

#modalOverlay .bg-slate-900 {
    background: #0f172a !important;
}

#modalOverlay .text-blue-600 { color: var(--select-accent-strong) !important; }
#modalOverlay .text-slate-900 { color: #374151 !important; }
#modalOverlay .text-slate-800 { color: #475467 !important; }
#modalOverlay .text-slate-500 { color: #64748b !important; }

@media (min-width: 760px) {
    .payment-layout {
        grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
        align-items: start;
    }

    .payment-overview {
        position: sticky;
        top: 0;
    }

    .pf-summary-col {
        position: sticky;
        top: 0;
    }

    .pc-summary {
        position: sticky;
        top: 0;
    }
}

@media (max-width: 640px) {
    #modalOverlay { padding: 10px; }

    .modal-card {
        /* iOS Safari'de 100vh alt araç çubuğunu da sayar ve footer
           çubuğun arkasında kalır; dvh gerçek görünür yüksekliktir
           (desteklemeyen eski tarayıcılar vh satırında kalır). */
        height: 100vh;
        height: 100dvh;
        max-height: none;
        border-radius: 20px;
    }

    .header-fixed,
    .search-fixed,
    .scrollable-body,
    .footer-fixed {
        padding-left: 16px;
        padding-right: 16px;
    }

    .brand-logo {
        width: min(148px, 54vw);
    }

    .header-top {
        align-items: center;
        gap: 12px;
        padding-right: 46px;
    }

    .header-step-side {
        align-items: center;
    }

    .header-close-btn {
        top: 14px;
        right: 12px;
        width: 34px;
        height: 34px;
    }

    .step-head .hero-title {
        font-size: 16px;
    }

    .step-head .step-kicker {
        font-size: 9px;
        letter-spacing: 0.1em;
    }

    .feedback-banner {
        margin-left: 16px;
        margin-right: 16px;
    }

    .upload-grid { grid-template-columns: 1fr; }

    .upload-preview,
    .upload-placeholder { height: 156px; }

    .upload-actions {
        flex-direction: column;
    }

    .upload-actions .ghost-btn {
        width: 100%;
    }

    .ref-impact {
        padding: 14px;
    }

    .ref-impact-main {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .ref-impact-number {
        min-width: 0;
        width: fit-content;
    }

    .referral-entry {
        padding: 12px;
    }

    .success-grid {
        grid-template-columns: 1fr;
    }

    .success-card {
        padding: 12px;
    }

    .success-keyval {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }

    .success-keyval strong {
        text-align: left;
    }

    .success-hero h4 {
        font-size: 24px;
    }

    .ref-apply-row {
        grid-template-columns: 1fr;
    }

    .ref-apply-btn {
        width: 100%;
    }

    .payment-mini-grid {
        grid-template-columns: 1fr;
    }

    .payment-total {
        flex-direction: column;
        align-items: flex-start;
    }

    .summary-grid {
        grid-template-columns: 1fr;
    }

    .summary-row {
        flex-direction: column;
        align-items: flex-start;
    }

    .summary-row strong {
        text-align: left;
        max-width: 100%;
    }

    .due-card-row {
        flex-direction: column;
        align-items: flex-start;
    }

    .due-card-row-main strong {
        font-size: clamp(28px, 9vw, 36px);
    }

    .payment-entry {
        padding: 10px;
        gap: 10px;
    }

    .payment-card-visual {
        padding: 14px;
    }

    .payment-card-number {
        font-size: 19px;
        margin-top: 14px;
    }

    .payment-inline-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .payment-form-card {
        padding: 12px;
    }

    .pf-layout {
        grid-template-columns: 1fr;
    }

    .pf-hero-head h4 {
        font-size: 32px;
    }

    .pf-block,
    .pf-summary-col {
        padding: 12px;
    }

    .pf-plan-option {
        padding: 11px;
    }

    .pf-plan-copy strong,
    .pf-plan-price span {
        font-size: 22px;
    }

    .pf-plan-top {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }

    .pf-addon-segment {
        grid-template-columns: 1fr;
    }

    .pc-grid {
        grid-template-columns: 1fr;
    }

    .pc-title h4 {
        font-size: 30px;
    }

 

    .speed-card {
        padding: 14px;
        border-radius: 16px;
    }

    .speed-card-head h4 {
        font-size: 34px;
    }

    .plan-choice-wrap,
    .ip-choice-wrap {
        padding: 12px;
    }

    .plan-choice-grid,
    .ip-choice-segment {
        grid-template-columns: 1fr;
    }

    .plan-choice-card {
        padding: 12px;
    }

    .plan-choice-name,
    .plan-choice-price {
        font-size: 24px;
    }

    .offer-hero {
        padding: 18px;
        border-radius: 22px;
    }

    .offer-main {
        font-size: 30px;
    }

    .confirm-dialog {
        padding: 20px;
        border-radius: 18px;
    }

    .confirm-actions {
        flex-direction: column-reverse;
    }

    .confirm-actions .ghost-btn,
    .confirm-actions .btn-next {
        width: 100%;
    }
}

/* ============================================================
   BASVURU EKLERİ — yükleme, altyapı kartları, 3D ödeme modalı
   ============================================================ */

.loading-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 56px 20px;
    text-align: center;
}

.loading-wrap p {
    font-size: 13px;
    font-weight: 700;
    color: #64748b;
    line-height: 1.6;
}

.spinner {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 4px solid #e2e8f0;
    border-top-color: #2563eb;
    animation: bs-spin 0.8s linear infinite;
}

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

/* Altyapı (kapsama) seçim kartları */
.net-card {
    display: flex;
    align-items: center;
    gap: 14px;
    width: 100%;
    padding: 16px 18px;
    background: #fff;
    border: 2px solid #e2e8f0;
    border-radius: 18px;
    text-align: left;
    cursor: pointer;
    transition: all 0.15s ease;
}

.net-card:hover {
    border-color: #93c5fd;
    background: #f8fafc;
}

.net-card.is-active {
    border-color: #2563eb;
    background: #eff6ff;
}

.net-card-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 14px;
    background: #eff6ff;
    color: #2563eb;
    flex-shrink: 0;
}

.net-card.is-active .net-card-icon {
    background: #2563eb;
    color: #fff;
}

.net-card-body {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
    min-width: 0;
}

.net-card-body strong {
    font-size: 14px;
    font-weight: 900;
    color: #0f172a;
}

.net-card-body small {
    font-size: 11px;
    font-weight: 700;
    color: #64748b;
}

.net-card-arrow {
    color: #94a3b8;
    flex-shrink: 0;
}

.net-card.is-active .net-card-arrow {
    color: #2563eb;
}

/* 3D Secure iframe modalı */
.odeme-modal {
    position: fixed;
    inset: 0;
    z-index: 300;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(15, 23, 42, 0.72);
    backdrop-filter: blur(4px);
    padding: 16px;
}

.odeme-modal-box {
    position: relative;
    width: min(480px, 100%);
    height: min(640px, 92vh);
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 24px 64px rgba(2, 6, 23, 0.4);
}

.odeme-modal-box iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

.odeme-modal-close {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #f1f5f9;
    color: #64748b;
    cursor: pointer;
}

.odeme-modal-close:hover {
    background: #fee2e2;
    color: #dc2626;
}

/* Başarı ekranı mağaza rozetleri */
.success-store-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.success-store-row img {
    height: 42px;
    width: auto;
}

/* lucide ikon sarmalayıcısı — svg'yi hizada tutar */
.lucide-slot {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 0;
    flex-shrink: 0;
}

/* ============================================================
   SAYFA MODU (modalsız) — config.gorunum:"sayfa" veya ?sayfa=1
   Aynı kart, overlay yerine normal sayfa akışında durur.
   ============================================================ */
#modalOverlay.inline-mode {
    position: static;
    inset: auto;
    background: none;
    backdrop-filter: none;
    z-index: auto;
    min-height: 100vh;
    /* Gövde flex olduğundan tam genişlik almalı — yoksa içerik
       genişliğine daralıp kart adımdan adıma değişiyor */
    width: 100%;
    align-items: flex-start;
    padding: 28px 14px;
}

#modalOverlay.inline-mode .modal-card {
    height: auto;
    min-height: 640px;
    max-height: calc(100vh - 56px);
    /* 100vw DEĞİL: 100vw kaydırma çubuğunu da sayar ve mobilde kart
       görünür alandan geniş olup soldan taşıyordu (justify-center
       taşan sol tarafı erişilmez kılar). %100 ebeveynin iç genişliği. */
    width: min(780px, 100%);
    flex-shrink: 0;
}

@media (max-width: 640px) {
    #modalOverlay.inline-mode {
        padding: 0;
    }

    /* Gömülü modda kart, sitenin kendi başlığının ALTINDA başlar;
       sabit 100vh yükseklik footer'ı başlık yüksekliği kadar ekran
       dışına itiyordu (GERİ ve işlem butonları görünmüyordu).
       Çözüm: kart doğal yüksekliğinde akar, iç kaydırma kapatılır
       (sayfa kendisi kayar) ve footer ekran altına yapışkan yapılır. */
    #modalOverlay.inline-mode .modal-card {
        max-height: none;
        height: auto;
        min-height: 100vh;
        min-height: 100dvh;
        border-radius: 0;
        overflow: visible; /* overflow:hidden sticky'yi karta hapsediyordu */
    }

    #modalOverlay.inline-mode .scrollable-body {
        overflow-y: visible;
        flex: 1 0 auto;
    }

    #modalOverlay.inline-mode .footer-fixed {
        position: sticky;
        bottom: 0;
        z-index: 40;
        background: #f9fafb;
        /* iOS ana ekran çizgisi / alt bar için güvenli alan payı */
        padding-bottom: calc(7px + env(safe-area-inset-bottom));
    }
}

/* e-Devlet onay kılavuzu (başarı ekranı) */
.edevlet-guide {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.edevlet-guide-intro,
.edevlet-guide-outro {
    font-size: 13px;
    font-weight: 600;
    color: #475569;
    line-height: 1.6;
}

.edevlet-guide-item h5 {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 900;
    color: #0f172a;
    margin-bottom: 6px;
}

.edevlet-guide-item p {
    font-size: 12px;
    font-weight: 600;
    color: #64748b;
    line-height: 1.6;
    margin-bottom: 8px;
}

.edevlet-guide-item img {
    display: block;
    width: 100%;
    max-width: 560px;
    height: auto;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    margin: 0 auto 10px;
}

/* ============================================================
   SÖZLEŞME MODALI — kullanım şartları / KVKK aydınlatma metni
   ============================================================ */
.legal-link {
    display: inline;
    padding: 0;
    background: none;
    border: 0;
    font: inherit;
    color: #2563eb;
    text-decoration: underline;
    text-underline-offset: 2px;
    cursor: pointer;
}

.legal-link:hover {
    color: #1d4ed8;
}

.legal-overlay {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(15, 23, 42, 0.62);
    backdrop-filter: blur(3px);
    z-index: 10050;
}

.legal-dialog {
    display: flex;
    flex-direction: column;
    width: min(640px, 100%);
    max-height: min(720px, 90vh);
    background: #ffffff;
    border-radius: 22px;
    border: 1px solid #e4e7ec;
    box-shadow:
        0 26px 48px -30px rgba(15, 23, 42, 0.55),
        0 8px 16px -12px rgba(15, 23, 42, 0.22);
    overflow: hidden;
}

.legal-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 18px 22px;
    border-bottom: 1px solid #eef2f6;
    flex-shrink: 0;
}

.legal-title {
    font-size: 16px;
    font-weight: 900;
    color: #0f172a;
}

.legal-close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #f1f5f9;
    color: #64748b;
    cursor: pointer;
    flex-shrink: 0;
}

.legal-close:hover {
    background: #fee2e2;
    color: #dc2626;
}

.legal-body {
    padding: 20px 22px;
    overflow-y: auto;
    flex: 1;
    min-height: 0;
}

.legal-body h4 {
    font-size: 13px;
    font-weight: 900;
    color: #0f172a;
    margin: 16px 0 6px;
}

.legal-body h4:first-child {
    margin-top: 0;
}

.legal-body p {
    font-size: 12.5px;
    font-weight: 600;
    color: #475569;
    line-height: 1.7;
    margin-bottom: 8px;
}

.legal-body ul {
    margin: 0 0 8px;
    padding-left: 18px;
    list-style: disc;
}

.legal-body li {
    font-size: 12.5px;
    font-weight: 600;
    color: #475569;
    line-height: 1.7;
    margin-bottom: 4px;
}

.legal-foot {
    padding: 14px 22px;
    border-top: 1px solid #eef2f6;
    flex-shrink: 0;
}

.legal-ok-btn {
    width: 100%;
}

@media (max-width: 640px) {
    .legal-overlay {
        padding: 12px;
    }

    .legal-dialog {
        max-height: 94vh;
        border-radius: 18px;
    }
}

.relative {
    position: relative;
}
.top-1\/2 {
    top: 30%;
}
.pl-12 {
    padding-left: 3rem;
}