:root{
  --bg:#0f1418;
  --bg-2:#121a20;
  --panel:#121a20;
  --muted:#8aa0b2;
  --text:#dfe7ee;
  --accent:#2ecc71;
  --accent-2:#1f9e52;
  --card:#121a20;
  --border:#1e2a33;
  --header-h:72px;
  --footer-h:48px;
  --radius:10px;
  --shadow:0 6px 24px rgba(0,0,0,.3);
}
*{box-sizing:border-box}
html,body{height:100%}
body.ook-body{margin:0;background:var(--bg);color:var(--text);font-family:Inter,system-ui,-apple-system,Segoe UI,Roboto,Ubuntu,Cantarell,'Helvetica Neue',Arial,sans-serif;}

.container{max-width:1100px;margin:0 auto;padding:0 20px}

.site-header{
  position:fixed; top:0; left:0; right:0; height:var(--header-h);
  background:#0d1216; border-bottom:1px solid var(--border);
  z-index:900; display:flex; align-items:center;
}
.site-header .container{display:flex; align-items:center; justify-content:space-between;}
.brand{display:flex; align-items:center; gap:12px; text-decoration:none}
.logo{height:44px}

.site-nav{display:flex; gap:10px}
.btn{
  background:transparent; border:1px solid #23313b; color:var(--text);
  padding:8px 14px; border-radius:10px; cursor:pointer; text-decoration:none; display:inline-flex; align-items:center; gap:6px;
}
.btn:hover{border-color:#2c3d49}
.btn-primary{background:var(--accent); color:#081015; border-color:var(--accent)}
.btn-primary:hover{background:var(--accent-2); border-color:var(--accent-2)}
.btn.close{font-size:22px; line-height:1; padding:6px 10px}

.site-footer{
  position:fixed; bottom:0; left:0; right:0; height:var(--footer-h);
  background:#0d1216; border-top:1px solid var(--border); display:flex; align-items:center; z-index:900;
}
.site-footer .container{display:flex; align-items:center; justify-content:flex-start; color:var(--muted); font-size:14px}

.site-main{min-height:calc(100dvh - var(--header-h) - var(--footer-h)); padding-top:calc(var(--header-h) + 16px); padding-bottom:calc(var(--footer-h) + 16px);}

.h1{font-size:36px}.h2{font-size:28px}.h3{font-size:22px}.h4{font-size:18px}
.muted{color:var(--muted)}

.card{background:var(--card); border:1px solid var(--border); border-radius:var(--radius); padding:18px; box-shadow:var(--shadow)}
.card + .card{margin-top:16px}
.card-head{display:flex; align-items:center; justify-content:space-between; margin-bottom:10px}
.badge{background:#0c151b; color:var(--muted); border:1px solid var(--border); padding:4px 10px; border-radius:999px; font-size:12px}

.hero{margin-top:6px; margin-bottom:18px}
.hero h1{font-size:40px; margin:0 0 10px}
.hero p{color:var(--muted); margin:0}

.grid-2{display:grid; grid-template-columns:1.2fr 1fr; gap:18px}
@media (max-width: 900px){ .grid-2{grid-template-columns:1fr} }

.list-rooms .room{display:flex; align-items:center; justify-content:space-between; padding:12px 12px; background:#0f161b; border:1px solid var(--border); border-radius:10px; margin-bottom:10px; cursor:pointer}
.list-rooms .room:hover{border-color:#2c3d49}
.list-rooms .room .name{font-weight:600}
.list-rooms .room .cap{color:var(--muted); font-size:13px}

.tiles{display:grid; grid-template-columns:repeat(4,1fr); gap:18px; margin-top:28px}
@media (max-width: 900px){ .tiles{grid-template-columns:repeat(2,1fr)} }
@media (max-width: 520px){ .tiles{grid-template-columns:1fr} }
.tile{background:var(--card); border:1px solid var(--border); border-radius:12px; padding:18px; text-align:left; box-shadow:var(--shadow)}
.tile .emoji{font-size:28px; margin-bottom:8px}

.cta{margin:24px 0 0}

.chat-layout{display:grid; grid-template-columns:300px 1fr; gap:18px}
@media (max-width: 900px){ .chat-layout{grid-template-columns:1fr} }
.rooms-pane .list-rooms{max-height:calc(100dvh - 240px); overflow:auto; padding-right:4px}

.placeholder{min-height:180px; display:flex; align-items:center; justify-content:center; border-style:dashed}

.input{flex:1; background:#0f161b; border:1px solid var(--border); color:var(--text); padding:10px 12px; border-radius:10px}
.input:focus{outline:none; border-color:#2c3d49}

.ook-backdrop{position:fixed; inset:0; background:rgba(0,0,0,.6); z-index: 9990;}
.ook-modal{position:fixed; top:50%; left:50%; transform:translate(-50%,-50%); background:#0f1418; border:1px solid var(--border); border-radius:12px; width:min(92vw,720px); box-shadow:var(--shadow); z-index: 10000;}
.ook-modal.large{width:min(92vw,900px)}
.ook-modal .modal-head{display:flex; align-items:center; justify-content:space-between; padding:14px 16px; border-bottom:1px solid var(--border)}
.ook-modal .modal-body{padding:16px; max-height:60vh; overflow:auto}
.ook-modal .modal-foot{display:flex; gap:10px; align-items:center; justify-content:flex-end; padding:12px 16px; border-top:1px solid var(--border)}
.chat-window{min-height:300px}
