/* =========================================================
   Home.Net Premium Hotspot UI
   Offline-safe untuk MikroTik Hotspot, tanpa CDN.
   ========================================================= */

/* ---------- Theme Variables ---------- */
:root {
  --bg: #eef5fb;
  --bg-2: #dfeaf6;
  --card: rgba(241, 247, 253, 0.9);
  --card-solid: #f3f8fd;
  --text: #132033;
  --muted: #66758c;
  --line: rgba(35, 79, 140, 0.13);
  --premium-line: rgba(91, 154, 255, 0.2);
  --blue: #1577ff;
  --blue-2: #6bc7ff;
  --blue-3: #0b4fd8;
  --good: #22c55e;
  --warn: #facc15;
  --bad: #ef4444;
  --glass: rgba(238, 246, 253, 0.78);
  --shadow: 0 28px 70px rgba(15, 76, 150, 0.2);
  --radius: 28px;
}

[data-theme="dark"] {
  --bg: #061223;
  --bg-2: #091a33;
  --card: rgba(15, 29, 53, 0.86);
  --card-solid: #101f39;
  --text: #edf5ff;
  --muted: #abc1da;
  --line: rgba(147, 197, 253, 0.16);
  --premium-line: rgba(110, 180, 255, 0.18);
  --glass: rgba(13, 27, 50, 0.76);
  --shadow: 0 30px 75px rgba(0, 0, 0, 0.42);
}

/* ---------- Base ---------- */
* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
  margin: 0;
}

body {
  font-family:
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    Arial,
    sans-serif;
  color: var(--text);
  letter-spacing: 0.01em;
  background:
    radial-gradient(
      circle at top left,
      rgba(80, 160, 255, 0.18),
      transparent 26rem
    ),
    radial-gradient(
      circle at bottom right,
      rgba(32, 92, 255, 0.12),
      transparent 24rem
    ),
    linear-gradient(135deg, var(--bg), var(--bg-2));
  overflow-x: hidden;
}

a {
  color: var(--blue);
  text-decoration: none;
  font-weight: 800;
}

/* ---------- Layout ---------- */
.page {
  width: min(1180px, 100%);
  min-height: 100vh;
  margin: auto;
  padding: 22px;
}

.center {
  display: grid;
  place-items: center;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand h1 {
  margin: 0;
  font-size: clamp(24px, 4vw, 42px);
  letter-spacing: -0.04em;
}

.brand p {
  margin: 2px 0 0;
  color: var(--muted);
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

/* ---------- Logo ---------- */
.logo-space {
  width: 78px;
  height: 78px;
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 22px;
  border: 1px solid rgba(77, 163, 255, 0.34);
  background: linear-gradient(145deg, rgba(77, 163, 255, 0.13), rgba(255, 255, 255, 0.08));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.34),
    0 16px 34px rgba(0, 214, 255, 0.14);
}

.logo-space img {
  width: 82%;
  height: 82%;
  display: block;
  object-fit: contain;
  filter: drop-shadow(0 0 10px rgba(0, 234, 255, 0.28));
}

/* ---------- Card ---------- */
.card {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--premium-line);
  background: linear-gradient(145deg, var(--glass), rgba(231, 241, 250, 0.58));
  box-shadow:
    var(--shadow),
    0 8px 18px rgba(15, 76, 150, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.36);
  backdrop-filter: blur(14px);
}

[data-theme="dark"] .card {
  background: linear-gradient(
    145deg,
    rgba(15, 31, 57, 0.94),
    rgba(8, 18, 34, 0.88)
  );
  box-shadow:
    var(--shadow),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 1px solid rgba(230, 241, 252, 0.46);
  pointer-events: none;
}

.card-sm {
  max-width: 460px;
}

.card-md {
  max-width: 660px;
}

.card-status {
  max-width: 1120px;
}

.status-layout {
  width: 100%;
  max-width: 820px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  align-items: center;
  justify-items: stretch;
  margin: 0 auto;
}

.status-side {
  width: 100%;
  display: grid;
  gap: 12px;
}

.time-left-panel {
  position: relative;
  width: 100%;
  min-height: 170px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
  padding: 28px;
  overflow: hidden;
  text-align: center;
  border: 1px solid rgba(34, 197, 94, 0.28);
  border-radius: 26px;
  background: linear-gradient(
    145deg,
    rgba(34, 197, 94, 0.16),
    rgba(226, 239, 250, 0.22)
  );
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.42),
    0 18px 44px rgba(34, 197, 94, 0.13);
}

