
:root{
  --bg0:#070B18;
  --bg1:#0B1230;
  --card:rgba(255,255,255,.06);
  --card2:rgba(255,255,255,.08);
  --stroke:rgba(255,255,255,.12);
  --text:#EAF0FF;
  --muted:rgba(234,240,255,.72);
  --shadow: 0 20px 60px rgba(0,0,0,.35);
  --r:22px;
  --accent:#1890ff;
  --good:#22c55e;
  --bad:#ef4444;
  --warn:#f59e0b;
  --pink:#e11d48;
  --font: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Noto Sans Arabic", "Noto Sans", Arial, sans-serif;
}



/* Global reset & rendering fixes */
*{box-sizing:border-box}
html,body{height:100%; width:100%}
body{
  margin:0;
  font-family:var(--font);
  color:var(--text);
  background-color: var(--bg0);
  /* Balanced full-viewport background to avoid visible banding on wide screens */
  background-image:
    radial-gradient(1200px 900px at 18% 12%, rgba(24,144,255,.22), transparent 62%),
    radial-gradient(1100px 820px at 82% 18%, rgba(245,158,11,.14), transparent 64%),
    radial-gradient(1200px 900px at 50% 92%, rgba(34,197,94,.12), transparent 62%),
    radial-gradient(900px 720px at 55% 45%, rgba(225,29,72,.08), transparent 66%),
    linear-gradient(180deg, var(--bg0), var(--bg1));
  background-repeat:no-repeat;
  background-attachment:fixed;
  overflow-x:hidden;
  /* Footer dock safe area (iOS) */
  padding-bottom: calc(84px + env(safe-area-inset-bottom));
}

/* Subtle noise to make gradients look smoother (no hard bands) */
body:before{
  content:"";
  position:fixed;
  inset:0;
  pointer-events:none;
  background-image:
    repeating-linear-gradient(0deg, rgba(255,255,255,.018), rgba(255,255,255,.018) 1px, transparent 1px, transparent 3px),
    repeating-linear-gradient(90deg, rgba(0,0,0,.012), rgba(0,0,0,.012) 1px, transparent 1px, transparent 4px);
  opacity:.55;
  mix-blend-mode: overlay;
  z-index:-1;
}

.bg-ambient{
  position:fixed;
  inset:0;
  width:100vw;
  height:100vh;
  pointer-events:none;
  background:
    radial-gradient(1200px 700px at 20% 10%, rgba(24,144,255,.10), transparent 65%),
    radial-gradient(900px 620px at 88% 30%, rgba(225,29,72,.08), transparent 68%),
    radial-gradient(900px 900px at 45% 92%, rgba(34,197,94,.08), transparent 68%);
  filter: blur(18px);
  transform: translateZ(0);
  will-change: transform;
  z-index:-2;
}

/* Light/Dark */
body.theme-light{
  --bg0:#f5f7ff;
  --bg1:#eef2ff;
  --card:rgba(0,0,0,.04);
  --card2:rgba(0,0,0,.05);
  --stroke:rgba(0,0,0,.10);
  --text:#10162a;
  --muted:rgba(16,22,42,.65);
  --shadow: 0 24px 70px rgba(15,23,42,.12);
}
body.theme-light body.theme-dark{}

/* Layout */
.topbar{
  position:sticky; top:0; z-index:50;
  display:flex; align-items:center; justify-content:space-between;
  gap:12px;
  padding:14px 18px;
  backdrop-filter: blur(14px);
  background: linear-gradient(180deg, rgba(0,0,0,.35), rgba(0,0,0,.10));
  border-bottom:1px solid var(--stroke);
}
body.theme-light .topbar{background: rgba(255,255,255,.55)}
.container{max-width:1100px; margin:0 auto; padding:18px; width:100%}

.brand{display:flex; align-items:center; gap:12px; text-decoration:none; color:inherit}
.brand__logo{width:44px; height:44px; border-radius:14px; box-shadow: var(--shadow)}
.brand__text{display:flex; flex-direction:column; line-height:1.1}
.brand__name{font-weight:800; letter-spacing:.2px}
.brand__tag{font-size:12px; color:var(--muted)}

