:root {
  --bg: #f5f4f0;
  --card: #fff;
  --ink: #1a2332;
  --muted: #667085;
  --line: #e6e3dc;
  --brand: #0094da;
  --brand-2: #0071a8;
  --brand-soft: #e7f5fc;
  --brand-line: #9fd4ef;
  --accent: #e36a1a;
  --accent-2: #c4550f;
  --accent-soft: #fff2e8;
  --accent-line: #f3c39a;
  --accent-ring: rgba(227, 106, 26, .2);
  --danger: #b42318;
  --warn: #b54708;
  --ok: #027a48;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(16,24,40,.05), 0 10px 28px rgba(16,24,40,.06);
  --shadow-sm: 0 1px 2px rgba(16,24,40,.05);
  --font: "Plus Jakarta Sans", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background:
    radial-gradient(1000px 380px at 6% -10%, rgba(0,148,218,.16) 0%, transparent 55%),
    radial-gradient(860px 340px at 100% 0%, rgba(227,106,26,.12) 0%, transparent 50%),
    linear-gradient(180deg, #faf9f6 0%, var(--bg) 42%);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
.wrap { width: min(720px, calc(100% - 2rem)); margin: 0 auto; }
main.wrap { flex: 1; padding: 1.4rem 0 5.5rem; }

/* Header */
.site-header {
  background: rgba(255,255,255,.92);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 1px 0 rgba(227,106,26,.06), var(--shadow-sm);
  backdrop-filter: blur(12px);
  position: sticky; top: 0; z-index: 20;
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding: .85rem 0;
}
.brand {
  display: inline-flex; align-items: center; gap: .7rem;
  color: var(--ink); text-decoration: none;
}
.brand:hover { text-decoration: none; }
.brand-mark { display: inline-flex; flex-shrink: 0; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name { font-weight: 700; font-size: 1.08rem; letter-spacing: -.03em; color: var(--brand); }
.brand-tag {
  font-size: .72rem; font-weight: 600; letter-spacing: .08em;
  text-transform: uppercase; color: var(--accent); margin-top: .12rem;
}
.site-nav { display: flex; gap: .4rem; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
.nav-link {
  display: inline-flex; align-items: center; gap: .4rem; padding: .4rem .75rem;
  border-radius: 999px; font-size: .9rem; font-weight: 500; color: var(--ink);
}
.nav-link:hover { background: var(--accent-soft); color: var(--accent-2); text-decoration: none; }
.nav-link.is-active { background: var(--accent); color: #fff; }
.nav-link.is-active:hover { background: var(--accent-2); color: #fff; }
.nav-link-muted { color: var(--muted); }
.nav-ico {
  display: inline-flex; align-items: center; justify-content: center;
  width: 1.35rem; height: 1.35rem; border-radius: 999px; flex-shrink: 0;
}
.nav-ico svg { display: block; }
.nav-student {
  position: relative;
}
.nav-student-toggle {
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .3rem .7rem .3rem .35rem; border-radius: 999px;
  background: var(--brand-soft); color: var(--brand-2);
  border: 1px solid var(--brand-line);
  font: inherit; font-size: .82rem; font-weight: 600; white-space: nowrap;
  cursor: pointer;
}
.nav-student-toggle:hover { background: #d9f0fb; }
.nav-ico-student {
  color: #fff; background: var(--brand);
}
.nav-student-name {
  max-width: 160px; overflow: hidden; text-overflow: ellipsis;
}
.nav-student-tip {
  position: absolute; right: 0; top: calc(100% + .45rem);
  min-width: 14rem; max-width: 20rem;
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
  box-shadow: var(--shadow); padding: .7rem .85rem; z-index: 50;
  display: grid; gap: .45rem; white-space: normal;
}
.nav-student-tip[hidden] { display: none !important; }
.nav-student-tip::before {
  content: ""; position: absolute; left: 0; right: 0; top: -0.55rem; height: .55rem;
}
.nav-student-actions {
  display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .35rem; padding-top: .55rem;
  border-top: 1px solid var(--line);
}
.nav-student-actions .btn { text-decoration: none; }
.nav-student-tip div { display: grid; gap: .1rem; }
.nav-student-row {
  display: grid !important;
  grid-template-columns: 1fr 1fr;
  gap: .55rem !important;
  align-items: start;
}
.nav-student-tip span {
  font-size: .72rem; font-weight: 600; letter-spacing: .04em;
  text-transform: uppercase; color: var(--muted);
}
.nav-student-tip strong {
  font-size: .9rem; font-weight: 600; color: var(--ink);
  white-space: normal; word-break: break-word;
}
.nav-hint {
  font-size: .82rem; color: var(--muted); font-weight: 500;
  padding: .35rem .65rem; border: 1px dashed var(--accent-line); border-radius: 999px;
}
.nav-member { position: relative; }
.nav-member-toggle {
  display: inline-flex; align-items: center; gap: .4rem;
  border: 1px solid var(--accent-line);
  background: var(--accent-soft);
  color: var(--accent-2);
  cursor: pointer;
  font: inherit;
  font-weight: 600;
  padding: .3rem .7rem .3rem .35rem;
}
.nav-member-toggle:hover {
  background: #ffe8d6;
  color: var(--accent-2);
}
.nav-ico-member {
  color: #fff;
  background: var(--accent);
}
.nav-member-name {
  max-width: 140px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.nav-login .nav-ico-member {
  background: var(--brand);
}
.nav-caret {
  width: 0; height: 0; border-left: 4px solid transparent; border-right: 4px solid transparent;
  border-top: 5px solid currentColor; opacity: .7;
}
.nav-member-menu {
  position: absolute; right: 0; top: calc(100% + .35rem); min-width: 12.5rem;
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
  box-shadow: var(--shadow); padding: .35rem; z-index: 40;
  display: flex; flex-direction: column; gap: .1rem;
}
.nav-member-menu[hidden] { display: none !important; }
.nav-member-menu a {
  display: block; padding: .55rem .7rem; border-radius: 8px;
  color: var(--ink); font-size: .9rem; font-weight: 500; text-decoration: none;
}
.nav-member-menu a:hover { background: var(--accent-soft); color: var(--accent-2); text-decoration: none; }
.nav-member-menu a.is-danger { color: #b42318; }

.nav-staff { position: relative; }
.nav-staff-toggle {
  display: inline-flex; align-items: center; gap: .4rem;
  border: 1px solid #1b6ca8;
  background: #0094da;
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-weight: 600;
  padding: .3rem .75rem .3rem .4rem;
}
.nav-staff-toggle:hover {
  background: #007bb5;
  color: #fff;
  border-color: #007bb5;
}
.nav-ico-staff {
  display: inline-flex; align-items: center; justify-content: center;
  width: 1.5rem; height: 1.5rem; border-radius: 999px;
  background: rgba(255,255,255,.2); color: #fff;
}
.nav-staff-label {
  max-width: 180px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
@media (min-width: 900px) {
  .nav-staff-label { max-width: 240px; }
}
.nav-staff-menu {
  position: absolute; right: 0; top: calc(100% + .35rem); min-width: 13rem;
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
  box-shadow: var(--shadow); padding: .35rem; z-index: 40;
  display: flex; flex-direction: column; gap: .1rem;
}
.nav-staff-menu[hidden] { display: none !important; }
.nav-staff-menu a {
  display: block; padding: .55rem .7rem; border-radius: 8px;
  color: var(--ink); font-size: .9rem; font-weight: 500; text-decoration: none;
}
.nav-staff-menu a:hover { background: rgba(0,148,218,.1); color: #007bb5; text-decoration: none; }

/* Staff / yonetim */
.staff-summary-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: .65rem;
  margin: 0 0 1.15rem;
}
@media (max-width: 900px) {
  .staff-summary-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .staff-summary-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.staff-stat {
  padding: .75rem .7rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  min-width: 0;
}
.staff-stat-label {
  display: block;
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .02em;
  text-transform: uppercase;
  color: var(--ink-2);
  margin-bottom: .3rem;
  line-height: 1.25;
}
.staff-stat-value {
  display: block;
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.1;
  color: var(--ink);
}
.staff-rate-card {
  margin: 0 0 1.35rem;
  padding: 1rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(0,148,218,.06), #fff 55%);
}
.staff-rate-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: .75rem;
  margin-bottom: .55rem;
  font-size: .92rem;
  font-weight: 600;
  color: var(--ink);
}
.staff-rate-head strong { font-size: 1.2rem; color: #007bb5; }
.staff-rate-track {
  height: .55rem;
  border-radius: 999px;
  background: rgba(0,148,218,.12);
  overflow: hidden;
}
.staff-rate-fill {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: #0094da;
}
.staff-rate-note { margin: .55rem 0 0; font-size: .85rem; }
.staff-section-title {
  margin: 0 0 .65rem;
  font-size: 1rem;
  font-weight: 700;
  color: var(--ink);
}
.staff-mini-rate {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  min-width: 6.5rem;
  font-size: .85rem;
  font-weight: 600;
  color: var(--ink-2);
}
.staff-mini-rate-track {
  width: 3.5rem;
  height: .35rem;
  border-radius: 999px;
  background: rgba(0,148,218,.12);
  overflow: hidden;
}
.staff-mini-rate-fill {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: #0094da;
}
.staff-corp-bar {
  display: flex; flex-wrap: wrap; align-items: center; gap: .65rem;
  margin: 0 0 1rem; padding: .75rem 1rem;
  border: 1px solid var(--line); border-radius: 12px; background: var(--accent-soft);
}
.staff-corp-bar label { margin: 0; font-size: .85rem; font-weight: 600; color: var(--ink-2); }
.staff-corp-bar select { min-width: 220px; }
.staff-table-wrap { overflow-x: auto; margin: 0 0 1rem; }
.staff-table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.staff-table th, .staff-table td { padding: .55rem .65rem; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; }
.staff-table th { font-size: .78rem; text-transform: uppercase; letter-spacing: .02em; color: var(--ink-2); }
.staff-table tr:hover td { background: rgba(0,148,218,.04); }
.staff-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin: 0 0 1rem; }
.account-main .btn {
  box-sizing: border-box;
  min-height: 2.05rem;
  height: 2.05rem;
  padding: 0 .75rem;
  font-size: .82rem;
  font-weight: 600;
  line-height: 1;
  border-radius: 8px;
  box-shadow: none;
}
.account-main .btn:hover { box-shadow: none; }
.account-main .btn.btn-secondary { border-width: 1px; }
.staff-filter-inline {
  display: inline-flex; flex-wrap: nowrap; align-items: center; gap: .45rem;
  margin-left: auto; flex-shrink: 0; width: auto; max-width: 100%;
}
.staff-filter-inline label { margin: 0; font-size: .85rem; font-weight: 600; color: var(--ink-2); }
.staff-filter-inline .btn { flex: 0 0 auto; white-space: nowrap; }
.staff-purchase-filters { align-items: center; }
.account-main .staff-filter-control,
.account-main .staff-filter-inline select,
.account-main .staff-actions select {
  box-sizing: border-box;
  width: auto;
  min-width: 0;
  max-width: 12rem;
  flex: 0 0 auto;
  min-height: 2.05rem;
  height: 2.05rem;
  margin: 0;
  padding: 0 .65rem;
  font-size: .82rem;
  font-weight: 600;
  line-height: 1.2;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: none;
  vertical-align: middle;
}
.account-main .staff-filter-inline select { min-width: 140px; }
.account-main select.staff-filter-control { min-width: 9.5rem; max-width: 12rem; }
.account-main input.staff-filter-control[type="number"] { width: 4.5rem; max-width: 4.5rem; }
.account-main input.staff-filter-control[type="text"] { width: 5.5rem; max-width: 5.5rem; }
.account-main input.staff-search-input {
  width: 10rem; max-width: 42vw; min-width: 7rem;
}
.staff-row-actions { white-space: nowrap; }
.staff-row-actions a { margin-right: .65rem; }
.staff-row-actions a.is-danger { color: #b42318; }
.staff-search-empty { margin-top: -.5rem; margin-bottom: 1rem; }
@media (max-width: 720px) {
  .staff-actions { gap: .4rem; }
  .staff-filter-inline {
    margin-left: 0; width: 100%; justify-content: flex-start;
    flex-wrap: wrap;
  }
  .account-main input.staff-search-input {
    width: 100%; max-width: none; min-width: 0; flex: 1 1 8rem;
  }
  .staff-table-wrap {
    margin: 0 0 1rem;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fff;
    -webkit-overflow-scrolling: touch;
  }
  .staff-table { font-size: .84rem; }
  .staff-table th, .staff-table td { padding: .5rem .55rem; }
  #staffStudentTable th:nth-child(4),
  #staffStudentTable td:nth-child(4) { display: none; }
  .staff-row-actions a { display: inline-block; margin: .1rem .45rem .1rem 0; }
}
.account-main .staff-filter-control:focus,
.account-main .staff-filter-inline select:focus,
.account-main .staff-actions select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-ring);
}
.staff-filter-bar {
  display: flex; flex-wrap: wrap; align-items: center; gap: .65rem;
  margin: 0 0 1rem; padding: .75rem 1rem;
  border: 1px solid var(--line); border-radius: 12px; background: #f8fafc;
}
.staff-filter-bar label { margin: 0; font-size: .85rem; font-weight: 600; color: var(--ink-2); }
.staff-filter-bar select { min-width: 160px; }
.staff-form .stack > * + * { margin-top: .75rem; }
.staff-form label { display: block; font-size: .85rem; font-weight: 500; margin-bottom: .25rem; }
.staff-badge {
  display: inline-block; padding: .15rem .45rem; border-radius: 999px;
  font-size: .75rem; font-weight: 600; background: #e8f5e9; color: #2e7d32;
}
.staff-badge.is-off { background: #f5f5f5; color: #757575; }
.staff-price-custom { color: #e65100; font-weight: 700; }
.staff-product-block { margin: 0 0 1.35rem; }
.staff-product-title {
  margin: 0 0 .55rem; font-size: 1.05rem; font-weight: 700; color: var(--ink);
  letter-spacing: -.01em;
}
.staff-product-block .staff-table-wrap { margin-bottom: 0; }
.staff-switch-row {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: .7rem .85rem; border: 1px solid var(--line); border-radius: 12px; background: #f8fafc;
}
.staff-switch-label { margin: 0; font-size: .9rem; font-weight: 600; color: var(--ink); }
.staff-form label.staff-switch,
.staff-switch {
  display: inline-flex; align-items: center; gap: .65rem;
  margin: 0; margin-bottom: 0; font-size: .9rem; font-weight: 600;
  cursor: pointer; position: relative;
}
.staff-switch input[type="checkbox"] {
  position: absolute; left: 0; top: 0;
  width: 1px; height: 1px; margin: 0; padding: 0; border: 0;
  opacity: 0; appearance: none; -webkit-appearance: none;
  overflow: hidden; clip: rect(0, 0, 0, 0);
}
.staff-switch-track {
  display: block; flex: 0 0 auto; box-sizing: border-box;
  position: relative; width: 2.75rem; height: 1.55rem; border-radius: 999px;
  background: #c5cdd6; transition: background .2s ease;
  box-shadow: inset 0 1px 2px rgba(16,24,40,.12);
}
.staff-switch-thumb {
  position: absolute; top: .15rem; left: .15rem;
  width: 1.25rem; height: 1.25rem; border-radius: 50%;
  background: #fff; box-shadow: 0 1px 3px rgba(16,24,40,.25);
  transition: transform .2s ease; pointer-events: none;
}
.staff-switch input:checked + .staff-switch-track { background: #0094da; }
.staff-switch input:checked + .staff-switch-track .staff-switch-thumb { transform: translateX(1.2rem); }
.staff-switch input:focus-visible + .staff-switch-track {
  outline: 2px solid var(--accent-ring); outline-offset: 2px;
}
.staff-switch-text {
  flex: 0 0 auto; min-width: 3.2rem; margin: 0;
  font-size: .9rem; font-weight: 600; color: var(--ink-2); line-height: 1.2;
}
.staff-switch input:checked ~ .staff-switch-text { color: #007bb5; }
.field-hint { margin: .35rem 0 0; font-size: .8rem; color: var(--muted); }
.field-error { margin: .35rem 0 0; font-size: .8rem; color: #b42318; font-weight: 500; }
.staff-form input.is-invalid { border-color: #f04438; box-shadow: 0 0 0 3px rgba(240,68,56,.15); }

/* Account area */
.account-tabs {
  display: flex; flex-wrap: wrap; gap: .4rem; margin: 0 0 1rem;
}
.account-tab {
  display: inline-flex; align-items: center; padding: .45rem .8rem;
  border-radius: 999px; border: 1px solid var(--line); background: #fff;
  color: var(--ink); font-size: .88rem; font-weight: 500; text-decoration: none;
}
.account-tab:hover { border-color: var(--accent-line); background: var(--accent-soft); color: var(--accent-2); text-decoration: none; }
.account-tab.is-active { border-color: var(--accent); background: var(--accent); color: #fff; }
.account-tab.is-active:hover { background: var(--accent-2); border-color: var(--accent-2); color: #fff; }
.account-main { margin: 0 0 1.5rem; }
.account-list { display: grid; gap: .65rem; }
.account-item {
  position: relative;
  border: 1px solid var(--line); border-radius: 12px; padding: .9rem 1rem; background: #fff;
  color: inherit; text-decoration: none;
  transition: border-color .15s, background .15s, box-shadow .15s;
}
a.account-item:hover {
  border-color: var(--accent-line);
  background: var(--accent-soft);
  box-shadow: 0 8px 20px rgba(15, 23, 42, .06);
  text-decoration: none;
}
.account-item.is-active {
  border-color: var(--accent);
  background: linear-gradient(160deg, var(--accent-soft) 0%, #fff 72%);
  box-shadow: 0 0 0 1px var(--accent), 0 8px 18px rgba(227, 106, 26, .1);
}
.account-item.student-pick { padding-right: 2.4rem; }
.account-item.student-pick::after {
  content: "";
  position: absolute;
  top: 50%;
  right: .95rem;
  width: 1rem;
  height: 1rem;
  margin-top: -.5rem;
  border-radius: 50%;
  border: 2px solid var(--line);
  background: #fff;
  box-sizing: border-box;
}
.account-item.student-pick.is-active::after {
  border-color: var(--accent);
  background: var(--accent);
  box-shadow: inset 0 0 0 2px #fff;
}
.account-item-row {
  display: grid; gap: .65rem;
  grid-template-columns: repeat(auto-fit, minmax(7.5rem, 1fr));
  align-items: start;
}
.account-item-row .muted { display: block; font-size: .75rem; margin-bottom: .15rem; }
.account-item-row .price { color: var(--brand-2); }
.selected-students .step-note { margin-top: -.35rem; margin-bottom: .9rem; }
.selected-students-hint { margin-top: .4rem; font-size: .82rem; }
.state-pill {
  display: inline-flex; padding: .2rem .55rem; border-radius: 999px;
  background: var(--brand-soft); color: var(--brand-2); font-size: .8rem; font-weight: 600;
}
.state-pill.is-wait { background: #fff4e5; color: #9a5b00; }
.state-pill.is-answered { background: #e8f4fc; color: #0b6ea8; }
.state-pill.is-closed { background: #e8f6ee; color: #1b7a45; }
.state-pill.is-cancel { background: #fdecea; color: #b42318; }
.login-card { max-width: none; width: 100%; }

/* Typography */
.muted { color: var(--muted); }
h1 { font-size: clamp(1.55rem, 2.5vw, 1.9rem); margin: 0 0 .45rem; letter-spacing: -.02em; line-height: 1.2; }
h2 { font-size: 1.1rem; margin: 0 0 .75rem; letter-spacing: -.01em; }
.lead { color: var(--muted); margin: 0 0 1.35rem; font-size: 1.02rem; max-width: 42rem; }

/* Hero */
.hero {
  display: grid; gap: 1rem; margin-bottom: 1.25rem;
}
.hero-copy {
  background:
    linear-gradient(135deg, rgba(227,106,26,.92) 0%, rgba(227,106,26,.35) 42%, transparent 68%),
    linear-gradient(145deg, #0094da 0%, #0071a8 100%);
  color: #fff; border-radius: var(--radius); padding: 1.4rem 1.5rem;
  box-shadow: 0 12px 28px rgba(0,148,218,.18), 0 8px 18px rgba(227,106,26,.12);
}
.hero-copy h1 { color: #fff; margin-bottom: .4rem; }
.hero-copy .lead { color: rgba(255,255,255,.88); margin-bottom: 1rem; }
.hero-points { list-style: none; margin: 0; padding: 0; display: grid; gap: .45rem; }
.hero-points li {
  display: flex; gap: .55rem; align-items: flex-start;
  font-size: .92rem; color: rgba(255,255,255,.95);
}
.hero-points li::before {
  content: ""; width: .55rem; height: .55rem; margin-top: .4rem;
  border-radius: 50%; background: #fff; flex-shrink: 0; box-shadow: 0 0 0 3px rgba(255,255,255,.25);
}
.hero-panel {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow); padding: 1.25rem;
}
.hero-panel,
.panel-center {
  text-align: center;
}
.hero-panel h2,
.panel-center h2,
.panel-center h1 { margin-bottom: .9rem; }
.hero-panel label,
.panel-center label { text-align: center; }
.hero-panel .field-hint,
.panel-center .field-hint,
.panel-center .step-note,
.panel-center .form-hint { text-align: center; }
.hero-panel .btn-block,
.panel-center .btn-block {
  width: auto;
  min-width: 12rem;
  margin-left: auto;
  margin-right: auto;
  display: inline-flex;
}
.panel-center .stack {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.panel-center .stack > div { width: 100%; }
.panel-center .name-check { width: 100%; }
.panel-center .input-fit { margin-left: auto; margin-right: auto; display: block; }
.panel-center .otp-row {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: .35rem;
  width: auto;
  margin: 0 auto;
}
.panel-center .otp-row .otp-digit {
  margin: 0;
  display: inline-block;
  flex: 0 0 auto;
}
.panel-center .alert { text-align: left; width: 100%; }
.panel-center .row { width: 100%; max-width: 28rem; margin-left: auto; margin-right: auto; text-align: left; }
.panel-center .row label { text-align: left; }
.panel-center .legal-comfirm {
  text-align: left;
  max-width: 32rem;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
}
.tc-otp {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: center;
  gap: .28rem;
  overflow-x: auto;
  padding-bottom: .15rem;
  -webkit-overflow-scrolling: touch;
}
.gsm-otp {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: center;
  gap: .2rem;
  overflow-x: auto;
  padding-bottom: .15rem;
  -webkit-overflow-scrolling: touch;
}
.gsm-prefix {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 2.55rem;
  padding: 0 .7rem;
  margin-right: .2rem;
  border: 1px dashed var(--line);
  border-radius: 9px;
  background: #f3f1eb;
  color: var(--muted);
  font-weight: 700;
  font-size: .95rem;
  letter-spacing: .03em;
  user-select: none;
  flex-shrink: 0;
}
.gsm-otp .gsm-gap {
  width: .18rem;
  flex-shrink: 0;
}
.gsm-otp .otp-box {
  width: 1.95rem;
  height: 2.4rem;
  font-size: 1.05rem;
  flex-shrink: 0;
}
@media (max-width: 420px) {
  .gsm-otp .otp-box {
    width: 1.55rem;
    height: 2.05rem;
    font-size: .9rem;
  }
  .gsm-prefix {
    height: 2.05rem;
    padding: 0 .4rem;
    font-size: .78rem;
    margin-right: .1rem;
  }
  .tc-otp .is-masked { display: none; }
  .tc-otp .otp-box.tc-digit {
    width: 2rem;
    height: 2.35rem;
  }
}
@media (max-width: 480px) {
  .pay-choices { grid-template-columns: 1fr; }
  .tc-otp .is-masked { display: none; }
}

/* Cards & forms */
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.3rem;
  margin-bottom: 1rem;
}
.stack > * + * { margin-top: .9rem; }
label { display: block; font-size: .85rem; font-weight: 600; margin-bottom: .35rem; }
input, select, textarea {
  width: 100%; padding: .72rem .85rem; border: 1px solid var(--line);
  border-radius: 10px; font: inherit; background: #fff; transition: border-color .15s, box-shadow .15s;
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-ring);
}
/* Short fields sized to expected content length */
.input-fit {
  width: calc(var(--chars, 6) * 1.35ch + 1.7rem);
  max-width: 100%;
  display: inline-block;
  vertical-align: top;
  letter-spacing: .08em;
  font-variant-numeric: tabular-nums;
}
.otp-box,
.name-check .letter-box {
  width: 2.15rem;
  height: 2.55rem;
  padding: 0;
  text-align: center;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0;
  border-radius: 9px;
  caret-color: var(--accent);
  font-variant-numeric: tabular-nums;
}
.otp-box { text-transform: uppercase; }
.name-check .letter-box.is-revealed { text-transform: uppercase; }
.otp-box.is-masked,
.name-check .letter-box.is-revealed {
  background: #f3f1eb;
  color: var(--muted);
  border-style: dashed;
  cursor: default;
  box-shadow: none;
}
.otp-box:not(.is-masked):focus,
.name-check .letter-box:not(.is-revealed):focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-ring);
}
.otp-row {
  display: inline-flex;
  gap: .35rem;
  justify-content: center;
  align-items: center;
  flex-wrap: nowrap;
}
.otp-row .otp-digit {
  width: 2.15rem;
  height: 2.55rem;
  min-width: 0;
  margin: 0;
  padding: 0;
  text-align: center;
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0;
  flex: 0 0 auto;
}
@media (max-width: 420px) {
  .otp-box,
  .name-check .letter-box {
    width: 1.9rem;
    height: 2.3rem;
    font-size: 1.05rem;
  }
}
.btn:focus-visible, .school-option:focus-visible, a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
textarea { min-height: 90px; resize: vertical; }
.row { display: grid; gap: .75rem; }
@media (min-width: 640px) {
  .row-2 { grid-template-columns: 1fr 1fr; }
  .row-3 { grid-template-columns: 1fr 1fr 1fr; }
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .4rem;
  border: 0; border-radius: 10px; padding: .78rem 1.15rem; font: inherit; font-weight: 600;
  cursor: pointer; background: var(--accent); color: #fff; text-decoration: none;
  box-shadow: 0 6px 16px rgba(227,106,26,.28);
  transition: background .15s, transform .15s, box-shadow .15s;
}
.btn:hover { background: var(--accent-2); text-decoration: none; color: #fff; box-shadow: 0 8px 20px rgba(196,85,15,.3); }
.btn:active { transform: translateY(1px); }
.btn-secondary {
  background: #fff; color: var(--ink); border: 1px solid var(--line); box-shadow: none;
  padding: .4rem .75rem; font-size: .82rem; font-weight: 600;
  min-height: 0; border-radius: 8px;
}
.btn-secondary:hover { background: #faf8f4; color: var(--ink); box-shadow: none; border-color: var(--accent-line); }
.panel-center .btn-secondary.btn-block,
.hero-panel .btn-secondary.btn-block {
  min-width: 8rem;
  padding: .4rem .75rem;
  font-size: .82rem;
}
.btn-block { width: 100%; }
.btn[disabled], .btn.disabled { opacity: .5; cursor: not-allowed; box-shadow: none; }

/* Alerts */
.alert {
  padding: .9rem 1rem; border-radius: 10px; border: 1px solid;
  margin-bottom: 1rem; font-size: .95rem;
}
.alert-error { background: #fef3f2; border-color: #fecdca; color: var(--danger); }
.alert-ok { background: #ecfdf3; border-color: #abefc6; color: var(--ok); }
.alert-info { background: var(--brand-soft); border-color: var(--brand-line); color: var(--brand-2); }

/* Page head + compact product list (no long descriptions) */
.page-head {
  display: flex; flex-wrap: wrap; justify-content: space-between;
  gap: .75rem 1.25rem; align-items: flex-start; margin-bottom: 1rem;
}
.page-head h1 { margin-bottom: .15rem; }
.page-head-lead { margin: 0; font-size: .95rem; }
.staff-page-head { margin: 0 0 1rem; }
.staff-page-head h1 { margin: 0; font-size: 1.35rem; }
.student-pill {
  display: flex; flex-wrap: wrap; gap: .2rem .55rem; align-items: center;
  padding: .45rem .75rem; border-radius: 999px;
  background: var(--accent-soft); border: 1px solid var(--accent-line);
  color: var(--accent-2); font-size: .82rem; max-width: 100%;
}
.student-pill strong { color: var(--ink); font-weight: 600; }
.student-pill span + span::before { content: "·"; margin-right: .55rem; color: var(--muted); }

.product-list-card { padding: 0; overflow: hidden; }
.product-list { display: flex; flex-direction: column; }
.product-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: .75rem 1rem;
  align-items: center;
  padding: .85rem 1.1rem;
  border-bottom: 1px solid var(--line);
  background: #fff;
  transition: background .12s;
}
.product-row:last-child { border-bottom: 0; }
.product-row:hover { background: #faf8f4; }
.product-row.is-selected { background: var(--accent-soft); }
.product-row.is-owned { opacity: .72; }
.product-info { min-width: 0; }
.product-name {
  font-weight: 600; font-size: .98rem; letter-spacing: -.01em;
  display: flex; flex-wrap: wrap; align-items: center; gap: .35rem;
}
.product-meta { font-size: .78rem; margin-top: .15rem; }
.product-price {
  font-weight: 700; white-space: nowrap; color: var(--brand-2); font-size: 1.05rem;
  text-align: right;
}
.product-price span { font-size: .82rem; font-weight: 600; color: var(--muted); margin-left: .1rem; }
.product-action { justify-self: end; }
.btn-sm { padding: .5rem .9rem; font-size: .88rem; border-radius: 8px; box-shadow: none; }
.btn-sm:hover { box-shadow: none; }
.btn-danger-outline {
  background: #fff;
  color: #b42318;
  border: 1px solid #f0b4ae;
  box-shadow: none;
}
.btn-danger-outline:hover {
  background: #fdecea;
  color: #912018;
  border-color: #f0b4ae;
  box-shadow: none;
}

.checkout-bar {
  position: sticky; bottom: .85rem; z-index: 15;
  display: flex; align-items: center; justify-content: space-between; gap: .75rem;
  margin-top: 1rem; padding: .85rem 1rem;
  background: rgba(255,255,255,.96); border: 1px solid var(--line);
  border-radius: 14px; box-shadow: 0 10px 30px rgba(16,24,40,.12);
  backdrop-filter: blur(10px);
}
.checkout-bar-total { display: flex; flex-direction: column; gap: .1rem; line-height: 1.25; }
.checkout-bar-total .muted { font-size: .78rem; }
.checkout-bar-total strong { font-size: 1rem; color: var(--ink); }

/* Legacy product class (checkout summary vs.) */
.product {
  display: flex; justify-content: space-between; gap: 1rem; align-items: center;
  padding: .75rem 0; border-bottom: 1px solid var(--line);
}
.product:last-child { border-bottom: 0; }
.product .price { font-weight: 700; white-space: nowrap; color: var(--brand-2); }
.student-meta {
  display: flex; flex-wrap: wrap; gap: .35rem .75rem; align-items: center;
  padding: .65rem .85rem; margin-bottom: .85rem;
  background: var(--brand-soft); border: 1px solid var(--brand-line);
  border-radius: 10px; color: var(--brand-2); font-size: .9rem;
}
.student-meta strong { color: var(--ink); }
.badge {
  display: inline-block; font-size: .7rem; font-weight: 600;
  padding: .15rem .45rem; border-radius: 999px; background: #f2f4f7; color: var(--muted);
  vertical-align: middle;
}
.badge-owned { background: #fef3f2; color: var(--danger); }
.badge-cart { background: #ecfdf3; color: var(--ok); }

/* Chips / options */
.chips { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1rem; }
.chip {
  border: 1px solid var(--line); background: #fff; border-radius: 999px;
  padding: .4rem .85rem; font-size: .85rem; color: var(--ink);
}
.chip:hover { border-color: var(--accent-line); text-decoration: none; }
.chip.active { border-color: var(--accent); background: var(--accent-soft); color: var(--accent-2); font-weight: 600; }
.school-option {
  display: block; padding: .95rem 1rem; border: 1px solid var(--line);
  border-radius: 12px; margin-bottom: .55rem; background: #fff; color: inherit;
  transition: border-color .15s, background .15s;
}
.school-option:hover, .school-option.selected { border-color: var(--accent); background: var(--accent-soft); text-decoration: none; }
.actions { display: flex; flex-wrap: wrap; gap: .65rem; margin-top: 1rem; }
.pay-choices {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .65rem;
  margin-bottom: .75rem;
}
.pay-choice {
  display: flex; align-items: center; gap: .45rem;
  border: 1px solid var(--line); border-radius: 12px;
  padding: .95rem 1rem; margin-bottom: 0; cursor: pointer; background: #fff;
  transition: border-color .15s, background .15s;
}
.pay-choice.selected { border-color: var(--accent); background: var(--accent-soft); }
.pay-choice input { width: auto; margin: 0; }
.pay-choice strong { font-size: .95rem; }
.bank-card {
  border: 1px solid var(--line); border-radius: 12px; padding: 1rem; margin: .75rem 0;
  cursor: pointer;
}
.bank-card.selected { border-color: var(--accent); background: var(--accent-soft); }
.bank-card .iban { font-family: ui-monospace, Consolas, monospace; font-size: .95rem; word-break: break-all; }
.bank-card-iban-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .45rem .65rem;
  margin: .55rem 0;
}
.bank-card-iban-label {
  font-size: .8rem;
  font-weight: 700;
  color: var(--muted);
  letter-spacing: .04em;
}
.bank-item__iban-copy {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  width: fit-content;
  max-width: 100%;
  padding: .42rem .58rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #faf9f6;
  color: var(--ink);
  font-family: ui-monospace, Consolas, monospace;
  font-size: .9rem;
  letter-spacing: .02em;
  cursor: copy;
  transition: border-color .15s, background .15s, box-shadow .15s;
}
.bank-item__iban-copy:hover,
.bank-item__iban-copy:focus {
  border-color: var(--accent);
  background: #fff;
  box-shadow: 0 0 0 4px var(--accent-ring);
  outline: none;
}
.bank-item__iban-text {
  min-width: 0;
  overflow-wrap: anywhere;
  font-weight: 600;
}
.bank-item__copy-label {
  flex: 0 0 auto;
  padding: .22rem .46rem;
  border-radius: 999px;
  background: rgba(26, 35, 50, .06);
  color: var(--muted);
  font-family: var(--font);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: 0;
}
.bank-item__iban-copy.copied .bank-item__copy-label {
  color: var(--ok);
  background: rgba(2, 122, 72, .12);
}
.totals {
  display: flex; justify-content: space-between; align-items: center;
  font-weight: 700; font-size: 1.05rem; padding: .9rem 0 0; border-top: 1px solid var(--line);
}
.totals strong, .totals .total-value { color: var(--brand-2); font-size: 1.15rem; }
.hidden { display: none !important; }
.form-hint { font-size: .8rem; color: var(--muted); margin-top: .25rem; }
.address-item {
  border: 1px solid var(--line); border-radius: 12px; padding: .9rem; margin-bottom: .5rem; cursor: pointer;
}
.address-item.selected { border-color: var(--accent); background: var(--accent-soft); }
.credit-card-form .row { margin-bottom: .5rem; }
.cc-meta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 1rem 1.25rem;
}
.cc-expiry {
  flex: 0 0 auto;
  min-width: 0;
}
.cc-expiry-inputs {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  gap: .28rem;
  width: max-content;
  max-width: 100%;
}
.cc-expiry-sep {
  color: var(--muted);
  font-weight: 600;
  line-height: 1;
  user-select: none;
  flex: 0 0 auto;
}
.cc-expiry .input-fit,
.cc-cvc .input-fit {
  margin: 0;
  flex: 0 0 auto;
  width: calc(var(--chars, 2) * 1.35ch + 1.7rem);
  max-width: none;
  display: inline-block;
}
.cc-form-layout {
  display: grid;
  gap: 1.25rem;
  align-items: start;
}
@media (min-width: 720px) {
  .cc-form-layout {
    grid-template-columns: minmax(0, 1fr) minmax(280px, 340px);
    gap: 1.5rem;
  }
}
.cc-form-preview {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding-top: .15rem;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
}
.cc-form-preview .card-wrapper {
  width: 100%;
  max-width: min(340px, 100%);
}
.cc-form-preview .jp-card-container {
  max-width: 100% !important;
  width: 100% !important;
  min-width: 0 !important;
}
.cc-form-preview .jp-card {
  min-width: 0 !important;
  max-width: 100%;
}
.step-note { font-size: .9rem; color: var(--muted); margin-bottom: 1rem; }
.step-note-ok { color: var(--ok); font-weight: 600; }
.field-hint { display: block; margin-top: .4rem; font-size: .8rem; color: var(--muted); }
.addr-type-label { margin-bottom: .5rem; }
.addr-type-options {
  display: flex; gap: .65rem; flex-wrap: wrap;
}
.addr-type-option {
  display: inline-flex; align-items: center; gap: .45rem;
  margin: 0; padding: .55rem .85rem;
  border: 1px solid var(--line); border-radius: 10px;
  font-weight: 600; font-size: .9rem; cursor: pointer;
  background: #fff;
}
.addr-type-option:has(input:checked) {
  border-color: var(--accent); background: var(--accent-soft); color: var(--accent-2);
}
.addr-type-option input {
  width: auto; margin: 0; accent-color: var(--accent);
}
#address-form .select2-container { width: 100% !important; display: block; }
#address-form .select2-container--default .select2-selection--single {
  height: auto; min-height: 2.9rem;
  padding: .45rem .85rem; border: 1px solid var(--line); border-radius: 10px;
  background: #fff;
}
#address-form .select2-container--default .select2-selection--single .select2-selection__rendered {
  padding: 0; line-height: 1.5; color: var(--ink);
}
#address-form .select2-container--default .select2-selection--single .select2-selection__arrow {
  height: 100%; right: .55rem;
}
#address-form .select2-container--default.select2-container--focus .select2-selection--single,
#address-form .select2-container--default.select2-container--open .select2-selection--single {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-ring);
}
.select2-dropdown {
  border-color: var(--line); border-radius: 10px; overflow: hidden;
  font-family: var(--font);
}
.select2-container--default .select2-results__option--highlighted.select2-results__option--selectable {
  background: var(--accent); color: #fff;
}
.name-check {
  display: flex; align-items: center; justify-content: center; gap: .65rem; flex-wrap: wrap;
  margin: .5rem 0 1rem;
}
.name-school-meta {
  margin: -.35rem 0 1rem;
  font-size: .95rem;
  line-height: 1.45;
  text-align: center;
}
.panel-center .name-school-meta { width: 100%; }
.name-check .name-sep {
  width: .35rem; height: .35rem; border-radius: 50%; background: var(--line); flex-shrink: 0;
}
.name-part {
  display: inline-flex; align-items: center; gap: .28rem; flex-wrap: wrap;
}
.letter-quiz { gap: 1.15rem; align-items: flex-end; }
.letter-quiz-item { display: grid; justify-items: center; gap: .35rem; }
.letter-quiz-item label {
  margin: 0; font-size: .8rem; font-weight: 600; color: var(--muted); white-space: nowrap;
}

/* Footer */
.site-footer {
  margin-top: auto;
  border-top: 1px solid var(--brand-line);
  background:
    linear-gradient(180deg, rgba(231,245,252,.55) 0%, rgba(255,255,255,.92) 48%);
}
.footer-inner {
  display: flex;
  flex-direction: column;
  gap: .75rem;
  padding: 1.15rem 0 1.4rem;
}
.footer-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: .75rem 1.25rem;
}
.footer-brand {
  display: flex;
  flex-direction: column;
  gap: .25rem;
  min-width: min(100%, 16rem);
}
.footer-name {
  color: var(--brand-2);
  font-size: 1.02rem;
  font-weight: 700;
  letter-spacing: -.02em;
  line-height: 1.25;
}
.footer-copy {
  color: var(--muted);
  font-size: .82rem;
}
.footer-contact {
  display: flex;
  flex-direction: column;
  gap: .08rem;
  align-items: flex-end;
}
.footer-chip {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .25rem .4rem .25rem .25rem;
  border: 1px solid transparent;
  border-radius: 10px;
  background: transparent;
  box-shadow: none;
  text-decoration: none;
  color: var(--ink);
  transition: border-color .15s, background-color .15s, box-shadow .15s, transform .15s;
}
.footer-chip:hover {
  text-decoration: none;
  border-color: var(--brand-line);
  background: #fff;
  box-shadow: 0 4px 14px rgba(0, 113, 168, .1);
  transform: translateY(-1px);
}
.footer-chip-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.65rem;
  height: 1.65rem;
  border-radius: 8px;
  flex-shrink: 0;
  color: var(--brand-2);
  background: var(--brand-soft);
}
.footer-phone .footer-chip-icon {
  color: var(--accent-2);
  background: var(--accent-soft);
}
.footer-chip-value {
  font-size: .88rem;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: .01em;
  white-space: nowrap;
  line-height: 1.2;
}
.footer-mail .footer-chip-value {
  font-weight: 600;
  font-size: .84rem;
}
.footer-meta {
  display: flex;
  flex-direction: column;
  gap: .25rem;
  align-items: flex-end;
  text-align: right;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: .25rem .15rem;
  margin: 0;
  padding-top: .7rem;
  border-top: 1px solid var(--line);
}
.footer-links a {
  color: var(--muted);
  font-size: .8rem;
  text-decoration: none;
  padding: .15rem .5rem;
  border-radius: 999px;
}
.footer-links a:hover {
  color: var(--brand-2);
  background: var(--brand-soft);
  text-decoration: none;
}

@media (max-width: 640px) {
  .footer-top { flex-direction: column; align-items: stretch; }
  .footer-meta,
  .footer-contact { align-items: stretch; text-align: left; width: 100%; }
  .footer-chip { width: 100%; min-width: 0; }
  .footer-chip-value {
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
  }
}


/* Order wizard */
.wizard { display: flex; flex-direction: column; gap: .65rem; }
.wiz-step {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: box-shadow .15s, border-color .15s;
}
.wiz-step.is-active {
  box-shadow: var(--shadow);
  border-color: var(--accent-line);
}
.wiz-step.is-locked { opacity: .55; }
.wiz-step.is-done:not(.is-active) { box-shadow: none; }
.wiz-bar {
  display: flex; align-items: center; gap: .75rem;
  width: 100%; padding: .85rem 1rem; text-align: left;
  background: transparent; border: 0; color: inherit; text-decoration: none;
  cursor: pointer; font: inherit;
}
.wiz-step.is-locked .wiz-bar { cursor: not-allowed; }
.wiz-step.is-done:not(.is-active) .wiz-bar { padding: .55rem .9rem; background: #f8fbfe; }
.wiz-step.is-done:not(.is-active) .wiz-bar:hover { background: var(--accent-soft); text-decoration: none; }
.wiz-step.is-active .wiz-bar {
  background: linear-gradient(90deg, var(--accent-soft), #fff);
  border-bottom: 1px solid var(--line);
  cursor: default;
  pointer-events: none;
}
.wiz-num {
  flex-shrink: 0; width: 1.75rem; height: 1.75rem;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%; background: #e8eef5; color: var(--ink);
  font-weight: 700; font-size: .85rem;
}
.wiz-step.is-active .wiz-num { background: var(--accent); color: #fff; }
.wiz-step.is-done:not(.is-active) .wiz-num { background: var(--ok); color: #fff; font-size: 0; }
.wiz-step.is-done:not(.is-active) .wiz-num::before { content: "✓"; font-size: .85rem; }
.wiz-bar-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: .1rem; }
.wiz-title { font-weight: 700; font-size: .95rem; letter-spacing: -.01em; }
.wiz-step.is-done:not(.is-active) .wiz-title { font-size: .85rem; }
.wiz-summary {
  font-size: .82rem; color: var(--muted);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.wiz-step.is-done:not(.is-active) .wiz-summary { font-size: .78rem; }
.wiz-state {
  font-size: .72rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
  color: var(--accent-2); background: #fff; border: 1px solid var(--accent-line);
  padding: .2rem .5rem; border-radius: 999px;
}
.wiz-check { color: var(--ok); font-weight: 700; }
.wiz-lock { font-size: .85rem; opacity: .7; }
.wiz-body { padding: 1rem 1.1rem 1.15rem; }
.wiz-body .login-inline {
  margin: 0 auto;
  max-width: 100%;
}
.wiz-body .login-inline h2 {
  font-size: clamp(1.25rem, 2vw, 1.45rem);
  letter-spacing: -.02em;
}
.wiz-actions {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center;
  gap: .65rem; margin-top: 1rem; padding-top: .85rem; border-top: 1px solid var(--line);
}
.wiz-actions-note { font-size: .9rem; }
.wiz-section-title { font-size: 1rem; margin: .25rem 0 .75rem; }
.card-plain { border: 0; box-shadow: none; padding: 0; margin: 0; background: transparent; }
.order-mini {
  display: grid; gap: .55rem; margin-bottom: 1rem; padding: .75rem .9rem;
  background: var(--accent-soft); border: 1px solid var(--accent-line); border-radius: 10px;
}
.order-mini > div { display: flex; justify-content: space-between; gap: .75rem; font-size: .9rem; }
.addr-new {
  margin-top: 1rem; border: 1px dashed var(--line); border-radius: 10px; padding: .65rem .85rem;
}
.addr-new summary {
  cursor: pointer; font-weight: 600; color: var(--accent-2); list-style: none;
}
.addr-new summary::-webkit-details-marker { display: none; }

@media (max-width: 640px) {
  .header-inner { flex-wrap: wrap; gap: .55rem; padding: .65rem 0; }
  .site-nav { width: 100%; gap: .3rem; justify-content: flex-end; }
  .nav-member-name,
  .nav-staff-label,
  .nav-login-text,
  .nav-help-text,
  .nav-student-name { display: none; }
  .nav-member-toggle,
  .nav-staff-toggle,
  .nav-login,
  .nav-help,
  .nav-student-toggle {
    padding: .3rem .4rem;
  }
  .nav-hint { display: none; }
  .nav-student { max-width: none; }
  .page-head { flex-direction: column; }
  .product-row {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      "info price"
      "info action";
    gap: .35rem .75rem;
  }
  .product-info { grid-area: info; }
  .product-price { grid-area: price; align-self: start; }
  .product-action { grid-area: action; align-self: end; }
  .checkout-bar { bottom: .5rem; }
  .wiz-actions { flex-direction: column; align-items: stretch; }
  .wiz-actions .btn { width: 100%; }
}

/* Help / FAQ */
.help-section-title { margin: 0 0 1rem; }
.faq-list { display: grid; gap: .55rem; }
.faq-item {
  border: 1px solid var(--line); border-radius: 12px; background: #fff; overflow: hidden;
}
.faq-title {
  display: flex; width: 100%; align-items: center; justify-content: space-between; gap: .75rem;
  padding: .9rem 1rem; border: 0; background: transparent; font: inherit; font-weight: 600;
  text-align: left; cursor: pointer; color: var(--ink);
}
.faq-title::after {
  content: "+"; color: var(--accent); font-weight: 700; flex-shrink: 0;
}
.faq-item.is-open .faq-title::after { content: "–"; }
.faq-body {
  display: none; padding: 0 1rem 1rem; color: var(--muted); font-size: .95rem;
  border-top: 1px solid var(--line);
}
.faq-item.is-open .faq-body { display: block; padding-top: .85rem; }
.faq-body p { margin: 0 0 .55rem; }
.faq-body p:last-child { margin-bottom: 0; }

/* Legal agreements */
.legal-comfirm {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: .75rem;
  align-items: start;
  margin: 1rem 0;
  padding: .9rem 1rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  font-size: .92rem;
  line-height: 1.45;
  color: var(--ink);
}
.legal-comfirm .legal-check {
  width: 1.15rem;
  height: 1.15rem;
  margin-top: .15rem;
  accent-color: var(--brand);
}
.legal-comfirm a {
  color: var(--brand-2);
  font-weight: 600;
  text-decoration: underline;
  cursor: pointer;
}
.legal-comfirm a:hover { color: var(--accent-2); }
.order-legal { margin-top: 1.1rem; }
.legal-page .legal-doc-body { font-size: .95rem; line-height: 1.55; color: var(--ink); overflow-x: auto; -webkit-overflow-scrolling: touch; }
.legal-page .legal-doc-body p { margin: 0 0 .7rem; }
.legal-page .legal-doc-body table { width: 100%; border-collapse: collapse; margin: .75rem 0; font-size: .88rem; min-width: 16rem; }
.legal-page .legal-doc-body td, .legal-page .legal-doc-body th { border: 1px solid var(--line); padding: .4rem .5rem; vertical-align: top; }

.legal-modal {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.legal-modal[hidden] { display: none !important; }
.legal-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, .55);
}
.legal-modal-dialog {
  position: relative;
  z-index: 1;
  width: min(720px, 100%);
  max-height: min(86vh, 900px);
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 18px 50px rgba(0,0,0,.28);
  overflow: hidden;
}
.legal-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  padding: .9rem 1rem;
  border-bottom: 1px solid var(--line);
  background: var(--brand-soft);
}
.legal-modal-head h3 {
  margin: 0;
  font-size: 1.05rem;
  color: var(--brand-2);
}
.legal-modal-close {
  border: 0;
  background: transparent;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  color: var(--muted);
  padding: .1rem .35rem;
}
.legal-modal-body {
  padding: 1rem;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  font-size: .92rem;
  line-height: 1.5;
}
.legal-modal-body table { width: 100%; border-collapse: collapse; margin: .6rem 0; font-size: .85rem; min-width: 16rem; }
.legal-modal-body td, .legal-modal-body th { border: 1px solid var(--line); padding: .35rem .45rem; }
body.legal-modal-open { overflow: hidden; }

/* Order success */
.order-complete {
  text-align: center;
  padding: 1.75rem 1.25rem 1.4rem;
}
.order-complete__hero { margin-bottom: .85rem; }
.order-complete__eyebrow {
  margin: 0 0 .35rem;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--accent);
}
.order-complete__title {
  margin: 0 0 .25rem;
  color: var(--ok);
  font-size: clamp(1.75rem, 4.5vw, 2.35rem);
  letter-spacing: -.03em;
  line-height: 1.15;
}
.order-complete__subtitle {
  margin: 0;
  color: var(--ok);
  font-size: clamp(1.05rem, 2.5vw, 1.35rem);
  font-weight: 600;
}
.order-complete__lead {
  max-width: 34rem;
  margin: 1rem auto 0;
  text-align: center;
  font-size: .95rem;
}
.order-complete .orderno {
  margin: 1.35rem 0 0;
  font-size: clamp(1.55rem, 4vw, 2rem);
  font-weight: 800;
  color: var(--brand-2);
  line-height: 1.25;
  letter-spacing: -.02em;
}
.order-complete .orderno span {
  display: block;
  margin-bottom: .3rem;
  font-size: .85rem;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0;
}
.success-bank {
  margin: 1.35rem 0 0;
  padding: 1.1rem 0 0;
  border-top: 1px solid var(--line);
  text-align: left;
}
.success-bank > div {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .35rem .75rem;
  padding: .45rem 0;
  border-bottom: 1px solid #f0ede6;
}
.success-bank > div:last-child { border-bottom: 0; }
.success-bank > div > span:first-child {
  flex: 0 0 7.5rem;
  color: var(--muted);
  font-size: .85rem;
  font-weight: 600;
}
.success-bank > div > span:last-child {
  flex: 1 1 12rem;
  min-width: 0;
  font-weight: 600;
  color: var(--ink);
}
.order-complete__ship {
  margin-top: 1.25rem;
  text-align: left;
}
.success-order-detail {
  margin: 1.25rem 0 0;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fbfaf7;
  text-align: left;
}
.success-order-detail__head {
  font-size: .9rem;
  font-weight: 700;
  margin-bottom: .75rem;
  color: var(--brand-2);
}
.success-order-detail .order-detail-inner { margin: 0; }
.success-order-detail .order-detail-sh { margin-bottom: .75rem; }
.order-complete__actions {
  justify-content: center;
  margin-top: 1.25rem;
}

/* Orders list + detail */
.order-item { padding: 0; overflow: hidden; }
.order-item .order-pr {
  display: grid;
  width: 100%;
  gap: .65rem;
  grid-template-columns: repeat(auto-fit, minmax(7.5rem, 1fr));
  align-items: start;
  padding: .9rem 1rem;
  margin: 0;
  border: 0;
  background: transparent;
  text-align: left;
  font: inherit;
  color: inherit;
  cursor: pointer;
}
.order-item .order-pr:hover { background: var(--accent-soft); }
.order-item.is-open {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent-line);
}
.order-item.is-open .order-pr {
  background: linear-gradient(90deg, var(--accent-soft), #fff);
  border-bottom: 1px solid var(--line);
}
.order-detail {
  padding: 1rem;
  background: #fbfaf7;
  border-top: 1px solid var(--line);
}
.order-detail-sh {
  display: flex;
  flex-wrap: wrap;
  gap: .85rem 1rem;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1rem;
}
.order-detail-meta {
  display: grid;
  gap: .35rem;
  font-size: .9rem;
}
.order-detail-meta span {
  display: inline-block;
  min-width: 6.5rem;
  color: var(--muted);
  font-weight: 600;
  font-size: .8rem;
}
.order-detail-actions { display: flex; flex-wrap: wrap; gap: .5rem; }
.order-detail-adr {
  display: grid;
  gap: .75rem;
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
  margin-bottom: 1rem;
}
.order-detail-adr .title,
.order-detail-pnd .title {
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: .45rem;
}
.order-detail-adr > div,
.order-detail-pnd {
  padding: .75rem .85rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  font-size: .9rem;
  line-height: 1.45;
}
.order-detail-html span {
  color: var(--muted);
  font-weight: 600;
  margin-right: .25rem;
}
.order-detail-html strong { font-weight: 700; color: var(--ink); }
.order-detail-items {
  font-size: .9rem;
  line-height: 1.45;
  margin-top: .15rem;
}
.order-detail-items .itm {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: .35rem .75rem;
  padding: .55rem 0;
  border-bottom: 1px solid var(--line);
}
.order-detail-items .itm:last-child { border-bottom: 0; }
.order-detail-items .itm > div:first-child {
  flex: 1 1 12rem;
  font-weight: 700;
  min-width: 0;
}
.order-detail-items .itm > div:nth-child(2) {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: .85rem;
}
.order-detail-items .itm .price {
  flex: 0 0 auto;
  color: var(--ok);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.order-detail-items .itm .price::before { content: ""; }
.order-detail-items .itm .price::after { content: " TL"; font-weight: 600; font-size: .8rem; }
.order-detail-items .itm a {
  margin-left: .35rem;
  color: var(--brand);
  font-weight: 500;
  text-decoration: underline;
  font-size: .82rem;
}
.order-detail-items .item-exc {
  width: 100%;
  flex: 0 0 100%;
  margin: .25rem 0 0;
  padding-left: 1.1rem;
  color: var(--muted);
  font-size: .85rem;
}
.order-detail-items ol,
.order-detail-items ul { margin: .35rem 0 0; padding-left: 1.1rem; }

.order-action-desc { margin: 0 0 .75rem; color: var(--muted); font-size: .92rem; }
.order-action-title { font-weight: 700; margin: .75rem 0 .5rem; }
.btn-order-action-select {
  display: block;
  width: 100%;
  text-align: left;
  margin: 0 0 .45rem;
  padding: .7rem .85rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}
.btn-order-action-select:hover,
.btn-order-action-select.selected {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--accent-2);
}
#order-action-body { margin-top: .85rem; }
.btn-order-action-item {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .45rem .75rem;
  width: 100%;
  text-align: left;
  margin: 0 0 .45rem;
  padding: .7rem .85rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  font: inherit;
  cursor: pointer;
}
.btn-order-action-item.selected {
  border-color: var(--accent);
  background: var(--accent-soft);
}
.btn-order-action-item.is-disabled,
.btn-order-action-item:disabled {
  opacity: .55;
  cursor: not-allowed;
}
.btn-order-action-item .price { margin-left: auto; color: var(--brand-2); font-weight: 700; }
.btn-order-contents {
  color: var(--brand);
  font-size: .82rem;
  font-weight: 600;
  text-decoration: underline;
  cursor: pointer;
}
.action-item-contents { width: 100%; margin-top: .35rem; font-size: .85rem; }
.action-item-return-desc { width: 100%; font-size: .8rem; color: var(--muted); }

/* Support requests */
.req-item { padding: 0; overflow: hidden; }
.req-item .req-pr {
  display: grid;
  width: 100%;
  gap: .65rem;
  grid-template-columns: repeat(auto-fit, minmax(7rem, 1fr));
  align-items: start;
  padding: .9rem 1rem;
  margin: 0;
  border: 0;
  background: transparent;
  text-align: left;
  font: inherit;
  color: inherit;
  cursor: pointer;
}
.req-item .req-pr:hover { background: var(--accent-soft); }
.req-item.is-open,
.req-item.is-current {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent-line);
}
.req-item.is-open .req-pr {
  background: linear-gradient(90deg, var(--accent-soft), #fff);
  border-bottom: 1px solid var(--line);
}
.req-detail {
  padding: 1rem;
  background: #fbfaf7;
  border-top: 1px solid var(--line);
}
.req-detail-grid {
  display: grid;
  gap: .85rem;
  margin-bottom: .85rem;
}
.req-detail-label {
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: .3rem;
}
.req-note { white-space: pre-wrap; line-height: 1.45; }
.req-status-msg {
  margin: 0 0 .85rem;
  font-size: .9rem;
  font-weight: 600;
}
.req-status-msg.is-wait { color: #9a5b00; }
.req-status-msg.is-closed { color: #1b7a45; }
.req-status-msg.is-cancel { color: #b42318; }
.req-answers,
.req-items { margin-bottom: .9rem; }
.req-chat {
  display: grid;
  gap: .45rem;
}
.req-chat .from-me,
.req-chat .from-them {
  margin: 0;
  padding: .65rem .8rem;
  border-radius: 10px;
  font-size: .9rem;
  line-height: 1.45;
  white-space: pre-wrap;
}
.req-chat .from-me {
  background: var(--accent-soft);
  border: 1px solid var(--accent-line);
  justify-self: end;
  max-width: 92%;
}
.req-chat .from-them {
  background: #fff;
  border: 1px solid var(--line);
  justify-self: start;
  max-width: 92%;
}
.req-detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-top: .25rem;
}

