*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #0d0d0d;
  --surface: #141414;
  --surface2: #1C1C1C;
  --border: #282828;
  --border2: #333333;
  --accent: #00f4bd;       /* TENTENS neon yellow */
  --accent-dim: rgba(0,244,189,0.08);
  --accent-dim2: rgba(0,244,189,0.15);
  --text: #FFFFFF;
  --text2: #AAAAAA;
  --text3: #666666;
  --green: #00E5A0;
  --radius: 12px;
}

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
}

/* ── NAV ── */
nav {
  height: 56px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  position: sticky;
  top: 0;
  background: rgba(13,13,13,0.45);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  box-shadow: 0 1px 0 rgba(255,255,255,0.04), inset 0 1px 0 rgba(255,255,255,0.05);
  z-index: 100;
}
.nav-inner {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 48px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo-text {
  font-family: 'Unbounded', sans-serif;
  font-weight: 900;
  font-size: 16px;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 1px;
  text-decoration: none;
  cursor: pointer;
  user-select: none;
}
.nav-logo-text .dot { color: var(--accent); }
.nav-right {
  font-size: 13px;
  color: var(--text3);
}

/* ── HERO ── */
.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  min-height: calc(100vh - 56px);
  padding: 0 48px;
  justify-content: center;
  overflow: hidden;
}
.hero-outline-wrap {
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  transform: translateY(-54%);
  user-select: none;
  pointer-events: none;
}
.hero-outline-wrap svg {
  width: 100%;
  overflow: visible;
  display: block;
}
.hero-outline-wrap svg text {
  font-family: 'Inter', sans-serif;
  font-weight: 800;
  font-size: 18vw;
  letter-spacing: -0.02em;
  fill: none;
  stroke: rgba(255,255,255,0.04);
  stroke-width: 1;
  text-anchor: middle;
}
.hero-title {
  position: relative;
  font-size: clamp(48px, 5vw, 72px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -3px;
  max-width: 1000px;
  margin-bottom: 28px;
}
.hero-title .accent { color: var(--accent); }
.hero-sub {
  position: relative;
  font-size: 16px;
  font-weight: 400;
  color: #444;
  line-height: 1.7;
  max-width: 480px;
}

/* ── CTA BUTTON (rotating border) ── */
@property --angle {
  syntax: '<angle>';
  inherits: false;
  initial-value: 0deg;
}
.cta-btn {
  position: relative;
  display: inline-block;
  font-size: 14px;
  font-weight: 500;
  color: #fff;
  background: transparent;
  padding: 14px 36px;
  border-radius: 980px;
  cursor: pointer;
  letter-spacing: 0.2px;
  margin-top: 40px;
  border: none;
  z-index: 1;
}
.cta-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 980px;
  padding: 1px;
  background: conic-gradient(from var(--angle), transparent 75%, var(--accent) 90%, transparent 100%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  animation: rotate-border 2s linear infinite;
}
.cta-btn::after {
  content: '';
  position: absolute;
  inset: 1px;
  border-radius: 980px;
  background: rgba(0,244,189,0.04);
  z-index: -1;
}
@keyframes rotate-border { to { --angle: 360deg; } }

/* ── MAIN CONTENT ── */
.main {
  padding: 0 48px 100px;
  max-width: 1280px;
  margin: 0 auto;
}

/* ── FILTER TOGGLES ── */
.filters-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 36px;
}
.filter-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: 980px;
  border: 1px solid rgba(0,244,189,0.15);
  background: rgba(0,244,189,0.04);
  color: rgba(255,255,255,0.45);
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.3s, color 0.3s, border-color 0.3s;
  letter-spacing: -0.2px;
  white-space: nowrap;
}
.filter-btn:hover {
  background: rgba(0,244,189,0.14);
  color: #fff;
  border-color: rgba(0,244,189,0.4);
}
.filter-btn.active {
  background: rgba(0,244,189,0.12);
  color: #fff;
  border-color: rgba(0,244,189,0.35);
}
.filter-btn:disabled,
.filter-btn[disabled] {
  opacity: 0.5;
  cursor: progress;
  pointer-events: none;
}
.filter-icon { font-size: 14px; }

