:root {
    --bg: #f5f5f7;
    --surface: #ffffff;
    --text: #1d1d1f;
    --text-2: #6e6e73;
    --text-3: #86868b;
    --border: #d2d2d7;
    --separator: rgba(60, 60, 67, .14);
    --fill: rgba(118, 118, 128, .12);
    --fill-2: rgba(118, 118, 128, .2);
    --blue: #0071e3;
    --blue-hover: #0077ed;
    --link: #0066cc;
    --orange: #bf4800;
    --green: #34c759;
    --red: #e30000;
    --focus: 0 0 0 4px rgba(0, 125, 250, .35);
    --radius: 18px;
    --shadow: 2px 4px 12px rgba(0, 0, 0, .08);
    --ease: cubic-bezier(0, 0, .5, 1);
    --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 68px; }
body {
    margin: 0;
    display: flex; flex-direction: column; min-height: 100vh; min-height: 100svh;
    font-family: var(--font);
    font-size: 17px;
    line-height: 1.47;
    letter-spacing: -.022em;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
body > main { flex: 1 0 auto; }
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }
svg { flex: none; }
[hidden] { display: none !important; }
::selection { background: rgba(0, 113, 227, .2); }
button { font-family: inherit; }

.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 22px; }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    min-height: 36px; padding: 0 18px;
    border: 0; border-radius: 980px;
    font: 400 15px/1 var(--font); letter-spacing: -.01em;
    cursor: pointer; white-space: nowrap; text-decoration: none !important;
    transition: background-color .2s var(--ease), color .2s var(--ease), opacity .2s;
}
.btn-sm { min-height: 30px; padding: 0 14px; font-size: 14px; }
.btn-lg { min-height: 48px; padding: 0 22px; font-size: 17px; }
.btn-block { width: 100%; }
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-hover); }
.btn-primary:active { background: #006edb; }
.btn-secondary { background: #e8e8ed; color: var(--text); }
.btn-secondary:hover { background: #dedee3; }
.btn-plain { padding: 0; border: 0; background: transparent; color: var(--link); font: 400 14px var(--font); letter-spacing: -.01em; cursor: pointer; }
.btn-plain:hover { text-decoration: underline; }
.btn:focus-visible, .btn-plain:focus-visible, .segmented button:focus-visible { outline: 0; box-shadow: var(--focus); }

/* ---------- Navigation bar ---------- */
.topbar {
    position: sticky; top: 0; z-index: 50;
    background: rgba(251, 251, 253, .8);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 1px solid rgba(0, 0, 0, .16);
}
.topbar-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 52px; padding: 0 28px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--text); text-decoration: none !important; min-width: 0; }
.brand-text { display: flex; align-items: center; min-width: 0; padding-left: 12px; border-left: 1px solid rgba(0, 0, 0, .14); white-space: nowrap; }
.brand-text small { font-size: 14px; color: var(--text-2); letter-spacing: -.01em; overflow: hidden; text-overflow: ellipsis; }
.logo-full { width: auto; height: 32px; }
.topbar .btn-sm { min-height: 36px; padding: 0 18px; font-size: 15px; }

/* ---------- Hero ---------- */
.hero { padding: 48px 0 36px; text-align: center; }
.eyebrow { margin: 0 0 4px; font-size: 14px; font-weight: 600; letter-spacing: .011em; color: var(--orange); }
.hero h1 { margin: 0; font-size: clamp(32px, 4.4vw, 48px); line-height: 1.08; font-weight: 600; letter-spacing: -.003em; }
.lead {
    max-width: 540px; margin: 10px auto 0;
    font-size: 17px; line-height: 1.47; letter-spacing: -.022em; color: var(--text-2);
}

/* ---------- Segmented control ---------- */
.segmented {
    display: inline-flex; gap: 2px; padding: 2px; max-width: 100%;
    background: var(--fill); border-radius: 9px;
    overflow-x: auto; scrollbar-width: none;
}
.segmented::-webkit-scrollbar { display: none; }
.segmented button, .seg-radio span {
    flex: none; display: inline-flex; align-items: center; justify-content: center; gap: 6px;
    height: 30px; padding: 0 14px; border: 0; border-radius: 7px;
    background: transparent; color: var(--text);
    font: 500 13px var(--font); letter-spacing: -.01em; cursor: pointer; white-space: nowrap;
    transition: background-color .2s var(--ease), box-shadow .2s var(--ease);
}
.segmented button:hover:not(.active), .seg-radio label:hover input:not(:checked) + span { background: rgba(118, 118, 128, .1); }
.segmented button.active, .seg-radio input:checked + span {
    background: #fff;
    box-shadow: 0 3px 8px rgba(0, 0, 0, .12), 0 3px 1px rgba(0, 0, 0, .04);
}
.seg-radio label { display: flex; }
.seg-radio input { position: absolute; opacity: 0; pointer-events: none; }
.seg-radio input:focus-visible + span { box-shadow: var(--focus); }

.mode-switch { margin-top: 28px; padding: 3px; border-radius: 11px; }
.mode-switch button { height: 36px; padding: 0 20px; font-size: 14px; border-radius: 8px; }
.mode-switch button svg { color: var(--text-2); }
.mode-switch button.active svg { color: var(--blue); }

/* ---------- Calculator layout ---------- */
.calc {
    display: grid; grid-template-columns: minmax(0, 1fr) 372px; gap: 56px;
    align-items: start; padding-bottom: 96px;
}
.config { min-width: 0; }

.step { padding: 36px 0; border-top: 1px solid var(--separator); }
.config > div:first-child > .step:first-child { border-top: 0; padding-top: 8px; }
.step-title { margin: 0 0 20px; font-size: 24px; line-height: 1.17; font-weight: 600; letter-spacing: .009em; }
.step-title span { color: var(--text-3); }

/* Selection tiles (Apple Store configurator) */
.tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.tiles-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.tile {
    position: relative; display: flex; align-items: center; gap: 14px;
    min-height: 76px; padding: 14px 16px;
    background: var(--surface); border: 1px solid var(--border); border-radius: 12px;
    cursor: pointer; user-select: none; -webkit-tap-highlight-color: transparent;
    transition: border-color .2s var(--ease), box-shadow .2s var(--ease), opacity .2s;
}
.tile input { position: absolute; opacity: 0; pointer-events: none; }
.tile:hover { border-color: var(--text-3); }
.tile:has(input:checked) { border-color: var(--blue); box-shadow: 0 0 0 1px var(--blue); }
.tile:has(input:focus-visible) { box-shadow: 0 0 0 1px var(--blue), var(--focus); }
.tile:has(input:disabled) { opacity: .38; cursor: not-allowed; border-color: var(--border); }
.tile-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.tile-body strong { font-size: 16px; line-height: 1.25; font-weight: 600; letter-spacing: -.02em; }
.tile-body small { font-size: 13px; line-height: 1.35; color: var(--text-2); letter-spacing: -.01em; }
.tile-price { flex: none; display: flex; flex-direction: column; align-items: flex-end; font-size: 14px; line-height: 1.25; color: var(--text); letter-spacing: -.016em; font-variant-numeric: tabular-nums; text-align: right; }
.tile-price small { font-size: 12px; color: var(--text-3); }
.tile-stack { flex-direction: column; align-items: flex-start; gap: 10px; }
.tile-stack .tile-price { align-items: flex-start; flex-direction: row; gap: 3px; align-items: baseline; color: var(--text-2); font-size: 13px; }

.swatch {
    flex: none; width: 40px; height: 40px; border-radius: 9px;
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .1), 0 1px 2px rgba(0, 0, 0, .06);
}
.tile-icon {
    flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px;
    background: #f2f2f7; color: var(--text-2);
    transition: background-color .2s, color .2s;
}
.tile:has(input:checked) .tile-icon { background: rgba(0, 113, 227, .1); color: var(--blue); }

