/* ROVEX dashboard — brand: #844EFF, white infinity mark.
   Display: Sora · Body: Inter · Deep-violet dark UI.
   Signature: paired progress rings (two loops of the infinity). */

:root {
  --bg: #0c0a12;
  --surface: #14111d;
  --surface-2: #1b1726;
  --border: rgba(255, 255, 255, 0.07);
  --accent: #844eff;
  --accent-soft: #a78bff;
  --accent-glow: rgba(132, 78, 255, 0.35);
  --text: #edeaf6;
  --muted: #8e87a3;
  --ok: #4ade9c;
  --bad: #ff5c7a;
  --warn: #ffc864;
  --radius: 14px;
}

* { box-sizing: border-box; }
html { color-scheme: dark; }
body {
  margin: 0;
  background: var(--bg);
  background-image: radial-gradient(1200px 500px at 80% -10%, rgba(132, 78, 255, 0.12), transparent 60%);
  color: var(--text);
  font: 15px/1.55 "Inter", system-ui, sans-serif;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
h1, h2, h3, .brand-name { font-family: "Sora", "Inter", sans-serif; }
a { color: var(--accent-soft); text-decoration: none; }
a:hover { color: var(--text); }
code { background: var(--surface-2); border: 1px solid var(--border); padding: 1px 6px; border-radius: 6px; font-size: 13px; }

/* ---------- topbar ---------- */
.topbar {
  display: flex; align-items: center; gap: 24px;
  padding: 14px 28px;
  border-bottom: 1px solid var(--border);
  background: rgba(12, 10, 18, 0.85);
  backdrop-filter: blur(8px);
  position: sticky; top: 0; z-index: 10;
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand-mark { width: 26px; height: 26px; filter: drop-shadow(0 0 10px var(--accent-glow)); }
.brand-name { font-weight: 700; letter-spacing: 0.14em; font-size: 15px; color: var(--text); }
.topnav { display: flex; gap: 18px; flex: 1; }
.topnav a { color: var(--muted); font-weight: 500; font-size: 14px; }
.topnav a:hover, .topnav .verified-link { color: var(--text); }
.userchip { display: flex; align-items: center; gap: 10px; background: var(--surface); border: 1px solid var(--border); border-radius: 999px; padding: 5px 8px 5px 5px; font-size: 13px; }
.userchip img { width: 26px; height: 26px; border-radius: 50%; }
.logout { color: var(--muted); font-size: 15px; padding: 0 4px; }
.logout:hover { color: var(--bad); }

/* ---------- layout ---------- */
.page { max-width: 1040px; width: 100%; margin: 0 auto; padding: 36px 24px; flex: 1; }
.page-title { font-size: 26px; margin: 0 0 6px; }
.page-sub { color: var(--muted); margin: 0 0 26px; }
.foot { text-align: center; color: var(--muted); font-size: 12.5px; padding: 22px; opacity: 0.7; }

.shell { display: flex; gap: 28px; max-width: 1180px; width: 100%; margin: 0 auto; padding: 30px 24px; flex: 1; }
.side { width: 210px; flex-shrink: 0; position: sticky; top: 84px; align-self: flex-start; }
.side-guild { display: flex; align-items: center; gap: 10px; font-family: "Sora"; font-weight: 600; font-size: 14px; margin-bottom: 16px; }
.side-guild .guild-icon { width: 30px; height: 30px; }
.side-nav { display: flex; flex-direction: column; gap: 2px; }
.side-nav a { color: var(--muted); padding: 8px 12px; border-radius: 9px; font-size: 14px; font-weight: 500; }
.side-nav a:hover { background: var(--surface); color: var(--text); }
.side-alt { margin-top: 14px; border-top: 1px solid var(--border); padding-top: 14px !important; color: var(--accent-soft) !important; }
.content { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 22px; }

/* ---------- cards ---------- */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 24px;
}
.card h2 { margin: 0 0 4px; font-size: 17px; }
.card-sub { color: var(--muted); font-size: 13.5px; margin: 0 0 16px; }
.empty { text-align: center; color: var(--muted); padding: 40px; }
.empty-inline { color: var(--muted); font-size: 13.5px; padding: 10px 0; }
.hint { display: block; color: var(--muted); font-size: 12px; margin-top: 4px; }
.hint-inline { color: var(--muted); font-weight: 400; font-size: 12.5px; }
.toast { background: rgba(74, 222, 156, 0.12); border: 1px solid rgba(74, 222, 156, 0.35); color: var(--ok); border-radius: 10px; padding: 10px 14px; font-size: 13.5px; }
.toast-bad { background: rgba(255, 92, 122, 0.1); border-color: rgba(255, 92, 122, 0.35); color: var(--bad); }

/* ---------- forms ---------- */
input, select {
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 9px;
  padding: 8px 11px;
  font: inherit;
  width: 100%;
}
input:focus-visible, select:focus-visible, button:focus-visible, a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}
label { display: flex; flex-direction: column; gap: 5px; font-size: 13px; font-weight: 500; color: var(--muted); }
label input, label select { font-size: 14px; color: var(--text); }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 18px; }
.grid2 button { grid-column: 1 / -1; justify-self: start; }
.span2 { grid-column: 1 / -1; }
.row-form { display: flex; gap: 10px; align-items: flex-end; flex-wrap: wrap; margin-top: 14px; }
.row-form input, .row-form select { width: auto; min-width: 130px; }

