:root {
  --byt-primary: #484747;
  --font-display: "Plus Jakarta Sans", system-ui, sans-serif;
  --font-body: "DM Sans", system-ui, sans-serif;
  --radius: 16px;
  --radius-sm: 12px;
  --max: 920px;
  --byt-success: #4ade80;
  --byt-warn: #fbbf24;
  --byt-danger: #f87171;
  --byt-on-primary: #ffffff;
}

[data-theme="dark"] {
  --byt-bg: #0f0f0f;
  --byt-bg-elevated: #161616;
  --byt-card: #1c1c1c;
  --byt-card-hover: #242424;
  --byt-border: rgba(255, 255, 255, 0.1);
  --byt-border-strong: rgba(255, 255, 255, 0.18);
  --byt-text: #ffffff;
  --byt-muted: rgba(255, 255, 255, 0.62);
  --byt-accent: #ffffff;
  --byt-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
  --byt-modal-backdrop: rgba(0, 0, 0, 0.72);
  --byt-focus-border: rgba(255, 255, 255, 0.35);
  --byt-today-border: rgba(255, 255, 255, 0.28);
  --byt-logo-shadow: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.5));
}

[data-theme="light"] {
  --byt-bg: #f4f4f4;
  --byt-bg-elevated: #ececec;
  --byt-card: #ffffff;
  --byt-card-hover: #f8f8f8;
  --byt-border: rgba(72, 71, 71, 0.14);
  --byt-border-strong: rgba(72, 71, 71, 0.28);
  --byt-text: #1a1a1a;
  --byt-muted: rgba(26, 26, 26, 0.58);
  --byt-accent: #484747;
  --byt-shadow: 0 12px 40px rgba(72, 71, 71, 0.12);
  --byt-modal-backdrop: rgba(26, 26, 26, 0.45);
  --byt-focus-border: rgba(72, 71, 71, 0.45);
  --byt-today-border: rgba(72, 71, 71, 0.35);
  --byt-logo-shadow: drop-shadow(0 6px 18px rgba(72, 71, 71, 0.18));
}

html { font-size: 17px; }

body {
  font-family: var(--font-body);
  font-weight: 500;
  color: var(--byt-text);
  background: var(--byt-bg);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

.byt-page {
  max-width: var(--max);
  margin: 0 auto;
  padding: 24px 18px 48px;
}

/* Hero */
.byt-hero {
  text-align: center;
  padding: 28px 8px 32px;
}

.byt-hero-title {
  margin: 0 0 16px;
  font-family: var(--font-display);
  font-size: clamp(2rem, 7vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.08;
  color: var(--byt-text);
}

.byt-hero-logo {
  display: block;
  width: min(260px, 78vw);
  height: auto;
  max-width: 260px;
  image-rendering: auto;
  margin: 0 auto 16px;
  filter: var(--byt-logo-shadow);
}

.byt-hero-sub {
  margin: 0 auto;
  max-width: 36ch;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--byt-muted);
  line-height: 1.45;
}

.byt-hero-tools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 18px;
}

.byt-theme-select {
  min-height: 38px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid var(--byt-border);
  background: var(--byt-card);
  color: var(--byt-text);
  font-size: 0.82rem;
  font-weight: 800;
}

.byt-lang {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  border-radius: 999px;
  background: var(--byt-card);
  border: 1px solid var(--byt-border);
}

.byt-lang button {
  padding: 8px 14px;
  border: none;
  border-radius: 999px;
  background: transparent;
  color: var(--byt-muted);
  font-size: 0.82rem;
  font-weight: 800;
}

.byt-lang button.active {
  background: var(--byt-primary);
  color: var(--byt-on-primary);
}

/* Section */
.byt-section {
  margin-bottom: 36px;
}

.byt-section-head {
  margin-bottom: 18px;
}

.byt-eyebrow {
  display: block;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--byt-muted);
  margin-bottom: 6px;
}

.byt-section-head h2 {
  margin: 0 0 6px;
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 4vw, 1.85rem);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.byt-section-head p {
  margin: 0;
  color: var(--byt-muted);
  font-weight: 600;
  font-size: 0.98rem;
}

/* Week nav */
.byt-week-label {
  margin: 0 0 12px;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--byt-muted);
  text-align: center;
}

.byt-week-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-bottom: 20px;
}

.byt-week-btn {
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--byt-border);
  background: var(--byt-card);
  color: var(--byt-text);
  font-size: 0.88rem;
  font-weight: 800;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.byt-week-btn:hover {
  background: var(--byt-card-hover);
  border-color: var(--byt-border-strong);
}

.byt-week-btn.primary {
  background: var(--byt-primary);
  border-color: transparent;
}

/* Schedule */
.byt-days {
  display: grid;
  gap: 16px;
}

.byt-day-card {
  padding: 18px 16px;
  border-radius: var(--radius);
  background: linear-gradient(160deg, var(--byt-card) 0%, var(--byt-bg-elevated) 100%);
  border: 1px solid var(--byt-border);
  box-shadow: var(--byt-shadow);
}

