:root{
  --bg: #0b1020;           /* deep navy */
  --panel: #121a2a;        /* card bg */
  --text: #e9eef7;         /* primary text */
  --muted: #a6b0c3;
  --brand: #7c5cff;        /* purple */
  --brand-2: #22d3ee;      /* cyan */
  --accent: #00ffa3;       /* neon mint */
  --ring: rgba(124,92,255,.25);
  --shadow: 0 10px 30px rgba(0,0,0,.25);
}

*{ box-sizing:border-box; }
html, body{ height:100%; }
body{
  margin:0;
  background: radial-gradient(1200px 600px at 10% -10%, rgba(124,92,255,.10), transparent 60%),
              radial-gradient(1200px 600px at 110% 10%, rgba(34,211,238,.10), transparent 60%),
              var(--bg);
  color: var(--text);
  font-family: "Inter", system-ui, -apple-system, Segoe UI, Roboto, "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif;
  line-height: 1.5;
}

.app{
  padding: 14px;
}

.container{
  /* Left-align everything instead of centering */
  max-width: 1100px;             /* keep readable line-length */
  width: 100%;
  margin: 18px 0 18px 14px;      /* left gutter matches .app padding */
}

@media (max-width: 720px){
  .container{ margin: 12px 0 12px 10px; }
}

/* Cards / panels */
.card{
  background: var(--panel);
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 14px;
  padding: 18px 18px;
  box-shadow: var(--shadow);
}
.muted{ color: var(--muted); }

/* ---------- Navigation ---------- */
.nav{
  position: sticky; top:0;
  display:flex; align-items:center; gap:14px;
  background: linear-gradient(180deg, rgba(18,26,42,.85), rgba(18,26,42,.70));
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 14px;
  padding: 10px 14px;
  box-shadow: var(--shadow);
  z-index: 50;
}
.nav.glass{ background: linear-gradient(180deg, rgba(18,26,42,.75), rgba(18,26,42,.55)); }
.nav .spacer{ flex:1; }

.nav a{
  position: relative;
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding: 8px 12px;
  border-radius: 10px;
  text-decoration: none;        /* remove underline */
  color: var(--text);
  font-weight: 600;
  letter-spacing: .2px;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease, color .15s ease;
}
.nav a:hover{
  background: rgba(124,92,255,.12);
  box-shadow: 0 6px 18px var(--ring);
  transform: translateY(-1px);
}
.nav a.active{
  background: linear-gradient(90deg, rgba(124,92,255,.25), rgba(34,211,238,.20));
  color: #fff;
  box-shadow: 0 0 0 2px var(--ring) inset, 0 10px 22px rgba(124,92,255,.25);
}

/* Brand tab default (neutral) — highlight ONLY when .active is present */
.nav a.brand{
  font-weight: 700;
  /* remove default highlighted background so it doesn't look 'active' all the time */
  background: transparent;
  border: 1px solid transparent;
}
.nav a.brand:hover{
  background: rgba(124,92,255,.12);
}
/* when the brand is the active tab, .active rule above applies already */

/* Buttons (generic) */
.btn{
  display:inline-flex; align-items:center; gap:8px;
  background: linear-gradient(90deg, var(--brand), var(--brand-2));
  color:#0b1020; font-weight:700;
  border:none; border-radius:10px;
  padding:10px 14px; cursor:pointer;
  box-shadow: 0 8px 20px rgba(124,92,255,.35);
  transition: transform .15s ease, box-shadow .15s ease;
}
.btn:hover{ transform: translateY(-1px); box-shadow: 0 12px 26px rgba(124,92,255,.45); }
.btn:active{ transform: translateY(0); }

/* Links inside content (not nav) */
a{ color: var(--brand-2); text-decoration: none; }
a:hover{ text-decoration: underline; }

