/* ==========================================================================
   EmlakAlgo – Tasarım Sistemi
   Koyu (varsayılan) & açık tema · glassmorphism · akıcı mikro animasyonlar
   ========================================================================== */

:root {
    --font: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --font-display: 'Outfit', var(--font);

    --radius-sm: 12px;
    --radius: 18px;
    --radius-lg: 26px;
    --ease: cubic-bezier(.22, 1, .36, 1);
    --ease-spring: cubic-bezier(.34, 1.56, .64, 1);

    --violet: #7c5cff;
    --blue: #4f8bff;
    --cyan: #22d3ee;
    --mint: #10e3a5;
    --gold: #f5c46b;
    --rose: #fb5c7c;
    --wa: #25d366;
    --grad: linear-gradient(135deg, var(--violet) 0%, var(--blue) 50%, var(--cyan) 100%);
    --grad-soft: linear-gradient(135deg, rgba(124, 92, 255, .18), rgba(34, 211, 238, .14));
}

[data-theme="dark"] {
    color-scheme: dark;
    --bg: #070a16;
    --bg-2: #0b1022;
    --surface: rgba(255, 255, 255, .045);
    --surface-2: rgba(255, 255, 255, .075);
    --surface-solid: #11172d;
    --border: rgba(255, 255, 255, .09);
    --border-strong: rgba(255, 255, 255, .16);
    --text: #eef0ff;
    --text-2: #c9cdea;
    --muted: #8f97bd;
    --primary: #8b6dff;
    --ring: rgba(139, 109, 255, .45);
    --shadow: 0 20px 60px -20px rgba(0, 0, 0, .7);
    --glow: 0 0 0 1px rgba(139, 109, 255, .5), 0 10px 40px -8px rgba(124, 92, 255, .55);
    --aurora-op: .55;
}

[data-theme="light"] {
    color-scheme: light;
    --bg: #f3f5fc;
    --bg-2: #e9edf9;
    --surface: rgba(255, 255, 255, .72);
    --surface-2: rgba(255, 255, 255, .95);
    --surface-solid: #ffffff;
    --border: rgba(23, 28, 68, .09);
    --border-strong: rgba(23, 28, 68, .18);
    --text: #121530;
    --text-2: #2e3356;
    --muted: #626a8f;
    --primary: #6243ff;
    --ring: rgba(98, 67, 255, .3);
    --shadow: 0 20px 50px -24px rgba(35, 40, 100, .35);
    --glow: 0 0 0 1.5px rgba(98, 67, 255, .55), 0 12px 32px -10px rgba(98, 67, 255, .4);
    --aurora-op: .35;
}

html {
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
    overflow-x: hidden;
    width: 100%;
}

html.big-text {
    font-size: 18.5px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100dvh;
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    transition: background .5s var(--ease), color .3s;
    overflow-x: hidden;
    width: 100%;
}

h1,
h2,
h3,
h4 {
    font-family: var(--font-display);
    line-height: 1.15;
    margin: 0;
    letter-spacing: -.01em;
}

a {
    color: inherit;
}

button {
    font: inherit;
    color: inherit;
    cursor: pointer;
}

input,
textarea,
select {
    font: inherit;
    color: inherit;
}

img {
    max-width: 100%;
    display: block;
}

[hidden] {
    display: none !important;
}

svg.lucide {
    width: 1.15em;
    height: 1.15em;
    stroke-width: 2;
    flex-shrink: 0;
}

::selection {
    background: var(--primary);
    color: #fff;
}

/* ---------- Arka plan aurora ---------- */
.aurora {
    position: fixed;
    inset: 0;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
    width: 100%;
}

.aurora span {
    position: absolute;
    border-radius: 50%;
    filter: blur(90px);
    opacity: var(--aurora-op);
    animation: float 22s var(--ease) infinite alternate;
}

.aurora span:nth-child(1) {
    width: 55vmax;
    height: 55vmax;
    background: #5b3dff;
    top: -25vmax;
    left: -15vmax;
}

.aurora span:nth-child(2) {
    width: 45vmax;
    height: 45vmax;
    background: #00b8d9;
    bottom: -22vmax;
    right: -12vmax;
    animation-delay: -7s;
}

.aurora span:nth-child(3) {
    width: 30vmax;
    height: 30vmax;
    background: #c03dff;
    top: 40%;
    left: 55%;
    opacity: calc(var(--aurora-op) * .5);
    animation-delay: -14s;
}

.aurora .grid {
    position: absolute;
    inset: 0;
    background-image: linear-gradient(var(--border) 1px, transparent 1px), linear-gradient(90deg, var(--border) 1px, transparent 1px);
    background-size: 56px 56px;
    mask-image: radial-gradient(ellipse at 50% 0%, #000 0%, transparent 70%);
    opacity: .5;
}

@keyframes float {
    0% {
        transform: translate(0, 0) scale(1);
    }

    50% {
        transform: translate(6vw, 4vh) scale(1.08);
    }

    100% {
        transform: translate(-4vw, 8vh) scale(.95);
    }
}

/* ---------- Üst bar (Sabit Header) ---------- */
.topbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 500;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px clamp(16px, 4vw, 40px);
    backdrop-filter: blur(20px) saturate(1.4);
    -webkit-backdrop-filter: blur(20px) saturate(1.4);
    background: color-mix(in srgb, var(--bg) 80%, transparent);
    border-bottom: 1px solid var(--border);
}

.topbar__progress {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 3px;
    background: transparent;
    overflow: hidden;
    pointer-events: none;
}

.topbar__progress i {
    display: block;
    height: 100%;
    width: 0;
    background: var(--grad);
    box-shadow: 0 0 10px var(--primary);
    transition: width .5s var(--ease);
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    font-family: var(--font-display);
    font-size: 1.35rem;
    font-weight: 600;
}

.brand b {
    font-weight: 800;
    background: var(--grad);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.brand img {
    transition: transform .6s var(--ease-spring);
}

.brand:hover img {
    transform: rotate(-12deg) scale(1.08);
}

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

.icon-btn {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    background: var(--surface);
    border: 1px solid var(--border);
    transition: transform .25s var(--ease), background .25s, border-color .25s;
    position: relative;
    overflow: hidden;
}

.icon-btn:hover {
    background: var(--surface-2);
    border-color: var(--border-strong);
    transform: translateY(-1px);
}

.icon-btn:active {
    transform: scale(.94);
}

.aa {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.05rem;
}

.aa small {
    font-size: .7em;
}

html.big-text #btn-bigtext {
    background: var(--grad-soft);
    border-color: var(--primary);
}

