@import url("https://fonts.googleapis.com/css2?family=Nunito:ital,wght@0,400;0,500;0,600;0,700;0,800;1,400&display=swap&subset=latin,latin-ext");

*, *::before, *::after { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  color: var(--ink);
  background-color: var(--bg);
  background-image:
    radial-gradient(ellipse 80% 50% at 10% -10%, var(--bg-glow-a), transparent 50%),
    radial-gradient(ellipse 60% 40% at 100% 0%, var(--bg-glow-b), transparent 45%);
  background-repeat: no-repeat;
  transition: background-color 0.35s var(--ease-out), border-color 0.35s var(--ease-out);
  overflow-x: hidden;
  padding-left: env(safe-area-inset-left);
  padding-right: env(safe-area-inset-right);
  padding-bottom: env(safe-area-inset-bottom);
}

h1, h2, h3, .brand, .display { font-family: var(--font-display); font-weight: 600; }

a { color: var(--sky); }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, [tabindex]:focus-visible {
  outline: 3px solid var(--mint);
  outline-offset: 2px;
}

.wrap { width: min(100% - 1.25rem, var(--max)); margin-inline: auto; }
@media (min-width: 480px) {
  .wrap { width: min(100% - 2rem, var(--max)); }
}

.site-header {
  padding: var(--space-4) 0 var(--space-3);
  text-align: center;
}
.brand-lockup {
  display: inline-flex;
  justify-content: center;
  margin: 0 0 0.55rem;
  text-decoration: none;
}
.brand-logo {
  display: block;
  width: min(72vw, 280px);
  height: auto;
  margin: 0 auto;
}
.brand {
  font-size: clamp(1.75rem, 5vw, 2.4rem);
  margin: 0;
  letter-spacing: -0.02em;
}
.tagline { margin: 0.35rem 0 0; color: var(--ink-muted); font-size: 1rem; }

.intro-block {
  margin: 0 0 var(--space-3);
  padding-bottom: var(--space-3);
  border-bottom: 2px dashed var(--border);
}
.intro-block-foot {
  margin: var(--space-4) 0 0;
  padding: var(--space-3) 0 0;
  border-bottom: 0;
  border-top: 2px dashed var(--border);
}
.intro-lead {
  margin: 0 0 var(--space-2);
  font-size: 0.92rem;
  color: var(--ink-muted);
  line-height: 1.45;
}
.intro-title {
  margin: 0 0 0.65rem;
  font-size: 1rem;
  font-weight: 700;
  color: var(--ink-muted);
}
.intro-steps {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: intro;
  display: grid;
  gap: 0.45rem;
}
.intro-steps li {
  counter-increment: intro;
  position: relative;
  padding-left: 2.1rem;
  font-size: 0.88rem;
  color: var(--ink-muted);
  line-height: 1.4;
}
.intro-steps li::before {
  content: counter(intro);
  position: absolute;
  left: 0;
  top: 0.05rem;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 50%;
  background: var(--mint);
  color: #fff;
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  display: grid;
  place-items: center;
}
.intro-steps li span {
  color: var(--ink);
  font-weight: 700;
}
.step-name-title {
  font-size: clamp(1.65rem, 4.5vw, 2.1rem);
  margin: 0 0 0.4rem;
  line-height: 1.15;
}
.field-name-hero input {
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  padding: 0.95rem 1rem;
  border-width: 3px;
}

/* Path progress */
.path {
  display: flex;
  justify-content: space-between;
  gap: 4px;
  margin: var(--space-4) 0;
  position: relative;
}
.path::before {
  content: "";
  position: absolute;
  top: 50%; left: 8%; right: 8%;
  height: 6px;
  background: var(--clay);
  border-radius: 99px;
  transform: translateY(-50%);
  z-index: 0;
}
.path-step {
  position: relative;
  z-index: 1;
  width: 32px; height: 32px;
  border-radius: 50%;
  border: var(--border-w) solid var(--border);
  background: var(--card-bg);
  box-shadow: var(--shadow-outer);
  display: grid; place-items: center;
  font-family: var(--font-display);
  font-size: 0.8rem;
  color: var(--ink-muted);
  transition: transform 0.2s var(--ease-bounce), background 0.2s, border-color 0.2s, opacity 0.2s;
  flex: 0 0 auto;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}
.path-step.locked {
  opacity: 0.4;
  cursor: not-allowed;
  pointer-events: none;
}
@media (hover: hover) and (pointer: fine) {
  .path-step:not(.locked):hover {
    transform: scale(1.08);
  }
}
.path-step:not(.locked):active {
  transform: scale(0.96);
}
@media (min-width: 420px) {
  .path-step {
    width: 36px; height: 36px;
    font-size: 0.85rem;
  }
}
.path-step.done { background: var(--path); border-color: #e0b020; color: var(--ink); }
.path-step.current {
  background: var(--mint);
  border-color: var(--mint-dark);
  color: #fff;
  transform: scale(1.12);
}

.panel {
  background: var(--card-bg);
  border: var(--border-w) solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-clay);
  padding: var(--space-3);
  margin-bottom: var(--space-3);
}
@media (min-width: 560px) {
  .panel {
    padding: var(--space-4);
    margin-bottom: var(--space-4);
  }
}
.panel h2 { margin: 0 0 var(--space-2); font-size: clamp(1.2rem, 4.5vw, 1.45rem); }
.panel .hint { margin: 0 0 var(--space-3); color: var(--ink-muted); font-size: 0.95rem; }

.step { display: none !important; }
.step.active { display: block !important; animation: popIn 0.35s var(--ease-bounce); }
@keyframes popIn {
  from { opacity: 0; transform: translateY(10px) scale(0.98); }
  to { opacity: 1; transform: none; }
}

