:root{
  --bg1:#0b1220;
  --bg2:#10263a;
  --bg3:#2a1436;

  --glass: rgba(255,255,255,.08);
  --glass2: rgba(255,255,255,.06);
  --stroke: rgba(255,255,255,.12);

  --text:#eaf0ff;
  --muted: rgba(234,240,255,.72);

  --g1:#2ad3ff;
  --g2:#7a7cff;
  --g3:#ff4fd8;
}

*{ box-sizing:border-box; }
html,body{ height:100%; }

body{
  margin:0;
  min-height:100vh;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color:var(--text);
  background:
    radial-gradient(1200px 700px at 15% 25%, rgba(42,211,255,.22), transparent 60%),
    radial-gradient(1200px 700px at 85% 20%, rgba(255,79,216,.18), transparent 55%),
    radial-gradient(900px 600px at 70% 70%, rgba(122,124,255,.18), transparent 60%),
    linear-gradient(140deg, var(--bg2), var(--bg1) 45%, var(--bg3));
  background-attachment: fixed;
  background-repeat:no-repeat;
  background-size: cover;
  overflow-x:hidden;
}

a{ color:inherit; text-decoration:none; }
img{ display:block; max-width:100%; height:auto; }

.container{
  width:min(1180px, calc(100% - 48px));
  margin:0 auto;
}

.muted{ color:var(--muted); }

/* ---------- TOPBAR ---------- */
.topbar{
  position:sticky;
  top:0;
  z-index:20;
  backdrop-filter: blur(12px);
  background: rgba(6,10,18,.55);
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.topbar__inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
  padding:14px 0;
  min-width:0;
  flex-wrap:wrap;
}

.brand{
  display:flex;
  align-items:center;
  gap:12px;
  min-width:0;
  flex:0 1 auto;
}

.brand__logo{
  width:44px;
  height:44px;
  border-radius:14px;
  object-fit:cover;
  box-shadow: 0 10px 30px rgba(0,0,0,.35);
  border: 1px solid rgba(255,255,255,.10);
  flex:0 0 auto;
}

.brand__text{
  min-width:0;
}

.brand__title{
  font-weight:800;
  letter-spacing:.5px;
  line-height:1.05;
  white-space:nowrap;
  font-size:15px;
}

.brand__sub{
  margin-top:3px;
  font-size:12px;
  color: rgba(234,240,255,.72);
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
  max-width: 360px;
}

.nav{
  display:flex;
  gap:18px;
  flex-wrap:wrap;
  align-items:center;
  justify-content:center;
  min-width:0;
  flex:1 1 auto;
}

.nav__link{
  font-size:14px;
  color: rgba(234,240,255,.78);
  padding:8px 10px;
  border-radius:12px;
  white-space:nowrap;
}

.nav__link:hover{
  background: rgba(255,255,255,.06);
  color: rgba(234,240,255,.95);
}

/* ---------- BUTTONS ---------- */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  padding:10px 16px;
  border-radius:16px;
  border:1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.06);
  color: rgba(234,240,255,.95);
  cursor:pointer;
  user-select:none;
  transition: transform .12s ease, background .12s ease, border-color .12s ease;
  font-weight:700;
  max-width:100%;
  min-width:0;
  text-align:center;
}

.btn:hover{ transform: translateY(-1px); background: rgba(255,255,255,.09); }
.btn:active{ transform: translateY(0); }

.btn--pill{ border-radius:999px; }
.btn--small{ padding:8px 12px; border-radius:14px; font-weight:700; }
.btn--wide{ width:100%; max-width:100%; }
.btn--ghost{ background: rgba(0,0,0,.12); border-color: rgba(255,255,255,.14); }

.btn--primary{
  border:none;
  color:#091018;
  background: linear-gradient(90deg, var(--g1), var(--g2), var(--g3));
  box-shadow: 0 18px 40px rgba(0,0,0,.35);
}

.btn--danger{
  border:1px solid rgba(255,79,216,.28);
  background: rgba(255,79,216,.10);
}

.btn--admin{
  background: rgba(255,255,255,.08);
  flex:0 0 auto;
}

/* ---------- CARDS ---------- */
.card{
  border-radius:24px;
  border:1px solid rgba(255,255,255,.12);
  box-shadow: 0 22px 70px rgba(0,0,0,.35);
  overflow:hidden;
  min-width:0;
}

.card--glass{
  background: linear-gradient(180deg, rgba(255,255,255,.09), rgba(255,255,255,.05));
  backdrop-filter: blur(14px);
  padding:16px;
}

.card__title{
  font-weight:900;
  font-size:18px;
  margin:0 0 14px;
  overflow-wrap:anywhere;
  word-break:break-word;
}

/* ---------- HERO ---------- */
.hero{
  padding:34px 0 18px;
  background:transparent;
}