.theme-toggle svg {
    position: absolute;
    transition: transform .6s var(--ease-spring), opacity .3s;
}

[data-theme="dark"] .theme-toggle .i-sun {
    transform: translateY(0) rotate(0);
}

[data-theme="dark"] .theme-toggle .i-moon {
    transform: translateY(150%) rotate(90deg);
    opacity: 0;
}

[data-theme="light"] .theme-toggle .i-sun {
    transform: translateY(-150%) rotate(-90deg);
    opacity: 0;
}

[data-theme="light"] .theme-toggle .i-moon {
    transform: translateY(0) rotate(0);
}

/* ---------- Butonlar ---------- */
.btn {
    --h: 52px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: var(--h);
    padding: 0 24px;
    border-radius: 16px;
    border: 1px solid transparent;
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    white-space: nowrap;
    transition: transform .25s var(--ease), box-shadow .3s var(--ease), background .3s, opacity .2s;
    position: relative;
    isolation: isolate;
    overflow: hidden;
    -webkit-tap-highlight-color: transparent;
}

.btn:active {
    transform: scale(.97);
}

.btn--xl {
    --h: 62px;
    padding: 0 34px;
    font-size: 1.1rem;
    border-radius: 20px;
}

.btn--primary {
    background: var(--grad);
    color: #fff;
    box-shadow: 0 10px 30px -10px rgba(91, 61, 255, .8);
}

.btn--primary::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(120deg, transparent 30%, rgba(255, 255, 255, .35) 50%, transparent 70%);
    transform: translateX(-100%);
    transition: transform .8s var(--ease);
}

.btn--primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 40px -12px rgba(91, 61, 255, .9);
}

.btn--primary:hover::after {
    transform: translateX(100%);
}

.btn--primary svg {
    transition: transform .3s var(--ease);
}

.btn--primary:hover svg:last-child {
    transform: translateX(4px);
}

.btn--ghost {
    background: var(--surface);
    border-color: var(--border);
    color: var(--text);
}

.btn--ghost:hover {
    background: var(--surface-2);
    border-color: var(--border-strong);
}

.btn--link {
    background: none;
    color: var(--muted);
    padding: 0 12px;
    font-weight: 600;
}

.btn--link:hover {
    color: var(--text);
}

.btn--wa {
    background: var(--wa);
    color: #062b14;
    box-shadow: 0 12px 34px -10px rgba(37, 211, 102, .7);
}

.btn--wa:hover {
    transform: translateY(-2px);
    filter: brightness(1.05);
}

.btn[disabled],
.btn.is-loading {
    opacity: .6;
    pointer-events: none;
}

.btn.is-loading::before {
    content: '';
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 2.5px solid currentColor;
    border-right-color: transparent;
    animation: spin .7s linear infinite;
}

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

.link {
    background: none;
    border: 0;
    padding: 0;
    color: var(--primary);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* ---------- Kabuk ---------- */
.shell {
    width: min(1200px, 100%);
    margin: 0 auto;
    padding: calc(76px + env(safe-area-inset-top)) clamp(14px, 3vw, 32px) calc(96px + env(safe-area-inset-bottom));
    overflow-x: clip;
}

/* ---------- Hero ---------- */
.hero {
    text-align: center;
    max-width: 820px;
    margin: clamp(10px, 5vh, 60px) auto 0;
    animation: rise .9s var(--ease) both;
}

.hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 16px;
    border-radius: 99px;
    background: var(--surface);
    border: 1px solid var(--border);
    font-size: .9rem;
    font-weight: 600;
    color: var(--text-2);
}

.pulse {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--mint);
    box-shadow: 0 0 0 0 rgba(16, 227, 165, .6);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    70% {
        box-shadow: 0 0 0 10px rgba(16, 227, 165, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(16, 227, 165, 0);
    }
}

.hero__title {
    font-size: clamp(2.2rem, 6vw, 4.1rem);
    font-weight: 800;
    margin: 22px 0 18px;
    letter-spacing: -.03em;
}

.grad {
    background: var(--grad);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    background-size: 200% auto;
    animation: shine 6s linear infinite;
}

@keyframes shine {
    to {
        background-position: 200% center;
    }
}

.hero__lead {
    font-size: clamp(1.05rem, 2vw, 1.2rem);
    color: var(--text-2);
    max-width: 640px;
    margin: 0 auto;
}

.hero__cta {
    margin: 34px 0 44px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
}

.hero__steps {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    text-align: left;
}

.hero__steps li {
    display: flex;
    gap: 14px;
    align-items: center;
    padding: 18px;
    border-radius: var(--radius);
    background: var(--surface);
    border: 1px solid var(--border);
    backdrop-filter: blur(10px);
    animation: rise .9s var(--ease) both;
}

.hero__steps li:nth-child(2) {
    animation-delay: .1s;
}

.hero__steps li:nth-child(3) {
    animation-delay: .2s;
}

.hero__steps li>span {
    width: 46px;
    height: 46px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    background: var(--grad-soft);
    color: var(--primary);
    flex-shrink: 0;
}

.hero__steps b {
    display: block;
    font-size: .98rem;
}

.hero__steps small {
    color: var(--muted);
    font-size: .84rem;
}

@keyframes rise {
    from {
        opacity: 0;
        transform: translateY(24px);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

/* ---------- Sihirbaz ---------- */
.wizard {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 28px;
    align-items: start;
    animation: rise .7s var(--ease) both;
}

.preview {
    position: sticky;
    top: 96px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.pcard {
    padding: 22px;
    border-radius: var(--radius-lg);
    position: relative;
    overflow: hidden;
    background: var(--surface);
    border: 1px solid var(--border);
    backdrop-filter: blur(18px);
    box-shadow: var(--shadow);
}

.pcard::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--grad-soft);
    opacity: .6;
    z-index: -1;
}

.pcard__top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.pcard__icon {
    width: 54px;
    height: 54px;
    border-radius: 16px;
    display: grid;
    place-items: center;
    background: var(--grad);
    color: #fff;
    font-size: 1.4rem;
    box-shadow: 0 10px 24px -8px rgba(91, 61, 255, .8);
    transition: transform .5s var(--ease-spring);
}

.pcard__icon.bump {
    animation: bump .6s var(--ease-spring);
}

@keyframes bump {
    40% {
        transform: scale(1.18) rotate(-6deg);
    }
}

.pcard__purpose {
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--primary);
}