.topbar__left{display:flex; align-items:center; gap:10px}
.inline{display:inline}
.iconbtn{
  width:44px; height:44px; border-radius:16px;
  border:1px solid var(--stroke);
  background: rgba(255,255,255,.03);
  color:inherit;
  display:grid; place-items:center;
  cursor:pointer;
  box-shadow: 0 14px 40px rgba(0,0,0,.20);
}
body.theme-light .iconbtn{background: rgba(255,255,255,.8)}
@media (hover:hover){.iconbtn:hover{transform: translateY(-1px)}}
.iconbtn{transition: transform .15s ease, filter .15s ease, box-shadow .15s ease}
@media (hover:hover){.iconbtn:hover{filter:brightness(1.04)}}
.iconbtn__img{width:22px; height:22px; opacity:.95}

.pill{
  display:flex; align-items:center; gap:10px;
  padding:10px 12px;
  border-radius:18px;
  background: rgba(24,144,255,.12);
  border:1px solid rgba(24,144,255,.22);
  text-decoration:none;
  color:inherit;
}
.pill.small{padding:8px 10px; border-radius:16px}
.pill.free{background: rgba(34,197,94,.10); border-color: rgba(34,197,94,.22)}
.pill__icon{width:20px; height:20px}
.pill__label{font-weight:700; font-size:13px}

.bottombar{
  position:fixed; left:50%; transform:translateX(-50%);
  bottom: calc(16px + env(safe-area-inset-bottom)); z-index:60;
  width:min(520px, calc(100% - 28px));
  border-radius:26px;
  padding:10px;
  background: rgba(0,0,0,.35);
  border:1px solid var(--stroke);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
  display:flex; justify-content:center; gap:18px;
}
body.theme-light .bottombar{background: rgba(255,255,255,.65)}
.dockbtn{
  width:66px; height:54px;
  border-radius:18px;
  display:grid; place-items:center;
  border:1px solid transparent;
  background: rgba(255,255,255,.04);
}
.dockbtn img{width:22px; height:22px}
.dockbtn.active{border-color: rgba(24,144,255,.5); background: rgba(24,144,255,.16)}

.panel{
  border:1px solid var(--stroke);
  background: linear-gradient(180deg, rgba(255,255,255,.075), rgba(255,255,255,.045));
  border-radius: var(--r);
  box-shadow: var(--shadow);
  padding:18px;
  margin-bottom:16px;
}
body.theme-light .panel{background: rgba(255,255,255,.75)}
.panel--hero{padding:0; overflow:hidden}
.panel__head{display:flex; align-items:center; justify-content:space-between; gap:12px; margin-bottom:12px}
.panel__icon img{width:56px; height:56px}
.center{text-align:center}
.h1{margin:0 0 8px; font-size:26px; letter-spacing:.2px}
.h2{margin:0; font-size:20px}
.muted{color:var(--muted)}
.spacer{height:14px}
.actions{display:flex; justify-content:center; gap:10px; flex-wrap:wrap}

/* grid */
.grid{display:grid; gap:14px}
.grid-2{grid-template-columns: 1fr 1fr}
@media (max-width:860px){.grid-2{grid-template-columns:1fr}}

/* buttons */
.btn{
  border:1px solid var(--stroke);
  background: rgba(255,255,255,.05);
  color:inherit;
  padding:12px 14px;
  border-radius: 18px;
  cursor:pointer;
  text-decoration:none;
  display:inline-flex; gap:10px; align-items:center; justify-content:center;
  font-weight:800;
}
@media (hover:hover){.btn:hover{transform: translateY(-1px)}}
.btn{transition: transform .15s ease, filter .15s ease, box-shadow .15s ease}
@media (hover:hover){.btn:hover{filter:brightness(1.03)}}
.btn-block{width:100%}
.btn-sm{padding:10px 12px; border-radius:16px; font-weight:800}
.btn-link{background:transparent; border:0; color:var(--accent)}
.btn-primary{background: linear-gradient(135deg, rgba(24,144,255,.95), rgba(99,102,241,.85)); border-color: rgba(24,144,255,.55)}
.btn-ghost{background: rgba(255,255,255,.04)}
.btn-success{background: linear-gradient(135deg, rgba(34,197,94,.95), rgba(16,185,129,.80)); border-color: rgba(34,197,94,.55)}
.btn-danger{background: linear-gradient(135deg, rgba(239,68,68,.95), rgba(225,29,72,.85)); border-color: rgba(239,68,68,.55)}
.btn:active{transform: translateY(0px); transition:none}