.choice-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-2);
}
@media (min-width: 420px) {
  .choice-grid {
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: var(--space-3);
  }
}
.choice-grid.wide { grid-template-columns: 1fr 1fr; }
.choice-grid.mats {
  grid-template-columns: 1fr;
}
@media (min-width: 560px) {
  .choice-grid.mats {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  }
}

.choice {
  appearance: none;
  cursor: pointer;
  min-height: var(--touch);
  border: var(--border-w) solid var(--border);
  border-radius: var(--radius);
  background: var(--clay-light);
  box-shadow: var(--shadow-outer);
  padding: var(--space-2) var(--space-2);
  font-family: var(--font-display);
  font-size: 0.95rem;
  color: var(--ink);
  transition: transform 0.15s var(--ease-bounce), border-color 0.15s, box-shadow 0.15s;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-align: center;
  min-width: 0;
  word-break: break-word;
}
@media (min-width: 560px) {
  .choice {
    padding: var(--space-3);
    font-size: 1.05rem;
    gap: 8px;
  }
}
.choice:active { transform: scale(0.96); }
@media (hover: hover) and (pointer: fine) {
  .choice:hover { transform: translateY(-2px); }
}
.choice.selected {
  border-color: var(--accent-dark);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 40%, transparent), var(--shadow-outer);
  background: #fff;
  transform: scale(1.03);
}
.choice[data-gender] {
  min-height: 88px;
  font-size: 1.35rem;
  position: relative;
  z-index: 2;
}
.choice[data-gender="kiz"].selected {
  background: #ffeaf2;
  border-color: var(--gender-kiz);
  box-shadow: 0 0 0 4px rgba(240, 122, 165, 0.35), var(--shadow-outer);
}
.choice[data-gender="erkek"].selected {
  background: #e4f2fb;
  border-color: var(--gender-erkek);
  box-shadow: 0 0 0 4px rgba(91, 164, 217, 0.4), var(--shadow-outer);
}
.choice .swatch {
  width: 48px; height: 48px; border-radius: 50%;
  border: 3px solid #fff;
  box-shadow: 0 2px 0 rgba(42,36,56,0.15);
  flex-shrink: 0;
}
.choice .swatch-light {
  border-color: #d8d2c8;
  box-shadow: 0 0 0 1px rgba(42,36,56,0.12), 0 2px 0 rgba(42,36,56,0.1);
}
.choice .choice-label {
  display: block;
  width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 0.9rem;
  line-height: 1.2;
}
.choice .char-icon {
  width: 56px; height: 56px;
  display: grid; place-items: center;
}
.choice .char-icon img,
.choice .char-icon svg {
  width: 100%; height: 100%;
  object-fit: contain;
}

.stagger > * { animation: staggerIn 0.4s var(--ease-bounce) both; }
.stagger > *:nth-child(1) { animation-delay: 0.02s; }
.stagger > *:nth-child(2) { animation-delay: 0.05s; }
.stagger > *:nth-child(3) { animation-delay: 0.08s; }
.stagger > *:nth-child(4) { animation-delay: 0.11s; }
.stagger > *:nth-child(5) { animation-delay: 0.14s; }
.stagger > *:nth-child(6) { animation-delay: 0.17s; }
.stagger > *:nth-child(n+7) { animation-delay: 0.2s; }
@keyframes staggerIn {
  from { opacity: 0; transform: scale(0.92) translateY(12px); }
  to { opacity: 1; transform: none; }
}

.field { margin-bottom: var(--space-3); }
.field label { display: block; font-weight: 700; margin-bottom: 6px; }
.field input:not([type="checkbox"]):not([type="radio"]),
.field textarea,
.field select {
  width: 100%;
  min-height: var(--touch);
  padding: 0.75rem 1rem;
  border: var(--border-w) solid var(--border);
  border-radius: var(--radius-sm);
  font: inherit;
  font-size: 16px;
  background: #fff;
  max-width: 100%;
}
.field select {
  appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'><path fill='%232a2438' d='M4 6l4 5 4-5z'/></svg>");
  background-repeat: no-repeat;
  background-position: right 0.9rem center;
  background-size: 12px 12px;
  padding-right: 2.4rem;
}
.field select:disabled {
  opacity: 0.55;
  cursor: default;
}
.check-inline {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 600;
  font-size: 0.95rem;
  margin: 0;
  cursor: pointer;
  line-height: 1.3;
}
.field label.check-inline {
  display: flex;
  font-weight: 600;
  margin-bottom: 0;
}
.check-inline input[type="checkbox"] {
  width: 1.15rem !important;
  height: 1.15rem !important;
  min-height: 0 !important;
  max-width: 1.15rem;
  margin: 0;
  padding: 0;
  flex-shrink: 0;
  accent-color: var(--accent);
  cursor: pointer;
  border: none;
  box-shadow: none;
  appearance: auto;
}
.field.check-row {
  margin-top: -0.25rem;
  margin-bottom: var(--space-3);
}
.check-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-2);
}
@media (min-width: 400px) {
  .check-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-2) var(--space-3);
  }
}
.extras-row:not(:has(.field:not([hidden]))) {
  display: none;
}
.extras-row .field[hidden] {
  display: none !important;
}
@media (min-width: 560px) {
  .extras-row #classField { grid-column: 1; }
  .extras-row #schoolNoField { grid-column: 2; }
}
.field .error { color: var(--danger); font-size: 0.9rem; margin-top: 4px; }
.field-row { display: grid; gap: var(--space-3); }
@media (min-width: 560px) {
  .field-row.two { grid-template-columns: 1fr 1fr; }
}