.pcard__title {
    font-size: 1.25rem;
    margin: 6px 0 8px;
    min-height: 1.4em;
}

.pcard__loc {
    display: flex;
    gap: 6px;
    align-items: flex-start;
    color: var(--muted);
    font-size: .92rem;
    margin: 0 0 14px;
}

.pcard__loc svg {
    margin-top: 3px;
}

.pcard__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    min-height: 8px;
}

.pcard__tags span {
    padding: 4px 10px;
    border-radius: 99px;
    font-size: .78rem;
    font-weight: 600;
    background: var(--surface-2);
    border: 1px solid var(--border);
    animation: pop .4s var(--ease-spring) both;
}

@keyframes pop {
    from {
        opacity: 0;
        transform: scale(.6);
    }
}

.pcard__meter {
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px dashed var(--border-strong);
}

.pcard__meter div {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
}

.pcard__meter small {
    color: var(--muted);
    font-size: .82rem;
}

.pcard__meter b {
    font-size: .92rem;
    background: var(--grad);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.pcard__meter p {
    margin: 6px 0 0;
    font-size: .82rem;
    color: var(--muted);
}

.ring {
    --p: 0;
    position: relative;
    width: 62px;
    height: 62px;
}

.ring svg {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.ring circle {
    fill: none;
    stroke: var(--border-strong);
    stroke-width: 4;
}

.ring .ring__val {
    stroke: url(#g) var(--cyan);
    stroke: var(--cyan);
    stroke-linecap: round;
    stroke-dasharray: 119.4;
    stroke-dashoffset: calc(119.4 - 119.4 * var(--p) / 100);
    transition: stroke-dashoffset .9s var(--ease), stroke .4s;
}

.ring b {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    font-family: var(--font-display);
    font-size: 1.05rem;
}

.steplist {
    list-style: none;
    margin: 0;
    padding: 10px;
    border-radius: var(--radius);
    background: var(--surface);
    border: 1px solid var(--border);
    backdrop-filter: blur(14px);
}

.steplist li button {
    width: 100%;
    display: flex;
    gap: 12px;
    align-items: center;
    padding: 9px 10px;
    border-radius: 12px;
    background: none;
    border: 0;
    text-align: left;
    color: var(--muted);
    font-size: .92rem;
    font-weight: 600;
    transition: background .2s, color .2s;
}

.steplist li button:disabled {
    cursor: default;
    opacity: .55;
}

.steplist li button:not(:disabled):hover {
    background: var(--surface-2);
    color: var(--text);
}

.steplist .dot {
    width: 30px;
    height: 30px;
    border-radius: 10px;
    display: grid;
    place-items: center;
    background: var(--surface-2);
    border: 1px solid var(--border);
    font-size: .85rem;
    transition: all .35s var(--ease);
}

.steplist li.done .dot {
    background: color-mix(in srgb, var(--mint) 18%, transparent);
    color: var(--mint);
    border-color: transparent;
}

.steplist li.done button {
    color: var(--text-2);
}

.steplist li.current button {
    background: var(--surface-2);
    color: var(--text);
}

.steplist li.current .dot {
    background: var(--grad);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 6px 16px -6px rgba(91, 61, 255, .9);
}

/* ---------- Panel ---------- */
.panel {
    position: relative;
    border-radius: var(--radius-lg);
    padding: clamp(20px, 3.4vw, 40px);
    background: var(--surface);
    border: 1px solid var(--border);
    backdrop-filter: blur(22px) saturate(1.3);
    -webkit-backdrop-filter: blur(22px) saturate(1.3);
    box-shadow: var(--shadow);
    min-height: 480px;
    display: flex;
    flex-direction: column;
}

.panel__head {
    margin-bottom: 26px;
}

.progress {
    height: 8px;
    border-radius: 99px;
    background: var(--surface-2);
    overflow: hidden;
}

.progress i {
    display: block;
    height: 100%;
    width: 0;
    border-radius: inherit;
    background: var(--grad);
    transition: width .7s var(--ease);
    position: relative;
}

.progress i::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .5), transparent);
    animation: sweep 2s infinite;
}

@keyframes sweep {
    from {
        transform: translateX(-100%);
    }

    to {
        transform: translateX(100%);
    }
}

.panel__meta {
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
    font-size: .86rem;
    color: var(--muted);
    font-weight: 600;
}

.panel__meta span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.steps {
    position: relative;
    flex: 1;
    max-width: 100%;
    padding: 2px 2px;
}

.step {
    border: 0;
    margin: 0;
    padding: 0;
    min-width: 0;
    max-width: 100%;
    display: none;
}

.step.is-active {
    display: block;
    animation: stepIn .45s var(--ease) both;
}

.step.is-back {
    animation-name: stepInBack;
}

