/* ============ Aurora console — soft minimal design system ============ */
:root {
  --bg: #f8fafc;
  --panel: rgba(255, 255, 255, 0.92);
  --panel-2: rgba(255, 255, 255, 0.98);
  --line: #e2e8f0;
  --text: #0f172a;
  --muted: #64748b;
  --v1: #c9a227;   /* indigo */
  --v2: #a67c00;   /* purple  */
  --v3: #ec4899;   /* pink    */
  --ok: #059669;
  --warn: #d97706;
  --bad: #dc2626;
  --r: 18px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
  font-family: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", sans-serif;
  background: radial-gradient(1200px 800px at 80% -10%, #f1ecff 0%, var(--bg) 55%);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
}
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, select { font-family: inherit; color: var(--text); }

/* ---- Aurora backdrop ---- */
.aurora-bg { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.aurora-bg .orb { position: absolute; border-radius: 50%; filter: blur(100px); opacity: .24; }
.o1 { width: 480px; height: 480px; left: -120px; top: -120px;
  background: radial-gradient(circle, #d4af37, transparent 70%); animation: drift 16s ease-in-out infinite alternate; }
.o2 { width: 420px; height: 420px; right: -80px; top: 8%;
  background: radial-gradient(circle, #e8c95c, transparent 70%); animation: drift 20s ease-in-out infinite alternate-reverse; }
.o3 { width: 520px; height: 520px; left: 22%; bottom: -220px;
  background: radial-gradient(circle, #ec4899, transparent 72%); animation: drift 24s ease-in-out infinite alternate; }
.aurora-bg.faint .orb { opacity: .12; }
@keyframes drift {
  from { transform: translate3d(0,0,0) scale(1); }
  to   { transform: translate3d(60px, 40px, 0) scale(1.12); }
}

/* ---- Glass ---- */
.glass {
  background: var(--panel);
  border: 1px solid var(--line);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  border-radius: var(--r);
  box-shadow: 0 18px 50px rgba(31, 26, 58, 0.06);
}

/* ---- Login ---- */
.login-page { display: grid; place-items: center; padding: 24px; position: relative; }
.login-wrap { position: relative; z-index: 2; width: min(420px, 100%); }
.login-card { padding: 34px 32px 26px; }
.logo-row { display: flex; align-items: center; gap: 10px; }
.logo-dot {
  width: 22px; height: 22px; border-radius: 8px; flex: none;
  background: linear-gradient(135deg, var(--v1), var(--v3));
  box-shadow: 0 0 22px rgba(232, 201, 92, .8);
}
.logo-text { font-size: 22px; font-weight: 700; letter-spacing: .4px;
  background: linear-gradient(90deg, #c9c2ff, #ffd6ec);
  -webkit-background-clip: text; background-clip: text; color: transparent; }
.tagline { color: var(--muted); font-size: 13px; margin: 8px 0 20px; }
.role-switch { display: grid; grid-template-columns: 1fr 1fr; gap: 6px;
  background: rgba(255,255,255,.05); padding: 5px; border-radius: 14px; margin-bottom: 20px;
  border: 1px solid var(--line); }
.role-btn { padding: 9px; border-radius: 11px; font-weight: 600; color: var(--muted); transition: .2s; }
.role-btn.active { background: linear-gradient(135deg, var(--v1), var(--v3)); color: #fff;
  box-shadow: 0 6px 18px rgba(232,201,92,.35); }
.field { display: block; margin-bottom: 14px; }
.field span { display: block; font-size: 12px; font-weight: 600; color: #334155; margin-bottom: 6px; }
.field input, .input {
  width: 100%; background: #ffffff; border: 1px solid var(--line);
  border-radius: 12px; padding: 11px 13px; font-size: 14px; outline: none; transition: .2s;
  color: var(--text);
}
.field input:focus, .input:focus { border-color: var(--v1);
  box-shadow: 0 0 0 3px rgba(201, 162, 39, 0.14); background: #ffffff; }
.row-between { display: flex; justify-content: space-between; align-items: center; margin: 4px 0 18px; font-size: 13px; }
.check { display: flex; gap: 8px; align-items: center; color: var(--muted); cursor: pointer; }
.check input { accent-color: var(--v1); }
.link { color: var(--v1); text-decoration: none; font-weight: 600; }
.link:hover { text-decoration: underline; }
.btn-grad {
  background: linear-gradient(135deg, var(--v1), var(--v2) 55%, var(--v3));
  color: #fff; padding: 12px 18px; border-radius: 13px; font-weight: 700; font-size: 14px;
  box-shadow: 0 4px 14px rgba(201, 162, 39, 0.28); transition: .25s; letter-spacing: .3px;
}
.btn-grad:hover { transform: translateY(-1px); box-shadow: 0 8px 20px rgba(201, 162, 39, 0.38); }
.btn-grad.block { width: 100%; margin-top: 4px; }
.btn-ghost { padding: 10px 16px; border-radius: 12px; border: 1px solid var(--line);
  background: #ffffff; font-weight: 600; color: #334155; }
.btn-ghost:hover { background: #f8fafc; border-color: #cbd5e1; color: var(--text); }
.demo-hint { margin-top: 18px; padding: 12px 14px; border-radius: 12px; font-size: 12px; line-height: 1.7;
  color: var(--muted); background: rgba(255,255,255,.04); border: 1px dashed var(--line); }
.demo-hint b { color: #c9b8ff; }

/* ---- App shell ---- */
body { position: relative; }
.shell { position: relative; z-index: 1; display: grid; grid-template-columns: 236px 1fr; gap: 18px;
  max-width: 1460px; margin: 0 auto; padding: 18px; min-height: 100vh; }
.sidebar { padding: 20px 14px; display: flex; flex-direction: column; gap: 4px;
  position: sticky; top: 18px; height: calc(100vh - 36px); }
.role-pill { margin-left: auto; font-size: 10px; font-weight: 700; letter-spacing: 1px;
  padding: 4px 9px; border-radius: 20px; color: #0b0a1c; background: linear-gradient(90deg, #ffd6ec, #c9c2ff); }
.role-pill.violet { background: linear-gradient(90deg, #c9c2ff, #a5f3e8); }
.nav { margin-top: 22px; display: flex; flex-direction: column; gap: 4px; }
.nav-item { display: flex; align-items: center; gap: 11px; padding: 11px 13px; border-radius: 12px;
  color: var(--muted); font-weight: 600; font-size: 14px; text-align: left; transition: .2s; }
.nav-item .ni { width: 18px; text-align: center; }
.nav-item:hover { background: rgba(255,255,255,.07); color: var(--text); }
.nav-item.active { background: linear-gradient(135deg, rgba(212,175,55,.32), rgba(236,72,153,.2));
  color: #fff; border: 1px solid rgba(232,201,92,.35); box-shadow: 0 8px 22px rgba(212,175,55,.2); }
.nav-item.bottom { margin-top: auto; border-top: 1px solid var(--line); border-radius: 0 0 12px 12px; padding-top: 14px; }

.content { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.topbar { display: flex; justify-content: space-between; align-items: center; padding: 16px 22px; }
.topbar h1 { font-size: 21px; font-weight: 700; }
.sub { color: var(--muted); font-size: 13px; margin-top: 3px; }
.top-right { display: flex; align-items: center; gap: 14px; }
.live-chip { display: inline-flex; align-items: center; gap: 7px; font-size: 12px; color: var(--muted);
  border: 1px solid var(--line); padding: 6px 11px; border-radius: 20px; background: rgba(255,255,255,.04); }
.live-chip i { width: 7px; height: 7px; border-radius: 50%; background: var(--ok);
  box-shadow: 0 0 10px var(--ok); animation: pulse 1.6s infinite; }
@keyframes pulse { 50% { opacity: .35; } }
.avatar { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  font-weight: 800; font-size: 14px; color: #160a2e;
  background: linear-gradient(135deg, #c9c2ff, #ffb6dd); }
.avatar.violet { background: linear-gradient(135deg, #bff5ea, #c9c2ff); }

.view { display: none; flex-direction: column; gap: 18px; }
.view.active { display: flex; }

/* ---- Cards & stats ---- */
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; }
.stat { padding: 18px 20px; border-radius: var(--r); background: var(--panel);
  border: 1px solid var(--line); backdrop-filter: blur(18px); position: relative; overflow: hidden; }
.stat::before { content: ""; position: absolute; inset: 0 0 auto; height: 2px;
  background: linear-gradient(90deg, transparent, var(--sc, var(--v2)), transparent); }
.stat .s-label { font-size: 12.5px; color: var(--muted); }
.stat .s-value { font-size: 30px; font-weight: 800; margin-top: 6px; letter-spacing: .3px; }
.stat .s-trend { font-size: 12px; margin-top: 5px; color: var(--ok); }
.stat .s-trend.down { color: var(--bad); }
.card { padding: 20px; }
.card h3 { font-size: 15px; font-weight: 700; margin-bottom: 14px; }
.grid-2 { display: grid; grid-template-columns: 1.1fr 1fr; gap: 18px; }
@media (max-width: 1000px) { .shell { grid-template-columns: 1fr; } .sidebar { position: static; height: auto; } .grid-2 { grid-template-columns: 1fr; } }

.mini-list { display: flex; flex-direction: column; gap: 10px; }
.mini-row { display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: 13px;
  background: rgba(255,255,255,.045); border: 1px solid var(--line); }
.mini-row .dot { width: 9px; height: 9px; border-radius: 50%; flex: none; }
.mini-row .t { font-size: 13.5px; font-weight: 600; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mini-row .s { font-size: 12px; color: var(--muted); }
.pill { font-size: 10.5px; font-weight: 700; padding: 4px 9px; border-radius: 20px; letter-spacing: .4px;
  background: rgba(255,255,255,.09); border: 1px solid var(--line); white-space: nowrap; }
.pill.g { color: var(--ok); border-color: rgba(52,211,153,.4); background: rgba(52,211,153,.1); }
.pill.a { color: var(--warn); border-color: rgba(251,191,36,.4); background: rgba(251,191,36,.1); }
.pill.r { color: var(--bad); border-color: rgba(251,113,133,.4); background: rgba(251,113,133,.1); }
.pill.v { color: #c9b8ff; border-color: rgba(232,201,92,.4); background: rgba(232,201,92,.12); }

/* ---- Charts ---- */
.donut-row { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.donut { width: 150px; height: 150px; border-radius: 50%; position: relative; flex: none; }
.donut::after { content: attr(data-center); position: absolute; inset: 22px; border-radius: 50%;
  display: grid; place-items: center; font-weight: 800; font-size: 18px; background: #ffffff; }
.legend { display: flex; flex-direction: column; gap: 8px; font-size: 13px; min-width: 130px; }
.legend .li { display: flex; align-items: center; gap: 8px; }
.legend .sw { width: 10px; height: 10px; border-radius: 3px; }
.legend .lv { margin-left: auto; color: var(--muted); font-weight: 700; }
.bars { display: flex; align-items: flex-end; gap: 12px; height: 150px; padding-top: 10px; }
.bar-col { flex: 1; display: flex; flex-direction: column; gap: 8px; align-items: center; height: 100%; justify-content: flex-end; }
.bar { width: 100%; max-width: 46px; border-radius: 8px 8px 4px 4px; min-height: 3px;
  background: linear-gradient(180deg, var(--v3), var(--v1)); box-shadow: 0 0 14px rgba(232,201,92,.25);
  transition: height .5s; }
.bar-label { font-size: 11px; color: var(--muted); }

/* ---- Tables ---- */
.toolbar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 16px; }
.toolbar .input { width: 250px; }
.toolbar h3 { margin-right: auto; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip { font-size: 12px; font-weight: 600; padding: 6px 12px; border-radius: 20px; color: var(--muted);
  border: 1px solid var(--line); background: rgba(255,255,255,.04); transition: .15s; }
.chip.on { color: #fff; background: linear-gradient(135deg, var(--v1), var(--v3));
  border-color: transparent; box-shadow: 0 6px 16px rgba(232,201,92,.3); }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; }
table { width: 100%; border-collapse: collapse; font-size: 13.5px; min-width: 720px; }
th { text-align: left; font-size: 11px; letter-spacing: .8px; text-transform: uppercase; color: var(--muted);
  padding: 12px 14px; border-bottom: 1px solid var(--line); background: rgba(255,255,255,.03); }
td { padding: 12px 14px; border-bottom: 1px solid rgba(255,255,255,.05); }
tr:hover td { background: rgba(255,255,255,.03); }
tr:last-child td { border-bottom: none; }
.tag-pill { font-size: 11px; font-weight: 700; padding: 3px 9px; border-radius: 12px; }
.tag-pill.Regular { background: rgba(224, 185, 74, 0.09); color: #a67c00; }
.tag-pill.Sports { background: rgba(16, 185, 129, 0.09); color: #047857; }
.tag-pill.Workshop { background: rgba(245, 158, 11, 0.09); color: #b45309; }
.tag-pill.Hackathon { background: rgba(212, 175, 55, 0.09); color: #b8860b; }
.tag-pill.Symposium { background: rgba(236, 72, 153, 0.09); color: #be185d; }
.tag-pill.Guest { background: rgba(212, 175, 55, 0.09); color: #a67c00; }

/* ---- summary / events / review ---- */
.summary-line { font-size: 13px; color: var(--muted); margin: 12px 0; }
.summary-line b { color: var(--text); }
.event-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.event-card { padding: 18px; border-radius: var(--r); background: var(--panel);
  border: 1px solid var(--line); display: flex; flex-direction: column; gap: 10px; backdrop-filter: blur(16px); }
.event-card h4 { font-size: 15px; }
.event-card .meta { font-size: 12.5px; color: var(--muted); line-height: 1.7; }
.reach-chip { margin: 10px 0 2px; font-size: 13px; font-weight: 600; padding: 10px 13px; border-radius: 12px;
  background: rgba(52,211,153,.1); border: 1px solid rgba(52,211,153,.3); color: #86efc5; }
.reach-chip.warn { background: rgba(251,191,36,.1); border-color: rgba(251,191,36,.3); color: #fde68a; }
.review-item { padding: 14px; border-radius: 14px; background: rgba(255,255,255,.045);
  border: 1px solid var(--line); }
.review-item .row-between { margin: 0 0 8px; }
.review-actions { display: flex; gap: 8px; }
.btn-sm { font-size: 12px; font-weight: 700; padding: 7px 14px; border-radius: 10px; }
.btn-ok { background: linear-gradient(135deg, #10b981, #34d399); color: #04110c; }
.btn-no { background: rgba(255,255,255,.08); border: 1px solid var(--line); color: var(--text); }

/* ---- Modal ---- */
.modal-back { display: none; position: fixed; inset: 0; z-index: 40; place-items: center; padding: 20px;
  background: rgba(15, 23, 42, 0.45); backdrop-filter: blur(8px); }
.modal-back.open { display: grid; }
.modal { width: min(520px, 100%); padding: 26px; background: #ffffff; border-radius: 20px; border: 1px solid var(--line); box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.25); color: var(--text); }
.modal.wide { width: min(680px, 100%); }
.modal h3 { margin-bottom: 16px; font-weight: 800; color: var(--text); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 12px; }
.form-grid .field select, .field select { width: 100%; background: #ffffff;
  border: 1px solid var(--line); border-radius: 12px; padding: 11px 12px; font-size: 13.5px; outline: none; color: var(--text); }
.form-grid .field select option { color: #0f172a; }
.modal-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 18px; }

/* ---- Toast ---- */
#toastWrap { position: fixed; right: 18px; bottom: 18px; z-index: 99; display: flex; flex-direction: column; gap: 10px; }
.toast { padding: 12px 18px; border-radius: 14px; font-size: 13.5px; font-weight: 600;
  background: #ffffff; border: 1px solid var(--line); color: var(--text);
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.10); animation: toastIn .25s ease; max-width: 340px; }
.toast.ok { border-color: #a7f3d0; background: #ecfdf5; color: #065f46; }
.toast.warn { border-color: #fde68a; background: #fffbeb; color: #92400e; }
@keyframes toastIn { from { opacity: 0; transform: translateY(8px); } }

/* Native pointer cursor for interactive elements */
button, a, select, [role="button"], input[type="button"], input[type="submit"] {
  cursor: pointer;
}
input, textarea {
  cursor: text;
}
