/* ===================================================================
   Design tokens — "Jam With Indur" cyberpunk identity
   Palette sampled directly from the logo: cyan #36B5FE ("JAM WITH"),
   orange #FF904C ("INDUR"), teal #0090B0 (the blob shape).
   =================================================================== */
:root {
  --void: #0B0818;
  --void-deep: #050310;
  --surface: #16112B;
  --surface-alt: #201A3D;
  --cyan: #36B5FE;
  --teal: #0090B0;
  --orange: #FF904C;
  --pink: #FF3D7A;
  --text: #F1EDFF;
  --text-muted: #9C93C4;
  --border: rgba(54, 181, 254, 0.22);
  --border-soft: rgba(241, 237, 255, 0.1);
  --success: #36E0B4;

  --font-display: "Orbitron", sans-serif;
  --font-body: "Rajdhani", sans-serif;
  --font-mono: "IBM Plex Mono", monospace;

  --radius: 10px;
  --radius-sm: 6px;
  --container: 1080px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.08rem;
  background: var(--void);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 0.55em;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}
h1 { font-size: clamp(2rem, 4.6vw, 3.1rem); }
h2 { font-size: clamp(1.4rem, 2.8vw, 1.9rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
a { color: var(--cyan); text-decoration: none; }
a:hover { text-decoration: underline; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.section { padding: 64px 0; }
.section-tight { padding: 40px 0; }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--orange);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
}
.eyebrow::before {
  content: "";
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 8px 1px var(--cyan);
  animation: pulse 1.8s ease-in-out infinite;
}
@media (prefers-reduced-motion: reduce) { .eyebrow::before { animation: none; } }
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.45; }
}

/* Focus visibility */
a:focus-visible, button:focus-visible, input:focus-visible,
textarea:focus-visible, select:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 2px;
}

/* ===================================================================
   Signature: the logo's glitch/chromatic-aberration wordmark treatment,
   rebuilt as reusable text so it stays crisp and themeable everywhere.
   =================================================================== */
.glitch-text {
  position: relative;
  display: inline-block;
  color: var(--text);
}
.glitch-text::before,
.glitch-text::after {
  content: attr(data-text);
  position: absolute;
  left: 0; top: 0;
  width: 100%;
  clip-path: inset(0 0 0 0);
}
.glitch-text::before { color: var(--cyan); transform: translate(-2px, -1px); mix-blend-mode: screen; }
.glitch-text::after { color: var(--pink); transform: translate(2px, 1px); mix-blend-mode: screen; opacity: 0.85; }
@media (prefers-reduced-motion: no-preference) {
  .glitch-text::before { animation: glitch-shift 6.5s ease-in-out infinite; }
  .glitch-text::after { animation: glitch-shift 6.5s ease-in-out infinite reverse; }
}
@keyframes glitch-shift {
  0%, 92%, 100% { transform: translate(-2px, -1px); }
  93% { transform: translate(3px, 1px); }
  94% { transform: translate(-4px, 1px); }
  95% { transform: translate(2px, -2px); }
  96% { transform: translate(-2px, -1px); }
}
.brand-indur {
  font-family: var(--font-display);
  color: var(--orange);
  letter-spacing: 0.18em;
  text-shadow: 0 0 14px rgba(255, 144, 76, 0.55);
}

/* ===================================================================
   Buttons
   =================================================================== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-display); font-weight: 600; font-size: 0.88rem;
  letter-spacing: 0.04em; text-transform: uppercase;
  padding: 14px 26px; border-radius: var(--radius-sm);
  border: 1.5px solid transparent; cursor: pointer;
  text-decoration: none !important; transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.15s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--cyan); color: var(--void-deep); box-shadow: 0 0 18px rgba(54, 181, 254, 0.35); }
.btn-primary:hover { box-shadow: 0 0 28px rgba(54, 181, 254, 0.6); }
.btn-secondary { background: transparent; border-color: var(--orange); color: var(--orange); }
.btn-secondary:hover { background: rgba(255, 144, 76, 0.12); box-shadow: 0 0 16px rgba(255, 144, 76, 0.3); }
.btn-ghost { background: transparent; color: var(--text-muted); border-color: var(--border-soft); }
.btn-ghost:hover { border-color: var(--cyan); color: var(--cyan); }
.btn-block { width: 100%; }
.btn-sm { padding: 9px 16px; font-size: 0.78rem; }
.btn-danger { background: var(--pink); color: #fff; }
.btn-danger:hover { box-shadow: 0 0 18px rgba(255, 61, 122, 0.5); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; box-shadow: none; }

/* ===================================================================
   Navigation
   =================================================================== */