.btn {
  display: inline-flex; align-items: center; gap: 9px;
  border: none; cursor: pointer; font: 600 14px "Inter";
  border-radius: 10px; padding: 10px 18px; color: #fff;
  transition: filter 0.15s, transform 0.1s;
}
.btn:hover { filter: brightness(1.12); }
.btn:active { transform: translateY(1px); }
.btn-primary { background: linear-gradient(135deg, var(--accent), #6a3df0); box-shadow: 0 4px 18px var(--accent-glow); }
.btn-ghost { background: var(--surface-2); border: 1px solid var(--border); }
.btn-discord { background: #5865f2; padding: 12px 22px; font-size: 15px; }
.btn-sm { padding: 8px 14px; font-size: 13px; }
.btn-big { padding: 13px 26px; font-size: 15.5px; }
.btn-x { background: none; border: none; color: var(--muted); cursor: pointer; font-size: 14px; }
.btn-x:hover { color: var(--bad); }
.btn-mini { border: none; border-radius: 7px; width: 26px; height: 26px; cursor: pointer; font-size: 13px; }
.btn-mini.ok { background: rgba(74, 222, 156, 0.15); color: var(--ok); }
.btn-mini.bad { background: rgba(255, 92, 122, 0.12); color: var(--bad); }

/* ---------- tables & pills ---------- */
.tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.tbl th { text-align: left; color: var(--muted); font-weight: 500; font-size: 12.5px; padding: 6px 10px; border-bottom: 1px solid var(--border); }
.tbl td { padding: 9px 10px; border-bottom: 1px solid var(--border); }
.tbl tr:last-child td { border-bottom: none; }
.row-me td { background: rgba(132, 78, 255, 0.07); }
.rank { color: var(--muted); width: 30px; }
.cell-user { display: flex; align-items: center; gap: 9px; font-weight: 500; }
.cell-user img { width: 24px; height: 24px; border-radius: 50%; }

.pill { display: inline-block; background: var(--surface-2); border: 1px solid var(--border); border-radius: 999px; padding: 2px 10px; font-size: 12px; color: var(--muted); }
.pill-ok, .pill-approved { background: rgba(74, 222, 156, 0.12); border-color: rgba(74, 222, 156, 0.3); color: var(--ok); }
.pill-bad, .pill-denied, .pill-warning, .pill-suspension { background: rgba(255, 92, 122, 0.1); border-color: rgba(255, 92, 122, 0.3); color: var(--bad); }
.pill-pending, .pill-note { color: var(--warn); border-color: rgba(255, 200, 100, 0.3); }
.pill-promotion { background: rgba(132, 78, 255, 0.14); border-color: rgba(132, 78, 255, 0.4); color: var(--accent-soft); }
.pill-demotion { color: var(--warn); }
.pill-role { color: var(--accent-soft); }
.dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 3px; }
.dot-green { background: #3ba55d; } .dot-blurple { background: #5865f2; }
.dot-red { background: #ed4245; } .dot-grey { background: #6d7480; }

/* ---------- guild grid ---------- */
.guild-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.guild-card { display: flex; flex-direction: column; gap: 16px; }
.guild-head { display: flex; align-items: center; gap: 12px; }
.guild-icon { width: 44px; height: 44px; border-radius: 12px; }
.guild-icon-fallback { display: flex; align-items: center; justify-content: center; background: var(--surface-2); font-family: "Sora"; font-weight: 700; }
.guild-name { font-family: "Sora"; font-weight: 600; }
.guild-meta { color: var(--muted); font-size: 12.5px; }
.guild-actions { display: flex; gap: 8px; }

/* ---------- hero / login ---------- */
.hero { flex: 1; display: flex; align-items: center; justify-content: center; padding: 40px 20px; }
.hero-card { text-align: center; max-width: 430px; }
.hero-mark-wrap {
  width: 92px; height: 92px; margin: 0 auto 22px;
  background: linear-gradient(135deg, var(--accent), #6a3df0);
  border-radius: 26px; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 44px var(--accent-glow);
}
.hero-mark { width: 58px; }
.hero-title { font-size: 34px; letter-spacing: 0.16em; margin: 0 0 10px; }
.hero-sub { color: var(--muted); margin: 0 0 28px; }

/* ---------- rings (signature: the two loops) ---------- */
.rings { display: flex; align-items: center; gap: 34px; flex-wrap: wrap; padding: 8px 0; }
.ring-wrap { text-align: center; }
.ring {
  --pct: 0;
  width: 108px; height: 108px; border-radius: 50%;
  background:
    radial-gradient(closest-side, var(--surface) 82%, transparent 83% 100%),
    conic-gradient(var(--accent) calc(var(--pct) * 1%), var(--surface-2) 0);
  display: flex; align-items: center; justify-content: center;
  font: 700 22px "Sora";
}
.ring-alt {
  background:
    radial-gradient(closest-side, var(--surface) 82%, transparent 83% 100%),
    conic-gradient(var(--accent-soft) calc(var(--pct) * 1%), var(--surface-2) 0);
}
.ring-label { color: var(--muted); font-size: 12.5px; margin-top: 8px; }
.quota-status { font: 600 14px "Sora"; }
.quota-status.ok { color: var(--ok); }
.quota-status.bad { color: var(--muted); }

/* ---------- logbook ---------- */
.log-list { display: flex; flex-direction: column; gap: 8px; margin-bottom: 6px; }
.log-item { font-size: 14px; padding: 9px 12px; background: var(--surface-2); border: 1px solid var(--border); border-radius: 10px; display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }
.log-by { color: var(--muted); font-size: 12px; margin-left: auto; }
.loa-actions { display: flex; gap: 6px; }
.loa-actions form { display: inline; }

/* ---------- verify ---------- */
.verify-wrap { display: flex; justify-content: center; padding-top: 30px; }
.verify-card { max-width: 480px; text-align: center; padding: 34px 32px; }
.verify-mark { width: 48px; margin-bottom: 14px; filter: drop-shadow(0 0 14px var(--accent-glow)); }
.verify-card h1 { font-size: 22px; margin: 0 0 12px; }
.verify-status { font-size: 15px; }
.verify-card .toast { margin-bottom: 16px; }

/* ---------- responsive & motion ---------- */
@media (max-width: 860px) {
  .shell { flex-direction: column; }
  .side { width: 100%; position: static; }
  .side-nav { flex-direction: row; flex-wrap: wrap; }
  .grid2 { grid-template-columns: 1fr; }
  .topnav { gap: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}

/* ---------- v2: hub layout with tabs ---------- */
.hub { max-width: 1080px; width: 100%; margin: 0 auto; padding: 28px 24px; flex: 1; }
.hub-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.hub-title { display: flex; align-items: center; gap: 12px; }
.hub-title h1 { font-size: 21px; margin: 0; }
.hub-sub { color: var(--muted); font-size: 12.5px; }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--border); margin-bottom: 18px; flex-wrap: wrap; }
.tab { padding: 9px 15px; color: var(--muted); font: 500 14px "Inter"; border-radius: 9px 9px 0 0; border-bottom: 2px solid transparent; }
.tab:hover { color: var(--text); background: var(--surface); }
.tab.active { color: var(--text); border-bottom-color: var(--accent); background: var(--surface); }
.hub .card { margin-bottom: 18px; }

/* role multi-select checkboxes */
.role-checks { display: flex; flex-wrap: wrap; gap: 6px; max-height: 180px; overflow-y: auto;
  background: var(--surface-2); border: 1px solid var(--border); border-radius: 10px; padding: 10px; margin: 10px 0; }
.check { flex-direction: row; align-items: center; gap: 6px; font-size: 13px; color: var(--text);
  background: var(--surface); border: 1px solid var(--border); border-radius: 8px; padding: 5px 10px; cursor: pointer; }
.check input { width: auto; accent-color: var(--accent); }
.perm-h { font-size: 15px; margin: 0 0 4px; }
.bind-form { margin-top: 14px; }

/* staff cards */
.staff-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.staff-card { background: var(--surface-2); border: 1px solid var(--border); border-radius: 12px; padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.sc-top { display: flex; align-items: center; gap: 10px; }
.sc-top img { width: 42px; height: 42px; border-radius: 50%; }
.sc-name { font: 600 14.5px "Sora"; }
.sc-role { color: var(--accent-soft); font-size: 12px; }
.sc-quota { margin-left: auto; }
.sc-rb { font-size: 13px; }
.sc-stats { display: flex; gap: 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: 8px 0; }
.sc-stats > div { flex: 1; text-align: center; display: flex; flex-direction: column; }
.sc-stats b { font: 600 15px "Sora"; }
.sc-stats span { color: var(--muted); font-size: 11px; }
.sc-btn { justify-content: center; }
.pager { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 16px; }

/* landing */
.landing { flex: 1; }
.land-hero { text-align: center; padding: 70px 20px 40px; }
.land-hero h1 { font-size: 40px; letter-spacing: 0.02em; margin: 0 0 12px; }
.grad { background: linear-gradient(135deg, var(--accent-soft), var(--accent)); -webkit-background-clip: text; background-clip: text; color: transparent; letter-spacing: 0.14em; }
.land-sub { color: var(--muted); max-width: 560px; margin: 0 auto 26px; font-size: 16px; }
.land-cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-bottom: 34px; }
.land-stats { display: flex; gap: 40px; justify-content: center; }
.land-stats div { display: flex; flex-direction: column; }
.land-stats b { font: 700 26px "Sora"; }
.land-stats span { color: var(--muted); font-size: 12.5px; }
.land-features { max-width: 1000px; margin: 0 auto; padding: 10px 24px 60px; display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.feat h3 { margin: 8px 0 6px; font-size: 16px; }
.feat p { color: var(--muted); font-size: 13.5px; margin: 0; }
.feat-ico { font-size: 26px; }

/* log kind pills */
.pill-strike, .pill-termination { background: rgba(255, 92, 122, 0.1); border-color: rgba(255, 92, 122, 0.3); color: var(--bad); }
.pill-reminder { color: var(--warn); border-color: rgba(255, 200, 100, 0.3); }
.guide-steps li { margin-bottom: 10px; }

@media (max-width: 640px) { .land-hero h1 { font-size: 30px; } .land-stats { gap: 22px; } }

/* ---------- v3: Hyra-style staff directory ---------- */
.dir { display: flex; gap: 20px; align-items: flex-start; }
.dir-side { width: 200px; flex-shrink: 0; }
.dir-search input { margin-bottom: 14px; }
.dir-views-label { color: var(--muted); font: 600 11px "Inter"; text-transform: uppercase; letter-spacing: .08em; margin: 10px 0 6px; }
.dir-views { display: flex; flex-direction: column; gap: 2px; }
.dir-views a { color: var(--muted); font-size: 13.5px; font-weight: 500; padding: 7px 10px; border-radius: 8px; }
.dir-views a:hover { background: var(--surface); color: var(--text); }
.dir-views a.active { background: var(--surface); color: var(--text); box-shadow: inset 2px 0 0 var(--accent); }
.dir-main { flex: 1; min-width: 0; }
.dir-head { display: flex; align-items: baseline; gap: 10px; margin-bottom: 14px; }
.dir-head h2 { font-size: 22px; }
.dir-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 14px; }
.dir-card { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 14px 16px; }
.dc-head { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.dc-head img { width: 28px; height: 28px; border-radius: 50%; }
.dc-name { font: 600 14.5px "Sora"; }
.dc-dot { color: var(--muted); }
.dc-role { color: var(--muted); font-size: 13px; }
.dc-open { margin-left: auto; color: var(--muted); font-size: 14px; }
.dc-open:hover { color: var(--accent-soft); }
.dc-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 10px; }
.dc-stat { background: var(--surface-2); border: 1px solid var(--border); border-radius: 9px; padding: 8px 10px; display: flex; flex-direction: column; }
.dc-stat b { font: 600 17px "Sora"; }
.dc-stat span { color: var(--muted); font-size: 10.5px; margin-top: 2px; }
.dc-foot { display: flex; align-items: center; gap: 12px; font-size: 12.5px; }
.dc-warn { color: var(--warn); }
.prof-head { display: flex; align-items: center; gap: 16px; }
.prof-avatar { width: 64px; height: 64px; border-radius: 50%; }
@media (max-width: 760px) { .dir { flex-direction: column; } .dir-side { width: 100%; } }

/* ---------- v4: public site ---------- */
.land-links { text-align: center; padding: 0 20px 50px; color: var(--muted); }
.land-links a { margin: 0 10px; font-weight: 500; }
.land-links span { opacity: .4; }
.land-hero h1 { line-height: 1.15; }
.sel-wrap { max-width: 760px; margin: 30px auto 0; }
.sel-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 20px; }
.sel-card { display: flex; flex-direction: column; gap: 8px; padding: 26px; transition: transform .15s, border-color .15s; }
.sel-card:hover { transform: translateY(-3px); border-color: var(--accent); }
.sel-card h3 { margin: 0; font-size: 18px; color: var(--text); }
.sel-card p { color: var(--muted); font-size: 13.5px; margin: 0; flex: 1; }
.sel-go { color: var(--accent-soft); font-weight: 600; font-size: 14px; }
.feat-list { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.feat-list h3 { margin: 0 0 6px; font-size: 15.5px; }
@media (max-width: 700px) { .sel-grid, .feat-list { grid-template-columns: 1fr; } }