.time-left-panel::after {
  content: "";
  position: absolute;
  inset: auto -30% -55% auto;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.08;
}

.time-left-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.time-left-panel strong {
  color: currentColor;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1;
  letter-spacing: -0.06em;
}

.time-left-panel small {
  color: var(--muted);
  font-weight: 750;
  line-height: 1.5;
}

.time-left-panel.smart-green {
  color: var(--good);
  border-color: rgba(34, 197, 94, 0.38);
  box-shadow: 0 18px 46px rgba(34, 197, 94, 0.16);
}

.time-left-panel.smart-yellow {
  color: var(--warn);
  border-color: rgba(250, 204, 21, 0.42);
  box-shadow: 0 18px 46px rgba(250, 204, 21, 0.16);
}

.time-left-panel.smart-red {
  color: var(--bad);
  border-color: rgba(239, 68, 68, 0.44);
  box-shadow: 0 18px 46px rgba(239, 68, 68, 0.18);
}

.card-pad {
  padding: 24px;
}

.card-head {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 22px 24px;
  border-bottom: 1px solid var(--premium-line);
  background: linear-gradient(180deg, rgba(77, 163, 255, 0.1), transparent);
}

.card-head h2 {
  margin: 0;
  font-size: 20px;
  letter-spacing: -0.02em;
}

/* ---------- Icons ---------- */
.iconbox {
  width: 60px;
  height: 60px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 22px;
  color: #fff;
  font-size: 28px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: linear-gradient(145deg, #7fd3ff, #1f7cff 55%, #0b4fd8);
  box-shadow:
    0 14px 32px rgba(21, 119, 255, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.55),
    inset 0 -10px 18px rgba(0, 37, 120, 0.2);
}

.iconbox i,
.list i,
summary i,
.price-icon {
  line-height: 1;
  vertical-align: -0.125em;
}

.iconbox i {
  color: #fff;
  font-size: 28px;
  filter: drop-shadow(0 3px 8px rgba(0, 0, 0, 0.2));
}

.success-icon {
  background: linear-gradient(145deg, #7dffb2, #22c55e 58%, #15803d);
}

/* ---------- Buttons ---------- */
.btn,
.theme-toggle,
.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  vertical-align: middle;
  text-align: center;
  line-height: 1;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text);
  cursor: pointer;
  transition: 0.22s ease;
}

.btn i,
.theme-toggle i,
.pill i {
  width: 1.12em;
  height: 1.12em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  font-size: 1.08rem;
  line-height: 1;
}

.btn span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.btn {
  position: relative;
  min-width: 140px;
  height: 54px;
  padding: 0 22px;
  overflow: hidden;
  border-radius: 17px;
  color: #fff;
  font-weight: 900;
  letter-spacing: 0.01em;
  background: linear-gradient(180deg, #a8e1ff 0%, #3b93ff 45%, #1565ff 100%);
  border-color: rgba(255, 255, 255, 0.25);
  box-shadow:
    0 10px 30px rgba(21, 119, 255, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.55),
    inset 0 -4px 10px rgba(0, 0, 0, 0.12);
}

.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    110deg,
    transparent 0 35%,
    rgba(255, 255, 255, 0.55),
    transparent 65%
  );
  transform: translateX(-120%);
  transition: 0.6s;
}

.btn:hover {
  transform: translateY(-2px) scale(1.01);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.45),
    0 18px 34px rgba(21, 119, 255, 0.22);
}

.btn:hover::before {
  transform: translateX(120%);
}

.btn.secondary {
  color: var(--text);
  background: linear-gradient(
    180deg,
    rgba(237, 247, 255, 0.72),
    rgba(221, 236, 250, 0.32)
  );
  border-color: var(--premium-line);
}

[data-theme="dark"] .btn.secondary {
  background: linear-gradient(
    180deg,
    rgba(125, 190, 255, 0.14),
    rgba(255, 255, 255, 0.04)
  );
}

.btn.danger {
  background: linear-gradient(180deg, #ff9da8, #ff4268 52%, #b81235);
}

.btn-full {
  width: 100%;
  margin-top: 16px;
}

.theme-toggle {
  width: 48px;
  height: 48px;
  padding: 0;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.2),
    rgba(255, 255, 255, 0.02)
  );
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.35),
    0 10px 25px rgba(21, 119, 255, 0.12);
}