@keyframes stepIn {
    from {
        opacity: 0;
        transform: translateY(14px);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

@keyframes stepInBack {
    from {
        opacity: 0;
        transform: translateY(-14px);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

.step__title {
    font-family: var(--font-display);
    font-size: clamp(1.55rem, 3.4vw, 2.1rem);
    font-weight: 700;
    padding: 0;
    letter-spacing: -.02em;
}

.step__title span {
    display: block;
    font-size: .6em;
    color: var(--muted);
    font-weight: 600;
    margin-bottom: 4px;
}

.step__lead {
    color: var(--muted);
    margin: 8px 0 26px;
    font-size: 1.02rem;
}

.step.shake {
    animation: shake .45s;
}

@keyframes shake {

    20%,
    60% {
        transform: translateX(-8px);
    }

    40%,
    80% {
        transform: translateX(8px);
    }
}

.q {
    margin-top: 26px;
}

.q__title {
    font-size: 1.02rem;
    font-weight: 700;
    margin: 0 0 12px;
    color: var(--text-2);
    font-family: var(--font);
    display: flex;
    align-items: center;
    gap: 8px;
}

.stack {
    display: grid;
    gap: 14px;
}

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

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin-top: 14px;
}

.grid-2:empty,
.grid-2:not(:has(> :not([hidden]))) {
    display: none;
}

.grid-2:has(> :not([hidden]):only-child) {
    grid-template-columns: 1fr;
}

.grid-m2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
    margin-top: 14px;
}

.grid-m2:has([data-show-type*="villa"]:not([hidden])) {
    grid-template-columns: repeat(3, 1fr);
}

.grid-m2>[hidden] {
    display: none !important;
}

.field-standalone:not([hidden]) {
    margin-top: 14px;
}

.reveal:not([hidden]) {
    animation: reveal .45s var(--ease) both;
}

@keyframes reveal {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
}

/* ---------- Seçim kartları ---------- */
.choice-grid {
    --cols: 3;
    display: grid;
    grid-template-columns: repeat(var(--cols), minmax(0, 1fr));
    gap: 12px;
    padding: 3px 2px;
}

/* Purpose Kartları (Satılık & Kiralık Yan Yana) */
[data-group="purpose"] {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 12px;
}

[data-group="purpose"] .choice-card__body {
    flex-direction: row !important;
    text-align: left !important;
    padding: 14px 16px !important;
    min-height: 64px !important;
    gap: 12px !important;
    align-items: center !important;
    justify-content: flex-start !important;
}

[data-group="purpose"] .choice-card__icon {
    width: 42px !important;
    height: 42px !important;
    border-radius: 12px !important;
    font-size: 1.2rem !important;
    flex-shrink: 0 !important;
}

[data-group="purpose"] strong {
    font-size: 1.05rem !important;
    font-weight: 700 !important;
}

.choice-card {
    position: relative;
    display: block;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.choice-card input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.choice-card__body {
    height: 100%;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px;
    border-radius: var(--radius);
    background: var(--surface);
    border: 1.5px solid var(--border);
    transition: transform .3s var(--ease), border-color .25s, background .25s, box-shadow .3s;
    position: relative;
}

.choice-card__body::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--grad-soft);
    opacity: 0;
    transition: opacity .3s;
    border-radius: inherit;
    pointer-events: none;
}

.choice-card:hover .choice-card__body {
    transform: translateY(-2px);
    border-color: var(--border-strong);
    background: var(--surface-2);
}

.choice-card:active .choice-card__body {
    transform: scale(.98);
}

.choice-card input:focus-visible+.choice-card__body {
    outline: 3px solid var(--ring);
    outline-offset: 2px;
}

.choice-card input:checked+.choice-card__body {
    border-color: var(--primary);
    background: color-mix(in srgb, var(--primary) 14%, var(--surface-2));
    box-shadow: 0 0 0 1.5px var(--primary), 0 8px 24px -6px rgba(124, 92, 255, .45);
}

.choice-card input:checked+.choice-card__body::before {
    opacity: 1;
}

.choice-card__icon {
    width: 46px;
    height: 46px;
    border-radius: 14px;
    flex-shrink: 0;
    display: grid;
    place-items: center;
    background: var(--surface-2);
    color: var(--primary);
    font-size: 1.25rem;
    position: relative;
    transition: transform .35s var(--ease-spring), background .3s, color .3s;
}

.choice-card input:checked+.choice-card__body .choice-card__icon {
    background: var(--grad);
    color: #fff;
    transform: scale(1.05);
}

.choice-card__emoji {
    font-size: 1.9rem;
    line-height: 1;
    position: relative;
    transition: transform .45s var(--ease-spring);
}

.choice-card input:checked+.choice-card__body .choice-card__emoji {
    transform: scale(1.25);
}

.choice-card__text {
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.choice-card__text strong {
    font-size: 1rem;
    font-weight: 700;
}

.choice-card__text small {
    color: var(--muted);
    font-size: .86rem;
    margin-top: 2px;
    line-height: 1.35;
}

.choice-card__check {
    display: none !important;
}

.choice-grid--lg .choice-card__body {
    flex-direction: column;
    text-align: center;
    padding: 34px 22px;
    gap: 18px;
    min-height: 230px;
    justify-content: center;
}

.choice-grid--lg .choice-card__icon {
    width: 78px;
    height: 78px;
    border-radius: 24px;
    font-size: 2.2rem;
}

.choice-grid--lg .choice-card__text strong {
    font-size: 1.25rem;
}

.choice-grid--lg .choice-card__text small {
    font-size: .95rem;
    margin-top: 6px;
}

.choice-grid--md .choice-card__body {
    flex-direction: column;
    text-align: center;
    padding: 24px 14px;
    gap: 12px;
}

.choice-grid--md .choice-card__icon {
    width: 58px;
    height: 58px;
    border-radius: 18px;
    font-size: 1.6rem;
}

.choice-grid--sm .choice-card__body {
    padding: 12px 14px;
    gap: 10px;
    min-height: 64px;
}

.choice-grid--sm .choice-card__icon {
    width: 36px;
    height: 36px;
    border-radius: 11px;
    font-size: 1.05rem;
}

.choice-grid--sm .choice-card__text strong {
    font-size: .93rem;
    line-height: 1.25;
}

.choice-grid--sm .choice-card__text small {
    font-size: .78rem;
}

.choice-grid--sm .choice-card__check {
    width: 18px;
    height: 18px;
    top: 7px;
    right: 7px;
    font-size: .65rem;
}

/* ---------- Chip ---------- */
.chips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.chip {
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.chip input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.chip span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 46px;
    padding: 0 18px;
    border-radius: 99px;
    background: var(--surface);
    border: 1.5px solid var(--border);
    font-weight: 600;
    font-size: .95rem;
    transition: all .3s var(--ease);
    user-select: none;
}

.chip span svg {
    color: var(--primary);
    transition: color .2s;
}

.chip:hover span {
    border-color: var(--border-strong);
    background: var(--surface-2);
    transform: translateY(-2px);
}

.chip:active span {
    transform: scale(.95);
}

.chip input:focus-visible+span {
    outline: 3px solid var(--ring);
    outline-offset: 2px;
}

.chip input:checked+span {
    background: var(--grad);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 8px 22px -10px rgba(91, 61, 255, .9);
}

.chip__tick {
    display: none !important;
}

/* ---------- Alanlar ---------- */
.field {
    position: relative;
}

.field input,
.field textarea {
    width: 100%;
    height: 64px;
    padding: 24px 18px 8px;
    border-radius: var(--radius);
    outline: 0;
    background: var(--surface);
    border: 1.5px solid var(--border);
    font-size: 1.05rem;
    font-weight: 600;
    transition: border-color .25s, box-shadow .25s, background .25s;
}

.field--area textarea {
    height: auto;
    min-height: 120px;
    resize: vertical;
    padding-top: 30px;
    line-height: 1.5;
}

.field--icon input,
.field--icon textarea {
    padding-left: 52px;
}

.field label {
    position: absolute;
    left: 18px;
    top: 21px;
    color: var(--muted);
    font-weight: 500;
    pointer-events: none;
    transition: transform .25s var(--ease), font-size .25s, color .25s;
    transform-origin: left top;
}

.field--icon label {
    left: 52px;
}

.field input:focus,
.field textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px var(--ring);
    background: var(--surface-2);
}

.field input:focus~label,
.field input:not(:placeholder-shown)~label,
.field textarea:focus~label,
.field textarea:not(:placeholder-shown)~label {
    transform: translateY(-12px);
    font-size: .76rem;
    color: var(--primary);
    font-weight: 700;
    letter-spacing: .02em;
}

.field__icon {
    position: absolute;
    left: 18px;
    top: 21px;
    color: var(--muted);
    font-size: 1.1rem;
    transition: color .25s;
}

.field:focus-within .field__icon {
    color: var(--primary);
}

.field__suffix {
    position: absolute;
    right: 18px;
    top: 22px;
    color: var(--muted);
    font-weight: 700;
}

.field__hint {
    display: block;
    margin: 7px 4px 0;
    color: var(--muted);
    font-size: .84rem;
}

.field.is-invalid input,
.field.is-invalid textarea {
    border-color: var(--rose);
    box-shadow: 0 0 0 4px rgba(251, 92, 124, .18);
}

.field.is-valid input {
    border-color: color-mix(in srgb, var(--mint) 55%, var(--border));
}

.smart-hint {
    margin-top: 12px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 14px;
    border-radius: 99px;
    background: var(--grad-soft);
    border: 1px dashed var(--primary);
    color: var(--text);
    font-size: .9rem;
    font-weight: 600;
    animation: pop .4s var(--ease-spring);
}

.smart-hint:hover {
    background: var(--surface-2);
}

.smart-hint svg {
    color: var(--primary);
}

.money-box {
    margin-top: 26px;
}

.money-words {
    display: block;
    min-height: 1.4em;
    margin: 6px 4px 0;
    font-size: .9rem;
    font-weight: 700;
    color: var(--primary);
}

/* ---------- Stepper ---------- */
.stepper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 10px 10px 18px;
    border-radius: var(--radius);
    background: var(--surface);
    border: 1.5px solid var(--border);
    margin-top: 14px;
    min-height: 64px;
}

