@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@800&display=swap');

@font-face {
  font-family: 'Bolo Poppins';
  src: url('/assets/fonts/poppins.extrabold.ttf?v=3') format('truetype');
  font-style: normal;
  font-weight: 800;
  font-display: swap;
}

:root {
  --bg: #f6f8f6;
  --surface: #ffffff;
  --surface-2: #eef3ef;
  --surface-dark: #102219;
  --text: #122219;
  --muted: #66736b;
  --primary: #227849;
  --primary-dark: #175c36;
  --primary-soft: #e7f4ec;
  --gold: #f2c94c;
  --line: #dbe4dd;
  --danger: #bd3f47;
  --danger-soft: #fff0f1;
  --shadow: 0 18px 55px rgba(24, 54, 37, .10);
  --radius: 20px;
}

* { box-sizing: border-box; }
html, body,
button, input, select, textarea,
h1, h2, h3, h4, h5, h6,
p, a, span, div, label, small, strong,
nav, section, article, header, footer,
table, thead, tbody, tr, th, td {
  font-family: 'Bolo Poppins', 'Poppins', Arial, Helvetica, sans-serif !important;
  font-weight: 800;
}
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--text);
  background: var(--bg);
  font-family: 'Bolo Poppins', 'Poppins', Arial, Helvetica, sans-serif;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
body, button, input, select, textarea { font-family: inherit; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }
button { -webkit-tap-highlight-color: transparent; }
img { max-width: 100%; display: block; }
[hidden] { display: none !important; }

.container { width: min(1160px, calc(100% - 40px)); margin: 0 auto; }

h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { line-height: 1.12; letter-spacing: -.035em; }
h1 { font-size: clamp(46px, 7vw, 78px); font-weight: 800; margin-bottom: 22px; }
h2 { font-size: clamp(32px, 4vw, 48px); font-weight: 800; margin-bottom: 14px; }
h3 { font-size: 22px; font-weight: 800; margin-bottom: 10px; }
p { color: var(--muted); }
.lead { font-size: 17px; line-height: 1.8; }
.helper { color: var(--muted); font-size: 12px; }
.helper-light { color: rgba(255,255,255,.62); font-size: 12px; }

