/* ==========================================================
   CSS VARIABLES — dark navy theme
========================================================== */
:root {
  --bg:        #ffffff;
  --bg-alt:    #f8faff;
  --bg-card:   #ffffff;
  --border:    rgba(79,70,229,0.12);
  --border-md: rgba(79,70,229,0.2);
  --indigo:    #4f46e5;
  --indigo-hi: #4338ca;
  --indigo-lo: #6366f1;
  --emerald:   #059669;
  --amber:     #d97706;
  --ink:       #0f172a;
  --ink-3:     #334155;
  --muted:     #64748b;
  --font:      'Inter', sans-serif;
  --mono:      'JetBrains Mono', monospace;
  --r-sm:  6px;
  --r-md:  10px;
  --r-lg:  16px;
  --r-xl:  24px;
  --t:     0.22s;
  --ease:  cubic-bezier(0.22, 1, 0.36, 1);
  --shadow-glow: 0 0 0 3px rgba(79,70,229,0.15), 0 4px 20px rgba(79,70,229,0.1);
}

/* ==========================================================
   BASE
========================================================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; overflow-x: hidden; }
body {
  font-family: var(--font);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: var(--font); cursor: pointer; }

/* ==========================================================
   CURSOR SPOTLIGHT
========================================================== */
.cursor-spotlight { display: none; }

/* ==========================================================
   NAVBAR — scrolled state
========================================================== */
.navbar.scrolled {
  box-shadow: 0 1px 0 rgba(0,0,0,0.2), 0 4px 24px rgba(0,0,0,0.18);
}

/* ==========================================================
   LANGUAGE SWITCHER
========================================================== */
.lang-btn {
  color: var(--muted);
  border: none;
  background: none;
  font-family: var(--font);
}
.lang-btn svg { border-radius: 2px; flex-shrink: 0; }
.lang-btn:hover { color: var(--ink); background: rgba(255,255,255,0.07); }
.lang-btn--active {
  background: rgba(79,70,229,0.12) !important;
  color: #4f46e5 !important;
  border: 1px solid rgba(79,70,229,0.3) !important;
}

