.wrap { max-width: 560px; margin: 0 auto; padding: calc(24px + env(safe-area-inset-top)) 16px calc(40px + env(safe-area-inset-bottom)); }

.top { display: flex; align-items: center; justify-content: space-between; }
.back {
  display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px 8px 8px;
  border-radius: 999px; color: var(--muted); text-decoration: none; font-size: 14px; font-weight: 600;
  background: var(--glass); border: 1px solid var(--line);
}
.back:hover { color: var(--text); }
.top .logo-badge { width: 44px; height: 44px; }

header { margin-top: 26px; animation: rise .6s ease both; }
h1 { font-size: clamp(26px, 7vw, 32px); font-weight: 800; letter-spacing: -0.02em; }
.sub { margin-top: 6px; color: var(--muted); font-size: 15px; line-height: 1.5; }

/* Adım göstergesi */
.code-badge {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 16px;
  padding: 8px 12px; border-radius: 999px; font-size: 13px; color: var(--muted);
  background: rgba(166,127,136,.1); border: 1px solid rgba(166,127,136,.3);
}
.code-badge svg { color: var(--brand-soft); }
.code-badge b { color: var(--text); font-family: ui-monospace, "SF Mono", Menlo, monospace; letter-spacing: .06em; }
.steps { display: flex; gap: 8px; margin: 24px 0 18px; }
.steps li { flex: 1; list-style: none; }
.steps .bar { height: 4px; border-radius: 4px; background: rgba(255,255,255,0.1); overflow: hidden; }
.steps .bar::after { content: ""; display: block; height: 100%; width: 0; background: var(--brand); transition: width .4s ease; }
.steps li.done .bar::after, .steps li.active .bar::after { width: 100%; }
.steps .lbl { margin-top: 8px; font-size: 12px; font-weight: 700; color: var(--muted); letter-spacing: .02em; }
.steps li.active .lbl, .steps li.done .lbl { color: var(--text); }

.panel { padding: 20px; animation: rise .5s ease both; }
.panel + .panel { margin-top: 14px; }
.panel h2 { font-size: 17px; font-weight: 800; }
.panel .hint { color: var(--muted); font-size: 13.5px; margin-top: 4px; line-height: 1.45; }
.stack { display: grid; gap: 14px; margin-top: 18px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 420px) { .row2 { grid-template-columns: 1fr; } }

