:root{
  --bg: #0b0f14;
  --panel: #101827;
  --panel2: #0e1624;
  --stroke: #1f2a3a;
  --text: #e9eef7;
  --muted: rgba(233,238,247,.68);

  --accent: #e53935;        /* красный как в 1-м рефе */
  --accent2: #ff4d4a;
  --green: #1bd47b;         /* “успех” */
  --warn: #ffcc66;

  --r: 18px;
  --r2: 22px;
  --shadow: 0 10px 40px rgba(0,0,0,.35);
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family: Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.bg-glow{
  position: fixed;
  inset:-40vh -40vw auto -40vw;
  height: 70vh;
  background:
    radial-gradient(closest-side, rgba(229,57,53,.22), transparent 70%),
    radial-gradient(closest-side, rgba(27,212,123,.10), transparent 70%);
  filter: blur(20px);
  pointer-events:none;
  z-index:0;
}

.topbar{
  position: sticky;
  top:0;
  z-index:10;
  padding: 14px 14px 10px;
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  background: linear-gradient(180deg, rgba(11,15,20,.92), rgba(11,15,20,.65));
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(31,42,58,.55);
}

.brand{display:flex;align-items:center;gap:10px}
.brand__dot{
  width:10px;height:10px;border-radius:50%;
  background: var(--accent);
  box-shadow: 0 0 0 6px rgba(229,57,53,.12);
}
.brand__name{font-weight:900;letter-spacing:.2px}
.brand__sub{margin-top:4px;font-size:12px;color:var(--muted)}

.container{
  position:relative;
  z-index:1;
  padding: 12px 14px 96px;
  max-width: 780px;
  margin: 0 auto;
}

.safe-area{height: max(18px, env(safe-area-inset-bottom));}

/* bottom nav */
.nav{
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: 10px;
  z-index: 20;
  width: min(720px, calc(100% - 22px));
  background: rgba(16,24,39,.9);
  border: 1px solid rgba(31,42,58,.9);
  border-radius: 22px;
  box-shadow: var(--shadow);
  display:flex;
  justify-content: space-around;
  padding: 10px 10px;
  backdrop-filter: blur(10px);
}
.nav__item{
  text-decoration:none;
  color: rgba(233,238,247,.70);
  display:flex;
  flex-direction:column;
  align-items:center;
  gap: 4px;
  padding: 6px 10px;
  border-radius: 14px;
  min-width: 84px;
}
.nav__icon{font-size:18px;line-height:1}
.nav__label{font-size:12px}
.nav__item--active{
  color: var(--text);
  background: rgba(229,57,53,.12);
  border: 1px solid rgba(229,57,53,.25);
}

/* common */
.card{
  background: linear-gradient(180deg, rgba(16,24,39,.95), rgba(14,22,36,.95));
  border: 1px solid rgba(31,42,58,.9);
  border-radius: var(--r2);
  box-shadow: var(--shadow);
  padding: 14px;
}
.mt8{margin-top:8px}
.mt12{margin-top:12px}
.mono{font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace}
.muted{color: var(--muted); font-size: 13px; line-height: 1.4}

.section{margin-top: 14px}
.section__head{display:flex;align-items:flex-end;justify-content:space-between;gap:10px;margin-bottom:10px}
.section__title{font-size:16px;font-weight:800}
.section__meta{font-size:12px;color:var(--muted);margin-top:4px}

.chip{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding: 8px 10px;
  border-radius: 999px;
  border: 1px solid rgba(31,42,58,.9);
  background: rgba(11,15,20,.35);
  font-size: 12px;
  color: rgba(233,238,247,.85);
}
.chip__dot{width:7px;height:7px;border-radius:50%;background:rgba(233,238,247,.55)}
.chip--ghost{background: rgba(11,15,20,.22)}
.chip--accent{
  background: rgba(229,57,53,.14);
  border-color: rgba(229,57,53,.35);
  color: var(--text);
}
.chip--ok{
  background: rgba(27,212,123,.12);
  border-color: rgba(27,212,123,.30);
}
.chip--warn{
  background: rgba(255,204,102,.12);
  border-color: rgba(255,204,102,.30);
}

/* hero */
.hero__card{
  border-radius: 26px;
  padding: 18px 16px;
  background:
    radial-gradient(1200px 380px at 10% -10%, rgba(229,57,53,.33), transparent 60%),
    radial-gradient(900px 320px at 90% 0%, rgba(27,212,123,.12), transparent 55%),
    linear-gradient(180deg, rgba(16,24,39,.95), rgba(14,22,36,.95));
  border: 1px solid rgba(31,42,58,.9);
  box-shadow: var(--shadow);
}
.hero__kicker{font-weight:800;letter-spacing:.5px;color:rgba(233,238,247,.85);font-size:12px;text-transform:uppercase}
.hero__title{margin:10px 0 8px;font-size:34px;line-height:1.02;letter-spacing:-.6px}
.hero__sub{color:rgba(233,238,247,.70);font-size:13px;line-height:1.4}

/* grid */
.grid{
  display:grid;
  grid-template-columns: 1fr;
  gap: 12px;
}
@media (min-width: 720px){
  .grid{grid-template-columns: 1fr 1fr;}
}

/* table cards */
.table-card__top{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:10px}
.table-card__badge{display:flex;align-items:center;gap:10px;font-weight:900}
.dot{width:10px;height:10px;border-radius:50%}
.dot--green{background: var(--green); box-shadow: 0 0 0 6px rgba(27,212,123,.10)}
.table-card__img{
  height: 150px;
  border-radius: 18px;
  border: 1px solid rgba(31,42,58,.9);
  overflow:hidden;
  position:relative;
  background: #0a111c;
}
.table-card__img-inner{
  position:absolute;inset:0;
  background:
    radial-gradient(120px 80px at 20% 30%, rgba(27,212,123,.16), transparent 60%),
    radial-gradient(200px 120px at 80% 10%, rgba(229,57,53,.18), transparent 60%),
    linear-gradient(135deg, rgba(255,255,255,.06), rgba(255,255,255,0));
}
.table-card__img-overlay{
  position:absolute;inset:0;
  display:flex;align-items:flex-end;justify-content:space-between;
  padding: 12px;
  background: linear-gradient(180deg, transparent 40%, rgba(0,0,0,.55));
}
.table-card__price{font-weight:900;font-size:18px}
.table-card__price span{font-weight:700;font-size:12px;color:rgba(233,238,247,.70)}
.table-card__actions{margin-top:10px}
.table-card__hint{margin-top:10px;color:rgba(233,238,247,.55);font-size:12px;line-height:1.35}

/* buttons */
.btn{
  appearance:none;
  border: 0;
  border-radius: 16px;
  padding: 12px 14px;
  font-weight: 900;
  color: var(--text);
  cursor:pointer;
}
.btn--full{width:100%}
.btn--primary{
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  box-shadow: 0 10px 30px rgba(229,57,53,.25);
}
.btn:active{transform: translateY(1px)}

/* session */
.session-head{
  display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin-bottom:10px
}
.session-title{font-size:22px;font-weight:900}
.session-sub{margin-top:4px;color:var(--muted);font-size:12px}

.live{display:flex;gap:12px;align-items:stretch;justify-content:space-between}
.live__left{flex:1}
.live__label{color:var(--muted);font-size:12px}
.live__value{font-size:26px;font-weight:900;letter-spacing:-.4px;margin-top:6px}
.live__row{display:flex;flex-wrap:wrap;gap:8px;margin-top:10px}

.pill{
  display:inline-flex;align-items:center;gap:8px;
  padding: 8px 10px;
  border-radius: 999px;
  border: 1px solid rgba(31,42,58,.9);
  background: rgba(11,15,20,.25);
  color: rgba(233,238,247,.70);
  font-size: 12px;
}
.pill__dot{width:8px;height:8px;border-radius:50%;background: rgba(233,238,247,.30)}
.pill--on{
  color: var(--text);
  background: rgba(27,212,123,.10);
  border-color: rgba(27,212,123,.25);
}
.pill--on .pill__dot{background: var(--green); box-shadow: 0 0 0 6px rgba(27,212,123,.10)}

/* ring */
.ring{
  width: 132px;
  min-width: 132px;
  height: 132px;
  position:relative;
  border-radius: 24px;
  background: rgba(11,15,20,.25);
  border: 1px solid rgba(31,42,58,.9);
  display:flex;align-items:center;justify-content:center;
}
.ring__svg{width:120px;height:120px;transform: rotate(-90deg)}
.ring__bg{
  fill:none;
  stroke: rgba(233,238,247,.10);
  stroke-width: 10;
}
.ring__fg{
  fill:none;
  stroke: rgba(229,57,53,.95);
  stroke-width: 10;
  stroke-linecap: round;
}
.ring__center{
  position:absolute;inset:0;
  display:flex;flex-direction:column;align-items:center;justify-content:center;
  text-align:center;
}
.ring__top{font-size:11px;color:rgba(233,238,247,.65)}
.ring__big{margin-top:6px;font-size:16px;font-weight:900}

/* steps */
.step{margin-top: 12px}
.step__head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:10px}
.step__title{font-size:15px;font-weight:900}
.step--disabled{opacity:.55; filter:saturate(.65)}
.step--disabled .btn{pointer-events:none}

