/* ==================================================================
   Ofis54 — stil dosyası
   ================================================================== */

:root {
  --bg: #f6f5ef;
  --bg-deep: #eeece2;
  --surface: #ffffff;
  --surface-soft: #faf9f5;
  --ink: #17211f;
  --ink-soft: #33413e;
  --muted: #697571;
  --line: #e3e1d7;
  --line-strong: #d3d0c3;
  --brand: #0f766e;
  --brand-dark: #0b5b55;
  --brand-soft: #e4f3f0;
  --brand-line: #b9ded8;
  --warm: #b45309;
  --warm-soft: #fdf1df;
  --danger: #b42318;
  --danger-soft: #fdeceb;
  --shadow-sm: 0 1px 2px rgba(23, 33, 31, .05);
  --shadow-md: 0 12px 34px rgba(23, 33, 31, .07);
  --shadow-lg: 0 30px 70px rgba(23, 33, 31, .16);
  --radius: 18px;
  --radius-sm: 11px;
  --sans: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { margin: 0; line-height: 1.15; letter-spacing: -.02em; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
a { color: var(--brand); }
button { font: inherit; }

[hidden] { display: none !important; }

.page-glow {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(720px 420px at 12% -8%, rgba(15, 118, 110, .10), transparent 65%),
    radial-gradient(620px 380px at 92% 4%, rgba(180, 83, 9, .07), transparent 60%),
    linear-gradient(180deg, rgba(255, 255, 255, .5), transparent 40%);
}

.wrap {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------------------------------------------------------------- */
/* Header                                                           */
/* ---------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid rgba(227, 225, 215, .8);
  background: rgba(247, 246, 241, .82);
  backdrop-filter: blur(14px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  height: 72px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--ink);
  text-decoration: none;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 13px;
  background: var(--brand);
  color: #fff;
  box-shadow: 0 8px 18px rgba(15, 118, 110, .25);
}

.brand-mark svg { width: 26px; height: 26px; }

.brand-text { display: flex; flex-direction: column; line-height: 1.12; }
.brand-text strong { font-size: 15.5px; letter-spacing: -.01em; }
.brand-text small { font-size: 11.5px; color: var(--muted); letter-spacing: .09em; text-transform: uppercase; }

.tabs {
  display: inline-flex;
  gap: 3px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.tab {
  border: 0;
  border-radius: 999px;
  background: transparent;
  padding: 8px 18px;
  color: var(--muted);
  font-weight: 600;
  font-size: 13.5px;
  cursor: pointer;
  transition: color .15s ease, background .15s ease;
}

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

.tab.is-active {
  background: var(--brand);
  color: #fff;
  box-shadow: 0 4px 12px rgba(15, 118, 110, .22);
}

/* ---------------------------------------------------------------- */
/* Hero                                                             */
/* ---------------------------------------------------------------- */
.view { padding: 46px 0 64px; animation: fade-up .45s ease both; }

@keyframes fade-up {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 34px;
}

.hero-copy { max-width: 620px; }

.eyebrow {
  display: inline-block;
  margin-bottom: 12px;
  color: var(--brand);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.hero h1, .page-head h1, .success-card h1 {
  font-family: var(--serif);
  font-size: clamp(34px, 4.4vw, 52px);
  font-weight: 500;
  letter-spacing: -.025em;
}

.hero h1 em {
  font-style: italic;
  color: var(--brand);
}

.lede {
  margin-top: 14px;
  max-width: 56ch;
  color: var(--muted);
  font-size: 16px;
}

.facts {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.facts li {
  min-width: 104px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, .72);
  box-shadow: var(--shadow-sm);
}

.facts strong {
  display: block;
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -.02em;
}

.facts span { color: var(--muted); font-size: 11.5px; letter-spacing: .04em; }

/* ---------------------------------------------------------------- */
/* Layout & cards                                                   */
/* ---------------------------------------------------------------- */
.layout {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(270px, .85fr);
  gap: 26px;
  align-items: start;
}

.card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-md);
}

.form-card { padding: 8px 28px 26px; }

.step { padding: 24px 0; border-bottom: 1px solid var(--line); }
.step:last-of-type { border-bottom: 0; }

.step-head {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 20px;
}

.step-no {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--brand-soft);
  color: var(--brand);
  font-size: 13px;
  font-weight: 700;
}

.step-head h2 { font-size: 19px; font-weight: 650; }
.step-head p { margin-top: 4px; color: var(--muted); font-size: 13.5px; }

/* Form alanları */
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.field:last-child { margin-bottom: 0; }

.field > label, .field > .label {
  color: var(--ink-soft);
  font-size: 12.5px;
  font-weight: 650;
  letter-spacing: .01em;
}

.optional { color: var(--muted); font-weight: 400; }

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="date"],
select,
textarea {
  width: 100%;
  padding: 11px 13px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 14.5px;
  transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}