/* ── CHIPS ── */
.active-filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 32px;
  min-height: 28px;
  align-items: center;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 12px;
  background: var(--accent-dim);
  border: 1px solid rgba(0,244,189,0.3);
  border-radius: 4px;
  font-size: 11px;
  color: var(--accent);
  font-weight: 500;
  letter-spacing: 0.02em;
  animation: chipIn 0.18s ease;
}
.chip .remove {
  cursor: pointer;
  opacity: 0.5;
  font-size: 13px;
  margin-left: 2px;
}
.chip .remove:hover { opacity: 1; }
@keyframes chipIn { from { opacity: 0; transform: scale(0.88); } to { opacity: 1; transform: scale(1); } }

.selected-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 32px;
}

/* ── SECTION ── */
.section {
  margin-bottom: 40px;
  animation: fadeUp 0.25s ease;
}
@keyframes fadeUp { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}
.section-title {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text3);
  display: flex;
  align-items: center;
  gap: 10px;
}
.section-title::before {
  content: '';
  width: 2px;
  height: 12px;
  background: var(--accent);
  border-radius: 2px;
  flex-shrink: 0;
}
.section-count {
  font-size: 11px;
  color: var(--border2);
}

.section-tz-note {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: -8px 0 20px;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 500;
  color: var(--accent, #00f4bd);
  background: rgba(0, 244, 189, 0.08);
  border: 1px solid rgba(0, 244, 189, 0.2);
  border-radius: 8px;
}

/* ── GRIDS ── */
.grid-2 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }

/* ── CARDS ── */
.card {
  padding: 20px;
  background: #111;
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 10px;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 80px;
}
.card:hover { background: #141414; border-color: rgba(0,244,189,0.2); }
.card.selected { background: var(--accent-dim); }
.card.selected::after {
  content: '✓';
  position: absolute;
  top: 16px; right: 16px;
  font-size: 12px;
  color: var(--accent);
  font-weight: 700;
}
.card.dimmed { opacity: 0.2; pointer-events: none; }

.card-emoji { font-size: 22px; margin-bottom: 12px; display: block; }
.card-name {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 8px;
  line-height: 1.3;
  letter-spacing: -0.3px;
  color: #e0e0e0;
}
.card-meta { font-size: 12px; color: var(--text3); }
.card-tag {
  display: inline-block;
  margin-top: 10px;
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
}
.card-sub {
  margin-top: 8px;
  font-size: 11px;
  line-height: 1.5;
  color: var(--text3);
}

/* ── SLOT CARDS ── */
.slot-card {
  padding: 18px 20px;
  background: var(--surface);
  cursor: pointer;
  transition: background 0.12s ease;
  position: relative;
}
.slot-card:hover { background: var(--surface2); }
.slot-card.selected { background: rgba(0,229,160,0.06); }
.slot-card.selected::after {
  content: '✓';
  position: absolute;
  top: 14px; right: 16px;
  font-size: 12px;
  color: var(--green);
  font-weight: 700;
}
.slot-card.dimmed { opacity: 0.2; pointer-events: none; }
.slot-day {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text3);
  margin-bottom: 6px;
}
.slot-time {
  font-size: 20px;
  font-weight: 900;
  letter-spacing: -0.02em;
  margin-bottom: 6px;
}
.slot-spots {
  font-size: 11px;
  font-weight: 500;
}

/* ── TIME COLUMNS (Doctolib-style) ── */
.time-cols {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.time-col {
  flex: 0 0 160px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.time-col-head {
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text);
  background: var(--surface2);
}
.time-col-list {
  display: flex;
  flex-direction: column;
  padding: 10px;
  gap: 8px;
}
.time-chip {
  padding: 10px 12px;
  background: transparent;
  border: 1px solid var(--border2);
  border-radius: 8px;
  cursor: pointer;
  transition: border-color 0.12s ease, background 0.12s ease, color 0.12s ease;
  text-align: center;
}
.time-chip:hover {
  border-color: var(--accent);
  background: var(--accent-dim);
}
.time-chip-time {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text);
}

