/* =========================================================
   Miumeow NetWorks — Design system
   Thứ tự: biến → reset → layout → component → page → responsive
   ========================================================= */

:root {
  --bg: #070b12;
  --bg-soft: #0a1120;
  --panel: #0e1626;
  --panel-2: #121d31;
  --line: #1e2c46;
  --line-soft: #17233a;
  --text: #e7eefc;
  --muted: #94a6c4;
  --muted-2: #6f82a3;
  --emerald: #34d399;
  --emerald-deep: #0f9f6e;
  --gold: #f4c152;
  --red: #f87171;
  --blue: #60a5fa;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
  --font: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --mono: "Cascadia Code", "SFMono-Regular", Consolas, monospace;
  --header-h: 68px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background:
    radial-gradient(1100px 600px at 85% -10%, rgba(52, 211, 153, 0.12), transparent 60%),
    radial-gradient(900px 500px at 5% 0%, rgba(96, 165, 250, 0.10), transparent 55%),
    var(--bg);
  min-height: 100vh;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; }
a { color: var(--emerald); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { line-height: 1.25; margin: 0 0 12px; }
p { margin: 0 0 12px; color: var(--muted); }
code, .mono { font-family: var(--mono); }

.container { width: min(1160px, 92vw); margin: 0 auto; }
.section { padding: 72px 0; }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 40px; }
.section-head .eyebrow {
  display: inline-block; font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--emerald); background: rgba(52, 211, 153, 0.1);
  border: 1px solid rgba(52, 211, 153, 0.25); border-radius: 999px; padding: 4px 12px; margin-bottom: 14px;
}
.section-head h2 { font-size: clamp(26px, 3.4vw, 38px); }
.section-head p { margin: 0; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(7, 11, 18, 0.82);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line-soft);
}
.header-inner { display: flex; align-items: center; gap: 18px; min-height: var(--header-h); }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 700; }
.brand:hover { text-decoration: none; }
.brand-mark {
  width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center;
  background: linear-gradient(135deg, rgba(52, 211, 153, 0.25), rgba(96, 165, 250, 0.2));
  border: 1px solid rgba(52, 211, 153, 0.4); font-size: 20px;
}
.brand-logo {
  width: 38px; height: 38px; border-radius: 10px; object-fit: cover;
  border: 1px solid rgba(244, 193, 82, 0.45);
  image-rendering: pixelated;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.4), 0 4px 14px rgba(244, 193, 82, 0.18);
}
.hero-logo {
  width: clamp(180px, 22vw, 230px); height: auto; image-rendering: pixelated;
  border-radius: 20px; border: 1px solid rgba(244, 193, 82, 0.35);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.55), 0 0 60px rgba(244, 193, 82, 0.12);
  animation: float 6s ease-in-out infinite;
}
.brand small { display: block; color: var(--muted-2); font-weight: 500; font-size: 11px; letter-spacing: 0.14em; }
.main-nav { display: flex; gap: 4px; margin-left: auto; }
.main-nav a { color: var(--muted); padding: 8px 12px; border-radius: 8px; font-size: 14px; }
.main-nav a:hover { color: var(--text); background: rgba(255, 255, 255, 0.05); text-decoration: none; }
.header-actions { display: flex; gap: 10px; align-items: center; }
.nav-toggle {
  display: none; background: transparent; color: var(--text); border: 1px solid var(--line);
  border-radius: 8px; width: 40px; height: 40px; font-size: 18px; cursor: pointer;
}