.area-icon {
    flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 9px;
    background: #f2f2f7; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .06);
}
.area-icon i { display: block; border-radius: 2px; background: linear-gradient(135deg, #00aeef, #ec008c 55%, #fff200); }
.area-s i { width: 9px; height: 9px; }
.area-m i { width: 16px; height: 16px; }
.area-l i { width: 24px; height: 24px; }
.area-xl i { width: 32px; height: 32px; }

/* Grouped list (iOS Settings) */
.sg-group { background: var(--surface); border-radius: 12px; overflow: hidden; }
.sg-group > * { position: relative; margin: 0; }
.sg-group > * + *::before {
    content: ""; position: absolute; z-index: 1; top: 0; left: 16px; right: 0;
    height: 1px; transform: scaleY(.5); transform-origin: top; background: rgba(60, 60, 67, .36);
}
.sg-spaced { margin-top: 16px; }
.sg-row {
    display: flex; align-items: center; gap: 12px; width: 100%;
    min-height: 50px; padding: 6px 16px;
    border: 0; background: transparent; color: var(--text);
    font: 400 16px/1.25 var(--font); letter-spacing: -.02em; text-align: left;
}
.sg-label { flex: 1; min-width: 0; }
.sg-input {
    width: 110px; height: 38px; padding: 0; margin: 0;
    border: 0; outline: 0; background: transparent; color: var(--text);
    font: inherit; letter-spacing: inherit; text-align: right; font-variant-numeric: tabular-nums;
}
.sg-unit { flex: none; width: 22px; color: var(--text-3); }
.sg-row:focus-within:not(.sg-switch) { background: #fafafc; }
.sg-value { flex: none; color: var(--text-2); font-size: 15px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.sg-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; padding: 6px 0; }
.sg-text strong { font-weight: 400; }
.sg-text small { font-size: 13px; line-height: 1.3; color: var(--text-2); letter-spacing: -.01em; }
.sg-row .segmented { margin-left: auto; }
.sg-action { color: var(--link); cursor: pointer; gap: 10px; transition: background-color .15s; font-size: 15px; }
.sg-action:hover { background: #f7f7f9; }
.sg-action:active { background: #ececf0; }
.sg-action:focus-visible { outline: 0; box-shadow: inset var(--focus); }
.sg-footer { margin: 8px 0 0; padding: 0 16px; font-size: 13px; line-height: 1.38; color: var(--text-2); letter-spacing: -.01em; }

.sg-switch { cursor: pointer; }
.sg-switch input { position: absolute; opacity: 0; pointer-events: none; }
.switch-ui { flex: none; position: relative; width: 51px; height: 31px; border-radius: 999px; background: #e9e9ea; transition: background-color .25s var(--ease); }
.switch-ui::after {
    content: ""; position: absolute; top: 2px; left: 2px; width: 27px; height: 27px; border-radius: 50%;
    background: #fff; box-shadow: 0 3px 8px rgba(0, 0, 0, .15), 0 3px 1px rgba(0, 0, 0, .06);
    transition: transform .25s var(--ease);
}
input:checked + .switch-ui { background: var(--green); }
input:checked + .switch-ui::after { transform: translateX(20px); }
input:focus-visible + .switch-ui { box-shadow: var(--focus); }
.sg-switch:has(input:disabled) { cursor: not-allowed; }
.sg-switch:has(input:disabled) .sg-label, .sg-switch:has(input:disabled) .switch-ui { opacity: .4; }

/* Stepper */
.stepper { flex: none; display: inline-flex; align-items: center; padding: 2px; background: var(--fill); border-radius: 9px; }
.stepper button {
    display: grid; place-items: center; width: 34px; height: 30px; padding: 0; border: 0; border-radius: 7px;
    background: transparent; color: var(--text); font: 400 20px/1 var(--font); cursor: pointer;
    transition: background-color .15s, box-shadow .15s;
}
.stepper button:hover { background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .1); }
.stepper button:active { background: #f2f2f7; }
.stepper button:focus-visible { outline: 0; box-shadow: var(--focus); }
.stepper input {
    width: 72px; height: 30px; padding: 0; border: 0; outline: 0; background: transparent;
    font: 500 16px var(--font); text-align: center; color: var(--text); font-variant-numeric: tabular-nums;
}

/* Size preview */
.size-layout { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 16px; align-items: start; }
.sp {
    display: flex; flex-direction: column; align-items: center;
    padding: 18px 18px 16px; background: var(--surface); border-radius: 12px;
}
.sp-stage {
    width: 100%; height: 190px; display: grid; place-items: center; border-radius: 8px; overflow: hidden;
    background: repeating-conic-gradient(#f3f3f6 0 25%, #fff 0 50%) 0 0 / 16px 16px;
}
.sp-rect {
    position: relative; width: 120px; height: 160px;
    transition: width .45s var(--ease), height .45s var(--ease);
}
/* Baskı bitince levha aşağı kayıp sahneden çıkar, yenisi üstten gelir: 50% + 100px her ölçüde sahne dışına taşır */
.sp-sheet {
    position: absolute; inset: 0; border-radius: 3px; overflow: hidden;
    box-shadow: 0 8px 22px rgba(0, 0, 0, .14), inset 0 0 0 1px rgba(0, 0, 0, .08);
    transition: background .3s;
    animation: sp-feed 10s linear infinite;
}
@keyframes sp-feed {
    0%, 84% { transform: translateY(0); animation-timing-function: cubic-bezier(.55, 0, .8, .4); }
    91% { transform: translateY(calc(50% + 100px)); animation-timing-function: step-end; }
    91.01% { transform: translateY(calc(-50% - 100px)); animation-timing-function: cubic-bezier(.2, .6, .35, 1); }
    99%, 100% { transform: translateY(0); }
}
/* Grafik 4 bantta basılır: --p1…--p4 her bandın basılan yüzdesi (1 ve 3 soldan sağa, 2 ve 4 sağdan sola) */
@property --p1 { syntax: '<number>'; inherits: false; initial-value: 100; }
@property --p2 { syntax: '<number>'; inherits: false; initial-value: 100; }
@property --p3 { syntax: '<number>'; inherits: false; initial-value: 100; }
@property --p4 { syntax: '<number>'; inherits: false; initial-value: 100; }
.sp-art {
    position: absolute; inset: 16%; border-radius: 4px; opacity: .9;
    background:
        radial-gradient(circle at 30% 35%, rgba(0, 174, 239, .9), transparent 58%),
        radial-gradient(circle at 72% 38%, rgba(236, 0, 140, .85), transparent 58%),
        radial-gradient(circle at 50% 78%, rgba(255, 230, 0, .95), transparent 58%);
    clip-path: polygon(
        0 0, 0 25%,
        calc(100% - var(--p2) * 1%) 25%, calc(100% - var(--p2) * 1%) 50%,
        0 50%, 0 75%,
        calc(100% - var(--p4) * 1%) 75%, calc(100% - var(--p4) * 1%) 100%,
        100% 100%, 100% 75%,
        calc(var(--p3) * 1%) 75%, calc(var(--p3) * 1%) 50%,
        100% 50%, 100% 25%,
        calc(var(--p1) * 1%) 25%, calc(var(--p1) * 1%) 0
    );
    animation: sp-print 10s ease-in-out infinite;
}
.sp-gantry {
    position: absolute; left: 0; right: 0; top: 24.5%; height: 4px; margin-top: -2px;
    background: rgba(29, 29, 31, .5); animation: sp-gantry 10s ease-in-out infinite;
}
.sp-head {
    position: absolute; top: 50%; left: 16%; width: 10px; height: 14px; margin: -7px 0 0 -5px;
    border-radius: 3px; background: #1d1d1f;
    animation: sp-head 10s ease-in-out infinite, sp-glow 10s linear infinite;
}
@keyframes sp-head {
    0%, 4% { left: 16%; }
    20%, 24% { left: 84%; }
    40%, 44% { left: 16%; }
    60%, 64% { left: 84%; }
    80%, 100% { left: 16%; }
}
@keyframes sp-gantry {
    0%, 20% { top: 24.5%; }
    24%, 40% { top: 41.5%; }
    44%, 60% { top: 58.5%; }
    64%, 80% { top: 75.5%; }
    87%, 100% { top: 24.5%; }
}
@keyframes sp-print {
    0%, 4% { --p1: 0; --p2: 0; --p3: 0; --p4: 0; }
    20%, 24% { --p1: 100; --p2: 0; --p3: 0; --p4: 0; }
    40%, 44% { --p1: 100; --p2: 100; --p3: 0; --p4: 0; }
    60%, 64% { --p1: 100; --p2: 100; --p3: 100; --p4: 0; }
    80%, 90.99% { --p1: 100; --p2: 100; --p3: 100; --p4: 100; }
    91%, 100% { --p1: 0; --p2: 0; --p3: 0; --p4: 0; }
}
@keyframes sp-glow {
    0%, 3% { box-shadow: 0 0 10px 4px rgba(123, 97, 255, 0); }
    5%, 79% { box-shadow: 0 0 10px 4px rgba(123, 97, 255, .6); }
    82%, 100% { box-shadow: 0 0 10px 4px rgba(123, 97, 255, 0); }
}
.sp-dim { margin: 14px 0 0; font-size: 15px; font-weight: 600; letter-spacing: -.016em; font-variant-numeric: tabular-nums; }
.sp-area { margin: 0; font-size: 13px; color: var(--text-2); letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.presets { display: flex; margin-bottom: 12px; }
.presets .chip.active { background: #fff; box-shadow: 0 3px 8px rgba(0, 0, 0, .12), 0 3px 1px rgba(0, 0, 0, .04); }

/* Quantity tiers */
.tiers { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; padding: 0 2px; }
.tier {
    display: inline-flex; align-items: center; gap: 5px; height: 28px; padding: 0 12px; border-radius: 980px;
    background: var(--fill); color: var(--text-2); font-size: 13px; letter-spacing: -.01em;
    transition: background-color .25s var(--ease), color .25s var(--ease);
}
.tier b { font-weight: 600; color: var(--text); transition: color .25s; }
.tier.active { background: rgba(0, 113, 227, .1); color: var(--blue); }
.tier.active b { color: var(--blue); }

/* ---------- Summary ---------- */
.summary { position: sticky; top: 76px; display: flex; flex-direction: column; gap: 16px; }
.summary-card, .spec-card { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); }
.summary-card { padding: 28px 26px 22px; }
.sum-eyebrow { margin: 0; font-size: 14px; font-weight: 600; color: var(--text-2); letter-spacing: -.01em; }
.sum-total {
    margin: 2px 0 0; font-size: 40px; line-height: 1.1; font-weight: 600; letter-spacing: -.01em;
    font-variant-numeric: tabular-nums; white-space: nowrap;
}
.sum-sub { margin: 4px 0 0; font-size: 14px; color: var(--text-2); letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.vat-toggle { display: flex; margin: 18px 0 4px; }
.vat-toggle button { flex: 1; }

.alert { display: flex; gap: 8px; padding: 10px 12px; border-radius: 10px; margin-top: 12px; font-size: 13px; line-height: 1.38; letter-spacing: -.01em; }
.alert svg { flex: none; margin-top: 1px; }
.alert-warn { background: #fff7e6; color: #8a5300; }

.sum-lines { margin: 18px 0 0; }
.sum-line { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; padding: 9px 0; font-size: 14px; letter-spacing: -.016em; }
.sum-line + .sum-line { border-top: 1px solid var(--separator); }
.sum-line dt { min-width: 0; }
.sum-line dt small { display: block; margin-top: 1px; font-size: 12px; color: var(--text-3); letter-spacing: -.005em; }
.sum-line dd { margin: 0; flex: none; font-variant-numeric: tabular-nums; }
.sum-line.is-discount dd { color: #1b8a3a; }
.sum-line.is-sub { margin-top: 6px; border-top-color: var(--border); }
.sum-line.is-sub dt, .sum-line.is-sub dd { color: var(--text-2); }
.sum-line.is-total { font-size: 17px; font-weight: 600; letter-spacing: -.022em; }

.sum-actions { display: flex; flex-direction: column; gap: 10px; margin-top: 20px; }
.sum-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.sum-btns .btn { min-height: 40px; padding: 0 12px; font-size: 14px; }
.sum-note { margin: 14px 0 0; font-size: 12px; line-height: 1.4; color: var(--text-3); letter-spacing: -.005em; text-align: center; }

.spec-card { padding: 18px 22px 10px; }
.spec-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 6px; }
.spec-head h3 { margin: 0; font-size: 17px; font-weight: 600; letter-spacing: -.022em; }
.spec { margin: 0; }
.spec div { display: flex; justify-content: space-between; gap: 16px; padding: 8px 0; font-size: 13px; letter-spacing: -.01em; }
.spec div + div { border-top: 1px solid var(--separator); }
.spec dt { flex: none; color: var(--text-2); }
.spec dd { margin: 0; min-width: 0; text-align: right; }

.print-head, .print-foot { display: none; }

/* Mobile price bar */
.mobile-bar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
    display: none; align-items: center; justify-content: space-between; gap: 12px;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
    background: rgba(251, 251, 253, .86);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border-top: 1px solid rgba(0, 0, 0, .12);
    transition: transform .35s var(--ease);
}
.mobile-bar.is-hidden { transform: translateY(110%); }
.mb-text { display: flex; flex-direction: column; min-width: 0; line-height: 1.2; }
.mb-text small { font-size: 12px; color: var(--text-2); letter-spacing: -.01em; }
.mb-text strong { font-size: 20px; font-weight: 600; letter-spacing: -.016em; font-variant-numeric: tabular-nums; }

/* Toast */
.toast {
    position: fixed; left: 50%; bottom: 32px; z-index: 60;
    padding: 10px 18px; border-radius: 980px;
    background: rgba(29, 29, 31, .92); color: #fff; font-size: 14px; letter-spacing: -.01em;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .2);
    transform: translateX(-50%); animation: toast-in .3s var(--ease);
}
@keyframes toast-in { from { opacity: 0; transform: translate(-50%, 10px); } }

.footer { border-top: 1px solid var(--border); padding: 18px 0 22px; font-size: 12px; line-height: 1.33; color: var(--text-2); letter-spacing: -.01em; }
.footer-inner { display: flex; justify-content: space-between; gap: 8px 24px; flex-wrap: wrap; }
.noscript { position: fixed; inset: auto 0 0; padding: 14px; background: #fff7e6; color: #8a5300; text-align: center; font-size: 14px; }

/* ---------- Common pieces ---------- */
.muted { color: var(--text-2); }
code { font: 13px "SF Mono", SFMono-Regular, Menlo, monospace; background: var(--fill); padding: 1px 6px; border-radius: 6px; letter-spacing: 0; }
.topbar-actions { display: flex; align-items: center; gap: 6px; }
.topbar-actions form { margin: 0; }
.topbar-actions .btn-plain { padding: 0 8px; min-height: 34px; }
.user-chip {
    display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 10px 0 3px; border-radius: 980px;
    color: var(--text); font-size: 14px; letter-spacing: -.01em; text-decoration: none !important;
    transition: background-color .2s var(--ease);
}
.user-chip:hover, .user-chip.active { background: var(--fill); }
.user-chip-name { max-width: 160px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.avatar {
    flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
    background: linear-gradient(180deg, #a5abb8, #858994); color: #fff;
    font-size: 16px; font-weight: 500; letter-spacing: .02em; text-decoration: none !important;
}
.avatar-xs { width: 28px; height: 28px; font-size: 11px; }
.avatar-lg { width: 84px; height: 84px; margin: 0 auto 14px; font-size: 32px; }
.link-more { display: inline-flex; align-items: center; gap: 6px; font-size: 17px; color: var(--link); }
.link-more svg { width: 7px; height: 11px; transition: transform .2s var(--ease); }
.link-more:hover svg { transform: translateX(2px); }
.link-lg { font-size: 19px; }
.icon-btn {
    display: inline-grid; place-items: center; width: 30px; height: 30px; padding: 0; border-radius: 50%; border: 0;
    background: var(--fill); color: var(--text); cursor: pointer; transition: background-color .2s var(--ease), opacity .2s;
}
.icon-btn:hover { background: var(--fill-2); }
.icon-btn:disabled { opacity: .3; pointer-events: none; }
.icon-btn:focus-visible { outline: 0; box-shadow: var(--focus); }
.btn-danger { background: transparent; color: var(--red); }
.btn-danger:hover { background: rgba(227, 0, 0, .08); }
.alert-ok { background: #e8f7ec; color: #1b6e32; }
.alert-error { background: #fff0ef; color: #c41a10; }
.pill { font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 6px; background: var(--fill); color: var(--text-2); letter-spacing: 0; white-space: nowrap; }
.pill-accent { background: rgba(191, 72, 0, .1); color: var(--orange); }

/* ---------- Home ---------- */
.hero-home { padding: 72px 0 40px; }
.hero-home h1 { font-size: clamp(40px, 6vw, 64px); line-height: 1.05; letter-spacing: -.015em; }
.hero-home .lead { max-width: 600px; font-size: 21px; line-height: 1.38; letter-spacing: .011em; margin-top: 14px; }
.printer { max-width: 720px; margin: 44px auto 0; }
.printer-art { display: block; width: 100%; height: auto; overflow: visible; }
.printer figcaption { margin-top: 10px; font-size: 13px; color: var(--text-3); letter-spacing: -.005em; }
.printer-gantry { animation: uv-gantry 13s ease-in-out infinite; }
.printer-head { animation: uv-head 13s ease-in-out infinite; }
.printer-cover { animation: 13s ease-in-out infinite; }
.printer-cover.pass-1 { animation-name: uv-pass-1; }
.printer-cover.pass-2 { animation-name: uv-pass-2; }
.printer-cover.pass-3 { animation-name: uv-pass-3; }
.printer-cover.pass-4 { animation-name: uv-pass-4; }
.printer-ink { animation: uv-ink 13s linear infinite; }
.printer-glow { animation: uv-glow 13s linear infinite; }
.printer-led { animation: uv-led 2.8s ease-in-out infinite; }
/* 4 geçiş: 4–20 sağa, 24–40 sola, 44–60 sağa, 64–80 sola; aralarda köprü bir bant (9px) ileri gelir,
   80–87 köprü geri döner. Kapaklar kafayla aynı karelerde açılır. */
@keyframes uv-gantry {
    0%, 20% { transform: translateY(0); }
    24%, 40% { transform: translateY(9px); }
    44%, 60% { transform: translateY(18px); }
    64%, 80% { transform: translateY(27px); }
    87%, 100% { transform: translateY(0); }
}
@keyframes uv-head {
    0%, 4% { transform: translateX(0); }
    20%, 24% { transform: translateX(180px); }
    40%, 44% { transform: translateX(0); }
    60%, 64% { transform: translateX(180px); }
    80%, 100% { transform: translateX(0); }
}
@keyframes uv-pass-1 {
    0%, 4% { transform: translateX(0); }
    20%, 96% { transform: translateX(180px); }
    96.5%, 100% { transform: translateX(0); }
}
@keyframes uv-pass-2 {
    0%, 24% { transform: translateX(180px); }
    40%, 96% { transform: translateX(0); }
    96.5%, 100% { transform: translateX(180px); }
}
@keyframes uv-pass-3 {
    0%, 44% { transform: translateX(0); }
    60%, 96% { transform: translateX(180px); }
    96.5%, 100% { transform: translateX(0); }
}
@keyframes uv-pass-4 {
    0%, 64% { transform: translateX(180px); }
    80%, 96% { transform: translateX(0); }
    96.5%, 100% { transform: translateX(180px); }
}
@keyframes uv-ink {
    0%, 93% { opacity: 1; }
    96%, 97.5% { opacity: 0; }
    98%, 100% { opacity: 1; }
}
@keyframes uv-glow {
    0%, 3% { opacity: 0; }
    5%, 79% { opacity: .95; }
    82%, 100% { opacity: 0; }
}
@keyframes uv-led {
    0%, 100% { opacity: .75; }
    50% { opacity: 1; }
}
.hero-actions { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 14px 30px; margin-top: 28px; }
.discount-badge {
    display: flex; align-items: center; gap: 7px; width: fit-content; margin: 18px auto 0; padding: 7px 14px; border-radius: 980px;
    background: rgba(52, 199, 89, .12); color: #1b6e32; font-size: 14px; font-weight: 500; letter-spacing: -.01em;
}
.section { padding-top: 32px; padding-bottom: 56px; }
.section-title { margin: 0 0 28px; font-size: clamp(28px, 3.2vw, 40px); line-height: 1.1; font-weight: 600; letter-spacing: 0; }
.section-title span { color: var(--text-3); }
.section-note { margin: 20px 0 0; font-size: 13px; line-height: 1.38; color: var(--text-2); letter-spacing: -.01em; }

.products { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.product {
    display: flex; flex-direction: column; overflow: hidden;
    background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow);
    transition: box-shadow .3s var(--ease), transform .3s var(--ease);
}
.product:hover { box-shadow: 2px 4px 16px rgba(0, 0, 0, .14); transform: scale(1.01); }
.product-media {
    position: relative; display: grid; place-items: center; aspect-ratio: 16 / 10;
    background: linear-gradient(160deg, #fbfbfd 0%, #eef0f5 100%);
}
.product-media img { width: 100%; height: 100%; object-fit: cover; }
.product-icon {
    display: grid; place-items: center; width: 108px; height: 108px; border-radius: 28px;
    background: #fff; color: var(--text);
    box-shadow: 0 10px 30px rgba(0, 40, 90, .1), inset 0 0 0 1px rgba(0, 0, 0, .04);
}
.product-badge {
    position: absolute; top: 16px; left: 18px; font-size: 12px; font-weight: 600; letter-spacing: .01em; color: var(--orange);
}
.product-media.has-image .product-badge { padding: 3px 10px; border-radius: 980px; background: rgba(255, 255, 255, .9); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.product-body { flex: 1; display: flex; flex-direction: column; padding: 22px 24px 24px; }
.product-body h3 { margin: 0; font-size: 21px; line-height: 1.19; font-weight: 600; letter-spacing: .011em; }
.product-detail { margin: 4px 0 0; font-size: 14px; line-height: 1.43; color: var(--text-2); letter-spacing: -.016em; }
.product-note { margin: 8px 0 0; font-size: 12px; line-height: 1.4; color: var(--orange); letter-spacing: -.01em; }
.price-table {
    width: 100%; margin: 16px 0 14px; border-collapse: separate; border-spacing: 0;
    font-size: 14px; letter-spacing: -.016em; font-variant-numeric: tabular-nums;
}
.price-table th, .price-table td { padding: 9px 10px; text-align: right; white-space: nowrap; }
.price-table th:first-child { padding-left: 12px; text-align: left; }
.price-table thead th { padding-top: 0; font-size: 12px; font-weight: 500; color: var(--text-3); }
.price-table tbody th { font-weight: 400; color: var(--text-2); }
.price-table tbody tr > * { border-top: 1px solid var(--separator); transition: background-color .2s var(--ease), color .2s; }
.price-table tbody tr.active > * { background: rgba(0, 113, 227, .07); border-top-color: transparent; }
.price-table tbody tr.active + tr > * { border-top-color: transparent; }
.price-table tbody tr.active > :first-child { border-radius: 10px 0 0 10px; color: var(--text); }
.price-table tbody tr.active > :last-child { border-radius: 0 10px 10px 0; }
.price-table tbody tr.active td.is-side { color: var(--blue); font-weight: 600; }
.price-table.is-single th:last-child, .price-table.is-single td:last-child { width: 50%; }
.product-controls { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 16px; }
.product-controls .stepper { margin-left: auto; }
.product-controls .stepper input { width: 64px; }
.product-total {
    display: flex; justify-content: space-between; align-items: baseline; margin: auto 0 14px; padding-top: 14px;
    border-top: 1px solid var(--separator); font-size: 14px; letter-spacing: -.016em;
}
.product-total small { color: var(--text-3); font-size: 12px; }
.product-total strong { font-size: 21px; font-weight: 600; letter-spacing: .011em; font-variant-numeric: tabular-nums; }

.cta-band {
    padding: 56px 32px; border-radius: var(--radius); background: var(--surface); text-align: center;
}
.cta-icon { display: inline-grid; place-items: center; width: 60px; height: 60px; margin-bottom: 16px; border-radius: 16px; background: rgba(0, 113, 227, .1); color: var(--blue); }
.cta-band h2 { margin: 0; font-size: clamp(26px, 3vw, 34px); line-height: 1.15; font-weight: 600; letter-spacing: .004em; }
.cta-band p { max-width: 520px; margin: 10px auto 0; font-size: 17px; color: var(--text-2); }
.cta-band .hero-actions { margin-top: 24px; }

/* ---------- Sign in ---------- */
body.auth { background: #fff; }
.signin {
    display: flex; flex-direction: column; justify-content: center;
    max-width: 400px; min-height: 100vh; min-height: 100svh; margin: 0 auto; padding: 40px 0; text-align: center;
}
.signin-logo { display: block; margin: 0 auto 28px; }
.signin-logo img { margin: 0 auto; }
.signin h1 { margin: 0 0 12px; font-size: 28px; line-height: 1.14; font-weight: 600; letter-spacing: .007em; }
.signin-sub { margin: 0 auto 28px; font-size: 15px; line-height: 1.43; color: var(--text-2); letter-spacing: -.016em; }
.signin > .alert { text-align: left; }
.signin-form { text-align: left; }
.signin h1 + .signin-form { margin-top: 16px; }
.signin-fields { position: relative; }
.float-field { position: relative; display: block; }
.float-field + .float-field { margin-top: -1px; }
.float-field input {
    position: relative; display: block; width: 100%; height: 56px; margin: 0; padding: 21px 15px 5px;
    border: 1px solid #d2d2d7; border-radius: 0; background: #fff; color: var(--text);
    font: 400 17px/1.25 var(--font); letter-spacing: -.022em;
    -webkit-appearance: none; appearance: none; outline: 0;
    transition: border-color .2s, box-shadow .2s, background-color .2s;
}
.float-field:first-child input { border-radius: 12px 12px 0 0; }
.float-field:last-of-type input { border-radius: 0 0 12px 12px; }
.float-field:only-of-type input { border-radius: 12px; }
.float-field.has-action input { padding-right: 56px; }
.float-field span {
    position: absolute; z-index: 2; left: 16px; right: 56px; top: 17px;
    font-size: 17px; line-height: 21px; color: #86868b; letter-spacing: -.022em; text-align: left;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    pointer-events: none; transition: top .125s ease-in, font-size .125s ease-in, line-height .125s ease-in;
}
.float-field input:focus + span,
.float-field input:not(:placeholder-shown) + span,
.float-field input:-webkit-autofill + span { top: 8px; font-size: 12px; line-height: 15px; letter-spacing: 0; }
.float-field input:focus { z-index: 1; border-color: #0071e3; box-shadow: 0 0 0 3px rgba(0, 125, 250, .3); }
.signin-arrow {
    position: absolute; z-index: 3; right: 12px; bottom: 12px;
    display: grid; place-items: center; width: 32px; height: 32px; padding: 0;
    border: 1px solid currentColor; border-radius: 50%; background: #fff; color: #494949;
    cursor: pointer; transition: color .2s, background-color .2s;
}
.signin-arrow:hover { color: var(--text); background: #f5f5f7; }
.signin-arrow:focus-visible { outline: 0; box-shadow: var(--focus); }
.signin-form.is-empty .signin-arrow { color: #d2d2d7; }
.signin-fields.has-error input { border-color: #e30000; background: #fff2f4; }
.signin-fields.has-error input:focus { box-shadow: 0 0 0 3px rgba(227, 0, 0, .2); }
.signin-fields.has-error { animation: signin-shake .45s var(--ease); }
@keyframes signin-shake {
    0%, 100% { transform: translateX(0); }
    20%, 60% { transform: translateX(-8px); }
    40%, 80% { transform: translateX(8px); }
}
.signin-error { display: flex; align-items: flex-start; gap: 6px; margin: 12px 0 0; font-size: 13px; line-height: 1.38; color: #e30000; letter-spacing: -.01em; }
.signin-error svg { flex: none; width: 14px; height: 14px; margin-top: 1px; }
.remember {
    position: relative; display: flex; align-items: center; justify-content: center; gap: 8px; margin: 20px 0 0;
    font-size: 14px; color: var(--text); letter-spacing: -.016em; cursor: pointer; user-select: none;
}
.remember input { position: absolute; opacity: 0; pointer-events: none; }
.remember-box {
    display: grid; place-items: center; width: 18px; height: 18px; border: 1px solid #86868b; border-radius: 5px;
    background: #fff; color: transparent; transition: background-color .15s, border-color .15s, color .15s;
}
.remember input:checked + .remember-box { border-color: var(--blue); background: var(--blue); color: #fff; }
.remember input:focus-visible + .remember-box { box-shadow: var(--focus); }
.pw-toggle {
    flex: none; display: grid; place-items: center; width: 32px; height: 32px; padding: 0;
    border: 0; border-radius: 50%; background: transparent; color: #86868b; cursor: pointer;
    transition: color .15s, background-color .15s;
}
.pw-toggle:hover { color: var(--text); background: rgba(0, 0, 0, .04); }
.pw-toggle:focus-visible { outline: 0; box-shadow: var(--focus); }
.float-field .pw-toggle { position: absolute; z-index: 3; right: 12px; top: 12px; }
.float-field.has-action .pw-toggle { right: 50px; }
.float-field:has(.pw-toggle) input { padding-right: 52px; }
.float-field.has-action:has(.pw-toggle) input { padding-right: 90px; }
.float-field:has(.pw-toggle) span { right: 52px; }
.float-field.has-action:has(.pw-toggle) span { right: 90px; }
.sg-row .pw-toggle { margin: 0 -6px 0 -4px; }
.signin-hint { margin: 12px 0 0; font-size: 13px; line-height: 1.38; color: var(--text-2); letter-spacing: -.01em; }
.signin-submit { margin-top: 22px; border-radius: 12px; }
.signin-help { margin: 32px 0 0; font-size: 14px; line-height: 1.5; color: var(--text-2); letter-spacing: -.016em; }
.signin-foot { margin: 28px 0 0; font-size: 12px; color: var(--text-3); letter-spacing: -.01em; }
.signin-foot a { font-size: 14px; }

/* ---------- Admin ---------- */
.admin-main { padding-top: 28px; padding-bottom: 96px; }
.admin-tabs { display: flex; width: max-content; margin: 0 auto 32px; }
.segmented a {
    flex: none; display: inline-flex; align-items: center; justify-content: center;
    height: 30px; padding: 0 22px; border-radius: 7px; color: var(--text);
    font: 500 13px var(--font); letter-spacing: -.01em; text-decoration: none !important;
    transition: background-color .2s var(--ease), box-shadow .2s var(--ease);
}
.segmented a:hover:not(.active) { background: rgba(118, 118, 128, .1); }
.segmented a.active { background: #fff; box-shadow: 0 3px 8px rgba(0, 0, 0, .12), 0 3px 1px rgba(0, 0, 0, .04); }
.segmented a:focus-visible { outline: 0; box-shadow: var(--focus); }

.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 24px; flex-wrap: wrap; }
.page-head h1 { margin: 2px 0 0; font-size: 34px; line-height: 1.1; font-weight: 600; letter-spacing: .004em; }
.page-head p { margin: 6px 0 0; font-size: 15px; }
.back-link { display: inline-flex; align-items: center; gap: 5px; font-size: 15px; line-height: 1; }
.admin-main > .alert, .settings > .alert { margin-bottom: 16px; }
.admin-main:has(> .settings) > .alert { max-width: 680px; margin-left: auto; margin-right: auto; }

.search {
    display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 13px; margin-bottom: 16px;
    background: var(--surface); border: 1px solid var(--border); border-radius: 12px;
    color: var(--text-3); cursor: text; transition: border-color .2s, box-shadow .2s;
}
.search:focus-within { border-color: var(--blue); box-shadow: var(--focus); }
.search input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font: 400 15px var(--font); letter-spacing: -.016em; color: var(--text); }

.group { background: var(--surface); border-radius: var(--radius); overflow: hidden; }
.list-row { position: relative; display: flex; align-items: center; gap: 16px; padding: 14px 20px; transition: background-color .15s; }
.list-row + .list-row::before { content: ""; position: absolute; top: 0; right: 0; left: 80px; height: 1px; background: var(--separator); }
.list-row:hover { background: #fafafc; }
.list-row.is-muted .avatar, .list-row.is-muted .row-media { opacity: .45; }
.row-media {
    flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 10px; overflow: hidden;
    background: #f2f2f7; color: var(--text-2);
}
.row-media img { width: 100%; height: 100%; object-fit: cover; }
.row-info { flex: 1; min-width: 0; }
.row-title { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.row-title strong { font-size: 17px; font-weight: 600; letter-spacing: -.022em; }
.row-sub { font-size: 13px; letter-spacing: -.01em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row-actions { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.row-actions form { margin: 0; }
.row-actions .btn-plain, .row-actions .btn-danger { padding: 0 8px; }
.order-btns { display: flex; gap: 4px; margin-right: 6px !important; }

.empty { text-align: center; padding: 64px 20px 80px; color: var(--text-2); }
.empty-icon { display: inline-grid; place-items: center; width: 64px; height: 64px; margin-bottom: 18px; border-radius: 18px; background: var(--surface); color: var(--text-2); }
.empty h2 { margin: 0 0 8px; color: var(--text); font-size: 26px; font-weight: 600; letter-spacing: .007em; }
.empty p { margin: 0 auto 24px; max-width: 460px; font-size: 15px; }

/* Settings forms */
.settings { max-width: 680px; margin: 0 auto; }
.account-page { padding-top: 40px; padding-bottom: 96px; }
.account-head { margin: 8px 0 8px; text-align: center; }
.account-head h1 { margin: 0; font-size: 28px; line-height: 1.14; font-weight: 600; letter-spacing: .007em; }
.account-head p { margin: 4px 0 0; font-size: 15px; color: var(--text-2); }
.sg-section { margin-top: 30px; }
.sg-header { margin: 0 0 7px; padding: 0 16px; font-size: 13px; line-height: 1.38; font-weight: 400; text-transform: uppercase; letter-spacing: -.005em; color: var(--text-2); }
.sg-label-fixed { flex: none; width: 128px; }
.sg-input-left { flex: 1; width: auto; min-width: 0; text-align: left; }
.sg-input::placeholder { color: #c7c7cc; opacity: 1; }
.sg-textarea { width: 100%; height: auto; min-height: 96px; padding: 10px 0; resize: vertical; text-align: left; line-height: 1.38; font-family: var(--font); }
.sg-danger { color: var(--red); justify-content: center; }
.form-footer { display: flex; justify-content: flex-end; align-items: center; gap: 10px; margin-top: 24px; }
.danger-zone { margin-top: 44px; }
.credentials {
    display: flex; align-items: center; gap: 16px; margin-bottom: 8px; padding: 16px 18px;
    border-radius: 12px; background: #e8f7ec; color: #1b6e32;
}
.credentials > div { flex: 1; min-width: 0; }
.credentials strong { font-size: 15px; }
.credentials p { margin: 4px 0; font-size: 14px; color: var(--text); }
.credentials code { background: rgba(255, 255, 255, .7); }
.credentials small { font-size: 12px; }

.tier-edit { gap: 8px; }
.tier-edit .sg-input:first-child { width: 72px; text-align: right; }
.tier-unit { width: auto; font-size: 14px; }
.tier-sep { color: #c7c7cc; padding: 0 6px; }
.tier-edit .sg-unit:not(.tier-unit) { width: auto; margin-right: -6px; }
.tier-edit .tier-price { flex: 1; width: auto; min-width: 0; }
.no-double .tier-double { display: none; }
.tier-mode {
    flex: none; height: 30px; padding: 0 26px 0 10px; border: 0; border-radius: 7px; outline: 0;
    background: var(--fill) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' fill='none' stroke='%236e6e73' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m1 1 4 4 4-4'/%3E%3C/svg%3E") no-repeat right 10px center;
    color: var(--text); font: 500 13px var(--font); letter-spacing: -.01em; cursor: pointer;
    -webkit-appearance: none; appearance: none;
}
.tier-mode:focus-visible { box-shadow: var(--focus); }
.price-edit { gap: 8px; }
.price-edit .sg-label { flex: 1; }
.price-edit .sg-unit:not(.price-unit) { width: auto; margin-right: -4px; }
.price-edit .sg-input { width: 76px; }
.price-unit { width: 34px; font-size: 14px; }
.swatch-sm { width: 30px; height: 30px; border-radius: 7px; margin-right: 4px; }
.tier-remove { display: grid; place-items: center; width: 28px; height: 28px; padding: 0; border: 0; background: transparent; cursor: pointer; }
.tier-remove:focus-visible { outline: 0; box-shadow: var(--focus); border-radius: 50%; }

.sg-file { position: relative; min-height: 76px; padding-top: 12px; padding-bottom: 12px; gap: 14px; cursor: pointer; transition: background-color .15s; }
.sg-file input { position: absolute; inset: 0; z-index: 2; width: 100%; opacity: 0; cursor: pointer; }
.sg-file:hover { background: #f7f7f9; }
.sg-file:focus-within { box-shadow: inset var(--focus); }
.sg-thumb {
    position: relative; display: grid; place-items: center; flex: none;
    width: 52px; height: 52px; border-radius: 12px; background: #f2f2f7; color: var(--text-2); overflow: hidden;
}
.sg-thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.sg-thumb-icon { display: grid; place-items: center; }

.icon-picker, .swatch-picker { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 10px; }
.swatch-picker .swatch { width: 34px; height: 34px; border-radius: 8px; }
.swatch-custom { background: conic-gradient(#ff3b30, #ffcc00, #34c759, #5ac8fa, #007aff, #af52de, #ff3b30); }
.icon-option input[type=color] { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; padding: 0; border: 0; opacity: 0; cursor: pointer; }
.sg-thumb .swatch { width: 100%; height: 100%; border-radius: inherit; }
.row-media .swatch { width: 100%; height: 100%; border-radius: 10px; }
.sheet-input { width: 64px; }
.icon-option {
    position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px;
    padding: 14px 6px 10px; border: 1px solid var(--border); border-radius: 12px; background: #fff;
    color: var(--text-2); cursor: pointer; transition: border-color .2s var(--ease), box-shadow .2s var(--ease), color .2s;
}
.icon-option input[type=radio] { position: absolute; opacity: 0; pointer-events: none; }
.icon-option small { font-size: 12px; letter-spacing: -.01em; }
.icon-option:hover { border-color: var(--text-3); }
.icon-option:has(input:checked) { border-color: var(--blue); box-shadow: 0 0 0 1px var(--blue); color: var(--blue); }
.icon-option:has(input:focus-visible) { box-shadow: 0 0 0 1px var(--blue), var(--focus); }

/* ---------- Responsive ---------- */
@media (max-width: 1060px) {
    .products { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .calc { grid-template-columns: minmax(0, 1fr) 340px; gap: 36px; }
    .tiles-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
    .calc { grid-template-columns: 1fr; gap: 0; padding-bottom: 120px; }
    .summary { position: static; padding-top: 20px; }
    .mobile-bar { display: flex; }
    .footer { padding-bottom: calc(86px + env(safe-area-inset-bottom)); }
}
@media (max-width: 734px) {
    body { font-size: 15px; }
    .container { padding: 0 16px; }
    .topbar-inner { padding: 0 16px; }
    .brand-text { display: none; }
    .hero { padding: 32px 0 24px; }
    .eyebrow { font-size: 13px; }
    .lead { font-size: 15px; }
    .mode-switch { display: flex; }
    .mode-switch button { flex: 1; padding: 0 12px; }
    .step { padding: 28px 0; }
    .step-title { font-size: 21px; margin-bottom: 16px; }
    .tiles, .tiles-3 { grid-template-columns: 1fr; gap: 10px; }
    .tile { min-height: 68px; }
    .tile-stack { flex-direction: row; align-items: center; }
    .tile-stack .tile-price { flex-direction: column; align-items: flex-end; gap: 0; }
    .size-layout { grid-template-columns: 1fr; }
    .sp-stage { height: 160px; }
    .sg-row .segmented button, .seg-radio span { padding: 0 10px; }
    .footer-inner { flex-direction: column; }
    .toast { bottom: calc(96px + env(safe-area-inset-bottom)); }

    .hide-sm, .user-chip-name { display: none; }
    .user-chip { padding: 0 3px; }
    .topbar .btn-sm { padding: 0 14px; font-size: 14px; }
    .hero-home { padding: 48px 0 28px; }
    .hero-home .lead { font-size: 17px; }
    .products { grid-template-columns: 1fr; gap: 18px; }
    .cta-band { padding: 40px 20px; }
    .signin { padding: 32px 4px; }
    .admin-tabs { width: 100%; }
    .admin-tabs a { flex: 1 1 auto; padding: 0 6px; font-size: 12px; }
    .page-head h1 { font-size: 28px; }
    .list-row { flex-wrap: wrap; padding: 14px 16px; }
    .list-row + .list-row::before { left: 16px; }
    .row-actions { width: 100%; justify-content: flex-start; padding-left: 60px; }
    .sg-label-fixed { width: 100px; }
    .tier-unit, .tier-sep { display: none; }
    .credentials { flex-direction: column; align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { transition: none !important; animation: none !important; }
    html { scroll-behavior: auto; }
    .printer-cover.pass-1, .printer-cover.pass-3 { transform: translateX(180px); }
    .printer-glow { opacity: 0; }
    .sp-gantry { display: none; }
}

/* ---------- Print: one-page quote ---------- */
@media print {
    @page { margin: 16mm; }
    body { background: #fff; font-size: 12px; }
    .topbar, .hero, .config, .mobile-bar, .footer, .toast, .vat-toggle, .sum-actions, .sum-note, #btn-share { display: none !important; }
    .container { max-width: none; padding: 0; }
    .calc { display: block; padding: 0; }
    .summary { position: static; gap: 20px; }
    .summary-card, .spec-card { box-shadow: none; border: 1px solid var(--border); border-radius: 12px; break-inside: avoid; }
    .print-head { display: flex; align-items: center; justify-content: space-between; padding-bottom: 16px; border-bottom: 1px solid var(--border); }
    .print-head img { height: 28px; width: auto; }
    .print-head div { display: flex; flex-direction: column; align-items: flex-end; }
    .print-head strong { font-size: 18px; }
    .print-head span { font-size: 12px; color: var(--text-2); }
    .print-foot { display: block; margin: 0; font-size: 11px; color: var(--text-2); }
    .sum-total { font-size: 32px; }
    .alert { border: 1px solid #f3d9a6; }
}
