@import url("https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@700;800&family=Outfit:wght@400;550;700&display=swap");

:root {
  --bg: #07080c;
  --bg-2: #0b0d12;
  --surface: #101218;
  --surface-2: #161821;
  --line: rgba(255, 255, 255, 0.1);
  --ink: #f4f7fb;
  --muted: rgba(255, 255, 255, 0.72);
  --faint: rgba(255, 255, 255, 0.48);
  --lime: #e9ff1f;
  --lime-2: #f4f427;
  --sky: #7dd3fc;
  --sky-2: #3da9ff;
  --gold: #e9ff1f;
  --accent: #e9ff1f;
  --ok: #53fc18;
  --danger: #ff2d55;
  --warn: #f4f427;
  font-family: Outfit, ui-sans-serif, system-ui, sans-serif;
}
* { box-sizing: border-box; }
html {
  height: 100%;
}
html, body, #app {
  margin: 0;
  min-height: 100%;
  min-height: 100dvh;
  color: var(--ink);
  background-color: #07080c;
  background-image:
    radial-gradient(120% 90% at 8% -10%, rgba(233, 255, 31, 0.18), transparent 58%),
    radial-gradient(100% 80% at 100% 110%, rgba(61, 169, 255, 0.16), transparent 55%),
    linear-gradient(180deg, #0b0d12 0%, #07080c 100%);
  background-repeat: no-repeat;
  background-attachment: fixed;
  background-size: 100% 100%;
}
body, #app {
  height: 100%;
}
h1, h2, h3 {
  font-family: "Barlow Condensed", Outfit, sans-serif;
  letter-spacing: 0.02em; text-transform: uppercase;
}
.type-name, #scope {
  font-family: "Barlow Condensed", Outfit, sans-serif;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