/* ---------- User menu (đã đăng nhập) ---------- */
.user-menu { position: relative; }
.user-chip {
  display: flex; align-items: center; gap: 8px; padding: 5px 12px 5px 5px;
  background: rgba(255, 255, 255, 0.04); border: 1px solid var(--line);
  border-radius: 999px; color: var(--text); font: inherit; font-size: 13.5px; cursor: pointer;
}
.user-chip:hover { background: rgba(255, 255, 255, 0.08); border-color: rgba(52, 211, 153, 0.35); }
.user-avatar {
  width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center;
  font-weight: 800; font-size: 14px; color: #05261a;
  background: linear-gradient(135deg, var(--emerald), var(--emerald-deep));
  flex-shrink: 0;
}
.user-avatar.owner { background: linear-gradient(135deg, #ffd978, var(--gold)); color: #3a2a00; }
.user-avatar.editor { background: linear-gradient(135deg, #93c5fd, var(--blue)); color: #0c2a52; }
.user-avatar.game_admin { background: linear-gradient(135deg, #d8b4fe, #a855f7); color: #2e1065; }
.user-name { max-width: 130px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.user-caret { color: var(--muted-2); font-size: 11px; }
.user-dropdown {
  position: absolute; right: 0; top: calc(100% + 8px); min-width: 190px;
  background: #0f1b2e; border: 1px solid var(--line); border-radius: 12px;
  padding: 6px; box-shadow: var(--shadow); z-index: 60;
}
.user-dropdown a, .user-dropdown button {
  display: flex; align-items: center; gap: 9px; width: 100%; padding: 9px 12px;
  border-radius: 8px; color: var(--muted); font: inherit; font-size: 13.5px;
  background: none; border: none; text-align: left; cursor: pointer;
}
.user-dropdown a:hover, .user-dropdown button:hover {
  background: rgba(255, 255, 255, 0.06); color: var(--text); text-decoration: none;
}
.user-dropdown .divider { height: 1px; background: var(--line-soft); margin: 5px 8px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 18px; border-radius: 10px; font-weight: 600; font-size: 14px;
  border: 1px solid transparent; cursor: pointer; transition: transform 0.12s, filter 0.12s, background 0.12s;
  text-decoration: none; white-space: nowrap;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn:disabled { opacity: 0.55; cursor: not-allowed; transform: none; }
.btn-primary { background: linear-gradient(135deg, var(--emerald), var(--emerald-deep)); color: #05261a; }
.btn-primary:hover { filter: brightness(1.08); }
.btn-ghost { background: rgba(255, 255, 255, 0.04); border-color: var(--line); color: var(--text); }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.08); }
.btn-gold { background: linear-gradient(135deg, #ffd978, var(--gold)); color: #3a2a00; }
.btn-danger { background: rgba(248, 113, 113, 0.12); border-color: rgba(248, 113, 113, 0.4); color: var(--red); }
.btn-sm { padding: 6px 12px; font-size: 13px; border-radius: 8px; }

/* ---------- Hero ---------- */
.hero { padding: 84px 0 40px; position: relative; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; }
.hero h1 { font-size: clamp(34px, 5vw, 56px); letter-spacing: -0.02em; }
.hero h1 .accent { color: var(--emerald); }
.hero-desc { font-size: 17px; max-width: 540px; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 26px; }
.pill {
  font-size: 12.5px; padding: 5px 12px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.04); border: 1px solid var(--line); color: var(--muted);
}
.pill strong { color: var(--text); font-weight: 600; }
.pill.online { color: var(--emerald); border-color: rgba(52, 211, 153, 0.35); background: rgba(52, 211, 153, 0.08); }

.ip-card {
  background: linear-gradient(160deg, var(--panel), var(--bg-soft));
  border: 1px solid var(--line); border-radius: var(--radius); padding: 22px;
  box-shadow: var(--shadow);
}
.ip-card h3 { font-size: 13px; text-transform: uppercase; letter-spacing: 0.16em; color: var(--muted-2); margin-bottom: 8px; }
.ip-row { display: flex; align-items: center; gap: 10px; }
.ip-value {
  flex: 1; font-family: var(--mono); font-size: clamp(17px, 2.4vw, 22px); font-weight: 700;
  background: rgba(0, 0, 0, 0.35); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.ip-meta { display: flex; justify-content: space-between; gap: 10px; margin-top: 12px; font-size: 13px; color: var(--muted-2); }
.server-tag {
  display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: 0.12em;
  padding: 3px 10px; border-radius: 999px; margin-bottom: 9px;
  border: 1px solid var(--line); color: var(--muted);
}
.server-tag.java { color: #fbbf24; border-color: rgba(251, 191, 36, 0.4); background: rgba(251, 191, 36, 0.08); }
.server-tag.bedrock { color: #60a5fa; border-color: rgba(96, 165, 250, 0.4); background: rgba(96, 165, 250, 0.08); }
.hero-art {
  position: relative; border-radius: 22px; border: 1px solid var(--line);
  background:
    radial-gradient(380px 220px at 70% 20%, rgba(52, 211, 153, 0.22), transparent 70%),
    linear-gradient(160deg, #0d1a2b, #070d17);
  min-height: 340px; display: grid; place-items: center; overflow: hidden; box-shadow: var(--shadow);
}
.hero-art .grid-floor {
  position: absolute; inset: 0;
  background-image: linear-gradient(rgba(52, 211, 153, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(52, 211, 153, 0.08) 1px, transparent 1px);
  background-size: 42px 42px; transform: perspective(500px) rotateX(52deg) scale(1.7) translateY(18%);
  transform-origin: center bottom; opacity: 0.7;
}
.hero-art .cat {
  position: relative; font-size: clamp(90px, 12vw, 140px); filter: drop-shadow(0 20px 40px rgba(52, 211, 153, 0.35));
  animation: float 5s ease-in-out infinite;
}
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.stat {
  background: var(--panel); border: 1px solid var(--line-soft); border-radius: var(--radius);
  padding: 20px; text-align: center;
}
.stat .num { font-size: 30px; font-weight: 800; color: var(--text); }
.stat .num em { font-style: normal; color: var(--emerald); }
.stat .label { font-size: 13px; color: var(--muted-2); }

/* ---------- Cards ---------- */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card {
  background: var(--panel); border: 1px solid var(--line-soft); border-radius: var(--radius);
  padding: 22px; transition: border-color 0.15s, transform 0.15s;
}
.card:hover { border-color: rgba(52, 211, 153, 0.35); transform: translateY(-2px); }
.card .icon {
  width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; font-size: 21px;
  background: rgba(52, 211, 153, 0.1); border: 1px solid rgba(52, 211, 153, 0.25); margin-bottom: 14px;
}
.card h3 { font-size: 17px; margin-bottom: 6px; }
.card p { font-size: 14px; margin: 0; }

/* ---------- Achievements ---------- */
.achievement-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.achievement {
  display: flex; gap: 14px; align-items: flex-start;
  background: var(--panel); border: 1px solid var(--line-soft); border-radius: var(--radius); padding: 16px 18px;
}
.achievement .medal { font-size: 26px; line-height: 1; }
.achievement h4 { margin: 0 0 2px; font-size: 15px; }
.achievement p { margin: 0; font-size: 13px; }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; counter-reset: step; }
.step {
  background: var(--panel); border: 1px solid var(--line-soft); border-radius: var(--radius);
  padding: 20px; position: relative;
}
.step::before {
  counter-increment: step; content: counter(step);
  display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%;
  background: rgba(52, 211, 153, 0.12); border: 1px solid rgba(52, 211, 153, 0.4);
  color: var(--emerald); font-weight: 700; font-size: 14px; margin-bottom: 12px;
}
.step h4 { font-size: 15px; margin-bottom: 4px; }
.step p { font-size: 13px; margin: 0; }

/* ---------- Lookup ---------- */
.lookup {
  background: linear-gradient(160deg, var(--panel-2), var(--panel));
  border: 1px solid var(--line); border-radius: 20px; padding: 30px; box-shadow: var(--shadow);
}
.lookup-form { display: flex; gap: 10px; margin-bottom: 18px; }
.input, .select, .textarea {
  width: 100%; background: rgba(0, 0, 0, 0.3); border: 1px solid var(--line);
  border-radius: 10px; color: var(--text); padding: 11px 14px; font: inherit; font-size: 14px;
  outline: none; transition: border-color 0.15s, box-shadow 0.15s;
}
.input:focus, .select:focus, .textarea:focus {
  border-color: var(--emerald); box-shadow: 0 0 0 3px rgba(52, 211, 153, 0.15);
}
.input::placeholder { color: var(--muted-2); }
.result-box { border-top: 1px dashed var(--line); padding-top: 18px; }
.result-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px 22px; }
.result-row { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; padding: 7px 0; border-bottom: 1px solid var(--line-soft); }
.result-row span:first-child { color: var(--muted-2); }
.result-row span:last-child { color: var(--text); text-align: right; }
.muted-note { font-size: 13px; color: var(--muted-2); }

/* ---------- Team ---------- */
.team-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.member { text-align: center; background: var(--panel); border: 1px solid var(--line-soft); border-radius: var(--radius); padding: 24px 16px; }
.avatar {
  width: 64px; height: 64px; margin: 0 auto 12px; border-radius: 18px; display: grid; place-items: center;
  font-size: 28px; background: rgba(96, 165, 250, 0.12); border: 1px solid rgba(96, 165, 250, 0.3);
}
.member h4 { margin: 0 0 2px; font-size: 15px; }
.member .role { font-size: 12.5px; color: var(--emerald); }
.member p { font-size: 13px; margin: 8px 0 0; }
.member-links { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin-top: 10px; }
.member-links a {
  font-size: 12px; padding: 4px 10px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.04); border: 1px solid var(--line); color: var(--muted);
}
.member-links a:hover { color: var(--emerald); border-color: rgba(52, 211, 153, 0.4); text-decoration: none; }

/* ---------- CTA / Footer ---------- */
.cta {
  text-align: center; border-radius: 22px; padding: 48px 24px;
  background:
    radial-gradient(500px 200px at 50% 0%, rgba(52, 211, 153, 0.18), transparent 70%),
    linear-gradient(160deg, var(--panel-2), var(--panel));
  border: 1px solid rgba(52, 211, 153, 0.25);
}
.cta h2 { font-size: clamp(24px, 3.2vw, 34px); }
.cta .btn { margin-top: 10px; }
.site-footer { border-top: 1px solid var(--line-soft); padding: 34px 0; margin-top: 60px; }
.footer-inner { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; font-size: 13.5px; color: var(--muted-2); }
.footer-links { display: flex; gap: 16px; flex-wrap: wrap; }
.footer-links a { color: var(--muted); }

/* ---------- Auth / Panel pages ---------- */
.page-center { min-height: calc(100vh - var(--header-h)); display: grid; place-items: center; padding: 48px 0; }
.auth-card {
  width: min(460px, 92vw); background: var(--panel); border: 1px solid var(--line);
  border-radius: 20px; padding: 34px; box-shadow: var(--shadow);
}
.auth-card h1 { font-size: 26px; margin-bottom: 4px; }
.auth-card .sub { color: var(--muted-2); font-size: 14px; margin-bottom: 24px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 13px; color: var(--muted); margin-bottom: 6px; }
.field .hint { font-size: 12px; color: var(--muted-2); margin-top: 5px; }
.form-alert {
  display: none; border-radius: 10px; padding: 10px 14px; font-size: 13.5px; margin-bottom: 16px;
  border: 1px solid transparent;
}
.form-alert.show { display: block; }
.form-alert.error { background: rgba(248, 113, 113, 0.1); border-color: rgba(248, 113, 113, 0.4); color: #fecaca; }
.form-alert.success { background: rgba(52, 211, 153, 0.1); border-color: rgba(52, 211, 153, 0.4); color: #bbf7d0; }
.auth-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: -6px 0 16px; flex-wrap: wrap; }
.link-btn {
  background: none; border: none; padding: 0; font: inherit; font-size: 13.5px;
  color: var(--emerald); cursor: pointer; text-decoration: none;
}
.link-btn:hover { text-decoration: underline; }
.key-box {
  font-family: var(--mono); background: rgba(0, 0, 0, 0.4); border: 1px dashed rgba(244, 193, 82, 0.5);
  border-radius: 10px; padding: 12px 14px; color: var(--gold); font-size: 15px;
  word-break: break-all; user-select: all; margin: 10px 0;
}
.policy-body h3 { font-size: 16px; margin: 22px 0 8px; color: var(--gold); }
.policy-body ul { margin: 0 0 14px; padding-left: 20px; color: var(--muted); font-size: 14px; }
.policy-body li { margin-bottom: 6px; }
.policy-meta { display: flex; gap: 16px; flex-wrap: wrap; font-size: 13px; color: var(--muted-2); border-bottom: 1px solid var(--line-soft); padding-bottom: 14px; margin-bottom: 8px; }
.auth-foot { text-align: center; font-size: 13.5px; color: var(--muted-2); margin-top: 18px; }

.panel { background: var(--panel); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow); }
.panel-head { padding: 22px 26px; border-bottom: 1px solid var(--line-soft); display: flex; justify-content: space-between; gap: 14px; align-items: center; flex-wrap: wrap; }
.panel-head h1 { font-size: 22px; margin: 0; }
.panel-body { padding: 26px; }
.dashboard { padding: 36px 0 60px; }
.dashboard-grid { display: grid; grid-template-columns: 300px 1fr; gap: 20px; align-items: start; }
.side-nav { padding: 14px; }
.side-nav a, .side-nav button {
  display: flex; width: 100%; gap: 10px; align-items: center; text-align: left;
  padding: 11px 14px; border-radius: 10px; color: var(--muted); font: inherit; font-size: 14px;
  background: transparent; border: none; cursor: pointer;
}
.side-nav a:hover, .side-nav button:hover { background: rgba(255, 255, 255, 0.05); color: var(--text); text-decoration: none; }
.side-nav .active { background: rgba(52, 211, 153, 0.1); color: var(--emerald); }
.side-nav .divider { height: 1px; background: var(--line-soft); margin: 10px 6px; }

.info-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.info-item { background: var(--bg-soft); border: 1px solid var(--line-soft); border-radius: var(--radius-sm); padding: 13px 16px; }
.info-item .k { font-size: 12px; color: var(--muted-2); text-transform: uppercase; letter-spacing: 0.08em; }
.info-item .v { font-size: 14.5px; color: var(--text); word-break: break-word; }

/* ---------- Table ---------- */
.table-wrap { overflow-x: auto; }
table.data { width: 100%; border-collapse: collapse; font-size: 13.5px; }
table.data th {
  text-align: left; padding: 10px 12px; color: var(--muted-2); font-weight: 600;
  font-size: 12px; text-transform: uppercase; letter-spacing: 0.07em;
  border-bottom: 1px solid var(--line); white-space: nowrap;
}
table.data td { padding: 11px 12px; border-bottom: 1px solid var(--line-soft); vertical-align: top; }
table.data tr:hover td { background: rgba(255, 255, 255, 0.02); }
.badge {
  display: inline-block; font-size: 11.5px; font-weight: 600; padding: 3px 9px; border-radius: 999px;
  border: 1px solid var(--line); color: var(--muted); background: rgba(255, 255, 255, 0.03);
}
.badge.owner { color: var(--gold); border-color: rgba(244, 193, 82, 0.4); background: rgba(244, 193, 82, 0.08); }
.badge.editor { color: var(--blue); border-color: rgba(96, 165, 250, 0.4); background: rgba(96, 165, 250, 0.08); }
.badge.game_admin { color: #c084fc; border-color: rgba(192, 132, 252, 0.4); background: rgba(192, 132, 252, 0.08); }
.badge.active { color: var(--emerald); border-color: rgba(52, 211, 153, 0.4); background: rgba(52, 211, 153, 0.08); }
.badge.locked { color: var(--red); border-color: rgba(248, 113, 113, 0.4); background: rgba(248, 113, 113, 0.08); }

.tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 18px; }
.tab {
  padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line);
  background: transparent; color: var(--muted); font: inherit; font-size: 13.5px; cursor: pointer;
}
.tab.active { background: rgba(52, 211, 153, 0.12); border-color: rgba(52, 211, 153, 0.4); color: var(--emerald); }
.toolbar { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.toolbar .input, .toolbar .select { width: auto; min-width: 160px; }

/* ---------- Toast ---------- */
.toast-stack { position: fixed; right: 18px; bottom: 18px; z-index: 100; display: flex; flex-direction: column; gap: 8px; }
.toast {
  background: #0f1b2e; border: 1px solid var(--line); border-left: 4px solid var(--emerald);
  border-radius: 10px; padding: 11px 16px; font-size: 13.5px; color: var(--text);
  box-shadow: var(--shadow); animation: toast-in 0.2s ease-out;
}
.toast.error { border-left-color: var(--red); }
@keyframes toast-in { from { transform: translateY(8px); opacity: 0; } to { transform: none; opacity: 1; } }

.hidden { display: none !important; }
.text-right { text-align: right; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.spacer { flex: 1; }
.empty { padding: 30px; text-align: center; color: var(--muted-2); font-size: 14px; }

/* ---------- Công tắc bật/tắt ---------- */
.switch {
  position: relative; width: 56px; height: 30px; border-radius: 999px; flex-shrink: 0;
  background: rgba(255, 255, 255, 0.1); border: 1px solid var(--line);
  cursor: pointer; transition: background 0.18s, border-color 0.18s; padding: 0;
}
.switch-knob {
  position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%;
  background: #6f82a3; transition: transform 0.18s, background 0.18s;
}
.switch[aria-checked="true"] { background: rgba(248, 113, 113, 0.22); border-color: rgba(248, 113, 113, 0.55); }
.switch[aria-checked="true"] .switch-knob { transform: translateX(26px); background: var(--red); }
.switch:disabled { opacity: 0.5; cursor: not-allowed; }

.maintenance-box {
  border: 1px solid rgba(248, 113, 113, 0.28); border-radius: 14px;
  background: rgba(248, 113, 113, 0.05); padding: 16px 18px;
}
.maintenance-box.on { background: rgba(248, 113, 113, 0.1); border-color: rgba(248, 113, 113, 0.5); }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero { padding-top: 56px; }
  .hero-art { min-height: 260px; }
  .stats, .card-grid, .team-grid, .steps { grid-template-columns: repeat(2, 1fr); }
  .dashboard-grid { grid-template-columns: 1fr; }
  .side-nav { display: flex; flex-wrap: wrap; gap: 4px; }
  .side-nav a, .side-nav button { width: auto; }
  .side-nav .divider { display: none; }
}
@media (max-width: 720px) {
  .main-nav {
    display: none; position: absolute; top: var(--header-h); left: 0; right: 0;
    flex-direction: column; background: var(--bg-soft); border-bottom: 1px solid var(--line);
    padding: 10px 5vw 16px; gap: 2px;
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 11px 12px; }
  .nav-toggle { display: inline-grid; place-items: center; margin-left: auto; }
  .header-actions .btn-ghost { display: none; }
  .header-actions { margin-left: 0; }
  .user-name { display: none; }
  .user-dropdown { right: -6px; }
  .section { padding: 52px 0; }
  .achievement-list, .info-grid, .result-grid { grid-template-columns: 1fr; }
  .lookup { padding: 20px; }
  .lookup-form { flex-direction: column; }
  .auth-card { padding: 26px 20px; }
  .panel-head, .panel-body { padding: 18px; }
  .toolbar .input, .toolbar .select { width: 100%; }
}
@media (max-width: 480px) {
  .stats, .card-grid, .team-grid, .steps { grid-template-columns: 1fr; }
  .hero h1 { font-size: 32px; }
  .ip-row { flex-wrap: wrap; }
  .ip-row .btn { width: 100%; }
}