/* === Trainer Site Styles === */
:root{
  --bg:#0b0f14;
  --text:#e8eef6;
  --muted:#9fb0c5;
  --border:rgba(255,255,255,.08);

  --green:#2ecc71;
  --red:#ff4d4d;
  --blue:#4ea1ff;
  --gray:#7c8aa0;
  --yellow:#ffcc66;
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial;
  background:
    radial-gradient(1200px 800px at 15% 0%, rgba(78,161,255,0.18), transparent 55%),
    radial-gradient(1000px 700px at 85% 20%, rgba(46,204,113,0.16), transparent 55%),
    var(--bg);
  color:var(--text);
}

a{color:inherit; text-decoration:none}
button,input,select,textarea{font:inherit}
.container{max-width:1100px; margin:0 auto; padding:22px}

.topbar{
  position:sticky; top:0; z-index:20;
  backdrop-filter:blur(10px);
  background:rgba(11,15,20,.75);
  border-bottom:1px solid var(--border);
}
.topbar-inner{
  display:flex; align-items:center; justify-content:space-between; gap:14px;
  padding:12px 22px; max-width:1100px; margin:0 auto;
}
.brand{display:flex; align-items:center; gap:10px}
.brand-badge{
  width:34px; height:34px; border-radius:12px;
  background: linear-gradient(135deg, rgba(78,161,255,.9), rgba(46,204,113,.9));
  box-shadow:0 10px 30px rgba(78,161,255,.15);
}
.brand-title{font-weight:800; letter-spacing:.2px}
.brand-sub{color:var(--muted); font-size:12px; margin-top:2px}

.nav{display:flex; gap:8px; flex-wrap:wrap; align-items:center}
.nav a{
  color:var(--muted);
  padding:8px 10px;
  border-radius:12px;
  border:1px solid transparent;
}
.nav a.active{
  color:var(--text);
  border-color:var(--border);
  background:rgba(255,255,255,.04);
}

.card{
  background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.03));
  border:1px solid var(--border);
  border-radius:18px;
  padding:18px;
  box-shadow:0 14px 40px rgba(0,0,0,.25);
}

.grid2{display:grid; grid-template-columns:1.15fr .85fr; gap:16px}
@media (max-width: 900px){ .grid2{grid-template-columns:1fr} }

.h1{font-size:34px; margin:0 0 8px; letter-spacing:-.6px}
.h2{font-size:18px; margin:0 0 10px}
.p{color:var(--muted); line-height:1.55; margin:0 0 10px}
.p strong{color:var(--text)}

.row{display:flex; gap:10px; flex-wrap:wrap; align-items:center}
.spread{display:flex; justify-content:space-between; align-items:center; gap:12px; flex-wrap:wrap}

.btn{
  border:1px solid var(--border);
  background:rgba(255,255,255,.06);
  color:var(--text);
  padding:10px 12px;
  border-radius:14px;
  cursor:pointer;
}
.btn.primary{
  background: linear-gradient(135deg, rgba(78,161,255,.85), rgba(46,204,113,.85));
  border-color:transparent;
}
.btn.danger{
  background:rgba(255,77,77,.12);
  border-color:rgba(255,77,77,.25);
}
.btn:disabled{opacity:.55; cursor:not-allowed}

.input,.select,.textarea{
  width:100%;
  padding:10px 12px;
  border-radius:12px;
  border:1px solid var(--border);
  background:rgba(255,255,255,.04);
  color:var(--text);
  outline:none;
}
.textarea{min-height:90px; resize:vertical}
.hr{height:1px; background:var(--border); margin:14px 0}
.small{color:var(--muted); font-size:13px}
.warn{color:rgba(255,204,102,.95); font-size:13px}

.legend{display:flex; gap:10px; flex-wrap:wrap}
.leg{display:inline-flex; align-items:center; gap:8px; color:var(--muted); font-size:13px}
.dot{width:10px; height:10px; border-radius:999px}
.dot.green{background:var(--green)}
.dot.red{background:var(--red)}
.dot.blue{background:var(--blue)}
.dot.gray{background:var(--gray)}

/* Calendar */
.calWrap{overflow:auto; border-radius:16px; border:1px solid var(--border)}
.cal{
  min-width:920px;
  display:grid;
  grid-template-columns:90px repeat(7, 1fr);
  background:rgba(255,255,255,.02);
}
.headCell{
  padding:10px;
  border-bottom:1px solid var(--border);
  border-right:1px solid var(--border);
  background:rgba(255,255,255,.03);
  position:sticky; top:0; z-index:3;
}
.headCell:first-child{left:0; z-index:4; position:sticky}
.timeCell{
  padding:10px;
  border-bottom:1px solid var(--border);
  border-right:1px solid var(--border);
  color:var(--muted);
  background:rgba(255,255,255,.02);
  position:sticky; left:0; z-index:2;
}
.slot{
  padding:10px;
  border-bottom:1px solid var(--border);
  border-right:1px solid var(--border);
  cursor:pointer;
  user-select:none;
}
.slot:hover{filter:brightness(1.1)}
.slot.free{background:rgba(46,204,113,.18)}
.slot.single{background:rgba(255,77,77,.18)}
.slot.common{background:rgba(78,161,255,.18)}
.slot.blocked{background:rgba(124,138,160,.20); cursor:not-allowed}
.slot .mini{font-size:12px; color:rgba(255,255,255,.85)}
.slot .sub{margin-top:6px; font-size:12px; color:rgba(255,255,255,.75)}

.gallery{
  display:grid;
  grid-template-columns:repeat(3, 1fr);
  gap:12px;
}
@media (max-width: 900px){ .gallery{grid-template-columns:repeat(2,1fr)} }
@media (max-width: 560px){ .gallery{grid-template-columns:1fr} }

.progressCard img{
  width:100%; height:190px; object-fit:cover;
  border-radius:14px;
  border:1px solid var(--border);
}

.aboutBlock{
  border:1px solid var(--border);
  background:rgba(255,255,255,.03);
  border-radius:16px;
  padding:12px;
}
.aboutBlock img{
  width:100%;
  height:240px;
  object-fit:cover;
  border-radius:14px;
  border:1px solid var(--border);
}
.aboutBlock iframe,
.aboutBlock video{
  width:100%;
  height:320px;
  border-radius:14px;
  border:1px solid var(--border);
  background:#000;
}

/* Modals */
.modalOverlay{
  position:fixed; inset:0;
  background:rgba(0,0,0,.62);
  display:none;
  align-items:center; justify-content:center;
  padding:20px; z-index:50;
}
.modal{
  width:min(860px,100%);
  border-radius:18px;
  border:1px solid var(--border);
  background: linear-gradient(180deg, rgba(18,26,36,.96), rgba(15,22,32,.96));
  box-shadow:0 18px 60px rgba(0,0,0,.55);
  padding:16px;
}
.modalTitle{font-size:18px; margin:0 0 8px}
.cols2{display:grid; grid-template-columns:1fr 1fr; gap:12px}
@media (max-width: 700px){ .cols2{grid-template-columns:1fr} }

/* Dropdown opened list readability */
select option{
  color:#0b0f14;
  background:#ffffff;
}


/* Profile avatar in top-left */
.brand-badge{
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.brand-badge.has-photo{
  box-shadow:0 10px 30px rgba(0,0,0,.35);
}