/* ==========================================================
   HIGHLIGHT (loop circle text gradient)
========================================================== */
.highlight {
  background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ==========================================================
   LOOP CIRCLE
========================================================== */
@keyframes loop-glow {
  0%, 100% { box-shadow: 0 4px 40px rgba(79,70,229,0.14), 0 2px 16px rgba(79,70,229,0.08); }
  50%       { box-shadow: 0 8px 60px rgba(79,70,229,0.22), 0 4px 24px rgba(124,58,237,0.12); }
}

@keyframes spin-loop {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

.loop-circle {
  position: relative;
  z-index: 0;
  width: 540px;
  height: 540px;
  border-radius: 50%;
  border: 2px solid rgba(79,70,229,0.28);
  background: linear-gradient(145deg, #f5f3ff 0%, #ede9fe 50%, #e8e4ff 100%);
  box-shadow: 0 4px 40px rgba(79,70,229,0.14), 0 2px 16px rgba(79,70,229,0.08);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 36px 32px;
  flex-shrink: 0;
  animation: loop-glow 5s ease-in-out infinite;
  transition: transform 0.45s cubic-bezier(0.22,1,0.36,1), border-color 0.45s ease, background 0.45s ease;
  cursor: default;
}

.loop-circle:hover {
  transform: scale(1.03);
  border-color: rgba(79,70,229,0.45);
  border-style: solid;
  background: linear-gradient(145deg, #ede9fe 0%, #ddd6fe 50%, #d8d4ff 100%);
  animation: loop-glow-intense 2s ease-in-out infinite;
}

.loop-circle:hover .loop-spin-wrap,
.loop-circle:hover .loop-badge-icon {
  display: flex;
  align-items: center;
  color: #4f46e5;
  opacity: 0.8;
  animation: spin-loop 5s linear infinite;
  flex-shrink: 0;
}
.loop-badge-icon svg { width: 10px; height: 10px; }

.loop-circle__text {
  text-align: center;
  font-size: 1.65rem;
  font-weight: 900;
  line-height: 1.35;
  letter-spacing: -0.02em;
  color: #1e293b;
  padding: 4px 0;
  max-width: 270px;
}

.loop-circle__reload {
  display: flex;
  justify-content: center;
  padding: 4px 0;
}

.loop-spin-wrap {
  display: flex;
  align-items: center;
  color: rgba(79,70,229,0.6);
  animation: spin-loop 5s linear infinite;
}
.loop-spin-wrap svg { width: 22px; height: 22px; }

.loop-circle__divider {
  height: 1px;
  width: 80%;
  background: linear-gradient(to right, transparent, rgba(79,70,229,0.2) 30%, rgba(79,70,229,0.2) 70%, transparent);
  margin: 8px 0 6px;
}

.loop-circle__punchline {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1px;
  margin: 0;
}

.lp-punch {
  font-size: 1rem;
  font-weight: 900;
  color: #4f46e5;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

/* loop break points — how we break the loop */
.loop-break-points {
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin-top: 8px;
  width: 100%;
}
.loop-break-item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  font-family: var(--mono);
  font-size: 0.64rem;
  font-weight: 600;
  color: #4f46e5;
  letter-spacing: 0.02em;
  line-height: 1.3;
}
.loop-break-item svg { flex-shrink: 0; opacity: 0.75; }

/* ==========================================================
   PROFILE TABS — active state (JS adds .profile-tab--active)
========================================================== */
.profile-tab {
  border: 1px solid transparent;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.profile-tab:hover {
  background: rgba(79,70,229,0.05);
  color: #4f46e5;
  border-color: rgba(79,70,229,0.15);
}
.profile-tab--active {
  background: linear-gradient(135deg, rgba(79,70,229,0.1) 0%, rgba(124,58,237,0.08) 100%) !important;
  color: #4f46e5 !important;
  border-color: rgba(79,70,229,0.3) !important;
}

/* ==========================================================
   HIDE SCROLLBAR UTILITY
========================================================== */
.hide-scrollbar { scrollbar-width: none; -ms-overflow-style: none; }
.hide-scrollbar::-webkit-scrollbar { display: none; }

/* ==========================================================
   SCROLL REVEAL
========================================================== */
.reveal {
  opacity: 0;
  transform: translateY(28px) scale(0.99);
  transition: opacity 0.65s var(--ease), transform 0.65s var(--ease);
}
.reveal.visible { opacity: 1; transform: translateY(0) scale(1); }
.reveal-delay-1 { transition-delay: 0.08s; }
.reveal-delay-2 { transition-delay: 0.18s; }
.reveal-delay-3 { transition-delay: 0.28s; }

/* ==========================================================
   BUTTONS — used in booking modal
========================================================== */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--indigo);
  color: #fff;
  font-size: 0.9rem;
  font-weight: 600;
  padding: 11px 22px;
  border: none;
  border-radius: var(--r-md);
  cursor: pointer;
  transition: background var(--t) var(--ease), transform var(--t) var(--ease), box-shadow var(--t) var(--ease);
}
.btn-primary:hover { background: var(--indigo-hi); }
.btn-primary:active { transform: scale(0.98); }
.btn-primary:disabled { opacity: 0.6; cursor: not-allowed; }

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: var(--ink-3);
  font-size: 0.9rem;
  font-weight: 600;
  padding: 11px 22px;
  border: 1.5px solid var(--border-md);
  border-radius: var(--r-md);
  cursor: pointer;
  transition: border-color var(--t), background var(--t);
}
.btn-outline:hover { border-color: var(--indigo); color: var(--indigo-lo); }

/* ==========================================================
   BOOKING MODAL
========================================================== */
@keyframes modalIn {
  from { opacity: 0; transform: translateY(12px) scale(0.98); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(5,10,25,0.7);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 1000;
  display: flex; align-items: center; justify-content: center;
  padding: 16px;
}

.modal {
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  border-radius: var(--r-xl);
  padding: 36px;
  max-width: 500px; width: 100%;
  max-height: 90vh; overflow-y: auto;
  position: relative;
  box-shadow: 0 32px 80px rgba(0,0,0,0.4), 0 8px 24px rgba(0,0,0,0.25);
  animation: modalIn 0.2s var(--ease);
}

.modal__close {
  position: absolute; top: 14px; right: 14px;
  background: var(--bg); border: 1px solid var(--border);
  color: var(--muted); cursor: pointer; padding: 6px; border-radius: var(--r-sm);
  display: flex; align-items: center; justify-content: center;
  transition: background var(--t), color var(--t);
}
.modal__close:hover { background: var(--bg-alt); color: var(--ink); border-color: var(--border-md); }

.modal__header { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 28px; padding-right: 36px; }
.modal__header > svg { color: var(--indigo-lo); flex-shrink: 0; margin-top: 2px; }
.modal__title  { font-size: 1.2rem; font-weight: 800; color: var(--ink); margin: 0 0 6px; line-height: 1.3; letter-spacing: -0.02em; }
.modal__avail  { display: flex; align-items: center; gap: 5px; font-size: 0.76rem; color: var(--emerald); margin: 0; font-weight: 600; }
.modal__label  { display: block; font-size: 0.68rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: 0.1em; margin: 0 0 9px; font-family: var(--mono); }

.slot-grid { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }

.slot-btn {
  padding: 8px 14px; border-radius: var(--r-sm);
  border: 1.5px solid var(--border);
  background: var(--bg);
  color: var(--ink-3);
  font-size: 0.84rem; font-weight: 500; font-family: var(--font);
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s, color 0.15s;
  white-space: nowrap;
}
.slot-btn:hover { border-color: var(--indigo); color: var(--indigo-lo); background: rgba(91,141,238,0.08); }
.slot-btn--active { border-color: var(--indigo); background: rgba(91,141,238,0.12); color: #c7d2fe; font-weight: 700; }

.modal__input,
.modal__textarea {
  width: 100%; padding: 11px 14px;
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: var(--r-md);
  color: var(--ink); font-size: 0.9rem; font-family: var(--font);
  margin-bottom: 16px; box-sizing: border-box;
  transition: border-color var(--t), box-shadow var(--t); outline: none;
}
.modal__input:focus,
.modal__textarea:focus { border-color: var(--indigo); box-shadow: var(--shadow-glow); }
.modal__input::placeholder,
.modal__textarea::placeholder { color: var(--muted); opacity: 0.7; }
.modal__textarea  { resize: vertical; min-height: 80px; }
.modal__date      { color-scheme: light; }
.modal__date-err  { font-size: 0.8rem; color: #f87171; margin: -10px 0 14px; }
.modal__time-hint { font-size: 0.82rem; color: var(--muted); margin-bottom: 12px; }
.modal__submit    { width: 100%; justify-content: center; margin-top: 4px; }
.modal__note      { text-align: center; font-size: 0.74rem; color: var(--muted); margin: 10px 0 0; }

.modal__success      { text-align: center; padding: 16px 0 8px; }
.modal__success-icon { display: flex; justify-content: center; margin-bottom: 16px; }
.modal__success-icon svg { color: var(--emerald); }
.modal__success h3   { font-size: 1.3rem; font-weight: 800; color: var(--ink); margin: 0 0 8px; letter-spacing: -0.02em; }
.modal__success p    { color: var(--muted); font-size: 0.95rem; margin: 0 0 28px; line-height: 1.6; }
.modal__done         { margin: 0 auto; }

/* ==========================================================
   ARROW SPAN (used in translation strings)
========================================================== */
.arrow {
  color: #7ba7f5;
  font-weight: 700;
  display: inline;
}

/* ==========================================================
   TEXT CONTRAST OVERRIDES — light theme
========================================================== */
.text-slate-400 { color: #475569 !important; }
.text-slate-500 { color: #374151 !important; }
.text-slate-300 { color: #64748b !important; }

/* ==========================================================
   STEP CARDS — flex column so green artifact boxes align
========================================================== */
.step-card { display: flex; flex-direction: column; }
.step-card > p { flex: 1; }

/* ==========================================================
   RESPONSIVE — loop circle on mobile
========================================================== */
@media (max-width: 768px) {
  .loop-circle {
    width: 420px; height: 420px;
    padding: 30px 26px;
  }
  .loop-circle__text { font-size: 1.3rem; font-weight: 900; max-width: 250px; }
  .lp-punch { font-size: 0.9rem; }
  .loop-spin-wrap svg { width: 18px; height: 18px; }
  .loop-break-item { font-size: 0.6rem; gap: 4px; }
  .modal { padding: 24px 18px; border-radius: var(--r-lg); }
}