/* JetEdCo Partner Room — Live Room styles.
   Self-contained on top of /css/brand.css (tokens + Satoshi).

   STRUCTURE: the first block is the proven /webinar/live/style.css kept
   verbatim — it carries every state mechanic the room relies on ([hidden]
   handling, overlay stacking, apply lock/open/done, chat join → compose).
   The ELITE PARTNER THEME block at the bottom only re-skins it (gold
   accents, darker ground, partner badge). Keep it that way: never hardcode
   display: on an element the JS toggles with `hidden`. */

:root {
  --room-bg: #202329;
  --room-panel: rgba(255, 255, 255, 0.045);
  --room-border: rgba(204, 217, 245, 0.14);
  --room-ink: var(--jetedco-white);
  --room-muted: rgba(204, 217, 245, 0.62);
  --room-red: #e5484d;
}

* { box-sizing: border-box; }

html, body { margin: 0; }

[hidden] { display: none !important; }

body {
  background:
    radial-gradient(1100px 500px at 70% -10%, rgba(69, 137, 215, 0.16), transparent 60%),
    var(--room-bg);
  color: var(--room-ink);
  font-family: var(--font-brand);
  font-weight: var(--weight-body);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}

/* ---- Room bar ---- */
.room-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-width: 1280px;
  width: 100%;
  margin: 0 auto;
  padding: 16px clamp(14px, 3vw, 28px) 8px;
}
.room-logo img { display: block; width: 128px; height: auto; }

.room-status { display: flex; align-items: center; gap: 12px; }

.live-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(229, 72, 77, 0.14);
  border: 1px solid rgba(229, 72, 77, 0.45);
  color: #ff8589;
  font-weight: var(--weight-title);
  font-size: 12px;
  letter-spacing: 0.08em;
}

.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--room-red);
  box-shadow: 0 0 0 0 rgba(229, 72, 77, 0.5);
  animation: live-pulse 1.6s ease-out infinite;
  flex: 0 0 auto;
}
@keyframes live-pulse {
  0% { box-shadow: 0 0 0 0 rgba(229, 72, 77, 0.5); }
  70% { box-shadow: 0 0 0 7px rgba(229, 72, 77, 0); }
  100% { box-shadow: 0 0 0 0 rgba(229, 72, 77, 0); }
}

.watching {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--room-muted);
  font-size: 12.5px;
  font-weight: var(--weight-subtitle);
  font-variant-numeric: tabular-nums;
}
.watching svg { width: 13px; height: 13px; opacity: 0.8; }
.watching #watching-num { color: var(--room-ink); font-weight: var(--weight-title); }

/* ---- Layout ---- */
.room { flex: 1; width: 100%; }
.room-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 344px;
  gap: 18px;
  max-width: 1280px;
  margin: 0 auto;
  padding: 8px clamp(14px, 3vw, 28px) 28px;
  align-items: start;
}

/* ---- Player ---- */
.player {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 14px;
  overflow: hidden;
  background: #141619;
  border: 1px solid var(--room-border);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}
.player video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
}

.overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 20px;
}
.overlay[hidden] { display: none; }

.overlay-map {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.16;
  pointer-events: none;
}
.overlay-inner { position: relative; max-width: 560px; }

.overlay-kicker {
  margin: 0 0 10px;
  color: var(--jetedco-cream);
  font-weight: var(--weight-subtitle);
  font-size: clamp(11px, 1.6vw, 13px);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.overlay-title {
  margin: 0 0 18px;
  font-weight: var(--weight-title);
  font-size: clamp(22px, 4.2vw, 40px);
  line-height: 1.08;
  color: #fff;
}
.overlay-note {
  margin: 16px 0 0;
  color: var(--room-muted);
  font-size: clamp(12px, 1.8vw, 14px);
}

/* countdown chips */
.countdown {
  display: flex;
  justify-content: center;
  gap: clamp(6px, 1.4vw, 12px);
}
.count-chip {
  min-width: clamp(52px, 8vw, 74px);
  padding: clamp(8px, 1.6vw, 14px) 6px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--room-border);
  backdrop-filter: blur(6px);
}
.count-num {
  display: block;
  font-weight: var(--weight-title);
  font-size: clamp(20px, 3.6vw, 32px);
  color: #fff;
  font-variant-numeric: tabular-nums;
}
.count-label {
  display: block;
  margin-top: 2px;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--room-muted);
}