.theme-toggle i {
  font-size: 20px;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.actions .btn {
  flex: 1;
  min-width: 140px;
  min-height: 54px;
}

.center-form {
  display: flex;
  justify-content: center;
  margin-top: 16px;
}

/* ---------- Social Hover ---------- */
.contact-card .actions .btn {
  min-width: 150px;
}

.contact-card .social-wa,
.contact-card .social-ig,
.contact-card .social-gh,
.contact-card .social-mail {
  color: var(--text);
  background: linear-gradient(
    180deg,
    rgba(237, 247, 255, 0.72),
    rgba(221, 236, 250, 0.32)
  );
  border-color: var(--premium-line);
}

.social-wa:hover,
.error-wa:hover {
  color: #fff;
  border-color: rgba(37, 211, 102, 0.55);
  background: linear-gradient(180deg, #45f08d, #25d366 58%, #128c7e);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.38),
    0 18px 34px rgba(37, 211, 102, 0.28);
}

.social-ig:hover {
  color: #fff;
  border-color: rgba(221, 42, 123, 0.55);
  background: linear-gradient(
    135deg,
    #f58529,
    #dd2a7b 48%,
    #8134af 75%,
    #515bd4
  );
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.38),
    0 18px 34px rgba(221, 42, 123, 0.26);
}

.social-gh:hover {
  color: #fff;
  border-color: rgba(24, 27, 34, 0.55);
  background: linear-gradient(180deg, #3d4656, #181b22);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.28),
    0 18px 34px rgba(24, 27, 34, 0.26);
}

.social-mail:hover {
  color: #fff;
  border-color: rgba(37, 99, 235, 0.55);
  background: linear-gradient(180deg, #78c8ff, #2563eb 62%, #1e40af);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.38),
    0 18px 34px rgba(37, 99, 235, 0.26);
}

.social-back:hover {
  color: var(--blue);
  border-color: rgba(21, 119, 255, 0.35);
  background: linear-gradient(180deg, #edf6ff, #dfeefd);
}

/* ---------- Form ---------- */
.form {
  display: grid;
  gap: 14px;
}

.input-wrap {
  position: relative;
}

.input-wrap i {
  position: absolute;
  top: 50%;
  left: 16px;
  color: var(--blue);
  font-size: 18px;
  transform: translateY(-50%);
}

input {
  width: 100%;
  height: 54px;
  padding: 0 16px 0 46px;
  border: 1px solid var(--line);
  border-radius: 18px;
  outline: none;
  color: var(--text);
  font-weight: 600;
  background: rgba(239, 246, 252, 0.82);
  transition: 0.22s;
}

[data-theme="dark"] input {
  background: rgba(8, 19, 36, 0.72);
}

input:hover {
  border-color: rgba(77, 163, 255, 0.45);
}

input:focus {
  border-color: rgba(77, 163, 255, 0.75);
  box-shadow: 0 0 0 5px rgba(77, 163, 255, 0.12);
  transform: translateY(-1px);
}

/* ---------- Marquee ---------- */
.marquee {
  margin: 18px 0;
  padding: 12px 0;
  overflow: hidden;
  border: 1px solid rgba(77, 163, 255, 0.22);
  border-radius: 18px;
  background: rgba(77, 163, 255, 0.08);
  box-shadow: 0 0 30px rgba(77, 163, 255, 0.18);
}

.marquee span {
  display: inline-block;
  padding-left: 100%;
  white-space: nowrap;
  color: var(--blue);
  font-weight: 900;
  text-shadow: 0 0 18px rgba(77, 163, 255, 0.65);
  animation: runText 17s linear infinite;
}

@keyframes runText {
  to {
    transform: translateX(-100%);
  }
}

/* ---------- Lists And Details ---------- */
.help-card {
  min-height: 250px;
}

.help-card h2 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 14px;
  font-size: 18px;
  letter-spacing: -0.02em;
}

.help-card h2 .bi {
  color: var(--blue);
  font-size: 23px;
  filter: drop-shadow(0 0 10px rgba(77, 163, 255, 0.24));
}

.list {
  display: grid;
  gap: 10px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.list li {
  position: relative;
  display: block;
  min-height: 24px;
  padding-left: 32px;
  color: var(--muted);
  line-height: 1.65;
}

.list li > i:first-child {
  position: absolute;
  top: 0.28em;
  left: 0;
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  color: var(--blue);
  font-size: 14px;
  line-height: 1;
  background: rgba(77, 163, 255, 0.1);
}

details {
  margin-top: 12px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(233, 243, 252, 0.5);
}

summary {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 18px;
  cursor: pointer;
  font-weight: 900;
  list-style: none;
}

summary::-webkit-details-marker {
  display: none;
}

summary i {
  color: var(--blue);
  font-size: 18px;
}

.details-body {
  padding: 0 18px 18px;
}

.price-row {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  font-weight: 850;
}

.price-row span {
  display: inline-flex;
  align-items: center;
  gap: 9px;
}

.price-row b {
  color: var(--blue-2);
  text-align: right;
}

.price-icon {
  width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 9px;
  color: var(--blue);
  font-size: 14px;
  background: rgba(77, 163, 255, 0.12);
}

/* ---------- Status ---------- */
.status-badge {
  position: fixed;
  top: 16px;
  left: 18px;
  z-index: 6;
  padding: 9px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #fff;
  font-size: 13px;
  font-weight: 900;
  background: rgba(15, 29, 53, 0.78);
}

.blink {
  display: inline-block;
  width: 10px;
  height: 10px;
  margin-right: 7px;
  border-radius: 50%;
  animation: blink 1s infinite;
}

.green {
  background: var(--good);
  box-shadow: 0 0 18px var(--good);
}

.yellow {
  background: var(--warn);
  box-shadow: 0 0 18px var(--warn);
}

@keyframes blink {
  50% {
    opacity: 0.25;
  }
}

/* ---------- Logout ---------- */
.logout-card .success-panel {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px;
  margin-bottom: 14px;
  border: 1px solid rgba(34, 197, 94, 0.22);
  border-radius: 22px;
  background: linear-gradient(
    180deg,
    rgba(34, 197, 94, 0.14),
    rgba(34, 197, 94, 0.05)
  );
}

.success-panel i {
  color: var(--good);
  font-size: 32px;
  filter: drop-shadow(0 0 12px rgba(34, 197, 94, 0.28));
}

.success-panel strong,
.success-panel span {
  display: block;
}

.success-panel strong {
  font-weight: 950;
}

.success-panel span {
  color: var(--muted);
  margin-top: 3px;
}

/* ---------- QR Scan ---------- */
.scan-box {
  padding: 18px;
  border: 1px dashed rgba(77, 163, 255, 0.45);
  border-radius: 22px;
  text-align: center;
}

.preview {
  display: none;
  max-width: 100%;
  margin-top: 12px;
  border-radius: 18px;
}

[hidden] {
  display: none !important;
}

/* ---------- Notifications And Loader ---------- */
.muted {
  color: var(--muted);
}

.footer {
  margin-top: 18px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 650;
  text-align: center;
}

.footer a {
  color: var(--blue);
  font-weight: 900;
}

.toast {
  padding: 12px 14px;
  margin-bottom: 14px;
  border: 1px solid rgba(239, 68, 68, 0.22);
  border-radius: 16px;
  color: #ff5d6e;
  font-weight: 850;
  background: rgba(239, 68, 68, 0.12);
}

.loader {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: none;
  place-items: center;
  color: #fff;
  background: rgba(3, 10, 22, 0.84);
  backdrop-filter: blur(10px);
}

.loader.show {
  display: grid;
}

.ring {
  width: 118px;
  height: 118px;
  margin: auto;
  border: 8px solid rgba(255, 255, 255, 0.15);
  border-top-color: #69c7ff;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

.percent {
  margin-top: 18px;
  font-size: 28px;
  font-weight: 950;
  text-align: center;
}

.loader-text {
  text-align: center;
  color: #cfe7ff;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* ---------- Error Page Cyber Glitch ---------- */
.error-body {
  color: #fff;
  background:
    radial-gradient(
      circle at 50% 12%,
      rgba(255, 214, 10, 0.1),
      transparent 16rem
    ),
    radial-gradient(
      circle at 10% 90%,
      rgba(255, 0, 85, 0.14),
      transparent 18rem
    ),
    linear-gradient(135deg, #070006, #17030b 48%, #050008);
}

.error-noise,
.error-scanline {
  position: fixed;
  inset: 0;
  pointer-events: none;
}

.error-noise {
  z-index: 0;
  opacity: 0.18;
  background:
    repeating-linear-gradient(
      90deg,
      rgba(255, 255, 255, 0.08) 0 1px,
      transparent 1px 3px
    ),
    repeating-linear-gradient(
      0deg,
      rgba(255, 0, 80, 0.1) 0 1px,
      transparent 1px 5px
    );
  animation: errorNoise 2s steps(2, end) infinite;
}

.error-scanline {
  z-index: 1;
  background: linear-gradient(
    180deg,
    transparent,
    rgba(250, 204, 21, 0.11),
    transparent
  );
  animation: errorScan 2s linear infinite;
}

.error-card {
  z-index: 2;
  border-color: rgba(250, 204, 21, 0.28);
  background: linear-gradient(
    180deg,
    rgba(74, 5, 20, 0.92),
    rgba(18, 3, 10, 0.96)
  );
  box-shadow:
    0 0 0 1px rgba(255, 0, 76, 0.28),
    0 24px 70px rgba(0, 0, 0, 0.55),
    0 0 50px rgba(255, 0, 76, 0.16);
  animation: glitchCard 2s infinite;
}

.warnicon {
  color: #facc15;
  font-size: 78px;
  text-align: center;
  text-shadow:
    0 0 30px rgba(250, 204, 21, 0.55),
    3px 0 rgba(255, 0, 85, 0.45),
    -3px 0 rgba(0, 220, 255, 0.35);
}

.error-msg {
  color: #ff9aa9;
  font-size: 24px;
  font-weight: 950;
  text-align: center;
  text-shadow:
    2px 0 rgba(255, 0, 85, 0.55),
    -2px 0 rgba(0, 220, 255, 0.38);
}

.error-code {
  padding: 14px;
  border: 1px solid rgba(255, 0, 85, 0.24);
  border-radius: 18px;
  color: #ffd6de;
  font-weight: 850;
  text-align: center;
  background: rgba(0, 0, 0, 0.28);
}

.error-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 14px 0;
}

.error-mini {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px;
  border: 1px solid rgba(250, 204, 21, 0.18);
  border-radius: 16px;
  color: #ffd7df;
  font-weight: 850;
  background: rgba(255, 255, 255, 0.04);
}

.error-mini i {
  color: #facc15;
}

.glitch-all * {
  animation: glitchElement 2s infinite;
}

.glitch-item {
  position: relative;
}

.error-actions .btn {
  border-color: rgba(250, 204, 21, 0.18);
}

@keyframes glitchCard {
  0%,
  90%,
  100% {
    transform: none;
    filter: none;
  }

  92% {
    transform: translateX(-3px) skewX(-1deg);
    filter: hue-rotate(25deg) contrast(1.15);
  }

  94% {
    transform: translateX(3px) skewX(1deg);
    filter: hue-rotate(-25deg) saturate(1.35);
  }

  96% {
    transform: translateY(-2px);
    filter: brightness(1.18);
  }
}

@keyframes glitchElement {
  0%,
  88%,
  100% {
    text-shadow: inherit;
    transform: none;
  }

  90% {
    text-shadow:
      2px 0 rgba(255, 0, 85, 0.8),
      -2px 0 rgba(0, 220, 255, 0.55);
    transform: translateX(-1px);
  }

  94% {
    text-shadow:
      -2px 0 rgba(255, 0, 85, 0.8),
      2px 0 rgba(0, 220, 255, 0.55);
    transform: translateX(1px);
  }
}

@keyframes errorNoise {
  0%,
  100% {
    transform: translate(0, 0);
  }

  50% {
    transform: translate(-2px, 2px);
  }
}

@keyframes errorScan {
  from {
    transform: translateY(-100%);
  }

  to {
    transform: translateY(100%);
  }
}

/* ---------- Responsive ---------- */
@media (max-width: 920px) {
  .grid {
    grid-template-columns: 1fr 1fr;
  }

  .page {
    padding: 16px;
  }

  .topbar {
    align-items: flex-start;
  }

  .brand h1 {
    font-size: 28px;
  }
}

@media (max-width: 640px) {
  .grid {
    grid-template-columns: 1fr;
  }

  .status-layout {
    grid-template-columns: 1fr;
  }

  .card-status {
    max-width: 100%;
  }

  .card-pad,
  .card-head {
    padding: 18px;
  }

  .topbar {
    flex-direction: column;
  }

  .theme-toggle {
    align-self: flex-end;
  }

  .logo-space {
    width: 64px;
    height: 64px;
  }

  .help-card {
    min-height: auto;
  }

  .status-badge {
    position: static;
    display: inline-block;
    margin: 12px 16px 0;
  }

  .page {
    min-height: calc(100vh - 52px);
  }

  .btn,
  .actions .btn {
    width: 100%;
    min-width: 100%;
  }

  .brand {
    align-items: flex-start;
  }

  .brand p {
    font-size: 14px;
  }

  .error-grid {
    grid-template-columns: 1fr;
  }
}

/* ---------- Icon Safety Fallback ---------- */
.social-mail .bi::before {
  content: "\f32f";
}