/* ── RESULT ── */
.result-card {
  border: 1px solid rgba(0,229,160,0.2);
  background: rgba(0,229,160,0.03);
  border-radius: var(--radius);
  padding: 32px;
  animation: fadeUp 0.25s ease;
}
.result-title {
  font-size: 16px;
  font-weight: 900;
  letter-spacing: -0.02em;
  color: var(--green);
  margin-bottom: 28px;
}
.result-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 28px;
}
.result-item-label {
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text3);
  margin-bottom: 5px;
  font-weight: 500;
}
.result-item-val {
  font-size: 14px;
  font-weight: 600;
}

.btn-confirm {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  background: var(--accent);
  color: #000;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s ease;
}
.btn-confirm:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 28px rgba(0,244,189,0.2);
}
.btn-confirm:disabled,
.btn-save-note:disabled {
  cursor: not-allowed;
  opacity: 0.55;
  transform: none;
  box-shadow: none;
}
.result-hint {
  font-size: 12px;
  line-height: 1.6;
  color: #FFB400;
  background: rgba(255,180,0,0.08);
  border: 1px solid rgba(255,180,0,0.22);
  border-radius: 8px;
  padding: 12px 14px;
  margin-bottom: 18px;
}

.btn-reset {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 6px;
  border: 1px solid var(--border2);
  background: transparent;
  color: var(--text3);
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.12s ease;
  margin-bottom: 36px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}
.btn-reset:hover { color: var(--text2); border-color: #444; }

/* ── SUCCESS ── */
.success-overlay {
  position: fixed;
  top: 56px;
  left: 0;
  right: 0;
  bottom: 0;
  background: #0d0d0d;
  z-index: 99;
  overflow-y: auto;
  display: flex;
  align-items: center;
  justify-content: center;
}
.success-overlay.hidden { display: none !important; }
.success-overlay .success-wrap {
  position: relative;
  max-width: 560px;
  width: 100%;
  text-align: center;
  z-index: 1;
  padding: 80px 48px;
  animation: fadeUp 0.3s ease;
}
.success-overlay::before {
  content: '';
  position: absolute;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(0,243,188,0.06) 0%, transparent 70%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}
.success-eyebrow {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: #00f3bc;
  margin-bottom: 16px;
}
.success-title {
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 700;
  letter-spacing: -2px;
  line-height: 1.05;
  margin-bottom: 20px;
  font-family: 'Inter', sans-serif;
}
.success-sub {
  font-size: 15px;
  font-weight: 400;
  color: #444;
  line-height: 1.7;
  margin-bottom: 48px;
}
.success-sub strong, .success-sub em { color: #fff; font-style: normal; font-weight: 400; }
.success-card {
  background: #111;
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 12px;
  padding: 24px 28px;
  margin-bottom: 36px;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: 100%;
}
.success-card-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.success-card-divider { height: 1px; background: rgba(255,255,255,0.04); }
.success-card-label {
  font-size: 11px;
  font-weight: 500;
  color: #333;
  text-transform: uppercase;
  letter-spacing: 1px;
  flex-shrink: 0;
}
.success-card-value {
  font-size: 13px;
  font-weight: 500;
  color: #ccc;
  text-align: right;
}
.success-status-badge {
  display: inline-flex;
  align-items: center;
  font-size: 12px;
  font-weight: 400;
  color: #f59e0b;
  background: rgba(245,158,11,0.08);
  border: 1px solid rgba(245,158,11,0.2);
  border-radius: 99px;
  padding: 5px 14px;
}
.success-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}
.success-btn-primary {
  position: relative;
  display: inline-block;
  font-size: 14px;
  font-weight: 500;
  color: #fff;
  background: transparent;
  padding: 13px 32px;
  border-radius: 980px;
  cursor: pointer;
  border: none;
  letter-spacing: 0.2px;
  font-family: 'Inter', sans-serif;
}
.success-btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 980px;
  padding: 1px;
  background: conic-gradient(from var(--angle), transparent 75%, #00f3bc 90%, transparent 100%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  animation: rotate-border 2s linear infinite;
}
.success-btn-primary::after {
  content: '';
  position: absolute;
  inset: 1px;
  border-radius: 980px;
  background: rgba(0,243,188,0.04);
  z-index: -1;
}
.success-btn-ghost {
  font-size: 14px;
  font-weight: 400;
  color: #333;
  background: transparent;
  border: none;
  padding: 13px 24px;
  border-radius: 980px;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  transition: color 0.2s;
}
.success-btn-ghost:hover { color: #666; }

/* ── MARQUEE ── */
.marquee-wrap {
  overflow: hidden;
  background: #111;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  padding: 10px 0;
  margin-bottom: 0;
}
.marquee {
  display: flex;
  gap: 0;
  animation: marquee 20s linear infinite;
  white-space: nowrap;
}
.marquee-item {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #333;
  padding: 0 32px;
  flex-shrink: 0;
}
.marquee-item span { color: var(--accent); font-size: 8px; }
@keyframes marquee { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

.hidden { display: none !important; }

/* ── DATA FRESHNESS BADGE ── */
.data-freshness-badge {
  display: inline-flex;
  align-items: center;
  font-size: 11px;
  color: var(--text2);
  opacity: 0.6;
  margin-bottom: 8px;
  letter-spacing: 0.03em;
  animation: pulse 1.6s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 0.45; }
  50%       { opacity: 0.75; }
}

/* ── CONFIRM MODAL ── */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.65);
  backdrop-filter: blur(6px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  animation: fadeUp 0.18s ease;
}
.modal-box {
  width: 100%;
  max-width: 420px;
  background: var(--surface);
  border: 1px solid var(--border2);
  border-radius: var(--radius);
  padding: 28px;
  animation: fadeUp 0.22s ease;
}
.modal-title {
  font-size: 16px;
  font-weight: 900;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}
.modal-message {
  font-size: 13px;
  color: var(--text2);
  line-height: 1.55;
  margin-bottom: 24px;
}
.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}
.modal-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.12s ease;
  border: 1px solid var(--border2);
  background: transparent;
  color: var(--text2);
}
.modal-btn-cancel:hover {
  color: var(--text);
  border-color: #444;
}
.modal-btn-confirm {
  background: #FF6B35;
  border-color: #FF6B35;
  color: #000;
}
.modal-btn-confirm:hover {
  background: #ff7d4d;
  border-color: #ff7d4d;
}
.modal-btn:disabled {
  opacity: 0.5;
  cursor: progress;
}