.byt-day-card.is-today {
  border-color: var(--byt-today-border);
  box-shadow: 0 0 0 1px var(--byt-border), var(--byt-shadow);
}

.byt-day-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--byt-border);
}

.byt-day-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 800;
}

.byt-day-date {
  display: block;
  margin-top: 2px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--byt-muted);
}

.byt-today-badge {
  flex-shrink: 0;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.byt-slots {
  display: grid;
  gap: 10px;
}

.byt-slot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 14px;
  border-radius: var(--radius-sm);
  background: var(--byt-bg);
  border: 1px solid var(--byt-border);
}

.byt-slot--taken {
  background: rgba(251, 191, 36, 0.1);
  border-color: rgba(251, 191, 36, 0.45);
  box-shadow: inset 3px 0 0 var(--byt-warn);
}

.byt-slot--blocked {
  opacity: 0.72;
}

.byt-slot-main {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
  min-width: 0;
}

.byt-slot-fixed {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(251, 191, 36, 0.2);
  color: var(--byt-warn);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.byt-fixed-count {
  flex-shrink: 0;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(251, 191, 36, 0.16);
  color: var(--byt-warn);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.byt-day-card.has-taken {
  border-color: rgba(251, 191, 36, 0.28);
}

.byt-slot-time {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  white-space: nowrap;
  width: 100%;
}

.byt-slot-status {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.byt-slot-status.open { color: var(--byt-success); }
.byt-slot-status.booked { color: var(--byt-warn); }

.byt-slot-actions {
  flex-shrink: 0;
}

.byt-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  border: none;
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  transition: transform 0.12s ease, opacity 0.12s ease;
}

.byt-btn:active { transform: scale(0.98); }

.byt-btn-book {
  background: var(--byt-primary);
  color: var(--byt-on-primary);
}

.byt-btn-wait {
  background: transparent;
  color: var(--byt-text);
  border: 1.5px solid var(--byt-border-strong);
  max-width: 220px;
  white-space: normal;
  line-height: 1.2;
  text-align: center;
  font-size: 0.78rem;
  padding: 8px 10px;
}

.byt-btn-full {
  width: 100%;
  min-height: 52px;
  font-size: 1rem;
}

.byt-btn-primary {
  background: var(--byt-primary);
  color: var(--byt-on-primary);
  border: 1px solid var(--byt-border-strong);
}

/* Form card */
.byt-form-card {
  padding: 22px 18px;
  border-radius: var(--radius);
  background: var(--byt-card);
  border: 1px solid var(--byt-border);
  box-shadow: var(--byt-shadow);
}

.byt-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 14px;
}

.byt-field label {
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--byt-muted);
}

.byt-field input,
.byt-field select,
.byt-field textarea {
  width: 100%;
  min-height: 50px;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--byt-border);
  background: var(--byt-bg);
  color: var(--byt-text);
  font-weight: 600;
}

.byt-field input:focus,
.byt-field select:focus,
.byt-field textarea:focus {
  outline: none;
  border-color: var(--byt-focus-border);
}

.byt-field textarea {
  min-height: 100px;
  resize: vertical;
}

.byt-sessions {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
}

.byt-session-opt {
  min-height: 48px;
  padding: 8px 4px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--byt-border);
  background: var(--byt-bg);
  color: var(--byt-muted);
  font-weight: 800;
  font-size: 0.95rem;
}

.byt-session-opt.active {
  background: var(--byt-primary);
  border-color: var(--byt-border-strong);
  color: var(--byt-on-primary);
}

.byt-msg {
  margin: 12px 0 0;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
  font-weight: 700;
}

.byt-msg.ok {
  background: rgba(74, 222, 128, 0.12);
  border: 1px solid rgba(74, 222, 128, 0.35);
  color: var(--byt-success);
}

.byt-msg.err {
  background: rgba(248, 113, 113, 0.12);
  border: 1px solid rgba(248, 113, 113, 0.35);
  color: var(--byt-danger);
}

.byt-loading {
  text-align: center;
  padding: 32px;
  color: var(--byt-muted);
  font-weight: 700;
}

.byt-footer {
  margin-top: 32px;
  text-align: center;
  font-size: 0.82rem;
  color: var(--byt-muted);
  font-weight: 600;
}

/* Modal */
.byt-modal[hidden] { display: none !important; }

.byt-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 0;
}

@media (min-width: 540px) {
  .byt-modal {
    align-items: center;
    padding: 20px;
  }
}

.byt-modal-backdrop {
  position: absolute;
  inset: 0;
  background: var(--byt-modal-backdrop);
  backdrop-filter: blur(6px);
}

.byt-modal-panel {
  position: relative;
  z-index: 1;
  width: min(100%, 480px);
  max-height: 92dvh;
  overflow-y: auto;
  padding: 22px 18px 28px;
  border-radius: var(--radius) var(--radius) 0 0;
  background: var(--byt-card);
  border: 1px solid var(--byt-border);
  box-shadow: var(--byt-shadow);
}

