:root{
  --bg: #0b1020;
  --panel: rgba(255,255,255,.06);
  --panel2: rgba(255,255,255,.09);
  --stroke: rgba(255,255,255,.12);
  --text: rgba(255,255,255,.92);
  --muted: rgba(255,255,255,.68);
  --accent: #8b5cf6;
  --accent2: #22c55e;
  --warn: #f59e0b;
  --danger: #ef4444;
  --shadow: 0 12px 34px rgba(0,0,0,.45);
  --r: 16px;
  --r2: 22px;
  --maxw: 1080px;
}

*{ box-sizing: border-box; }
html,body{ height: 100%; }
body{
  margin: 0;
  background:
    radial-gradient(1100px 600px at 10% -10%, rgba(139,92,246,.35), transparent 60%),
    radial-gradient(900px 500px at 90% 0%, rgba(34,197,94,.25), transparent 60%),
    radial-gradient(900px 600px at 40% 110%, rgba(245,158,11,.18), transparent 55%),
    var(--bg);
  color: var(--text);
  font: 16px/1.45 ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji","Segoe UI Emoji";
}

a{ color: inherit; text-decoration: none; }
a:hover{ text-decoration: underline; }

.container{
  width: min(var(--maxw), calc(100% - 32px));
  margin: 0 auto;
}

.topbar{
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(14px);
  background: linear-gradient(to bottom, rgba(11,16,32,.85), rgba(11,16,32,.55));
  border-bottom: 1px solid var(--stroke);
}

.topbar__inner{
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  gap: 14px;
}

.brand{
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 220px;
}
.brand__mark{
  width: 42px; height: 42px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-weight: 800;
  background: linear-gradient(135deg, rgba(139,92,246,.9), rgba(34,197,94,.75));
  box-shadow: var(--shadow);
}
.brand__title{ font-weight: 800; letter-spacing: .2px; }
.brand__subtitle{ color: var(--muted); font-size: 13px; margin-top: 1px; }

.topbar__nav{
  display: none;
  gap: 14px;
}
.topbar__link{
  color: var(--muted);
  font-size: 14px;
  padding: 8px 10px;
  border-radius: 12px;
  border: 1px solid transparent;
}
.topbar__link:hover{
  color: var(--text);
  background: rgba(255,255,255,.05);
  border-color: rgba(255,255,255,.09);
}

.hero{
  padding: 22px 0 8px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.hero h1{
  margin: 0;
  font-size: clamp(28px, 3.6vw, 44px);
  letter-spacing: -0.6px;
}
.hero p{
  margin: 10px 0 0;
  color: var(--muted);
  max-width: 62ch;
}
.hero__meta{
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}
.pill{
  font-size: 12px;
  color: rgba(255,255,255,.82);
  border: 1px solid rgba(255,255,255,.13);
  background: rgba(255,255,255,.06);
  padding: 6px 10px;
  border-radius: 999px;
}

.hero__stats{
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}
.stat{
  background: var(--panel);
  border: 1px solid var(--stroke);
  border-radius: var(--r2);
  padding: 14px 14px;
  box-shadow: var(--shadow);
}
.stat__kpi{
  font-size: 26px;
  font-weight: 800;
}
.stat__label{
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
}

.section{
  margin: 22px 0;
}
.section__head{
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}
.section__head h2{
  margin: 0;
  font-size: 22px;
}
.muted{ color: var(--muted); margin: 6px 0 0; }
.section__right{
  display: flex;
  align-items: center;
  gap: 10px;
}
.badge{
  width: 42px; height: 42px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  font-weight: 900;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.14);
}

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

