:root {
  --ink: #07111f;
  --ink-2: #0b1728;
  --ink-3: #10223a;
  --line: #20344e;
  --paper: #f4f7fb;
  --white: #ffffff;
  --text: #eef6ff;
  --muted: #91a4bb;
  --blue: #2d5bff;
  --cyan: #22d3ee;
  --lime: #b4ff3a;
  --gold: #ffc94a;
  --pink: #ff5d8f;
  --danger: #ff667a;
  --radius-lg: 28px;
  --radius-md: 18px;
  --shadow: 0 22px 60px rgba(2, 9, 20, .16);
}

* { box-sizing: border-box; }
html { color-scheme: dark; scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; background: var(--paper); color: var(--ink); font-family: Tahoma, "Noto Sans Thai", "Leelawadee UI", system-ui, sans-serif; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible { outline: 3px solid rgba(45, 91, 255, .28); outline-offset: 2px; }
[hidden] { display: none !important; }

.app { min-height: 100vh; }
.app-header { height: 82px; padding: 0 max(24px, calc((100vw - 1400px) / 2)); display: flex; align-items: center; justify-content: space-between; gap: 28px; background: var(--ink); color: var(--text); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; }
.app-header::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px; background: linear-gradient(90deg, var(--blue), var(--cyan), var(--lime)); }
.brand { color: inherit; text-decoration: none; display: inline-flex; align-items: center; gap: 12px; flex: none; }
.brand img { width: 48px; height: 48px; object-fit: cover; border-radius: 14px; border: 1px solid #2b3f59; }
.brand span { display: grid; line-height: 1; gap: 6px; }
.brand b { font-size: 17px; letter-spacing: -.02em; }
.brand small { color: var(--cyan); font-size: 9px; font-weight: 800; letter-spacing: .21em; }
.desktop-nav { display: flex; align-items: stretch; height: 100%; gap: 8px; }
.nav-link { border: 0; background: transparent; color: var(--muted); padding: 0 18px; font-weight: 700; position: relative; }
.nav-link.is-active { color: var(--text); }
.nav-link.is-active::after { content: ""; position: absolute; height: 3px; width: 28px; border-radius: 3px 3px 0 0; left: 50%; bottom: 0; transform: translateX(-50%); background: var(--lime); }
.header-actions { display: flex; align-items: center; gap: 12px; }
.connection-chip { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--line); color: var(--muted); border-radius: 999px; padding: 9px 13px; font-size: 12px; font-weight: 700; }
.connection-chip i { width: 8px; height: 8px; background: var(--gold); border-radius: 50%; }
.connection-chip.is-online i { background: var(--lime); box-shadow: 0 0 0 5px rgba(180,255,58,.09); }
.icon-button { width: 44px; height: 44px; border-radius: 14px; border: 1px solid var(--line); color: var(--text); background: var(--ink-2); font-weight: 800; }