/* forms */
.form{margin-top:12px; display:flex; flex-direction:column; gap:12px}
.form__meta{margin-top:10px; color:var(--muted)}
.field{display:flex; flex-direction:column; gap:8px; text-align:right}
.field__label{font-size:12px; color:var(--muted); font-weight:800}
.input{
  border:1px solid var(--stroke);
  border-radius: 18px;
  padding:14px 14px;
  background: rgba(0,0,0,.20);
  color:inherit;
  outline:none;
}
body.theme-light .input{background: rgba(255,255,255,.9)}
.input:focus{border-color: rgba(24,144,255,.65); box-shadow: 0 0 0 4px rgba(24,144,255,.12)}
.input--soft{padding:12px 14px; border-radius: 16px}
.otp{letter-spacing: 10px; text-align:center; font-size:20px; font-weight:900}

.check{display:flex; gap:10px; align-items:flex-start; font-size:14px}
.check input{margin-top:4px}

/* hero */
.hero{
  padding:28px;
  background: radial-gradient(800px 500px at 25% 25%, rgba(24,144,255,.22), transparent 60%),
              radial-gradient(700px 480px at 75% 35%, rgba(34,197,94,.18), transparent 60%),
              linear-gradient(135deg, rgba(255,255,255,.06), rgba(255,255,255,.03));
}
.hero__badge{
  display:inline-flex; padding:8px 10px; border-radius:999px;
  background: rgba(245,158,11,.14); border:1px solid rgba(245,158,11,.28);
  font-weight:900; font-size:12px;
}
.hero__title{margin:14px 0 8px; font-size:24px}
.hero__text{margin:0; color:var(--muted)}
.hero__stats{display:flex; gap:10px; margin-top:18px; flex-wrap:wrap}
.stat{flex:1; min-width:140px; border:1px solid var(--stroke); border-radius: 18px; padding:12px; background: rgba(255,255,255,.04)}
.stat__k{font-weight:900; color:var(--muted); font-size:12px}
.stat__v{font-weight:900; margin-top:6px}

/* Quick icons */
.quick{display:flex; gap:14px; justify-content:center}
.quick__item{
  width:min(230px, 45vw);
  background: rgba(255,255,255,.04);
  border:1px solid var(--stroke);
  border-radius: 22px;
  padding:18px;
  display:flex; flex-direction:column; align-items:center; gap:10px;
  text-decoration:none; color:inherit;
}
.quick__icon{width:74px; height:74px; border-radius: 50%; box-shadow: var(--shadow)}
.quick__label{font-weight:900}
@media (max-width:520px){.quick__item{width:46%}.quick__icon{width:64px;height:64px}}

/* search */
.search{display:flex; gap:10px; align-items:center; min-width: 280px}
.search img{width:18px; height:18px; opacity:.8}
@media (max-width:740px){.panel__head{flex-direction:column; align-items:stretch}.search{min-width:unset}}

/* tabs */
.tabs{display:flex; gap:8px; margin:14px 0; flex-wrap:wrap}
.tab{
  border:1px solid var(--stroke);
  background: rgba(255,255,255,.04);
  color:inherit;
  border-radius: 999px;
  padding:10px 14px;
  cursor:pointer;
  font-weight:900;
  text-decoration:none;
}
.tab.active{background: rgba(24,144,255,.18); border-color: rgba(24,144,255,.45)}

/* rooms */
.room-group{margin-top:14px}
.room-group__title{font-weight:950; margin:10px 0}
.room-group__empty{color:var(--muted); border:1px dashed var(--stroke); border-radius: 18px; padding:14px}
.room-grid{display:grid; gap:12px; grid-template-columns: repeat(3, 1fr)}
@media (max-width:980px){.room-grid{grid-template-columns: repeat(2, 1fr)}}
@media (max-width:640px){.room-grid{grid-template-columns: 1fr}}
.room-card{border:1px solid var(--stroke); border-radius: 22px; overflow:hidden; background: rgba(255,255,255,.04)}
.room-card__head{
  position:relative;
  padding:14px;
  background-size:cover;
  background-position:center;
  border-bottom:1px solid var(--stroke);
}
.room-card__badge{position:absolute; right:12px; top:12px; width:34px; height:34px; border-radius:16px; box-shadow: var(--shadow)}
.room-card__title{font-weight:950; margin-right: 54px}
.room-card__remain{position:absolute; left:12px; top:12px; padding:6px 10px; border-radius:999px; background: rgba(0,0,0,.35); border:1px solid var(--stroke); font-weight:900}
body.theme-light .room-card__remain{background: rgba(255,255,255,.7)}
.room-card__body{padding:12px}
.mini{display:flex; gap:10px; align-items:center; margin:10px 0}
.mini__icon{
  width:38px; height:38px; border-radius: 16px;
  display:grid; place-items:center;
  background: rgba(255,255,255,.06);
  border:1px solid var(--stroke);
}
.mini__text{font-weight:800; color:var(--muted)}
.room-card__actions{display:flex; gap:10px; align-items:center; margin-top:12px}
.price{min-width:120px; text-align:center; font-weight:950; padding:12px; border-radius:18px; border:1px solid rgba(24,144,255,.4); background: rgba(24,144,255,.14)}
.price.free{border-color: rgba(34,197,94,.4); background: rgba(34,197,94,.12)}
.room-card.finished{opacity:.9}