@media (min-width: 540px) {
  .byt-modal-panel {
    border-radius: var(--radius);
  }
}

.byt-modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 50%;
  background: var(--byt-bg);
  color: var(--byt-text);
  font-size: 1.3rem;
  line-height: 1;
}

.byt-modal-title {
  margin: 0 0 4px;
  padding-right: 40px;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 800;
}

.byt-modal-slot {
  margin: 0 0 18px;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--byt-muted);
}

/* Zelle payment */
.byt-pay-section {
  margin-top: 8px;
}

.byt-pay-card {
  display: grid;
  gap: 20px;
  padding: 22px 18px;
  border-radius: var(--radius);
  background: var(--byt-card);
  border: 1px solid var(--byt-border);
  box-shadow: var(--byt-shadow);
  text-align: center;
}

.byt-pay-qr-wrap {
  display: flex;
  justify-content: center;
}

.byt-pay-qr {
  width: min(280px, 78vw);
  height: auto;
  border-radius: 16px;
  background: #fff;
  padding: 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.byt-pay-name {
  margin: 0 0 6px;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.byt-pay-hint {
  margin: 0 0 14px;
  color: var(--byt-muted);
  font-weight: 600;
}

.byt-pay-rules {
  margin: 0;
  padding: 0;
  list-style: none;
  text-align: left;
  display: grid;
  gap: 8px;
}

.byt-pay-rules li {
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--byt-bg-elevated);
  border: 1px solid var(--byt-border);
  font-size: 0.92rem;
  font-weight: 600;
}

.byt-pay-rules li::before {
  content: "✓ ";
  color: var(--byt-success);
  font-weight: 800;
}

.byt-modal-pay {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 14px;
  padding: 10px 12px;
  border-radius: 12px;
  background: var(--byt-bg-elevated);
  border: 1px solid var(--byt-border);
}

.byt-modal-pay[hidden] {
  display: none !important;
}

.byt-modal-pay-qr {
  width: 72px;
  height: 72px;
  object-fit: contain;
  border-radius: 10px;
  background: #fff;
  flex-shrink: 0;
}

.byt-modal-pay p {
  margin: 0;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--byt-muted);
  line-height: 1.35;
  text-align: left;
}

/* Packages */
.byt-pkg-list {
  display: grid;
  gap: 14px;
}

.byt-pkg-card {
  padding: 18px 16px;
  border-radius: var(--radius);
  background: var(--byt-card);
  border: 1px solid var(--byt-border);
  box-shadow: var(--byt-shadow);
}

.byt-pkg-card--best {
  border-color: var(--byt-today-border);
  box-shadow: 0 0 0 1px var(--byt-focus-border), var(--byt-shadow);
}

.byt-pkg-head {
  margin-bottom: 10px;
}

.byt-pkg-head h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.byt-pkg-badge {
  display: inline-block;
  margin-bottom: 8px;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--byt-primary);
  color: var(--byt-on-primary);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.byt-pkg-body {
  margin: 0 0 12px;
  color: var(--byt-text);
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1.5;
}

.byt-pkg-price {
  margin: 0 0 12px;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}

.byt-pkg-price li {
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--byt-bg-elevated);
  border: 1px solid var(--byt-border);
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.4;
  color: var(--byt-text);
}

.byt-pkg-meta {
  margin: 0 0 8px;
  font-size: 0.9rem;
  line-height: 1.45;
  color: var(--byt-muted);
}

.byt-pkg-meta:last-child {
  margin-bottom: 0;
}

.byt-pkg-meta strong {
  color: var(--byt-text);
  font-weight: 800;
}

.byt-pkg-note {
  margin: 20px 0 0;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  background: var(--byt-bg-elevated);
  border: 1px solid var(--byt-border);
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.5;
  color: var(--byt-muted);
}

.byt-pkg-note a {
  color: var(--byt-text);
  font-weight: 800;
  word-break: break-all;
}

.byt-pkg-cta {
  margin-top: 18px;
  display: flex;
  justify-content: center;
}

.byt-pkg-cta .byt-btn {
  text-decoration: none;
  text-align: center;
  min-width: min(100%, 320px);
}

@media (min-width: 640px) {
  .byt-pay-card {
    grid-template-columns: minmax(0, 280px) 1fr;
    align-items: center;
    text-align: left;
  }

  .byt-pkg-list {
    grid-template-columns: 1fr;
  }

  .byt-days {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 900px) {
  .byt-page { padding: 32px 24px 56px; }
}


/* Slot layout: action button gets its own row so it never overlaps the time */
.byt-slot { flex-wrap: wrap; align-items: flex-start; }
.byt-slot-main { flex: 1 1 100%; }
.byt-slot-actions { flex: 1 1 100%; flex-shrink: 1; }
.byt-slot-actions .byt-btn { width: 100%; white-space: normal; text-align: center; line-height: 1.25; }
@media (min-width: 900px) {
  .byt-slot-time { white-space: normal; }
}