/* ── BOOKING MODAL ── */
.booking-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.booking-modal-overlay.hidden { display: none; }
.booking-modal {
  background: #111;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px;
  padding: 40px;
  width: 100%;
  max-width: 480px;
  animation: modal-in 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
@keyframes modal-in {
  from { transform: scale(0.95); opacity: 0; }
  to   { transform: scale(1); opacity: 1; }
}
.booking-modal-eyebrow {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
}
.booking-modal-title {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.8px;
  line-height: 1.2;
  color: #fff;
  margin-bottom: 28px;
}
.booking-modal-card {
  background: #0d0d0d;
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 10px;
  padding: 20px 24px;
  margin-bottom: 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.booking-modal-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.booking-modal-label {
  font-size: 11px;
  font-weight: 500;
  color: #333;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.booking-modal-value {
  font-size: 13px;
  font-weight: 500;
  color: #ccc;
}
.booking-modal-divider {
  height: 1px;
  background: rgba(255,255,255,0.04);
}
.booking-modal-note {
  font-size: 13px;
  color: #333;
  line-height: 1.6;
  margin-bottom: 28px;
}
.booking-modal-note em { color: #555; font-style: normal; }
.booking-modal-actions { display: flex; gap: 10px; align-items: center; }
.booking-modal-confirm {
  flex: 1;
  position: relative;
  font-size: 14px;
  font-weight: 500;
  color: #fff;
  background: transparent;
  padding: 13px 24px;
  border-radius: 980px;
  cursor: pointer;
  border: none;
  z-index: 1;
}
.booking-modal-confirm::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 980px;
  padding: 1px;
  background: conic-gradient(from var(--angle), transparent 75%, #00f4bd 90%, transparent 100%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  animation: rotate-border 2s linear infinite;
}
.booking-modal-confirm::after {
  content: '';
  position: absolute;
  inset: 1px;
  border-radius: 980px;
  background: rgba(0,244,189,0.04);
  z-index: -1;
}
.booking-modal-confirm:disabled { opacity: 0.4; cursor: not-allowed; }
.booking-modal-cancel {
  font-size: 14px;
  font-weight: 400;
  color: #333;
  background: none;
  border: none;
  padding: 13px 20px;
  border-radius: 980px;
  cursor: pointer;
  transition: color 0.2s;
}
.booking-modal-cancel:hover { color: #666; }

.state-card {
  margin-top: 14px;
  padding: 22px 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text3);
  font-size: 14px;
  line-height: 1.6;
}
.state-card-loading { color: var(--text2); }
.state-loading {
  display: flex;
  gap: 6px;
  padding: 20px 4px;
  align-items: center;
}
.state-loading-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--text3);
  animation: dot-pulse 1.2s ease-in-out infinite;
}
.state-loading-dot:nth-child(2) { animation-delay: 0.2s; }
.state-loading-dot:nth-child(3) { animation-delay: 0.4s; }
@keyframes dot-pulse {
  0%, 80%, 100% { opacity: 0.2; transform: scale(0.8); }
  40% { opacity: 1; transform: scale(1); }
}
.state-card-empty { color: var(--text3); }
.state-card-error {
  color: #FF6B35;
  border-color: rgba(255,107,53,0.25);
  background: rgba(255,107,53,0.05);
}

@media (max-width: 600px) {
  nav, .hero, .main, .success { padding-left: 20px; padding-right: 20px; }
  nav { gap: 14px; }
  .hero { padding-top: 56px; padding-bottom: 44px; }
  .filters-row { flex-direction: column; }
  .filter-btn { justify-content: center; width: 100%; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .time-cols { flex-direction: column; }
  .time-col  { flex: 1 1 auto; }
  .result-grid { grid-template-columns: 1fr; }
}

/* ── LOGIN ── */
#loginScreen {
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.blocked-overlay {
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.blocked-overlay.hidden { display: none; }
.blocked-box {
  width: 100%;
  max-width: 420px;
  text-align: center;
}
.blocked-icon { font-size: 48px; margin-bottom: 20px; }
.blocked-title { font-family: "Unbounded", sans-serif; font-size: 20px; font-weight: 900; color: #fff; margin-bottom: 12px; }
.blocked-sub { font-size: 14px; color: var(--text3); line-height: 1.7; }
.login-box {
  width: 100%;
  max-width: 420px;
}
.login-logo {
  font-family: "Unbounded", sans-serif;
  font-size: 22px;
  font-weight: 900;
  letter-spacing: -0.03em;
  color: var(--text);
  margin-bottom: 8px;
}
.login-logo span { color: var(--accent); }
.login-sub {
  font-size: 13px;
  color: var(--text3);
  margin-bottom: 40px;
  line-height: 1.6;
}
.login-btn {
  padding: 13px 20px;
  background: var(--accent);
  border: none;
  color: #000;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: opacity 0.15s;
  white-space: nowrap;
}
.login-btn:hover { opacity: 0.85; }
.login-error {
  font-size: 12px;
  color: #FF6B35;
  margin-top: -8px;
  margin-bottom: 14px;
  min-height: 18px;
}


/* ── PROFILE PAGE ── */
#profilePage {
  display: none;
  animation: fadeUp 0.25s ease;
}
.profile-layout {
  display: flex;
  gap: 64px;
  padding-top: 64px;
  padding-bottom: 100px;
  align-items: flex-start;
}
.profile-sidebar {
  width: 240px;
  flex-shrink: 0;
  position: sticky;
  top: 80px;
}
.profile-sidebar-avatar {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: #1a1a1a;
  border: 1px solid var(--accent);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; font-weight: 700;
  color: var(--accent);
  margin-bottom: 16px;
}
.profile-sidebar-name {
  font-size: 15px; font-weight: 700;
  letter-spacing: -0.3px; color: #fff;
  margin-bottom: 4px;
}
.profile-sidebar-email {
  font-size: 12px; color: #555;
  margin-bottom: 32px;
}
.profile-sidebar-nav {
  display: flex; flex-direction: column; gap: 8px;
  margin-bottom: 24px;
}
.profile-sidebar-item {
  font-size: 13px; font-weight: 500; color: #666;
  padding: 10px 14px; border-radius: 8px; cursor: pointer;
  transition: color .15s, background .15s;
  display: flex; align-items: center; justify-content: space-between;
  line-height: 1;
  border: none; border-bottom: none;
}
.profile-sidebar-item:hover { color: #bbb; background: rgba(255,255,255,0.03); }
.profile-sidebar-item.active { color: #fff; background: rgba(255,255,255,0.08); box-shadow: none; }
.profile-sidebar-count {
  font-size: 11px; font-weight: 600;
  color: var(--accent); background: rgba(0,244,189,0.1);
  border-radius: 99px; padding: 2px 8px;
}
.profile-content { flex: 1; min-width: 0; }
.profile-section { display: none; }
.profile-section.active { display: block; }
.profile-section .section-title { margin-bottom: 24px; }
.history-empty {
  padding: 60px 0;
  text-align: center;
  color: var(--text3);
  font-size: 14px;
  line-height: 1.8;
}
.history-empty-icon { font-size: 36px; margin-bottom: 12px; }
.history-list { display: flex; flex-direction: column; gap: 10px; }
.booking-block { border-radius: 10px; overflow: hidden; }
.booking-item {
  background: #111;
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 10px;
  padding: 18px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  transition: border-color 0.15s;
}
.booking-block .history-note-row ~ .booking-item,
.booking-block:has(.history-note-row:not(.hidden)) .booking-item { border-bottom-left-radius: 0; border-bottom-right-radius: 0; }
.booking-item:hover { border-color: rgba(255,255,255,0.1); }
.booking-left { display: flex; flex-direction: column; gap: 5px; }
.booking-name { font-size: 14px; font-weight: 600; color: #e0e0e0; letter-spacing: -0.3px; }
.booking-meta { font-size: 12px; color: #888; }
.booking-meta em { font-style: normal; color: #aaa; }
.booking-right { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.booking-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 400;
  padding: 4px 12px;
  border-radius: 99px;
  white-space: nowrap;
}
.btn-join-meet {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 5px 10px;
  border-radius: 4px;
  border: 1px solid rgba(0,244,189,0.35);
  color: #000;
  background: var(--accent);
  text-decoration: none;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.btn-cancel-booking {
  padding: 5px 10px;
  border-radius: 4px;
  border: 1px solid rgba(255,107,53,0.35);
  background: transparent;
  color: #FF6B35;
  font-family: 'Inter', sans-serif;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.12s ease, border-color 0.12s ease;
}
.btn-cancel-booking:hover {
  background: rgba(255,107,53,0.08);
  border-color: rgba(255,107,53,0.6);
}
.btn-cancel-booking:disabled {
  opacity: 0.5;
  cursor: progress;
}
.profile-history-header {
  margin-top: 34px;
  margin-bottom: 20px;
}


/* NAV avatar btn */
.nav-profile-wrap { position: relative; }
.nav-avatar {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: all 0.15s;
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  color: #555;
  position: relative;
}
.nav-avatar:hover { color: var(--text2); }
.nav-profile-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: var(--surface);
  border: 1px solid var(--border2);
  border-radius: 10px;
  min-width: 210px;
  padding: 6px;
  z-index: 200;
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
}
.nav-profile-menu-item {
  display: block;
  width: 100%;
  padding: 9px 12px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text2);
  background: none;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  text-align: left;
  font-family: 'Inter', sans-serif;
  transition: background 0.1s, color 0.1s;
}
.nav-profile-menu-item:hover { background: var(--surface2); color: var(--text); }
.nav-profile-menu-item-danger:hover { color: #FF6B35; }
.nav-profile-menu-divider { height: 1px; background: var(--border); margin: 4px 0; }
.nav-avatar-circle {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: #1a1a1a;
  border: 1px solid var(--accent);
  display: flex; align-items: center; justify-content: center;
  font-size: 10px;
  font-weight: 700;
  color: var(--accent);
  flex-shrink: 0;
}
.nav-admin {
  font-size: 12px;
  font-weight: 500;
  color: var(--accent);
  padding: 6px 14px;
  border-radius: 6px;
  border: 1px solid rgba(0,244,189,0.3);
  background: transparent;
  transition: background 0.15s;
  font-family: 'Inter', sans-serif;
  letter-spacing: 0.3px;
}
.nav-admin:hover { background: var(--accent-dim); }

.profile-back-btn {
  display: inline-block;
  margin-top: 40px;
  padding: 9px 14px;
  background: none;
  border: none;
  font-size: 12px;
  font-weight: 500;
  color: #444;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  transition: color 0.15s;
  text-decoration: none;
  width: 100%;
  text-align: left;
}
.profile-back-btn:hover { color: #888; }
@media (max-width: 600px) {
  .login-btn { width: 100%; }
  .profile-header { flex-direction: column; align-items: flex-start; padding: 24px 20px; }
  .profile-content { padding: 24px 20px 80px; }
  .history-item { grid-template-columns: 1fr 1fr; }
  .history-actions { justify-content: flex-start; }
}

/* -- PENDING BOX -- */
.booking-block .booking-item:has(+ .history-note-row:not(.hidden)) { border-bottom-left-radius: 0; border-bottom-right-radius: 0; border-bottom-color: transparent; }
.history-note-row { padding: 10px 22px 16px; background: #111; border: 1px solid rgba(255,255,255,0.06); border-top: 1px solid rgba(255,255,255,0.04); border-bottom-left-radius: 10px; border-bottom-right-radius: 10px; }
.btn-note-toggle{font-size:11px;background:none;border:none;cursor:pointer;color:var(--text3);text-decoration:underline;text-underline-offset:3px;}
.btn-note-toggle.has-note{color:var(--accent);font-weight:600;text-decoration:none;}
.note-editor-wrap{display:none;margin-top:10px;}
.note-editor-wrap.visible{display:block;}
.note-editor-wrap textarea{width:100%;min-height:64px;padding:10px 12px;border-radius:8px;border:1px solid var(--border2);background:var(--bg);color:var(--text);font-family:inherit;font-size:12px;}
.btn-save-note{margin-top:8px;padding:7px 14px;border-radius:6px;border:none;background:var(--accent);color:#000;font-family:'Unbounded',sans-serif;font-size:10px;font-weight:700;cursor:pointer;}

/* ── CONTAINER ── */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 48px;
}

/* ── ABOUT SECTION ── */
.about-section {
  padding: 100px 0;
}
.about-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 80px;
}
.about-left { max-width: 640px; }
.about-tag {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.about-tag::before {
  content: '';
  width: 20px; height: 2px;
  background: var(--accent);
  border-radius: 2px;
}
.about-title {
  font-size: clamp(20px, 2.2vw, 28px);
  font-weight: 600;
  letter-spacing: -0.8px;
  line-height: 1.3;
  color: #fff;
  margin-bottom: 20px;
}
.about-text {
  font-size: 14px;
  font-weight: 400;
  color: #444;
  line-height: 1.8;
}
.about-stats {
  display: flex;
  flex-direction: column;
  gap: 40px;
  min-width: 260px;
}
.about-stat {
  border-left: 1px solid rgba(255,255,255,0.06);
  padding-left: 32px;
}
.about-stat-num {
  font-size: 64px;
  font-weight: 700;
  letter-spacing: -3px;
  line-height: 1;
  color: var(--accent);
  margin-bottom: 6px;
}
.about-stat-label {
  font-size: 12px;
  font-weight: 500;
  color: #333;
  letter-spacing: 1px;
  text-transform: uppercase;
}

/* ── FILTERS SECTION ── */
.filters-section {
  padding: 64px 0 16px;
}
.filters-heading {
  font-size: clamp(20px, 2.2vw, 28px);
  font-weight: 600;
  letter-spacing: -0.8px;
  line-height: 1.3;
  color: #fff;
  margin-bottom: 16px;
}
.filters-desc {
  font-size: 14px;
  font-weight: 400;
  color: #444;
  line-height: 1.8;
  max-width: 560px;
  margin-bottom: 32px;
}

/* ── MANAGERS SECTION ── */
.managers-section { padding: 32px 0; }
.managers-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}
.managers-title {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #333;
  display: flex;
  align-items: center;
  gap: 10px;
}
.managers-title::before {
  content: '';
  width: 2px; height: 12px;
  background: var(--accent);
  border-radius: 2px;
}
.managers-count { font-size: 11px; color: #2a2a2a; }
.mgr-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.mgr-card {
  background: #111;
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 10px;
  padding: 20px;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}
.mgr-card:hover {
  border-color: rgba(0,244,189,0.2);
  background: #141414;
}
.mgr-card.selected {
  border-color: rgba(0,244,189,0.35);
  background: rgba(0,244,189,0.04);
}
.mgr-name { font-size: 15px; font-weight: 600; color: #e0e0e0; margin-bottom: 8px; letter-spacing: -0.3px; }
.mgr-slots { font-size: 12px; font-weight: 600; color: var(--accent); letter-spacing: 0.5px; margin-bottom: 10px; }
.mgr-date { font-size: 12px; color: #333; font-weight: 400; }
.mgr-date-label { font-size: 10px; color: #2a2a2a; margin-bottom: 2px; letter-spacing: 0.5px; }

/* ── REFER SECTION ── */
.refer-section {
  position: relative;
  min-height: 480px;
  display: flex;
  align-items: stretch;
  overflow: hidden;
}
.refer-left {
  flex: 0 0 50%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 24px;
  padding: 80px 64px 80px max(48px, calc((100vw - 1280px) / 2 + 48px));
  position: relative;
  z-index: 1;
}
.refer-media {
  flex: 0 0 50%;
  position: relative;
  overflow: hidden;
}
.refer-gif {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  opacity: 0.7;
}
.refer-media::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to right,  #0d0d0d 0%, rgba(13,13,13,0.85) 15%, rgba(13,13,13,0.4) 35%, transparent 65%),
    linear-gradient(to bottom, #0d0d0d 0%, transparent 20%),
    linear-gradient(to top,    #0d0d0d 0%, transparent 20%);
}
.refer-title {
  font-size: clamp(22px, 2.2vw, 30px);
  font-weight: 600;
  letter-spacing: -0.8px;
  line-height: 1.2;
  color: #fff;
}
.refer-text {
  font-size: 14px;
  color: #444;
  line-height: 1.7;
}
.refer-btn {
  display: inline-flex;
  align-items: center;
  font-size: 14px;
  font-weight: 500;
  color: #fff;
  background: transparent;
  padding: 14px 36px;
  border-radius: 980px;
  cursor: pointer;
  letter-spacing: 0.2px;
  text-decoration: none;
  position: relative;
  width: fit-content;
  border: none;
}
.refer-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 980px;
  padding: 1px;
  background: conic-gradient(from var(--angle), transparent 75%, var(--accent) 90%, transparent 100%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  animation: rotate-border 2s linear infinite;
}
.refer-btn::after {
  content: '';
  position: absolute;
  inset: 1px;
  border-radius: 980px;
  background: rgba(0,244,189,0.04);
  z-index: -1;
}

/* ── FOOTER ── */
.footer { padding: 64px 0 0; }
.footer-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  padding-bottom: 64px;
}
.footer-contact {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
}
.footer-contact-label { font-size: 12px; color: #888; }
.footer-slack-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
  color: #fff;
  text-decoration: none;
  border: 1px solid rgba(0,244,189,0.2);
  border-radius: 8px;
  padding: 10px 18px;
  background: rgba(0,244,189,0.04);
  transition: border-color 0.2s, background 0.2s;
}
.footer-slack-btn:hover {
  border-color: rgba(0,244,189,0.45);
  background: rgba(0,244,189,0.09);
}
.footer-slack-icon { width: 16px; height: 16px; opacity: 0.7; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.04);
  padding: 20px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.footer-copy { font-size: 11px; color: #2a2a2a; letter-spacing: 0.3px; }
.footer-internal { font-size: 11px; color: #222; letter-spacing: 0.5px; text-transform: uppercase; }
.footer-logo-text {
  font-family: 'Unbounded', sans-serif;
  font-weight: 900;
  font-size: 16px;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 1px;
}
.footer-logo-text .dot { color: var(--accent); }
.footer-logo-img { height: 44px !important; width: auto !important; max-width: 300px; display: block; }
