:root {
  --bg: #0b0d10;
  --bg-soft: #11151a;
  --panel: rgba(18, 22, 28, 0.82);
  --panel-strong: #151a20;
  --line: rgba(255, 255, 255, 0.09);
  --line-strong: rgba(255, 255, 255, 0.15);
  --text: #f6f7f9;
  --muted: #a8afb9;
  --subtle: #747d89;
  --accent: #ef7d6d;
  --accent-strong: #ff9b87;
  --accent-soft: rgba(239, 125, 109, 0.14);
  --success: #86d7ae;
  --danger: #ff8b8b;
  --warning: #f0c879;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.38);
  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --radius-sm: 12px;
  --shell: min(1120px, calc(100vw - 40px));
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 18% 10%, rgba(239,125,109,0.11), transparent 30rem),
    radial-gradient(circle at 82% 26%, rgba(120,88,255,0.08), transparent 34rem),
    var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

button, input, select { font: inherit; }
a { color: inherit; text-decoration: none; }
button { color: inherit; }

.shell { width: var(--shell); margin-inline: auto; }

.ambient {
  position: fixed;
  width: 26rem;
  height: 26rem;
  border-radius: 50%;
  filter: blur(110px);
  pointer-events: none;
  opacity: .18;
  z-index: -1;
}
.ambient-a { top: -12rem; left: -8rem; background: var(--accent); }
.ambient-b { right: -12rem; top: 24rem; background: #6857ff; opacity: .10; }

.site-header {
  min-height: 86px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-weight: 760;
  letter-spacing: -0.02em;
}

.brand-mark {
  width: 34px;
  height: 34px;
  border: 1px solid rgba(255,255,255,.17);
  border-radius: 11px;
  display: inline-grid;
  place-items: center;
  background: linear-gradient(145deg, rgba(255,255,255,.09), rgba(255,255,255,.025));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08);
  font-size: 11px;
  letter-spacing: -.04em;
}

.campus-badge,
.account-status,
.live-pill,
.selection-chip,
.workflow-state,
.floorplan-legend {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 32px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: rgba(255,255,255,.025);
  font-size: 13px;
}

.hero {
  min-height: 690px;
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(360px, .94fr);
  gap: 76px;
  align-items: center;
  padding: 66px 0 102px;
}

.eyebrow,
.visual-kicker,
.workflow-step {
  margin: 0 0 12px;
  color: var(--accent-strong);
  font-size: 11px;
  line-height: 1.2;
  font-weight: 780;
  letter-spacing: .17em;
  text-transform: uppercase;
}

.hero h1,
.app-intro h1,
.not-found h1 {
  margin: 0;
  font-size: clamp(48px, 6vw, 78px);
  line-height: .98;
  letter-spacing: -.055em;
  font-weight: 760;
}

.hero h1 span { color: #b4bbc5; }

.hero-text {
  max-width: 650px;
  margin: 30px 0 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.72;
}

.hero-actions { margin-top: 36px; }

.primary-button,
.secondary-button {
  border: 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  min-height: 54px;
  padding: 0 20px;
  border-radius: 15px;
  font-weight: 720;
  transition: transform .18s ease, background .18s ease, border-color .18s ease, opacity .18s ease;
}

.primary-button {
  color: #19110f;
  background: linear-gradient(135deg, var(--accent-strong), var(--accent));
  box-shadow: 0 12px 34px rgba(239,125,109,.18), inset 0 1px 0 rgba(255,255,255,.3);
}
.primary-button:hover:not(:disabled) { transform: translateY(-2px); }
.primary-button:focus-visible,
.secondary-button:focus-visible,
.venue-option:focus-visible,
.table-button:focus-visible {
  outline: 3px solid rgba(255,155,135,.34);
  outline-offset: 3px;
}
.primary-button:disabled { opacity: .42; cursor: not-allowed; box-shadow: none; }

.secondary-button {
  min-height: 46px;
  color: var(--text);
  border: 1px solid var(--line-strong);
  background: rgba(255,255,255,.035);
}
.secondary-button:hover { background: rgba(255,255,255,.065); }

.privacy-note {
  margin: 15px 2px 0;
  color: var(--subtle);
  font-size: 12px;
}

.hero-visual { position: relative; min-height: 470px; }

.visual-card {
  border: 1px solid var(--line);
  background: linear-gradient(160deg, rgba(28,34,42,.94), rgba(15,18,23,.96));
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255,255,255,.05);
}

