/* its. POD portal styling — brand-locked, ported from Danny's v9 with pod-tier additions. */

:root {
  --bg:#090909;
  --panel:#111;
  --panel2:#171717;
  --text:#f6f2ea;
  --muted:#87847e;
  --line:#292929;
  --orange:#ff4d00;
  --orange2:#ff7a18;
  --red:#ff5b4c;
  --green:#2cff99;
  --blue:#4a90d0;
  --purple:#c080f0;
  --gold:#f0c030;
}

* { box-sizing:border-box; }
body {
  margin:0;
  background:radial-gradient(circle at 20% 0%, rgba(255,77,0,.14), transparent 34%), var(--bg);
  color:var(--text);
  font-family:Inter, Arial, sans-serif;
  min-height:100vh;
}
button, input, select { font-family:inherit; }
h1, h2, h3 { font-family:Syne, sans-serif; }

/* ── LOGIN ──────────────────────────────────────────────── */
.login {
  min-height:100vh;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:28px;
}
.box {
  width:min(880px, 100%);
  background:rgba(17,17,17,.96);
  border:1px solid var(--line);
  border-radius:28px;
  padding:48px;
  box-shadow:0 20px 80px rgba(0,0,0,.45);
}
.mark {
  font-family:Syne, sans-serif;
  font-size:72px;
  font-weight:800;
  letter-spacing:-.07em;
  line-height:.9;
}
.mark span { color:var(--orange); }
.pod {
  font-family:DM Mono, monospace;
  text-transform:uppercase;
  letter-spacing:.32em;
  color:var(--muted);
  margin-top:16px;
}
.login h1 {
  font-size:44px;
  margin:70px 0 18px;
}
.login p {
  color:var(--muted);
  font-size:22px;
  line-height:1.6;
  max-width:680px;
}
label {
  display:block;
  color:var(--muted);
  font-family:DM Mono, monospace;
  text-transform:uppercase;
  letter-spacing:.18em;
  font-weight:700;
  margin:28px 0 12px;
}
input, select {
  width:100%;
  background:#080808;
  border:1px solid var(--line);
  border-radius:22px;
  color:var(--text);
  font-size:24px;
  padding:24px 28px;
  outline:none;
}
input:focus, select:focus {
  border-color:var(--orange);
  box-shadow:0 0 0 4px rgba(255,77,0,.12);
}
.btn {
  width:100%;
  margin-top:28px;
  background:linear-gradient(135deg, var(--orange), var(--orange2));
  color:#090909;
  border:0;
  border-radius:22px;
  padding:24px;
  font-size:18px;
  font-weight:900;
  letter-spacing:.08em;
  text-transform:uppercase;
  cursor:pointer;
}
.err {
  display:none;
  color:var(--red);
  font-size:22px;
  margin-top:22px;
  font-weight:800;
}
.secure-note {
  color:#555 !important;
  font-size:15px !important;
  margin-top:26px !important;
}

/* ── APP / PORTAL ───────────────────────────────────────── */
.app, .tm { display:none; }

.top {
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:28px;
  border-bottom:1px solid var(--line);
  background:rgba(9,9,9,.92);
  position:sticky;
  top:0;
  z-index:20;
  backdrop-filter:blur(12px);
}
.top .mark { font-size:38px; }
.top .pod { font-size:11px; margin-top:8px; }
.top-actions { display:flex; gap:10px; align-items:center; flex-wrap:wrap; }

.hello-user {
  display:flex;
  align-items:center;
  gap:8px;
  color:var(--orange);
  font-family:DM Mono, monospace;
  font-size:11px;
  letter-spacing:.08em;
  text-transform:uppercase;
  background:rgba(255,77,0,.08);
  border:1px solid rgba(255,77,0,.25);
  border-radius:999px;
  padding:10px 13px;
  white-space:nowrap;
}