input::placeholder, textarea::placeholder { color: #a3a9a5; }

input:hover, select:hover, textarea:hover { border-color: #bcb8a9; }

input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(15, 118, 110, .14);
}

textarea { resize: vertical; min-height: 60px; }

select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23697571' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 38px;
  cursor: pointer;
}

select:disabled { background-color: var(--surface-soft); color: #9aa29f; cursor: not-allowed; }

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

/* Sınıf seçimi */
.class-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}

.class-option {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 15px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  background: var(--surface-soft);
  text-align: left;
  cursor: pointer;
  transition: border-color .15s ease, background .15s ease, transform .15s ease, box-shadow .15s ease;
}

.class-option:hover { transform: translateY(-1px); border-color: #b9b5a6; }

.class-option.is-selected {
  border-color: var(--brand);
  background: var(--brand-soft);
  box-shadow: 0 0 0 3px rgba(15, 118, 110, .10);
}

.class-badge {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: #fff;
  border: 1px solid var(--line);
  color: var(--brand);
  font-family: var(--serif);
  font-weight: 700;
  font-size: 16px;
}

.class-option.is-selected .class-badge { background: var(--brand); border-color: var(--brand); color: #fff; }

.class-name { font-weight: 650; font-size: 14px; }

.class-status { color: var(--muted); font-size: 11.5px; line-height: 1.3; }
.class-option.is-selected .class-status { color: var(--brand-dark); }

.class-grid.compact { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-bottom: 0; }
.class-grid.compact .class-option { padding: 10px; gap: 4px; flex-direction: row; align-items: center; }
.class-grid.compact .class-badge { width: 26px; height: 26px; font-size: 13px; border-radius: 8px; }
.class-grid.compact .class-status { display: none; }

.hint-line {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.45;
}

.hint-line strong { color: var(--ink-soft); }

/* Uyarılar */
.alert {
  margin: 14px 0;
  padding: 11px 14px;
  border: 1px solid #f2c4bf;
  border-radius: var(--radius-sm);
  background: var(--danger-soft);
  color: var(--danger);
  font-size: 13px;
  line-height: 1.5;
}

/* Butonlar */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 650;
  text-decoration: none;
  cursor: pointer;
  transition: background .15s ease, transform .15s ease, box-shadow .15s ease, border-color .15s ease, color .15s ease;
}

.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--brand);
  color: #fff;
  box-shadow: 0 8px 20px rgba(15, 118, 110, .20);
}