.visual-card-main {
  position: absolute;
  inset: 42px 14px 24px 14px;
  padding: 24px;
  border-radius: var(--radius-xl);
  transform: rotate(1.2deg);
}

.visual-topline,
.visual-bottomline,
.floorplan-heading,
.workflow-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.visual-topline strong,
.floorplan-heading strong { display: block; font-size: 18px; margin-top: 2px; }
.visual-kicker { color: var(--subtle); margin: 0; letter-spacing: .11em; }

.live-pill { color: #bce9ce; }
.live-pill i,
.status-dot,
.floorplan-legend i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 4px rgba(134,215,174,.1);
}

.mini-floorplan {
  position: relative;
  height: 275px;
  margin: 24px 0;
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,.07);
  background:
    linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px),
    rgba(6,8,11,.46);
  background-size: 28px 28px;
  overflow: hidden;
}

.mini-bar {
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: 18px;
  min-height: 38px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  color: #777f89;
  background: rgba(255,255,255,.045);
  border: 1px solid rgba(255,255,255,.055);
  font-size: 10px;
  letter-spacing: .14em;
}

.mini-table {
  position: absolute;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.1);
  background: #171c22;
  color: #9ea6b0;
  font-size: 12px;
  font-weight: 750;
}
.mini-table.active {
  color: #1e100d;
  background: var(--accent);
  border-color: rgba(255,255,255,.26);
  box-shadow: 0 10px 22px rgba(239,125,109,.23);
}
.t1 { left: 14%; top: 18%; }
.t2 { left: 42%; top: 12%; }
.t3 { right: 13%; top: 23%; }
.t4 { left: 23%; top: 52%; }
.t5 { left: 52%; top: 51%; }
.t6 { right: 8%; top: 53%; }

.visual-bottomline { color: var(--muted); font-size: 13px; }
.selection-chip { color: #f5c1b8; border-color: rgba(239,125,109,.2); background: rgba(239,125,109,.08); }

.floating-card {
  position: absolute;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 13px 15px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: rgba(20,24,30,.94);
  box-shadow: 0 14px 34px rgba(0,0,0,.34);
  backdrop-filter: blur(14px);
}
.floating-card-a { top: 3px; right: -14px; }
.floating-card-b { left: -30px; bottom: 3px; }
.floating-icon { color: var(--accent-strong); }
.floating-card small,
.floating-card strong { display: block; }
.floating-card small { color: var(--subtle); font-size: 10px; }
.floating-card strong { margin-top: 1px; font-size: 12px; }

.how-it-works { padding: 58px 0 120px; }
.section-heading { max-width: 660px; }
.section-heading h2 { margin: 0; font-size: clamp(34px, 4vw, 52px); line-height: 1.05; letter-spacing: -.04em; }
.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 34px; }
.step-card {
  min-height: 230px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(255,255,255,.025);
}
.step-number { color: var(--accent-strong); font-size: 12px; font-weight: 780; }
.step-card h3 { margin: 70px 0 8px; font-size: 19px; letter-spacing: -.02em; }
.step-card p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.65; }

.site-footer {
  min-height: 84px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  color: var(--subtle);
  font-size: 12px;
}

/* App */
.app-page { background-color: var(--bg); }
.app-header { min-height: 76px; }
.account-status { color: #b8dfc7; }
.app-shell { max-width: 860px; padding: 74px 0 100px; }
.app-intro { margin-bottom: 32px; }
.app-intro h1 { font-size: clamp(42px, 7vw, 66px); }
.app-intro > p:last-child { max-width: 610px; margin: 20px 0 0; color: var(--muted); font-size: 16px; line-height: 1.65; }

.workflow-card {
  margin-top: 18px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: linear-gradient(160deg, rgba(23,28,34,.88), rgba(14,17,21,.92));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.035);
}
.workflow-card[hidden] { display: none; }
.workflow-head { padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.workflow-step { display: block; margin-bottom: 5px; color: var(--accent-strong); }
.workflow-head h2,
.success-stage h2 { margin: 0; font-size: 24px; letter-spacing: -.03em; }
.workflow-state { min-height: 30px; font-size: 12px; }

.venue-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 20px;
}