.nav-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  justify-content: space-between;
  margin-top: var(--space-4);
}
.nav-row > .btn {
  flex: 1 1 auto;
  text-align: center;
}
.nav-row-cart {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2);
  align-items: stretch;
}
.nav-row-cart [data-prev] {
  grid-column: 1;
  order: 1;
}
.nav-row-cart #btnToShip {
  grid-column: 2;
  order: 2;
}
.nav-row-cart #btnAddCart {
  grid-column: 1 / -1;
  order: 3;
  width: 100%;
}
@media (min-width: 640px) {
  .nav-row-cart {
    display: flex;
    flex-wrap: wrap;
  }
  .nav-row-cart [data-prev],
  .nav-row-cart #btnToShip,
  .nav-row-cart #btnAddCart {
    grid-column: auto;
    order: 0;
    width: auto;
  }
  .nav-row-cart #btnAddCart {
    flex: 1 1 12rem;
  }
}
.btn-text-short { display: inline; }
.btn-text-long { display: none; }
@media (min-width: 640px) {
  .btn-text-short { display: none; }
  .btn-text-long { display: inline; }
}
.btn-plus {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.35em;
  height: 1.35em;
  margin-right: 0.25rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.28);
  font-weight: 800;
  line-height: 1;
  vertical-align: -0.1em;
}
.cart-box {
  margin-top: var(--space-3);
  padding: var(--space-3);
  background: var(--clay-light);
  border: 2px dashed var(--border);
  border-radius: var(--radius-sm);
}
.cart-box h3 {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  font-size: 1.05rem;
}
.cart-box ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.cart-box li {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.35rem 0;
  border-bottom: 1px dashed var(--border);
  font-size: 0.9rem;
}
.cart-box li:last-child { border-bottom: 0; }
.cart-box li > span {
  min-width: 0;
  flex: 1 1 auto;
  word-break: break-word;
}
.cart-box li strong {
  flex: 0 0 auto;
  white-space: nowrap;
}
.cart-box .cart-total {
  margin: 0.65rem 0 0;
  font-family: var(--font-display);
  font-weight: 700;
  text-align: right;
}
.cart-box .cart-remove {
  border: 0;
  background: transparent;
  color: var(--danger);
  cursor: pointer;
  font-size: 0.85rem;
  text-decoration: underline;
  padding: 0;
  min-height: auto;
}
.btn {
  cursor: pointer;
  min-height: var(--touch);
  padding: 0.75rem 1rem;
  border-radius: var(--radius);
  border: var(--border-w) solid transparent;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.15s var(--ease-bounce), opacity 0.15s;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
@media (min-width: 560px) {
  .btn {
    padding: 0.75rem 1.4rem;
    font-size: 1.05rem;
  }
}
.btn:active { transform: scale(0.96); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }
.btn-primary {
  background: var(--cta-bg);
  color: var(--cta-fg);
  border-color: var(--ink);
  box-shadow: var(--shadow-outer);
}
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--border);
}
.btn-mint {
  background: var(--mint);
  color: var(--mint-fg, #fff);
  border-color: var(--mint-dark);
}

.price-ticket {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  margin: var(--space-4) 0 0;
  background: #fff8e8;
  border: var(--border-w) solid #d4a017;
  border-radius: var(--radius);
  box-shadow: 5px 7px 0 rgba(212, 160, 23, 0.28);
  overflow: hidden;
  min-height: 11.5rem;
}
.price-ticket-punch {
  background-color: var(--path);
  background-image: radial-gradient(circle at 11px 11px, var(--card-bg) 4.5px, transparent 5px);
  background-size: 22px 22px;
  background-repeat: repeat-y;
  background-position: 0 10px;
}
.price-ticket-body {
  padding: 0.85rem 1rem 0.95rem 0.8rem;
  min-width: 0;
}
.price-ticket-kicker {
  margin: 0 0 0.55rem;
  min-height: 1.2em;
  font-family: var(--font-label);
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #8a6a10;
}
.price-ticket-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.price-cell {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 0.5rem 0.55rem;
  border-right: 2px dashed rgba(212, 160, 23, 0.45);
  border-bottom: 2px dashed rgba(212, 160, 23, 0.45);
  min-width: 0;
}
.price-cell:nth-child(2n) { border-right: 0; }
.price-cell:nth-child(n+3):not(.price-cell-grand) { border-bottom: 0; }
.price-cell-grand {
  grid-column: 1 / -1;
  flex-direction: row;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: 0.15rem;
  padding: 0.7rem 0.55rem 0.2rem;
  border-right: 0;
  border-bottom: 0;
  border-top: 2px dashed rgba(212, 160, 23, 0.55);
}
.price-cell-label {
  font-family: var(--font-label);
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-muted);
}
.price-cell strong {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 4.2vw, 1.75rem);
  font-weight: 800;
  line-height: 1.15;
  color: var(--ink);
  white-space: nowrap;
}
.price-cell-pay strong { color: #8a6a10; }
.price-cell-grand strong {
  font-size: clamp(1.55rem, 5vw, 2.05rem);
  color: #8a6a10;
}
.price-cell.is-free strong { color: var(--success); }
.price-ticket.is-empty .price-cell strong {
  color: var(--ink-muted);
  font-weight: 700;
}
@media (min-width: 560px) {
  .price-ticket { min-height: 9.4rem; }
  .price-ticket-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .price-cell:not(.price-cell-grand) {
    border-bottom: 0;
    border-right: 2px dashed rgba(212, 160, 23, 0.45);
  }
  .price-cell:nth-child(2n):not(.price-cell-grand) {
    border-right: 2px dashed rgba(212, 160, 23, 0.45);
  }
  .price-cell:nth-child(4) { border-right: 0; }
}
.mat-card {
  text-align: left;
  align-items: flex-start;
  font-family: var(--font-body);
  font-weight: 700;
  word-break: normal;
  overflow-wrap: anywhere;
  hyphens: manual;
}
.mat-card strong {
  font-family: var(--font-body);
  font-weight: 800;
}
.choice-grid.mat-why {
  grid-template-columns: 1fr;
}
@media (min-width: 560px) {
  .choice-grid.mats.mat-why {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: stretch;
  }
}
.choice-grid.mat-why .mat-card {
  height: 100%;
  cursor: default;
}
.mat-card > .mat-price {
  margin-top: auto;
  padding-top: 0.75rem;
}
.mat-card .mat-badge {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
  border: 2px solid currentColor;
}
.mat-card.tone-kuse {
  background: #fff6d8;
  border-color: #c99212;
  box-shadow: 4px 6px 0 rgba(201, 146, 18, 0.28);
  color: #5a4308;
}
.mat-card.tone-kuse .mat-badge { color: #8a6a10; background: #ffe9a3; }
.mat-card.tone-pvc {
  background: #dceefb;
  border-color: #2f7ab3;
  box-shadow: 4px 6px 0 rgba(47, 122, 179, 0.28);
  color: #163a58;
}
.mat-card.tone-pvc .mat-badge { color: #1f5e8c; background: #b7dbf5; }
.mat-card.tone-lam {
  background: #eee4fb;
  border-color: #6b3fa0;
  box-shadow: 4px 6px 0 rgba(107, 63, 160, 0.28);
  color: #3b2060;
}
.mat-card.tone-lam .mat-badge { color: #5a2f88; background: #dcc8f5; }
.choice.mat-card:active {
  transform: none;
}
@media (hover: hover) and (pointer: fine) {
  .choice.mat-card:hover { transform: none; }
}
.mat-card .mat-stepper {
  width: 100%;
  margin-top: 0.5rem;
  gap: 0.5rem;
}
.mat-card .qty-value {
  font-size: 1.15rem;
  min-width: 4.2rem;
  min-height: 1.4em;
}
.mat-card .mat-line-total {
  width: 100%;
  font-size: 0.88rem;
  font-weight: 800;
  text-align: center;
  line-height: 1.35;
  min-height: calc(1.35em * 2);
}
.mat-card .qty-value.is-empty,
.mat-card .mat-line-total.is-empty {
  visibility: hidden;
}
.order-alerts {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin: 0 0 var(--space-4);
}
.alert-warn,
.alert-tip {
  margin: 0;
  padding: 0.85rem 1rem;
  border-radius: var(--radius-sm);
  border: var(--border-w) solid;
  font-family: var(--font-body);
  line-height: 1.4;
}
.alert-warn {
  background: #fde8e8;
  border-color: var(--danger);
  color: #8f1f1f;
  font-weight: 800;
  font-size: 1.12rem;
}
.alert-tip {
  background: #eee4fb;
  border-color: #6b3fa0;
  color: #3b2060;
  font-weight: 700;
  font-size: 0.95rem;
}
.ship-note-slot {
  display: grid;
  margin: var(--space-3) 0 0;
}
.ship-note-slot > .ship-note {
  grid-area: 1 / 1;
  margin: 0;
  align-self: stretch;
}
.ship-note-slot > .ship-note[hidden] {
  display: block !important;
  visibility: hidden;
  pointer-events: none;
}
.ship-note {
  margin: var(--space-3) 0 0;
  padding: 0.85rem 1rem;
  border-radius: var(--radius-sm);
  border: var(--border-w) solid #2f7ab3;
  background: #dceefb;
  color: #163a58;
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 1.12rem;
  line-height: 1.45;
}
.ship-note.is-free {
  border-color: var(--success);
  background: #e5f6f3;
  color: #1d5c55;
}
.ship-note .store-maps-link {
  font-weight: 800;
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.cart-box .cart-ship {
  margin: 0.5rem 0 0;
  font-weight: 700;
}
.mat-card .why-label {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink);
}
.mat-card small {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.86rem;
  line-height: 1.45;
  color: var(--ink-muted);
}
.set-box {
  margin-top: var(--space-4);
}
.set-box h3 {
  font-size: 1.1rem;
  margin: 0 0 .5rem;
}
.set-mats {
  margin: 0 0 0.75rem;
  min-height: 2.7em;
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 800;
  line-height: 1.35;
  color: var(--ink);
}
.set-mats.is-empty {
  visibility: hidden;
}
.qty-stepper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}
.qty-btn {
  appearance: none;
  width: 48px;
  height: 48px;
  min-height: 48px;
  padding: 0;
  border: var(--border-w) solid var(--border);
  border-radius: 50%;
  background: var(--clay-light);
  box-shadow: var(--shadow-outer);
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  line-height: 1;
  color: var(--ink);
  cursor: pointer;
}
.qty-btn:disabled {
  opacity: 0.4;
  cursor: default;
}
.qty-btn:not(:disabled):active {
  transform: scale(0.94);
}
.qty-value {
  margin: 0;
  min-width: 5.5rem;
  text-align: center;
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 800;
}

.preview-hero {
  display: flex;
  justify-content: center;
  margin: var(--space-3) 0;
}
.preview-hero svg { width: min(100%, 360px); height: auto; filter: drop-shadow(0 8px 16px rgba(42,36,56,0.12)); }
.preview-hero.set-preview {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: var(--space-3);
}
.set-preview-item {
  margin: 0;
}
.set-preview-item figcaption {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--ink-muted);
  margin: 0 0 0.4rem;
}
.set-preview-svg {
  background: #eee;
  padding: 8px;
  border-radius: var(--radius);
}
.set-preview-svg svg {
  display: block;
  width: 100%;
  max-width: 420px;
  height: auto;
  margin: 0 auto;
  filter: none;
}
.summary-list { list-style: none; padding: 0; margin: 0; }
.summary-list li {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.5rem 0;
  border-bottom: 2px dashed var(--border);
  font-size: 0.95rem;
}
.summary-list li span { flex: 0 0 auto; color: var(--ink-muted); }
.summary-list li strong {
  flex: 1 1 auto;
  text-align: right;
  word-break: break-word;
  min-width: 0;
}
#setContents li strong {
  min-height: 2.6em;
}
.trust-line {
  margin-top: var(--space-3);
  padding: var(--space-3);
  background: var(--clay-light);
  border-radius: var(--radius-sm);
  border: 2px dashed var(--border);
  font-size: 0.95rem;
  color: var(--ink-muted);
  text-align: center;
}

.result-box {
  text-align: center;
}
.result-box .code {
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 4.2vw, 2rem);
  letter-spacing: 0.04em;
  background: var(--clay);
  padding: 0.75rem 1rem;
  border-radius: var(--radius);
  border: var(--border-w) solid var(--border);
  display: inline-block;
  max-width: 100%;
  margin: var(--space-2) 0;
  word-break: break-word;
  line-height: 1.35;
}
.copy-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: stretch;
  margin: var(--space-2) 0;
}
.copy-row .btn {
  flex: 1 1 10rem;
  text-align: center;
}
@media (min-width: 480px) {
  .copy-row { justify-content: center; }
  .copy-row .btn { flex: 0 1 auto; }
}
.iban-block {
  background: #fff;
  border: var(--border-w) solid var(--border);
  border-radius: var(--radius);
  padding: var(--space-3);
  text-align: left;
  margin: var(--space-3) 0;
}
.confetti {
  pointer-events: none;
  position: fixed;
  inset: 0;
  overflow: hidden;
  z-index: 50;
}
.confetti i {
  position: absolute;
  top: -10px;
  width: 10px; height: 14px;
  border-radius: 3px;
  animation: fall 1.8s ease-in forwards;
}
@keyframes fall {
  to { transform: translateY(110vh) rotate(360deg); opacity: 0; }
}