.hero__grid{
  display:grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, .9fr);
  gap:26px;
  align-items:start;
  min-width:0;
}

.hero__left,
.hero__right{
  min-width:0;
}

.hero__right{
  width:100%;
}

.hero__h1{
  font-size:54px;
  line-height:1.02;
  margin:14px 0 12px;
  letter-spacing:.2px;
  overflow-wrap:anywhere;
  word-break:break-word;
}

.hero__p{
  margin:0 0 18px;
  color: rgba(234,240,255,.75);
  max-width:720px;
  overflow-wrap:anywhere;
  word-break:break-word;
  line-height:1.45;
}

.hero__cta{
  display:flex;
  gap:12px;
  flex-wrap:wrap;
}

.hero__chips{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  margin-top:14px;
}

.chip{
  padding:8px 12px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.12);
  background: rgba(0,0,0,.12);
  color: rgba(234,240,255,.84);
  font-size:13px;
  max-width:100%;
}

/* ---------- COACHLINES ---------- */
.coachline{
  display:grid;
  grid-template-columns: 56px minmax(0,1fr) auto;
  gap:12px;
  align-items:center;
  padding:12px;
  border-radius:18px;
  border:1px solid rgba(255,255,255,.10);
  background: rgba(0,0,0,.12);
  margin-bottom:12px;
  min-width:0;
}

.coachline__avatar{
  width:56px;
  height:56px;
  border-radius:16px;
  object-fit:cover;
  border:1px solid rgba(255,255,255,.12);
}

.coachline__info{ min-width:0; }

.coachline__name{
  font-weight:900;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  line-height:1.2;
}

.coachline__meta{
  font-size:13px;
  color: rgba(234,240,255,.72);
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  line-height:1.25;
}

.coachline__btn{
  white-space:nowrap;
  flex-shrink:0;
}

.hint{
  margin-top:10px;
  padding:12px 14px;
  border-radius:18px;
  border:1px dashed rgba(255,255,255,.18);
  color: rgba(234,240,255,.72);
  background: rgba(0,0,0,.10);
  overflow-wrap:anywhere;
}

/* ---------- SECTIONS ---------- */
.section{
  padding:26px 0 18px;
  background:transparent;
}

.section__head{
  display:flex;
  align-items:end;
  justify-content:space-between;
  gap:16px;
  flex-wrap:wrap;
  margin-bottom:14px;
  min-width:0;
}

.section__h2{
  font-size:44px;
  margin:0;
  letter-spacing:.2px;
  font-weight:900;
  text-align:left;
  overflow-wrap:anywhere;
  word-break:break-word;
}

.section__sub{
  color: rgba(234,240,255,.70);
  margin-top:8px;
  overflow-wrap:anywhere;
  word-break:break-word;
  line-height:1.45;
}

.weeknav{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  min-width:0;
}

/* ---------- SCHEDULE ---------- */
.schedule{ padding:16px; }

.schedule__grid{
  display:grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap:12px;
  min-width:0;
}

.day{
  border-radius:18px;
  border:1px solid rgba(255,255,255,.10);
  background: rgba(0,0,0,.12);
  padding:12px;
  min-height:140px;
  min-width:0;
}

.day__head{
  display:flex;
  flex-direction:column;
  gap:4px;
  margin-bottom:10px;
  min-width:0;
}

.day__dow{ font-weight:900; }
.day__date{ font-size:12px; color: rgba(234,240,255,.72); }

.slot{
  width:100%;
  max-width:100%;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  padding:10px 12px;
  border-radius:14px;
  border:1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.06);
  color: rgba(234,240,255,.92);
  cursor:pointer;
  margin-bottom:8px;
  min-width:0;
}

.slot:hover{ background: rgba(255,255,255,.09); }

.slot__meta{
  font-size:12px;
  color: rgba(234,240,255,.70);
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}

.schedule__note{
  margin-top:10px;
  color: rgba(234,240,255,.70);
  overflow-wrap:anywhere;
}

/* ---------- FORMS ---------- */
.form{ min-width:0; }
.form__row{ margin-bottom:12px; min-width:0; }

.form__label{
  display:block;
  font-size:13px;
  color: rgba(234,240,255,.74);
  margin-bottom:8px;
  overflow-wrap:anywhere;
  word-break:break-word;
  line-height:1.35;
}

.form__input,
.form__select,
.form__textarea{
  width:100%;
  max-width:100%;
  padding:12px 12px;
  border-radius:16px;
  border:1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.03);
  color: rgba(234,240,255,.92);
  outline:none;
  min-width:0;
  overflow:hidden;
  text-overflow:ellipsis;
}

.form__textarea{
  resize:vertical;
  overflow:auto;
  min-height:120px;
}