.grid-2 .stepper {
    margin-top: 0;
}

.stepper__label {
    display: flex;
    gap: 10px;
    align-items: center;
    font-weight: 600;
    color: var(--text-2);
}

.stepper__label svg {
    color: var(--primary);
}

.stepper__ctrl {
    display: flex;
    align-items: center;
    gap: 4px;
}

.stepper__btn {
    width: 44px;
    height: 44px;
    border-radius: 13px;
    border: 1px solid var(--border);
    background: var(--surface-2);
    display: grid;
    place-items: center;
    transition: transform .2s var(--ease), background .2s;
}

.stepper__btn:hover {
    background: var(--grad);
    color: #fff;
    border-color: transparent;
}

.stepper__btn:active {
    transform: scale(.88);
}

.stepper input {
    width: 58px;
    text-align: center;
    background: none;
    border: 0;
    outline: 0;
    font-family: var(--font-display);
    font-size: 1.35rem;
    font-weight: 700;
    -moz-appearance: textfield;
    appearance: textfield;
}

.stepper input::-webkit-outer-spin-button,
.stepper input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.stepper input.tick {
    animation: tick .3s var(--ease-spring);
}

@keyframes tick {
    50% {
        transform: scale(1.3);
    }
}

/* ---------- Evet/Hayır segment ---------- */
.toggles {
    display: grid;
    gap: 10px;
    margin-top: 26px;
}

.toggle-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    padding: 10px 10px 10px 18px;
    border-radius: var(--radius);
    background: var(--surface);
    border: 1.5px solid var(--border);
    min-height: 64px;
}

.toggle-row__label {
    display: flex;
    gap: 10px;
    align-items: center;
    font-weight: 600;
    color: var(--text-2);
}

.toggle-row__label svg {
    color: var(--primary);
}

.seg {
    position: relative;
    display: inline-flex;
    padding: 4px;
    border-radius: 14px;
    background: var(--surface-2);
    border: 1px solid var(--border);
}

.seg label {
    position: relative;
    z-index: 1;
    cursor: pointer;
}

.seg input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.seg span {
    display: grid;
    place-items: center;
    min-width: 66px;
    height: 40px;
    padding: 0 10px;
    border-radius: 11px;
    font-weight: 700;
    font-size: .88rem;
    color: var(--muted);
    transition: color .3s;
    white-space: nowrap;
}

.seg input:checked+span {
    color: #fff;
}

.seg input:focus-visible+span {
    outline: 2px solid var(--ring);
}

.seg__thumb {
    position: absolute;
    top: 4px;
    bottom: 4px;
    left: 4px;
    width: 0;
    border-radius: 11px;
    background: var(--grad);
    transition: transform .45s var(--ease-spring), width .3s var(--ease), opacity .2s;
    opacity: 0;
    box-shadow: 0 6px 16px -6px rgba(91, 61, 255, .9);
}

.seg.has-value .seg__thumb {
    opacity: 1;
}

/* ---------- Combobox ---------- */
.combo {
    position: relative;
}

.combo__trigger {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 14px;
    min-height: 68px;
    padding: 10px 16px;
    text-align: left;
    border-radius: var(--radius);
    background: var(--surface);
    border: 1.5px solid var(--border);
    transition: border-color .25s, box-shadow .25s, background .25s, transform .25s var(--ease);
}

.combo__trigger:not(:disabled):hover {
    border-color: var(--border-strong);
    background: var(--surface-2);
}

.combo.is-open .combo__trigger {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px var(--ring);
}

.combo.is-disabled .combo__trigger {
    opacity: .5;
    cursor: not-allowed;
}

.combo.has-value .combo__trigger {
    border-color: color-mix(in srgb, var(--mint) 45%, var(--border));
}