.site-footer {
  margin-top: var(--space-6);
  padding: var(--space-4) 0 var(--space-5);
  text-align: center;
  border-top: 2px solid var(--border);
}
.company-card {
  text-align: left;
  margin: 0 0 var(--space-4);
  padding: 1rem 1.05rem 1.1rem;
  background: #fff;
  border: var(--border-w) solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-outer);
}
.company-card-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.85rem 1rem;
  margin-bottom: 0.85rem;
}
.company-logo {
  width: min(42vw, 180px);
  height: auto;
  flex: 0 0 auto;
}
.company-copy { min-width: 0; flex: 1 1 12rem; }
.company-name {
  margin: 0 0 0.25rem;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 800;
  line-height: 1.25;
}
.company-tag {
  margin: 0;
  color: var(--ink-muted);
  font-size: 0.95rem;
  line-height: 1.4;
}
.company-facts {
  list-style: none;
  margin: 0;
  padding: 0;
}
.company-facts li {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.45rem 0;
  border-bottom: 2px dashed var(--border);
  font-size: 0.92rem;
}
.company-facts li:last-child { border-bottom: 0; }
.company-facts span {
  flex: 0 0 auto;
  color: var(--ink-muted);
}
.company-facts strong {
  flex: 1 1 auto;
  text-align: right;
  font-weight: 800;
  min-width: 0;
  word-break: break-word;
}
.company-facts a {
  color: var(--ink);
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.company-note {
  margin: 0.85rem 0 0;
  font-size: 0.88rem;
  line-height: 1.45;
  color: var(--ink-muted);
}
.footer-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  justify-content: center;
  align-items: center;
}
.site-footer .footer-track-btn,
.site-footer .footer-cart-btn,
.site-footer .footer-whatsapp-btn {
  display: inline-flex;
  min-width: min(100%, 200px);
  justify-content: center;
  position: relative;
}
.btn-whatsapp {
  background: #25d366;
  color: #fff;
  border-color: #1ebe57;
}
.btn-whatsapp:hover {
  filter: brightness(0.97);
  color: #fff;
}
.step1-whatsapp {
  display: flex;
  width: 100%;
  margin-top: var(--space-2);
  justify-content: center;
  text-align: center;
}
.nav-row-cart #btnWhatsApp {
  grid-column: 1 / -1;
  order: 4;
  width: 100%;
  text-align: center;
}
@media (min-width: 640px) {
  .nav-row-cart #btnWhatsApp {
    grid-column: auto;
    order: 0;
    width: auto;
    flex: 1 1 10rem;
  }
}
.cart-badge {
  position: absolute;
  top: -0.4rem;
  right: -0.4rem;
  min-width: 1.4rem;
  height: 1.4rem;
  padding: 0 0.32rem;
  border-radius: 999px;
  background: var(--coral);
  color: #fff;
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 800;
  line-height: 1;
  display: grid;
  place-items: center;
  border: 2px solid var(--card-bg);
  box-shadow: 2px 2px 0 rgba(42, 36, 56, 0.18);
  pointer-events: none;
}
.cart-badge[hidden] {
  display: none !important;
}