.card{
  background: var(--panel);
  border: 1px solid var(--stroke);
  border-radius: var(--r2);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.card__media{
  aspect-ratio: 16 / 9;
  width: 100%;
  background: rgba(255,255,255,.04);
  border-bottom: 1px solid rgba(255,255,255,.10);
}
.card__media img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.card__body{
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.card__titleRow{
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}
.card__title{
  font-weight: 800;
  letter-spacing: .2px;
}
.card__meta{
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
}
.metaPill{
  padding: 5px 9px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.05);
}
.card__actions{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.btn{
  appearance: none;
  border: 1px solid rgba(255,255,255,.15);
  background: rgba(255,255,255,.06);
  color: var(--text);
  border-radius: 14px;
  padding: 10px 12px;
  font-weight: 700;
  cursor: pointer;
}
.btn:hover{ background: rgba(255,255,255,.09); }
.btn:disabled{
  opacity: .55;
  cursor: not-allowed;
}

.btn--primary{
  border-color: rgba(139,92,246,.65);
  background: linear-gradient(135deg, rgba(139,92,246,.85), rgba(34,197,94,.35));
}
.btn--primary:hover{ filter: brightness(1.05); }

.card__link{
  color: rgba(255,255,255,.86);
  font-size: 14px;
  text-decoration: underline;
  text-decoration-color: rgba(255,255,255,.25);
}

.card--info{
  padding: 14px;
}
.howto{
  margin: 10px 0 0;
  padding-left: 18px;
  color: rgba(255,255,255,.86);
}
.howto li{ margin: 6px 0; }

.modal{
  position: fixed;
  inset: 0;
  display: none;
  z-index: 50;
}
.modal[aria-hidden="false"]{ display: grid; }
.modal__backdrop{
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.62);
  backdrop-filter: blur(6px);
}
.modal__panel{
  position: relative;
  margin: auto;
  width: min(560px, calc(100% - 26px));
  background: rgba(12,16,30,.92);
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 22px;
  box-shadow: 0 18px 48px rgba(0,0,0,.58);
  overflow: hidden;
}
.modal__head{
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  padding: 14px 14px 10px;
  border-bottom: 1px solid rgba(255,255,255,.12);
}
.modal__title{ font-weight: 900; font-size: 18px; }
.modal__subtitle{ color: var(--muted); font-size: 13px; margin-top: 2px; }
.iconbtn{
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(255,255,255,.06);
  color: var(--text);
  border-radius: 12px;
  padding: 8px 10px;
  cursor: pointer;
}
.iconbtn:hover{ background: rgba(255,255,255,.09); }

.modal__body{ padding: 14px; display: grid; gap: 12px; }
.step{ display: grid; gap: 8px; }
.hidden{ display: none !important; }

.label{ color: rgba(255,255,255,.82); font-weight: 700; font-size: 13px; }
.input{
  width: 100%;
  padding: 12px 12px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.16);
  background: rgba(255,255,255,.05);
  color: var(--text);
  outline: none;
}
.input:focus{
  border-color: rgba(139,92,246,.7);
  box-shadow: 0 0 0 4px rgba(139,92,246,.15);
}
.hint{
  color: var(--muted);
  font-size: 12px;
}
.row{
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.alert{
  border: 1px solid rgba(239,68,68,.35);
  background: rgba(239,68,68,.12);
  color: rgba(255,255,255,.92);
  padding: 10px 12px;
  border-radius: 14px;
}
.success{
  border: 1px solid rgba(34,197,94,.35);
  background: rgba(34,197,94,.12);
  color: rgba(255,255,255,.92);
  padding: 10px 12px;
  border-radius: 14px;
}
.callout{
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.06);
  color: rgba(255,255,255,.88);
  padding: 10px 12px;
  border-radius: 14px;
}

.toast{
  position: fixed;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  background: rgba(12,16,30,.92);
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 999px;
  padding: 10px 14px;
  box-shadow: 0 18px 42px rgba(0,0,0,.55);
  display: none;
  z-index: 60;
  max-width: min(560px, calc(100% - 24px));
  color: rgba(255,255,255,.9);
  font-weight: 700;
}

/* >= 720px */
@media (min-width: 720px){
  .topbar__nav{ display: flex; }
  .hero{ grid-template-columns: 1.4fr .9fr; align-items: end; padding: 28px 0 10px; }
  .hero__stats{ grid-template-columns: 1fr; }
  .grid{ grid-template-columns: 1fr 1fr; }
}

/* >= 1024px */
@media (min-width: 1024px){
  .grid{ grid-template-columns: 1fr 1fr 1fr; }
  .hero__stats{ grid-template-columns: 1fr 1fr 1fr; }
}