.site-header {
  background: var(--void-deep); color: var(--text);
  position: sticky; top: 0; z-index: 50;
  border-bottom: 1px solid var(--border-soft);
}
.nav-container {
  max-width: var(--container); margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; justify-content: space-between;
  height: 68px;
}
.nav-logo {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none !important;
}
.nav-mark { width: 34px; height: 34px; object-fit: contain; flex: none; filter: drop-shadow(0 0 6px rgba(54,181,254,0.5)); }
.nav-wordmark {
  font-family: var(--font-display); font-weight: 700; font-size: 1.05rem;
  color: var(--orange) !important; letter-spacing: 0.12em;
}

.nav-toggle {
  display: none; background: none; border: none; color: var(--text);
  font-size: 1.5rem; cursor: pointer; padding: 4px;
}
.nav-links {
  list-style: none; display: flex; align-items: center; gap: 4px;
  margin: 0; padding: 0;
}
.nav-links a {
  color: var(--text-muted) !important; text-decoration: none !important;
  font-family: var(--font-display); font-size: 0.78rem; letter-spacing: 0.04em; text-transform: uppercase;
  padding: 8px 12px; border-radius: var(--radius-sm);
  transition: color 0.15s ease, background 0.15s ease;
}
.nav-links a:hover { color: var(--cyan) !important; background: var(--surface-alt); }
.nav-links .nav-cta {
  background: var(--cyan); color: var(--void-deep) !important; font-weight: 700;
  padding: 8px 16px; box-shadow: 0 0 14px rgba(54, 181, 254, 0.3);
}
.nav-links .nav-cta:hover { box-shadow: 0 0 20px rgba(54, 181, 254, 0.55); background: var(--cyan); }
.nav-guest, .nav-user, .nav-admin { display: none; }
body.logged-out .nav-guest { display: list-item; }
body.logged-in .nav-user { display: list-item; }
body.is-admin .nav-admin { display: list-item; }

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute; top: 68px; left: 0; right: 0;
    background: var(--void-deep); border-bottom: 1px solid var(--border-soft);
    flex-direction: column; align-items: stretch; gap: 0; padding: 8px;
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links li { width: 100%; }
  .nav-links a { display: block; padding: 12px; }
}

/* ===================================================================
   Footer
   =================================================================== */
.site-footer {
  background: var(--void-deep); color: var(--text-muted);
  padding: 40px 0; margin-top: 80px; border-top: 1px solid var(--border-soft);
}
.footer-container {
  max-width: var(--container); margin: 0 auto; padding: 0 24px;
  display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between;
  font-size: 0.85rem;
}
.footer-links { list-style: none; display: flex; gap: 20px; margin: 0; padding: 0; flex-wrap: wrap; }
.footer-links a { color: var(--text-muted) !important; }
.footer-links a:hover { color: var(--cyan) !important; }
.footer-social { display: flex; gap: 14px; }
.footer-social a { color: var(--text-muted) !important; font-family: var(--font-mono); font-size: 0.85rem; }

/* ===================================================================
   Hero (home)
   =================================================================== */