/* wallet */
.wallet{display:flex; flex-direction:column; gap:14px}
.wallet-card{
  border-radius: 26px;
  padding:18px;
  background-size:cover;
  background-position:center;
  border:1px solid rgba(255,255,255,.14);
  position:relative;
  overflow:hidden;
}
.wallet-card:before{
  content:"";
  position:absolute; inset:-40px;
  background: radial-gradient(600px 300px at 20% 20%, rgba(24,144,255,.25), transparent 60%),
              radial-gradient(500px 300px at 80% 30%, rgba(245,158,11,.18), transparent 60%);
  filter: blur(10px);
  opacity:.9;
}
.wallet-card>*{position:relative; z-index:1}
.wallet-card__row{display:flex; justify-content:space-between; align-items:center}
.wallet-card__title{font-weight:950}
.wallet-card__chip{width:46px; height:34px; border-radius:12px; background: rgba(255,255,255,.20); border:1px solid rgba(255,255,255,.25)}
.wallet-card__amount{font-size:34px; font-weight:1000; margin-top:14px}
.wallet-card__amount span{font-size:14px; font-weight:900; opacity:.85}
.wallet-card__meta{margin-top:10px; color:rgba(255,255,255,.75); font-size:12px}
.wallet-actions{display:grid; grid-template-columns: 1fr 1fr; gap:12px}
@media (max-width:520px){.wallet-actions{grid-template-columns:1fr}}
.subhead{font-weight:1000; margin-top:10px}

.tx-list{display:flex; flex-direction:column; gap:10px}
.tx{display:flex; gap:12px; padding:12px; border-radius:22px; border:1px solid var(--stroke); background: rgba(255,255,255,.04)}
.tx__icon{width:46px; height:46px; border-radius:18px; display:grid; place-items:center; border:1px solid var(--stroke); background: rgba(255,255,255,.05)}
.tx.in .tx__icon{border-color: rgba(34,197,94,.35); background: rgba(34,197,94,.10)}
.tx.out .tx__icon{border-color: rgba(239,68,68,.35); background: rgba(239,68,68,.10)}
.tx__body{flex:1}
.tx__top{display:flex; justify-content:space-between; gap:10px; align-items:center}
.tx__title{font-weight:950}
.tx__amount{font-weight:1000}
.tx__meta{display:flex; gap:10px; flex-wrap:wrap; color:var(--muted); font-size:12px; margin-top:6px}

/* Empty */
.empty{
  display:flex; gap:14px; align-items:center; justify-content:center;
  border:1px dashed var(--stroke);
  border-radius: 26px;
  padding:18px;
}
.empty img{width:64px; height:64px; border-radius: 50%}
.empty__title{font-weight:1000; margin-bottom:6px}
.empty__text{color:var(--muted); margin-bottom:12px}

/* Team slots */
.card{border:1px solid var(--stroke); border-radius: 22px; background: rgba(255,255,255,.04); padding:14px}
.team-head{display:flex; justify-content:space-between; align-items:center; gap:12px; margin-bottom:14px}
.team-name{font-weight:1000; font-size:18px}
.slots{display:grid; gap:12px}
.slots-4{grid-template-columns: repeat(4,1fr)}
@media (max-width:760px){.slots-4{grid-template-columns: repeat(2,1fr)}}
.slot{display:flex; flex-direction:column; align-items:center; gap:10px}
.avatar{width:74px; height:74px; border-radius: 50%; border:1px solid var(--stroke); box-shadow: var(--shadow); background: rgba(255,255,255,.05)}
.slot__empty{width:74px; height:74px; border-radius: 22px; display:grid; place-items:center; font-size:34px; font-weight:1000; border:1px dashed var(--stroke); color:var(--muted)}
.slot__name{font-weight:950}
.slot__name.muted{color:var(--muted); font-weight:900}