.choice.choice-photo .char-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--clay);
  border: 3px dashed var(--border);
}
.choice.choice-photo .char-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.choice.choice-photo .photo-plus {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--ink-muted);
  line-height: 1;
}

.crop-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(42, 36, 56, 0.55);
  display: grid;
  place-items: center;
  padding: 1rem;
  padding-bottom: max(1rem, env(safe-area-inset-bottom));
}
.crop-modal[hidden] { display: none !important; }
.modal-close {
  position: absolute;
  top: max(0.5rem, env(safe-area-inset-top));
  right: max(0.5rem, env(safe-area-inset-right));
  z-index: 2;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: var(--border-w) solid var(--border);
  border-radius: 50%;
  background: var(--card-bg);
  color: var(--ink);
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: var(--shadow-clay);
}
.modal-close:hover,
.modal-close:focus-visible {
  border-color: var(--accent);
  color: var(--accent);
}
.crop-dialog {
  width: min(100%, 420px);
  background: var(--card-bg);
  border: var(--border-w) solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-clay);
  padding: var(--space-3);
}
.crop-dialog h2 { margin: 0 0 0.35rem; font-size: 1.25rem; }
.crop-stage {
  position: relative;
  width: min(100%, 280px);
  height: auto;
  aspect-ratio: 1;
  margin: 0.75rem auto;
  border-radius: 50%;
  overflow: hidden;
  background: #1a1624;
  touch-action: none;
  cursor: grab;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.35);
}
.crop-stage:active { cursor: grabbing; }
.crop-stage canvas {
  display: block;
  width: 100%;
  height: 100%;
}
.crop-mask {
  pointer-events: none;
  position: absolute;
  inset: 0;
  border-radius: 50%;
  /* En büyük iç daire = etiketteki yuvarlak alan (önceden %34 yanlıştı) */
  background: radial-gradient(circle closest-side at center, transparent 99%, rgba(0, 0, 0, 0.45) 100%);
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.55);
}
.crop-zoom-label {
  display: block;
  font-weight: 700;
  margin: 0.5rem 0 0.25rem;
}
#cropZoom { width: 100%; accent-color: var(--accent); }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.search-dialog { width: min(100%, 640px); }
.search-legal {
  margin: 0 0 0.85rem;
  padding: 0.55rem 0.7rem;
  font-size: 0.82rem;
  line-height: 1.4;
  color: var(--ink-muted);
  background: color-mix(in srgb, var(--ink) 4%, transparent);
  border: 1px dashed var(--border);
  border-radius: calc(var(--radius) - 4px);
}
.search-form {
  display: flex;
  gap: 0.5rem;
  margin: 0.75rem 0;
}
.search-form input {
  flex: 1;
  min-width: 0;
  font: inherit;
  padding: 0.55rem 0.75rem;
  border-radius: 10px;
  border: 2px solid var(--border);
}
.search-form-engines { flex-wrap: wrap; }
.search-form-engines input { flex: 1 1 100%; }
.search-dialog .hint a { font-weight: 800; }
.search-cse {
  min-height: 4.5rem;
  max-height: min(52vh, 520px);
  overflow: auto;
  margin: 0.5rem 0 0.75rem;
  background: #fff;
  border-radius: 10px;
}
.search-cse .gsc-control-cse { padding: 0.4rem !important; }
.search-cse .gsc-imageResult,
.search-cse .gs-image-box { cursor: pointer; }
.search-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.45rem;
  max-height: none;
  overflow: visible;
  margin: 0.5rem 0 0.5rem;
  align-items: stretch;
}
@media (max-width: 419px) {
  .search-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.search-pager {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin: 0 0 0.75rem;
}
.search-pager[hidden] { display: none !important; }
.search-pager .btn {
  flex: 0 0 auto;
  min-width: 5.5rem;
  padding: 0.45rem 0.7rem;
  font-size: 0.9rem;
}
.search-page-label {
  flex: 1 1 auto;
  text-align: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.95rem;
  color: var(--ink);
}
.search-grid button {
  position: relative;
  display: block;
  width: 100%;
  min-width: 0;
  min-height: 0;
  margin: 0;
  padding: 0;
  border: 2px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  background: #eee;
  cursor: pointer;
  aspect-ratio: 1 / 1;
  appearance: none;
  -webkit-appearance: none;
}
.search-grid button img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}
.search-grid button:hover,
.search-grid button:focus-visible {
  border-color: var(--accent);
}

