:root{
  --bg: #ffffff;
  --surface: rgba(255,255,255,.86);
  --muted-bg: #f6f7fb;
  --text: #0b1220;
  --muted: rgba(11,18,32,.68);
  --border: rgba(11,18,32,.10);
  --shadow: 0 18px 65px rgba(11,18,32,.10);
  --radius: 18px;

  --accent: #7c3aed;
  --accent2: #06b6d4;
  --danger: #b91c1c;
}

*{ box-sizing: border-box; }
html,body{ height:100%; }
body{
  margin:0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
}

a{ color: inherit; text-decoration: none; }
strong{ font-weight: 700; }
code{ font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace; }

.container{
  width: min(1120px, calc(100% - 32px));
  margin-inline: auto;
}

.hidden{ display:none !important; }

/* Header */
.header{
  position: sticky;
  top:0;
  z-index: 30;
  background: rgba(255,255,255,.70);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.header__inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 14px;
  padding: 14px 0;
}

/* Partner logos */
.brand-logos{
  display:flex;
  align-items:center;
  gap: 12px;
  padding: 8px 10px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: rgba(11,18,32,.02);
  max-width: 520px;
}
.brand-logos__img{
  display:block;
  height: 34px;
  width: auto;
  object-fit: contain;
  max-width: 220px;
}
.brand-logos__divider{
  width: 1px;
  height: 26px;
  background: rgba(11,18,32,.14);
}
.brand-logos--footer{
  border: none;
  background: transparent;
  padding: 0;
  border-radius: 0;
  gap: 14px;
}
.brand-logos--footer .brand-logos__divider{
  height: 24px;
}

/* Nav */
.nav{
  display:flex;
  align-items:center;
  gap: 14px;
}
.nav a{
  font-size: 14px;
  color: var(--muted);
  padding: 10px 10px;
  border-radius: 12px;
  transition: background .18s ease, color .18s ease;
}
.nav a:hover{ color: var(--text); background: rgba(11,18,32,.04); }

/* Buttons */
.btn{
  border: 1px solid var(--border);
  background: #fff;
  color: var(--text);
  padding: 10px 14px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 14px;
  cursor:pointer;
  transition: transform .08s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap: 8px;
}
.btn:active{ transform: translateY(1px); }

.btn--primary{
  border: none;
  color:#fff;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  box-shadow: 0 18px 48px rgba(124,58,237,.20);
}
.btn--ghost{ background: rgba(11,18,32,.02); }
.btn--full{ width: 100%; padding: 12px 14px; }

.btn.danger{
  color: var(--danger);
  border-color: rgba(185,28,28,.30);
  background: rgba(185,28,28,.03);
}

/* Common */
.badge{
  display:inline-flex;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(124,58,237,.08);
  border: 1px solid rgba(124,58,237,.18);
  color: rgba(124,58,237,.95);
  font-weight: 800;
  font-size: 12px;
  letter-spacing: .02em;
}

.muted{ color: var(--muted); }
.small{ font-size: 12px; }