.hero {
  background:
    radial-gradient(ellipse at 80% 0%, rgba(54,181,254,0.16) 0%, transparent 55%),
    radial-gradient(ellipse at 10% 100%, rgba(255,144,76,0.1) 0%, transparent 50%),
    var(--void);
  color: var(--text);
  padding: 72px 0 88px; position: relative; overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute; inset: 0;
  background: repeating-linear-gradient(0deg, rgba(54,181,254,0.035) 0px, rgba(54,181,254,0.035) 1px, transparent 1px, transparent 3px);
  pointer-events: none;
}
.hero .container { position: relative; z-index: 1; }
.hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 40px; align-items: center; }
@media (max-width: 860px) { .hero-grid { grid-template-columns: 1fr; } .hero-art { order: -1; max-width: 280px; margin: 0 auto; } }
.hero-brand { font-size: clamp(2.1rem, 5vw, 3.4rem); line-height: 1.05; margin-bottom: 0.4em; }
.hero-brand .glitch-text { font-family: var(--font-display); text-transform: uppercase; display: block; }
.hero-brand .brand-indur { font-size: 0.85em; display: block; margin-top: 0.15em; }
.hero p.lede { color: var(--text-muted); font-size: 1.15rem; max-width: 52ch; }
.hero-actions { display: flex; gap: 14px; margin-top: 28px; flex-wrap: wrap; }
.hero-art { position: relative; }
.hero-art img { width: 100%; height: auto; display: block; filter: drop-shadow(0 0 30px rgba(54,181,254,0.25)); }

.about-portrait {
  position: relative;
  isolation: isolate;
  width: min(100%, 320px);
  aspect-ratio: 1;
  margin: 0 auto 28px;
  overflow: hidden;
  border-radius: 50%;
  animation: about-portrait-halo 2.8s ease-in-out infinite alternate;
}
.about-portrait img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: drop-shadow(0 0 30px rgba(54,181,254,0.3));
  -webkit-mask-image: radial-gradient(circle at 57% 47%, #000 42%, rgba(0,0,0,0.82) 66%, transparent 100%);
  mask-image: radial-gradient(circle at 57% 47%, #000 42%, rgba(0,0,0,0.82) 66%, transparent 100%);
}
.about-portrait::after {
  content: "";
  position: absolute;
  z-index: 0;
  inset: -18%;
  border-radius: 50%;
  pointer-events: none;
  background: radial-gradient(ellipse at 66% 40%, rgba(0, 229, 255, 0.48) 0%, rgba(54, 181, 254, 0.16) 32%, transparent 68%);
  mix-blend-mode: screen;
  animation: about-portrait-glow 2.8s ease-in-out infinite alternate;
}

@keyframes about-portrait-glow {
  from { opacity: 0.28; transform: scale(0.92); }
  to { opacity: 0.72; transform: scale(1.08); }
}

@keyframes about-portrait-halo {
  from { box-shadow: 0 0 18px rgba(0, 229, 255, 0.24), 0 0 42px rgba(54, 181, 254, 0.12); }
  to { box-shadow: 0 0 30px rgba(0, 229, 255, 0.5), 0 0 68px rgba(54, 181, 254, 0.28); }
}

@media (prefers-reduced-motion: reduce) {
  .about-portrait, .about-portrait::after { animation: none; }
  .about-portrait::after { opacity: 0.48; }
}

.meter { display: inline-flex; align-items: flex-end; gap: 4px; height: 18px; margin-left: 6px; vertical-align: middle; }
.meter span {
  width: 4px; background: var(--orange); border-radius: 2px;
  animation: meter 1.1s ease-in-out infinite;
}
.meter span:nth-child(1) { height: 40%; animation-delay: 0s; }
.meter span:nth-child(2) { height: 100%; animation-delay: 0.15s; }
.meter span:nth-child(3) { height: 65%; animation-delay: 0.3s; }
.meter span:nth-child(4) { height: 85%; animation-delay: 0.45s; }
.meter span:nth-child(5) { height: 50%; animation-delay: 0.6s; }
@keyframes meter { 0%, 100% { transform: scaleY(0.4); } 50% { transform: scaleY(1); } }
@media (prefers-reduced-motion: reduce) {
  .meter span { animation: none; }
  .meter span:nth-child(1) { height: 40%; } .meter span:nth-child(2) { height: 90%; }
  .meter span:nth-child(3) { height: 60%; } .meter span:nth-child(4) { height: 75%; }
  .meter span:nth-child(5) { height: 45%; }
}

/* ===================================================================
   Cards / grids
   =================================================================== */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 760px) { .grid-2, .grid-3 { grid-template-columns: 1fr; } }