.btn-primary:hover { background: var(--brand-dark); }
.btn-primary:disabled { background: #89b4ae; box-shadow: none; cursor: not-allowed; }

.btn-ghost {
  border-color: var(--line-strong);
  background: #fff;
  color: var(--ink-soft);
}

.btn-ghost:hover { background: var(--surface-soft); border-color: #bdb9aa; }

.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover { background: #931d13; }

.btn-block { width: 100%; margin-top: 4px; }

.btn.is-loading { pointer-events: none; opacity: .75; }

.form-footnote {
  margin-top: 12px;
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.5;
  text-align: center;
}

/* ---------------------------------------------------------------- */
/* Sidebar                                                          */
/* ---------------------------------------------------------------- */
.sidebar { display: flex; flex-direction: column; gap: 18px; position: sticky; top: 94px; }

.summary-card, .rules-card { padding: 22px; }

.summary-card h2, .rules-card h2, .lookup-card h2 {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -.005em;
}

.summary-list { margin: 16px 0 0; }

.summary-list > div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  padding: 9px 0;
  border-bottom: 1px dashed var(--line);
}

.summary-list > div:last-child { border-bottom: 0; }
.summary-list dt { color: var(--muted); font-size: 12.5px; }
.summary-list dd { margin: 0; font-weight: 650; font-size: 13.5px; text-align: right; }

.summary-note {
  display: flex;
  gap: 8px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.summary-note svg { flex: 0 0 auto; width: 17px; height: 17px; color: var(--brand); margin-top: 1px; }

.rules-card ul { margin-top: 14px; display: flex; flex-direction: column; gap: 11px; }

.rules-card li {
  position: relative;
  padding-left: 20px;
  color: var(--ink-soft);
  font-size: 12.8px;
  line-height: 1.5;
}

.rules-card li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 7px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--brand);
  opacity: .55;
}

/* ---------------------------------------------------------------- */
/* Başarı ekranı                                                    */
/* ---------------------------------------------------------------- */
.success-panel { display: flex; justify-content: center; padding-top: 10px; }
.success-card { width: min(680px, 100%); padding: 40px; text-align: center; }

.success-icon {
  display: grid;
  place-items: center;
  width: 62px;
  height: 62px;
  margin: 0 auto 18px;
  border-radius: 50%;
  background: var(--brand-soft);
  color: var(--brand);
}

.success-icon svg { width: 32px; height: 32px; }

.success-card .lede { margin: 12px auto 0; font-size: 14.5px; }
.success-card h1 { font-size: clamp(28px, 3.6vw, 40px); }

.ticket {
  display: flex;
  align-items: stretch;
  gap: 0;
  margin: 26px 0;
  border: 1px dashed var(--brand-line);
  border-radius: 16px;
  background: linear-gradient(135deg, var(--brand-soft), #f7fbfa 70%);
  text-align: left;
  overflow: hidden;
}

.ticket-main { flex: 1; padding: 20px 22px; }
.ticket-label { display: block; color: var(--brand-dark); font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; }
.ticket-main strong { display: block; margin: 4px 0 6px; font-family: var(--serif); font-size: 26px; letter-spacing: .02em; }
.ticket-date { color: var(--ink-soft); font-size: 13px; }

.ticket-side {
  flex: 0 0 190px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
  padding: 20px 22px;
  border-left: 1px dashed var(--brand-line);
  background: rgba(255, 255, 255, .55);
}

.ticket-side span { display: block; color: var(--muted); font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; }
.ticket-side strong { font-size: 14px; }

.success-actions { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; }
.muted { color: var(--muted); }
.small { font-size: 12.5px; }
#success-mail-note { margin-top: 18px; }

/* ---------------------------------------------------------------- */
/* Randevularım                                                     */
/* ---------------------------------------------------------------- */
.page-head { max-width: 640px; margin-bottom: 28px; }
.page-head h1 { font-size: clamp(30px, 4vw, 44px); }
.page-head .eyebrow { margin-bottom: 8px; }

.layout-my { grid-template-columns: minmax(260px, .72fr) minmax(0, 1.28fr); }
.lookup-card { padding: 24px; }

.lookup-card form { margin-top: 16px; }
.lookup-card .muted { margin-top: 14px; }

.results { display: flex; flex-direction: column; gap: 14px; min-height: 200px; }

.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 42px 26px;
  text-align: center;
  border-style: dashed;
  box-shadow: none;
  background: rgba(255, 255, 255, .55);
}

.empty-icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin-bottom: 6px;
  border-radius: 50%;
  background: var(--surface-soft);
  border: 1px solid var(--line);
  color: var(--muted);
}

.empty-icon svg { width: 26px; height: 26px; }
.empty-state h3 { font-size: 15.5px; }
.empty-state p { max-width: 34ch; color: var(--muted); font-size: 13px; }

.booking-card {
  padding: 18px 20px;
  animation: fade-up .3s ease both;
}

.booking-card.is-cancelled { opacity: .78; background: var(--surface-soft); }

.booking-grid {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) auto;
  gap: 18px;
  align-items: start;
}

.date-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px 6px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--surface-soft);
}

.date-block .dow { color: var(--warm); font-size: 10.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.date-block strong { font-family: var(--serif); font-size: 27px; line-height: 1.1; margin: 2px 0; }
.date-block .mon { color: var(--muted); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; }

.booking-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 5px; }

.pill {
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand-dark);
  font-size: 11px;
  font-weight: 650;
  letter-spacing: .02em;
}

.pill.pill-status { background: #eef1ef; color: var(--ink-soft); }
.booking-card.is-cancelled .pill-status { background: var(--danger-soft); color: var(--danger); }
.pill.pill-code { background: var(--warm-soft); color: var(--warm); }

.booking-title { font-size: 19px; font-weight: 700; letter-spacing: -.01em; }
.booking-meta { margin-top: 4px; color: var(--muted); font-size: 12.8px; }
.booking-person { margin-top: 8px; color: var(--ink-soft); font-size: 12.8px; }
.booking-note { margin-top: 6px; color: var(--muted); font-size: 12.5px; font-style: italic; }

.booking-actions { display: flex; flex-direction: column; gap: 7px; align-items: stretch; min-width: 132px; }

.btn-sm { padding: 8px 13px; font-size: 12.5px; border-radius: 9px; }

.lock-note {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  margin-top: 14px;
  padding: 9px 12px;
  border-radius: 9px;
  background: var(--warm-soft);
  color: #8a4a08;
  font-size: 11.8px;
  line-height: 1.45;
}

.lock-note svg { flex: 0 0 auto; width: 14px; height: 14px; margin-top: 1px; }

.reminder-line {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
  color: var(--muted);
  font-size: 11.5px;
}

.reminder-line svg { width: 14px; height: 14px; color: var(--brand); }

.results-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 2px;
  color: var(--muted);
  font-size: 12.5px;
}