/* Admin */
.admin-bar {
  background: var(--ink);
  color: #fff;
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 3px solid var(--mint, #5EBFB5);
}
.admin-bar-inner {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 0.7rem 1rem;
  width: min(100% - 2rem, 1320px);
  max-width: none;
  margin: 0 auto;
}
.admin-brand {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.05rem;
  color: #fff !important;
  text-decoration: none;
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.admin-nav {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex: 1 1 auto;
}
.admin-nav a {
  color: rgba(255, 255, 255, 0.82) !important;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.92rem;
  padding: 0.4rem 0.75rem;
  border-radius: 10px;
  border: 2px solid transparent;
  white-space: nowrap;
}
.admin-nav a:hover {
  color: #fff !important;
  background: rgba(255, 255, 255, 0.1);
}
.admin-nav a.is-active {
  color: #fff !important;
  background: rgba(94, 191, 181, 0.35);
  border-color: var(--mint, #5EBFB5);
}
.admin-user {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-left: auto;
  font-size: 0.88rem;
  flex-shrink: 0;
}
.admin-user-name {
  opacity: 0.75;
  white-space: nowrap;
}
.admin-logout {
  color: #fff !important;
  font-weight: 700;
  text-decoration: none;
  padding: 0.35rem 0.7rem;
  border-radius: 10px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  white-space: nowrap;
}
.admin-logout:hover {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.1);
}
.table-wrap { overflow-x: auto; }
table.data {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  border: var(--border-w) solid var(--border);
}
table.data th, table.data td {
  padding: 0.75rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
}
table.data th { background: var(--clay-light); font-family: var(--font-display); }
.badge {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  background: var(--clay);
}
.badge.hazirlaniyor { background: #c8f0eb; }
.badge.odeme_bekleniyor { background: #ffe8a8; }
.badge.kargoda { background: #d6e8ff; }
.badge.teslim_edildi { background: #d8f0e8; }
.badge.iptal { background: #ffd0d0; }

.admin-flash.is-ok { background: #c8f0eb; }
.admin-flash.is-err { background: #ffd0d0; }

/* --- Sipariş detayı: 2 sütunlu kompakt düzen --- */
.admin-order-page { padding: 1rem 0 1.5rem; }
.admin-order-grid { display: grid; gap: 0; }
.admin-order-col { min-width: 0; }
@media (min-width: 1000px) {
  .admin-order-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 0 var(--space-3);
    align-items: start;
  }
}
.admin-order-head { margin-bottom: var(--space-3); }
.admin-order-head-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
}
.admin-order-head-row h1 {
  margin: 0;
  font-size: 1.2rem;
  font-family: ui-monospace, Menlo, monospace;
  letter-spacing: -0.01em;
}
.admin-order-head-row .btn { margin-left: auto; padding: 0.4rem 0.9rem; font-size: 0.85rem; }
.admin-order-siblings { margin: 0.5rem 0 0 !important; font-size: 0.85rem; }

/* Kompakt panel: sipariş detayında bilgi yoğunluğunu artırır */
.panel-compact { padding: 0.85rem 1rem; margin-bottom: var(--space-3); }
.panel-compact h2 { font-size: 1.02rem; margin: 0 0 0.45rem; }
.panel-compact .hint { font-size: 0.84rem; margin: 0 0 0.7rem; line-height: 1.4; }
.panel-compact .field { margin-bottom: 0.6rem; }
.panel-compact .field label { font-size: 0.86rem; margin-bottom: 3px; }
.panel-compact .summary-list li { padding: 0.32rem 0; font-size: 0.87rem; }
.panel-compact .btn { padding: 0.45rem 1rem; font-size: 0.88rem; }
@media (min-width: 560px) {
  .panel-compact { padding: 1rem 1.15rem; }
}

/* Onay önizleme: dik ve büyük görsel (admin-image-current'ın 120px kuralına takılmamalı) */
.approval-preview { margin: 0 0 0.7rem; }
.approval-preview img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: #fff;
}
.approval-actions { display: flex; flex-wrap: wrap; gap: 0.45rem; }

/* Renk seçimi: dropdown + küçük önizleme kutucuğu */
.color-pick-row { display: flex; align-items: center; gap: 0.55rem; }
.color-pick-row select { flex: 1 1 auto; min-width: 0; }
.color-swatch {
  flex: 0 0 auto;
  width: 2rem;
  height: 2rem;
  border-radius: 8px;
  border: var(--border-w) solid var(--border);
  background: var(--clay-light);
}

.admin-image-current {
  margin: 0 0 1rem;
}
/* display:block, [hidden]'ın UA display:none'ını ezerdi — boş daire görünüyordu. */
.admin-image-current img[hidden] { display: none; }
.admin-image-current img {
  display: block;
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 50%;
  border: var(--border-w) solid var(--border);
}
.admin-delivery-total {
  margin: 0 0 1rem;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  border: var(--border-w) solid var(--border);
  background: #f6f3ee;
  font-weight: 700;
}
.admin-delivery-choices {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1.25rem;
  margin-top: 0.35rem;
}
.admin-delivery-choice {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 700;
  cursor: pointer;
}
.label-like {
  display: block;
  font-weight: 700;
  margin-bottom: 0.25rem;
}
.admin-danger-panel { border-color: #e8a0a0; }
.admin-danger-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  align-items: center;
}
.admin-inline-form { margin: 0; display: inline; }
.btn-warn {
  background: #ffe8a8;
  color: var(--ink);
  border: var(--border-w) solid #e0c060;
}
.btn-warn:hover { filter: brightness(0.97); }
.btn-danger {
  background: #c43c3c;
  color: #fff;
  border: var(--border-w) solid #a03030;
}
.btn-danger:hover { filter: brightness(1.05); }

/* Admin sipariş listesi — kompakt */
/* Admin sayfalar: müşteri sitesinden daha geniş */
.admin-bar ~ main.wrap,
main.wrap.admin-page {
  width: min(100% - 2rem, 1320px);
}

.admin-page { padding: 0.85rem 0 1.5rem; }
.admin-page-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem 1rem;
  margin-bottom: 0.65rem;
}
.admin-page-head h1 {
  margin: 0;
  font-size: 1.15rem;
  display: flex;
  align-items: center;
  gap: 0.45rem;
}
.admin-count {
  font-size: 0.75rem;
  font-weight: 800;
  background: var(--clay);
  color: var(--ink);
  padding: 0.15rem 0.45rem;
  border-radius: 999px;
  min-width: 1.4rem;
  text-align: center;
}
.admin-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
}
.admin-filters a {
  font-size: 0.78rem;
  font-weight: 700;
  text-decoration: none;
  color: var(--ink-muted);
  padding: 0.28rem 0.55rem;
  border-radius: 999px;
  border: 2px solid var(--border);
  background: #fff;
  line-height: 1.2;
}
.admin-filters a:hover { color: var(--ink); border-color: var(--accent); }
.admin-filters a.is-active {
  color: #fff;
  background: var(--ink);
  border-color: var(--ink);
}
table.data-compact {
  border-width: 2px;
  border-radius: 12px;
  font-size: 0.86rem;
}
table.data-compact th,
table.data-compact td {
  padding: 0.4rem 0.55rem;
  vertical-align: middle;
}
table.data-compact th {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  font-weight: 800;
  white-space: nowrap;
}
table.data-compact tbody tr.row-link { cursor: pointer; }
table.data-compact tbody tr.row-link:hover td { background: var(--clay-light); }
table.data-compact tbody tr:hover td { background: var(--clay-light); }
table.data-compact .code {
  font-weight: 800;
  font-family: ui-monospace, Menlo, monospace;
  font-size: 0.82rem;
  text-decoration: none;
  color: var(--ink);
  white-space: nowrap;
}
table.data-compact .code:hover { color: var(--accent-dark); text-decoration: underline; }
table.data-compact .num { font-variant-numeric: tabular-nums; font-weight: 700; white-space: nowrap; }
table.data-compact .muted { color: var(--ink-muted); font-size: 0.82rem; }
table.data-compact .date { white-space: nowrap; color: var(--ink-muted); font-size: 0.82rem; font-variant-numeric: tabular-nums; }
table.data-compact td:first-child,
table.data-compact td:last-child { white-space: nowrap; }
table.data-compact .empty { text-align: center; color: var(--ink-muted); padding: 1.25rem; }
table.data-compact .badge {
  padding: 0.12rem 0.45rem;
  font-size: 0.7rem;
  border-radius: 6px;
  white-space: nowrap;
}
table.data-compact .status-cell { white-space: nowrap; }
.table-wrap .file-cell { white-space: nowrap; }
.admin-page .table-wrap { overflow-x: visible; }

/* Parti satırı: kalıcı açık grup başlığı (aç/kapa yok) */
table.data-compact tr.batch-row { font-weight: 700; }
table.data-compact tr.batch-row td { background: var(--clay-light); }
table.data-compact .batch-mark {
  display: inline-block;
  color: var(--ink-muted);
  font-weight: 400;
}
table.data-compact tr.batch-child-row td:first-child { padding-left: 1.75rem; }

/* Genel toplam satırı */
table.data-compact tfoot .total-row td {
  background: var(--clay-light);
  border-top: 2px solid var(--border);
  font-weight: 800;
  padding-top: 0.55rem;
  padding-bottom: 0.55rem;
}
table.data-compact tfoot .total-row .muted { font-weight: 700; }

/* İçerik (xK xP xL) tek satırda kalsın */
table.data-compact .breakdown-cell {
  white-space: nowrap;
  min-width: 5.5rem;
  font-variant-numeric: tabular-nums;
}
.status-set {
  display: inline-flex;
  flex-wrap: nowrap;
  gap: 0.2rem;
  align-items: center;
}
.status-form { margin: 0; display: inline; }
.row-delete-form { margin: 0 0 0 0.35rem; display: inline; }
.row-delete-form .file-btn { font-size: 0.72rem; padding: 0.18rem 0.48rem; }
.status-chip {
  display: inline-block;
  margin: 0;
  padding: 0.18rem 0.4rem;
  font-size: 0.68rem;
  font-weight: 800;
  font-family: inherit;
  line-height: 1.2;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--ink-muted);
  cursor: pointer;
  white-space: nowrap;
}
button.status-chip:hover {
  filter: brightness(0.97);
  color: var(--ink);
}
.status-chip.odeme_bekleniyor { background: #ffe8a8; color: var(--ink); }
.status-chip.hazirlaniyor { background: #c8f0eb; color: var(--ink); }
.status-chip.kargoda { background: #d6e8ff; color: var(--ink); }
.status-chip.teslim_edildi { background: #d8f0e8; color: var(--ink); }
.status-chip.iptal { background: #ffd0d0; color: var(--ink); }
.status-chip.is-done,
.status-chip.is-current {
  background: #e8e8ec !important;
  color: #8a8699 !important;
  border-color: #d5d5dc;
}
.status-chip.is-current {
  cursor: default;
  font-weight: 800;
}
button.status-chip.is-done:hover {
  filter: none;
  background: #dedee4 !important;
  color: var(--ink) !important;
}

.file-actions {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.file-btn {
  border: var(--border-w) solid var(--border);
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.28rem 0.58rem;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
}
.file-btn:hover { filter: brightness(0.98); }
.file-btn.download {
  border-color: #c99212;
  background: #fff3cc;
  color: #6f4d00;
}
.file-btn.process {
  border-color: #3a9a90;
  background: #def4ef;
  color: #1d5c55;
}
.file-btn.process.is-active { background: #c8f0eb; }
.file-btn.reset {
  border-color: #c43c3c;
  background: #fde8e8;
  color: #8f1f1f;
}
table.data-compact tbody tr.row-link.file-downloaded td,
table.data-compact tbody tr.row-link.file-downloaded:hover td {
  background: #fff3cc;
}
table.data-compact tbody tr.row-link.file-processed td,
table.data-compact tbody tr.row-link.file-processed:hover td {
  background: #dff6ea;
}

.cargo-cell { min-width: 14rem; }
.cargo-form {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  margin: 0;
}
.cargo-input {
  flex: 1 1 8rem;
  min-width: 7rem;
  max-width: 12rem;
  height: 1.7rem;
  padding: 0 0.4rem;
  font-size: 0.75rem;
  font-family: ui-monospace, Menlo, monospace;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
}
.cargo-input:focus {
  outline: none;
  border-color: var(--accent);
}
.cargo-save {
  height: 1.7rem;
  padding: 0 0.45rem;
  font-size: 0.68rem;
  font-weight: 800;
  font-family: inherit;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: var(--clay-light);
  color: var(--ink);
  cursor: pointer;
  white-space: nowrap;
}
.cargo-save:hover { border-color: var(--accent); }

.legal-page { max-width: 640px; }
.legal-page h1 { margin-top: 0; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .confetti { display: none; }
}