/* ── BRAND PICKER (top nav) ─────────────────────────────── */
.brand-picker {
  display:flex;
  align-items:center;
  gap:8px;
  background:rgba(255,255,255,0.04);
  border:1px solid var(--line);
  border-radius:999px;
  padding:4px 8px 4px 14px;
}
.brand-picker label {
  font-family:DM Mono, monospace;
  font-size:9px;
  color:var(--muted);
  letter-spacing:.14em;
  text-transform:uppercase;
  margin:0;
  white-space:nowrap;
}
.brand-picker select {
  background:transparent;
  border:0;
  color:var(--text);
  font-family:Inter, sans-serif;
  font-size:13px;
  font-weight:700;
  padding:8px 10px;
  cursor:pointer;
  outline:none;
  min-width:160px;
  width:auto;
  border-radius:999px;
}
.brand-picker select:focus { box-shadow:none; }
.brand-picker select option { background:#0a0a0a; color:var(--text); }
.brand-picker.has-brand {
  border-color:var(--orange);
  background:rgba(255,77,0,0.07);
}
.brand-picker.has-brand label { color:var(--orange); }
.hello-user::before {
  content:'';
  width:6px; height:6px;
  border-radius:50%;
  background:var(--orange);
  box-shadow:0 0 10px rgba(255,77,0,.8);
}
.smallbtn {
  background:var(--panel2);
  color:var(--text);
  border:1px solid var(--line);
  border-radius:999px;
  padding:12px 16px;
  font-weight:900;
  cursor:pointer;
}
.smallbtn.orange {
  background:var(--orange);
  color:#090909;
  border-color:var(--orange);
}

.hero { max-width:1180px; margin:0 auto; padding:64px 28px 34px; }
.eyebrow {
  font-family:DM Mono, monospace;
  text-transform:uppercase;
  letter-spacing:.18em;
  color:var(--orange);
  font-size:12px;
  margin-bottom:16px;
}
.hero h2 { font-size:70px; line-height:.92; margin:0 0 18px; letter-spacing:-.06em; }
.hero p { max-width:680px; color:var(--muted); font-size:20px; line-height:1.55; }

.controls {
  max-width:1180px;
  margin:0 auto;
  padding:0 28px 24px;
  display:flex;
  gap:14px;
  align-items:center;
  flex-wrap:wrap;
}
.search { flex:1; min-width:260px; font-size:15px; padding:14px 18px; border-radius:14px; }
.tabs { display:flex; gap:8px; flex-wrap:wrap; }
.tab {
  padding:10px 13px;
  border:1px solid var(--line);
  background:var(--panel);
  border-radius:999px;
  color:var(--muted);
  cursor:pointer;
  font-weight:800;
}
.tab.on {
  background:var(--orange);
  color:#090909;
  border-color:var(--orange);
}

.grid {
  max-width:1180px;
  margin:0 auto;
  padding:0 28px 80px;
  display:grid;
  grid-template-columns:repeat(auto-fill, minmax(250px, 1fr));
  gap:16px;
}

.card {
  background:linear-gradient(180deg, rgba(255,255,255,.035), rgba(255,255,255,.015));
  border:1px solid var(--line);
  border-radius:18px;
  padding:18px;
  min-height:178px;
  display:flex;
  flex-direction:column;
  transition:.2s;
}
.card:hover { transform:translateY(-2px); border-color:rgba(255,77,0,.6); }

.card.brain {
  border-color:rgba(232,83,10,.85);
  background:radial-gradient(circle at 18% 0%, rgba(232,83,10,.22), transparent 34%), linear-gradient(180deg, rgba(232,83,10,.08), rgba(255,255,255,.018));
  box-shadow:0 0 0 1px rgba(232,83,10,.18), 0 16px 44px rgba(232,83,10,.08);
  position:relative;
  overflow:hidden;
}
.card.brain::before {
  content:'🧠';
  position:absolute; top:14px; right:16px;
  color:#E8530A;
  font-size:26px;
  filter:drop-shadow(0 0 12px rgba(232,83,10,.55));
}
.card.brain .cat { color:#E8530A; }
.card.brain .cat::after { content:' · RESTRICTED INTELLIGENCE'; color:#ff7a3d; }

.card.agent {
  border-color:rgba(255,77,0,.72);
  background:radial-gradient(circle at 18% 0%, rgba(255,77,0,.20), transparent 35%), linear-gradient(180deg, rgba(255,77,0,.075), rgba(255,255,255,.018));
  box-shadow:0 0 0 1px rgba(255,77,0,.14), 0 16px 44px rgba(255,77,0,.07);
  position:relative;
  overflow:hidden;
}
.card.agent::before {
  content:'✦';
  position:absolute; top:12px; right:16px;
  color:var(--orange);
  font-size:28px;
  filter:drop-shadow(0 0 12px rgba(255,77,0,.65));
}
.card.agent .cat { color:var(--orange); }
.card.agent .cat::after { content:' · CLASSIFIED AGENT'; color:#ff7a18; }
.card.agent .open { background:linear-gradient(135deg, var(--orange), var(--orange2)); color:#080808; }
.card.agent:hover { border-color:#ff7a18; box-shadow:0 0 0 1px rgba(255,77,0,.28), 0 20px 70px rgba(255,77,0,.14); }

.cat {
  font-family:DM Mono, monospace;
  font-size:10px;
  color:var(--orange);
  letter-spacing:.1em;
  text-transform:uppercase;
  margin-bottom:12px;
}
.card h3 { font-size:22px; line-height:1.05; margin:0 0 8px; }
.card p { font-size:13px; color:var(--muted); line-height:1.55; margin:0 0 16px; flex:1; }
.card-actions { display:flex; gap:9px; align-items:center; }
.open {
  flex:1;
  display:block;
  text-align:center;
  background:var(--text);
  color:#090909;
  border:0;
  padding:12px;
  border-radius:10px;
  font-weight:900;
  font-family:Inter, Arial, sans-serif;
  font-size:14px;
  text-decoration:none;
  cursor:pointer;
}
.open:hover { opacity:.92; }
.download {
  width:42px; height:42px;
  border-radius:10px;
  border:1px solid rgba(255,77,0,.55);
  background:rgba(255,77,0,.09);
  color:var(--orange);
  cursor:pointer;
  font-size:18px;
  display:flex;
  align-items:center;
  justify-content:center;
  text-decoration:none;
}
.lock {
  width:42px; height:42px;
  border-radius:10px;
  border:1px solid var(--line);
  color:#444;
  display:flex;
  align-items:center;
  justify-content:center;
}
.ai-tag {
  font-size:9px;
  letter-spacing:.12em;
  text-transform:uppercase;
  background:rgba(74,144,208,.15);
  color:var(--blue);
  border:1px solid rgba(74,144,208,.3);
  padding:2px 7px;
  border-radius:999px;
  margin-left:6px;
}

/* ── TEAM MANAGEMENT ────────────────────────────────────── */
.tm-wrap { max-width:1000px; margin:0 auto; padding:54px 28px 80px; }
.tm-head h1 { font-size:56px; line-height:.95; margin:0 0 12px; letter-spacing:-.05em; }
.tm-head p, .note { color:var(--muted); line-height:1.6; }
.tm-box {
  background:var(--panel);
  border:1px solid var(--line);
  border-radius:22px;
  padding:24px;
  margin-top:18px;
}
.formrow { display:grid; grid-template-columns:1fr 1fr auto; gap:12px; }
.formrow.userform { grid-template-columns:1fr 1fr 1fr 140px 200px auto; }
.formrow input, .formrow select {
  font-size:15px;
  padding:14px 16px;
  border-radius:14px;
  background:#080808;
  border:1px solid var(--line);
  color:var(--text);
  outline:none;
}
.formrow select:focus { border-color:var(--orange); box-shadow:0 0 0 4px rgba(255,77,0,.12); }
.formrow button {
  background:var(--orange);
  border:0;
  border-radius:14px;
  padding:0 20px;
  font-weight:900;
  cursor:pointer;
  color:#090909;
}
.role, .pod-tag, .status {
  font-size:11px;
  text-transform:uppercase;
  letter-spacing:.08em;
  margin-left:8px;
  padding:3px 7px;
  border-radius:999px;
}
.role.admin { background:rgba(255,77,0,.15); color:var(--orange); }
.role.team { background:rgba(255,255,255,.08); color:#aaa; }
.pod-tag.admin { background:rgba(255,77,0,.15); color:var(--orange); }
.pod-tag.cs { background:rgba(79,192,79,.15); color:#2cff99; }
.pod-tag.studio { background:rgba(74,144,208,.15); color:var(--blue); }
.pod-tag.social { background:rgba(240,192,48,.15); color:var(--gold); }
.pod-tag.events { background:rgba(192,128,240,.15); color:var(--purple); }
.status.active { background:rgba(44,255,153,.12); color:var(--green); }
.status.paused { background:rgba(255,91,76,.12); color:var(--red); }

.member {
  display:flex;
  justify-content:space-between;
  gap:16px;
  align-items:center;
  background:#0c0c0c;
  border:1px solid var(--line);
  border-radius:16px;
  padding:16px;
  margin-top:10px;
}
.member-name { font-weight:900; font-size:18px; }
.member-meta { color:var(--muted); font-size:13px; margin-top:4px; }
.actions-menu { display:flex; gap:8px; flex-wrap:wrap; justify-content:flex-end; }
.iconbtn {
  width:42px; height:42px;
  border-radius:12px;
  border:1px solid var(--line);
  background:var(--panel2);
  color:var(--text);
  cursor:pointer;
  font-size:18px;
}
.iconbtn.edit { color:var(--orange2); }
.iconbtn.danger { color:var(--red); }

/* ── USAGE TABLE ────────────────────────────────────────── */
.usage-table { width:100%; border-collapse:collapse; margin-top:14px; }
.usage-table th, .usage-table td {
  text-align:left;
  padding:10px 12px;
  border-bottom:1px solid var(--line);
  font-size:13px;
}
.usage-table th {
  font-family:DM Mono, monospace;
  text-transform:uppercase;
  letter-spacing:.1em;
  font-size:10px;
  color:var(--muted);
}
.usage-summary {
  display:grid;
  grid-template-columns:repeat(3, 1fr);
  gap:14px;
  margin-bottom:18px;
}
.usage-summary .stat {
  background:#0c0c0c;
  border:1px solid var(--line);
  border-radius:16px;
  padding:18px;
}
.usage-summary .stat-label {
  font-family:DM Mono, monospace;
  font-size:10px;
  color:var(--muted);
  text-transform:uppercase;
  letter-spacing:.14em;
}
.usage-summary .stat-val {
  font-family:Syne, sans-serif;
  font-size:32px;
  font-weight:800;
  color:var(--orange);
  margin-top:6px;
}

/* ── TOAST ──────────────────────────────────────────────── */
.toast {
  position:fixed;
  bottom:22px;
  left:50%;
  transform:translateX(-50%);
  background:var(--orange);
  color:#090909;
  padding:13px 18px;
  border-radius:999px;
  font-weight:900;
  display:none;
  z-index:99;
}

.confidential-footer {
  max-width:1180px;
  margin:-48px auto 70px;
  padding:0 28px;
  font-family:DM Mono, monospace;
  color:#555;
  font-size:11px;
  text-transform:uppercase;
  letter-spacing:.12em;
}

/* ── CONFIDENTIALITY MODAL ──────────────────────────────── */
.disclaimer-overlay {
  position:fixed;
  inset:0;
  z-index:9999;
  background:rgba(0,0,0,.82);
  backdrop-filter:blur(16px);
  display:none;
  align-items:center;
  justify-content:center;
  padding:24px;
}
.disclaimer-overlay.show { display:flex; }
.disclaimer-card {
  width:min(760px, 100%);
  background:linear-gradient(180deg, #151515, #0d0d0d);
  border:1px solid rgba(255,77,0,.42);
  border-radius:26px;
  box-shadow:0 24px 90px rgba(0,0,0,.65), 0 0 80px rgba(255,77,0,.12);
  padding:34px;
  color:var(--text);
}
.disclaimer-top { display:flex; align-items:center; gap:14px; margin-bottom:18px; }
.disclaimer-icon {
  width:46px; height:46px;
  border-radius:16px;
  background:rgba(255,77,0,.12);
  border:1px solid rgba(255,77,0,.35);
  display:flex;
  align-items:center;
  justify-content:center;
  color:var(--orange);
  font-size:24px;
  flex-shrink:0;
}
.disclaimer-title {
  font-family:Syne, sans-serif;
  font-size:34px;
  line-height:1;
  margin:0;
  letter-spacing:-.04em;
}
.disclaimer-sub {
  font-family:DM Mono, monospace;
  color:var(--orange);
  letter-spacing:.14em;
  text-transform:uppercase;
  font-size:11px;
  margin-top:6px;
}
.disclaimer-card p { color:#b9b4aa; line-height:1.7; font-size:15px; margin:14px 0; }
.disclaimer-card strong { color:#fff; }
.disclaimer-list { margin:18px 0; padding:0; list-style:none; display:grid; gap:10px; }
.disclaimer-list li {
  background:rgba(255,255,255,.035);
  border:1px solid rgba(255,255,255,.07);
  border-radius:14px;
  padding:13px 14px;
  color:#d8d2c8;
  line-height:1.45;
  font-size:14px;
}
.disclaimer-list li::before { content:'⚠'; color:var(--orange); margin-right:9px; }
.disclaimer-meta { display:grid; grid-template-columns:1fr 1fr; gap:10px; margin:20px 0; }
.disclaimer-meta div {
  background:#080808;
  border:1px solid var(--line);
  border-radius:13px;
  padding:12px 14px;
  font-family:DM Mono, monospace;
  font-size:12px;
  color:var(--muted);
}
.disclaimer-meta span {
  display:block;
  color:var(--orange);
  font-size:10px;
  text-transform:uppercase;
  letter-spacing:.12em;
  margin-bottom:4px;
}
.disclaimer-actions { display:flex; gap:12px; margin-top:22px; flex-wrap:wrap; }
.ack-btn {
  flex:1;
  background:linear-gradient(135deg, var(--orange), var(--orange2));
  color:#090909;
  border:0;
  border-radius:16px;
  padding:17px 20px;
  font-weight:950;
  letter-spacing:.08em;
  text-transform:uppercase;
  cursor:pointer;
}
.logout-btn {
  background:transparent;
  color:var(--text);
  border:1px solid var(--line);
  border-radius:16px;
  padding:17px 20px;
  font-weight:900;
  cursor:pointer;
}

@media (max-width: 900px) {
  .formrow.userform { grid-template-columns:1fr; }
}
@media (max-width: 720px) {
  .disclaimer-card { padding:24px; }
  .disclaimer-title { font-size:27px; }
  .disclaimer-meta { grid-template-columns:1fr; }
  .disclaimer-actions { flex-direction:column; }
  .ack-btn, .logout-btn { width:100%; }
  .box { padding:36px 28px; }
  .mark { font-size:54px; }
  .login h1 { font-size:36px; }
  .hero h2 { font-size:48px; }
  .formrow { grid-template-columns:1fr; }
  .member { align-items:flex-start; flex-direction:column; }
  .top { align-items:flex-start; gap:12px; flex-direction:column; }
  .usage-summary { grid-template-columns:1fr; }
}