/* Headings */
h1, h2, h3{
  margin: 0 0 10px 0;
}
h1{
  font-size: 28px;
  background: linear-gradient(90deg, #fff, #bcd7ff);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}
h2{ font-size: 22px; color: #eaf2ff; }
h3{ font-size: 18px; color: #eaf2ff; }

/* ---------- Chat composer (prominent, modern) ---------- */
.composer{
  position: sticky; bottom: 12px;
  background: linear-gradient(180deg, rgba(18,26,42,.92), rgba(18,26,42,.88));
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 14px;
  box-shadow: var(--shadow);
  padding: 10px;
  z-index: 40;
}
.composer-row{
  display:flex; gap:10px; align-items:center;
}
.composer-input{
  flex:1;
  background:#0e1526; color:var(--text);
  border:1px solid rgba(255,255,255,.12);
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 15px;
  outline:none;
  transition: box-shadow .15s ease, border .15s ease;
}
.composer-input:focus{
  box-shadow: 0 0 0 3px var(--ring);
  border-color: rgba(124,92,255,.45);
}
.composer-actions{
  display:flex; gap:8px;
}
.composer-btn{
  padding: 10px 14px;
  border-radius: 12px;
  font-weight: 700;
}

/* Tables or lists in cards (optional polish) */
table{ width:100%; border-collapse: collapse; }
th, td{ padding: 10px 12px; border-bottom:1px solid rgba(255,255,255,.06); }
th{ text-align:left; color:#cfd7e6; font-weight:600; }

/* Form elements (quick pass) */
input[type="text"], input[type="search"], textarea, select{
  width:100%; background:#0e1526; color:var(--text);
  border:1px solid rgba(255,255,255,.08);
  border-radius:10px; padding:10px 12px; outline:none;
  transition: box-shadow .15s ease, border .15s ease;
}
input:focus, textarea:focus, select:focus{
  box-shadow: 0 0 0 3px var(--ring);
  border-color: rgba(124,92,255,.45);
}
/* ---------- Sessions list with checkboxes ---------- */
.sessions-list{ margin: 8px 0 6px; padding: 0; }
.session-row{ margin: 6px 0; }
.sessions-list, .sessions-list * { list-style: none !important; }
.sessions-list li::marker{ content: "" !important; }
.session-item{
  display:flex; gap:10px; align-items:center;
}
.session-item input[type="checkbox"]{
  width: 16px; height: 16px; accent-color: var(--brand);
}
.bulk-actions{
  display:flex; gap:10px; align-items:center; margin-top: 10px;
}
.btn.danger{
  background: linear-gradient(90deg, #ef4444, #f97316);
  color: #fff;
  box-shadow: 0 8px 20px rgba(239,68,68,.35);
}
.btn.danger:hover{ transform: translateY(-1px); }

/* ---------- Rules list ---------- */
.rule-list{
  list-style:none; padding:0; margin:8px 0;
}
.rule-list li{ margin:6px 0; }
.rule-link{
  font-weight:600;
  color:var(--brand-2);
  text-decoration:none;
}
.rule-link:hover{ text-decoration:underline; }

/* Rule detail tweaks */
.list code{
  background: rgba(255,255,255,.05);
  padding: 2px 6px;
  border-radius: 4px;
}

/* Rule detail */
.card code{
  background: rgba(255,255,255,.05);
  padding: 3px 6px;
  border-radius: 4px;
}
/* ===== Auth (Login) ===== */
.auth-wrap{
  min-height: calc(100vh - 120px);
  display:flex; align-items:center; justify-content:center;
  padding: 24px;
  background:
    radial-gradient(800px 300px at -10% -20%, rgba(124,92,255,.15), transparent 60%),
    radial-gradient(800px 300px at 110% 0%, rgba(34,211,238,.12), transparent 60%),
    var(--page);
}
.auth-card{
  width: 100%;
  max-width: 440px;
  padding: 22px;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(15, 22, 40, .72);
  box-shadow: 0 20px 50px rgba(0,0,0,.35), inset 0 0 0 1px rgba(255,255,255,.03);
}
.auth-head h1{ margin: 0 0 6px; }
.auth-form{ display:flex; flex-direction:column; gap:12px; }
.auth-row{ display:flex; flex-direction:column; gap:6px; }
.auth-row label{ font-size: 13px; color: var(--muted); }
.auth-row input{
  background:#0e1526; color:var(--text);
  border:1px solid rgba(255,255,255,.12);
  border-radius: 12px;
  padding: 11px 13px; outline: none;
}
.auth-row input:focus{
  box-shadow: 0 0 0 3px var(--ring);
  border-color: rgba(124,92,255,.45);
}
.auth-btn{
  margin-top: 6px;
  padding: 12px 14px; border-radius: 12px;
  font-weight: 700;
  background: linear-gradient(90deg, rgba(124,92,255,1), rgba(34,211,238,1));
  color:#0a0f1e;
}
.auth-btn:hover{ transform: translateY(-1px); }
.auth-error{
  background: rgba(239,68,68,.12);
  border:1px solid rgba(239,68,68,.25);
  color: #fecaca;
  padding: 10px 12px; border-radius: 10px; margin-bottom: 12px;
}
.auth-foot{ text-align:center; margin-top: 14px; }
.muted{
  color: var(--muted);
}
/* ---------- Premium Founder Section ---------- */
.pro-card{
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(800px 300px at -10% -20%, rgba(124,92,255,.15), transparent 60%),
    radial-gradient(800px 300px at 110% 0%, rgba(34,211,238,.12), transparent 60%),
    var(--panel);
}
.founder-wrap{
  display:grid;
  grid-template-columns: 160px 1fr;
  gap: 18px;
  align-items: center;
}
.founder-left{ display:flex; flex-direction:column; gap:12px; align-items:center; }
.avatar-wrap{
  width: 140px; height:140px; border-radius: 20px;
  padding: 3px;
  background: conic-gradient(from 180deg, var(--brand), var(--brand-2), var(--accent), var(--brand));
  filter: drop-shadow(0 10px 24px rgba(124,92,255,.35));
}
.avatar{
  width: 100%; height: 100%; border-radius: 17px;
  object-fit: cover; display:block;
  border: 2px solid rgba(0,0,0,.25);
}
.chip-row{ display:flex; gap:8px; flex-wrap:wrap; }
.chip{
  font-weight:600; font-size:.85rem; letter-spacing:.2px;
  padding:6px 10px; border-radius:999px;
  color:#fff; background: rgba(124,92,255,.18);
  border: 1px solid rgba(255,255,255,.10);
}
.chip.alt{ background: rgba(34,211,238,.18); }
.founder-name{
  margin:0; font-size: 26px;
  background: linear-gradient(90deg, #fff, #cfe7ff);
  -webkit-background-clip:text; background-clip:text; color:transparent;
}
.lead{ color:#e3ecff; }
.stat-row{
  display:flex; gap:18px; flex-wrap:wrap; margin:.8rem 0 1rem;
}
.stat{ min-width: 120px; background: rgba(255,255,255,.04); border:1px solid rgba(255,255,255,.06); border-radius:12px; padding:10px 12px; }
.stat-num{ font-size: 20px; font-weight:800; }
.stat-label{ font-size:.85rem; color: var(--muted); }
.cta-row{ display:flex; gap:10px; flex-wrap:wrap; }
.btn.ghost{
  background: transparent; color: var(--text);
  border: 1px solid rgba(255,255,255,.14);
  box-shadow: none;
}
.btn.ghost:hover{
  background: rgba(255,255,255,.08);
}

/* ---------- Overview (founder section) ---------- */
.founder-row{
  display:flex; gap:1rem; align-items:flex-start;
}
.founder-photo img{
  width:120px; height:120px; object-fit:cover;
  border-radius:12px; border:1px solid rgba(255,255,255,.10);
}
@media (max-width: 720px){
  .founder-row{ flex-direction:column; }
  .founder-photo img{ width:100%; height:auto; }
}