/* ---------------------------------------------------------------- */
/* Toast                                                            */
/* ---------------------------------------------------------------- */
.toast {
  position: fixed;
  left: 50%;
  bottom: 26px;
  z-index: 80;
  transform: translate(-50%, 16px);
  max-width: min(460px, calc(100vw - 40px));
  padding: 12px 20px;
  border-radius: 12px;
  background: #17211f;
  color: #fff;
  font-size: 13px;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease, transform .2s ease;
}

.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }
.toast.is-error { background: var(--danger); }

/* ---------------------------------------------------------------- */
/* Dialog                                                           */
/* ---------------------------------------------------------------- */
.dialog {
  width: min(640px, calc(100vw - 32px));
  max-height: min(88vh, 860px);
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface);
  color: var(--ink);
  box-shadow: var(--shadow-lg);
  overflow-y: auto;
}

.dialog-sm { width: min(440px, calc(100vw - 32px)); }

.dialog::backdrop {
  background: rgba(23, 33, 31, .42);
  backdrop-filter: blur(3px);
}

.dialog[open] { animation: dialog-in .22s ease both; }

@keyframes dialog-in {
  from { opacity: 0; transform: translateY(10px) scale(.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.dialog-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}

.dialog-head h2 { font-family: var(--serif); font-size: 25px; font-weight: 550; }
.dialog-head .eyebrow { margin-bottom: 4px; }

.icon-btn {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--surface-soft);
  color: var(--muted);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}

.icon-btn:hover { background: #f0eee6; color: var(--ink); }

.dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 9px;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

/* ---------------------------------------------------------------- */
/* Footer                                                           */
/* ---------------------------------------------------------------- */
.site-footer { border-top: 1px solid var(--line); background: rgba(255, 255, 255, .45); }

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 20px;
  padding-bottom: 20px;
  color: var(--muted);
  font-size: 12px;
}

.footer-inner a { color: var(--muted); text-decoration: none; }
.footer-inner a:hover { color: var(--brand); }

/* ---------------------------------------------------------------- */
/* Duyarlı tasarım                                                  */
/* ---------------------------------------------------------------- */
@media (max-width: 960px) {
  .layout, .layout-my { grid-template-columns: 1fr; }
  .sidebar { position: static; flex-direction: row; flex-wrap: wrap; }
  .sidebar > .card { flex: 1 1 260px; }
  .hero { flex-direction: column; align-items: flex-start; gap: 22px; }
}

@media (max-width: 620px) {
  .wrap { padding: 0 16px; }
  .header-inner { height: 66px; }
  .brand-text small { display: none; }
  .tab { padding: 7px 13px; font-size: 12.5px; }
  .view { padding: 30px 0 46px; }
  .form-card { padding: 4px 18px 22px; }
  .class-grid { grid-template-columns: 1fr; }
  .class-option { flex-direction: row; align-items: center; gap: 12px; }
  .class-option .class-status { margin-left: auto; }
  .class-grid.compact { grid-template-columns: repeat(3, 1fr); }
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .sidebar { flex-direction: column; }
  .ticket { flex-direction: column; }
  .ticket-side { border-left: 0; border-top: 1px dashed var(--brand-line); flex-direction: row; gap: 26px; }
  .booking-grid { grid-template-columns: 58px minmax(0, 1fr); }
  .booking-actions { grid-column: 1 / -1; flex-direction: row; }
  .booking-actions .btn { flex: 1; }
  .success-card { padding: 28px 20px; }
  .facts { width: 100%; }
  .facts li { flex: 1 1 0; min-width: 0; padding: 11px 12px; }
  .dialog { padding: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* ==================================================================
   Yönetim paneli
   ================================================================== */
.admin-main { padding-top: 42px; padding-bottom: 64px; }

.admin-login { display: flex; justify-content: center; padding-top: 30px; }
.admin-login-card { width: min(460px, 100%); padding: 34px; }
.admin-login-card h1 { margin-bottom: 10px; font-family: var(--serif); font-size: 34px; font-weight: 500; }
.admin-login-card form { margin-top: 22px; }
.admin-login-card .muted.small { margin-top: 16px; }

code {
  padding: 1px 5px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: var(--surface-soft);
  font-family: ui-monospace, "Cascadia Code", Consolas, monospace;
  font-size: .92em;
}

.admin-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.admin-head h1 { font-family: var(--serif); font-size: clamp(28px, 4vw, 40px); font-weight: 500; }
.admin-head .eyebrow { margin-bottom: 4px; }
.admin-head-actions { display: flex; gap: 8px; flex-wrap: wrap; }

.mode-banner {
  margin-bottom: 16px;
  padding: 11px 15px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--surface-soft);
  color: var(--ink-soft);
  font-size: 12.5px;
}

.mode-banner.is-live { border-color: var(--brand-line); background: var(--brand-soft); color: var(--brand-dark); }
.mode-banner.is-demo { border-color: #f1d9b4; background: var(--warm-soft); color: #8a4a08; }

.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 18px;
}

.stat {
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.stat span { display: block; color: var(--muted); font-size: 11px; letter-spacing: .03em; }
.stat strong { display: block; margin-top: 2px; font-family: var(--serif); font-size: 24px; font-weight: 600; }

.admin-panel { padding: 22px; margin-bottom: 20px; }

.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.panel-head h2 { font-size: 16px; font-weight: 700; }

.admin-filters {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr)) auto;
  gap: 12px;
  align-items: end;
  margin-bottom: 18px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.admin-filters .field { margin-bottom: 0; }
.admin-filters .btn { height: 42px; }

.table-wrap { overflow-x: auto; }

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12.5px;
  white-space: nowrap;
}

.data-table th {
  padding: 9px 10px;
  border-bottom: 1px solid var(--line-strong);
  color: var(--muted);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  text-align: left;
}

.data-table td {
  padding: 11px 10px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.data-table tbody tr:last-child td { border-bottom: 0; }
.data-table tbody tr:hover { background: var(--surface-soft); }
.data-table tr.row-cancelled { opacity: .62; }

.cell-date { display: block; font-size: 13.5px; }
.cell-time { font-weight: 650; }
.cell-sub { display: block; margin-top: 1px; color: var(--muted); font-size: 11px; }
.cell-link { color: var(--ink-soft); text-decoration: none; }
.cell-link:hover { color: var(--brand); text-decoration: underline; }
.cell-detail { max-width: 230px; overflow: hidden; text-overflow: ellipsis; color: var(--muted); }

.status-dot {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  font-weight: 650;
}

.status-dot::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
}

.status-dot.is-ok { color: var(--brand); }
.status-dot.is-cancelled { color: var(--danger); }
.status-dot.is-past { color: var(--muted); }
.status-dot.is-locked { color: var(--warm); }

@media (max-width: 820px) {
  .admin-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .admin-filters .btn { grid-column: 1 / -1; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 520px) {
  .admin-main { padding-top: 28px; }
  .admin-login-card, .admin-panel { padding: 20px; }
  .admin-filters { grid-template-columns: 1fr; }
}

/* ==========================================================
   OFIS54 - Yonetici paneli fiyatlandirma tasarimi
   ========================================================== */

#prices-form {
  margin-top: 20px;
}

#prices-fields {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  align-items: stretch;
  margin: 0 0 20px;
  padding: 0;
  border: 0;
}

