:root{color-scheme:dark;--bg:#0e1019;--surface:#171a27;--surface2:#1d2130;--surface3:#262b3b;--stroke:#303449;--text:#f0f1f8;--muted:#9197ac;--primary:#7567f8;--primary2:#a195ff;--green:#4bd9a3;--red:#f16c7b;--radius:17px;font-family:Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI",Arial,sans-serif;font-synthesis:none}
*{box-sizing:border-box}
html{min-height:100%;background:var(--bg)}
body{margin:0;color:var(--text);min-height:100vh;line-height:1.45}
a{color:inherit;text-decoration:none}
button,input{font:inherit}
button{cursor:pointer}
button:disabled{opacity:.4;cursor:not-allowed}
h1,h2,h3,p{margin-top:0}
h1,h2,h3{letter-spacing:-.03em}
h1{font-size:clamp(1.9rem,3vw,2.7rem);line-height:1.13}
h2{font-size:1.2rem}
p{color:var(--muted)}
.container{max-width:1220px;margin:auto;padding:45px 28px 70px}
.eyebrow{font-size:.7rem;color:var(--primary2);font-weight:800;letter-spacing:.14em;margin-bottom:12px}
.nav{height:78px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--stroke);padding:0 max(28px,calc((100% - 1164px)/2));gap:16px;background:#121521}
.brand{display:flex;align-items:center;gap:10px;font-size:1.32rem;font-weight:850;letter-spacing:-.05em}
.brand-symbol{background:linear-gradient(145deg,#a99aff,#5d52e8);color:white;border-radius:10px;font-size:1.3rem;width:38px;height:38px;display:grid;place-items:center}
.brand-accent,.mobile-logo span{color:var(--primary2)}
.alpha{font-size:.55rem;border:1px solid #6459b3;border-radius:4px;color:#a7a1ec;padding:3px 5px;margin-left:2px;letter-spacing:.08em}
.nav-links{display:flex;align-items:center;gap:26px;color:#c9cce0;font-size:.88rem}
.nav-links a:hover{color:white}
.nav-links form{margin:0}
.nav-user{background:var(--surface2);padding:10px 14px;border-radius:9px}
.nav-user:first-letter{color:var(--green)}
.text-button{border:0;background:none;color:var(--muted);padding:8px}
.text-button:hover{color:white}
.site-footer{color:#6f768e;text-align:center;font-size:.76rem;padding:26px;border-top:1px solid var(--stroke)}
.site-footer span{padding:0 7px}
.btn{display:inline-flex;justify-content:center;align-items:center;gap:10px;padding:12px 18px;border-radius:10px;font-weight:740;font-size:.85rem;white-space:nowrap;border:1px solid transparent;transition:transform .14s ease,background .14s ease}
.btn:hover:not(:disabled){transform:translateY(-1px)}
.btn-primary{background:var(--primary);color:white}
.btn-primary:hover{background:#897fff}
.btn-secondary{background:#292e41;border-color:#3b4058;color:#e6e6ff}
.btn-outline{border-color:#4a467c;color:#cbc5ff;background:rgba(115,101,240,.1)}
.btn-danger{background:#592735;border-color:#8b4253;color:#ffb7c3}
.btn-full{width:100%;justify-content:space-between;padding:14px 18px}
.alert{border:1px solid #a44a5e;background:#3c202b;color:#ffc6ce;padding:12px 14px;border-radius:10px;font-size:.87rem;margin:16px 0}
.auth-layout{min-height:calc(100vh - 70px);display:grid;grid-template-columns:1.05fr 1fr}
.auth-illustration{background:radial-gradient(circle at 25% 22%,#483b8f 0,transparent 35%),linear-gradient(135deg,#1d1b46,#111626 65%);border-right:1px solid #302c55;display:flex;flex-direction:column;align-items:flex-start;justify-content:center;padding:12%;position:relative;overflow:hidden}
.auth-illustration:after{content:'▣';position:absolute;font-size:40rem;line-height:1;right:-12%;bottom:-28%;color:rgba(166,151,255,.04);transform:rotate(-15deg);pointer-events:none}
.hero-badge{display:flex;align-items:center;gap:10px;border:1px solid #545082;border-radius:100px;background:#262449;padding:10px 17px;font-weight:800;color:#b2a8ff;letter-spacing:.1em;font-size:.65rem;z-index:1}
.live-dot{display:inline-block;background:var(--green);border-radius:50%;width:8px;height:8px;box-shadow:0 0 12px #4bd9a377;flex-shrink:0}
.hero-icon{display:grid;place-items:center;width:94px;height:94px;border-radius:23px;background:linear-gradient(135deg,#a99aff,#6654ed);box-shadow:0 18px 80px #6654ed55;font-size:3.4rem;margin-top:65px;margin-bottom:33px}
.auth-illustration h1{font-size:clamp(2.6rem,4vw,4.5rem);line-height:1.08;max-width:620px;z-index:1}
.auth-illustration h1 em{font-style:normal;background:linear-gradient(110deg,#c1b8ff,#8d86ff);-webkit-background-clip:text;background-clip:text;color:transparent}
.auth-illustration p{max-width:475px;line-height:1.8;color:#b6b6ce;font-size:1rem;z-index:1}
.hero-features{display:flex;flex-wrap:wrap;gap:9px;z-index:1;margin-top:30px}
.hero-features span{padding:9px 12px;border:1px solid #464362;border-radius:8px;color:#aaa9cd;font-size:.74rem}
.auth-form-wrap{display:grid;place-items:center;padding:55px 25px}
.auth-card{width:100%;max-width:430px}
.auth-card h2{font-size:2.05rem;margin-bottom:7px}
.auth-card>p{font-size:.9rem}
.form-stack{display:grid;gap:20px;margin-top:33px}
.form-stack label{display:grid;gap:9px;font-size:.82rem;font-weight:650}
.form-stack input,.inline-form input{width:100%;border:1px solid #393d51;background:#202433;color:#f3f3fc;padding:13px 15px;outline:none;border-radius:10px;min-width:0;transition:border-color .2s}
.form-stack input:focus,.inline-form input:focus{border-color:#8e85ff;box-shadow:0 0 0 3px #7567f822}
.form-stack input::placeholder,.inline-form input::placeholder{color:#72798f}
.auth-bottom{text-align:center;margin:29px 0 18px}
.auth-bottom a{color:var(--primary2);font-weight:750}
.auth-card small{font-size:.69rem;color:#666b83}
.mobile-logo{display:none}
.page-heading{display:flex;justify-content:space-between;align-items:center;gap:15px;margin-bottom:32px}
.page-heading h1{margin-bottom:9px}
.page-heading p{font-size:.94rem;margin:0}
.muted-count{background:#2f304f;border:1px solid #4d4579;border-radius:9px;padding:3px 11px;font-size:1rem;color:#a89fff;vertical-align:middle}
.online-chip{border:1px solid #2c514b;background:#18332e;color:#9be8d1;padding:10px 13px;border-radius:30px;font-size:.76rem;display:flex;align-items:center;gap:10px}
.action-grid{display:grid;grid-template-columns:1fr 1fr;gap:19px}
.feature-card,.room-card,.empty-state,.room-settings{border:1px solid var(--stroke);background:var(--surface);border-radius:var(--radius);padding:25px}
.feature-icon{width:44px;height:44px;background:#373064;color:#b9afff;border-radius:12px;display:grid;place-items:center;font-size:1.8rem;font-weight:500;margin-bottom:19px}
.feature-icon.secondary{color:#a5d5ff;background:#293c54}
.feature-card h2{margin-bottom:8px}
.feature-card p{font-size:.84rem;min-height:40px}
.inline-form{display:flex;gap:10px;margin-top:20px}
.section-heading{display:flex;justify-content:space-between;align-items:center;margin-top:50px;margin-bottom:20px}
.section-heading h2{margin:0;font-size:1.15rem}
.section-heading span{color:var(--muted);font-size:.8rem}
.room-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}
.room-card{display:flex;flex-direction:column;gap:12px;min-height:238px}
.room-avatar{width:42px;height:42px;border-radius:12px;display:grid;place-items:center;background:#30305d;color:#bdb3ff;font-size:1.5rem}
.room-card h3{margin:0 0 5px;overflow-wrap:anywhere}
.room-card p{margin:0 0 14px;font-size:.82rem}
.room-code{color:#868ca2;font-size:.8rem}
.room-code strong{color:#c3bdff;letter-spacing:.1em}
.room-card-bottom{display:flex;justify-content:space-between;align-items:center;gap:8px;margin-top:auto}
.room-tag{font-size:.72rem;color:#8e95af}
.empty-state{padding:65px;text-align:center}
.empty-symbol{font-size:3rem;color:var(--primary2);margin-bottom:12px}
.empty-state h3{margin-bottom:6px}
.invite-card{max-width:560px;margin:75px auto;background:var(--surface);border:1px solid var(--stroke);border-radius:18px;padding:40px}
.invite-card p{line-height:1.7}
.invite-card form{margin:24px 0}
.invite-card>a{color:var(--primary2);font-size:.85rem}
.room-page{max-width:1440px;padding-top:32px}
.room-page-top{display:flex;justify-content:space-between;align-items:center;gap:15px;margin-bottom:23px}
.back-link{color:var(--muted);font-size:.8rem}
.back-link:hover{color:white}
.room-heading{display:flex;align-items:center;gap:12px;margin-top:12px}
.room-heading h1{margin:0;font-size:1.8rem}
.room-live{border:1px solid #493e91;background:#30265f;color:#c5b8ff;border-radius:5px;font-size:.6rem;padding:4px 8px;font-weight:750}
.room-page-top p{font-size:.8rem;margin:6px 0 0}
.room-page-top p strong{color:#c1b7ff;letter-spacing:.08em}
.room-page-top p span{padding:0 9px}
.room-top-actions{display:flex;align-items:center;gap:14px}
.member-count{color:var(--muted);font-size:.78rem}
.call-notice{background:#211e37;border:1px solid #413b72;color:#c3bdfa;border-radius:10px;padding:13px 16px;font-size:.81rem;margin-bottom:18px}
.call-stage{padding:20px;border-radius:18px;border:1px solid var(--stroke);background:#131621;min-height:400px}
.participant-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,360px),1fr));gap:15px}
.participant-card{position:relative;aspect-ratio:16/10;background:radial-gradient(circle at top,#25283c,#181c29 65%);border:1px solid #31364b;border-radius:14px;overflow:hidden;min-height:215px}
.participant-card video{position:absolute;inset:0;width:100%;height:calc(100% - 38px);object-fit:contain;display:none;background:#090c16}
.participant-card video.visible{display:block}
.participant-card video.screen-visible{width:70%;left:30%}
.participant-card video.cam-small{position:absolute;display:block!important;width:28%;height:33%;left:1%;top:3%;z-index:2;border:2px solid #655ad4;border-radius:10px;object-fit:cover}
.video-placeholder{position:absolute;inset:0 0 38px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:13px;font-size:.78rem;color:var(--muted)}
.tile-avatar{height:62px;width:62px;border-radius:50%;display:grid;place-items:center;background:#39335d;border:2px solid #625a91;color:#d6ceff;font-size:1.05rem;font-weight:800}
.tile-footer{position:absolute;bottom:0;left:0;right:0;height:38px;background:#1a1e2d;display:flex;align-items:center;justify-content:space-between;padding:0 13px;color:#cbd0e3;font-size:.77rem}
.tile-footer span:first-child{display:inline-flex;gap:9px;align-items:center}
.tile-dot{width:7px;height:7px;border-radius:100%;background:var(--green)}
.tile-footer span:last-child{color:#9a9fb4}
.call-toolbar{border:1px solid var(--stroke);border-radius:14px;padding:15px;display:flex;gap:10px;justify-content:center;flex-wrap:wrap;background:var(--surface);margin-top:15px}
.tool-btn{border:1px solid #363a53;border-radius:9px;background:#272a3d;color:#e6e6f1;padding:11px 15px;font-weight:650;font-size:.78rem}
.tool-btn.on{border-color:#6259aa;color:#d4ccff;background:#383266}
.call-help{color:#767e97;text-align:center;font-size:.75rem;margin:20px 0}
.room-settings{margin-top:34px;font-size:.84rem}
.room-settings summary{cursor:pointer;font-weight:750}
.room-settings p{margin-top:15px}
.error-page{min-height:65vh;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:20px;text-align:center}
.error-num{color:var(--primary2);font-size:5rem;font-weight:850}
.error-page p{margin-bottom:25px}
@media(max-width:1000px){.room-grid{grid-template-columns:repeat(2,1fr)}
.auth-illustration{padding:8%}
.hero-icon{margin-top:30px}
.auth-illustration h1{font-size:2.8rem}
}
@media(max-width:750px){.auth-layout{display:block}
.auth-illustration{display:none}
.auth-form-wrap{min-height:calc(100vh - 70px)}
.mobile-logo{display:block;font-size:1.45rem;font-weight:850;margin-bottom:45px}
.nav{padding:0 18px}
.nav-links{gap:13px}
.nav-links>a,.nav-user{display:none}
.container{padding:28px 17px 50px}
.action-grid,.room-grid{grid-template-columns:1fr}
.page-heading,.room-page-top{align-items:flex-start;flex-direction:column}
.page-heading p{line-height:1.55}
.room-top-actions{flex-wrap:wrap}
.call-stage{padding:10px}
.room-page-top{margin-bottom:18px}
.participant-card{min-height:200px}
.room-heading h1{font-size:1.45rem}
}
@media(max-width:420px){.inline-form{flex-direction:column}
.feature-card{padding:20px}
.room-card-bottom{flex-wrap:wrap}
.room-top-actions{gap:8px}
.call-toolbar .btn,.tool-btn{flex:1 1 45%;font-size:.74rem}
.invite-card{padding:23px}
.online-chip{font-size:.7rem}
}