/* Invites */
.invite-list{display:flex; flex-direction:column; gap:10px}
.invite{display:flex; justify-content:space-between; gap:12px; align-items:center; border:1px solid var(--stroke); border-radius:22px; padding:12px; background: rgba(255,255,255,.04)}
.invite__title{font-weight:950}
.invite__actions{display:flex; gap:10px; flex-wrap:wrap}

/* Live search results */
.live-search{display:flex; gap:10px; align-items:center; margin-top:12px}
.live-search img{width:18px; height:18px; opacity:.85}
.results{margin-top:12px; display:flex; flex-direction:column; gap:10px}
.result-item{
  display:flex; align-items:center; gap:12px;
  border:1px solid var(--stroke);
  border-radius: 22px;
  padding:12px;
  background: rgba(255,255,255,.04);
  cursor:pointer;
}
@media (hover:hover){.result-item:hover{transform: translateY(-1px)}}
.result-item{transition: transform .15s ease, filter .15s ease}
@media (hover:hover){.result-item:hover{filter:brightness(1.03)}}
.result-item .avatar{width:46px; height:46px}
.result-item__name{font-weight:950}
.result-item__arrow{margin-right:auto; color:var(--muted); font-weight:1000}
.chips{display:flex; gap:10px; flex-wrap:wrap; margin-top:10px}
.chip{
  display:flex; gap:10px; align-items:center;
  border-radius:999px;
  padding:8px 10px;
  border:1px solid rgba(24,144,255,.35);
  background: rgba(24,144,255,.14);
  font-weight:950;
}
.chip button{
  border:0; background: transparent; color:inherit; cursor:pointer; font-weight:1000;
}

/* Leaderboard */
.podium{display:grid; grid-template-columns:1fr 1fr 1fr; gap:12px; align-items:end}
@media (max-width:720px){.podium{grid-template-columns:1fr; align-items:stretch}}
.podium__card{
  border:1px solid var(--stroke);
  border-radius: 26px;
  padding:16px;
  text-align:center;
  background: rgba(255,255,255,.04);
  position:relative;
}
.podium__card.gold{border-color: rgba(245,158,11,.55); background: rgba(245,158,11,.12)}
.podium__card.silver{border-color: rgba(148,163,184,.55); background: rgba(148,163,184,.12)}
.podium__card.bronze{border-color: rgba(217,119,6,.55); background: rgba(217,119,6,.10)}
.podium__rank{
  position:absolute; top:12px; right:12px;
  width:36px; height:36px; border-radius:14px;
  display:grid; place-items:center;
  font-weight:1000;
  background: rgba(0,0,0,.30); border:1px solid var(--stroke);
}
body.theme-light .podium__rank{background: rgba(255,255,255,.7)}
.podium__avatar{width:86px; height:86px; border-radius:50%; border:1px solid var(--stroke); box-shadow: var(--shadow)}
.podium__name{font-weight:1000; margin-top:10px}
.podium__hint{color:var(--muted); font-size:12px; margin-top:4px}

.lb-list{margin-top:14px; display:flex; flex-direction:column; gap:10px}
.lb-item{
  display:grid;
  grid-template-columns: 64px 60px 1fr auto;
  gap:10px;
  align-items:center;
  border:1px solid var(--stroke);
  border-radius:22px;
  padding:12px;
  background: rgba(255,255,255,.04);
}
.lb-rank{font-weight:1000; color:var(--muted)}
.lb-avatar{width:46px; height:46px; border-radius:50%; border:1px solid var(--stroke)}
.lb-name{font-weight:950}
.lb-balance{font-weight:1000}
@media (max-width:520px){
  .lb-item{grid-template-columns: 52px 56px 1fr; grid-auto-rows:auto}
  .lb-balance{grid-column:1 / -1; color:var(--muted); font-weight:900}
}