.combo__icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    background: var(--surface-2);
    color: var(--primary);
    font-size: 1.1rem;
    flex-shrink: 0;
    transition: all .35s var(--ease-spring);
}

.combo.has-value .combo__icon {
    background: var(--grad);
    color: #fff;
}

.combo__text {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.combo__text small {
    font-size: .76rem;
    color: var(--muted);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
}

.combo__text b {
    font-size: 1.05rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: var(--muted);
    font-weight: 600;
}

.combo.has-value .combo__text b {
    color: var(--text);
    font-weight: 700;
}

.combo__chev {
    color: var(--muted);
    transition: transform .3s var(--ease);
}

.combo.is-open .combo__chev {
    transform: rotate(180deg);
}

.combo.is-loading .combo__chev {
    animation: spin .8s linear infinite;
}

.combo-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(5, 8, 20, 0.72);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 99998;
    opacity: 0;
    pointer-events: none;
    transition: opacity .25s var(--ease);
}

.combo-backdrop.show {
    opacity: 1;
    pointer-events: auto;
}

.combo__pop {
    position: absolute;
    z-index: 1001;
    left: 0;
    right: 0;
    top: calc(100% + 6px);
    background: var(--surface-solid);
    border: 1.5px solid var(--border-strong);
    border-radius: var(--radius);
    box-shadow: 0 24px 50px -12px rgba(0, 0, 0, .65);
    overflow: hidden;
    opacity: 0;
    transform: translateY(-8px) scale(.98);
    pointer-events: none;
    transition: opacity .25s, transform .3s var(--ease);
}

.combo.is-open .combo__pop,
.combo__pop.is-open {
    opacity: 1;
    transform: none;
    pointer-events: auto;
}

.combo.is-open {
    z-index: 1000;
}

.combo__search {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    border-bottom: 1px solid var(--border);
    color: var(--muted);
    background: var(--surface-2);
}

.combo__search input {
    flex: 1;
    background: none;
    border: 0;
    outline: 0;
    font-size: 1.02rem;
    height: 34px;
    color: var(--text);
}

.combo__list {
    list-style: none;
    margin: 0;
    padding: 6px;
    max-height: 270px;
    overflow-y: auto;
    overscroll-behavior: contain;
}

.combo__list li {
    padding: 12px 14px;
    border-radius: 11px;
    cursor: pointer;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.combo__item-label {
    flex: 1;
    min-width: 0;
    text-align: left;
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 0.95rem;
}

.combo__item-label mark {
    background: rgba(43, 89, 255, 0.22);
    color: #38bdf8;
    font-weight: 700;
    border-radius: 4px;
    padding: 1px 3px;
}

.combo__item-check {
    color: var(--primary);
    font-weight: 800;
    font-size: 1rem;
    flex-shrink: 0;
}

.combo__list li.is-active,
.combo__list li:hover {
    background: var(--surface-2);
}

.combo__list li.is-selected {
    color: var(--primary);
    font-weight: 700;
}

.combo__list .empty {
    color: var(--muted);
    cursor: default;
    justify-content: center;
}

.combo.is-invalid .combo__trigger {
    border-color: var(--rose);
    box-shadow: 0 0 0 4px rgba(251, 92, 124, .18);
}

/* ---------- Sekmeler ---------- */
.tabs {
    display: flex;
    gap: 6px;
    padding: 5px;
    border-radius: 16px;
    background: var(--surface);
    border: 1px solid var(--border);
    overflow-x: auto;
    scrollbar-width: none;
    margin-bottom: 20px;
}

.tabs::-webkit-scrollbar {
    display: none;
}

.tab {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 46px;
    padding: 0 14px;
    border-radius: 12px;
    border: 0;
    background: none;
    font-weight: 700;
    color: var(--muted);
    white-space: nowrap;
    transition: all .3s var(--ease);
}

.tab:hover {
    color: var(--text);
}

.tab.is-active {
    background: var(--surface-2);
    color: var(--text);
    box-shadow: 0 4px 14px -6px rgba(0, 0, 0, .3);
}

.tab em {
    font-style: normal;
    font-size: .75rem;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    border-radius: 99px;
    background: var(--grad);
    color: #fff;
    display: none;
    place-items: center;
}

.tab em.has {
    display: inline-grid;
    animation: pop .35s var(--ease-spring);
}

.tabpane {
    display: none;
}

.tabpane.is-active {
    display: block;
    animation: rise .45s var(--ease) both;
}

.tabpane .q__title {
    margin-top: 18px;
}

.tabpane .q__title:first-child {
    margin-top: 0;
}

/* ---------- Fotoğraf (Kompakt ve taşmayan) ---------- */
.dropzone {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 20px 16px;
    border-radius: var(--radius);
    border: 2px dashed var(--border-strong);
    background: var(--surface);
    cursor: pointer;
    text-align: center;
    transition: all .3s var(--ease);
}

.dropzone:hover,
.dropzone.is-over {
    border-color: var(--primary);
    background: var(--grad-soft);
    transform: scale(1.01);
}

.dropzone__icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    background: var(--grad);
    color: #fff;
    font-size: 1.35rem;
    margin-bottom: 4px;
    animation: floaty 3s ease-in-out infinite;
}

@keyframes floaty {
    50% {
        transform: translateY(-4px);
    }
}

.dropzone b {
    font-size: 0.96rem;
}

.dropzone small {
    color: var(--muted);
    font-size: 0.82rem;
}

.field--area textarea {
    min-height: 78px;
    height: 86px;
}

.thumbs {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 8px;
    margin: 12px 0 16px;
}

.thumb {
    position: relative;
    aspect-ratio: 1;
    border-radius: 12px;
    overflow: hidden;
    animation: pop .4s var(--ease-spring) both;
    border: 1px solid var(--border);
}

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

.thumb button {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 0;
    background: rgba(0, 0, 0, .7);
    color: #fff;
    display: grid;
    place-items: center;
    font-size: .75rem;
}

.thumb button:hover {
    background: var(--rose);
}

/* ---------- Onay ---------- */
.consent {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    margin-top: 22px;
    padding: 14px;
    border-radius: var(--radius);
    background: var(--surface);
    border: 1.5px solid var(--border);
    cursor: pointer;
    font-size: .91rem;
    color: var(--text-2);
}