.form__input::placeholder,
.form__textarea::placeholder{
  color: rgba(234,240,255,.35);
}

.form__input:focus,
.form__select:focus,
.form__textarea:focus{
  border-color: rgba(122,124,255,.55);
}

.form__hint{
  margin-top:8px;
  font-size:12px;
  color: rgba(234,240,255,.60);
  overflow-wrap:anywhere;
  word-break:break-word;
  line-height:1.4;
}

.form__msg{
  margin-top:10px;
  min-height:20px;
  font-weight:800;
  overflow-wrap:anywhere;
  word-break:break-word;
}

/* ---------- BOOKING ---------- */
.booking__grid{
  display:grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap:22px;
  align-items:start;
  min-width:0;
}

.booking__left,
.booking__right{ min-width:0; }

.booking__h2{
  margin-bottom:14px;
}

.booking__rightCard{
  display:flex;
  flex-direction:column;
  gap:12px;
  min-height:520px;
  min-width:0;
}

.mybookings{
  flex:1;
  border-radius:18px;
  border:1px dashed rgba(255,255,255,.18);
  background: rgba(0,0,0,.10);
  padding:16px;
  overflow:auto;
  min-width:0;
}

.empty{
  height:100%;
  display:grid;
  place-items:center;
  color: rgba(234,240,255,.68);
  text-align:center;
  overflow-wrap:anywhere;
  word-break:break-word;
}

.myitem{
  padding:12px 12px;
  border-radius:16px;
  border:1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.06);
  margin-bottom:10px;
  min-width:0;
}

.myitem__t{
  font-weight:900;
  overflow-wrap:anywhere;
  word-break:break-word;
}
.myitem__m{
  font-size:12px;
  color: rgba(234,240,255,.70);
  margin-top:4px;
  overflow-wrap:anywhere;
  word-break:break-word;
  line-height:1.4;
}

/* ---------- TRAINERS ---------- */
.trainers__grid{
  display:grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap:18px;
  min-width:0;
}

.trainer{
  display:flex;
  gap:14px;
  align-items:flex-start;
  min-width:0;
}

.trainer__photo{
  width:120px;
  height:120px;
  border-radius:22px;
  object-fit:cover;
  border:1px solid rgba(255,255,255,.12);
  flex:0 0 auto;
}

.trainer__body{ min-width:0; }

.trainer__name{
  font-weight:900;
  font-size:18px;
  overflow-wrap:anywhere;
  word-break:break-word;
  line-height:1.25;
}

.trainer__sport{
  color: rgba(234,240,255,.70);
  margin-top:4px;
}

.trainer__list{
  margin:10px 0 0;
  padding-left:18px;
  color: rgba(234,240,255,.84);
  overflow-wrap:anywhere;
  word-break:break-word;
  line-height:1.55;
}

.trainer__top{
  margin-top:12px;
}

/* ---------- CONTACTS ---------- */
.contacts__grid{
  display:grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap:18px;
  min-width:0;
}

.contacts__grid .card{ min-width:0; }

.contacts__mapBlock{
  display:flex;
  flex-direction:column;
  gap:14px;
  min-width:0;
}

.contacts__mapTitle{
  font-size:44px;
  margin:0;
  letter-spacing:.2px;
  font-weight:900;
  text-align:left;
  overflow-wrap:anywhere;
  word-break:break-word;
}

.map{
  width:100%;
  border-radius:18px;
  overflow:hidden;
}

.map iframe{
  width:100%;
  height:320px;
  border:0;
  border-radius:18px;
  display:block;
}

.address{
  margin-top:10px;
  color: rgba(234,240,255,.72);
  overflow-wrap:anywhere;
  word-break:break-word;
  line-height:1.4;
}

/* ---------- FOOTER ---------- */
.footer{
  padding:22px 0 34px;
  border-top:1px solid rgba(255,255,255,.08);
  background: transparent;
  margin-top:20px;
}

.footer__inner{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:12px;
  min-width:0;
  flex-wrap:wrap;
}

/* ---------- ADMIN INPUT LOOK ---------- */
input[type="text"],
input[type="password"],
input[type="date"],
input[type="time"],
select,
textarea{
  max-width:100%;
}

.admin input,
.admin select,
.admin textarea{
  background: rgba(255,255,255,.03);
  border:1px solid rgba(255,255,255,.12);
  color: rgba(234,240,255,.92);
  border-radius:16px;
}

/* ---------- LOGIN PAGE FIX ---------- */
.login-page h1,
.login-container h1,
.admin-login h1{
  text-align:center;
  width:100%;
}

.login-page input[type="text"],
.login-page input[type="password"],
.login-container input[type="text"],
.login-container input[type="password"],
.admin-login input[type="text"],
.admin-login input[type="password"]{
  border-radius:20px;
  padding:12px 16px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.15);
  color:#eaf0ff;
  outline:none;
  transition:0.2s ease;
}