.home-view { min-height: calc(100vh - 82px); background: linear-gradient(180deg, #eaf0f8 0, #f7f9fc 42%, #fff 100%); padding-bottom: 80px; }
.home-wrap { width: min(1400px, calc(100% - 48px)); margin: 0 auto; }
.welcome-card { min-height: 520px; display: grid; grid-template-columns: minmax(0, .9fr) minmax(520px, 1.1fr); align-items: center; gap: 54px; padding: 54px 62px; color: var(--text); background: var(--ink); border-radius: 0 0 36px 36px; overflow: hidden; position: relative; }
.welcome-card::before { content: ""; position: absolute; inset: 0; opacity: .18; background-image: linear-gradient(115deg, transparent 49.6%, #2d5bff 50%, transparent 50.4%), linear-gradient(#1e3654 1px, transparent 1px), linear-gradient(90deg, #1e3654 1px, transparent 1px); background-size: 260px 100%, 72px 72px, 72px 72px; }
.welcome-card > * { position: relative; z-index: 1; }
.eyebrow, .section-kicker { color: var(--blue); font-size: 11px; font-weight: 900; letter-spacing: .19em; }
.eyebrow { color: var(--cyan); display: inline-flex; align-items: center; gap: 9px; }
.eyebrow i { width: 9px; height: 9px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 7px rgba(180,255,58,.09); }
.welcome-card h1 { margin: 22px 0 18px; font-size: clamp(54px, 5.2vw, 82px); line-height: .94; letter-spacing: -.065em; }
.welcome-card h1 em { color: var(--lime); font-style: normal; }
.welcome-card p { margin: 0; max-width: 610px; color: #b6c6d9; font-size: 18px; line-height: 1.75; }
.hero-actions { display: flex; gap: 12px; margin-top: 32px; }
.primary-button, .secondary-button { min-height: 56px; padding: 0 22px; border-radius: 15px; display: inline-flex; align-items: center; justify-content: center; gap: 12px; font-weight: 900; border: 1px solid transparent; }
.primary-button { color: #061321; background: linear-gradient(105deg, var(--lime), var(--cyan)); box-shadow: 0 14px 30px rgba(34,211,238,.16); }
.secondary-button { color: var(--text); background: var(--ink-2); border-color: #2a3d58; }
.primary-button.compact { min-height: 46px; padding: 0 18px; }
.primary-button.full { width: 100%; justify-content: space-between; margin-top: 8px; }
.button-icon { font-size: 21px; }

.live-visual { min-height: 390px; border: 1px solid #24405f; background: #091726; border-radius: 28px; overflow: hidden; position: relative; }
.visual-grid { position: absolute; inset: 0; opacity: .4; background-image: linear-gradient(#18324c 1px, transparent 1px), linear-gradient(90deg, #18324c 1px, transparent 1px); background-size: 44px 44px; }
.visual-grid::after { content: ""; position: absolute; inset: 0; background: linear-gradient(120deg, transparent 0 48%, rgba(45,91,255,.2) 48% 50%, transparent 50% 100%); }
.center-mic { position: absolute; left: 50%; top: 48%; width: 124px; height: 124px; transform: translate(-50%,-50%); border-radius: 50%; background: var(--ink); border: 2px solid var(--cyan); box-shadow: 0 0 0 15px rgba(34,211,238,.07), 0 0 0 36px rgba(45,91,255,.05); display: grid; place-items: center; }
.signal-bars { display: flex; align-items: center; gap: 6px; height: 56px; }
.signal-bars i { display: block; width: 7px; height: 30%; border-radius: 8px; background: var(--lime); animation: bars 1.2s ease-in-out infinite; }
.signal-bars i:nth-child(2) { height: 80%; animation-delay: -.3s; background: var(--cyan); }
.signal-bars i:nth-child(3) { height: 55%; animation-delay: -.6s; background: var(--blue); }
.signal-bars i:nth-child(4) { height: 95%; animation-delay: -.9s; background: var(--pink); }
@keyframes bars { 50% { transform: scaleY(.35); } }
.orbit { position: absolute; left: 50%; top: 48%; border: 1px solid; border-radius: 50%; transform: translate(-50%,-50%); }
.orbit-one { width: 260px; height: 260px; border-color: rgba(34,211,238,.38); }
.orbit-two { width: 390px; height: 320px; border-color: rgba(180,255,58,.25); transform: translate(-50%,-50%) rotate(-12deg); }
.visual-person { position: absolute; width: 58px; height: 58px; display: grid; place-items: center; border-radius: 18px; font-weight: 900; color: var(--ink); border: 4px solid #0d2135; box-shadow: 0 0 0 2px var(--cyan); }
.person-a { left: 12%; top: 20%; background: var(--lime); }
.person-b { right: 12%; top: 25%; background: var(--cyan); }
.person-c { right: 19%; bottom: 14%; background: var(--pink); box-shadow: 0 0 0 2px var(--pink); }
.live-caption { position: absolute; left: 28px; bottom: 24px; color: #adc1d7; font-size: 11px; font-weight: 800; letter-spacing: .13em; }

.quick-join { margin: 22px 0 56px; background: var(--white); padding: 22px 26px; border: 1px solid #d8e1ec; border-radius: 20px; box-shadow: var(--shadow); display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.quick-join h2 { margin: 4px 0 0; font-size: 21px; }
.quick-join form { display: flex; gap: 10px; width: min(560px, 60%); }
.code-input { min-height: 52px; flex: 1; display: flex; align-items: center; gap: 10px; padding: 0 16px; border: 1px solid #cfd9e6; border-radius: 13px; background: #f8fafc; }
.code-input span { color: var(--blue); font-weight: 900; }
.code-input input { min-width: 0; flex: 1; border: 0; outline: 0; color: var(--ink); background: transparent; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.quick-join form > button { border: 0; border-radius: 13px; background: var(--blue); color: white; padding: 0 24px; font-weight: 900; }
.quick-join form > button span { margin-left: 16px; }

.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 22px; }
.section-heading h2 { margin: 8px 0 0; font-size: clamp(30px, 3vw, 46px); letter-spacing: -.045em; }
.text-button { border: 0; background: transparent; color: var(--blue); font-weight: 900; padding: 10px; }
.room-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.room-card { min-height: 310px; padding: 24px; border: 1px solid #d7e0eb; border-radius: 22px; background: white; box-shadow: 0 12px 30px rgba(20, 43, 72, .07); display: flex; flex-direction: column; transition: transform .2s ease, border-color .2s ease; }
.room-card:hover { transform: translateY(-4px); border-color: var(--blue); }
.room-card-top { display: flex; justify-content: space-between; gap: 12px; }
.room-card .live-badge { color: #b42343; background: #ffe7ee; }
.room-code { color: #63758b; font-size: 11px; font-weight: 900; letter-spacing: .12em; }
.room-card h3 { margin: 28px 0 8px; font-size: 25px; letter-spacing: -.025em; }
.room-card p { color: #667991; line-height: 1.6; margin: 0; min-height: 52px; }
.room-people { display: flex; align-items: center; margin-top: 22px; }
.mini-avatar { width: 37px; height: 37px; margin-right: -9px; border-radius: 12px; display: grid; place-items: center; color: var(--ink); background: hsl(var(--hue) 86% 68%); border: 3px solid white; font-size: 15px; font-weight: 900; }
.room-people span:last-child { margin-left: 18px; color: #596d84; font-size: 13px; font-weight: 700; }
.room-card-footer { margin-top: auto; padding-top: 20px; border-top: 1px solid #e5ebf2; display: flex; align-items: center; justify-content: space-between; }
.room-card-footer small { color: #697b90; font-weight: 700; }
.room-card-footer button { width: 46px; height: 46px; border: 0; border-radius: 14px; background: var(--ink); color: var(--lime); font-size: 20px; }
.empty-rooms { padding: 72px 20px; border: 1px dashed #b9c7d8; border-radius: 22px; text-align: center; background: rgba(255,255,255,.6); }
.empty-icon { width: 74px; height: 74px; margin: 0 auto 18px; border-radius: 24px; background: #e8eef7; position: relative; }
.empty-icon span, .empty-icon i { position: absolute; left: 50%; top: 50%; border-radius: 50%; border: 2px solid var(--blue); transform: translate(-50%,-50%); }
.empty-icon span { width: 36px; height: 36px; }.empty-icon i { width: 14px; height: 14px; background: var(--cyan); border: 0; }
.empty-rooms h3 { margin: 0 0 8px; font-size: 23px; }.empty-rooms p { margin: 0 0 20px; color: #697b90; }

.community-preview { margin-top: 76px; }
.topic-row { border: 1px solid #dae3ed; border-radius: 22px; overflow: hidden; background: white; }
.topic-row article { min-height: 92px; display: grid; grid-template-columns: 54px 1fr 30px; align-items: center; gap: 18px; padding: 16px 24px; border-bottom: 1px solid #e4eaf1; }
.topic-row article:last-child { border-bottom: 0; }.topic-row article > span { color: var(--blue); font-weight: 900; font-size: 12px; }.topic-row div { display: grid; gap: 7px; }.topic-row b { font-size: 17px; }.topic-row small { color: #718298; }.topic-row i { color: var(--blue); font-style: normal; }

.room-view { min-height: calc(100vh - 82px); padding: 24px max(24px, calc((100vw - 1460px) / 2)) 118px; background: var(--ink); color: var(--text); }
.room-topbar { min-height: 82px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 18px; border: 1px solid var(--line); border-radius: 20px; padding: 14px 18px; background: var(--ink-2); }
.room-back { width: 48px; height: 48px; border-radius: 14px; border: 1px solid #29405d; color: var(--text); background: #102039; font-size: 22px; }
.room-title-block { min-width: 0; display: flex; align-items: center; gap: 15px; }.room-title-block h1 { margin: 0; font-size: 21px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }.room-title-block p { margin: 5px 0 0; color: var(--muted); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.live-badge { display: inline-flex; align-items: center; gap: 7px; border-radius: 999px; padding: 7px 10px; color: #ff94ac; background: rgba(255,93,143,.12); font-size: 10px; font-weight: 900; letter-spacing: .12em; }.live-badge i { width: 7px; height: 7px; border-radius: 50%; background: var(--pink); animation: pulse 1.5s infinite; }
@keyframes pulse { 50% { opacity: .35; transform: scale(.7); } }
.room-meta { display: flex; align-items: center; gap: 14px; color: var(--muted); font-size: 13px; font-weight: 700; }.share-button { border: 1px solid #36506f; border-radius: 13px; min-height: 44px; padding: 0 16px; color: var(--text); background: #102039; font-weight: 800; }
.room-layout { margin-top: 20px; display: grid; grid-template-columns: minmax(0, 1fr) 390px; gap: 20px; align-items: start; }
.stage-panel, .chat-panel { border: 1px solid var(--line); border-radius: 24px; background: var(--ink-2); }
.stage-panel { padding: 26px; min-height: 660px; }
.stage-head, .chat-head { display: flex; align-items: end; justify-content: space-between; gap: 18px; }.stage-head h2, .chat-head h2 { margin: 7px 0 0; font-size: 24px; }.stage-head .section-kicker, .chat-head .section-kicker { color: var(--cyan); }
.capacity-switch { display: flex; padding: 4px; border: 1px solid #2b405c; border-radius: 12px; background: #0a1626; }.capacity-switch button { width: 44px; height: 34px; border: 0; border-radius: 8px; background: transparent; color: var(--muted); font-size: 12px; font-weight: 900; }.capacity-switch button.is-active { color: var(--ink); background: var(--lime); }
.stage-grid { margin: 36px auto; display: grid; justify-content: center; gap: 28px 24px; }.stage-grid.capacity-8 { grid-template-columns: repeat(4, minmax(110px, 150px)); }.stage-grid.capacity-16, .stage-grid.capacity-32 { grid-template-columns: repeat(8, minmax(64px, 98px)); }.stage-grid.capacity-32 { gap: 19px 12px; }
.seat { min-width: 0; text-align: center; position: relative; }.seat-avatar { width: 82px; height: 82px; margin: 0 auto 10px; display: grid; place-items: center; border-radius: 29px; background: hsl(var(--hue) 82% 64%); color: var(--ink); border: 4px solid #102039; box-shadow: 0 0 0 2px #35516f; font-size: 30px; font-weight: 900; position: relative; }.seat.host .seat-avatar { box-shadow: 0 0 0 3px var(--gold), 0 0 0 9px rgba(255,201,74,.08); }.seat.speaking .seat-avatar { box-shadow: 0 0 0 3px var(--cyan), 0 0 0 10px rgba(34,211,238,.09); }.seat-avatar .role-mark { position: absolute; right: -6px; bottom: -5px; width: 25px; height: 25px; border-radius: 9px; display: grid; place-items: center; background: var(--ink); border: 2px solid #304965; font-size: 11px; color: var(--text); }.seat-avatar .crown { position: absolute; top: -21px; font-size: 17px; }.seat b { display: block; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 13px; }.seat small { display: block; margin-top: 4px; color: var(--cyan); font-size: 10px; font-weight: 800; }.empty-seat .seat-avatar { border: 2px dashed #43536a; background: transparent; box-shadow: none; color: #5d6c80; font-size: 19px; }.empty-seat b { color: #5d6c80; font-weight: 600; }
.capacity-16 .seat-avatar { width: 62px; height: 62px; border-radius: 22px; font-size: 23px; }.capacity-16 .seat small, .capacity-32 .seat small { display: none; }.capacity-32 .seat-avatar { width: 48px; height: 48px; border-radius: 17px; font-size: 17px; }.capacity-32 .seat b { font-size: 10px; }.capacity-32 .seat-avatar .role-mark { width: 19px; height: 19px; font-size: 8px; border-radius: 7px; }
.audience-strip { margin-top: auto; min-height: 82px; padding: 14px 16px; display: flex; align-items: center; gap: 15px; border: 1px solid #2b405c; border-radius: 17px; background: #0a1626; }.audience-faces { display: flex; }.audience-faces .mini-avatar { border-color: #0a1626; }.audience-strip > div:nth-child(2) { flex: 1; display: grid; gap: 4px; }.audience-strip b { font-size: 13px; }.audience-strip span { color: var(--muted); font-size: 11px; }.audience-strip > button { min-height: 40px; border: 1px solid #675423; border-radius: 12px; color: var(--gold); background: #241f15; padding: 0 14px; font-weight: 800; }
.chat-panel { height: 660px; display: flex; flex-direction: column; padding: 22px; }.chat-head { padding-bottom: 17px; border-bottom: 1px solid var(--line); }.mobile-close { display: none; width: 38px; height: 38px; border-radius: 12px; border: 1px solid var(--line); color: var(--text); background: transparent; font-size: 22px; }
.host-request { margin: 14px 0 0; padding: 13px; border-radius: 14px; background: #142845; border: 1px solid #34557b; }.host-request p { margin: 0 0 10px; font-size: 13px; }.host-request button { width: 100%; min-height: 38px; border: 0; border-radius: 10px; background: var(--lime); color: var(--ink); font-weight: 900; }
.chat-list { flex: 1; overflow-y: auto; padding: 16px 2px; scrollbar-color: #31455f transparent; }.system-message, .chat-message { display: flex; gap: 10px; margin-bottom: 15px; }.system-message > span { color: var(--lime); }.system-message p, .chat-message p { margin: 0; color: #aebed0; font-size: 13px; line-height: 1.55; }.chat-message .chat-avatar { width: 30px; height: 30px; flex: none; display: grid; place-items: center; border-radius: 10px; color: var(--ink); background: hsl(var(--hue) 80% 68%); font-size: 11px; font-weight: 900; }.chat-message div { min-width: 0; }.chat-message b { display: block; color: var(--cyan); font-size: 11px; margin-bottom: 4px; }
.chat-form { display: flex; gap: 8px; padding-top: 14px; border-top: 1px solid var(--line); }.chat-form input { min-width: 0; flex: 1; height: 46px; border-radius: 12px; border: 1px solid #2d435f; background: #091523; color: var(--text); padding: 0 14px; outline: 0; }.chat-form button { width: 46px; border: 0; border-radius: 12px; color: var(--ink); background: var(--cyan); font-size: 20px; font-weight: 900; }

.room-controls { position: fixed; z-index: 70; left: 50%; bottom: max(18px, env(safe-area-inset-bottom)); transform: translateX(-50%); min-width: 490px; padding: 10px 14px; display: flex; align-items: center; justify-content: center; gap: 10px; border: 1px solid #2a405c; border-radius: 22px; background: #0b1728; box-shadow: 0 18px 50px rgba(0,0,0,.35); }
.control-button { width: 78px; min-height: 64px; border: 0; border-radius: 15px; background: transparent; color: var(--muted); display: grid; place-items: center; gap: 3px; }.control-icon { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 11px; color: var(--text); background: #17283f; font-size: 17px; font-weight: 900; }.control-button small { font-size: 10px; font-weight: 800; }.control-button.accent .control-icon { color: var(--ink); background: linear-gradient(120deg, var(--lime), var(--cyan)); }.control-button.danger .control-icon { color: var(--danger); background: rgba(255,102,122,.1); }.mic-control:not(.is-muted) .control-icon { color: var(--ink); background: var(--lime); }
.reaction-control { position: relative; }.reaction-menu { position: absolute; bottom: 76px; left: 50%; transform: translateX(-50%); display: flex; gap: 5px; padding: 8px; border: 1px solid #354b66; border-radius: 16px; background: var(--ink-2); box-shadow: 0 18px 40px rgba(0,0,0,.35); }.reaction-menu button { width: 38px; height: 38px; border: 0; border-radius: 11px; background: #14253b; font-size: 19px; }
.reaction-layer { position: fixed; right: 36px; bottom: 120px; z-index: 65; pointer-events: none; }.floating-reaction { position: absolute; right: 0; bottom: 0; display: flex; align-items: center; gap: 8px; white-space: nowrap; padding: 9px 12px; border-radius: 999px; color: var(--text); background: #162944; border: 1px solid #355270; animation: floatUp 3.2s ease-out forwards; }.floating-reaction b { font-size: 20px; }.floating-reaction small { font-size: 10px; }
@keyframes floatUp { 0% { opacity: 0; transform: translateY(15px) scale(.9); } 18% { opacity: 1; } 100% { opacity: 0; transform: translateY(-210px) scale(1.03); } }
.remote-audio { position: fixed; width: 1px; height: 1px; overflow: hidden; opacity: .01; pointer-events: none; }

.app-dialog { width: min(520px, calc(100% - 28px)); max-height: calc(100vh - 28px); padding: 0; color: var(--ink); background: transparent; border: 0; overflow: visible; }.app-dialog::backdrop { background: rgba(3, 10, 20, .78); }.dialog-card { max-height: calc(100vh - 28px); overflow-y: auto; padding: 30px; background: white; border-radius: 26px; box-shadow: 0 30px 80px rgba(0,0,0,.28); position: relative; }.dialog-close { position: absolute; right: 20px; top: 18px; width: 40px; height: 40px; border-radius: 12px; border: 1px solid #d9e1eb; background: #f7f9fc; color: var(--ink); font-size: 22px; }.dialog-card h2 { margin: 9px 44px 6px 0; font-size: 30px; letter-spacing: -.035em; }.dialog-card > p { color: #697b90; line-height: 1.55; margin: 0 0 24px; }.dialog-card label:not(.switch-row) { display: grid; gap: 8px; margin-bottom: 15px; }.dialog-card label > span { color: #52657c; font-size: 12px; font-weight: 800; }.dialog-card input, .dialog-card textarea, .dialog-card select { width: 100%; border: 1px solid #d3dde8; border-radius: 13px; background: #f8fafc; color: var(--ink); padding: 13px 14px; outline: 0; resize: vertical; }.dialog-card .large-code { height: 72px; text-align: center; font-size: 28px; font-weight: 900; letter-spacing: .22em; text-transform: uppercase; }.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }.switch-row { margin: 6px 0 18px; padding: 14px 0; display: flex; align-items: center; justify-content: space-between; gap: 16px; border-top: 1px solid #e2e8ef; border-bottom: 1px solid #e2e8ef; }.switch-row > span { display: grid; gap: 5px; color: var(--ink); }.switch-row small { color: #718196; }.switch-row input { position: absolute; opacity: 0; pointer-events: none; }.switch-row i { width: 48px; height: 28px; padding: 3px; border-radius: 999px; background: #cbd5e1; transition: .2s; }.switch-row i::after { content: ""; display: block; width: 22px; height: 22px; border-radius: 50%; background: white; box-shadow: 0 2px 5px rgba(0,0,0,.2); transition: .2s; }.switch-row input:checked + i { background: var(--blue); }.switch-row input:checked + i::after { transform: translateX(20px); }.secure-note { display: block; margin-top: 12px; text-align: center; color: #74859a; }
.avatar-picker { display: flex; gap: 8px; margin: 6px 0 22px; }.avatar-picker button { width: 46px; height: 46px; border-radius: 13px; border: 1px solid #d5dee8; background: #f6f8fb; font-size: 20px; }.avatar-picker button.is-active { border-color: var(--blue); box-shadow: inset 0 0 0 2px var(--blue); }
.join-role { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 2px 0 18px; }.join-role button { min-height: 106px; border-radius: 16px; border: 1px solid #d5dee8; color: var(--ink); background: #f8fafc; display: grid; place-items: center; gap: 4px; }.join-role button > span { font-size: 23px; }.join-role button b { font-size: 15px; }.join-role button small { color: #718196; }.join-role button.is-active { border-color: var(--blue); background: #edf2ff; box-shadow: inset 0 0 0 1px var(--blue); }
.toast-stack { position: fixed; right: 20px; top: 96px; z-index: 120; width: min(360px, calc(100% - 40px)); display: grid; gap: 9px; }.toast { padding: 14px 16px; border-radius: 14px; color: var(--text); background: var(--ink-2); border: 1px solid #304862; box-shadow: 0 12px 30px rgba(0,0,0,.2); font-size: 13px; line-height: 1.45; animation: toastIn .25s ease-out; }.toast.is-error { border-color: #784052; }.toast.is-success { border-color: #4b6e2d; }.toast b { color: var(--lime); }
@keyframes toastIn { from { opacity: 0; transform: translateY(-8px); } }
.mobile-nav { display: none; }

@media (max-width: 1050px) {
  .desktop-nav { display: none; }
  .welcome-card { grid-template-columns: 1fr 1fr; gap: 28px; padding: 44px; }
  .welcome-card h1 { font-size: 58px; }
  .room-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .room-layout { grid-template-columns: 1fr 330px; }
  .stage-grid.capacity-8 { grid-template-columns: repeat(4, minmax(80px, 120px)); gap: 26px 12px; }
}

@media (max-width: 760px) {
  body { padding-bottom: 76px; }
  .app-header { height: 68px; padding: 0 16px; position: sticky; }
  .brand img { width: 40px; height: 40px; border-radius: 12px; }.brand b { font-size: 15px; }.brand small { font-size: 7px; }
  .connection-chip { width: 10px; height: 10px; padding: 0; border: 0; }.connection-chip span { display: none; }.connection-chip i { width: 9px; height: 9px; }
  .icon-button { width: 40px; height: 40px; }
  .home-view { min-height: calc(100vh - 68px); padding-bottom: 40px; }
  .home-wrap { width: 100%; }
  .welcome-card { min-height: 0; grid-template-columns: 1fr; gap: 28px; padding: 32px 20px 26px; border-radius: 0; }
  .welcome-card::before { background-size: 190px 100%, 46px 46px, 46px 46px; }
  .welcome-card h1 { margin: 16px 0 14px; font-size: clamp(44px, 13vw, 64px); line-height: .95; }
  .welcome-card p { font-size: 14px; line-height: 1.65; }
  .hero-actions { margin-top: 22px; }.primary-button, .secondary-button { min-height: 52px; padding: 0 16px; }.hero-actions .primary-button { flex: 1.15; }.hero-actions .secondary-button { flex: .85; }.hero-actions .button-icon { display: none; }
  .live-visual { min-height: 210px; border-radius: 21px; }.center-mic { width: 76px; height: 76px; }.signal-bars { height: 38px; }.signal-bars i { width: 5px; }.orbit-one { width: 150px; height: 150px; }.orbit-two { width: 260px; height: 190px; }.visual-person { width: 42px; height: 42px; border-radius: 14px; font-size: 12px; }.live-caption { left: 16px; bottom: 13px; font-size: 8px; }
  .quick-join { margin: 0; padding: 18px 16px 20px; border: 0; border-bottom: 1px solid #dce4ed; border-radius: 0; box-shadow: none; display: block; }.quick-join > div { display: none; }.quick-join form { width: 100%; }.quick-join form > button { padding: 0 16px; }
  .rooms-section, .community-preview { padding: 36px 16px 0; }.community-preview { margin-top: 30px; }
  .section-heading h2 { font-size: 29px; }.room-grid { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 12px; padding: 0 16px 15px 0; scrollbar-width: none; }.room-grid::-webkit-scrollbar { display: none; }.room-card { min-width: min(84vw, 360px); min-height: 288px; scroll-snap-align: start; }.empty-rooms { padding: 55px 20px; }
  .topic-row article { grid-template-columns: 36px 1fr 20px; gap: 8px; padding: 14px; }.topic-row b { font-size: 15px; }
  .mobile-nav { position: fixed; z-index: 80; left: 0; right: 0; bottom: 0; height: calc(68px + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom); display: grid; grid-template-columns: repeat(5, 1fr); align-items: center; color: #6d7d92; background: white; border-top: 1px solid #dce4ed; }.mobile-nav button { height: 100%; border: 0; background: transparent; color: inherit; display: grid; place-items: center; align-content: center; gap: 4px; }.mobile-nav span { font-size: 18px; }.mobile-nav small { font-size: 9px; font-weight: 700; }.mobile-nav .is-active { color: var(--blue); }.mobile-nav .mobile-create span { width: 46px; height: 46px; margin-top: -23px; border-radius: 16px; display: grid; place-items: center; color: var(--ink); background: linear-gradient(120deg, var(--lime), var(--cyan)); border: 4px solid white; font-size: 25px; box-shadow: 0 8px 18px rgba(34,211,238,.25); }

  .room-view { min-height: calc(100vh - 68px); padding: 10px 12px 104px; }.room-view + .mobile-nav, .room-view:not([hidden]) ~ .mobile-nav { display: none; }
  .room-topbar { min-height: 70px; padding: 10px; gap: 10px; border-radius: 16px; }.room-back { width: 42px; height: 42px; }.room-title-block { gap: 8px; }.room-title-block h1 { font-size: 16px; }.room-title-block p { font-size: 10px; max-width: 210px; }.room-title-block .live-badge { display: none; }.room-meta > span { display: none; }.share-button { min-height: 40px; padding: 0 11px; font-size: 11px; }
  .room-layout { margin-top: 10px; display: block; }.stage-panel { min-height: calc(100vh - 190px); padding: 19px 12px; border-radius: 18px; }.stage-head h2 { font-size: 20px; }.capacity-switch button { width: 35px; }
  .stage-grid { margin: 28px auto 22px; gap: 24px 8px; }.stage-grid.capacity-8 { grid-template-columns: repeat(4, minmax(64px, 1fr)); }.stage-grid.capacity-16, .stage-grid.capacity-32 { grid-template-columns: repeat(4, minmax(58px, 1fr)); }.seat-avatar { width: 62px; height: 62px; border-radius: 21px; font-size: 22px; }.seat b { font-size: 11px; }.seat small { font-size: 8px; }.capacity-16 .seat-avatar, .capacity-32 .seat-avatar { width: 50px; height: 50px; border-radius: 17px; }.capacity-32 .seat-avatar { width: 43px; height: 43px; }.capacity-16 .seat b, .capacity-32 .seat b { font-size: 9px; }
  .audience-strip { padding: 11px; gap: 10px; }.audience-faces .mini-avatar:nth-child(n+4) { display: none; }.audience-strip > button { display: none; }
  .chat-panel { position: fixed; z-index: 90; inset: auto 0 0 0; height: min(74vh, 650px); padding: 20px; border-radius: 24px 24px 0 0; transform: translateY(110%); transition: transform .25s ease; box-shadow: 0 -20px 60px rgba(0,0,0,.45); }.chat-panel.is-open { transform: translateY(0); }.mobile-close { display: block; }
  .room-controls { min-width: 0; width: calc(100% - 20px); bottom: max(8px, env(safe-area-inset-bottom)); padding: 7px; gap: 0; border-radius: 18px; }.control-button { flex: 1; width: auto; min-height: 58px; }.control-icon { width: 31px; height: 31px; }.reaction-menu { bottom: 68px; }
  .reaction-layer { right: 15px; bottom: 100px; }
  .dialog-card { padding: 26px 20px; border-radius: 22px; }.dialog-card h2 { font-size: 27px; }.field-row { grid-template-columns: 1fr 1fr; }.toast-stack { top: 80px; right: 12px; width: calc(100% - 24px); }
}

@media (max-width: 390px) {
  .hero-actions { flex-direction: column; }.hero-actions .primary-button, .hero-actions .secondary-button { width: 100%; }
  .stage-grid.capacity-8 { grid-template-columns: repeat(3, minmax(68px, 1fr)); }.stage-grid.capacity-16, .stage-grid.capacity-32 { grid-template-columns: repeat(4, minmax(54px, 1fr)); }
  .audience-strip > div:nth-child(2) span { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation: none !important; transition: none !important; }
}



/* Demo mode */
.demo-auth-pane { display: grid; gap: 16px; }
.demo-mode-notice { padding: 11px 13px; display: flex; align-items: center; gap: 11px; color: #183044; background: #efffd9; border: 1px solid #b8e86d; border-radius: 14px; }
.demo-mode-badge { flex: none; padding: 6px 8px; color: #07111f; background: var(--lime); border: 1px solid #8fc92b; border-radius: 8px; font-size: 9px; font-weight: 900; letter-spacing: .12em; }
.demo-mode-notice p { min-width: 0; margin: 0; display: grid; gap: 2px; line-height: 1.35; }
.demo-mode-notice p b { font-size: 12px; }
.demo-mode-notice p small { color: #526d48; font-size: 10px; }
.demo-auth-heading h2 { margin: 7px 0 5px; color: var(--ink); font-size: 31px; letter-spacing: -.04em; }
.demo-auth-heading p { margin: 0; color: #6a7d93; font-size: 13px; line-height: 1.55; }
.demo-account-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.demo-account-card { min-width: 0; min-height: 72px; padding: 10px; display: grid; grid-template-columns: 38px minmax(0, 1fr) 20px; align-items: center; gap: 9px; color: var(--ink); background: #f7f9fc; border: 1px solid #d5dfea; border-radius: 13px; text-align: left; transition: border-color .16s, background .16s, transform .16s; }
.demo-account-card:hover, .demo-account-card.is-selected { border-color: var(--blue); background: #eef3ff; transform: translateY(-1px); }
.demo-account-card:disabled { cursor: wait; opacity: .64; transform: none; }
.demo-account-number { width: 38px; height: 38px; display: grid; place-items: center; color: #07111f; background: linear-gradient(135deg, var(--lime), var(--cyan)); border-radius: 11px; font-size: 11px; font-weight: 900; }
.demo-account-copy { min-width: 0; display: grid; gap: 4px; }
.demo-account-copy b, .demo-account-copy small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.demo-account-copy b { font-size: 12px; }
.demo-account-copy small { color: var(--blue); font-size: 10px; font-weight: 800; }
.demo-account-card > i { color: #75869a; font-style: normal; }
.demo-password-card { padding: 11px 12px; display: flex; align-items: center; justify-content: space-between; gap: 12px; background: #07111f; border: 1px solid #20344e; border-radius: 13px; }
.demo-password-card > div { display: grid; grid-template-columns: auto auto; align-items: center; gap: 2px 9px; }
.demo-password-card span, .demo-password-card small { color: #9fb2c8; font-size: 9px; }
.demo-password-card b { color: var(--lime); font-size: 14px; letter-spacing: .04em; }
.demo-password-card small { grid-column: 1 / -1; }
.demo-password-card button { flex: none; min-height: 34px; padding: 0 10px; color: var(--text); background: #10223a; border: 1px solid #304862; border-radius: 9px; font-size: 10px; font-weight: 900; }
.demo-login-form { display: grid; gap: 10px; }
.app-demo-notice { min-height: 43px; padding: 7px max(24px, calc((100vw - 1400px) / 2)); position: sticky; top: 82px; z-index: 46; justify-content: center; border-width: 0 0 1px; border-radius: 0; }
.app-demo-notice p { display: flex; align-items: baseline; gap: 8px; }
@media (max-width: 760px) {
  .demo-auth-pane { gap: 13px; }
  .demo-mode-notice { padding: 9px 10px; align-items: flex-start; }
  .demo-auth-heading h2 { font-size: 28px; }
  .demo-account-card { min-height: 67px; grid-template-columns: 34px minmax(0, 1fr) 16px; gap: 7px; padding: 8px; }
  .demo-account-number { width: 34px; height: 34px; }
  .demo-account-copy b { font-size: 11px; }
  .app-demo-notice { min-height: 39px; top: 68px; padding: 6px 12px; align-items: center; }
  .app-demo-notice p { display: grid; gap: 0; }
  .app-demo-notice p small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
}
/* Authentication */
.auth-view { min-height: 100svh; display: grid; grid-template-columns: minmax(470px, 1.05fr) minmax(510px, .95fr); background: #f4f7fb; }
.auth-brand-panel { min-height: 100svh; padding: 48px clamp(46px, 6vw, 96px); color: var(--text); background: var(--ink); position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: space-between; }
.auth-brand-panel::before { content: ""; position: absolute; inset: 0; opacity: .34; background-image: radial-gradient(circle at 78% 14%, rgba(34,211,238,.26), transparent 27%), radial-gradient(circle at 12% 86%, rgba(45,91,255,.3), transparent 31%), linear-gradient(117deg, transparent 0 48%, rgba(180,255,58,.07) 48% 49%, transparent 49% 100%), repeating-linear-gradient(118deg, transparent 0 38px, rgba(68,101,139,.08) 39px, transparent 40px 78px); }
.auth-brand-panel::after { content: ""; position: absolute; width: 440px; height: 440px; right: -180px; bottom: -190px; border: 1px solid rgba(34,211,238,.22); border-radius: 50%; box-shadow: 0 0 0 58px rgba(45,91,255,.035), 0 0 0 116px rgba(180,255,58,.025); }
.auth-brand-panel > * { position: relative; z-index: 1; }
.auth-brand-top, .auth-mobile-brand { display: inline-flex; align-items: center; gap: 13px; }
.auth-brand-top img, .auth-mobile-brand img { width: 54px; height: 54px; border-radius: 16px; object-fit: cover; border: 1px solid #30445e; }
.auth-brand-top span, .auth-mobile-brand span { display: grid; gap: 6px; line-height: 1; }
.auth-brand-top b, .auth-mobile-brand b { letter-spacing: -.02em; font-size: 19px; }
.auth-brand-top small, .auth-mobile-brand small { color: var(--cyan); font-size: 9px; font-weight: 900; letter-spacing: .2em; }
.auth-pulse-copy { max-width: 680px; margin: clamp(50px, 9vh, 110px) 0; }
.auth-pulse-copy h1 { margin: 22px 0 22px; max-width: 700px; font-size: clamp(58px, 6.1vw, 92px); line-height: .93; letter-spacing: -.07em; }
.auth-pulse-copy h1 em { color: var(--lime); font-style: normal; }
.auth-pulse-copy p { max-width: 590px; margin: 0; color: #b6c6d9; font-size: 18px; line-height: 1.75; }
.auth-live-preview { min-height: 108px; padding: 18px 20px; border: 1px solid #2a415e; border-radius: 21px; background: #0b192a; display: grid; grid-template-columns: 116px 1fr auto; align-items: center; gap: 22px; }
.auth-wave { height: 54px; display: flex; align-items: center; justify-content: center; gap: 6px; border-right: 1px solid #29405d; }
.auth-wave i { width: 5px; height: 18px; border-radius: 999px; background: var(--cyan); animation: bars 1.25s ease-in-out infinite; }
.auth-wave i:nth-child(2), .auth-wave i:nth-child(6) { height: 32px; background: var(--blue); animation-delay: -.2s; }
.auth-wave i:nth-child(3), .auth-wave i:nth-child(5) { height: 45px; background: var(--lime); animation-delay: -.45s; }
.auth-wave i:nth-child(4) { height: 26px; background: var(--pink); animation-delay: -.7s; }
.auth-live-preview > div:nth-child(2) { display: grid; gap: 7px; }
.auth-live-preview b { color: var(--cyan); font-size: 11px; letter-spacing: .17em; }
.auth-live-preview div > span { color: #c4d1df; font-size: 13px; }
.auth-faces { display: flex; align-items: center; }
.auth-faces span { width: 38px; height: 38px; margin-left: -9px; display: grid; place-items: center; border-radius: 13px; color: var(--ink); background: var(--lime); border: 3px solid #0b192a; font-size: 15px; }
.auth-faces span:nth-child(2) { background: var(--cyan); }.auth-faces span:nth-child(3) { background: var(--pink); }
.auth-faces small { margin-left: 9px; color: var(--text); font-size: 11px; font-weight: 900; }

.auth-form-panel { min-height: 100svh; padding: 36px clamp(30px, 5vw, 82px); background: #f4f7fb; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.auth-mobile-brand { display: none; }
.auth-card { width: min(520px, 100%); padding: 38px 42px; color: var(--ink); background: var(--white); border: 1px solid #dce4ed; border-radius: 28px; box-shadow: 0 24px 70px rgba(18,42,72,.12); }
.auth-heading h2 { margin: 9px 0 7px; font-size: 34px; letter-spacing: -.045em; line-height: 1.15; }
.auth-heading p { margin: 0; color: #6a7d93; font-size: 14px; line-height: 1.6; }
.auth-mode-switch { margin: 27px 0 21px; padding: 5px; display: grid; grid-template-columns: 1fr 1fr; border: 1px solid #d8e1eb; border-radius: 14px; background: #f2f5f9; }
.auth-mode-switch button { min-height: 44px; border: 0; border-radius: 10px; color: #718298; background: transparent; font-weight: 900; }
.auth-mode-switch button.is-active { color: var(--text); background: var(--ink); box-shadow: 0 6px 15px rgba(7,17,31,.15); }
.login-method-tabs { display: flex; gap: 22px; margin: 4px 0 21px; border-bottom: 1px solid #e0e6ee; }
.login-method-tabs button { min-height: 41px; padding: 0 2px; border: 0; border-bottom: 3px solid transparent; color: #7a899c; background: transparent; font-size: 13px; font-weight: 900; }
.login-method-tabs button.is-active { color: var(--blue); border-bottom-color: var(--blue); }
.auth-form { display: grid; gap: 15px; }
.auth-field { display: grid; gap: 8px; }
.auth-field > span { color: #3c5067; font-size: 12px; font-weight: 900; }
.auth-field > small { color: #7b8c9f; font-size: 11px; line-height: 1.45; }
.auth-input { min-height: 53px; display: flex; align-items: center; gap: 10px; border: 1px solid #cfd9e5; border-radius: 13px; background: #f8fafc; transition: border-color .15s, box-shadow .15s; }
.auth-input:focus-within { border-color: var(--blue); box-shadow: 0 0 0 4px rgba(45,91,255,.09); background: white; }
.auth-input > i { width: 45px; align-self: stretch; display: grid; place-items: center; border-right: 1px solid #e0e6ed; color: var(--blue); font-style: normal; font-size: 12px; font-weight: 900; }
.auth-input input { min-width: 0; flex: 1; height: 51px; padding: 0 12px 0 2px; border: 0; outline: 0; color: var(--ink); background: transparent; font-size: 14px; }
.auth-input input::placeholder { color: #9aa8b9; }
.phone-input > i { color: #2a4769; font-size: 9px; letter-spacing: .08em; }
.password-toggle { align-self: stretch; padding: 0 14px; border: 0; color: var(--blue); background: transparent; font-size: 11px; font-weight: 900; }
.auth-submit { min-height: 55px; margin-top: 3px; padding: 0 18px; display: flex; align-items: center; justify-content: space-between; border: 0; border-radius: 14px; color: #061321; background: linear-gradient(105deg, var(--lime), var(--cyan)); box-shadow: 0 13px 28px rgba(34,211,238,.18); font-weight: 900; }
.auth-submit i { width: 29px; height: 29px; display: grid; place-items: center; border-radius: 10px; background: rgba(7,17,31,.1); font-style: normal; font-size: 17px; }
.auth-submit:disabled { cursor: wait; opacity: .72; }
.auth-submit.is-loading i { color: transparent; border: 2px solid rgba(7,17,31,.25); border-top-color: var(--ink); border-radius: 50%; animation: authSpin .7s linear infinite; }
@keyframes authSpin { to { transform: rotate(360deg); } }
.form-error { padding: 11px 13px; border: 1px solid #f3b8c3; border-radius: 11px; color: #a62242; background: #fff0f4; font-size: 12px; line-height: 1.5; }
.auth-back { justify-self: start; padding: 5px 0; border: 0; color: var(--blue); background: transparent; font-size: 12px; font-weight: 900; }
.otp-copy { margin: 2px 0 3px; text-align: center; }
.otp-copy b { font-size: 23px; letter-spacing: -.025em; }.otp-copy p { margin: 5px 0 0; color: #728398; font-size: 13px; }.otp-copy strong { color: var(--ink); }
.otp-boxes { margin: 5px 0 0; padding: 0; border: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; }
.otp-boxes input { min-width: 0; width: 100%; aspect-ratio: 1; max-height: 58px; border: 1px solid #cbd6e2; border-radius: 12px; outline: 0; color: var(--ink); background: #f7f9fc; text-align: center; font-size: 22px; font-weight: 900; }
.otp-boxes input:focus { border-color: var(--blue); box-shadow: 0 0 0 4px rgba(45,91,255,.09); background: white; }
.otp-resend { min-height: 27px; display: flex; justify-content: center; align-items: center; color: #7a8a9e; font-size: 11px; }
.otp-resend button { padding: 4px 8px; border: 0; color: var(--blue); background: transparent; font-size: 12px; font-weight: 900; }
.register-progress { margin: 4px 0 26px; display: grid; grid-template-columns: auto 1fr auto 1fr auto; align-items: start; }
.register-progress > span { width: 29px; height: 29px; display: grid; place-items: center; border: 2px solid #cbd5e1; border-radius: 10px; color: #8090a3; background: white; font-size: 11px; font-weight: 900; position: relative; }
.register-progress > span.is-active, .register-progress > span.is-done { color: var(--ink); border-color: var(--lime); background: var(--lime); }
.register-progress > span.is-done { color: white; border-color: var(--blue); background: var(--blue); }
.register-progress > span i { width: 75px; position: absolute; top: 35px; left: 50%; transform: translateX(-50%); color: #8998aa; font-style: normal; text-align: center; font-size: 9px; white-space: nowrap; }
.register-progress > span.is-active i { color: var(--ink); font-weight: 900; }
.register-progress > b { height: 2px; margin: 14px 8px 0; background: #dbe2eb; }
.register-copy { margin: 12px 0 3px; }.register-copy h3 { margin: 0 0 4px; font-size: 23px; letter-spacing: -.025em; }.register-copy p { margin: 0; color: #74859a; font-size: 12px; line-height: 1.5; }
.consent-row { display: flex; align-items: flex-start; gap: 10px; color: #64758a; font-size: 11px; line-height: 1.55; }
.consent-row input { width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--blue); flex: none; }.consent-row a { color: var(--blue); font-weight: 800; }
.password-meter { display: grid; grid-template-columns: repeat(4, 1fr); gap: 5px; margin-top: -7px; }
.password-meter i { height: 4px; border-radius: 4px; background: #dde4ec; }.password-meter i.is-on { background: var(--blue); }.password-meter i.is-strong { background: #59c117; }
.password-meter span { grid-column: 1 / -1; margin-top: 2px; color: #8493a5; font-size: 10px; }
.auth-success { padding: 28px 8px 12px; text-align: center; }.success-mark { width: 76px; height: 76px; margin: 0 auto 21px; display: grid; place-items: center; border: 2px solid var(--lime); border-radius: 25px; color: var(--ink); background: var(--lime); box-shadow: 0 0 0 11px rgba(180,255,58,.12); font-size: 34px; font-weight: 900; }.auth-success h3 { margin: 8px 0 7px; font-size: 29px; }.auth-success p { margin: 0 auto; max-width: 340px; color: #708197; line-height: 1.6; font-size: 13px; }.success-loader { width: 120px; height: 4px; margin: 25px auto 0; overflow: hidden; border-radius: 4px; background: #e4e9ef; }.success-loader i { display: block; width: 45%; height: 100%; border-radius: inherit; background: var(--blue); animation: successLoad 1.25s ease-in-out infinite alternate; }
@keyframes successLoad { to { transform: translateX(125%); } }
.auth-security { margin: 18px 0 0; color: #74859a; text-align: center; font-size: 10px; }
.session-loading { position: fixed; z-index: 200; inset: 0; display: grid; place-content: center; justify-items: center; gap: 16px; color: var(--text); background: var(--ink); }
.session-loading p { margin: 0; color: #aebfd2; font-size: 12px; font-weight: 800; letter-spacing: .05em; }
.session-loader { width: 74px; height: 74px; position: relative; }.session-loader img { width: 62px; height: 62px; margin: 6px; object-fit: cover; border-radius: 20px; }.session-loader i { position: absolute; inset: 0; border: 2px solid transparent; border-top-color: var(--cyan); border-right-color: var(--lime); border-radius: 24px; animation: authSpin .9s linear infinite; }

.account-button { min-height: 48px; max-width: 230px; padding: 5px 12px 5px 6px; display: flex; align-items: center; gap: 10px; border: 1px solid var(--line); border-radius: 15px; color: var(--text); background: var(--ink-2); text-align: left; }
.account-avatar { width: 36px; height: 36px; flex: none; display: grid; place-items: center; border-radius: 11px; color: var(--ink); background: linear-gradient(135deg, var(--lime), var(--cyan)); font-weight: 900; }
.account-copy { min-width: 0; flex: 1; display: grid; gap: 3px; }.account-copy b, .account-copy small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }.account-copy b { font-size: 11px; }.account-copy small { color: var(--cyan); font-size: 9px; }.account-button > i { color: #7890aa; font-style: normal; }
.account-summary { margin: 17px 0 20px; padding: 15px; display: flex; align-items: center; gap: 13px; border: 1px solid #d9e2ec; border-radius: 17px; background: #f7f9fc; }.account-summary > span { width: 54px; height: 54px; flex: none; display: grid; place-items: center; border-radius: 17px; color: var(--ink); background: linear-gradient(135deg, var(--lime), var(--cyan)); font-size: 21px; font-weight: 900; }.account-summary > div { min-width: 0; flex: 1; display: grid; gap: 3px; }.account-summary b { font-size: 15px; }.account-summary small { color: var(--blue); font-weight: 800; }.account-summary em { color: #73849a; font-style: normal; font-size: 10px; }.verified-mark { color: #387515; font-style: normal; font-size: 9px; font-weight: 900; white-space: nowrap; }
.logout-button { width: 100%; min-height: 47px; margin-top: 12px; padding: 0 14px; display: flex; align-items: center; justify-content: space-between; border: 1px solid #f0c1ca; border-radius: 13px; color: #b22948; background: #fff4f6; font-weight: 900; }.logout-button i { font-style: normal; }

@media (max-width: 980px) {
  .auth-view { grid-template-columns: minmax(360px, .78fr) minmax(500px, 1fr); }
  .auth-brand-panel { padding: 38px; }
  .auth-pulse-copy h1 { font-size: 57px; }
  .auth-live-preview { grid-template-columns: 80px 1fr; }.auth-faces { display: none; }
  .auth-form-panel { padding: 32px; }
}
@media (max-width: 760px) {
  body:has(.auth-view:not([hidden])) { padding-bottom: 0; }
  .auth-view { min-height: 100svh; display: block; background: var(--white); }
  .auth-brand-panel { display: none; }
  .auth-form-panel { min-height: 100svh; padding: max(18px, env(safe-area-inset-top)) 18px max(24px, env(safe-area-inset-bottom)); justify-content: flex-start; background: var(--white); }
  .auth-mobile-brand { width: 100%; display: inline-flex; padding: 4px 0 22px; }.auth-mobile-brand img { width: 46px; height: 46px; border-radius: 14px; }.auth-mobile-brand b { font-size: 16px; }
  .auth-card { padding: 0; border: 0; border-radius: 0; box-shadow: none; }
  .auth-heading h2 { font-size: 31px; }.auth-heading p { max-width: 380px; }
  .auth-mode-switch { margin-top: 23px; }
  .auth-security { margin-top: 22px; }
  .account-copy { display: none; }.account-button { width: 40px; height: 40px; min-height: 40px; padding: 0; border: 0; background: transparent; }.account-avatar { width: 40px; height: 40px; border-radius: 12px; }.account-button > i { display: none; }
}
@media (max-width: 390px) {
  .auth-form-panel { padding-left: 15px; padding-right: 15px; }
  .otp-boxes { gap: 5px; }.otp-boxes input { border-radius: 10px; font-size: 19px; }
  .auth-heading h2 { font-size: 28px; }
  .account-summary { align-items: flex-start; }.verified-mark { display: none; }
}