/* tap-for-sound */
.overlay-sound {
  background: transparent;
  border: 0;
  cursor: pointer;
  align-items: end;
  justify-items: center;
  padding-bottom: 26px;
}
.sound-pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 11px 20px;
  border-radius: 999px;
  background: rgba(20, 22, 25, 0.82);
  border: 1px solid var(--room-border);
  backdrop-filter: blur(8px);
  color: #fff;
  font-family: var(--font-brand);
  font-weight: var(--weight-title);
  font-size: 14px;
  animation: sound-breathe 2.2s ease-in-out infinite;
}
.sound-pill svg { width: 18px; height: 18px; color: var(--jetedco-blue); }
@keyframes sound-breathe {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.04); }
}

/* ---- Session head ---- */
.session-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 4px 0;
  flex-wrap: wrap;
}
.session-titles h2 {
  margin: 0;
  font-weight: var(--weight-title);
  font-size: clamp(16px, 2.4vw, 20px);
  color: #fff;
}
.session-titles p {
  margin: 3px 0 0;
  color: var(--room-muted);
  font-size: 13px;
}
.session-hosts {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--room-muted);
  font-size: 12.5px;
  font-weight: var(--weight-subtitle);
}
.session-hosts img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--room-bg);
}
.session-hosts img + img { margin-left: -14px; }

/* ---- Application card ---- */
.apply {
  margin-top: 18px;
  border-radius: 16px;
  background: var(--room-panel);
  border: 1px solid var(--room-border);
  padding: clamp(20px, 3.4vw, 32px);
}
.apply h3 {
  margin: 0 0 8px;
  font-weight: var(--weight-title);
  font-size: clamp(18px, 2.8vw, 24px);
  color: #fff;
}

.apply-locked { text-align: center; padding: 12px 0; }
.apply-locked h3 { color: var(--room-muted); }
.lock-badge {
  width: 46px;
  height: 46px;
  margin: 0 auto 12px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--room-border);
  color: var(--room-muted);
}
.lock-badge svg { width: 22px; height: 22px; }
.apply-locked-note { margin: 0; color: var(--room-muted); font-size: 13.5px; }

.apply-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 12px;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(69, 137, 215, 0.14);
  border: 1px solid rgba(69, 137, 215, 0.4);
  color: var(--jetedco-cream);
  font-size: 12px;
  font-weight: var(--weight-title);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.apply-lede { margin: 0 0 18px; color: var(--room-muted); font-size: 14.5px; }

.typeform-embed {
  position: relative;
  height: min(560px, 78vh);
  border-radius: 12px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--room-border);
}
.typeform-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.typeform-loading {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  text-align: center;
  color: var(--room-muted);
  font-size: 13.5px;
}
.spinner {
  display: block;
  width: 26px;
  height: 26px;
  margin: 0 auto 10px;
  border-radius: 50%;
  border: 3px solid rgba(204, 217, 245, 0.2);
  border-top-color: var(--jetedco-blue);
  animation: spin 0.9s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.apply-done { text-align: center; padding: 8px 0; }
.cal-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 6px;
  padding: 15px 30px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--jetedco-blue), #2f6cb4);
  color: #fff;
  text-decoration: none;
  font-weight: var(--weight-title);
  font-size: 16px;
  box-shadow: 0 12px 30px rgba(69, 137, 215, 0.35);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.cal-cta:hover { transform: translateY(-2px); box-shadow: 0 16px 36px rgba(69, 137, 215, 0.45); }
.apply-small { margin: 14px 0 0; color: var(--room-muted); font-size: 12.5px; }

/* ---- Chat ---- */
.chat {
  display: flex;
  flex-direction: column;
  border-radius: 16px;
  background: var(--room-panel);
  border: 1px solid var(--room-border);
  overflow: hidden;
  position: sticky;
  top: 16px;
  height: min(calc(100vh - 96px), 720px);
}
.chat-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 13px 16px;
  border-bottom: 1px solid var(--room-border);
  background: rgba(255, 255, 255, 0.02);
}
.chat-title {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: var(--weight-title);
  font-size: 13.5px;
  letter-spacing: 0.04em;
  color: #fff;
}
.chat-lock { width: 14px; height: 14px; color: var(--jetedco-cream); flex: 0 0 auto; }
.chat-mod {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: var(--weight-subtitle);
  color: var(--room-muted);
}