/* Account */
.account-head{display:flex; gap:12px; align-items:center; margin-bottom:14px}
.account-avatar{width:92px; height:92px; border-radius:50%; border:1px solid var(--stroke); box-shadow: var(--shadow)}
.account-name{font-weight:1000; font-size:18px}
.avatar-grid{display:grid; gap:12px; grid-template-columns: repeat(3,1fr); margin-top:12px}
@media (max-width:920px){.avatar-grid{grid-template-columns: repeat(2,1fr)}}
@media (max-width:560px){.avatar-grid{grid-template-columns: 1fr}}
.avatar-card{border:1px solid var(--stroke); border-radius:22px; overflow:hidden; background: rgba(255,255,255,.04)}
.avatar-card.active{border-color: rgba(34,197,94,.45)}
.avatar-card__btn{width:100%; border:0; background:transparent; color:inherit; padding:14px; cursor:pointer; text-align:center}
.avatar-card__btn img{width:74px; height:74px; border-radius:50%; border:1px solid var(--stroke); box-shadow: var(--shadow)}
.avatar-card__title{font-weight:1000; margin-top:10px}
.avatar-card__price{color:var(--muted); font-weight:900; margin-top:6px}
.avatar-card__price.free{color: rgba(34,197,94,.9)}
.badge{
  margin:10px auto 0;
  display:inline-flex;
  padding:6px 10px;
  border-radius:999px;
  background: rgba(34,197,94,.12);
  border:1px solid rgba(34,197,94,.30);
  font-weight:1000;
  font-size:12px;
}

/* Arena */
.room-meta{display:flex; gap:10px; flex-wrap:wrap; margin-bottom:12px}
.arena{
  display:grid;
  gap:12px;
  grid-template-columns: repeat(2, 1fr);
}
@media (max-width:820px){.arena{grid-template-columns:1fr}}
.team-card{
  border:1px solid var(--stroke);
  border-radius: 26px;
  background: rgba(255,255,255,.04);
  padding:14px;
}
.team-card__title{font-weight:1000; margin-bottom:10px}
.team-card.vs{border-color: rgba(225,29,72,.35); background: rgba(225,29,72,.06)}
.team-card__slots{display:grid; gap:10px}
.slots-auto{grid-template-columns: repeat(var(--per), 1fr)}
.seat{
  border:1px solid var(--stroke);
  border-radius: 22px;
  background: rgba(255,255,255,.04);
  padding:12px;
  cursor:pointer;
  display:flex; flex-direction:column; align-items:center; gap:10px;
  min-height: 148px;
}
.seat.occupied{background: rgba(24,144,255,.06); border-color: rgba(24,144,255,.22)}
.seat:disabled{opacity:.85; cursor:not-allowed}
.seat__plus{font-size:34px; font-weight:1000; color:var(--muted)}
.seat__name{font-weight:950; color:var(--muted); text-align:center}
.desc{line-height:1.9; color:var(--muted)}
.result-img{max-width:100%; border-radius: 22px; border:1px solid var(--stroke)}

/* Notifs */
.notif-list{display:flex; flex-direction:column; gap:10px}
.notif{
  display:flex; align-items:flex-start; gap:12px;
  border:1px solid var(--stroke);
  border-radius: 22px;
  padding:12px;
  background: rgba(255,255,255,.04);
}
.notif.read{opacity:.8}
.notif__dot{width:10px; height:10px; border-radius:50%; margin-top:8px; background: rgba(24,144,255,.9)}
.notif.read .notif__dot{background: rgba(148,163,184,.6)}
.notif__body{flex:1}
.notif__title{font-weight:1000}
.notif__text{color:var(--muted); margin-top:6px}
.notif__meta{color:var(--muted); font-size:12px; margin-top:8px}

/* Modal */
.modal-root, .toast-root{position:fixed; inset:0; pointer-events:none; z-index:100}
.modal{
  pointer-events:auto;
  position:absolute; inset:0;
  background: rgba(0,0,0,.55);
  display:flex; align-items:center; justify-content:center;
  padding:18px;
}
.modal__card{
  width:min(520px, 100%);
  border-radius: 26px;
  border:1px solid var(--stroke);
  background: linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.05));
  box-shadow: var(--shadow);
  padding:16px;
}
body.theme-light .modal__card{background: rgba(255,255,255,.95)}
.modal__head{display:flex; justify-content:space-between; align-items:center; gap:12px}
.modal__title{font-weight:1000; font-size:16px}
.modal__close{border:0; background:transparent; color:var(--muted); cursor:pointer; font-weight:1000}
.modal__body{margin-top:10px; color:var(--muted); line-height:1.9}
.modal__actions{display:flex; gap:10px; margin-top:14px}
@media (max-width:520px){.modal__actions{flex-direction:column}}