.login-page input:focus,
.login-container input:focus,
.admin-login input:focus{
  border-color: rgba(122,124,255,.6);
  background: rgba(255,255,255,0.10);
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1100px){
  .hero__grid{
    grid-template-columns: 1fr;
  }

  .hero__right{
    max-width:760px;
  }
}

@media (max-width: 980px){
  .schedule__grid{
    grid-template-columns: repeat(2, minmax(0,1fr));
  }

  .booking__grid,
  .trainers__grid,
  .contacts__grid{
    grid-template-columns: 1fr;
  }

  .hero__h1{ font-size:42px; }
  .section__h2{ font-size:36px; }
  .contacts__mapTitle{ font-size:36px; }

  .trainer{
    flex-direction:column;
  }

  .trainer__photo{
    width:100%;
    max-width:320px;
    height:260px;
  }

  .topbar__inner{
    justify-content:center;
  }

  .brand{
    width:100%;
    justify-content:center;
  }

  .btn--admin{
    order:3;
  }
}

@media (max-width: 700px){
  .topbar__inner{
    display:grid;
    grid-template-columns: 1fr;
    align-items:stretch;
    gap:12px;
    padding:12px 0;
  }

  .brand{
    width:100%;
    justify-content:flex-start;
    align-items:center;
    gap:10px;
  }

  .brand__logo{
    width:42px;
    height:42px;
  }

  .brand__title{
    font-size:15px;
  }

  .brand__sub{
    font-size:11px;
    max-width:100%;
  }

  .nav{
    justify-content:flex-start;
    width:100%;
    gap:8px 10px;
  }

  .nav__link{
    font-size:13px;
    padding:7px 9px;
  }

  .btn--admin{
    width:100%;
    order:3;
  }

  .hero__cta{
    flex-direction:column;
  }

  .hero__cta .btn{
    width:100%;
  }

  .weeknav{
    width:100%;
    display:grid;
    grid-template-columns: 1fr;
    gap:8px;
  }

  .weeknav .btn{
    width:100%;
  }

  .coachline{
    grid-template-columns: 56px 1fr;
    align-items:center;
  }

  .coachline__name,
  .coachline__meta{
    white-space:normal;
    overflow:visible;
    text-overflow:clip;
  }

  .coachline__btn{
    grid-column:1 / -1;
    width:100%;
  }
}

@media (max-width: 520px){
  .container{
    width:min(1180px, calc(100% - 24px));
  }

  .topbar__inner{
    gap:10px;
    padding:10px 0;
  }

  .brand{
    justify-content:flex-start;
  }

  .brand__logo{
    width:40px;
    height:40px;
  }

  .brand__title{
    font-size:14px;
  }

  .brand__sub{
    font-size:10px;
    max-width:220px;
  }

  .hero{
    padding:22px 0 12px;
  }

  .hero__h1{
    font-size:30px;
    line-height:1.1;
    margin:8px 0 12px;
  }

  .hero__p{
    font-size:15px;
    line-height:1.45;
  }

  .section{
    padding:18px 0 12px;
  }

  .section__h2{
    font-size:24px;
    line-height:1.12;
  }

  .contacts__mapTitle{
    font-size:24px;
    line-height:1.12;
  }

  .card--glass{
    padding:14px;
  }

  .schedule__grid{
    grid-template-columns: 1fr;
  }

  .slot{
    flex-direction:column;
    align-items:flex-start;
  }

  .slot__meta{
    white-space:normal;
    overflow:visible;
    text-overflow:clip;
  }

  .day{
    min-height:auto;
  }

  .trainer__photo{
    width:100%;
    max-width:none;
    height:auto;
    aspect-ratio: 4 / 3;
    object-fit:contain;
    background: rgba(0,0,0,.18);
    padding:8px;
  }

  .trainer__top{
    width:100%;
  }

  .map iframe{
    height:240px;
  }

  .footer__inner{
    flex-direction:column;
    align-items:flex-start;
  }

  .btn,
  .btn--wide{
    width:100%;
    max-width:100%;
  }
}

@media (max-width: 390px){
  .hero__h1{
    font-size:26px;
  }

  .hero__p{
    font-size:14px;
  }

  .section__h2,
  .contacts__mapTitle{
    font-size:22px;
  }

  .nav{
    gap:6px 8px;
  }

  .nav__link{
    font-size:12px;
    padding:6px 8px;
  }

  .chip{
    font-size:12px;
    padding:7px 10px;
  }

  .trainer__photo{
    aspect-ratio: 1 / 1;
    object-fit:contain;
  }

  .map iframe{
    height:220px;
  }
}