.section{ padding: 46px 0; }
.section--muted{
  background: var(--muted-bg);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.section__head h2{
  margin:0 0 10px;
  font-size: 26px;
  letter-spacing: -.02em;
}
.section__head p{
  margin:0;
  color: var(--muted);
  line-height: 1.7;
  max-width: 86ch;
}

/* Hero */
.hero{
  padding: 46px 0 26px;
  position: relative;
}
.hero__grid{
  display:grid;
  grid-template-columns: 1fr;
  gap: 18px;
  align-items:start;
}
.hero__title{
  margin: 14px 0 12px;
  font-size: clamp(28px, 3.5vw, 48px);
  line-height: 1.06;
  letter-spacing: -.035em;
}
.accent{
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero__subtitle{
  margin:0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.65;
  max-width: 62ch;
}
.hero__cta{ display:flex; gap: 10px; margin-top: 18px; flex-wrap: wrap; }
.hero__meta{
  margin-top: 18px;
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.meta-card{
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 12px;
  background: rgba(255,255,255,.75);
  box-shadow: 0 12px 40px rgba(11,18,32,.06);
}
.meta-card__label{ color: var(--muted); font-size: 12px; margin-bottom: 6px; }
.meta-card__value{ font-weight: 800; font-size: 13px; }

.fineprint{
  margin-top: 14px;
  color: rgba(11,18,32,.55);
  font-size: 12px;
  line-height: 1.55;
  max-width: 80ch;
}

/* Cards */
.cards{
  margin-top: 18px;
  display:grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.card{
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: 0 12px 42px rgba(11,18,32,.06);
}
.card h3{ margin:0 0 8px; font-size: 16px; letter-spacing: -.01em; }
.card p{ margin:0; color: var(--muted); line-height: 1.65; }

/* Rules */
.rules-grid{
  margin-top: 18px;
  display:grid;
  grid-template-columns: 1.25fr .75fr;
  gap: 12px;
  align-items:start;
}
.rules-card, .video-card{
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: 0 12px 42px rgba(11,18,32,.06);
}
.rules-title{ font-weight: 900; letter-spacing: -.02em; font-size: 18px; }
.rules-lead{ margin: 8px 0 0; color: var(--muted); line-height: 1.65; }

.steps{ margin-top: 14px; display:grid; gap: 10px; }
.step{
  display:flex;
  gap: 12px;
  padding: 12px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: rgba(11,18,32,.02);
}
.step__n{
  width: 34px; height: 34px;
  border-radius: 12px;
  display:grid;
  place-items:center;
  color:#fff;
  font-weight: 900;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
}
.step__text{ color: rgba(11,18,32,.86); line-height: 1.6; }

.links{ margin-top: 8px; display:grid; gap: 6px; }
.links a{
  color: rgba(124,58,237,.95);
  font-weight: 800;
  border-bottom: 1px dashed rgba(124,58,237,.35);
  width: fit-content;
}

.result{
  margin-top: 14px;
  padding: 12px;
  border-radius: 16px;
  border: 1px solid rgba(124,58,237,.18);
  background: rgba(124,58,237,.06);
  line-height: 1.65;
}
.result__line + .result__line{ margin-top: 6px; }

/* Video card (vertical) */
.video-card__head h3{
  margin: 0 0 6px;
  font-size: 16px;
  letter-spacing: -.01em;
}
.video-card__head p{
  margin: 0 0 12px;
  color: var(--muted);
  line-height: 1.6;
  font-size: 13px;
}

/* “Телефонний” кадр: 9:16 */
.video-frame{
  position: relative;
  width: 100%;
  aspect-ratio: 9 / 16;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(11,18,32,.10);
  background: rgba(11,18,32,.03);
  box-shadow: 0 18px 55px rgba(11,18,32,.12);
}

/* Відео підлаштовується під frame */
.video{
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

/* На великих екранах зробимо відео “телефонного” розміру */
@media (min-width: 981px){
  .video-card{
    position: sticky;
    top: 90px;
  }
  .video-frame{
    max-width: 360px;
    margin-left: auto;
    margin-right: auto;
  }
}

/* Signup */
.signup-grid{ margin-top: 18px; display:grid; gap: 12px; align-items:start; }
.signup-grid--single{ grid-template-columns: 1fr; }

.form{
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: 0 12px 42px rgba(11,18,32,.06);
}
.field{ margin-bottom: 12px; }
label{ display:block; font-weight: 800; font-size: 13px; margin-bottom: 8px; }
input{
  width:100%;
  padding: 12px 12px;
  border-radius: 14px;
  border: 1px solid var(--border);
  outline: none;
  font-size: 14px;
  background: rgba(11,18,32,.02);
}
input:focus{
  border-color: rgba(124,58,237,.45);
  box-shadow: 0 0 0 4px rgba(124,58,237,.12);
  background: #fff;
}
.hint{ display:block; margin-top: 6px; color: var(--muted); font-size: 12px; line-height: 1.45; }

.checkbox{
  display:flex;
  gap: 10px;
  align-items:flex-start;
  color: rgba(11,18,32,.86);
  font-size: 13px;
  margin: 10px 0 14px;
}
.checkbox input{ width: 18px; height: 18px; margin-top: 2px; }

.form__status{ margin-top: 10px; font-size: 13px; color: var(--muted); min-height: 18px; }

/* Admin */
.admin{
  margin-top: 16px;
  background:#fff;
  border:1px solid var(--border);
  border-radius: var(--radius);
  padding:16px;
  box-shadow: 0 12px 42px rgba(11,18,32,.06);
}
.admin__head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 10px;
  margin-bottom: 10px;
}
.admin__head h3{ margin:0; font-size: 16px; letter-spacing: -.01em; }

.chip{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(11,18,32,.02);
  font-weight: 900;
  font-size: 12px;
}

.toolbar{
  display:flex;
  gap: 10px;
  margin: 12px 0;
  flex-wrap: wrap;
}

.table-wrap{
  overflow:auto;
  border: 1px solid var(--border);
  border-radius: 14px;
}
.table{
  width:100%;
  border-collapse: collapse;
  min-width: 650px;
}
.table th, .table td{
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
  text-align:left;
  font-size: 13px;
}
.table th{
  background: rgba(11,18,32,.02);
  color: rgba(11,18,32,.72);
  font-weight: 900;
}
.table tr:last-child td{ border-bottom: none; }

/* Footer */
.footer{
  border-top: 1px solid var(--border);
  background: #fff;
  padding: 18px 0;
}
.footer__inner{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap: 12px;
}
.footer__left{
  display:flex;
  flex-direction: column;
  gap: 8px;
}
.footer__right{ display:flex; gap: 12px; }

/* Modal */
.modal{
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 18px;
}
.modal__backdrop{
  position:absolute;
  inset:0;
  background: rgba(11,18,32,.55);
  backdrop-filter: blur(4px);
}
.modal__dialog{
  position: relative;
  width: min(560px, 100%);
  border-radius: 18px;
  background: #fff;
  border: 1px solid var(--border);
  box-shadow: 0 22px 80px rgba(11,18,32,.22);
  padding: 16px;
}
.modal__close{
  position:absolute;
  top: 10px;
  right: 10px;
  width: 36px;
  height: 36px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(11,18,32,.02);
  cursor:pointer;
  font-weight: 900;
}
.modal__title{
  margin: 2px 0 8px;
  font-size: 18px;
  letter-spacing: -.01em;
}
.modal__text{
  color: rgba(11,18,32,.78);
  line-height: 1.65;
}
.modal__block{
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}
.modal__subtitle{
  font-weight: 900;
  font-size: 13px;
  color: rgba(11,18,32,.78);
  margin-bottom: 8px;
}
.modal__list{
  margin: 0;
  padding-left: 18px;
  color: rgba(11,18,32,.86);
  line-height: 1.75;
}
.modal__actions{
  margin-top: 14px;
  display:flex;
  justify-content:flex-end;
  gap: 10px;
}

/* Responsive */
@media (max-width: 980px){
  .nav{ display:none; }
  .hero__meta{ grid-template-columns: 1fr; }
  .cards{ grid-template-columns: 1fr; }
  .rules-grid{ grid-template-columns: 1fr; }

  .brand-logos{
    max-width: 100%;
    padding: 8px 8px;
    gap: 10px;
  }
  .brand-logos__img{
    height: 30px;
    max-width: 160px;
  }
  .brand-logos__divider{ height: 22px; }
}

@media (max-width: 420px){
  .brand-logos__img{
    height: 26px;
    max-width: 140px;
  }
}


/* =========================
   Admin UI (new admin-area layout)
   ========================= */

.admin-nav{ display:flex; align-items:center; gap: 10px; }

.chip--soft{
  background: rgba(124,58,237,.08);
  border-color: rgba(124,58,237,.18);
  color: rgba(124,58,237,.95);
}

/* Compact table in admin */
.table--compact th, .table--compact td{
  padding: 8px 10px;
  font-size: 12.5px;
}

.admin-area{
  padding: 38px 0 50px;
}

.admin-hero{
  margin-bottom: 14px;
}

.admin-hero__badge{
  display:inline-flex;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(6,182,212,.10);
  border: 1px solid rgba(6,182,212,.22);
  color: rgba(6,182,212,.95);
  font-weight: 900;
  font-size: 12px;
  letter-spacing: .02em;
}

.admin-hero__title{
  margin: 10px 0 8px;
  font-size: clamp(26px, 3vw, 38px);
  letter-spacing: -.03em;
  line-height: 1.08;
}

.admin-hero__subtitle{
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
  max-width: 80ch;
}

.admin-layout{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  align-items:start;
}

.admin-card{
  background:#fff;
  border:1px solid var(--border);
  border-radius: var(--radius);
  padding:16px;
  box-shadow: 0 12px 42px rgba(11,18,32,.06);
}

.admin-card__head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.admin-card__head h3{
  margin:0;
  font-size: 16px;
  letter-spacing: -.01em;
}

.admin-mini{ margin-top: 10px; }

.admin-table-wrap{
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow:auto;
  max-height: 320px; /* 5–10 рядків + скрол */
}

.admin-actions{ margin-top: 12px; }

.admin-actions--row{
  display:flex;
  gap: 10px;
  justify-content:flex-end;
  flex-wrap: wrap;
}

/* Draw / animation mock */
.draw-timeline{
  display:grid;
  gap: 12px;
}

.draw-step{
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 12px;
  background: rgba(11,18,32,.02);
}

.draw-step__title{
  font-weight: 900;
  font-size: 13px;
  color: rgba(11,18,32,.78);
  margin-bottom: 10px;
}

.draw-slot{
  display:flex;
  align-items:center;
  gap: 10px;
  padding: 12px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: #fff;
}

.draw-slot__text{
  font-weight: 800;
  letter-spacing: -.01em;
}

.draw-slot.is-running .draw-slot__text{ color: rgba(11,18,32,.70); }

.draw-slot.is-winner{
  border-color: rgba(22,163,74,.28);
  background: rgba(22,163,74,.06);
}

.draw-slot.is-winner .draw-slot__text{ color: rgba(11,18,32,.92); }

.draw-slot .spinner{ display:none; }
.draw-slot.is-running .spinner{ display:inline-block; }

.spinner{
  width: 18px;
  height: 18px;
  border-radius: 999px;
  border: 2px solid rgba(11,18,32,.18);
  border-top-color: rgba(124,58,237,.85);
  animation: spin 0.9s linear infinite;
}

@keyframes spin{ to{ transform: rotate(360deg); } }

.checks{
  margin-top: 10px;
  display:grid;
  gap: 8px;
}

.checkline{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: #fff;
}

.checkline__label{
  color: rgba(11,18,32,.82);
  font-size: 13px;
  line-height: 1.4;
}

.checkline__state{
  font-weight: 900;
  font-size: 12px;
  color: rgba(11,18,32,.60);
  display:flex;
  align-items:center;
  gap: 8px;
  white-space: nowrap;
}

.state-dot{
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: rgba(11,18,32,.18);
}

.checkline.is-running .checkline__state{ color: rgba(124,58,237,.95); }

.checkline.is-running .state-dot{
  background: rgba(124,58,237,.85);
  animation: pulse 1.1s ease-in-out infinite;
}

@keyframes pulse{
  0%,100%{ transform: scale(1); opacity: .65; }
  50%{ transform: scale(1.25); opacity: 1; }
}

.checkline.is-ok{
  border-color: rgba(22,163,74,.25);
  background: rgba(22,163,74,.06);
}

.checkline.is-ok .checkline__state{ color: rgba(22,163,74,.95); }
.checkline.is-ok .state-dot{ background: rgba(22,163,74,.85); animation: none; }

.checkmark{
  width: 18px;
  height: 18px;
  border-radius: 999px;
  display:grid;
  place-items:center;
  background: rgba(22,163,74,.14);
  border: 1px solid rgba(22,163,74,.28);
  color: rgba(22,163,74,.95);
  font-weight: 900;
  font-size: 12px;
}

.draw-final{
  border: 1px solid rgba(22,163,74,.22);
  background: rgba(22,163,74,.06);
  border-radius: 16px;
  padding: 12px;
}

.draw-final__title{
  font-weight: 900;
  letter-spacing: -.01em;
}

.winner-grid{
  margin-top: 10px;
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.winner-card{
  border: 1px solid rgba(11,18,32,.10);
  background: #fff;
  border-radius: 16px;
  padding: 12px;
}

.winner-card__title{
  font-weight: 900;
  font-size: 13px;
  color: rgba(11,18,32,.78);
}

.winner-card__name{
  margin-top: 6px;
  font-weight: 900;
  font-size: 16px;
  letter-spacing: -.01em;
}

.winner-card__meta{
  margin-top: 8px;
  display:grid;
  gap: 6px;
  color: rgba(11,18,32,.72);
  font-size: 13px;
}

.meta-pill{
  display:inline-flex;
  gap: 8px;
  align-items:center;
}

.meta-pill span{
  font-weight: 900;
  color: rgba(11,18,32,.85);
}

/* =========================
   Admin Draw UI (structured)
   ========================= */

.draw-overview{
  margin-bottom: 12px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: rgba(11,18,32,.02);
  padding: 12px;
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap: 12px;
}

.draw-overview__title{
  font-weight: 900;
  font-size: 13px;
  color: rgba(11,18,32,.78);
}

.draw-overview__desc{
  margin-top: 6px;
  color: rgba(11,18,32,.78);
  line-height: 1.55;
  font-size: 13px;
}

.draw-overview__hint{
  margin-top: 8px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

.draw-overview__right{
  width: min(320px, 100%);
}

.draw-progress{
  width: 100%;
  height: 10px;
  border-radius: 999px;
  border: 1px solid rgba(11,18,32,.10);
  background: rgba(11,18,32,.04);
  overflow:hidden;
}

.draw-progress__bar{
  height: 100%;
  width: 0%;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  transition: width .35s ease;
}

.draw-grid{
  display:grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.draw-card{
  border: 1px solid var(--border);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 12px 42px rgba(11,18,32,.06);
  overflow:hidden;
}

.draw-card__head{
  display:grid;
  grid-template-columns: auto 1fr auto;
  align-items:center;
  gap: 10px;
  padding: 12px;
  border-bottom: 1px solid var(--border);
  background: rgba(11,18,32,.02);
}

.draw-card__kicker{
  font-weight: 900;
  font-size: 11px;
  letter-spacing: .08em;
  color: rgba(11,18,32,.60);
}

.draw-card__title{
  font-weight: 900;
  letter-spacing: -.01em;
}

.draw-card__status{
  font-weight: 900;
  font-size: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(11,18,32,.10);
  background: rgba(11,18,32,.02);
  color: rgba(11,18,32,.70);
  white-space: nowrap;
}

/* (на будущее) классы статуса */
.draw-card__status.is-running{
  border-color: rgba(124,58,237,.20);
  background: rgba(124,58,237,.08);
  color: rgba(124,58,237,.95);
}
.draw-card__status.is-ok{
  border-color: rgba(22,163,74,.22);
  background: rgba(22,163,74,.10);
  color: rgba(22,163,74,.95);
}

.draw-card__body{
  padding: 12px;
  display:grid;
  gap: 12px;
}

.draw-card__block{
  border: 1px solid var(--border);
  border-radius: 14px;
  background: rgba(11,18,32,.02);
  padding: 12px;
}

.draw-card__blockTitle{
  font-weight: 900;
  font-size: 13px;
  color: rgba(11,18,32,.78);
  margin-bottom: 10px;
}

.draw-card__foot{
  padding: 10px 12px;
  border-top: 1px solid var(--border);
  background: rgba(11,18,32,.02);
}

.draw-card__note{
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

/* checks внутри блоков */
.draw-card .checks{ margin-top: 0; }

.draw-final__desc{
  margin-top: 6px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

/* =========================
   Admin mobile optimization
   ========================= */

@media (max-width: 980px){
  /* Уже добавляли часть, но усилим */
  .admin-layout{ grid-template-columns: 1fr; }
  .winner-grid{ grid-template-columns: 1fr; }
  .draw-overview{ flex-direction: column; }
  .draw-overview__right{ width: 100%; }
}

/* Телефон: делаем админку “как приложение” */
@media (max-width: 560px){
  .admin-area{
    padding: 18px 0 28px;
  }

  .admin-hero__title{
    font-size: 22px;
    line-height: 1.15;
  }

  .admin-hero__subtitle{
    font-size: 13px;
  }

  .admin-card{
    padding: 12px;
    border-radius: 16px;
  }

  .admin-card__head{
    gap: 8px;
    margin-bottom: 8px;
  }

  .admin-card__head h3{
    font-size: 15px;
  }

  /* Кнопки в админке: крупнее, удобнее */
  .admin-actions .btn--full{
    padding: 14px 14px;
    border-radius: 14px;
    font-size: 15px;
  }

  .admin-actions--row{
    justify-content: stretch;
  }
  .admin-actions--row .btn{
    width: 100%;
  }

  /* Список участников: компактнее, но читаемо + скролл */
  .admin-table-wrap{
    max-height: 240px; /* 5-8 строк на телефоне */
    border-radius: 14px;
  }

  /* Таблица на телефоне: уменьшаем минимальную ширину и шрифт */
  .table{
    min-width: 520px; /* чтобы горизонтальный скролл был, но не огромный */
  }
  .table--compact th, .table--compact td{
    padding: 8px 8px;
    font-size: 12px;
  }

  /* Хід розіграшу */
  .draw-overview{
    padding: 10px;
    border-radius: 14px;
  }
  .draw-overview__desc{
    font-size: 12.5px;
  }
  .draw-overview__hint{
    font-size: 12px;
  }

  .draw-card{
    border-radius: 16px;
  }

  .draw-card__head{
    grid-template-columns: 1fr; /* в одну колонку */
    align-items: start;
    gap: 6px;
  }

  .draw-card__kicker{
    font-size: 10px;
  }

  .draw-card__title{
    font-size: 15px;
  }

  .draw-card__status{
    justify-self: start;
    font-size: 12px;
    padding: 6px 10px;
  }

  .draw-card__body{
    padding: 10px;
    gap: 10px;
  }

  .draw-card__block{
    padding: 10px;
    border-radius: 14px;
  }

  .draw-card__blockTitle{
    font-size: 13px;
    margin-bottom: 8px;
  }

  /* Слот победителя — чтобы не был мелким */
  .draw-slot{
    padding: 12px;
    border-radius: 14px;
  }
  .draw-slot__text{
    font-size: 13px;
    line-height: 1.35;
  }

  /* Чек-линии — компактнее */
  .checkline{
    padding: 10px 10px;
    border-radius: 14px;
    gap: 8px;
  }
  .checkline__label{
    font-size: 12.5px;
  }
  .checkline__state{
    font-size: 12px;
  }

  /* Финал */
  .draw-final{
    padding: 12px;
    border-radius: 16px;
  }
  .draw-final__desc{
    font-size: 12.5px;
  }

  .winner-card{
    padding: 12px;
    border-radius: 16px;
  }
  .winner-card__name{
    font-size: 16px;
  }
}

/* Очень маленькие экраны */
@media (max-width: 380px){
  .admin-table-wrap{ max-height: 210px; }
  .table{ min-width: 480px; }
}



/* =========================
   Admin mobile FIX (force)
   ========================= */

@media (max-width: 980px){
  /* гарантированно 1 колонка и перенос вниз */
  .admin-area .admin-layout{
    display: grid !important;
    grid-template-columns: 1fr !important;
  }
}

/* Телефон: таблица -> карточки, без ширины больше экрана */
@media (max-width: 560px){
  /* контейнеры */
  .admin-area{ padding: 16px 0 26px !important; }
  .admin-area .admin-card{ padding: 12px !important; }

  /* убираем любые min-width у таблицы */
  .admin-area table.table{
    min-width: 0 !important;
    width: 100% !important;
  }

  /* делаем таблицу "карточками" */
  .admin-area #adminParticipantsTable,
  .admin-area #adminParticipantsTable thead,
  .admin-area #adminParticipantsTable tbody,
  .admin-area #adminParticipantsTable th,
  .admin-area #adminParticipantsTable td,
  .admin-area #adminParticipantsTable tr{
    display: block !important;
    width: 100% !important;
  }

  /* прячем шапку */
  .admin-area #adminParticipantsTable thead{
    display: none !important;
  }

  /* каждую строку как карточку */
  .admin-area #adminParticipantsTable tbody tr{
    border: 1px solid rgba(11,18,32,.10) !important;
    border-radius: 14px !important;
    background: #fff !important;
    padding: 10px !important;
    margin-bottom: 10px !important;
    box-shadow: 0 10px 30px rgba(11,18,32,.06) !important;
  }

  /* ячейки: label + value */
  .admin-area #adminParticipantsTable td{
    border: none !important;
    padding: 6px 0 !important;
    font-size: 13px !important;
    display: flex !important;
    justify-content: space-between !important;
    gap: 10px !important;
  }

  /* подписи для каждой “колонки” */
  .admin-area #adminParticipantsTable td:nth-child(1)::before{ content:"#"; }
  .admin-area #adminParticipantsTable td:nth-child(2)::before{ content:"Ім’я"; }
  .admin-area #adminParticipantsTable td:nth-child(3)::before{ content:"Телефон"; }
  .admin-area #adminParticipantsTable td:nth-child(4)::before{ content:"Instagram"; }
  .admin-area #adminParticipantsTable td:nth-child(5)::before{ content:"Час"; }

  .admin-area #adminParticipantsTable td::before{
    color: rgba(11,18,32,.60) !important;
    font-weight: 800 !important;
    font-size: 12px !important;
    flex: 0 0 auto !important;
  }

  .admin-area #adminParticipantsTable td{
    color: rgba(11,18,32,.88) !important;
    font-weight: 600 !important;
  }

  /* ограничим высоту списка, чтобы было 5–8 карточек + скролл */
  .admin-area .admin-table-wrap{
    max-height: 340px !important;
    overflow: auto !important;
    border-radius: 14px !important;
    padding-right: 2px !important;
  }

  /* кнопки — по одной в строку */
  .admin-area .admin-actions--row .btn{
    width: 100% !important;
  }

  /* блок "Хід розіграшу" — читаемо на телефоне */
  .admin-area .draw-card__head{
    grid-template-columns: 1fr !important;
  }
  .admin-area .draw-overview{
    flex-direction: column !important;
  }
  .admin-area .draw-overview__right{
    width: 100% !important;
  }
}

@media (max-width: 560px){
  /* таблица админки точно не шире экрана */
  .admin-area .admin-table-wrap{ overflow: visible !important; }
  .admin-area #adminParticipantsTable{ width: 100% !important; }
  .admin-area #adminParticipantsTable.table{ min-width: 0 !important; }
}

@media (max-width: 980px){
  .admin-area .admin-layout{
    grid-template-columns: 1fr !important;
  }
}


/* FIX: повернути скролл списку учасників в адмінці */
.admin-area .admin-table-wrap{
  overflow: auto !important;
  max-height: 320px !important;   /* на десктопі */
  border-radius: 14px !important;
  -webkit-overflow-scrolling: touch;
}

/* На телефоні — трохи нижче, щоб було видно 5–10 рядків і не займало екран */
@media (max-width: 560px){
  .admin-area .admin-table-wrap{
    max-height: 340px !important;
    overflow: auto !important;
  }

  /* таблиця не повинна роздувати контейнер */
  .admin-area #adminParticipantsTable{
    width: 100% !important;
  }
  .admin-area #adminParticipantsTable.table{
    min-width: 520px !important;  /* дозволяє горизонтальний скролл всередині wrap, а не “вилазити” */
  }
}

/* =========================
   Admin phone: no horizontal overflow + nice cards
   ========================= */

/* никогда не даём странице разъезжаться по X */
html, body { overflow-x: hidden; }

/* чтобы гриды/карты не выталкивали ширину */
.admin-area, .admin-area * { max-width: 100%; }
.admin-area .admin-layout,
.admin-area .admin-card { min-width: 0; }

@media (max-width: 560px){
  /* убираем min-width именно у админской таблицы */
  .admin-area #adminParticipantsTable,
  .admin-area #adminParticipantsTable.table{
    width: 100% !important;
    min-width: 0 !important;
  }

  /* если у тебя включён режим "карточек" (display:block на tr/td) —
     делаем строки переносимыми и не растягиваем по ширине */
  .admin-area #adminParticipantsTable tbody tr{
    overflow: hidden !important;
  }

  .admin-area #adminParticipantsTable td{
    /* вместо space-between (которое может раздувать ширину) — грид */
    display: grid !important;
    grid-template-columns: 110px 1fr !important; /* слева label, справа значение */
    align-items: start !important;
    gap: 10px !important;

    word-break: break-word !important;
    overflow-wrap: anywhere !important;
  }

  /* значения справа пусть переносятся */
  .admin-area #adminParticipantsTable td{
    font-size: 13px !important;
  }

  /* иногда именно Instagram ломает ширину — лечим */
  .admin-area #adminParticipantsTable td:nth-child(4){
    word-break: break-word !important;
    overflow-wrap: anywhere !important;
  }

  /* чуть компактнее список, чтобы выглядело как приложение */
  .admin-area .admin-table-wrap{
    max-height: 320px !important;
    overflow: auto !important;
    -webkit-overflow-scrolling: touch;
  }
}

/* Blur Instagram nick (admin table) */
.ig-wrap{
  display: inline;
  white-space: nowrap;
}

.ig-blur{
  display: inline-block;
  filter: blur(4px);
  opacity: .85;
  transform: translateZ(0);
  user-select: none;
  pointer-events: none;
}

/* На телефоне чуть сильнее, чтобы точно не читалось */
@media (max-width: 560px){
  .ig-blur{ filter: blur(5px); }
}