:root{
  --bg:#0b1220;
  --card:#111b2e;
  --card2:#0f192b;
  --text:#e9f0ff;
  --muted:#b8c7ff;
  --brand:#5eead4;
  --brand2:#60a5fa;
  --danger:#fb7185;
  --ok:#34d399;
  --shadow: 0 10px 30px rgba(0,0,0,.35);
  --radius: 18px;
  --font: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
}

*{box-sizing:border-box}

body{
  margin:0;
  font-family: var(--font);
  background:
    radial-gradient(1200px 700px at 20% 10%, rgba(96,165,250,.18), transparent 55%),
    radial-gradient(1000px 600px at 90% 20%, rgba(94,234,212,.14), transparent 60%),
    var(--bg);
  color:var(--text);
}

a{color:inherit}

.wrap{
  max-width:1100px;
  margin:0 auto;
  padding:24px;
}

/* =========================
   Top bar
   ========================= */
.topbar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:14px 18px;
  border-radius:var(--radius);
  background:rgba(17,27,46,.75);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow);
  gap:12px;
}

.brand{
  display:flex;
  align-items:center;
  gap:10px;
  font-weight:800;
  letter-spacing:.2px;
}

.logo{
  width:38px;
  height:38px;
  border-radius:12px;
  background: linear-gradient(135deg, var(--brand), var(--brand2));
  box-shadow: 0 8px 22px rgba(96,165,250,.22);
}

.pill{
  padding:8px 12px;
  border-radius:999px;
  background:rgba(96,165,250,.12);
  border:1px solid rgba(96,165,250,.25);
  color:var(--muted);
  font-size:13px;
  white-space:nowrap;
}

/* =========================
   Grid system
   ========================= */
.grid{
  display:grid;
  gap:18px;
  margin-top:18px;
}

/* Mobile stays EXACTLY the same */
@media (max-width: 900px){
  .grid{
    grid-template-columns:1fr;
  }
}

/* =========================
   Cards
   ========================= */
.card{
  background:rgba(17,27,46,.72);
  border:1px solid rgba(184,199,255,.12);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding:18px;
}

h1,h2,h3{margin:0 0 12px 0}
h1{font-size:28px}
h2{font-size:18px;color:var(--muted)}

p{
  margin:0 0 12px 0;
  color:rgba(233,240,255,.88);
  line-height:1.5;
}

/* =========================
   Buttons
   ========================= */
.btnrow{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  margin-top:12px;
}

.btn{
  appearance:none;
  border:0;
  cursor:pointer;
  padding:12px 14px;
  border-radius:14px;
  font-weight:700;
  background: linear-gradient(135deg, rgba(94,234,212,.92), rgba(96,165,250,.92));
  color:#081024;
  box-shadow: 0 10px 20px rgba(96,165,250,.14);
}

.btn.secondary{
  background:rgba(184,199,255,.10);
  border:1px solid rgba(184,199,255,.18);
  color:var(--text);
  box-shadow:none;
}

.btn.danger{
  background: rgba(251,113,133,.14);
  border:1px solid rgba(251,113,133,.35);
  color: var(--text);
  box-shadow:none;
}

/* =========================
   Forms
   ========================= */
.field{
  display:flex;
  flex-direction:column;
  gap:6px;
  margin:10px 0;
}

label{
  font-size:13px;
  color:var(--muted);
}

input, select, textarea{
  padding:12px 12px;
  border-radius:14px;
  border:1px solid rgba(184,199,255,.16);
  background:rgba(15,25,43,.9);
  color:var(--text);
  outline:none;
}

input:focus, select:focus, textarea:focus{
  border-color: rgba(94,234,212,.5);
}

/* =========================
   Notices
   ========================= */
.notice{
  padding:12px 14px;
  border-radius:14px;
  margin:10px 0;
  border:1px solid rgba(184,199,255,.14);
  background:rgba(96,165,250,.08);
  color:rgba(233,240,255,.92);
}

.notice.ok{
  background:rgba(52,211,153,.10);
  border-color:rgba(52,211,153,.28);
}

.notice.bad{
  background:rgba(251,113,133,.10);
  border-color:rgba(251,113,133,.28);
}

/* =========================
   Children grid
   ========================= */
.kids-grid{
  display:grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap:12px;
  margin-top:12px;
}

@media (max-width: 900px){
  .kids-grid{grid-template-columns: repeat(2, minmax(0, 1fr));}
}

@media (max-width: 520px){
  .kids-grid{grid-template-columns:1fr;}
}

.kid{
  padding:16px;
  border-radius:18px;
  background:rgba(15,25,43,.88);
  border:1px solid rgba(184,199,255,.14);
  cursor:pointer;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
}

.kid strong{font-size:18px}
.kid small{color:var(--muted)}

.bubble{
  width:44px;
  height:44px;
  border-radius:16px;
  background: linear-gradient(135deg, rgba(96,165,250,.35), rgba(94,234,212,.30));
  border:1px solid rgba(184,199,255,.18);
}

/* =========================
   Footer
   ========================= */
.footer{
  margin-top:18px;
  color:rgba(184,199,255,.78);
  font-size:12px;
}

/* =========================================================
   DESKTOP FIX (THIS SOLVES YOUR SCREENSHOT ISSUE)
   - Single card pages = full width (match banner)
   - Two-card pages = proper 2-column layout
   - Mobile untouched
   ========================================================= */
@media (min-width: 1024px){

  /* Default: single column (no empty right space) */
  .grid{
    grid-template-columns: 1fr;
    max-width:1100px;
    margin-left:auto;
    margin-right:auto;
  }

  /* Only when there is a second card */
  .grid:has(> .card:nth-child(2)){
    grid-template-columns: 1.6fr 1fr;
  }

  /* Single card spans same width as topbar */
  .grid > .card:only-child{
    max-width:1100px;
    margin-left:auto;
    margin-right:auto;
  }
}