/* ==========================================================
   CHAT — ΣΕΛΙΔΑ ΥΠΟΔΟΧΗΣ (/chat?welcome=1, Chat 2.19.0)
   Φορτώνεται ΜΕΤΑ το auth.css + auth-pro.css (κάρτα / καρτέλες / πεδία της σύνδεσης) και φέρνει τα χρώματα του chat (σκούρο, κυανό-μοβ).
   Πάνω: εικόνα σε όλη την οθόνη, λογότυπο πάνω αριστερά, τίτλος αριστερά, γυάλινη κάρτα εισόδου δεξιά· κάτω τα δωμάτια.
   ========================================================== */
body.auth-pro.theme-dark.cw-body {
  --a-bg: #050510; --a-surface: #0f0f18; --a-soft: rgba(255, 255, 255, .06); --a-input: rgba(5, 5, 14, .7);
  --a-border: rgba(255, 255, 255, .12); --a-text: #eceff7; --a-muted: #9aa3bd;
  --a-accent: #00c8d6; --a-accent-hover: #00aebb; --a-ring: rgba(0, 242, 255, .18);
  background: var(--a-bg); color: var(--a-text);
}
body.cw-body .submit-btn { color: #04121a; background: linear-gradient(90deg, #00d6e4, #4facfe 55%, #bd00ff); }
body.cw-body .submit-btn:hover, body.cw-body .submit-btn:focus-visible { filter: brightness(1.1); }

/* ---------- σκηνή: εικόνα σε όλο το πλάτος ---------- */
.cw-stage { position: relative; min-height: 100vh; min-height: 100svh; overflow: hidden; display: flex; flex-direction: column; background: #07071a; }
.cw-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.cw-stage::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(5, 5, 16, .9) 0%, rgba(5, 5, 16, .4) 55%, rgba(5, 5, 16, .55) 100%), linear-gradient(0deg, rgba(5, 5, 16, .9) 0%, rgba(5, 5, 16, 0) 38%); pointer-events: none; }
.cw-top, .cw-stage-in { position: relative; z-index: 1; }
.cw-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px clamp(16px, 4vw, 48px); }
.cw-logo img { display: block; height: 46px; width: auto; max-width: 56vw; object-fit: contain; }
.cw-top-r { display: flex; align-items: center; gap: 12px; }
.cw-top-r .flag-icon { width: 26px; height: auto; display: block; border-radius: 2px; opacity: .6; position: static; }
.cw-top-r .flag-icon.active { opacity: 1; }