.card {
  background: var(--surface); border: 1px solid var(--border-soft); border-radius: var(--radius);
  padding: 28px; transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.card:hover { border-color: var(--border); }
.service-card { display: flex; flex-direction: column; height: 100%; }
.service-card .price {
  font-family: var(--font-mono); font-size: 1.5rem; color: var(--cyan);
  margin: 12px 0 4px; text-shadow: 0 0 12px rgba(54,181,254,0.35);
}
.service-card .duration { font-family: var(--font-mono); font-size: 0.82rem; color: var(--text-muted); margin-bottom: 16px; }
.service-card .desc { flex: 1; color: var(--text-muted); }

/* ===================================================================
   Forms
   =================================================================== */
.form-group { margin-bottom: 18px; }
label { display: block; font-weight: 600; font-family: var(--font-display); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 8px; color: var(--text-muted); }
input, textarea, select {
  width: 100%; padding: 11px 13px; border: 1.5px solid var(--border-soft); border-radius: var(--radius-sm);
  font-family: var(--font-body); font-size: 1.05rem; background: var(--surface); color: var(--text);
}
input::placeholder, textarea::placeholder { color: var(--text-muted); opacity: 0.7; }
input:focus, textarea:focus, select:focus { border-color: var(--cyan); }
textarea { resize: vertical; min-height: 90px; }
.form-card { max-width: 440px; margin: 0 auto; }
.form-hint { font-size: 0.85rem; color: var(--text-muted); margin-top: 6px; }
.form-error {
  background: rgba(255, 61, 122, 0.1); border: 1px solid var(--pink); color: #FF8FB2;
  padding: 12px 14px; border-radius: var(--radius-sm); font-size: 0.9rem; margin-bottom: 16px;
}
.form-success {
  background: rgba(54, 224, 180, 0.1); border: 1px solid var(--success); color: var(--success);
  padding: 12px 14px; border-radius: var(--radius-sm); font-size: 0.9rem; margin-bottom: 16px;
}

/* ===================================================================
   Booking calendar / slots
   =================================================================== */
.slot-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 10px; margin: 20px 0; }
.slot-btn {
  font-family: var(--font-mono); font-size: 0.92rem; padding: 12px 8px;
  border: 1.5px solid var(--cyan); border-radius: var(--radius-sm);
  background: var(--surface); color: var(--cyan); cursor: pointer; text-align: center;
  transition: box-shadow 0.15s ease, background 0.15s ease;
}
.slot-btn:hover { background: rgba(54,181,254,0.15); box-shadow: 0 0 12px rgba(54,181,254,0.35); }
.slot-btn.selected { background: var(--orange); border-color: var(--orange); color: var(--void-deep); box-shadow: 0 0 16px rgba(255,144,76,0.5); }
.slot-btn.taken {
  border-color: var(--border-soft); color: var(--text-muted); background: transparent;
  cursor: not-allowed; text-decoration: line-through;
}
.slot-empty { color: var(--text-muted); font-style: italic; padding: 20px 0; }

/* ===================================================================
   Tables (dashboard / admin)
   =================================================================== */
table { width: 100%; border-collapse: collapse; font-size: 0.98rem; }
th, td { text-align: left; padding: 12px 10px; border-bottom: 1px solid var(--border-soft); }
th { font-family: var(--font-display); font-size: 0.72rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.06em; }
.badge {
  font-family: var(--font-mono); font-size: 0.75rem; padding: 3px 9px; border-radius: 20px;
  display: inline-block;
}
.badge-confirmed { background: rgba(54,224,180,0.12); color: var(--success); }
.badge-cancelled { background: var(--surface-alt); color: var(--text-muted); }
.table-wrap { overflow-x: auto; }

/* ===================================================================
   Tabs (admin)
   =================================================================== */
.tabs { display: flex; gap: 4px; border-bottom: 1.5px solid var(--border-soft); margin-bottom: 28px; flex-wrap: wrap; }
.tab-btn {
  background: none; border: none; padding: 12px 18px; cursor: pointer;
  font-family: var(--font-display); font-weight: 600; font-size: 0.82rem; letter-spacing: 0.04em; text-transform: uppercase;
  color: var(--text-muted);
  border-bottom: 2.5px solid transparent; margin-bottom: -1.5px;
}
.tab-btn.active { color: var(--cyan); border-bottom-color: var(--cyan); }
.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* ===================================================================
   Live chat
   =================================================================== */