.chat-feed {
  flex: 1;
  overflow-y: auto;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  scrollbar-width: thin;
  scrollbar-color: rgba(204, 217, 245, 0.25) transparent;
}

.msg {
  border-radius: 12px;
  padding: 9px 12px;
  font-size: 13.5px;
  line-height: 1.45;
  max-width: 92%;
}
.msg p { margin: 0; overflow-wrap: anywhere; }
.msg-name {
  display: block;
  font-weight: var(--weight-title);
  font-size: 11.5px;
  margin-bottom: 2px;
  color: var(--jetedco-cream);
}

.msg-host {
  background: rgba(69, 137, 215, 0.13);
  border: 1px solid rgba(69, 137, 215, 0.3);
}
.msg-host .msg-name { color: var(--jetedco-blue); }

.msg-mine {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--room-border);
  align-self: flex-end;
}

.msg-system {
  align-self: center;
  background: transparent;
  color: var(--room-muted);
  font-size: 12.5px;
  text-align: center;
  padding: 2px 8px;
}

.chat-join, .chat-compose {
  padding: 12px 14px 14px;
  border-top: 1px solid var(--room-border);
  background: rgba(255, 255, 255, 0.02);
}
.chat-join label {
  display: block;
  margin-bottom: 4px;
  font-size: 11.5px;
  font-weight: var(--weight-subtitle);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--room-muted);
}
.chat-join-note {
  margin: 0 0 12px;
  font-size: 12px;
  line-height: 1.45;
  color: var(--room-muted);
}
.chat-field {
  display: block;
  width: 100%;
  margin-bottom: 8px;
  padding: 11px 14px;
  border-radius: 10px;
  border: 1px solid var(--room-border);
  background: rgba(20, 22, 25, 0.6);
  color: var(--room-ink);
  font-family: var(--font-brand);
  font-size: 16px; /* ≥16px stops iOS auto-zoom */
}
.chat-field::placeholder { color: rgba(204, 217, 245, 0.4); }
.chat-field:focus {
  outline: none;
  border-color: rgba(69, 137, 215, 0.6);
  box-shadow: 0 0 0 3px rgba(69, 137, 215, 0.18);
}
.chat-join-btn {
  width: 100%;
  margin-top: 2px;
  padding: 12px;
  border: 0;
  border-radius: 10px;
  background: var(--jetedco-blue);
  color: #fff;
  font-family: var(--font-brand);
  font-weight: var(--weight-title);
  font-size: 14px;
  cursor: pointer;
  transition: filter 0.15s ease;
}
.chat-join-btn:hover { filter: brightness(1.1); }
.chat-join-err { margin: 9px 0 0; color: #ff8589; font-size: 12px; }
.chat-compose-note {
  display: flex;
  align-items: center;
  gap: 5px;
  margin: 8px 2px 0;
  font-size: 11px;
  color: var(--room-muted);
}
.chat-compose-note .chat-lock { width: 11px; height: 11px; }
.chat-row { display: flex; gap: 8px; }
.chat-row input {
  flex: 1;
  min-width: 0;
  padding: 11px 14px;
  border-radius: 10px;
  border: 1px solid var(--room-border);
  background: rgba(20, 22, 25, 0.6);
  color: var(--room-ink);
  font-family: var(--font-brand);
  font-size: 16px; /* ≥16px stops iOS auto-zoom */
}
.chat-row input::placeholder { color: rgba(204, 217, 245, 0.4); }
.chat-row input:focus {
  outline: none;
  border-color: rgba(69, 137, 215, 0.6);
  box-shadow: 0 0 0 3px rgba(69, 137, 215, 0.18);
}
.chat-row button {
  flex: 0 0 auto;
  padding: 0 16px;
  border: 0;
  border-radius: 10px;
  background: var(--jetedco-blue);
  color: #fff;
  font-family: var(--font-brand);
  font-weight: var(--weight-title);
  font-size: 14px;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: filter 0.15s ease;
}
.chat-row button:hover { filter: brightness(1.1); }
.chat-row button svg { width: 17px; height: 17px; }

/* ---- Footer ---- */
.room-foot {
  padding: 10px 16px 22px;
  text-align: center;
  color: rgba(204, 217, 245, 0.4);
  font-size: 11.5px;
}
.room-foot p { margin: 0; }

/* ---- Responsive ---- */
@media (max-width: 1020px) {
  .room-grid { grid-template-columns: minmax(0, 1fr); }
  .chat {
    position: static;
    height: auto;
  }
  .chat-feed { height: 300px; }
}

@media (prefers-reduced-motion: reduce) {
  .live-dot, .sound-pill, .spinner { animation: none; }
  .cal-cta { transition: none; }
}

/* ==========================================================================
   ELITE PARTNER THEME — re-skin only. Overrides the look of the block above
   with a champagne-gold accent on a deeper ground. No display: rules here.
   ========================================================================== */

:root {
  --gold: #d4b26a;
  --gold-bright: #efd9a0;
  --gold-deep: #b8953f;
  --gold-ink: #1a1508;              /* text on solid gold */
  --gold-line: rgba(212, 178, 106, 0.32);
  --gold-tint: rgba(212, 178, 106, 0.10);
  --room-bg: #14161b;
  --room-panel: rgba(255, 255, 255, 0.035);
  --room-border: rgba(212, 178, 106, 0.16);
}

body {
  background:
    radial-gradient(1100px 520px at 70% -10%, rgba(212, 178, 106, 0.14), transparent 60%),
    radial-gradient(800px 400px at 0% 100%, rgba(69, 137, 215, 0.08), transparent 60%),
    var(--room-bg);
}

/* Partner badge (room bar) */
.partner-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 12px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(212, 178, 106, 0.18), rgba(212, 178, 106, 0.08));
  border: 1px solid var(--gold-line);
  color: var(--gold-bright);
  font-weight: var(--weight-title);
  font-size: 11.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
}
.partner-badge svg { width: 12px; height: 12px; color: var(--gold); flex: 0 0 auto; }