.cw-stage-in { flex: 1; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(300px, 400px); gap: 32px; align-items: center; padding: 8px clamp(16px, 4vw, 48px) 56px; }
.cw-copy { align-self: end; padding-bottom: 8px; }
.cw-online { display: inline-flex; align-items: center; gap: 7px; padding: 7px 14px; border-radius: 999px; background: rgba(0, 255, 136, .1); border: 1px solid rgba(0, 255, 136, .35); color: #7dffc2; font-size: 14px; font-weight: 600; white-space: nowrap; }
.cw-online i { font-size: 8px; color: #00ff88; animation: cwPulse 1.8s ease-in-out infinite; }
.cw-online b { font-weight: 800; color: #fff; margin-left: 2px; }
@keyframes cwPulse { 0%, 100% { opacity: 1; } 50% { opacity: .3; } }
.cw-copy h1 { margin: 18px 0 12px; font-size: clamp(38px, 6vw, 76px); line-height: 1.04; font-weight: 800; letter-spacing: -.025em; color: #fff; }
.cw-h1a, .cw-h1b { display: block; }
.cw-h1b { background: linear-gradient(90deg, #8f7bff, #4facfe 55%, #7dffc2); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; padding-bottom: .06em; }
.cw-copy p { margin: 0; max-width: 560px; font-size: clamp(15px, 1.6vw, 18px); line-height: 1.5; color: #c9d0e6; }

/* ---------- γυάλινη κάρτα εισόδου (ίδια ροή με το /login) ---------- */
.cw-login { min-width: 0; }
body.cw-body .cw-login .card { width: auto; max-width: none; margin: 0; padding: 20px 20px 16px; background: rgba(14, 14, 26, .66); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); border: 1px solid rgba(255, 255, 255, .16); border-radius: 20px; box-shadow: 0 20px 60px rgba(0, 0, 0, .5); box-sizing: border-box; }
.cw-card-h { display: flex; align-items: center; gap: 10px; margin: 0 0 16px; font-size: 17px; font-weight: 700; color: #fff; }
.cw-card-h i { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 9px; background: rgba(79, 172, 254, .2); color: #8fd0ff; font-size: 14px; }
.cw-picked { margin: 0 0 14px; padding: 9px 12px; border-radius: 8px; background: rgba(0, 242, 255, .08); border: 1px solid rgba(0, 242, 255, .28); color: #8ff6ff; font-size: 14px; }
.cw-age-note { margin: 14px 0 0; text-align: center; font-size: 13px; color: #ffcb52; }
.cw-go { display: flex; align-items: center; justify-content: center; text-decoration: none; }
body.cw-body .cw-login .tabs { margin-bottom: 16px; }
body.cw-body .cw-login .footer-link { margin-top: 14px; padding-top: 12px; }

/* ---------- δωμάτια ---------- */
.cw-main { max-width: 1180px; margin: 0 auto; padding: 28px 18px 48px; }
.cw-rooms h2 { margin: 0 0 2px; font-size: 24px; color: #fff; }
.cw-rooms-hint { margin: 0 0 16px; color: var(--a-muted); font-size: 14px; }
.cw-empty { color: var(--a-muted); }
.cw-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
.cw-card { position: relative; display: flex; flex-direction: column; overflow: hidden; height: 100%; border-radius: 14px; background: var(--a-surface); border: 1px solid var(--a-border); color: inherit; text-decoration: none; transition: transform .15s, border-color .15s, box-shadow .15s; }
.cw-card:hover, .cw-card:focus-visible { transform: translateY(-2px); border-color: rgba(0, 242, 255, .55); box-shadow: 0 10px 28px rgba(0, 0, 0, .45); }
.cw-card.is-picked { border-color: #00f2ff; box-shadow: 0 0 0 2px rgba(0, 242, 255, .35); }
.cw-card-pic { position: relative; display: flex; align-items: center; justify-content: center; height: 108px; background: linear-gradient(135deg, #14142a, #1d1030); overflow: hidden; }
.cw-cover { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .55; }
.cw-ico { position: relative; width: 60px; height: 60px; object-fit: cover; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .55); background: #0b0b16; }
.cw-ico-fa { position: relative; font-size: 34px; color: #7fe9f2; }
.cw-card-body { display: flex; flex-direction: column; gap: 6px; padding: 12px 14px 4px; flex: 1; }
.cw-name { font-size: 16px; color: #fff; overflow-wrap: anywhere; }
.cw-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 13px; color: var(--a-muted); }
.cw-n b { color: #7dffc2; }
.cw-tag { display: inline-flex; align-items: center; justify-content: center; min-width: 22px; height: 20px; padding: 0 6px; border-radius: 6px; background: rgba(255, 255, 255, .1); color: #dfe4f5; font-size: 11.5px; font-weight: 700; }
.cw-age { background: rgba(255, 59, 59, .18); color: #ff9a9a; }
.cw-go-i { padding: 6px 14px 13px; font-size: 13.5px; font-weight: 600; color: var(--a-accent); }
.cw-card:hover .cw-go-i i { transform: translateX(3px); }
.cw-go-i i { transition: transform .15s; font-size: 12px; }

/* ---------- κινητό: η κάρτα πάει κάτω από τον τίτλο ---------- */
@media (max-width: 860px) {
  .cw-stage { min-height: 0; }
  .cw-stage-in { grid-template-columns: minmax(0, 1fr); gap: 22px; padding-top: 28px; padding-bottom: 28px; }
  .cw-copy { align-self: start; }
  .cw-logo img { height: 38px; }
  .cw-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .cw-main { padding: 22px 14px 36px; }
}
@media (max-width: 440px) {
  .cw-top { padding: 12px 14px; }
  .cw-online { padding: 5px 10px; font-size: 13px; }
  .cw-card-pic { height: 84px; }
  .cw-ico { width: 48px; height: 48px; }
  .cw-card-body { padding: 10px 10px 2px; }
  .cw-name { font-size: 14.5px; }
  .cw-go-i { padding: 4px 10px 10px; font-size: 12.5px; }
  body.cw-body .cw-login .card { padding: 16px 14px 12px; }
}
@media (prefers-reduced-motion: reduce) { .cw-online i { animation: none; } .cw-card { transition: none; } }