.eyebrow {
  color: var(--primary);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.eyebrow-gold { color: var(--gold); }

.site-header, .app-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255,255,255,.90);
  border-bottom: 1px solid rgba(219,228,221,.9);
  backdrop-filter: blur(18px);
}
.navbar { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 22px; }
.brand { display: inline-flex; align-items: center; gap: 12px; min-width: max-content; }
.brand-logo { width: 50px; height: 50px; object-fit: contain; border-radius: 14px; background: #fff; border: 1px solid var(--line); padding: 6px; }
.brand-text { display: grid; font-weight: 800; line-height: 1.15; }
.brand-text small { margin-top: 5px; color: var(--muted); font-size: 9px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.brand-light { color: #fff; }
.brand-light .brand-text small { color: rgba(255,255,255,.65); }
.nav-links { display: flex; align-items: center; gap: 25px; margin-left: auto; }
.nav-links a { font-weight: 800; font-size: 13px; color: #415047; }
.nav-links a:hover { color: var(--primary); }
.nav-actions { display: flex; align-items: center; gap: 10px; }

.btn {
  min-height: 46px;
  padding: 0 20px;
  border-radius: 14px;
  border: 1px solid transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 800;
  font-size: 13px;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, border-color .18s ease;
}
.btn:hover:not(:disabled) { transform: translateY(-1px); }
.btn:focus-visible, .input:focus-visible, .icon-btn:focus-visible, .control-btn:focus-visible { outline: 3px solid rgba(34,120,73,.20); outline-offset: 2px; }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn-primary { background: var(--primary); color: #fff; box-shadow: 0 10px 24px rgba(34,120,73,.20); }
.btn-primary:hover:not(:disabled) { background: var(--primary-dark); }
.btn-secondary { background: var(--surface-dark); color: #fff; }
.btn-outline { background: #fff; color: var(--text); border-color: var(--line); }
.btn-danger { background: var(--danger-soft); color: var(--danger); border-color: #f3c8cc; }
.btn-small { min-height: 40px; padding: 0 15px; border-radius: 12px; font-size: 12px; }
.btn-tiny { min-height: 34px; padding: 0 11px; border-radius: 10px; font-size: 10px; }

.hero { padding: 88px 0 76px; background: radial-gradient(circle at 80% 20%, rgba(242,201,76,.18), transparent 31%), linear-gradient(180deg,#fff 0%,#f6f8f6 100%); }
.hero-grid { display: grid; grid-template-columns: 1.08fr .92fr; gap: 65px; align-items: center; }
.hero-copy .lead { max-width: 680px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 30px 0 25px; }
.trust-row { display: flex; flex-wrap: wrap; gap: 18px; color: #4d5c53; font-size: 12px; font-weight: 800; }
.trust-item { display: inline-flex; align-items: center; gap: 7px; }
.check { width: 22px; height: 22px; display: grid; place-items: center; border-radius: 50%; background: var(--primary-soft); color: var(--primary); font-weight: 800; }
.hero-card { border-radius: 30px; background: var(--surface-dark); padding: 18px; box-shadow: var(--shadow); border: 1px solid rgba(255,255,255,.08); }
.logo-stage { min-height: 330px; border-radius: 22px; background: #fff; display: grid; place-items: center; padding: 35px; }
.logo-stage img { max-height: 250px; object-fit: contain; }
.level-preview { display: flex; flex-wrap: wrap; gap: 7px; padding: 16px 2px 0; }
.live-strip { margin-top: 15px; padding: 15px; border-radius: 16px; display: flex; align-items: center; justify-content: space-between; gap: 15px; background: rgba(255,255,255,.07); color: #fff; }
.live-label { display: flex; align-items: center; gap: 11px; }
.live-label strong { display: block; font-size: 13px; }
.live-label p { margin: 2px 0 0; font-size: 10px; color: rgba(255,255,255,.58); }
.live-dot { width: 10px; height: 10px; border-radius: 50%; background: #54d17d; box-shadow: 0 0 0 6px rgba(84,209,125,.15); flex: 0 0 auto; }
.room-code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .12em; color: var(--primary); font-size: 12px; font-weight: 800; }
.live-strip .room-code { color: #fff; }

.section { padding: 76px 0; }
.section-head { max-width: 720px; margin-bottom: 34px; }
.section-head p { font-size: 15px; }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: 0 8px 30px rgba(24,54,37,.04); }
.feature-card { min-height: 245px; }
.feature-icon { width: 48px; height: 48px; border-radius: 15px; background: var(--primary-soft); color: var(--primary); display: grid; place-items: center; font-weight: 800; margin-bottom: 25px; }
.feature-card p { line-height: 1.8; }

.levels-section { background: #eef3ef; }
.levels-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; }
.level-panel { border-radius: 22px; padding: 28px; min-height: 240px; border: 1px solid rgba(0,0,0,.07); }
.level-panel > span { display: inline-block; padding: 7px 10px; border-radius: 999px; font-size: 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; background: rgba(255,255,255,.7); }
.level-panel h3 { margin-top: 42px; font-size: 28px; }
.level-panel-1 { background: #edf7ff; }
.level-panel-2 { background: #fff8df; }
.level-panel-3 { background: #e8f6ee; }
.level-badge { display: inline-flex; align-items: center; min-height: 27px; padding: 0 9px; border-radius: 999px; font-size: 10px; font-weight: 800; white-space: nowrap; }
.level-1 { background: #e8f4ff; color: #21689a; }
.level-2 { background: #fff4cc; color: #8b6810; }
.level-3 { background: #e4f4e9; color: #226d43; }

.about-panel { display: grid; grid-template-columns: .85fr 1.15fr; gap: 52px; align-items: center; background: #fff; border-radius: 28px; border: 1px solid var(--line); padding: 35px; }
.about-badge { min-height: 300px; border-radius: 22px; background: var(--surface-dark); color: #fff; display: flex; align-items: flex-end; padding: 30px; }
.about-badge h3 { font-size: 32px; max-width: 380px; }
.about-panel p { line-height: 1.9; }
.contact-link { color: var(--primary); font-weight: 800; }
.contact-link.light { color: #fff; }
.site-footer { background: var(--surface-dark); color: rgba(255,255,255,.72); padding: 24px 0; }
.footer-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; font-size: 12px; }
.footer-row > div { display: flex; gap: 20px; }
.footer-row a:hover { color: #fff; }

.auth-layout { min-height: 100vh; display: grid; grid-template-columns: .92fr 1.08fr; }
.auth-showcase { background: radial-gradient(circle at 70% 25%, rgba(242,201,76,.18), transparent 28%), var(--surface-dark); color: #fff; padding: 50px clamp(30px,6vw,90px); display: flex; flex-direction: column; justify-content: space-between; }
.auth-copy { max-width: 560px; margin: 80px 0; }
.auth-copy h1 { font-size: clamp(42px,6vw,70px); }
.auth-copy p { color: rgba(255,255,255,.68); font-size: 16px; line-height: 1.8; }
.auth-points { display: grid; gap: 12px; margin-top: 28px; color: rgba(255,255,255,.78); font-weight: 800; }
.auth-panel { display: grid; place-items: center; padding: 45px 24px; background: #fbfcfb; }
.auth-card { width: min(480px,100%); background: #fff; border: 1px solid var(--line); border-radius: 25px; padding: 34px; box-shadow: var(--shadow); }
.auth-card h2 { font-size: 34px; }
.auth-subtitle { font-size: 13px; margin-bottom: 22px; }
.auth-tabs { display: grid; grid-template-columns: 1fr 1fr; padding: 4px; border-radius: 14px; background: var(--surface-2); margin: 22px 0; }
.auth-tab { min-height: 42px; border-radius: 11px; display: grid; place-items: center; font-size: 12px; font-weight: 800; color: var(--muted); }
.auth-tab.active { background: #fff; color: var(--text); box-shadow: 0 4px 14px rgba(24,54,37,.08); }
.auth-foot { margin-top: 22px; display: flex; justify-content: space-between; gap: 15px; font-size: 11px; color: var(--primary); font-weight: 800; }

.form-grid { display: grid; gap: 16px; }
.form-group { display: grid; gap: 7px; }
.form-group label, .mic-settings label { font-size: 11px; font-weight: 800; color: #2e3e34; }
.input { width: 100%; min-height: 48px; border: 1px solid var(--line); border-radius: 13px; background: #fff; color: var(--text); padding: 0 14px; font-size: 13px; transition: border-color .18s ease, box-shadow .18s ease; }
.input:hover { border-color: #b9c8bd; }
.input:focus { border-color: var(--primary); box-shadow: 0 0 0 4px rgba(34,120,73,.10); outline: none; }
.input-small { min-height: 40px; padding: 0 10px; font-size: 11px; }
.alert { display: none; border-radius: 13px; padding: 11px 13px; margin: 14px 0; font-size: 12px; font-weight: 800; }
.alert.show { display: block; }
.alert-error { background: var(--danger-soft); color: var(--danger); border: 1px solid #f1c8cc; }
.alert-success { background: var(--primary-soft); color: var(--primary); border: 1px solid #c7e5d2; }

.app-shell { background: var(--bg); min-height: 100vh; }
.app-main { padding: 42px 0 70px; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 24px; }
.page-head h2 { margin-bottom: 10px; }
.page-head p { margin-bottom: 0; max-width: 760px; }
.compact-head { margin-bottom: 18px; align-items: center; }
.compact-head h3 { margin-bottom: 5px; }
.dashboard-head { align-items: center; }
.user-chip { display: flex; align-items: center; gap: 9px; padding: 5px 10px 5px 5px; border-radius: 999px; background: var(--surface-2); }
.user-chip > span:last-child { display: grid; line-height: 1.2; }
.user-chip strong { font-size: 10px; }
.user-chip small { color: var(--muted); font-size: 8px; margin-top: 3px; }
.avatar { width: 44px; height: 44px; border-radius: 50%; background: var(--primary); color: #fff; display: inline-grid; place-items: center; font-weight: 800; }
.avatar-small { width: 34px; height: 34px; font-size: 11px; }

.level-card { min-width: 245px; border-radius: 18px; padding: 15px 18px; display: grid; gap: 4px; }
.level-card span { font-size: 9px; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; opacity: .72; }
.level-card strong { font-size: 14px; }
.dashboard-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.action-card { padding: 28px; }
.action-card h3 { font-size: 24px; }
.action-card .form-grid { margin-top: 22px; }
.recent-card { margin-top: 20px; }
.recent-list { display: grid; gap: 11px; }
.room-row { display: flex; justify-content: space-between; align-items: center; gap: 18px; padding: 15px; border: 1px solid var(--line); border-radius: 15px; background: #fbfcfb; }
.room-row strong { display: block; margin-bottom: 7px; }
.room-row-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.empty-state { padding: 24px; text-align: center; color: var(--muted); border: 1px dashed var(--line); border-radius: 15px; }

.pending-wrap { min-height: calc(100vh - 77px); display: grid; place-items: center; padding: 40px 20px; }
.pending-card { width: min(640px,100%); text-align: center; padding: 44px; }
.pending-icon { width: 80px; height: 80px; border-radius: 24px; background: #fff6d8; display: grid; place-items: center; margin: 0 auto 24px; font-size: 32px; }
.pending-card p { line-height: 1.8; }
.pending-details { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin: 18px 0; }
.pending-help { margin-top: 18px; }
.pending-help a { color: var(--primary); }

.admin-layout { display: grid; gap: 22px; }
.stats-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; }
.stat-card strong { display: block; font-size: 31px; margin-top: 7px; }
.admin-card { padding: 25px; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; min-width: 930px; }
th, td { text-align: left; padding: 14px 11px; border-bottom: 1px solid var(--line); vertical-align: middle; font-size: 12px; }
th { color: var(--muted); font-size: 9px; letter-spacing: .1em; text-transform: uppercase; }
.member-cell { display: flex; align-items: center; gap: 10px; min-width: 190px; }
.member-cell > div { display: grid; }
.member-cell small { color: var(--muted); font-size: 9px; margin-top: 4px; }
.level-select { min-width: 180px; }
.status { display: inline-flex; align-items: center; min-height: 26px; padding: 0 9px; border-radius: 999px; font-size: 9px; font-weight: 800; text-transform: capitalize; }
.status-pending { background: #fff4cc; color: #86660f; }
.status-approved { background: #e4f4e9; color: #226d43; }
.status-rejected { background: #fff0f1; color: var(--danger); }
.device-summary { display: grid; gap: 3px; color: var(--muted); font-size: 10px; }
.device-summary strong { color: #8b6810; }
.row-actions, .filter-row { display: flex; flex-wrap: wrap; gap: 7px; }

.room-body { background: #0c1510; color: #fff; overflow: hidden; }
.room-layout { min-height: 100vh; height: 100vh; display: grid; grid-template-rows: auto 1fr auto; }
.room-topbar { padding: 14px 20px; display: flex; align-items: center; justify-content: space-between; gap: 18px; border-bottom: 1px solid rgba(255,255,255,.08); background: #0f1b14; }
.room-meta { display: flex; align-items: center; gap: 13px; min-width: 0; }
.room-meta .brand-logo { width: 44px; height: 44px; flex: 0 0 auto; }
.room-meta h1 { font-size: 15px; margin: 0 0 4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.room-meta p { margin: 0; font-size: 10px; color: rgba(255,255,255,.57); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.room-actions .btn { background: rgba(255,255,255,.07); color: #fff; border-color: rgba(255,255,255,.13); }
.room-content { min-height: 0; display: grid; grid-template-columns: minmax(0,1fr) 350px; }
.voice-stage { min-width: 0; min-height: 0; padding: 18px; overflow: auto; }
.voice-stage-head { display: flex; justify-content: space-between; align-items: center; gap: 15px; margin-bottom: 15px; }
.voice-stage-head > div { display: flex; align-items: center; gap: 10px; }
.voice-stage-head strong { font-size: 12px; }
.participant-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(210px,1fr)); gap: 13px; }
.participant-card { min-height: 205px; border-radius: 22px; background: #14231a; border: 1px solid rgba(255,255,255,.07); padding: 22px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; transition: border-color .2s ease, background .2s ease; }
.participant-card.connected { border-color: rgba(84,209,125,.28); }
.participant-card.local { background: #17291e; }
.participant-card audio { display: none; }
.participant-avatar-wrap { display: grid; place-items: center; gap: 10px; margin-bottom: 16px; }
.participant-avatar { width: 80px; height: 80px; border-radius: 28px; background: linear-gradient(145deg,#2f8a57,#1f6540); display: grid; place-items: center; color: #fff; font-size: 23px; font-weight: 800; box-shadow: 0 12px 30px rgba(0,0,0,.22); }
.mic-state { font-size: 9px; color: rgba(255,255,255,.55); }
.participant-card strong { font-size: 13px; }
.participant-card small { color: rgba(255,255,255,.45); margin-top: 5px; font-size: 9px; }

.chat-panel { min-height: 0; border-left: 1px solid rgba(255,255,255,.08); background: #101c15; display: grid; grid-template-rows: auto auto 1fr auto; }
.chat-head { min-height: 68px; padding: 14px 15px; border-bottom: 1px solid rgba(255,255,255,.08); display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.chat-head > div { display: grid; }
.chat-head strong { font-size: 12px; }
.chat-head small { color: rgba(255,255,255,.43); font-size: 9px; margin-top: 2px; }
.icon-btn { width: 38px; height: 38px; border-radius: 12px; background: rgba(255,255,255,.08); color: #fff; border: 1px solid rgba(255,255,255,.09); cursor: pointer; }
.mic-settings { padding: 13px 15px; border-bottom: 1px solid rgba(255,255,255,.08); background: rgba(255,255,255,.03); }
.mic-settings label { color: rgba(255,255,255,.7); display: block; margin-bottom: 7px; }
.mic-settings .input { background: #19271f; color: #fff; border-color: rgba(255,255,255,.11); }
.mic-settings p { color: rgba(255,255,255,.42); font-size: 9px; margin: 7px 0 0; }
.chat-messages { min-height: 0; overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.chat-empty { margin: auto; text-align: center; color: rgba(255,255,255,.38); font-size: 10px; max-width: 220px; }
.chat-message { max-width: 88%; align-self: flex-start; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.07); border-radius: 14px 14px 14px 4px; padding: 9px 11px; }
.chat-message.mine { align-self: flex-end; background: rgba(47,138,87,.35); border-color: rgba(84,209,125,.18); border-radius: 14px 14px 4px 14px; }
.chat-meta { display: flex; justify-content: space-between; gap: 15px; margin-bottom: 3px; }
.chat-meta strong { font-size: 8px; color: #8be0a8; }
.chat-meta span { font-size: 7px; color: rgba(255,255,255,.35); }
.chat-message p { color: rgba(255,255,255,.86); font-size: 10px; margin: 0; white-space: pre-wrap; word-break: break-word; }
.chat-form { padding: 12px; border-top: 1px solid rgba(255,255,255,.08); display: grid; grid-template-columns: 1fr auto; gap: 8px; }
.chat-form .input { background: #18251d; color: #fff; border-color: rgba(255,255,255,.1); min-height: 42px; }
.chat-form .input::placeholder { color: rgba(255,255,255,.34); }

.call-controls { padding: 12px 18px 16px; display: flex; justify-content: center; gap: 11px; border-top: 1px solid rgba(255,255,255,.08); background: #0f1b14; }
.control-btn { min-width: 72px; min-height: 56px; border-radius: 17px; border: 1px solid rgba(255,255,255,.08); background: rgba(255,255,255,.09); color: #fff; cursor: pointer; display: grid; place-items: center; gap: 1px; padding: 7px 11px; }
.control-btn:disabled { opacity: .5; cursor: not-allowed; }
.control-btn.off { background: #fff; color: #17251c; }
.control-btn.leave { background: #bc3f47; color: #fff; min-width: 82px; }
.control-icon { font-size: 17px; line-height: 1; }
.control-label { font-size: 8px; font-weight: 800; }
.toast { position: fixed; right: 20px; bottom: 86px; z-index: 100; max-width: min(340px,calc(100% - 40px)); background: #fff; color: var(--text); border-radius: 13px; padding: 12px 14px; box-shadow: var(--shadow); transform: translateY(18px); opacity: 0; pointer-events: none; transition: .2s ease; font-size: 11px; font-weight: 800; }
.toast.show { transform: translateY(0); opacity: 1; }

.modal-backdrop { position: fixed; inset: 0; background: rgba(4,10,6,.76); backdrop-filter: blur(10px); display: none; place-items: center; padding: 20px; z-index: 80; overflow-y: auto; }
.modal-backdrop.show { display: grid; }
.modal { background: #fff; color: var(--text); width: min(620px,100%); border-radius: 24px; padding: 30px; box-shadow: 0 28px 90px rgba(0,0,0,.34); }
.modal-mark { width: 62px; height: 62px; border-radius: 18px; background: var(--primary-soft); display: grid; place-items: center; font-size: 26px; margin-bottom: 20px; }
.modal h2 { font-size: 34px; }
.modal-lead { line-height: 1.75; }
.rules-list { margin: 18px 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.rules-list li { position: relative; padding: 10px 12px 10px 38px; border-radius: 13px; background: var(--surface-2); color: #48564d; font-size: 11px; }
.rules-list li::before { content: '✓'; position: absolute; left: 13px; top: 10px; color: var(--primary); font-weight: 800; }
.consent-row { display: flex; align-items: flex-start; gap: 10px; padding: 13px; border: 1px solid var(--line); border-radius: 13px; font-size: 11px; font-weight: 800; cursor: pointer; }
.consent-row input { margin-top: 3px; accent-color: var(--primary); }
.modal-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 18px; }

.not-found { min-height: 100vh; display: grid; place-items: center; text-align: center; padding: 30px; }
.not-found strong { font-size: 96px; line-height: 1; color: var(--primary); }

@media (max-width: 1020px) {
  .nav-links { display: none; }
  .room-content { grid-template-columns: minmax(0,1fr) 310px; }
}

@media (max-width: 900px) {
  .hero-grid, .auth-layout, .about-panel { grid-template-columns: 1fr; }
  .hero { padding-top: 55px; }
  .auth-showcase { min-height: 430px; }
  .feature-grid, .levels-grid, .stats-grid { grid-template-columns: 1fr; }
  .dashboard-grid { grid-template-columns: 1fr; }
  .room-body { overflow: auto; }
  .room-layout { height: auto; min-height: 100vh; }
  .room-content { grid-template-columns: 1fr; }
  .voice-stage { min-height: 58vh; }
  .chat-panel { min-height: 480px; border-left: 0; border-top: 1px solid rgba(255,255,255,.08); }
  .chat-messages { min-height: 300px; max-height: 400px; }
}

@media (max-width: 640px) {
  .container { width: min(100% - 24px,1160px); }
  .navbar { min-height: 68px; }
  .brand-logo { width: 44px; height: 44px; }
  .brand-text { font-size: 13px; }
  .brand-text small { display: none; }
  .nav-actions .btn-outline, .user-chip { display: none; }
  .hero { padding: 38px 0 50px; }
  h1 { font-size: 42px; }
  h2 { font-size: 31px; }
  .hero-actions { display: grid; }
  .hero-actions .btn { width: 100%; }
  .logo-stage { min-height: 240px; }
  .section { padding: 52px 0; }
  .about-panel { padding: 20px; gap: 25px; }
  .about-badge { min-height: 240px; }
  .auth-showcase { padding: 28px; min-height: 330px; }
  .auth-copy { margin: 45px 0; }
  .auth-panel { padding: 26px 16px; }
  .auth-card { padding: 24px; }
  .auth-foot { flex-direction: column; }
  .page-head, .footer-row, .dashboard-head { align-items: flex-start; flex-direction: column; }
  .level-card { width: 100%; min-width: 0; }
  .room-row { align-items: flex-start; flex-direction: column; }
  .room-row .row-actions { width: 100%; }
  .room-row .row-actions > * { flex: 1; }
  .pending-card { padding: 28px 20px; }
  .room-topbar { padding: 10px; align-items: flex-start; }
  .room-actions .btn { min-width: 42px; padding: 0 10px; font-size: 0; }
  .room-actions .btn::after { content: '🔗'; font-size: 15px; }
  .voice-stage { padding: 12px; }
  .participant-grid { grid-template-columns: 1fr 1fr; gap: 9px; }
  .participant-card { min-height: 170px; padding: 14px 8px; }
  .participant-avatar { width: 62px; height: 62px; border-radius: 22px; font-size: 18px; }
  .chat-panel { min-height: 440px; }
  .call-controls { position: sticky; bottom: 0; z-index: 25; }
  .control-btn { min-width: 66px; min-height: 52px; }
  .modal { padding: 22px; }
  .modal h2 { font-size: 28px; }
  .modal-actions { display: grid; grid-template-columns: 1fr; }
  .modal-actions .btn { width: 100%; }
}

/* Version 3 controls */
body, button, input, select, textarea { font-weight: 800; }
.center-link { text-align: center; }
.text-link { color: var(--primary); font-size: 12px; }
.code-input { text-transform: uppercase; letter-spacing: .12em; }
.member-summary-grid { display: grid; grid-template-columns: .75fr 1.25fr; gap: 18px; margin-bottom: 20px; }
.membership-card strong { display: block; font-size: 25px; margin: 9px 0 5px; }
.membership-card p { margin-bottom: 0; }
.profile-card { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.profile-card h3 { margin: 6px 0 0; }
.inline-form { display: flex; flex-wrap: wrap; align-items: end; gap: 9px; }
.profile-form .input { min-width: 185px; }
.room-row-title { display: flex; align-items: center; flex-wrap: wrap; gap: 9px; margin-bottom: 5px; }
.badge-row { display: flex; flex-wrap: wrap; gap: 7px; justify-content: flex-end; }
.admin-stats { grid-template-columns: repeat(4,1fr); }
.admin-list { display: grid; gap: 13px; }
.admin-item { border: 1px solid var(--line); background: var(--surface-2); border-radius: 17px; padding: 18px; }
.admin-item-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 18px; }
.admin-item-head small { display: block; color: var(--muted); margin-top: 4px; }
.admin-controls-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 10px; margin: 15px 0; }
.admin-controls-grid label { display: grid; gap: 6px; color: var(--muted); font-size: 10px; }
.device-box { border: 1px solid var(--line); border-radius: 12px; background: #fff; padding: 10px 12px; display: grid; gap: 3px; }
.device-box span,.device-box small { color: var(--muted); font-size: 9px; }
.admin-actions { border-top: 1px solid var(--line); padding-top: 13px; }
.status-closed { background: #eceff1; color: #4e5c65; }
.status-revoked { background: var(--danger-soft); color: var(--danger); }
.participant-role { min-height: 17px; margin-top: 4px; color: #8be0a8; font-size: 9px; }
.moderator-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 5px; margin-top: 12px; }
.live-admin-bar { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; padding: 10px 12px; margin-bottom: 13px; border: 1px solid rgba(255,255,255,.1); border-radius: 14px; background: rgba(255,255,255,.05); }
.live-admin-bar strong { margin-right: auto; font-size: 10px; }
@media (max-width: 1000px) { .admin-controls-grid { grid-template-columns: 1fr 1fr; } .admin-stats { grid-template-columns: 1fr 1fr; } }
@media (max-width: 760px) { .member-summary-grid { grid-template-columns: 1fr; } .profile-card { align-items: flex-start; flex-direction: column; } .profile-form,.profile-form .input,.profile-form .btn { width: 100%; } .admin-item-head { flex-direction: column; } .badge-row { justify-content: flex-start; } .admin-controls-grid { grid-template-columns: 1fr; } }


/* Public live room directory */
.live-rooms-section { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.live-rooms-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; margin-bottom: 30px; }
.live-rooms-head > div:first-child { max-width: 760px; }
.live-rooms-head p { font-size: 14px; line-height: 1.8; margin-bottom: 0; }
.live-counter { min-width: 170px; display: grid; grid-template-columns: auto 1fr; align-items: center; column-gap: 10px; padding: 15px 17px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface-2); }
.live-counter .live-dot { grid-row: 1 / span 2; }
.live-counter strong { font-size: 16px; line-height: 1.1; }
.live-counter small { color: var(--muted); font-size: 9px; }
.public-room-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 16px; }
.public-room-card { min-height: 280px; display: flex; flex-direction: column; padding: 22px; border: 1px solid var(--line); border-radius: 21px; background: linear-gradient(180deg,#fff 0%,#f8fbf9 100%); box-shadow: 0 10px 30px rgba(24,54,37,.06); transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease; }
.public-room-card:hover { transform: translateY(-3px); border-color: rgba(34,120,73,.38); box-shadow: 0 18px 40px rgba(24,54,37,.11); }
.public-room-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 22px; }
.public-room-live { display: inline-flex; align-items: center; gap: 8px; color: var(--primary); font-size: 10px; letter-spacing: .12em; }
.public-room-live .live-dot { width: 8px; height: 8px; box-shadow: 0 0 0 4px rgba(84,209,125,.15); }
.public-room-card h3 { font-size: 22px; margin-bottom: 7px; }
.public-room-card > p { font-size: 11px; margin-bottom: 18px; }
.public-participants { display: flex; flex-wrap: wrap; gap: 8px; align-content: flex-start; }
.public-participant { display: inline-flex; align-items: center; gap: 7px; max-width: 100%; padding: 6px 9px 6px 6px; border: 1px solid var(--line); border-radius: 999px; background: #fff; }
.public-participant strong { max-width: 105px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 9px; }
.public-avatar { width: 25px; height: 25px; display: grid; place-items: center; border-radius: 50%; background: var(--surface-dark); color: #fff; font-size: 8px; }
.public-more { display: inline-flex; align-items: center; min-height: 39px; padding: 0 10px; border-radius: 999px; background: var(--primary-soft); color: var(--primary); font-size: 9px; }
.public-room-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 18px; color: var(--primary); border-top: 1px solid var(--line); font-size: 10px; }
.public-room-status.muted { color: var(--muted); }
.public-room-loading { grid-column: 1 / -1; padding: 36px; border: 1px dashed var(--line); border-radius: 18px; text-align: center; color: var(--muted); }
.public-room-empty { grid-column: 1 / -1; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 18px; padding: 24px; border: 1px solid var(--line); border-radius: 20px; background: var(--surface-2); }
.public-room-empty h3 { margin-bottom: 4px; }
.public-room-empty p { margin-bottom: 0; font-size: 11px; }
.empty-live-icon { width: 54px; height: 54px; display: grid; place-items: center; border-radius: 17px; background: #fff; border: 1px solid var(--line); }
.public-room-note { margin: 14px 0 0; color: var(--muted); font-size: 10px; text-align: center; }

@media (max-width: 980px) {
  .public-room-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .live-rooms-head { align-items: stretch; flex-direction: column; }
  .live-counter { width: 100%; }
  .public-room-grid { grid-template-columns: 1fr; }
  .public-room-card { min-height: 250px; }
  .public-room-empty { grid-template-columns: 1fr; text-align: left; }
  .public-room-empty .btn { width: 100%; }
}


/* Version 5: stable mobile in-call layout */
html, body.room-body { width: 100%; max-width: 100%; overflow-x: hidden; }
.room-topbar, .room-content, .voice-stage, .chat-panel, .participant-grid, .participant-card { min-width: 0; }
.mobile-room-tabs { display: none; }
.tab-badge {
  min-width: 30px;
  min-height: 20px;
  padding: 0 7px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #54d17d;
  color: #0d1b13;
  font-size: 8px;
  line-height: 1;
}

@media (max-width: 760px) {
  html { height: 100%; }
  body.room-body {
    height: 100dvh;
    min-height: 100svh;
    overflow: hidden;
    overscroll-behavior: none;
    background: #0c1510;
  }
  .room-layout {
    width: 100%;
    height: 100dvh;
    min-height: 100svh;
    max-height: 100dvh;
    overflow: hidden;
    grid-template-rows: auto auto minmax(0, 1fr) auto;
  }
  .room-topbar {
    min-height: 64px;
    padding: max(9px, env(safe-area-inset-top)) 11px 9px;
    align-items: center;
    gap: 9px;
  }
  .room-meta {
    flex: 1 1 auto;
    gap: 9px;
    overflow: hidden;
  }
  .room-meta .brand-logo {
    width: 38px;
    height: 38px;
    border-radius: 11px;
    padding: 4px;
  }
  .room-meta > div { min-width: 0; overflow: hidden; }
  .room-meta h1 {
    max-width: 100%;
    margin-bottom: 2px;
    font-size: 13px;
    line-height: 1.25;
  }
  .room-meta p {
    max-width: 100%;
    font-size: 8px;
    line-height: 1.35;
  }
  .room-actions { flex: 0 0 auto; }
  .room-actions .btn {
    width: 40px;
    min-width: 40px;
    min-height: 40px;
    padding: 0;
    border-radius: 12px;
    font-size: 0;
  }
  .room-actions .btn::after { content: '🔗'; font-size: 16px; }

  .mobile-room-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
    padding: 7px 10px;
    border-bottom: 1px solid rgba(255,255,255,.08);
    background: #0f1b14;
  }
  .mobile-room-tab {
    min-width: 0;
    min-height: 38px;
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 12px;
    background: rgba(255,255,255,.055);
    color: rgba(255,255,255,.62);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    font-size: 10px;
  }
  .mobile-room-tab.active {
    background: #f7fbf8;
    color: #13241a;
    border-color: transparent;
  }

  .room-content {
    position: relative;
    display: block;
    min-height: 0;
    height: 100%;
    overflow: hidden;
  }
  .voice-stage,
  .chat-panel {
    width: 100%;
    height: 100%;
    min-height: 0;
  }
  .room-layout[data-mobile-view="people"] .chat-panel { display: none; }
  .room-layout[data-mobile-view="chat"] .voice-stage { display: none; }

  .voice-stage {
    padding: 10px 10px 18px;
    overflow: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
  }
  .voice-stage-head {
    position: sticky;
    top: -10px;
    z-index: 3;
    min-height: 44px;
    margin: -10px -10px 10px;
    padding: 10px;
    background: rgba(12,21,16,.94);
    backdrop-filter: blur(10px);
  }
  .voice-stage-head strong { font-size: 10px; }
  .voice-stage-head .helper-light { font-size: 9px; text-align: right; }
  .live-admin-bar {
    overflow-x: auto;
    flex-wrap: nowrap;
    justify-content: flex-start;
    padding: 8px;
    scrollbar-width: none;
  }
  .live-admin-bar::-webkit-scrollbar { display: none; }
  .live-admin-bar strong,
  .live-admin-bar .btn { flex: 0 0 auto; }
  .participant-grid {
    grid-template-columns: repeat(auto-fit, minmax(138px, 1fr));
    gap: 9px;
  }
  .participant-card {
    width: 100%;
    min-height: 148px;
    padding: 13px 8px;
    border-radius: 18px;
    overflow: hidden;
  }
  .participant-avatar-wrap { gap: 7px; margin-bottom: 10px; }
  .participant-avatar {
    width: 58px;
    height: 58px;
    border-radius: 19px;
    font-size: 17px;
  }
  .participant-card strong {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 10px;
  }
  .mic-state, .participant-card small, .participant-role { font-size: 8px; }
  .moderator-actions {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 5px;
  }
  .moderator-actions .btn {
    width: 100%;
    min-width: 0;
    min-height: 30px;
    padding: 0 5px;
    font-size: 7px;
  }

  .chat-panel {
    border: 0;
    grid-template-rows: auto auto minmax(0, 1fr) auto;
    overflow: hidden;
  }
  .chat-head { min-height: 54px; padding: 10px 12px; }
  .chat-head strong { font-size: 11px; }
  .chat-head small { font-size: 8px; }
  .icon-btn { width: 36px; height: 36px; }
  .mic-settings { padding: 10px 12px; }
  .chat-messages {
    min-height: 0;
    max-height: none;
    padding: 11px;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
  }
  .chat-message { max-width: 86%; }
  .chat-form {
    padding: 9px 10px max(9px, env(safe-area-inset-bottom));
    grid-template-columns: minmax(0, 1fr) auto;
  }
  .chat-form .input { min-width: 0; min-height: 42px; }
  .chat-form .btn { min-height: 42px; padding: 0 14px; }

  .call-controls {
    position: relative;
    inset: auto;
    z-index: 25;
    width: 100%;
    min-height: 72px;
    padding: 8px 12px max(8px, env(safe-area-inset-bottom));
    justify-content: space-around;
    gap: 8px;
    box-shadow: 0 -12px 30px rgba(0,0,0,.16);
  }
  .control-btn {
    flex: 0 1 92px;
    min-width: 0;
    min-height: 54px;
    border-radius: 16px;
  }
  .control-btn.leave { min-width: 0; }
  .control-label { font-size: 8px; }
  .toast {
    right: 12px;
    bottom: calc(82px + env(safe-area-inset-bottom));
    max-width: calc(100% - 24px);
  }

  .modal-backdrop {
    place-items: end center;
    padding: 0;
  }
  .modal {
    width: 100%;
    max-height: 92dvh;
    overflow-y: auto;
    border-radius: 24px 24px 0 0;
    padding: 20px 16px max(18px, env(safe-area-inset-bottom));
  }
  .modal-mark { width: 48px; height: 48px; margin-bottom: 13px; }
  .modal h2 { font-size: 24px; }
  .modal-lead { font-size: 10px; line-height: 1.6; }
  .rules-list { gap: 7px; margin: 13px 0; }
  .rules-list li { padding: 8px 9px 8px 32px; font-size: 9px; }
  .rules-list li::before { left: 11px; top: 8px; }
  .consent-row { padding: 10px; font-size: 9px; }
  .modal-actions { grid-template-columns: 1fr; gap: 8px; }
}

@media (max-width: 370px) {
  .room-meta .brand-logo { display: none; }
  .participant-grid { grid-template-columns: 1fr; }
  .participant-card { min-height: 132px; }
  .control-btn { min-height: 50px; }
}

@media (max-width: 760px) and (orientation: landscape) {
  .room-layout { grid-template-rows: auto auto minmax(0, 1fr) auto; }
  .room-topbar { min-height: 52px; padding-top: max(6px, env(safe-area-inset-top)); padding-bottom: 6px; }
  .room-meta .brand-logo { width: 32px; height: 32px; }
  .mobile-room-tabs { padding-top: 5px; padding-bottom: 5px; }
  .mobile-room-tab { min-height: 32px; }
  .participant-card { min-height: 118px; }
  .participant-avatar { width: 46px; height: 46px; border-radius: 16px; }
  .call-controls { min-height: 60px; padding-top: 5px; }
  .control-btn { min-height: 46px; }
}

/* Version 6: enhanced voice, animated profiles, speaker controls and reports */
.voice-tech { margin-left: 4px; color: rgba(255,255,255,.42); font-size: 8px; letter-spacing: .04em; }
.participant-card { position: relative; overflow: visible; }
.participant-avatar-wrap { position: relative; width: 96px; height: 96px; margin-inline: auto; }
.participant-avatar.avatar-art { position: relative; z-index: 2; overflow: hidden; border-radius: 34px; background: #dcecff; animation: avatarFloat 4.5s ease-in-out infinite; }
.participant-avatar.avatar-art svg { width: 100%; height: 100%; display: block; }
.participant-card:nth-child(3n+2) .participant-avatar.avatar-art { animation-delay: -.9s; }
.participant-card:nth-child(3n+3) .participant-avatar.avatar-art { animation-delay: -1.8s; }
@keyframes avatarFloat { 0%,100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-3px) rotate(.6deg); } }

.speaking-rings { position: absolute; z-index: 1; inset: 4px; pointer-events: none; }
.speaking-rings i { position: absolute; inset: 0; border: 2px solid rgba(84,209,125,.7); border-radius: 38px; opacity: 0; transform: scale(.92); }
.participant-card.speaking .speaking-rings i { animation: speakingPulse 1.45s ease-out infinite; }
.participant-card.speaking .speaking-rings i:nth-child(2) { animation-delay: .28s; }
.participant-card.speaking .speaking-rings i:nth-child(3) { animation-delay: .56s; }
.participant-card.speaking { border-color: rgba(84,209,125,.72); background: #173222; box-shadow: 0 0 0 1px rgba(84,209,125,.12), 0 16px 40px rgba(0,0,0,.2); }
@keyframes speakingPulse { 0% { opacity: .8; transform: scale(.92); } 80%,100% { opacity: 0; transform: scale(1.34); } }

.mic-badge, .profile-badge { position: absolute; z-index: 4; display: grid; place-items: center; border-radius: 999px; box-shadow: 0 6px 18px rgba(0,0,0,.25); }
.mic-badge { right: 0; bottom: 2px; width: 28px; height: 28px; background: #2d8b58; color: #fff; font-size: 12px; border: 2px solid #14231a; }
.mic-badge.muted { background: #a34349; }
.profile-badge { left: 0; top: 1px; width: 25px; height: 25px; background: #fff4ce; color: #5c4a0c; font-size: 12px; border: 2px solid #14231a; }
.participant-card.local .mic-badge, .participant-card.local .profile-badge { border-color: #17291e; }
.participant-card.participant-muted { opacity: .86; }
.participant-card.participant-muted .participant-avatar { filter: saturate(.75); }
.participant-actions { min-height: 24px; margin-top: 7px; }
.report-user-btn { border: 0; background: transparent; color: rgba(255,255,255,.52); font: inherit; font-size: 8px; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.report-user-btn:hover { color: #ff9da3; }

.mic-settings label + select + label { margin-top: 11px; }
.mic-settings select:disabled { opacity: .55; cursor: not-allowed; }
.report-modal { width: min(560px, 100%); }
.report-target { display: flex; align-items: center; gap: 12px; margin: 16px 0; padding: 12px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 15px; }
.mini-avatar { width: 48px; height: 48px; display: block; overflow: hidden; border-radius: 16px; background: #dcecff; }
.mini-avatar svg { width: 100%; height: 100%; display: block; }
.report-textarea { min-height: 150px; resize: vertical; padding-top: 12px; line-height: 1.6; }

.report-item { border-left: 4px solid #d9a43b; }
.report-item[data-status="reviewed"] { border-left-color: #2e8b57; }
.report-item[data-status="dismissed"] { border-left-color: #909a94; opacity: .8; }
.report-complaint { margin: 12px 0; padding: 12px; background: var(--surface-2); border-radius: 12px; color: #415048; font-size: 10px; line-height: 1.6; white-space: pre-wrap; }
.report-admin-grid { grid-template-columns: minmax(160px, .7fr) minmax(240px, 1.3fr); }
.report-admin-grid textarea { min-height: 72px; resize: vertical; padding-top: 9px; }

@media (max-width: 760px) {
  .voice-tech { display: none; }
  .participant-avatar-wrap { width: 70px; height: 70px; margin-bottom: 8px; }
  .participant-avatar.avatar-art { width: 62px; height: 62px; border-radius: 22px; }
  .speaking-rings { inset: 4px 8px 4px 0; }
  .mic-badge { width: 23px; height: 23px; right: 1px; bottom: 0; font-size: 10px; }
  .profile-badge { width: 21px; height: 21px; left: 0; top: 0; font-size: 9px; }
  .participant-actions { margin-top: 4px; }
  .report-user-btn { font-size: 7px; }
  .call-controls { gap: 5px; padding-inline: 7px; }
  .control-btn { flex: 1 1 0; max-width: 90px; padding-inline: 4px; }
  .control-icon { font-size: 15px; }
  .control-label { font-size: 7px; }
  .report-admin-grid { grid-template-columns: 1fr; }
}

@media (max-width: 370px) {
  .participant-avatar-wrap { width: 64px; height: 64px; }
  .participant-avatar.avatar-art { width: 56px; height: 56px; }
  .control-btn { min-height: 48px; }
  .control-label { font-size: 6.5px; }
}

@media (prefers-reduced-motion: reduce) {
  .participant-avatar.avatar-art, .participant-card.speaking .speaking-rings i { animation: none; }
}

/* Version 7: shared random speaking topic */
.speaking-topic-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  margin-bottom: 15px;
  padding: 16px 18px;
  border: 1px solid rgba(139,224,168,.24);
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(47,138,87,.24), rgba(255,255,255,.045));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.04);
}
.topic-icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 14px;
  background: rgba(139,224,168,.14);
  font-size: 20px;
}
.topic-copy { min-width: 0; }
.topic-heading-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 7px;
}
.topic-kicker {
  color: #8be0a8;
  font-size: 9px;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.topic-timer {
  flex: 0 0 auto;
  min-width: 80px;
  padding: 6px 9px;
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 999px;
  background: rgba(255,255,255,.07);
  color: rgba(255,255,255,.85);
  text-align: center;
  font-size: 9px;
}
.speaking-topic-card h2 {
  margin: 0;
  color: #fff;
  font-size: clamp(17px, 2vw, 23px);
  line-height: 1.38;
}
.speaking-topic-card p {
  margin: 7px 0 10px;
  color: rgba(255,255,255,.52);
  font-size: 9px;
  line-height: 1.55;
}
.topic-progress {
  width: 100%;
  height: 5px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255,255,255,.08);
}
.topic-progress span {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #54d17d, #8be0a8);
  transition: width 1s linear;
}

@media (max-width: 760px) {
  .speaking-topic-card {
    position: relative;
    z-index: 1;
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 10px;
    margin-bottom: 10px;
    padding: 11px 12px;
    border-radius: 16px;
  }
  .topic-icon {
    width: 34px;
    height: 34px;
    border-radius: 11px;
    font-size: 16px;
  }
  .topic-heading-row { gap: 8px; margin-bottom: 5px; }
  .topic-kicker { font-size: 7px; letter-spacing: .09em; }
  .topic-timer { min-width: 66px; padding: 5px 7px; font-size: 7px; }
  .speaking-topic-card h2 { font-size: 13px; line-height: 1.4; }
  .speaking-topic-card p { margin: 5px 0 8px; font-size: 7px; line-height: 1.45; }
  .topic-progress { height: 4px; }
}

@media (max-width: 370px) {
  .speaking-topic-card { grid-template-columns: 1fr; }
  .topic-icon { display: none; }
}

/* Version 9: live approvals + full responsive polish */
html, body { max-width: 100%; }
body:not(.room-body) { overflow-x: hidden; }
main, section, article, form, .container, .card, .page-head > *, .navbar > * { min-width: 0; }
.input, textarea, select, button { max-width: 100%; }
.live-update-note {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  margin: 2px 0 14px;
  color: var(--primary);
  font-size: 10px;
}
.live-update-pulse {
  width: 9px;
  height: 9px;
  flex: 0 0 auto;
  border-radius: 999px;
  background: #45b86f;
  box-shadow: 0 0 0 0 rgba(69,184,111,.38);
  animation: liveUpdatePulse 1.8s ease-out infinite;
}
@keyframes liveUpdatePulse {
  0% { box-shadow: 0 0 0 0 rgba(69,184,111,.38); }
  70%,100% { box-shadow: 0 0 0 9px rgba(69,184,111,0); }
}

@media (max-width: 1100px) {
  .container { width: min(100% - 32px, 1160px); }
  .hero-grid { gap: 38px; }
  .admin-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .admin-controls-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .report-admin-grid { grid-template-columns: 1fr; }
}

@media (max-width: 820px) {
  .site-header .navbar {
    min-height: auto;
    flex-wrap: wrap;
    padding: 10px 0;
  }
  .site-header .brand { flex: 1 1 auto; min-width: 0; }
  .site-header .nav-actions {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }
  .site-header .nav-actions .btn,
  .site-header .nav-actions .btn-outline { display: inline-flex; width: 100%; }

  .app-header .navbar { min-height: 66px; gap: 10px; }
  .app-header .brand { flex: 1 1 auto; min-width: 0; }
  .app-header .brand-text {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .app-header .nav-actions { flex: 0 0 auto; gap: 7px; }
  .app-header .nav-actions .btn-outline { display: inline-flex; }
  .app-header .user-chip { display: none; }

  .app-main { padding: 28px 0 52px; }
  .page-head, .compact-head, .dashboard-head {
    align-items: stretch;
    flex-direction: column;
    gap: 14px;
  }
  .page-head > .btn, .compact-head > .btn { align-self: flex-start; }
  .filter-row {
    width: 100%;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 3px;
    scrollbar-width: none;
  }
  .filter-row::-webkit-scrollbar { display: none; }
  .filter-row .btn { flex: 0 0 auto; }

  .dashboard-grid, .member-summary-grid { grid-template-columns: 1fr; }
  .profile-card { align-items: stretch; flex-direction: column; }
  .profile-form { width: 100%; display: grid; grid-template-columns: 1fr 1fr auto; }
  .profile-form .input { min-width: 0; width: 100%; }
  .room-row { align-items: flex-start; flex-direction: column; }
  .room-row .row-actions { width: 100%; }
  .room-row .row-actions .btn, .room-row .row-actions a.btn { flex: 1 1 140px; }

  .admin-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .admin-item-head { flex-direction: column; }
  .badge-row { justify-content: flex-start; }
  .admin-controls-grid { grid-template-columns: 1fr 1fr; }
  .admin-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .admin-actions .btn, .admin-actions a.btn { width: 100%; min-width: 0; }

  .footer-row { align-items: flex-start; flex-direction: column; }
  .footer-row > div { flex-wrap: wrap; }
}

@media (max-width: 620px) {
  .container { width: min(100% - 22px, 1160px); }
  body { font-size: 13px; }
  h1 { font-size: clamp(36px, 12vw, 46px); }
  h2 { font-size: clamp(27px, 8vw, 34px); }
  h3 { font-size: 20px; }
  .lead { font-size: 15px; }
  .card { padding: 19px; border-radius: 17px; }
  .section { padding: 46px 0; }

  .site-header .brand-logo, .app-header .brand-logo { width: 42px; height: 42px; }
  .site-header .brand-text, .app-header .brand-text { font-size: 12px; }
  .site-header .brand-text small, .app-header .brand-text small { display: none; }
  .site-header .nav-actions .btn { min-height: 42px; padding-inline: 10px; font-size: 11px; }
  .app-header .navbar { min-height: 60px; }
  .app-header .nav-actions .btn { min-width: 76px; min-height: 40px; padding-inline: 10px; font-size: 10px; }

  .hero { padding: 36px 0 48px; }
  .hero-actions { display: grid; grid-template-columns: 1fr; }
  .hero-actions .btn { width: 100%; }
  .trust-row { gap: 10px 14px; }
  .logo-stage { min-height: 220px; padding: 22px; }
  .live-strip { align-items: flex-start; flex-direction: column; }

  .auth-showcase { min-height: 280px; padding: 25px 20px; }
  .auth-copy { margin: 32px 0; }
  .auth-panel { padding: 20px 11px; }
  .auth-card { padding: 21px 17px; border-radius: 20px; }
  .auth-card h2 { font-size: 28px; }
  .auth-tabs a { min-width: 0; padding-inline: 8px; font-size: 10px; }

  .input, .input-small, textarea.input, select.input {
    min-height: 46px;
    font-size: 16px;
  }
  textarea.input { padding-top: 12px; }
  .btn, .btn-small { min-height: 44px; }
  .form-grid .btn { width: 100%; }

  .profile-form { grid-template-columns: 1fr; }
  .profile-form .btn { width: 100%; }
  .membership-card strong { font-size: 22px; }
  .level-card { width: 100%; min-width: 0; }

  .room-row { padding: 13px; }
  .room-row-title { align-items: flex-start; flex-direction: column; }
  .room-row .row-actions { display: grid; grid-template-columns: 1fr 1fr; }
  .room-row .row-actions .room-code,
  .room-row .row-actions .helper { grid-column: 1 / -1; }
  .room-row .row-actions > * { min-width: 0; }

  .admin-stats { grid-template-columns: 1fr 1fr; gap: 10px; }
  .stat-card { padding: 16px; }
  .admin-card { padding: 16px; }
  .admin-item { padding: 14px; }
  .admin-controls-grid, .report-admin-grid { grid-template-columns: 1fr; }
  .admin-actions { grid-template-columns: 1fr 1fr; }
  .admin-actions .btn, .admin-actions a.btn { min-height: 40px; font-size: 9px; }
  .device-box { overflow-wrap: anywhere; }

  .pending-wrap { min-height: calc(100svh - 60px); padding: 24px 11px; }
  .pending-card { width: 100%; padding: 24px 17px; }
  .pending-card .btn { width: 100%; }
  .pending-details { justify-content: center; }
  .live-update-note { width: 100%; }

  .public-room-card { min-height: 230px; padding: 18px; }
  .public-room-footer { align-items: flex-start; flex-direction: column; }
  .about-panel { padding: 17px; }
  .about-badge { min-height: 210px; padding: 22px; }
  .footer-row > div { gap: 10px 16px; }
}

@media (max-width: 390px) {
  .container { width: min(100% - 16px, 1160px); }
  .site-header .nav-actions { grid-template-columns: 1fr; }
  .site-header .nav-actions .btn { min-height: 40px; }
  .app-header .brand-logo { width: 38px; height: 38px; }
  .app-header .brand-text { font-size: 10px; }
  .app-header .nav-actions .btn { min-width: 68px; padding-inline: 8px; }
  .admin-stats { grid-template-columns: 1fr; }
  .admin-actions { grid-template-columns: 1fr; }
  .room-row .row-actions { grid-template-columns: 1fr; }
  .room-row .row-actions .room-code,
  .room-row .row-actions .helper { grid-column: auto; }
}

@media (prefers-reduced-motion: reduce) {
  .live-update-pulse { animation: none; }
}

/* Version 12: polished remote voice, raise hand, and owner moderation */
.room-body {
  background:
    radial-gradient(circle at 10% 0%, rgba(53, 153, 92, .10), transparent 32%),
    radial-gradient(circle at 100% 100%, rgba(70, 126, 255, .08), transparent 28%),
    #07140d;
}
.room-topbar {
  background: rgba(10, 30, 19, .92);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom-color: rgba(255,255,255,.09);
}
.room-topbar .brand-logo { box-shadow: 0 8px 30px rgba(0,0,0,.18); }
.voice-stage-head { padding: 2px 2px 0; }
.voice-tech {
  display: inline-flex;
  align-items: center;
  min-height: 23px;
  padding: 4px 8px;
  border: 1px solid rgba(84,209,125,.16);
  border-radius: 999px;
  background: rgba(84,209,125,.07);
  color: rgba(193,255,214,.82);
  letter-spacing: .04em;
}
.voice-network-banner {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: -2px 0 13px;
  padding: 9px 12px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 13px;
  background: rgba(255,255,255,.035);
  color: rgba(255,255,255,.62);
  font-size: 9px;
}
.voice-network-banner strong { color: rgba(255,255,255,.88); }
.network-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #d3a43f;
  box-shadow: 0 0 0 5px rgba(211,164,63,.09);
}
.voice-network-banner.ready .network-dot {
  background: #54d17d;
  box-shadow: 0 0 0 5px rgba(84,209,125,.10);
}
.moderator-live-bar {
  border-color: rgba(84,209,125,.18);
  background: linear-gradient(120deg, rgba(84,209,125,.09), rgba(255,255,255,.035));
}
.participant-grid { align-items: stretch; }
.participant-card {
  border-radius: 24px;
  background: linear-gradient(160deg, rgba(24,45,32,.96), rgba(14,31,21,.96));
  box-shadow: 0 18px 45px rgba(0,0,0,.13);
}
.participant-card.hand-raised {
  order: -1;
  border-color: rgba(255,198,64,.72);
  box-shadow: 0 0 0 1px rgba(255,198,64,.12), 0 18px 50px rgba(0,0,0,.19);
}
.hand-badge {
  position: absolute;
  top: -8px;
  left: -9px;
  z-index: 8;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 3px solid #17291e;
  border-radius: 50%;
  background: #ffd35b;
  color: #271d00;
  box-shadow: 0 8px 18px rgba(0,0,0,.25);
  font-size: 15px;
  animation: handWave 1.5s ease-in-out infinite;
  transform-origin: 50% 100%;
}
.hand-badge[hidden] { display: none !important; }
@keyframes handWave {
  0%, 100% { transform: rotate(-6deg) translateY(0); }
  45% { transform: rotate(10deg) translateY(-2px); }
}
.hand-control.active {
  border-color: rgba(255,205,75,.7);
  background: rgba(255,205,75,.16);
  color: #ffe8a0;
}
.moderator-actions {
  width: 100%;
  margin-top: 10px;
  justify-content: center;
  gap: 6px;
}
.moderator-actions .btn { min-height: 31px; }
.call-controls {
  background: rgba(10,28,18,.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
.control-btn {
  min-width: 78px;
  border-color: rgba(255,255,255,.09);
  background: rgba(255,255,255,.055);
}
.control-btn:hover { transform: translateY(-1px); border-color: rgba(84,209,125,.34); }
.control-btn.leave { box-shadow: 0 10px 28px rgba(208,61,75,.16); }
.chat-panel {
  background: rgba(9,26,17,.92);
  border-left-color: rgba(255,255,255,.08);
}
.chat-message { box-shadow: 0 7px 20px rgba(0,0,0,.10); }
.modal { border: 1px solid rgba(17,53,31,.08); }

@media (max-width: 760px) {
  .room-topbar { padding-inline: 11px; }
  .voice-network-banner { margin-bottom: 9px; padding: 7px 9px; font-size: 7px; }
  .voice-tech { min-height: 20px; padding: 3px 6px; font-size: 7px; }
  .moderator-live-bar { margin-bottom: 9px; }
  .participant-grid { gap: 9px; }
  .participant-card { border-radius: 18px; }
  .hand-badge { width: 26px; height: 26px; font-size: 13px; top: -6px; left: -6px; }
  .call-controls {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 4px;
    padding: 7px max(6px, env(safe-area-inset-right)) calc(7px + env(safe-area-inset-bottom)) max(6px, env(safe-area-inset-left));
  }
  .control-btn {
    min-width: 0;
    width: 100%;
    min-height: 52px;
    padding: 7px 2px;
    border-radius: 14px;
  }
  .control-btn .control-icon { font-size: 15px; }
  .control-btn .control-label { font-size: 7px; white-space: nowrap; }
  .moderator-actions { display: grid; grid-template-columns: 1fr 1fr; }
  .moderator-actions .btn { width: 100%; font-size: 7px; padding-inline: 5px; }
}

@media (max-width: 390px) {
  .call-controls { gap: 3px; padding-inline: 4px; }
  .control-btn { min-height: 49px; border-radius: 12px; }
  .control-btn .control-label { font-size: 6.5px; }
  .voice-network-banner strong { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .hand-badge { animation: none; }
  .control-btn:hover { transform: none; }
}

/* Version 13: admin-only private guest video sessions */
.private-session-admin-card {
  border-color: rgba(25, 127, 73, .18);
  background:
    radial-gradient(circle at 100% 0%, rgba(68, 189, 111, .09), transparent 30%),
    var(--surface, #fff);
}
.private-session-create-form {
  display: grid;
  grid-template-columns: minmax(220px, 1.6fr) minmax(150px, .7fr) minmax(150px, .7fr) auto;
  align-items: end;
  gap: 12px;
  margin: 18px 0 12px;
}
.private-session-create-form label { display: grid; gap: 7px; font-size: 11px; }
.private-security-note {
  margin: 12px 0 18px;
  padding: 13px 15px;
  border: 1px solid rgba(26, 133, 78, .15);
  border-radius: 14px;
  background: rgba(37, 150, 87, .055);
  color: #557064;
  font-size: 11px;
  line-height: 1.6;
}
.private-security-note strong { color: #153f2a; }
.private-session-item { overflow: hidden; }
.private-link-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 8px;
  margin-top: 13px;
}
.private-link-row input { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 11px; }
.private-visitor-details {
  margin-top: 12px;
  border: 1px solid rgba(15, 58, 34, .09);
  border-radius: 13px;
  background: rgba(12, 51, 29, .025);
}
.private-visitor-details summary { cursor: pointer; padding: 11px 13px; color: #244d36; font-size: 11px; }
.private-visitor-details ul { list-style: none; margin: 0; padding: 0 13px 12px; }
.private-visitor-details li {
  display: grid;
  grid-template-columns: minmax(120px, .8fr) minmax(120px, .8fr) 1fr;
  gap: 10px;
  padding: 8px 0;
  border-top: 1px solid rgba(15, 58, 34, .07);
  font-size: 10px;
}
.private-visitor-details li span { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.private-visitor-details li small { color: #7a8b82; }
.private-no-visitors { display: block !important; color: #7a8b82; }

.private-guest-body {
  min-height: 100svh;
  margin: 0;
  color: #eef8f1;
  background:
    radial-gradient(circle at 12% 4%, rgba(61, 177, 106, .18), transparent 30%),
    radial-gradient(circle at 92% 90%, rgba(76, 116, 255, .12), transparent 28%),
    #07140d;
}
.private-guest-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 74px;
  padding: 10px max(20px, calc((100vw - 1180px) / 2));
  border-bottom: 1px solid rgba(255,255,255,.08);
  background: rgba(7, 20, 13, .86);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}
.private-guest-header .brand { color: #fff; }
.private-guest-header .brand-text small { color: rgba(255,255,255,.52); }
.private-link-badge {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 8px 13px;
  border: 1px solid rgba(119, 231, 157, .2);
  border-radius: 999px;
  color: #c6f4d5;
  background: rgba(75, 184, 111, .08);
  font-size: 9px;
}
.private-guest-main {
  width: min(1180px, calc(100% - 28px));
  margin: 0 auto;
  padding: 38px 0 calc(110px + env(safe-area-inset-bottom));
}
.private-entry-card {
  width: min(620px, 100%);
  margin: 3vh auto 0;
  padding: clamp(24px, 5vw, 48px);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 30px;
  color: #0c2416;
  background: #fff;
  box-shadow: 0 34px 90px rgba(0,0,0,.32);
}
.private-entry-icon {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  margin-bottom: 18px;
  border-radius: 20px;
  background: #e7f5ec;
  font-size: 28px;
}
.private-entry-card h1 { margin: 8px 0 13px; color: #0a2516; font-size: clamp(32px, 6vw, 54px); line-height: 1.02; }
.private-entry-copy { color: #66766d; line-height: 1.7; }
.private-entry-form { display: grid; gap: 14px; margin-top: 22px; }
.private-entry-form > label:not(.private-camera-choice):not(.private-consent-row) { display: grid; gap: 7px; color: #244633; font-size: 11px; }
.private-camera-choice,
.private-consent-row {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  padding: 13px;
  border: 1px solid #dfe9e3;
  border-radius: 15px;
  background: #f8fbf9;
  cursor: pointer;
}
.private-camera-choice input,
.private-consent-row input { width: 18px; height: 18px; margin: 1px 0 0; accent-color: #1e8750; }
.private-camera-choice span { display: grid; gap: 4px; }
.private-camera-choice strong { color: #173b26; font-size: 12px; }
.private-camera-choice small,
.private-consent-row span { color: #617168; font-size: 10px; line-height: 1.5; }
.private-entry-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  margin-top: 17px;
  color: #718078;
  font-size: 9px;
}
.private-call-shell { min-height: calc(100svh - 150px); }
.private-call-shell[hidden] { display: none !important; }
.private-call-topbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
  padding: 19px 21px;
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 22px;
  background: rgba(255,255,255,.045);
}
.private-call-topbar h2 { margin: 5px 0 4px; color: #fff; }
.private-call-topbar p { margin: 0; color: rgba(255,255,255,.55); font-size: 10px; }
.private-video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr));
  gap: 16px;
}
.private-video-card {
  position: relative;
  min-height: clamp(260px, 36vw, 460px);
  overflow: hidden;
  border: 1px solid rgba(104, 229, 145, .16);
  border-radius: 26px;
  background:
    radial-gradient(circle at 50% 42%, rgba(74, 177, 108, .19), transparent 33%),
    #10291b;
  box-shadow: 0 25px 60px rgba(0,0,0,.19);
}
.private-video-card video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity .25s ease;
  background: #0c2116;
}
.private-video-card.camera-on video { opacity: 1; }
.private-video-placeholder {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
}
.private-video-placeholder span {
  display: grid;
  place-items: center;
  width: 104px;
  height: 104px;
  border: 7px solid rgba(255,255,255,.07);
  border-radius: 50%;
  color: #e9fff0;
  background: linear-gradient(145deg, #268955, #1a5f3d);
  font-size: 34px;
  box-shadow: 0 18px 42px rgba(0,0,0,.25);
}
.private-video-card.camera-on .private-video-placeholder { opacity: 0; }
.private-video-label {
  position: absolute;
  z-index: 4;
  left: 14px;
  right: 14px;
  bottom: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 13px;
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 14px;
  background: rgba(4, 17, 10, .72);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.private-video-label strong { color: #fff; font-size: 12px; }
.private-video-label span { color: rgba(255,255,255,.62); font-size: 8px; }
.private-speaking-ring {
  position: absolute;
  z-index: 3;
  inset: 13px;
  pointer-events: none;
  border: 3px solid transparent;
  border-radius: 20px;
  transition: border-color .12s ease, box-shadow .12s ease;
}
.private-video-card.is-speaking .private-speaking-ring {
  border-color: #62e38c;
  box-shadow: inset 0 0 0 1px rgba(98,227,140,.18), 0 0 28px rgba(83,220,128,.24);
}
.private-video-card.mic-muted { border-color: rgba(255, 110, 110, .22); }
.private-call-controls {
  position: fixed;
  z-index: 30;
  left: 50%;
  bottom: max(14px, env(safe-area-inset-bottom));
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  padding: 8px;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 22px;
  background: rgba(7, 22, 13, .92);
  box-shadow: 0 20px 50px rgba(0,0,0,.35);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}
.private-control-button {
  display: grid;
  place-items: center;
  gap: 3px;
  min-width: 88px;
  min-height: 60px;
  padding: 8px 12px;
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 16px;
  color: #edf8f0;
  background: rgba(255,255,255,.055);
  cursor: pointer;
}
.private-control-button span { font-size: 17px; }
.private-control-button strong { font-size: 8px; }
.private-control-danger { background: #c9434f; border-color: transparent; }

@media (max-width: 900px) {
  .private-session-create-form { grid-template-columns: 1fr 1fr; }
  .private-session-create-form label:first-child { grid-column: 1 / -1; }
  .private-session-create-form .btn { width: 100%; }
}
@media (max-width: 700px) {
  .private-link-row { grid-template-columns: 1fr 1fr; }
  .private-link-row input { grid-column: 1 / -1; }
  .private-visitor-details li { grid-template-columns: 1fr; gap: 3px; }
  .private-guest-header { min-height: 62px; padding-inline: 12px; }
  .private-link-badge { padding: 7px 9px; font-size: 7px; }
  .private-guest-main { width: min(100% - 18px, 1180px); padding-top: 18px; }
  .private-entry-card { margin-top: 0; padding: 24px 17px; border-radius: 22px; }
  .private-entry-card h1 { font-size: 34px; }
  .private-call-topbar { padding: 14px; border-radius: 18px; }
  .private-call-topbar .btn { min-width: 92px; padding-inline: 9px; }
  .private-video-grid { grid-template-columns: 1fr; gap: 10px; }
  .private-video-card { min-height: 270px; border-radius: 19px; }
  .private-video-label { left: 9px; right: 9px; bottom: 9px; }
  .private-call-controls {
    width: calc(100% - 14px);
    bottom: max(7px, env(safe-area-inset-bottom));
    gap: 4px;
    padding: 5px;
    border-radius: 18px;
  }
  .private-control-button { min-width: 0; width: 25%; min-height: 55px; padding: 6px 3px; border-radius: 13px; }
  .private-control-button strong { font-size: 7px; }
}
@media (max-width: 460px) {
  .private-session-create-form { grid-template-columns: 1fr; }
  .private-session-create-form label:first-child { grid-column: auto; }
  .private-entry-meta { display: grid; }
  .private-link-badge { display: none; }
  .private-video-card { min-height: 240px; }
  .private-video-label { align-items: flex-start; flex-direction: column; gap: 2px; }
}
@media (prefers-reduced-motion: reduce) {
  .private-video-card video,
  .private-speaking-ring { transition: none; }
}


/* V14: administrator-assigned special identities */
.special-person-tag {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 4px 8px;
  border: 1px solid rgba(189, 133, 20, .2);
  border-radius: 999px;
  color: #6c4900;
  background: linear-gradient(135deg, #fff6cf, #ffe59a);
  font-size: 8px;
  font-style: normal;
  line-height: 1;
  letter-spacing: .04em;
  text-transform: uppercase;
  box-shadow: 0 6px 16px rgba(161, 111, 10, .09);
}
.participant-role.special {
  display: inline-flex;
  align-items: center;
  min-height: auto;
  width: fit-content;
  margin: 5px auto 0;
  padding: 4px 8px;
  border: 1px solid rgba(139, 224, 168, .22);
  border-radius: 999px;
  color: #d9ffe5;
  background: rgba(86, 194, 124, .13);
  text-transform: uppercase;
  letter-spacing: .05em;
}
.chat-special-tag {
  display: inline-flex;
  margin-left: 4px;
  padding: 2px 5px;
  border-radius: 999px;
  color: #6a4700;
  background: #ffe7a5;
  font-size: 7px;
  font-style: normal;
  text-transform: uppercase;
}
.private-visitor-admin-row {
  grid-template-columns: minmax(150px, 1fr) minmax(150px, 1fr) minmax(150px, 1fr) auto !important;
  align-items: end;
}
.private-visitor-admin-row label {
  display: grid;
  gap: 5px;
  color: #6f8177;
  font-size: 8px;
}
.private-visitor-summary { display: grid; gap: 5px; align-self: center; }
.private-visitor-summary small { color: #7a8b82; }
.private-identity { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; min-width: 0; }
.private-special-tag {
  color: #fff4c4;
  border-color: rgba(255, 224, 122, .28);
  background: rgba(164, 112, 7, .35);
  box-shadow: none;
}
@media (max-width: 900px) {
  .private-visitor-admin-row { grid-template-columns: 1fr 1fr !important; }
  .private-visitor-summary { grid-column: 1 / -1; }
}
@media (max-width: 620px) {
  .private-visitor-admin-row { grid-template-columns: 1fr !important; }
  .private-video-label { align-items: flex-start; }
}


/* Bolo English V18 brand and responsive dashboard */
.bolo-logo-stage img { width: min(620px, 92%); max-height: 220px; }

.bolo-dashboard-shell {
  background:
    radial-gradient(circle at 82% 4%, rgba(219, 241, 209, .62), transparent 30%),
    linear-gradient(180deg, #fbfcf8 0%, #f3f7f1 100%);
}
.bolo-dashboard-header { background: rgba(255, 255, 255, .94); }
.bolo-dashboard-main { padding-top: 34px; }
.dashboard-header-actions { margin-left: auto; }
.mobile-nav-menu { display: none; position: relative; margin-left: auto; }
.mobile-nav-menu summary {
  width: 46px; height: 46px; border-radius: 14px; border: 1px solid var(--line);
  display: grid; place-items: center; background: #f3f7ef; color: var(--primary-dark);
  font-size: 22px; cursor: pointer; list-style: none;
}
.mobile-nav-menu summary::-webkit-details-marker { display: none; }
.mobile-nav-popover {
  position: absolute; right: 0; top: 54px; z-index: 70; min-width: 190px;
  display: grid; gap: 4px; padding: 10px; border: 1px solid var(--line);
  border-radius: 16px; background: #fff; box-shadow: var(--shadow);
}
.mobile-nav-popover a, .mobile-nav-popover button {
  border: 0; background: transparent; color: var(--text); text-align: left;
  min-height: 42px; padding: 0 12px; border-radius: 10px; cursor: pointer;
}
.mobile-nav-popover a:hover, .mobile-nav-popover button:hover { background: var(--surface-2); }

.dashboard-welcome-grid {
  display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(360px, .8fr);
  gap: 34px; align-items: stretch; margin-bottom: 24px;
  padding: 34px; border: 1px solid rgba(34, 120, 73, .12); border-radius: 30px;
  background: linear-gradient(120deg, rgba(255,255,255,.96), rgba(247,251,242,.92));
  box-shadow: 0 20px 60px rgba(24,54,37,.08); overflow: hidden;
}
.dashboard-welcome-copy { display: flex; flex-direction: column; justify-content: center; min-width: 0; }
.dashboard-welcome-line { display: flex; align-items: center; gap: 12px; margin-bottom: 22px; color: var(--primary-dark); }
.dashboard-welcome-line > div { display: grid; line-height: 1.25; }
.dashboard-welcome-line span:not(.dashboard-welcome-avatar) { color: var(--muted); font-size: 12px; }
.dashboard-welcome-line strong { font-size: 17px; }
.dashboard-welcome-avatar {
  width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center;
  background: #e8f3df; border: 1px solid #d4e5cc; font-size: 21px;
}
.dashboard-welcome-copy h1 { font-size: clamp(36px, 4.6vw, 60px); max-width: 780px; margin-bottom: 16px; }
.dashboard-welcome-copy > p { max-width: 720px; font-size: 15px; margin-bottom: 22px; }
.dashboard-benefits { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.dashboard-benefits > div {
  display: grid; grid-template-columns: 36px 1fr; column-gap: 9px; align-items: center;
  padding: 12px; border: 1px solid var(--line); border-radius: 14px; background: rgba(255,255,255,.72);
}
.dashboard-benefits > div > span { grid-row: 1 / span 2; width: 36px; height: 36px; display: grid; place-items: center; border-radius: 12px; background: var(--primary-soft); }
.dashboard-benefits strong { font-size: 11px; line-height: 1.25; }
.dashboard-benefits small { color: var(--muted); font-size: 8px; }

.join-next-card {
  position: relative; isolation: isolate; display: flex; flex-direction: column; justify-content: center;
  min-height: 360px; padding: 28px; overflow: hidden; border-radius: 26px;
  background: linear-gradient(145deg, #073d23 0%, #0e6538 55%, #0a4b2b 100%);
  color: #fff; box-shadow: 0 22px 48px rgba(8,73,40,.24);
}
.join-next-glow { position: absolute; inset: auto -80px -110px auto; width: 280px; height: 280px; border-radius: 50%; background: rgba(196, 255, 52, .18); filter: blur(8px); z-index: -1; }
.join-next-card h2 { color: #fff; text-align: center; font-size: 25px; margin-bottom: 22px; }
.join-next-stats {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0; margin-bottom: 20px;
  padding: 18px 10px; border: 1px solid rgba(255,255,255,.12); border-radius: 18px;
  background: rgba(255,255,255,.07);
}
.join-next-stat { display: grid; justify-items: center; text-align: center; gap: 3px; padding: 8px 14px; }
.join-next-stat + .join-next-stat { border-left: 1px solid rgba(255,255,255,.14); }
.join-next-icon { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; background: rgba(255,255,255,.11); margin-bottom: 3px; }
.join-next-stat small { color: rgba(255,255,255,.72); font-size: 10px; }
.join-next-stat strong { color: #fff; font-size: 17px; line-height: 1.25; }
.join-next-stat em { color: rgba(255,255,255,.55); font-size: 8px; font-style: normal; }
.join-next-button {
  width: 100%; min-height: 54px; display: flex; align-items: center; justify-content: space-between;
  gap: 14px; padding: 0 22px; border: 0; border-radius: 16px;
  background: linear-gradient(90deg, #d9ff36, #b7ec2c); color: #11321d;
  box-shadow: 0 12px 30px rgba(0,0,0,.22); cursor: pointer; font-size: 13px;
}
.join-next-button:disabled { opacity: .65; cursor: wait; }
.join-next-button:hover:not(:disabled) { transform: translateY(-1px); }
.join-next-note { margin: 12px 0 0; color: rgba(255,255,255,.66); text-align: center; font-size: 9px; }

.dashboard-summary-grid { margin-bottom: 20px; }
.dashboard-mini-card { display: flex; align-items: center; gap: 16px; min-height: 130px; }
.dashboard-card-icon { flex: 0 0 auto; width: 50px; height: 50px; display: grid; place-items: center; border-radius: 16px; background: var(--primary-soft); font-size: 21px; }
.dashboard-profile-content { flex: 1; min-width: 0; display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.dashboard-profile-content h3 { margin: 5px 0 0; font-size: 18px; }
.dashboard-action-grid { scroll-margin-top: 96px; }
.action-card-accent { background: linear-gradient(180deg, #fff 0%, #f7fbf6 100%); border-color: #cfe2d4; }
.dashboard-recent-card { margin-bottom: 10px; }

@media (max-width: 980px) {
  .dashboard-welcome-grid { grid-template-columns: 1fr; }
  .join-next-card { min-height: 330px; }
  .dashboard-benefits { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 700px) {
  .bolo-dashboard-main { padding-top: 18px; }
  .dashboard-header-actions { display: none; }
  .mobile-nav-menu { display: block; }
  .dashboard-welcome-grid { padding: 22px; gap: 22px; border-radius: 22px; }
  .dashboard-welcome-copy h1 { font-size: clamp(34px, 11vw, 48px); }
  .dashboard-benefits { grid-template-columns: 1fr; }
  .dashboard-benefits > div { min-height: 66px; }
  .join-next-card { min-height: 0; padding: 22px; border-radius: 22px; }
  .join-next-card h2 { font-size: 23px; }
  .join-next-button { min-height: 58px; font-size: 14px; }
  .dashboard-mini-card { align-items: flex-start; }
  .dashboard-profile-content { align-items: flex-start; flex-direction: column; }
  .dashboard-profile-content .profile-form, .dashboard-profile-content .input, .dashboard-profile-content .btn { width: 100%; }
  .dashboard-recent-card { padding: 20px; }
}

@media (max-width: 390px) {
  .container { width: min(100% - 18px, 1160px); }
  .brand { gap: 8px; }
  .brand-logo { width: 42px; height: 42px; }
  .brand-text { font-size: 12px; }
  .dashboard-welcome-grid { padding: 18px; }
  .dashboard-welcome-copy h1 { font-size: 34px; }
  .dashboard-welcome-copy > p { font-size: 13px; }
  .join-next-stats { grid-template-columns: 1fr; padding: 9px 12px; }
  .join-next-stat { padding: 12px 8px; }
  .join-next-stat + .join-next-stat { border-left: 0; border-top: 1px solid rgba(255,255,255,.14); }
  .join-next-stat strong { font-size: 16px; }
  .dashboard-mini-card { padding: 20px; }
}


/* Version 18.2: compact Android/iPhone room-chat composer */
:root { --room-visual-height: 100dvh; }

@media (max-width: 760px) {
  body.room-body,
  .room-layout {
    height: var(--room-visual-height, 100dvh);
    min-height: var(--room-visual-height, 100svh);
    max-height: var(--room-visual-height, 100dvh);
  }

  .chat-panel {
    grid-template-rows: auto auto minmax(0, 1fr) max-content;
  }

  .chat-form {
    align-self: end;
    align-items: center;
    min-height: 62px;
    max-height: 72px;
    padding: 9px 10px max(9px, env(safe-area-inset-bottom));
    background: #0f1b14;
    overflow: hidden;
  }

  .chat-form .input,
  .chat-form .btn {
    box-sizing: border-box;
    height: 44px !important;
    min-height: 44px !important;
    max-height: 44px !important;
    align-self: center;
  }

  .chat-form .input {
    padding: 0 13px !important;
    line-height: normal;
  }

  .chat-form .btn {
    min-width: 68px;
    padding: 0 14px !important;
  }

  body.keyboard-open .call-controls { display: none; }
  body.keyboard-open .room-layout { grid-template-rows: auto auto minmax(0, 1fr); }
  body.keyboard-open .chat-head { min-height: 48px; }
  body.keyboard-open .chat-form {
    min-height: 60px;
    max-height: 68px;
  }
}

@media (max-width: 370px) {
  .chat-form { grid-template-columns: minmax(0, 1fr) 64px; gap: 6px; }
  .chat-form .btn { min-width: 64px; padding-inline: 8px !important; }
}


/* Version 18.3: larger, clearer Bolo English branding on phones */
@media (max-width: 700px) {
  .site-header .navbar,
  .bolo-dashboard-header .navbar {
    min-height: 82px;
    padding-block: 10px;
  }

  .site-header .brand,
  .bolo-dashboard-header .brand {
    gap: 12px;
  }

  .site-header .brand-logo,
  .bolo-dashboard-header .brand-logo {
    width: 54px;
    height: 54px;
    padding: 6px;
    border-radius: 16px;
    flex: 0 0 54px;
  }

  .site-header .brand-text,
  .bolo-dashboard-header .brand-text {
    display: block;
    overflow: visible;
    text-overflow: clip;
    white-space: nowrap;
    font-size: 20px;
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.02em;
  }

  .site-header .brand-text small,
  .bolo-dashboard-header .brand-text small {
    display: none;
  }

  .bolo-dashboard-header .mobile-nav-menu summary {
    width: 50px;
    height: 50px;
    font-size: 23px;
  }
}

@media (max-width: 360px) {
  .site-header .brand-logo,
  .bolo-dashboard-header .brand-logo {
    width: 48px;
    height: 48px;
    flex-basis: 48px;
  }

  .site-header .brand-text,
  .bolo-dashboard-header .brand-text {
    font-size: 18px;
  }
}

/* Bolo English V19: instant trial registration and modern member access */
.auth-layout-modern {
  min-height: 100dvh;
  grid-template-columns: minmax(360px, .9fr) minmax(560px, 1.1fr);
  background: #f6faf6;
}
.auth-showcase-modern {
  position: sticky;
  top: 0;
  min-height: 100dvh;
  padding: clamp(28px, 4vw, 64px);
  background:
    radial-gradient(circle at 88% 12%, rgba(203, 255, 76, .18), transparent 28%),
    radial-gradient(circle at 16% 78%, rgba(46, 139, 87, .22), transparent 32%),
    linear-gradient(145deg, #071f15 0%, #0d3a24 58%, #082416 100%);
  color: #fff;
  overflow: hidden;
}
.auth-showcase-modern::after {
  content: "";
  position: absolute;
  width: 320px;
  height: 320px;
  right: -120px;
  bottom: -100px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 50%;
  box-shadow: 0 0 0 42px rgba(255,255,255,.025), 0 0 0 84px rgba(255,255,255,.02);
  pointer-events: none;
}
.auth-brand { position: relative; z-index: 1; }
.auth-copy-modern { position: relative; z-index: 1; margin: clamp(64px, 10vh, 120px) 0 48px; max-width: 620px; }
.auth-copy-modern h1 { margin: 16px 0 22px; font-size: clamp(48px, 5.1vw, 82px); line-height: .98; letter-spacing: -.055em; color: #fff; }
.auth-copy-modern > p { max-width: 570px; color: rgba(255,255,255,.76); font-size: clamp(16px, 1.3vw, 20px); line-height: 1.75; }
.auth-copy-modern > p strong { color: #d7ff66; }
.auth-kicker { display: inline-flex; align-items: center; gap: 9px; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: #d7ff66; }
.auth-kicker-dot { width: 10px; height: 10px; border-radius: 999px; background: #d7ff66; box-shadow: 0 0 0 7px rgba(215,255,102,.11); }
.auth-benefit-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px; margin-top: 32px; }
.auth-benefit-grid article { display: flex; gap: 12px; align-items: flex-start; padding: 16px; border: 1px solid rgba(255,255,255,.11); background: rgba(255,255,255,.055); border-radius: 18px; backdrop-filter: blur(10px); }
.auth-benefit-grid article > span { display: grid; place-items: center; width: 38px; height: 38px; flex: 0 0 38px; border-radius: 12px; background: rgba(215,255,102,.12); }
.auth-benefit-grid strong, .auth-benefit-grid small { display: block; }
.auth-benefit-grid strong { color: #fff; font-size: 14px; }
.auth-benefit-grid small { margin-top: 4px; color: rgba(255,255,255,.62); font-size: 11px; line-height: 1.45; }
.auth-showcase-footer { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: auto; color: rgba(255,255,255,.62); font-size: 12px; }
.auth-panel-modern { min-height: 100dvh; padding: clamp(24px, 4vw, 64px); align-items: center; background: linear-gradient(180deg, #fbfdfb 0%, #f1f7f2 100%); }
.auth-card-modern { width: min(720px, 100%); padding: clamp(26px, 4vw, 48px); border-radius: 30px; border: 1px solid rgba(11,54,35,.1); box-shadow: 0 28px 80px rgba(8,44,29,.11); }
.auth-card-topline { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; }
.auth-card-topline h2 { margin: 8px 0 8px; font-size: clamp(30px, 3vw, 46px); line-height: 1.05; letter-spacing: -.04em; }
.auth-secure-pill { display: inline-flex; align-items: center; white-space: nowrap; padding: 10px 13px; border-radius: 999px; color: #17643e; background: #edf8f0; border: 1px solid #d8eddd; font-size: 11px; }
.auth-tabs-modern { padding: 6px; margin: 24px 0; border-radius: 16px; background: #edf3ee; }
.auth-tabs-modern .auth-tab { min-height: 46px; border-radius: 12px; }
.auth-tabs-modern .auth-tab.active { background: #fff; box-shadow: 0 6px 18px rgba(15,62,41,.08); color: #0b3c26; }
.auth-form-modern { gap: 18px; }
.auth-form-modern .input { min-height: 52px; border-radius: 14px; background: #fbfdfb; border-color: #d8e4da; }
.auth-form-modern .input:focus { border-color: #1f8a53; box-shadow: 0 0 0 4px rgba(31,138,83,.12); background: #fff; }
.input-with-icon { position: relative; }
.input-with-icon > span { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); z-index: 1; opacity: .65; font-size: 14px; }
.input-with-icon .input { padding-left: 46px; }
.auth-submit { min-height: 54px; border-radius: 15px; font-size: 14px; box-shadow: 0 12px 24px rgba(26,125,76,.18); }
.auth-inline-links { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.auth-two-column { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 14px; }
.register-modern { gap: 14px; }
.register-section { display: grid; gap: 14px; padding: 18px; border: 1px solid #e1eae2; border-radius: 20px; background: #fbfdfb; }
.register-section-title { display: flex; align-items: center; gap: 11px; margin-bottom: 1px; }
.register-section-title > span { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 10px; color: #fff; background: linear-gradient(135deg, #0f4d30, #28a564); }
.register-section-title strong, .register-section-title small { display: block; }
.register-section-title strong { color: #102b1e; font-size: 14px; }
.register-section-title small { margin-top: 2px; color: #718077; font-size: 10px; }
.auth-consent-row { display: flex; gap: 11px; align-items: flex-start; padding: 14px 16px; border-radius: 14px; background: #f5f9f5; border: 1px solid #e0e9e1; color: #536158; font-size: 11px; line-height: 1.55; }
.auth-consent-row input { margin-top: 2px; accent-color: #1d8b52; }
.trial-callout { display: flex; align-items: flex-start; gap: 13px; padding: 16px; border-radius: 16px; background: linear-gradient(135deg, #eff9e8, #f9f6dc); border: 1px solid #dce9cb; }
.trial-callout > span { font-size: 24px; }
.trial-callout strong, .trial-callout small { display: block; }
.trial-callout strong { color: #174c31; font-size: 13px; }
.trial-callout small { margin-top: 5px; color: #657268; font-size: 10px; line-height: 1.55; }
.auth-foot-modern { margin-top: 22px; padding-top: 18px; border-top: 1px solid #edf1ed; }
.member-contact-panel { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 10px; margin: 14px 0 18px; padding: 14px; border-radius: 16px; background: #f4f8f4; border: 1px solid #e0e9e1; }
.member-contact-panel > div { min-width: 0; }
.member-contact-panel span, .member-contact-panel strong { display: block; }
.member-contact-panel span { color: #7a877f; font-size: 9px; text-transform: uppercase; letter-spacing: .08em; }
.member-contact-panel strong { margin-top: 5px; color: #193424; font-size: 11px; overflow-wrap: anywhere; }
.member-contact-link { color: #17643e; text-decoration: underline; text-decoration-color: rgba(23,100,62,.25); }
.membership-renewal-card { width: min(720px, calc(100% - 24px)); }
.renewal-price-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 12px; width: 100%; margin: 22px 0 16px; }
.renewal-price-grid article { position: relative; display: grid; place-items: center; gap: 4px; min-height: 108px; padding: 16px; border: 1px solid #dfe8e1; border-radius: 18px; background: #f8fbf8; }
.renewal-price-grid article.popular { border-color: #1f8a53; background: #eff9f2; box-shadow: 0 10px 28px rgba(31,138,83,.12); }
.renewal-price-grid strong { color: #0e472c; font-size: 28px; }
.renewal-price-grid span { color: #6e7a72; font-size: 11px; }
.renewal-price-grid small { position: absolute; top: -9px; padding: 4px 8px; border-radius: 999px; color: #fff; background: #1f8a53; font-size: 7px; letter-spacing: .08em; }
.renewal-note { width: 100%; padding: 14px 16px; border-radius: 14px; color: #536158; background: #f6f8ef; border: 1px solid #e6e9d9; font-size: 11px; line-height: 1.65; }

@media (max-width: 980px) {
  .auth-layout-modern { grid-template-columns: 1fr; }
  .auth-showcase-modern { position: relative; min-height: auto; padding: 28px 24px 34px; }
  .auth-copy-modern { margin: 42px 0 24px; }
  .auth-copy-modern h1 { font-size: clamp(40px, 9vw, 60px); }
  .auth-benefit-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .auth-showcase-footer { margin-top: 26px; }
  .auth-panel-modern { min-height: auto; padding: 24px 18px 48px; }
  .auth-card-modern { margin-top: -18px; position: relative; z-index: 2; }
  .member-contact-panel { grid-template-columns: repeat(2, minmax(0,1fr)); }
}

@media (max-width: 620px) {
  .auth-showcase-modern { padding: 20px 18px 28px; }
  .auth-copy-modern { margin: 30px 0 20px; }
  .auth-copy-modern h1 { font-size: clamp(36px, 12vw, 50px); }
  .auth-copy-modern > p { font-size: 14px; line-height: 1.6; }
  .auth-benefit-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
  .auth-benefit-grid article { padding: 12px; gap: 8px; border-radius: 14px; }
  .auth-benefit-grid article > span { width: 32px; height: 32px; flex-basis: 32px; }
  .auth-benefit-grid strong { font-size: 11px; }
  .auth-benefit-grid small { display: none; }
  .auth-showcase-footer { display: none; }
  .auth-panel-modern { padding: 16px 12px 34px; }
  .auth-card-modern { padding: 22px 16px; border-radius: 22px; }
  .auth-card-topline { display: block; }
  .auth-secure-pill { margin-top: 12px; }
  .auth-card-topline h2 { font-size: 32px; }
  .auth-two-column { grid-template-columns: 1fr; gap: 12px; }
  .register-section { padding: 14px; border-radius: 16px; }
  .auth-inline-links { align-items: flex-start; flex-direction: column; }
  .member-contact-panel { grid-template-columns: 1fr; }
  .renewal-price-grid { grid-template-columns: 1fr; }
  .renewal-price-grid article { min-height: 82px; grid-template-columns: auto auto; justify-content: center; column-gap: 12px; }
  .renewal-price-grid article strong { font-size: 25px; }
}


/* Bolo English V20: pricing, persistent-access messaging, and responsive plan cards */
.dashboard-pricing-section {
  position: relative;
  overflow: hidden;
  margin: 24px 0;
  padding: 28px;
  border: 1px solid #dce8de;
  border-radius: 26px;
  background:
    radial-gradient(circle at 88% 12%, rgba(196, 224, 115, 0.32), transparent 26%),
    linear-gradient(145deg, #f8fbf6 0%, #eef7ef 52%, #f9f8ee 100%);
  box-shadow: 0 18px 48px rgba(24, 72, 45, 0.08);
}
.dashboard-pricing-section.is-expired {
  border-color: #e7c98d;
  background:
    radial-gradient(circle at 90% 10%, rgba(255, 201, 105, 0.34), transparent 28%),
    linear-gradient(145deg, #fffaf0 0%, #fff5dd 48%, #f8fbf4 100%);
}
.dashboard-pricing-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 22px;
}
.dashboard-pricing-head h2 {
  margin: 6px 0 8px;
  color: #143f2b;
  font-size: clamp(24px, 3vw, 38px);
  line-height: 1.12;
}
.dashboard-pricing-head p {
  max-width: 760px;
  margin: 0;
  color: #617064;
  line-height: 1.65;
}
.pricing-eyebrow {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 6px 12px;
  border-radius: 999px;
  background: #174d34;
  color: #fff;
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.pricing-contact-pill {
  flex: 0 0 auto;
  padding: 10px 14px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid #d7e2d8;
  color: #174d34;
  font-size: 12px;
  box-shadow: 0 8px 22px rgba(19, 62, 42, 0.07);
}
.dashboard-pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.dashboard-plan-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 22px;
  border-radius: 20px;
  border: 1px solid #dbe5dc;
  background: rgba(255,255,255,.92);
  box-shadow: 0 12px 30px rgba(20, 67, 45, 0.06);
}
.dashboard-plan-card.featured {
  border-color: #9fbd5a;
  box-shadow: 0 16px 36px rgba(102, 137, 44, 0.16);
}
.dashboard-plan-card.teacher-plan {
  background: linear-gradient(160deg, #173f2d, #215d40);
  border-color: #173f2d;
  color: #fff;
}
.dashboard-plan-card.teacher-plan p,
.dashboard-plan-card.teacher-plan .plan-duration {
  color: rgba(255,255,255,.78);
}
.plan-popular {
  position: absolute;
  top: 14px;
  right: 14px;
  padding: 5px 9px;
  border-radius: 999px;
  background: #c9e06d;
  color: #234522;
  font-size: 10px;
  text-transform: uppercase;
}
.plan-duration {
  color: #607064;
  font-size: 12px;
}
.plan-price {
  display: block;
  margin: 8px 0 10px;
  color: #173f2d;
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1;
}
.teacher-plan .plan-price { color: #fff; }
.dashboard-plan-card p {
  flex: 1;
  margin: 0 0 18px;
  color: #667269;
  font-size: 13px;
  line-height: 1.6;
}
.dashboard-plan-card .btn {
  width: 100%;
  min-height: 46px;
}
.pricing-helper {
  margin: 14px 0 0;
  color: #6a766d;
  font-size: 11px;
  text-align: center;
}
.auth-foot-modern > span {
  color: #738078;
  font-size: 10px;
  line-height: 1.5;
}

@media (max-width: 900px) {
  .dashboard-pricing-grid { grid-template-columns: 1fr 1fr; }
  .dashboard-plan-card.teacher-plan { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .dashboard-pricing-section {
    margin: 18px -2px;
    padding: 20px 14px;
    border-radius: 20px;
  }
  .dashboard-pricing-head {
    display: block;
    margin-bottom: 16px;
  }
  .pricing-contact-pill {
    display: inline-flex;
    margin-top: 12px;
  }
  .dashboard-pricing-grid { grid-template-columns: 1fr; gap: 12px; }
  .dashboard-plan-card.teacher-plan { grid-column: auto; }
  .dashboard-plan-card { padding: 18px; }
  .plan-price { font-size: 36px; }
}


/* =========================================================
   Bolo English V21 · Free AI Voice Practice Partner
   ========================================================= */
.ai-dashboard-promo {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 22px;
  align-items: center;
  margin: 22px 0 28px;
  padding: 24px 26px;
  border: 1px solid #cfe1d3;
  border-radius: 26px;
  background: linear-gradient(135deg, #f2fff5 0%, #ffffff 60%, #f7fbf7 100%);
  box-shadow: 0 18px 45px rgba(26, 75, 45, .08);
  overflow: hidden;
}
.ai-dashboard-promo::after {
  content: '';
  position: absolute;
  width: 220px;
  height: 220px;
  right: -110px;
  top: -120px;
  border-radius: 50%;
  background: rgba(66, 160, 96, .10);
  pointer-events: none;
}
.ai-dashboard-icon {
  position: relative;
  width: 72px;
  height: 72px;
  border-radius: 22px;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(145deg, #24623a, #153b27);
  box-shadow: 0 14px 26px rgba(24, 72, 43, .22);
}
.ai-dashboard-icon span { position: relative; z-index: 2; font-size: 22px; font-weight: 800; letter-spacing: -.04em; }
.ai-dashboard-icon i { position: absolute; inset: -7px; border: 2px solid rgba(66, 160, 96, .28); border-radius: 27px; animation: aiPulse 2.4s ease-out infinite; }
.ai-dashboard-kicker { display: block; margin-bottom: 5px; font-size: 11px; letter-spacing: .11em; color: #2d7a49; }
.ai-dashboard-copy h2 { margin: 0 0 7px; font-size: clamp(21px, 2.2vw, 30px); line-height: 1.1; color: #173d27; }
.ai-dashboard-copy p { margin: 0; color: #5e6f64; line-height: 1.55; }
.ai-dashboard-points { display: flex; flex-wrap: wrap; gap: 8px 15px; margin-top: 11px; font-size: 12px; color: #3f5b49; }
.ai-dashboard-cta { position: relative; z-index: 2; white-space: nowrap; }

.ai-practice-shell { background: #f5f8f5; min-height: 100vh; }
.ai-practice-header { background: rgba(255,255,255,.96); backdrop-filter: blur(14px); }
.ai-practice-main { padding-top: 28px; padding-bottom: 46px; }
.ai-practice-container { max-width: 1220px; }
.ai-hero-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 34px;
  padding: 34px 38px;
  border-radius: 30px;
  color: #f7fff9;
  background:
    radial-gradient(circle at 82% 22%, rgba(96, 212, 130, .24), transparent 24%),
    linear-gradient(135deg, #143623 0%, #1b5130 57%, #194127 100%);
  box-shadow: 0 25px 60px rgba(18, 57, 34, .18);
  overflow: hidden;
}
.ai-kicker { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; text-transform: uppercase; letter-spacing: .09em; color: #c9f4d4; }
.ai-live-dot { width: 8px; height: 8px; border-radius: 50%; background: #65dc83; box-shadow: 0 0 0 7px rgba(101,220,131,.11); }
.ai-hero-copy h1 { margin: 10px 0 11px; font-size: clamp(38px, 5vw, 62px); line-height: .98; letter-spacing: -.045em; }
.ai-hero-copy h1 span { color: #8ee5a4; }
.ai-hero-copy > p { max-width: 730px; margin: 0; color: #dcebe0; line-height: 1.65; font-size: 15px; }
.ai-hero-badges { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 18px; }
.ai-hero-badges span { padding: 8px 11px; border: 1px solid rgba(255,255,255,.13); border-radius: 999px; background: rgba(255,255,255,.07); font-size: 11px; color: #eff8f1; }
.ai-orb-wrap { min-width: 190px; display: grid; justify-items: center; gap: 12px; }
.ai-orb {
  position: relative;
  width: 132px;
  height: 132px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, #8be5a1, #2f8f4f);
  box-shadow: 0 0 0 12px rgba(129, 226, 151, .07), 0 18px 45px rgba(0,0,0,.22);
}
.ai-orb span { position: relative; z-index: 3; color: #10361e; font-size: 38px; font-weight: 800; letter-spacing: -.08em; }
.ai-orb i { position: absolute; inset: -9px; border: 2px solid rgba(137, 230, 159, .34); border-radius: 50%; opacity: 0; }
.ai-orb.is-listening i, .ai-orb.is-speaking i { opacity: 1; animation: aiPulse 1.55s ease-out infinite; }
.ai-orb.is-listening i:nth-child(3), .ai-orb.is-speaking i:nth-child(3) { animation-delay: .35s; }
.ai-orb.is-listening i:nth-child(4), .ai-orb.is-speaking i:nth-child(4) { animation-delay: .7s; }
.ai-orb.is-thinking { animation: aiThinking 1s ease-in-out infinite alternate; }
.ai-orb-wrap strong { font-size: 12px; color: #dcebe0; }
@keyframes aiPulse { 0% { transform: scale(.92); opacity: .65; } 100% { transform: scale(1.23); opacity: 0; } }
@keyframes aiThinking { from { transform: scale(.97); } to { transform: scale(1.03); } }

.ai-practice-layout { display: grid; grid-template-columns: 310px minmax(0, 1fr); gap: 20px; margin-top: 22px; align-items: start; }
.ai-settings-card { padding: 24px; position: sticky; top: 92px; }
.ai-section-heading { margin-bottom: 18px; }
.ai-section-heading h2 { margin: 3px 0 0; font-size: 23px; }
.ai-range { width: 100%; accent-color: #2f7e49; }
.ai-toggle-row { display: flex; gap: 11px; align-items: flex-start; padding: 14px; margin: 12px 0 16px; border: 1px solid #dce7df; border-radius: 15px; background: #f9fbf9; cursor: pointer; }
.ai-toggle-row input { margin-top: 4px; accent-color: #2f7e49; }
.ai-toggle-row span { display: grid; gap: 3px; }
.ai-toggle-row strong { font-size: 13px; color: #263d2e; }
.ai-toggle-row small { font-size: 10px; color: #708078; line-height: 1.45; }
.ai-full-button { width: 100%; }
.ai-privacy-note { margin-top: 18px; padding: 14px; border-radius: 15px; background: #f1f6f2; color: #66756b; }
.ai-privacy-note strong { display: block; margin-bottom: 4px; font-size: 11px; color: #36503e; }
.ai-privacy-note p { margin: 0; font-size: 10px; line-height: 1.5; }

.ai-conversation-card { min-height: 640px; padding: 0; overflow: hidden; display: grid; grid-template-rows: auto minmax(330px, 1fr) auto auto; }
.ai-conversation-head { display: flex; justify-content: space-between; gap: 20px; align-items: center; padding: 22px 24px; border-bottom: 1px solid #e7ede9; }
.ai-conversation-head h2 { margin: 3px 0 0; font-size: 24px; }
.ai-session-stats { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.ai-session-stats span { padding: 7px 10px; border-radius: 999px; background: #f0f5f1; color: #53675b; font-size: 10px; }
.ai-session-stats strong { color: #225d37; }
.ai-transcript { min-height: 360px; max-height: 500px; overflow-y: auto; padding: 24px; background: linear-gradient(180deg, #fbfdfb 0%, #f6f9f6 100%); scroll-behavior: smooth; }
.ai-message-row { display: flex; margin: 0 0 15px; }
.ai-message-row.user { justify-content: flex-end; }
.ai-message-bubble { max-width: min(78%, 640px); padding: 12px 14px; border: 1px solid #dfe8e2; border-radius: 18px 18px 18px 5px; background: #fff; box-shadow: 0 5px 16px rgba(31, 69, 44, .05); }
.ai-message-row.user .ai-message-bubble { color: #fff; background: #225d37; border-color: #225d37; border-radius: 18px 18px 5px 18px; }
.ai-message-who { display: block; margin-bottom: 4px; font-size: 9px; text-transform: uppercase; letter-spacing: .08em; color: #679075; }
.ai-message-row.user .ai-message-who { color: #bfe2c8; }
.ai-message-bubble p { margin: 0; font-size: 13px; line-height: 1.6; }
.ai-correction-card { margin: 0 24px 14px; padding: 12px 14px; border: 1px solid #d7eadc; border-radius: 15px; background: #f1fbf4; }
.ai-correction-card span { display: block; margin-bottom: 3px; font-size: 10px; color: #277041; }
.ai-correction-card p { margin: 0; font-size: 11px; color: #506759; line-height: 1.5; }
.ai-composer { padding: 18px 20px 20px; border-top: 1px solid #e6ece8; background: #fff; }
.ai-mic-row { display: flex; justify-content: center; align-items: center; gap: 12px; margin-bottom: 13px; }
.ai-mic-button { min-width: 188px; min-height: 50px; padding: 10px 18px; border: 0; border-radius: 999px; background: #1f5b35; color: #fff; display: inline-flex; justify-content: center; align-items: center; gap: 9px; font: inherit; font-size: 12px; cursor: pointer; box-shadow: 0 10px 25px rgba(28, 86, 49, .18); }
.ai-mic-button:hover { transform: translateY(-1px); }
.ai-mic-button.is-listening { background: #b63c3c; animation: aiMicPulse 1.2s ease-in-out infinite; }
@keyframes aiMicPulse { 50% { box-shadow: 0 0 0 8px rgba(182,60,60,.12); } }
.ai-text-row { display: grid; grid-template-columns: 1fr auto; gap: 9px; }
.ai-text-row .input { min-height: 44px; }
.ai-support-note { margin: 8px 0 0; text-align: center; color: #829087; font-size: 9px; }

@media (max-width: 900px) {
  .ai-practice-layout { grid-template-columns: 1fr; }
  .ai-settings-card { position: static; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
  .ai-settings-card .ai-section-heading, .ai-settings-card .ai-toggle-row, .ai-settings-card .ai-full-button, .ai-settings-card .ai-privacy-note { grid-column: 1 / -1; }
  .ai-dashboard-promo { grid-template-columns: auto 1fr; }
  .ai-dashboard-cta { grid-column: 1 / -1; justify-self: stretch; text-align: center; }
}
@media (max-width: 700px) {
  .ai-header-actions .user-chip { display: none; }
  .ai-practice-main { padding-top: 14px; }
  .ai-hero-card { grid-template-columns: 1fr; padding: 25px 20px; border-radius: 24px; }
  .ai-hero-copy h1 { font-size: 40px; }
  .ai-orb-wrap { min-width: 0; grid-template-columns: auto 1fr; justify-content: start; justify-items: start; }
  .ai-orb { width: 78px; height: 78px; }
  .ai-orb span { font-size: 25px; }
  .ai-practice-layout { margin-top: 14px; }
  .ai-settings-card { grid-template-columns: 1fr; padding: 18px; }
  .ai-settings-card > * { grid-column: 1 !important; }
  .ai-conversation-card { min-height: 0; border-radius: 20px; }
  .ai-conversation-head { align-items: flex-start; padding: 17px; }
  .ai-conversation-head h2 { font-size: 19px; }
  .ai-session-stats { justify-content: flex-start; }
  .ai-transcript { min-height: 330px; max-height: 46vh; padding: 17px 13px; }
  .ai-message-bubble { max-width: 88%; }
  .ai-composer { padding: 14px 12px calc(14px + env(safe-area-inset-bottom)); }
  .ai-mic-row { justify-content: stretch; }
  .ai-mic-button { flex: 1; min-width: 0; }
  .ai-text-row { grid-template-columns: minmax(0, 1fr) auto; }
  .ai-text-row .btn { min-width: 70px; padding-inline: 13px; }
  .ai-dashboard-promo { grid-template-columns: 1fr; padding: 20px; gap: 15px; border-radius: 22px; }
  .ai-dashboard-icon { width: 58px; height: 58px; border-radius: 18px; }
  .ai-dashboard-points { gap: 7px 10px; }
}
@media (max-width: 390px) {
  .ai-practice-header .brand-text small { display: none; }
  .ai-practice-header .brand-logo { width: 45px; height: 45px; }
  .ai-practice-header .brand-text { font-size: 18px; }
  .ai-header-actions .btn[data-logout] { display: none; }
  .ai-hero-copy h1 { font-size: 35px; }
  .ai-hero-badges span { font-size: 9px; }
  .ai-conversation-head { flex-direction: column; gap: 10px; }
  .ai-mic-row { flex-direction: column; }
  .ai-mic-row > * { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .ai-orb, .ai-orb i, .ai-dashboard-icon i, .ai-mic-button { animation: none !important; transition: none !important; }
}

/* V21.1 speaking bot browser-audio unlock */
.ai-voice-picker-row { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 8px; align-items: center; }
.ai-voice-picker-row .btn { min-height: 44px; white-space: nowrap; }
.ai-start-voice-button {
  width: min(100%, 420px);
  margin: 0 auto 8px;
  min-height: 52px;
  padding: 12px 18px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, #173d27, #25864b);
  color: #fff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 10px 26px rgba(26, 94, 52, .20);
}
.ai-start-voice-button:hover { transform: translateY(-1px); }
.ai-start-voice-button[hidden] { display: none !important; }
.ai-voice-help { margin: 0 auto 12px; max-width: 620px; text-align: center; font-size: 10px; line-height: 1.45; color: #728078; }
.ai-voice-help[hidden] { display: none !important; }
@media (max-width: 640px) {
  .ai-voice-picker-row { grid-template-columns: 1fr; }
  .ai-voice-picker-row .btn { width: 100%; }
  .ai-start-voice-button { width: 100%; }
}