/* hours pills */
.hours{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin-top: 10px;
}
.hour{
  border: 1px solid rgba(31,42,58,.9);
  background: rgba(11,15,20,.25);
  color: rgba(233,238,247,.85);
  padding: 10px 12px;
  border-radius: 999px;
  font-weight: 900;
  cursor:pointer;
}
.hour--active{
  background: rgba(229,57,53,.14);
  border-color: rgba(229,57,53,.35);
  color: var(--text);
}
.hour:active{transform: translateY(1px)}

.price-line{
  margin-top: 12px;
  display:flex;align-items:center;justify-content:space-between;
  padding: 12px;
  border-radius: 16px;
  border: 1px dashed rgba(31,42,58,.9);
  background: rgba(11,15,20,.18);
}
.price-line__left{color:rgba(233,238,247,.70);font-size:12px}
.price-line__right{font-size:16px}

.ok-box{
  border-radius: 18px;
  border: 1px solid rgba(27,212,123,.28);
  background: rgba(27,212,123,.08);
  padding: 12px;
}
.ok-box__title{font-weight:900}
.ok-box__sub{margin-top:6px;color:rgba(233,238,247,.70);font-size:13px;line-height:1.35}

/* upload */
.upload{display:flex;flex-direction:column;gap:10px;margin-top:10px}
.upload__btn{
  display:block;
  border-radius: 16px;
  border: 1px solid rgba(31,42,58,.9);
  background: rgba(11,15,20,.25);
  padding: 12px 14px;
  font-weight: 900;
  text-align:center;
  cursor:pointer;
}
.upload__btn input{display:none}