
:root{
  --bg:#0b1220;
  --panel:#121c2e;
  --panel-2:#17253c;
  --text:#e8eef8;
  --muted:#aab7cb;
  --accent:#d4af37;
  --accent-2:#2f6fed;
  --border:rgba(255,255,255,.1);
  --success:#1f9d55;
  --max:1180px;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  font-family:Arial, Helvetica, sans-serif;
  background:
    radial-gradient(circle at top left, rgba(47,111,237,.16), transparent 35%),
    radial-gradient(circle at top right, rgba(247,181,0,.12), transparent 28%),
    linear-gradient(180deg, #0b1220 0%, #0d1525 100%);
  color:var(--text);
  line-height:1.6;
}
a{text-decoration:none;color:inherit}
img{max-width:100%;display:block}
.container{width:min(var(--max), calc(100% - 2rem)); margin:0 auto}
.topbar{
  position:sticky; top:0; z-index:10;
  background:rgba(8,12,22,.78);
  border-bottom:1px solid var(--border);
  backdrop-filter: blur(10px);
}
.topbar-inner{
  display:flex; justify-content:space-between; align-items:center;
  gap:1rem; padding:1rem 0;
}
.brand{
  display:flex; align-items:center; gap:.8rem; font-weight:800; color:#fff;
}
.brand-mark{
  width:42px;height:42px;border-radius:12px;
  display:grid;place-items:center;
  background:linear-gradient(135deg, var(--accent-2), #60a5fa);
  box-shadow:0 10px 30px rgba(47,111,237,.35);
}
.user-pill{
  display:inline-flex;align-items:center;gap:.6rem;
  padding:.7rem 1rem;border-radius:999px;
  background:rgba(255,255,255,.05);
  border:1px solid var(--border);
  color:var(--muted);font-size:.95rem;
}
.hero{padding:2.5rem 0 1.5rem}
.hero-grid{display:grid;grid-template-columns:1.2fr .8fr;gap:1.25rem}
.panel{
  background:linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.02));
  border:1px solid var(--border);
  border-radius:26px;
  padding:1.5rem;
  box-shadow:0 18px 45px rgba(0,0,0,.2);
}
.eyebrow{
  display:inline-block;
  padding:.4rem .75rem;
  border-radius:999px;
  font-size:.9rem;
  color:#bfd3ff;
  background:rgba(47,111,237,.14);
  border:1px solid rgba(47,111,237,.22);
}
h1,h2,h3{line-height:1.15; margin:0 0 .75rem}
h1{font-size:clamp(2rem, 4vw, 3.6rem)}
h2{font-size:clamp(1.5rem, 3vw, 2.2rem)}
h3{font-size:1.05rem}
.lead,.muted{color:var(--muted)}
.btn-row{display:flex;gap:.8rem;flex-wrap:wrap;margin-top:1.2rem}
.btn{
  display:inline-flex;align-items:center;justify-content:center;
  padding:.9rem 1.2rem;border-radius:14px;font-weight:700;
  border:1px solid transparent;transition:.2s ease;
}
.btn:hover{transform:translateY(-1px)}
.btn-primary{
  background:linear-gradient(180deg, #ffd34a 0%, var(--accent) 100%);
  color:#1a2434;
}
.btn-secondary{
  background:rgba(255,255,255,.04);
  color:#fff;
  border-color:var(--border);
}
.btn-danger{
  background:rgba(226,91,82,.15);
  color:#ffd2ce;
  border-color:rgba(226,91,82,.3);
}
.badge-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:.9rem;margin-top:1rem}
.badge{
  padding:1rem;border-radius:18px;background:rgba(255,255,255,.04);
  border:1px solid var(--border)
}
.badge b{display:block;font-size:1.15rem}
.section{padding:1rem 0 2rem}
.grid-2{display:grid;grid-template-columns:repeat(2,1fr);gap:1rem}
.grid-4{display:grid;grid-template-columns:repeat(4,1fr);gap:1rem}
.card{
  background:linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.02));
  border:1px solid var(--border);
  border-radius:22px;
  padding:1.2rem;
}
.kicker{
  color:#ffd86d;font-size:.85rem;font-weight:700;letter-spacing:.04em;text-transform:uppercase
}
.card p{color:var(--muted); margin:.4rem 0 0}
.module-number{
  width:42px;height:42px;border-radius:12px;
  display:grid;place-items:center;
  background:rgba(247,181,0,.14);
  border:1px solid rgba(247,181,0,.2);
  color:#ffd86d;font-weight:800;
  margin-bottom:.9rem;
}
.lesson-list{
  list-style:none;padding:0;margin:1rem 0 0;display:grid;gap:.7rem
}
.lesson-list li{
  padding:.8rem .9rem;border-radius:14px;
  background:rgba(255,255,255,.03);border:1px solid var(--border);
  color:var(--muted)
}
.callout{
  border-left:4px solid var(--accent);
  padding:1rem 1rem 1rem 1.1rem;
  border-radius:0 18px 18px 0;
  background:rgba(247,181,0,.08);
  color:#f4f7fc
}
.progress{
  height:12px;background:rgba(255,255,255,.06);border-radius:999px;overflow:hidden;
  border:1px solid var(--border); margin-top:.8rem
}
.progress > span{
  display:block;height:100%;width:25%;
  background:linear-gradient(90deg, var(--accent-2), #7ab2ff)
}
.footer{padding:2rem 0 3rem;text-align:center;color:var(--muted)}
.small{font-size:.94rem;color:var(--muted)}
.video-box,.resource-box,.quiz-box{
  border:1px dashed rgba(255,255,255,.18);
  border-radius:20px;padding:1rem;background:rgba(255,255,255,.02)
}
.resource-links{display:grid;grid-template-columns:repeat(3,1fr);gap:.8rem;margin-top:1rem}
.resource-links a{
  display:block;padding:1rem;border-radius:16px;background:rgba(255,255,255,.04);
  border:1px solid var(--border);font-weight:700
}
.form-card{
  max-width:520px; margin:4rem auto;
  background:linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.02));
  border:1px solid var(--border); border-radius:28px; padding:2rem;
  box-shadow:0 18px 45px rgba(0,0,0,.25);
}
.form-card input{
  width:100%; padding:1rem; margin:.45rem 0 1rem; border-radius:14px;
  border:1px solid var(--border); background:rgba(255,255,255,.05); color:#fff;
}
label{display:block; font-weight:700; margin-top:.4rem}
.notice, .error{
  margin:0 0 1rem; padding:1rem; border-radius:16px;
}
.notice{background:rgba(31,157,85,.12); border:1px solid rgba(31,157,85,.22); color:#c6f4db}
.error{background:rgba(226,91,82,.12); border:1px solid rgba(226,91,82,.22); color:#ffd6d2}
code.inline{
  background:rgba(255,255,255,.08); padding:.15rem .45rem; border-radius:8px
table.module-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 6px;
}

table.module-table th {
  text-align: left;
  padding: 6px 12px;
}

table.module-table td {
  padding: 6px 12px !important;
}

table.module-table tr {
  height: auto !important;
}

table.module-table td:first-child {
  border-radius: 10px 0 0 10px;
}

table.module-table td:last-child {
  border-radius: 0 10px 10px 0;
}
@media (max-width: 980px){
  .hero-grid,.grid-2,.grid-4,.resource-links{grid-template-columns:1fr 1fr}
}
@media (max-width: 700px){
  .topbar-inner,.hero-grid,.grid-2,.grid-4,.resource-links{grid-template-columns:1fr;display:grid}
  .topbar-inner{gap:.8rem}
  .badge-grid{grid-template-columns:1fr}
}
/* Embedded media players */
.media-section {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255,255,255,.12);
}

.video-frame {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.15);
  background: rgba(0,0,0,.25);
}