#prices-fields .field {
  min-width: 0;
  margin: 0;
  padding: 20px;
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 14px;
  transition: border-color .2s ease, box-shadow .2s ease;
}

#prices-fields .field:focus-within {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(15, 118, 110, .10);
}

#prices-fields label {
  display: block;
  margin-bottom: 12px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
}

#prices-fields input[type="number"] {
  display: block;
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
  padding: 13px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 19px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  transition: border-color .2s ease, box-shadow .2s ease;
}

#prices-fields input[type="number"]:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(15, 118, 110, .12);
}

#prices-save {
  min-height: 44px;
  padding: 12px 24px;
  font-weight: 700;
}

#prices-message {
  margin-top: 12px;
}

#bookings-total-panel {
  margin-top: 20px !important;
  padding: 22px !important;
  border: 1px solid var(--line) !important;
  border-radius: 14px;
  background: var(--surface-soft);
}

#bookings-total {
  color: var(--brand);
  font-size: clamp(20px, 3vw, 28px) !important;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

#bookings-total-note {
  margin-top: 10px;
}

@media (max-width: 760px) {
  #prices-fields {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  #prices-fields .field {
    padding: 16px;
  }

  #prices-save {
    width: 100%;
  }

  #bookings-total-panel > div {
    flex-wrap: wrap;
  }
}