.consent input {
    position: absolute;
    opacity: 0;
}

.consent__box {
    width: 24px;
    height: 24px;
    border-radius: 7px;
    border: 2px solid var(--border-strong);
    flex-shrink: 0;
    display: grid;
    place-items: center;
    color: transparent;
    transition: all .3s var(--ease-spring);
}

.consent input:checked+.consent__box {
    background: var(--grad);
    border-color: transparent;
    color: #fff;
    transform: scale(1.08);
}

.consent input:focus-visible+.consent__box {
    outline: 3px solid var(--ring);
}

.consent.is-invalid {
    border-color: var(--rose);
}

.hp {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    opacity: 0;
}

/* ---------- Özet (Kompakt ve ekran taşmayan) ---------- */
.review {
    display: grid;
    gap: 10px;
}

.review__sec {
    border-radius: 16px;
    background: var(--surface);
    border: 1px solid var(--border);
    overflow: hidden;
    animation: rise .45s var(--ease) both;
}

.review__head {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 14px;
    background: var(--surface-2);
    border: 0;
    font-weight: 700;
    text-align: left;
    cursor: pointer;
}

.review__head span {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.92rem;
    color: var(--text);
}

.review__head span svg {
    color: var(--primary);
}

.review__head em {
    font-style: normal;
    font-size: .78rem;
    color: var(--primary);
    display: inline-flex;
    gap: 4px;
    align-items: center;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 6px;
    background: var(--grad-soft);
}

.review__rows {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1px;
    background: var(--border);
}

.review__rows div {
    background: var(--surface-solid);
    padding: 8px 12px;
}

[data-theme="dark"] .review__rows div {
    background: color-mix(in srgb, var(--bg-2) 94%, white 2%);
}

.review__rows small {
    display: block;
    color: var(--muted);
    font-size: .72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .04em;
    margin-bottom: 2px;
}

.review__rows b {
    font-size: .88rem;
    font-weight: 700;
    word-break: break-word;
    color: var(--text);
}

/* ---------- Sabit Alt Navigasyon Barı (Viewport Sabit) ---------- */
.bottom-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 900;
    margin: 0;
    padding: 12px max(16px, calc((100vw - 1160px) / 2)) calc(14px + env(safe-area-inset-bottom));
    background: color-mix(in srgb, var(--bg) 90%, transparent);
    backdrop-filter: blur(24px) saturate(1.6);
    -webkit-backdrop-filter: blur(24px) saturate(1.6);
    border-top: 1px solid var(--border-strong);
    box-shadow: 0 -10px 35px rgba(0, 0, 0, 0.55);
    display: flex;
    box-sizing: border-box;
}

.bottom-bar[hidden] {
    display: none !important;
}

.bottom-bar__inner {
    width: min(1200px, 100%);
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.bottom-bar #btn-prev {
    min-width: 110px;
    height: 50px;
    border-radius: 14px;
    flex-shrink: 0;
}

.bottom-bar #btn-next {
    min-width: 190px;
    height: 50px;
    border-radius: 14px;
    margin-left: auto;
}

.btn--return-review {
    background: linear-gradient(135deg, #10e3a5 0%, #22d3ee 100%) !important;
    color: #062419 !important;
    box-shadow: 0 10px 28px -8px rgba(16, 227, 165, 0.7) !important;
    font-weight: 800 !important;
}

kbd {
    font-family: var(--font);
    font-size: .75rem;
    padding: 2px 7px;
    border-radius: 6px;
    border: 1px solid var(--border-strong);
    background: var(--surface-2);
}

/* ---------- Başarı ---------- */
.success-screen {
    display: grid;
    place-items: center;
    min-height: 70vh;
}

.success__card {
    width: min(560px, 100%);
    text-align: center;
    padding: clamp(28px, 5vw, 48px);
    border-radius: var(--radius-lg);
    background: var(--surface);
    border: 1px solid var(--border);
    backdrop-filter: blur(22px);
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    animation: rise .7s var(--ease) both;
}

.success__check {
    width: 96px;
    height: 96px;
}

.success__check circle {
    fill: none;
    stroke: var(--mint);
    stroke-width: 2.5;
    stroke-dasharray: 151;
    stroke-dashoffset: 151;
    animation: draw .8s var(--ease) .1s forwards;
}

.success__check path {
    fill: none;
    stroke: var(--mint);
    stroke-width: 3.5;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-dasharray: 40;
    stroke-dashoffset: 40;
    animation: draw .5s var(--ease) .8s forwards;
}

@keyframes draw {
    to {
        stroke-dashoffset: 0;
    }
}

.success-screen h2 {
    font-size: clamp(1.8rem, 4vw, 2.4rem);
}

.success__ref {
    margin: 0;
    color: var(--muted);
}

.success__ref b {
    font-family: var(--font-display);
    font-size: 1.15rem;
    color: var(--text);
    letter-spacing: .06em;
    padding: 3px 10px;
    border-radius: 8px;
    background: var(--surface-2);
}

.success__lead {
    margin: 4px 0 10px;
    color: var(--text-2);
}

.success__card .btn {
    width: 100%;
}

.success__next {
    list-style: none;
    padding: 18px 0 0;
    margin: 10px 0 0;
    border-top: 1px dashed var(--border-strong);
    width: 100%;
    display: grid;
    gap: 10px;
    text-align: left;
}

.success__next li {
    display: flex;
    gap: 10px;
    align-items: center;
    color: var(--text-2);
    font-size: .94rem;
}

.success__next svg {
    color: var(--mint);
}

.btn--wa {
    animation: waPulse 2.2s infinite;
}

@keyframes waPulse {

    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, .55);
    }

    60% {
        box-shadow: 0 0 0 14px rgba(37, 211, 102, 0);
    }
}

/* ---------- Modal & Toast ---------- */
.modal {
    border: 0;
    padding: 0;
    background: transparent;
    color: var(--text);
    width: min(560px, calc(100vw - 24px));
    max-width: calc(100vw - 24px);
    margin: auto;
}