.video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
@media (max-width: 600px) {
  .module-table {
    display: block;
    width: 100%;
    overflow-x: auto;
    white-space: nowrap;
  }

  .module-table td:last-child {
    min-width: 210px;
  }

  .module-table .btn-row {
    display: flex;
    flex-direction: column;
    gap: 6px;
  }

  .module-table .btn,
  .module-table button.btn {
    width: 100%;
    font-size: 13px;
    padding: 8px 10px;
  }
}
/* Version 1.1 - Admin Brothers mobile/table cleanup */
.brothers-admin-table input {
  margin: 0;
}

@media (max-width: 700px) {
  .brothers-admin-table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }

  .brothers-admin-table th,
  .brothers-admin-table td {
    padding: 6px !important;
  }

  .brothers-admin-table .btn-row {
    justify-content: flex-start;
    flex-wrap: nowrap;
  }

  .brothers-admin-table .btn,
  .brothers-admin-table button.btn {
    width: auto;
    padding: 7px 10px;
    font-size: 13px;
  }
}
/* Version 1.2 - Admin Brothers readable edit cards */
.brother-edit-card.open-slot {
  border-color: rgba(212,175,55,.45);
}

.brother-edit-card.open-slot h3 {
  color: #f4d46b;
}

@media (min-width: 900px) {
  .brother-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }

  .brother-edit-card {
    margin-bottom: 0 !important;
  }
}