a { color: var(--sky); text-decoration: none; }
button, input, select, textarea {
  font: inherit; color: inherit; background: #161821;
  border: 1px solid rgba(255, 255, 255, 0.12); border-radius: 10px; padding: 0.45rem 0.7rem;
}
button { cursor: pointer; font-weight: 550; }
button:hover { border-color: rgba(233, 255, 31, 0.45); }
button.primary {
  background: var(--lime); color: #0b0c10; border-color: transparent; font-weight: 800;
  box-shadow: 0 0 22px rgba(233, 255, 31, 0.28);
}
button.danger { background: var(--danger); color: white; border-color: transparent; }
button[data-fmt="singles"] {
  background: rgba(125, 211, 252, 0.12); border-color: rgba(125, 211, 252, 0.55); color: var(--sky);
}
button[data-fmt="doubles"] {
  background: rgba(233, 255, 31, 0.1); border-color: rgba(233, 255, 31, 0.55); color: var(--lime);
}
button:disabled { opacity: 0.45; cursor: not-allowed; }
.shell { display: grid; grid-template-columns: 220px 1fr; min-height: 100dvh; }
.side {
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(180deg, #101218, #0b0d12);
  padding: 1.2rem 0.9rem;
}
.brand {
  display: flex; align-items: center; gap: 0.6rem; margin: 0 0 0.35rem;
}
.brand img { width: 42px; height: 42px; object-fit: contain; flex-shrink: 0; }
.brand h1, .login .brand h1 {
  font-size: 1.35rem; margin: 0; color: var(--lime);
  text-shadow: 0 0 18px rgba(233, 255, 31, 0.35);
}
.login .brand { flex-direction: column; margin-bottom: 0.8rem; }
.login .brand img { width: 88px; height: 88px; }
.side h1 {
  font-size: 1.35rem; margin: 0; color: var(--lime);
  text-shadow: 0 0 18px rgba(233, 255, 31, 0.35);
}
.side .brand h1,
.side h1 {
  text-transform: none !important;
  font-family: "Barlow Condensed", Outfit, sans-serif;
  letter-spacing: 0.02em;
}
.side p { color: var(--faint); font-size: 0.8rem; margin: 0 0 1rem; text-transform: none; font-family: Outfit, sans-serif; letter-spacing: 0; }
.nav a, .nav button.link {
  display: block; width: 100%; text-align: left; background: none; border: 0;
  padding: 0.55rem 0.65rem; color: var(--muted); border-radius: 10px; margin-bottom: 0.25rem;
}
.nav a { text-transform: none; }
.nav a.active, .nav button.link.active {
  background: rgba(233, 255, 31, 0.1);
  color: var(--lime); box-shadow: inset 3px 0 0 var(--lime);
}
.mod-badge {
  display: inline-block; font-size: 0.72rem; font-weight: 800; letter-spacing: 0.08em;
  text-transform: uppercase; padding: 0.18rem 0.55rem; border-radius: 999px;
  background: var(--lime); color: #0b0c10;
}
.mod {
  border: 1px solid rgba(233, 255, 31, 0.18); border-radius: 16px; padding: 0.9rem 1rem 1.2rem;
  background: rgba(16, 18, 24, 0.92);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.55), 0 0 40px rgba(233, 255, 31, 0.06);
}
.mod-head { margin-bottom: 0.7rem; }
.mod-head p { margin: 0.35rem 0 0; font-family: Outfit, sans-serif; text-transform: none; letter-spacing: 0; }
.home-mods { display: grid; grid-template-columns: 1fr 1fr; gap: 0.9rem; }
.elite-title { text-transform: none; }
.type-pair { display: flex; gap: 0.35rem; flex-wrap: wrap; }
.type-pair select { min-width: 7.5rem; }
td input[data-title] { min-width: 11rem; width: 100%; }
.assignment-editor { display: flex; gap: 0.35rem; align-items: center; min-width: 25rem; }
.assignment-editor input { min-width: 10rem; flex: 1; }
.home-card {
  display: block; padding: 1.15rem; border-radius: 16px;
  border: 1px solid rgba(233, 255, 31, 0.22);
  background: linear-gradient(160deg, rgba(233, 255, 31, 0.08), #101218 45%);
  color: inherit;
}
.home-card:hover { border-color: var(--lime); box-shadow: 0 0 28px rgba(233, 255, 31, 0.12); }
.home-card h3 { margin: 0.5rem 0 0.35rem; font-size: 1.45rem; }
.main { padding: 1.2rem 1.5rem 3rem; }
.banner {
  background: rgba(83, 252, 24, 0.08);
  border: 1px solid rgba(83, 252, 24, 0.35);
  padding: 0.75rem 0.95rem; border-radius: 12px; margin-bottom: 1rem;
}
.card {
  background: #101218;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px; padding: 1rem;
}
.card h2, .card h3 { margin: 0 0 0.6rem; font-size: 1.15rem; color: var(--lime); }
.muted { color: var(--muted); }
.faint { color: var(--faint); font-size: 0.85rem; font-family: Outfit, sans-serif; text-transform: none; letter-spacing: 0; }
table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
th { color: var(--lime); font-size: 0.75rem; letter-spacing: 0.08em; }
th, td { text-align: left; padding: 0.5rem 0.4rem; border-bottom: 1px solid rgba(255, 255, 255, 0.08); }
tr:hover td { background: rgba(233, 255, 31, 0.05); }
.row { display: flex; gap: 0.5rem; flex-wrap: wrap; align-items: center; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0.8rem; }
label { display: grid; gap: 0.25rem; font-size: 0.82rem; color: var(--muted); text-transform: none; font-family: Outfit, sans-serif; letter-spacing: 0; }
.login-screen {
  min-height: 100%;
  min-height: 100dvh;
  width: 100%;
  display: grid;
  place-items: center;
  padding: 1.5rem;
  background:
    radial-gradient(120% 90% at 8% -10%, rgba(233, 255, 31, 0.18), transparent 58%),
    radial-gradient(100% 80% at 100% 110%, rgba(61, 169, 255, 0.16), transparent 55%),
    linear-gradient(180deg, #0b0d12 0%, #07080c 100%);
}
.login {
  width: min(400px, 100%);
  margin: 0;
  padding: 1.4rem;
  border: 1px solid rgba(233, 255, 31, 0.28);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.65), 0 0 40px rgba(233, 255, 31, 0.08);
  background: rgba(16, 18, 24, 0.92);
  border-radius: 16px;
}
#saver { margin-top: 1.15rem; }
.discord-btn {
  display: block; text-align: center; margin-top: 0.8rem; padding: 0.55rem 0.8rem;
  border-radius: 10px; background: #5865f2; color: #fff; font-weight: 700;
}
.discord-btn.disabled { opacity: 0.45; pointer-events: none; }
.ok { color: var(--ok); }
.warn { color: var(--warn); }
.err { color: var(--danger); }
textarea { min-height: 90px; width: 100%; background: #0b0d12; }
#out {
  margin-top: 1rem; width: 100%;
  background: transparent; border-color: rgba(255, 255, 255, 0.12); color: var(--muted);
}
@media (max-width: 860px) {
  .shell { grid-template-columns: 1fr; }
  .grid2, .home-mods { grid-template-columns: 1fr; }
  .main { padding: 0.8rem; overflow-x: hidden; }
  .card { overflow-x: auto; }
}