/* Player: gold hairline + soft glow */
.player {
  border-color: var(--gold-line);
  box-shadow:
    0 0 0 1px rgba(212, 178, 106, 0.08),
    0 24px 60px rgba(0, 0, 0, 0.45),
    0 0 80px rgba(212, 178, 106, 0.08);
}

/* Overlay text */
.overlay-kicker { color: var(--gold); }
.gold-word {
  background: linear-gradient(90deg, var(--gold-bright), var(--gold) 55%, var(--gold-deep));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: var(--gold);
}
.count-chip {
  background: rgba(212, 178, 106, 0.06);
  border-color: var(--gold-line);
}
.count-num { color: var(--gold-bright); }
.sound-pill { border-color: var(--gold-line); }
.sound-pill svg { color: var(--gold); }

/* Session head */
.session-hosts img { border-color: var(--gold); }

/* 1:1 booking card */
.apply { border-color: var(--gold-line); }
.lock-badge {
  background: var(--gold-tint);
  border-color: var(--gold-line);
  color: var(--gold);
}
.apply-chip {
  background: var(--gold-tint);
  border-color: var(--gold-line);
  color: var(--gold-bright);
}
.apply-chip .live-dot { background: var(--gold); box-shadow: 0 0 0 0 rgba(212, 178, 106, 0.5); animation: none; }
.spinner { border-color: rgba(212, 178, 106, 0.2); border-top-color: var(--gold); }
.typeform-embed { border-color: var(--gold-line); }
.cal-cta {
  background: linear-gradient(135deg, var(--gold-bright), var(--gold) 50%, var(--gold-deep));
  color: var(--gold-ink);
  box-shadow: 0 12px 30px rgba(212, 178, 106, 0.28);
}
.cal-cta:hover { box-shadow: 0 16px 36px rgba(212, 178, 106, 0.4); }

/* Chat */
.chat { border-color: var(--gold-line); }
.chat-lock { color: var(--gold); }
.chat-mod {
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--gold-tint);
  border: 1px solid var(--gold-line);
  color: var(--gold-bright);
}
.msg-name { color: var(--gold-bright); }
.msg-host {
  background: rgba(212, 178, 106, 0.10);
  border-color: var(--gold-line);
}
.msg-host .msg-name { color: var(--gold); }
.msg strong { color: var(--gold-bright); }
.chat-field:focus,
.chat-row input:focus {
  border-color: rgba(212, 178, 106, 0.6);
  box-shadow: 0 0 0 3px rgba(212, 178, 106, 0.18);
}
.chat-join-btn,
.chat-row button {
  background: linear-gradient(135deg, var(--gold-bright), var(--gold) 55%, var(--gold-deep));
  color: var(--gold-ink);
}