.venue-option {
  width: 100%;
  min-height: 96px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 17px;
  text-align: left;
  color: var(--text);
  background: rgba(255,255,255,.025);
  cursor: pointer;
  transition: border-color .16s ease, background .16s ease, transform .16s ease;
}
.venue-option:hover { transform: translateY(-1px); border-color: var(--line-strong); background: rgba(255,255,255,.04); }
.venue-option:disabled {
  opacity: .42;
  cursor: not-allowed;
  transform: none;
}

.venue-option:disabled:hover {
  transform: none;
  border-color: var(--line);
  background: rgba(255,255,255,.025);
}
.venue-option[aria-checked="true"] { border-color: rgba(239,125,109,.42); background: var(--accent-soft); box-shadow: inset 0 0 0 1px rgba(239,125,109,.08); }
.venue-option strong,
.venue-option span { display: block; }
.venue-option strong { font-size: 16px; }
.venue-option span { margin-top: 4px; color: var(--subtle); font-size: 12px; }
.venue-option[aria-checked="true"] span { color: #d2a39b; }

.workflow-actions { display: flex; justify-content: flex-end; margin-top: 20px; }
.button-element { min-width: 220px; }

.status-panel {
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.025);
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}
.status-panel[data-tone="success"] { border-color: rgba(134,215,174,.22); background: rgba(134,215,174,.07); color: #bce9ce; }
.status-panel[data-tone="warning"] { border-color: rgba(240,200,121,.22); background: rgba(240,200,121,.07); color: #e7d1a6; }
.status-panel[data-tone="danger"] { border-color: rgba(255,139,139,.22); background: rgba(255,139,139,.07); color: #ffb7b7; }

.table-stage { scroll-margin-top: 22px; }
.floorplan-wrap { margin-top: 20px; }
.floorplan-heading { margin-bottom: 14px; }
.floorplan-legend { font-size: 11px; min-height: 28px; }
.floorplan-legend i { background: var(--accent); box-shadow: none; }

.floorplan {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  min-height: 420px;
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 22px;
  overflow: hidden;
  background:
    linear-gradient(rgba(255,255,255,.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.022) 1px, transparent 1px),
    #0c0f13;
  background-size: 32px 32px;
}

.floorplan::before {
  content: "BAR";
  position: absolute;
  left: 5%;
  bottom: 5%;
  width: 46%;
  height: 11%;
  display: grid;
  place-items: center;
  color: #69717c;
  font-size: 10px;
  font-weight: 780;
  letter-spacing: .17em;
  border: 1px solid rgba(255,255,255,.055);
  border-radius: 12px;
  background: rgba(255,255,255,.035);
}

.floorplan::after {
  content: "GİRİŞ";
  position: absolute;
  right: 3%;
  bottom: 5%;
  min-width: 76px;
  height: 10%;
  display: grid;
  place-items: center;
  color: #646d77;
  font-size: 9px;
  letter-spacing: .13em;
  border-left: 2px solid rgba(255,255,255,.08);
}

.table-button {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: var(--w, 64px);
  height: var(--h, 64px);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 18px;
  color: #c4c9d0;
  background: #171c22;
  cursor: pointer;
  transform: translate(-50%, -50%);
  box-shadow: 0 8px 18px rgba(0,0,0,.18);
  transition: transform .15s ease, background .15s ease, border-color .15s ease, color .15s ease;
}
.table-button:hover { transform: translate(-50%, -50%) scale(1.04); border-color: rgba(255,255,255,.2); }
.table-button[aria-pressed="true"] { color: #21110e; background: var(--accent); border-color: rgba(255,255,255,.28); box-shadow: 0 10px 24px rgba(239,125,109,.23); }
.table-button .table-number { display: block; font-size: 15px; font-weight: 790; }
.table-button .table-seats { display: block; margin-top: 1px; font-size: 9px; opacity: .65; }

.table-button[data-table-id="E01"] { left: 13%; top: 18%; width: 64px; height: 64px; }
.table-button[data-table-id="E02"] { left: 31%; top: 18%; width: 64px; height: 64px; }
.table-button[data-table-id="E03"] { left: 49%; top: 18%; width: 64px; height: 64px; }
.table-button[data-table-id="E04"] { left: 69%; top: 18%; width: 64px; height: 64px; }
.table-button[data-table-id="E05"] { left: 87%; top: 21%; width: 76px; height: 58px; }
.table-button[data-table-id="E06"] { left: 20%; top: 43%; width: 64px; height: 64px; }
.table-button[data-table-id="E07"] { left: 41%; top: 43%; width: 64px; height: 64px; }
.table-button[data-table-id="E08"] { left: 64%; top: 43%; width: 76px; height: 58px; }
.table-button[data-table-id="E09"] { left: 86%; top: 45%; width: 64px; height: 64px; }
.table-button[data-table-id="E10"] { left: 18%; top: 67%; width: 64px; height: 64px; }
.table-button[data-table-id="E11"] { left: 44%; top: 66%; width: 76px; height: 58px; }
.table-button[data-table-id="E12"] { left: 76%; top: 67%; width: 64px; height: 64px; }

.selected-table-summary {
  margin-top: 14px;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border-radius: 14px;
  background: rgba(239,125,109,.075);
  border: 1px solid rgba(239,125,109,.18);
  color: #d9b0a8;
  font-size: 13px;
}
.selected-table-summary strong { color: #ffd0c7; }

.success-stage {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 18px;
}
.success-icon {
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  border-radius: 17px;
  color: #122018;
  background: var(--success);
  font-weight: 900;
}
.success-stage p { margin: 8px 0 0; color: var(--muted); font-size: 13px; }

.security-note {
  display: flex;
  gap: 11px;
  align-items: flex-start;
  margin-top: 18px;
  padding: 0 4px;
  color: var(--subtle);
  font-size: 12px;
}
.security-note p { margin: 0; }
.security-note strong { color: #939ba6; }

.not-found {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  max-width: 720px;
}
.not-found .brand-mark { margin-bottom: 28px; }
.not-found h1 { font-size: clamp(44px, 7vw, 70px); }
.not-found > p:not(.eyebrow) { max-width: 520px; color: var(--muted); margin: 18px 0 28px; }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; gap: 34px; padding-top: 48px; }
  .hero-visual { min-height: 440px; }
  .steps-grid { grid-template-columns: 1fr; }
  .step-card { min-height: auto; }
  .step-card h3 { margin-top: 38px; }
}

@media (max-width: 640px) {
  :root { --shell: min(100% - 28px, 1120px); }
  .site-header { min-height: 72px; }
  .campus-badge { display: none; }
  .hero { min-height: auto; padding: 54px 0 76px; }
  .hero h1 { font-size: clamp(46px, 15vw, 64px); }
  .hero-text { font-size: 16px; }
  .primary-button { width: 100%; }
  .hero-visual { min-height: 390px; }
  .visual-card-main { inset: 34px 0 24px; padding: 18px; }
  .mini-floorplan { height: 235px; }
  .floating-card-a { right: -3px; }
  .floating-card-b { left: -3px; }
  .how-it-works { padding-bottom: 84px; }
  .site-footer { padding: 20px 0; flex-direction: column; align-items: flex-start; }

  .account-status span:last-child { display: none; }
  .account-status { width: 32px; min-width: 32px; padding: 0; justify-content: center; }
  .app-shell { padding: 48px 0 80px; }
  .workflow-card { padding: 18px; border-radius: 22px; }
  .venue-grid { grid-template-columns: 1fr; }
  .workflow-actions { justify-content: stretch; }
  .button-element { width: 100%; }
  .floorplan { min-height: 420px; aspect-ratio: 10 / 13; }
  .success-stage { grid-template-columns: auto 1fr; }
  .success-stage .secondary-button { grid-column: 1 / -1; width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