.chat-thread {
  display: flex; flex-direction: column; gap: 10px;
  height: 420px; overflow-y: auto; padding: 18px;
  background: var(--surface); border: 1px solid var(--border-soft); border-radius: var(--radius);
  margin-bottom: 14px;
}
.chat-bubble {
  max-width: 75%; padding: 10px 14px; border-radius: 14px;
  font-size: 0.98rem; line-height: 1.4; word-wrap: break-word;
}
.chat-bubble .chat-meta {
  display: block; font-family: var(--font-mono); font-size: 0.66rem;
  letter-spacing: 0.03em; margin-top: 5px; opacity: 0.75;
}
.chat-bubble.mine {
  align-self: flex-end; background: var(--cyan); color: var(--void-deep);
  border-bottom-right-radius: 3px;
}
.chat-bubble.theirs {
  align-self: flex-start; background: var(--surface-alt); color: var(--text);
  border: 1px solid var(--border-soft); border-bottom-left-radius: 3px;
}
.chat-empty { color: var(--text-muted); text-align: center; margin: auto; font-style: italic; }
.chat-input-row { display: flex; gap: 10px; align-items: flex-end; }
.chat-input-row textarea { flex: 1; min-height: 46px; max-height: 120px; resize: vertical; }
.chat-input-row .btn { flex: none; }

.chat-admin-grid { display: grid; grid-template-columns: 280px 1fr; gap: 20px; align-items: start; }
@media (max-width: 780px) { .chat-admin-grid { grid-template-columns: 1fr; } }

.chat-client-list { display: flex; flex-direction: column; gap: 4px; max-height: 500px; overflow-y: auto; }
.chat-client-item {
  display: flex; justify-content: space-between; align-items: center; gap: 8px;
  padding: 12px 14px; border-radius: var(--radius-sm); cursor: pointer;
  border: 1px solid transparent; background: none; width: 100%; text-align: left;
  font-family: var(--font-body); color: var(--text); font-size: 0.95rem;
}
.chat-client-item:hover { background: var(--surface-alt); }
.chat-client-item.active { border-color: var(--cyan); background: var(--surface-alt); }
.chat-client-item .client-name { display: flex; align-items: center; gap: 7px; }
.unread-dot {
  width: 8px; height: 8px; border-radius: 50%; flex: none;
  background: var(--orange); box-shadow: 0 0 6px var(--orange);
}
.nav-badge {
  display: inline-block; width: 7px; height: 7px; border-radius: 50%;
  background: var(--orange); box-shadow: 0 0 6px var(--orange); margin-left: 6px;
  vertical-align: middle;
}

.btn-google {
  background: #fff; color: #1F1F1F; border: 1px solid #DADCE0;
  font-family: var(--font-body); font-weight: 600; font-size: 1rem;
  text-transform: none; letter-spacing: normal;
}
.btn-google:hover { background: #F7F7F7; box-shadow: 0 2px 10px rgba(0,0,0,0.35); }

.booking-details-preview {
  display: inline-block; max-width: 220px; overflow: hidden;
  text-overflow: ellipsis; white-space: nowrap; vertical-align: bottom;
}

/* ===================================================================
   Utility
   =================================================================== */
.muted { color: var(--text-muted); }
.center { text-align: center; }
.mt-0 { margin-top: 0; }
.stack { display: flex; flex-direction: column; gap: 10px; }
.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.row-between { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.divider { border: none; border-top: 1px solid var(--border-soft); margin: 28px 0; }
.small { font-size: 0.85rem; }
.hidden { display: none !important; }
.access-gate { max-width: 440px; margin: 80px auto; text-align: center; }
.spinner {
  width: 22px; height: 22px; border: 3px solid var(--border-soft); border-top-color: var(--cyan);
  border-radius: 50%; animation: spin 0.7s linear infinite; margin: 0 auto;
}
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .spinner { animation: spin 1.4s linear infinite; } }