/* Sekme seçimi */
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 5px; border-radius: 18px; background: rgba(0,0,0,0.3); border: 1px solid var(--line); }
.seg button {
  padding: 12px 10px; border: 0; border-radius: 13px; background: transparent; cursor: pointer;
  font-weight: 700; font-size: 14px; color: var(--muted); line-height: 1.25;
  transition: background .2s ease, color .2s ease;
}
.seg button small { display: block; font-weight: 500; font-size: 11.5px; margin-top: 2px; opacity: .8; }
.seg button[aria-selected="true"] { background: linear-gradient(135deg, var(--brand), var(--brand-deep)); color: #fff; box-shadow: 0 8px 22px -10px rgba(166,127,136,.8); }

/* Seçim kartları */
.choices { display: grid; gap: 10px; }
.choices.cols3 { grid-template-columns: repeat(3, 1fr); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.choice, .chip {
  position: relative; cursor: pointer; text-align: left;
  border: 1px solid var(--line); background: var(--glass); color: var(--text);
  transition: border-color .2s ease, background .2s ease, transform .2s ease;
}
.choice { padding: 14px; border-radius: 16px; }
.chip { padding: 10px 14px; border-radius: 999px; font-size: 14px; font-weight: 600; }
.choice:hover, .chip:hover { background: var(--glass-hover); }
.choice[aria-pressed="true"], .chip[aria-pressed="true"] {
  border-color: var(--brand); background: rgba(166, 127, 136, 0.18);
  box-shadow: inset 0 0 0 1px var(--brand);
}
.choice .t { font-weight: 700; font-size: 14px; line-height: 1.3; }
.choice .d { color: var(--muted); font-size: 12px; margin-top: 3px; }
.choice:disabled { opacity: .45; cursor: not-allowed; }
.choice.item { display: grid; grid-template-columns: 34px 1fr; column-gap: 12px; align-items: center; }
.choice.item .grain { margin: 0; grid-row: span 2; }
.group-label { font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }

.grain {
  width: 34px; height: 34px; border-radius: 10px; margin-bottom: 10px;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.12);
}
.grain.luks { background: repeating-linear-gradient(100deg, #8a5a3b 0 4px, #9b6a48 4px 9px, #7d5034 9px 12px); }
.grain.end-grain { background:
  repeating-linear-gradient(0deg, rgba(0,0,0,.25) 0 1px, transparent 1px 8px),
  repeating-linear-gradient(90deg, rgba(0,0,0,.25) 0 1px, transparent 1px 8px),
  conic-gradient(from 45deg, #9b6a48, #c2915f, #7d5034, #a8754c, #9b6a48); }
.grain.edge-grain { background: repeating-linear-gradient(90deg, #b48256 0 5px, #8f5f3c 5px 7px, #c79868 7px 12px, #7d5034 12px 14px); }

.selected-model {
  display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: 16px;
  background: rgba(166, 127, 136, 0.12); border: 1px dashed rgba(166, 127, 136, 0.5);
}
.selected-model .grain { margin: 0; flex: none; }
.selected-model .t { font-weight: 700; }
.selected-model .d { font-size: 12.5px; color: var(--muted); }

.order-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-bottom: 12px; }
.order-head .t { font-weight: 800; }
.order-head .d { font-size: 12.5px; color: var(--muted); }
.verified { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; color: var(--ok); }

.check { display: flex; gap: 12px; align-items: flex-start; font-size: 13.5px; line-height: 1.45; color: var(--muted); cursor: pointer; }
.check input { flex: none; width: 20px; height: 20px; margin-top: 1px; accent-color: var(--brand); }
.check a { color: var(--brand-soft); }
.check b { color: var(--text); font-weight: 600; }

.msg { display: none; padding: 12px 14px; border-radius: 14px; font-size: 13.5px; line-height: 1.45; }
.msg.show { display: block; animation: rise .3s ease both; }
.msg.err { background: rgba(255, 143, 143, 0.1); border: 1px solid rgba(255, 143, 143, 0.35); color: #ffc9c9; }
.msg.info { background: rgba(242, 196, 141, 0.08); border: 1px solid rgba(242, 196, 141, 0.3); color: #f6dcb9; }

.actions { display: flex; gap: 10px; margin-top: 18px; }
.actions .btn-primary { flex: 1; }

/* Başarı */
.done { text-align: center; padding: 30px 20px; }
.done .ok-icon {
  width: 72px; height: 72px; margin: 0 auto 18px; border-radius: 50%;
  display: grid; place-items: center; color: #0f2a19;
  background: radial-gradient(circle at 30% 30%, #b6f2c8, var(--ok));
  box-shadow: 0 0 0 8px rgba(125, 220, 154, 0.12), 0 18px 40px -12px rgba(125, 220, 154, 0.6);
}
.done h2 { font-size: 22px; }
.warranty-no {
  margin: 18px auto 0; display: inline-block; padding: 12px 18px; border-radius: 14px;
  font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 18px; font-weight: 700; letter-spacing: .06em;
  background: rgba(0,0,0,0.3); border: 1px solid var(--line);
}
.done .meta { margin-top: 14px; color: var(--muted); font-size: 14px; line-height: 1.6; }
.pill { display: inline-block; padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; }
.pill.approved { background: rgba(125,220,154,.15); color: var(--ok); }
.pill.pending { background: rgba(242,196,141,.15); color: var(--warn); }

[hidden] { display: none !important; }