.modal::backdrop {
    background: rgba(4, 6, 16, .7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.modal[open] {
    animation: rise .35s var(--ease);
}

.modal__body {
    padding: clamp(20px, 4vw, 32px);
    border-radius: var(--radius-lg);
    background: var(--surface-solid);
    border: 1px solid var(--border-strong);
    box-shadow: 0 25px 60px -15px rgba(0, 0, 0, .8);
}

.modal__body p {
    color: var(--text-2);
}

/* Modern Top-Floating Dynamic Island / iOS Banner Toast */
.toast {
    position: fixed;
    top: 68px;
    left: 50%;
    transform: translate(-50%, -150%);
    z-index: 100000;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 10px 18px 10px 12px;
    border-radius: 16px;
    background: rgba(14, 18, 36, 0.94);
    border: 1px solid rgba(255, 255, 255, 0.14);
    box-shadow: 0 16px 40px -8px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(24px) saturate(1.5);
    -webkit-backdrop-filter: blur(24px) saturate(1.5);
    max-width: min(460px, calc(100vw - 32px));
    width: auto;
    white-space: normal;
    pointer-events: none;
    opacity: 0;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.25s ease;
}

[data-theme="light"] .toast {
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 16px 40px -8px rgba(20, 30, 60, 0.22);
}

.toast.show {
    transform: translate(-50%, 0);
    opacity: 1;
    pointer-events: auto;
}

.toast__icon {
    width: 32px;
    height: 32px;
    border-radius: 10px;
    display: grid;
    place-items: center;
    flex-shrink: 0;
    font-size: 1.05rem;
}

.toast--success .toast__icon {
    background: linear-gradient(135deg, rgba(16, 227, 165, 0.25), rgba(34, 211, 238, 0.25));
    color: #10e3a5;
    border: 1px solid rgba(16, 227, 165, 0.35);
}

.toast--error .toast__icon {
    background: linear-gradient(135deg, rgba(251, 92, 124, 0.25), rgba(255, 100, 100, 0.25));
    color: #fb5c7c;
    border: 1px solid rgba(251, 92, 124, 0.35);
}

.toast--info .toast__icon {
    background: linear-gradient(135deg, rgba(124, 92, 255, 0.25), rgba(79, 139, 255, 0.25));
    color: #8b6dff;
    border: 1px solid rgba(124, 92, 255, 0.35);
}

.toast__content {
    font-size: 0.92rem;
    font-weight: 600;
    line-height: 1.4;
    color: var(--text);
    text-align: left;
}

/* ---------- Duyarlı (Mobil Uygulama Mimarisi) ---------- */
@media (max-width: 980px) {
    .wizard {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .preview {
        display: none !important;
    }
}

@media (max-width: 768px) {
    .shell {
        padding-top: calc(85px + env(safe-area-inset-top)) !important;
        padding-bottom: calc(96px + env(safe-area-inset-bottom)) !important;
    }

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

    .choice-grid {
        --cols: 2 !important;
    }

    .choice-grid--lg {
        --cols: 1 !important;
    }

    .choice-grid--lg .choice-card__body {
        flex-direction: row;
        text-align: left;
        min-height: 0;
        padding: 18px 16px;
    }

    .choice-grid--lg .choice-card__icon {
        width: 50px;
        height: 50px;
        font-size: 1.4rem;
    }

    .choice-grid--md .choice-card__body {
        padding: 14px 12px;
    }

    [data-group="purpose"] {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    .grid-2,
    .grid-3,
    .grid-m2 {
        grid-template-columns: 1fr !important;
    }

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

    .panel {
        padding: 18px 14px 28px;
        border-radius: 20px;
        min-height: 0;
    }

    /* Sabit Alt Bar (Mobile App Bottom Navigation) */
    .bottom-bar {
        padding: 10px 14px calc(14px + env(safe-area-inset-bottom)) !important;
    }

    .bottom-bar #btn-prev {
        min-width: 80px !important;
        flex: 0 0 auto !important;
        height: 48px !important;
        border-radius: 14px !important;
    }

    .bottom-bar #btn-next {
        flex: 1 !important;
        min-width: 0 !important;
        height: 48px !important;
        border-radius: 14px !important;
    }

    /* Mobilde Daha Geniş Modal ve Bildirim */
    .modal {
        width: calc(100vw - 20px) !important;
        max-width: calc(100vw - 20px) !important;
    }

    .modal__body {
        padding: 22px 18px !important;
        border-radius: 20px !important;
    }

    .toast {
        width: calc(100vw - 24px) !important;
        max-width: calc(100vw - 24px) !important;
        padding: 12px 16px !important;
    }

    /* Mobilde Açılır Listeler İçin Kayar Alt Sayfa (Bottom Sheet) */
    .combo__pop.is-open {
        position: fixed !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        top: auto !important;
        width: 100% !important;
        max-width: 100% !important;
        border-radius: 26px 26px 0 0 !important;
        max-height: 75vh !important;
        z-index: 99999 !important;
        box-shadow: 0 -16px 50px rgba(0, 0, 0, .85) !important;
        animation: sheetSlideUp .3s cubic-bezier(0.16, 1, 0.3, 1) both;
        display: flex !important;
        flex-direction: column !important;
        padding-bottom: max(16px, env(safe-area-inset-bottom));
        border-bottom: 0 !important;
    }

    .combo__pop.is-open::before {
        content: '';
        display: block;
        width: 40px;
        height: 5px;
        border-radius: 99px;
        background: var(--border-strong);
        margin: 10px auto 6px;
        flex-shrink: 0;
    }

    .combo__pop .combo__list {
        max-height: 52vh !important;
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch !important;
    }

    @keyframes sheetSlideUp {
        from {
            transform: translateY(100%);
        }

        to {
            transform: translateY(0);
        }
    }

    .toggle-row {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
        padding: 14px 14px;
    }

    .toggle-row__label {
        font-size: .95rem;
    }

    .seg {
        width: 100%;
        display: flex;
    }

    .seg label {
        flex: 1;
    }

    .seg span {
        width: 100%;
        min-width: 0;
        padding: 0 4px;
        font-size: .84rem;
    }

    .topbar {
        padding: 10px 14px;
    }

    .brand {
        font-size: 1.15rem;
    }

    .chips {
        gap: 8px;
    }

    .chip span {
        min-height: 42px;
        padding: 0 14px;
        font-size: .88rem;
        max-width: 100%;
    }

    .toast {
        top: 62px;
    }
}

@media (max-width: 380px) {
    .choice-grid--sm {
        --cols: 1 !important;
    }

    .seg span {
        font-size: .78rem;
    }
}

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: .01ms !important;
        transition-duration: .01ms !important;
    }
}