/* Toast */
.toast-wrap{
  pointer-events:auto;
  position:absolute;
  top:18px;
  right:18px;
  display:flex;
  flex-direction:column;
  gap:10px;
}
.toast{
  width:min(420px, calc(100vw - 36px));
  border-radius: 22px;
  border:1px solid var(--stroke);
  background: rgba(0,0,0,.35);
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow);
  padding:12px;
  display:flex; gap:12px; align-items:flex-start;
  transform: translateY(-6px);
  opacity:0;
  animation: toastIn .22s ease forwards;
}
body.theme-light .toast{background: rgba(255,255,255,.75)}
@keyframes toastIn{to{transform:translateY(0);opacity:1}}
.toast__icon{width:44px; height:44px; border-radius:18px; display:grid; place-items:center; border:1px solid var(--stroke); background: rgba(255,255,255,.06)}
.toast.success .toast__icon{border-color: rgba(34,197,94,.35); background: rgba(34,197,94,.12)}
.toast.error .toast__icon{border-color: rgba(239,68,68,.35); background: rgba(239,68,68,.10)}
.toast.confirm .toast__icon{border-color: rgba(245,158,11,.35); background: rgba(245,158,11,.12)}
.toast__title{font-weight:1000}
.toast__msg{color:var(--muted); margin-top:4px}
.debugbox{margin-top:14px; text-align:right}
.debugbox pre{white-space:pre-wrap; background: rgba(0,0,0,.15); border:1px solid var(--stroke); padding:10px; border-radius: 18px}

/* Icons (CSS) */
.icon{display:inline-block; width:18px; height:18px; position:relative}
.i-plus::before{content:"+"; font-weight:1000; position:absolute; inset:0; display:grid; place-items:center}
.i-minus::before{content:"−"; font-weight:1000; position:absolute; inset:0; display:grid; place-items:center}
.i-check::before{content:"✓"; font-weight:1000; position:absolute; inset:0; display:grid; place-items:center}
.i-close::before{content:"×"; font-weight:1000; position:absolute; inset:0; display:grid; place-items:center}
.i-sms::before{content:"✉"; font-weight:1000; position:absolute; inset:0; display:grid; place-items:center}
.i-home::before{content:"⌂"; font-weight:1000; position:absolute; inset:0; display:grid; place-items:center}
.i-back::before{content:"←"; font-weight:1000; position:absolute; inset:0; display:grid; place-items:center}
.i-exit::before{content:"⎋"; font-weight:900; position:absolute; inset:0; display:grid; place-items:center}
.i-trophy::before{content:"🏆"; position:absolute; inset:0; display:grid; place-items:center; font-size:16px}
.i-clock::before{content:"⏱"; position:absolute; inset:0; display:grid; place-items:center; font-size:16px}
.i-calendar::before{content:"📅"; position:absolute; inset:0; display:grid; place-items:center; font-size:16px}
.i-sun::before{content:"☀"; position:absolute; inset:0; display:grid; place-items:center}
body.theme-dark .theme-toggle .i-sun::before{content:"🌙"}


@media (max-width:520px){
  .topbar{padding:12px 12px; gap:10px}
  .brand__tag{display:none}
  .pill{padding:9px 10px; border-radius:16px}
  .pill__label{font-size:12px}
  .brand__logo{width:40px; height:40px; border-radius:14px}
  .iconbtn{width:42px; height:42px}
}
@media (max-width:380px){
  .topbar{flex-direction:column; align-items:stretch}
  .topbar__left{justify-content:space-between}
}



/* Better tap feel */
button, .btn, .iconbtn, .tab, .dockbtn, .seat{touch-action:manipulation}
:focus-visible{outline: none; box-shadow: 0 0 0 4px rgba(24,144,255,.18)}



@media (max-width:420px){
  .room-card__actions{flex-direction:column; align-items:stretch}
  .price{min-width:unset; width:100%}
  .toast-wrap{right:12px; top:12px}
  .toast{border-radius:20px}
  .panel{padding:16px}
}

