﻿:root {
  --bg: #04030b;
  --bg-2: #0b0d1c;
  --text: #eef4ff;
  --muted: #9ea7c8;
  --line: rgba(120, 156, 255, 0.24);
  --glass: rgba(8, 11, 26, 0.58);
  --primary: #47d7ff;
  --secondary: #7f8dff;
  --purple: #8a5bff;
  --success: #3fe592;
  --danger: #ff5f7a;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.55);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--text);
  font-family: "Rajdhani", sans-serif;
  background: radial-gradient(circle at 8% 8%, rgba(71, 215, 255, 0.16), transparent 33%),
    radial-gradient(circle at 92% 0%, rgba(138, 91, 255, 0.2), transparent 34%),
    linear-gradient(165deg, var(--bg), var(--bg-2));
  min-height: 100vh;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(120deg, transparent 0%, rgba(255, 255, 255, 0.02) 50%, transparent 100%);
  mix-blend-mode: screen;
  z-index: -1;
}

.bg-grid {
  position: fixed;
  inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 28px 28px;
  z-index: -3;
}

.bg-orb {
  position: fixed;
  width: 26rem;
  height: 26rem;
  border-radius: 50%;
  filter: blur(48px);
  z-index: -2;
  opacity: 0.42;
  animation: drift 10s ease-in-out infinite alternate;
}

.orb-1 { top: -9rem; left: -8rem; background: rgba(71, 215, 255, 0.5); }
.orb-2 { bottom: -10rem; right: -7rem; background: rgba(255, 127, 50, 0.45); animation-duration: 14s; }

.glass {
  background: var(--glass);
  border: 1px solid var(--line);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: var(--shadow);
}

.topbar, .footer, main { width: min(1200px, calc(100% - 2rem)); margin-inline: auto; }

.topbar {
  margin-top: 1rem;
  border-radius: 1rem;
  padding: 0.9rem 1rem;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0.6rem;
  z-index: 20;
}

.logo-wrap { display: flex; align-items: center; gap: 0.7rem; }
.logo-wrap img { width: 48px; height: 48px; object-fit: contain; }
h1, h2, h3, h4 { margin: 0; font-family: "Orbitron", sans-serif; letter-spacing: 0.03em; }
.logo-wrap p { margin: 0.1rem 0 0; color: var(--muted); }

nav { display: flex; flex-wrap: wrap; gap: 0.8rem; }
nav a { color: #d6e7ff; text-decoration: none; font-weight: 600; transition: 0.2s ease; }
nav a:hover { color: var(--primary); text-shadow: 0 0 12px rgba(71, 215, 255, 0.35); }

main { margin-top: 1rem; display: grid; gap: 1rem; padding-bottom: 2rem; }
.hero, .panel, .footer { border-radius: 1rem; padding: 1.25rem; }
.hero { display: grid; grid-template-columns: 1.4fr 1fr; gap: 1rem; }
.kicker { color: var(--primary); font-weight: 700; font-family: "Orbitron", sans-serif; font-size: 0.8rem; }
.hero h2 { margin-top: 0.55rem; font-size: clamp(1.9rem, 5vw, 3.2rem); }
.hero p { color: #d4e0f5; max-width: 62ch; }
.hero-actions { display: flex; gap: 0.7rem; margin-top: 0.9rem; }

.btn {
  border: 0;
  border-radius: 0.8rem;
  padding: 0.72rem 1rem;
  color: #001018;
  background: var(--primary);
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
}

.btn:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(71, 215, 255, 0.35); }
.btn-outline { background: transparent; color: var(--text); border: 1px solid rgba(255, 255, 255, 0.25); }
.btn-primary { background: linear-gradient(135deg, var(--primary), #8ee7ff); }

.hero-stats { display: grid; gap: 0.7rem; }
.hero-stats article, .dash-stats article, .support-cards article {
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 0.8rem;
  padding: 0.85rem;
  background: rgba(5, 10, 24, 0.55);
}

.panel,
.hero,
.topbar,
.footer {
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.panel:hover,
.hero:hover {
  transform: translateY(-2px);
  border-color: rgba(71, 215, 255, 0.35);
}
.hero-stats span, .dash-stats span, .support-cards span { color: var(--muted); display: block; font-size: 0.95rem; }
.hero-stats strong, .dash-stats strong, .support-cards strong { font-size: 1.3rem; }

.section-head span { color: var(--primary); font-family: "Orbitron", sans-serif; font-size: 0.78rem; }
.section-head h3 { margin-top: 0.35rem; }

.form-grid { margin-top: 1rem; display: grid; gap: 0.75rem; grid-template-columns: repeat(2, minmax(0, 1fr)); }
label { display: grid; gap: 0.35rem; }
input {
  background: rgba(2, 6, 16, 0.8);
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 0.65rem;
  padding: 0.7rem 0.75rem;
  font-family: inherit;
  font-size: 1rem;
}

input:focus { outline: 2px solid rgba(71, 215, 255, 0.4); border-color: rgba(71, 215, 255, 0.6); }
.input-invalid {
  border-color: rgba(255, 95, 122, 0.7) !important;
  outline: 2px solid rgba(255, 95, 122, 0.25);
}
.upload-block { margin-top: 0.8rem; }
.preview {
  margin-top: 0.5rem;
  border: 1px dashed rgba(255, 255, 255, 0.28);
  border-radius: 0.8rem;
  min-height: 110px;
  display: grid;
  place-content: center;
  color: var(--muted);
  overflow: hidden;
}

.preview img { width: 100%; max-height: 240px; object-fit: cover; }
.error { min-height: 1.1em; color: #ff8ba0; font-size: 0.9rem; }

.btn-loader {
  width: 14px;
  height: 14px;
  border: 2px solid rgba(0, 0, 0, 0.35);
  border-top-color: rgba(0, 0, 0, 0.9);
  border-radius: 50%;
  animation: spin 0.9s linear infinite;
}

.hidden { display: none !important; }
.split { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 1rem; }
.notes { padding-left: 1.2rem; color: #d2ddf4; }
.qr-box {
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 1rem;
  padding: 0.8rem;
  text-align: center;
  background: rgba(2, 8, 20, 0.75);
}

.qr-box img { width: min(100%, 260px); border-radius: 0.8rem; }
.dash-stats { margin-top: 1rem; display: grid; gap: 0.7rem; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.table-wrap { margin-top: 1rem; overflow: auto; border: 1px solid rgba(255, 255, 255, 0.18); border-radius: 0.9rem; }

table { width: 100%; border-collapse: collapse; min-width: 680px; }
th, td { text-align: left; padding: 0.7rem; border-bottom: 1px solid rgba(255, 255, 255, 0.1); }
thead th { color: var(--primary); font-family: "Orbitron", sans-serif; font-size: 0.8rem; }
.empty { text-align: center; color: var(--muted); }

tbody tr {
  transition: background 0.2s ease;
}

tbody tr:hover {
  background: rgba(71, 215, 255, 0.08);
}

.status { display: inline-block; padding: 0.2rem 0.55rem; border-radius: 999px; font-size: 0.8rem; font-weight: 700; }
.status.approved, .status.completed { background: rgba(63, 229, 146, 0.16); color: var(--success); }
.status.pending { background: rgba(255, 208, 0, 0.13); color: #ffdb5e; }
.status.rejected { background: rgba(255, 95, 122, 0.14); color: var(--danger); }

.support-cards { margin-top: 0.8rem; display: grid; gap: 0.6rem; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.support-box { border: 1px solid rgba(255, 255, 255, 0.18); border-radius: 0.8rem; padding: 0.95rem; background: rgba(3, 8, 18, 0.75); }
.footer { margin: 0 auto 1rem; text-align: center; }

.toast {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 30;
  min-width: 250px;
  max-width: 420px;
  border-radius: 0.75rem;
  padding: 0.75rem 0.9rem;
  color: #fff;
  background: rgba(17, 23, 41, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(15px);
  pointer-events: none;
  transition: all 0.25s ease;
}

.toast.show { opacity: 1; transform: translateY(0); }
.toast.success { border-color: rgba(63, 229, 146, 0.7); }
.toast.error { border-color: rgba(255, 95, 122, 0.7); }

.toast.info { border-color: rgba(71, 215, 255, 0.75); }

.page-loader {
  position: fixed;
  inset: 0;
  background: rgba(4, 8, 18, 0.84);
  display: grid;
  place-items: center;
  z-index: 50;
}

.loader-card { padding: 1.2rem 1.5rem; border-radius: 0.95rem; display: flex; align-items: center; gap: 0.8rem; }
.ring { width: 24px; height: 24px; border-radius: 50%; border: 3px solid rgba(71, 215, 255, 0.35); border-top-color: var(--primary); animation: spin 1s linear infinite; }
.reveal { opacity: 0; transform: translateY(12px); animation: reveal 0.7s ease forwards; }

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes drift { from { transform: translateY(-12px); } to { transform: translateY(12px); } }
@keyframes reveal { to { opacity: 1; transform: translateY(0); } }

@media (max-width: 920px) {
  .hero, .split { grid-template-columns: 1fr; }
  .dash-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 680px) {
  .topbar { flex-direction: column; align-items: flex-start; }
  .form-grid, .support-cards { grid-template-columns: 1fr; }
  .dash-stats { grid-template-columns: 1fr; }
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(120deg, transparent 0%, rgba(255, 255, 255, 0.03) 50%, transparent 100%);
  z-index: -1;
}

.hero {
  grid-template-columns: 1.45fr 0.95fr;
  background: linear-gradient(135deg, rgba(70, 217, 255, 0.12), rgba(138, 91, 255, 0.12) 45%, rgba(7, 10, 25, 0.84));
  border-color: rgba(70, 217, 255, 0.35);
  padding: 1.45rem;
}

.hero h2 {
  font-size: clamp(2.3rem, 5.7vw, 4rem);
  line-height: 1.02;
  text-shadow: 0 0 24px rgba(70, 217, 255, 0.2), 0 0 24px rgba(138, 91, 255, 0.2);
}

.hero-side {
  display: grid;
  gap: 0.75rem;
}

.hero-glow-card {
  border-radius: 0.95rem;
  padding: 0.95rem;
  border: 1px solid rgba(70, 217, 255, 0.28);
  background: linear-gradient(145deg, rgba(10, 16, 36, 0.88), rgba(20, 11, 44, 0.85));
}

.hero-glow-card span {
  color: var(--muted);
  font-size: 0.9rem;
}

.hero-glow-card strong {
  display: block;
  font-family: "Orbitron", sans-serif;
  margin-top: 0.3rem;
  font-size: 1.25rem;
  color: #d8e6ff;
}

.hero-glow-card p {
  margin: 0.45rem 0 0;
  color: #c7d7f3;
}

.panel,
.hero,
.support-box,
.qr-box,
.dash-stats article,
.hero-stats article,
.support-cards article {
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.panel:hover,
.hero:hover,
.support-box:hover,
.qr-box:hover,
.dash-stats article:hover,
.hero-stats article:hover,
.support-cards article:hover {
  transform: translateY(-3px);
  border-color: rgba(138, 91, 255, 0.4);
}

.btn {
  border-radius: 0.9rem;
  padding: 0.84rem 1.08rem;
}

.btn:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 10px 24px rgba(70, 217, 255, 0.35);
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), #8ea0ff);
}

.input-shell {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 0.45rem;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 0.75rem;
  padding: 0 0.7rem;
  background: rgba(2, 6, 18, 0.82);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.input-shell:focus-within {
  border-color: rgba(70, 217, 255, 0.65);
  box-shadow: 0 0 0 3px rgba(70, 217, 255, 0.17);
}

.input-icon {
  width: 1.55rem;
  height: 1.55rem;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  font-size: 0.8rem;
  font-weight: 700;
  color: #c9dcff;
  background: linear-gradient(135deg, rgba(70, 217, 255, 0.25), rgba(138, 91, 255, 0.3));
}

.input-shell input {
  background: transparent;
  border: 0;
  padding: 0.9rem 0.2rem;
}

.input-shell input:focus {
  outline: none;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
}

.reveal.visible {
  animation: reveal 0.7s ease forwards;
}

@media (max-width: 920px) {
  .hero,
  .split {
    grid-template-columns: 1fr;
  }
}

/* Final premium esports polish layer */
.topbar,
.panel,
.hero,
.footer,
.hero-glow-card,
.qr-box,
.support-box,
.table-wrap {
  box-shadow:
    0 16px 40px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(140, 105, 255, 0.08) inset;
}

.topbar {
  padding: 1rem 1.2rem;
  border-color: rgba(70, 217, 255, 0.28);
  background: linear-gradient(145deg, rgba(8, 13, 30, 0.86), rgba(13, 9, 32, 0.82));
}

main {
  gap: 1.25rem;
  margin-top: 1.3rem;
  padding-bottom: 2.5rem;
}

.hero {
  position: relative;
  overflow: hidden;
  min-height: 360px;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 82% 18%, rgba(138, 91, 255, 0.22), transparent 36%);
  pointer-events: none;
}

.hero > * {
  position: relative;
  z-index: 1;
}

.hero p {
  font-size: 1.08rem;
  line-height: 1.7;
}

.hero-meta {
  margin-top: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.hero-meta span {
  padding: 0.42rem 0.66rem;
  border-radius: 999px;
  font-size: 0.82rem;
  color: #d9e6ff;
  border: 1px solid rgba(140, 105, 255, 0.36);
  background: rgba(140, 105, 255, 0.12);
}

.panel {
  padding: 1.45rem;
}

.section-head {
  margin-bottom: 0.6rem;
}

.section-head h3 {
  font-size: clamp(1.2rem, 2vw, 1.45rem);
}

.form-grid {
  gap: 1rem;
}

.input-shell {
  min-height: 52px;
}

.input-shell .input-icon {
  box-shadow: 0 0 14px rgba(70, 217, 255, 0.22);
}

.input-invalid {
  border-color: rgba(255, 95, 122, 0.7) !important;
}

.input-invalid:focus {
  box-shadow: 0 0 0 3px rgba(255, 95, 122, 0.2);
}

.btn {
  font-size: 0.98rem;
  letter-spacing: 0.01em;
}

.btn-outline {
  border-color: rgba(140, 105, 255, 0.35);
  background: rgba(140, 105, 255, 0.08);
}

.btn-outline:hover {
  box-shadow: 0 10px 24px rgba(138, 91, 255, 0.28);
}

.dash-stats {
  gap: 0.85rem;
}

.table-wrap {
  background: rgba(5, 8, 21, 0.66);
}

thead th {
  background: rgba(70, 217, 255, 0.08);
}

th,
td {
  font-size: 0.96rem;
}

.status {
  letter-spacing: 0.02em;
}

.preview,
.qr-box {
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.support-cards article strong {
  font-size: 1.35rem;
}

.toast {
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

@media (max-width: 920px) {
  .hero {
    min-height: auto;
  }

  .topbar {
    top: 0.4rem;
  }
}

@media (max-width: 680px) {
  .hero,
  .panel,
  .footer {
    padding: 1.05rem;
  }

  nav {
    gap: 0.45rem;
  }

  nav a {
    font-size: 0.9rem;
  }

  .hero-actions {
    width: 100%;
    flex-direction: column;
  }

  .hero-actions .btn {
    width: 100%;
  }
}

@media (max-width: 680px) {
  .hero h2 {
    font-size: clamp(2rem, 8vw, 2.6rem);
  }
}

/* Phone-level optimization and full animation layer */
html,
body {
  min-height: 100dvh;
}

body {
  -webkit-tap-highlight-color: transparent;
  text-rendering: optimizeLegibility;
  animation: bgPulse 12s ease-in-out infinite alternate;
}

.bg-grid {
  animation: gridShift 18s linear infinite;
}

.orb-1 {
  animation: floatA 11s ease-in-out infinite alternate;
}

.orb-2 {
  animation: floatB 13s ease-in-out infinite alternate;
}

.hero,
.panel,
.table-wrap,
.support-box,
.hero-glow-card,
.dash-stats article,
.hero-stats article,
.support-cards article {
  animation: fadeUp 0.7s ease both;
}

.hero-stats article:nth-child(2),
.dash-stats article:nth-child(2),
.support-cards article:nth-child(2) {
  animation-delay: 70ms;
}

.hero-stats article:nth-child(3),
.dash-stats article:nth-child(3) {
  animation-delay: 120ms;
}

.btn,
nav a {
  touch-action: manipulation;
}

.btn {
  position: relative;
  overflow: hidden;
}

.btn::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 10%, rgba(255, 255, 255, 0.28) 48%, transparent 86%);
  transform: translateX(-130%);
}

.btn:hover::after,
.btn:focus-visible::after {
  animation: btnShine 0.8s ease;
}

/* iPhone + Android large phones */
@media (max-width: 768px) {
  :root {
    --shadow: 0 14px 28px rgba(0, 0, 0, 0.42);
  }

  .topbar,
  .footer,
  main {
    width: min(1200px, calc(100% - 1rem));
  }

  .topbar {
    top: 0.35rem;
    border-radius: 0.9rem;
    padding: 0.75rem;
    gap: 0.7rem;
  }

  .logo-wrap img {
    width: 42px;
    height: 42px;
  }

  nav {
    width: 100%;
    overflow-x: auto;
    flex-wrap: nowrap;
    gap: 0.45rem;
    padding-bottom: 0.15rem;
    scrollbar-width: thin;
  }

  nav a {
    white-space: nowrap;
    padding: 0.45rem 0.65rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(120, 156, 255, 0.22);
    border-radius: 0.55rem;
    font-size: 0.84rem;
  }

  main {
    gap: 0.9rem;
    margin-top: 0.9rem;
    padding-bottom: calc(1.3rem + env(safe-area-inset-bottom));
  }

  .hero,
  .panel,
  .footer {
    padding: 0.95rem;
    border-radius: 0.9rem;
  }

  .hero {
    min-height: auto;
    gap: 0.8rem;
  }

  .hero h2 {
    font-size: clamp(1.6rem, 8.4vw, 2.45rem);
  }

  .hero p {
    font-size: 0.95rem;
    line-height: 1.6;
  }

  .hero-meta span {
    font-size: 0.74rem;
    padding: 0.35rem 0.56rem;
  }

  .hero-actions {
    flex-direction: column;
    gap: 0.5rem;
  }

  .hero-actions .btn {
    width: 100%;
    justify-content: center;
    min-height: 44px;
  }

  .section-head h3 {
    font-size: clamp(1.08rem, 4.8vw, 1.3rem);
  }

  .form-grid,
  .support-cards,
  .dash-stats,
  .split {
    grid-template-columns: 1fr;
  }

  .input-shell {
    min-height: 50px;
  }

  .input-shell input {
    font-size: 1rem;
  }

  .upload-block input,
  .btn {
    min-height: 44px;
  }

  .notes {
    margin: 0;
    padding-left: 1rem;
    font-size: 0.93rem;
  }

  .qr-box img {
    width: min(100%, 240px);
  }

  .table-wrap {
    overflow: visible;
    border: 0;
    background: transparent;
  }

  table,
  thead,
  tbody,
  tr,
  th,
  td {
    display: block;
    width: 100%;
  }

  thead {
    display: none;
  }

  tbody tr {
    border: 1px solid rgba(120, 156, 255, 0.28);
    border-radius: 0.85rem;
    margin-bottom: 0.6rem;
    padding: 0.45rem 0.65rem;
    background: rgba(5, 8, 21, 0.75);
  }

  tbody tr td {
    border: 0;
    padding: 0.38rem 0;
    font-size: 0.92rem;
  }

  tbody tr td::before {
    content: attr(data-label);
    display: block;
    color: #9dc2ff;
    font-size: 0.76rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 0.14rem;
  }

  tbody tr td.empty {
    text-align: center;
    padding: 0.8rem 0;
  }

  tbody tr td.empty::before {
    content: none;
  }

  .toast {
    right: 0.65rem;
    left: 0.65rem;
    bottom: calc(0.65rem + env(safe-area-inset-bottom));
    min-width: auto;
    max-width: none;
    font-size: 0.9rem;
  }
}

/* Small phones */
@media (max-width: 420px) {
  .topbar,
  .footer,
  main {
    width: calc(100% - 0.7rem);
  }

  .logo-wrap {
    gap: 0.5rem;
  }

  .logo-wrap h1 {
    font-size: 0.95rem;
  }

  .logo-wrap p {
    font-size: 0.75rem;
  }

  .kicker {
    font-size: 0.72rem;
  }

  .hero h2 {
    font-size: clamp(1.4rem, 8.5vw, 2rem);
  }

  .preview {
    min-height: 96px;
  }

  .support-cards article strong,
  .hero-stats strong,
  .dash-stats strong {
    font-size: 1.12rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

@keyframes bgPulse {
  0% {
    filter: saturate(0.96) brightness(0.98);
  }
  100% {
    filter: saturate(1.04) brightness(1.03);
  }
}

@keyframes gridShift {
  0% {
    transform: translate3d(0, 0, 0);
  }
  100% {
    transform: translate3d(28px, 28px, 0);
  }
}

@keyframes floatA {
  0% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  100% {
    transform: translate3d(18px, 18px, 0) scale(1.06);
  }
}

@keyframes floatB {
  0% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  100% {
    transform: translate3d(-16px, -20px, 0) scale(1.07);
  }
}

@keyframes fadeUp {
  0% {
    opacity: 0;
    transform: translateY(14px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes btnShine {
  0% {
    transform: translateX(-130%);
  }
  100% {
    transform: translateX(130%);
  }
}

/* Global responsive safety */
* {
  min-width: 0;
}

img,
svg,
video,
canvas {
  max-width: 100%;
  height: auto;
}

body {
  overflow-x: hidden;
}

p,
h1,
h2,
h3,
h4,
span,
strong,
td,
th,
a,
.muted-copy {
  overflow-wrap: anywhere;
  word-break: break-word;
}

input,
textarea,
select {
  width: 100%;
  font: inherit;
}

.dash-stats {
  grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr));
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.nav-toggle {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.hamburger {
  display: none;
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid rgba(120, 156, 255, 0.32);
  border-radius: 0.65rem;
  background: rgba(255, 255, 255, 0.05);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 0.24rem;
  cursor: pointer;
}

.hamburger span {
  display: block;
  width: 1.2rem;
  height: 2px;
  background: #d6e7ff;
  border-radius: 999px;
  transition: transform 0.22s ease, opacity 0.22s ease;
}

/* Laptop */
@media (max-width: 1024px) {
  html {
    font-size: 15px;
  }

  .topbar,
  .footer,
  main {
    width: min(1200px, calc(100% - 1.25rem));
  }

  .hero {
    grid-template-columns: 1.2fr 1fr;
  }

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

  .hero-actions {
    flex-wrap: wrap;
  }
}

/* Tablet */
@media (max-width: 768px) {
  html {
    font-size: 14px;
  }

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

  .hamburger {
    display: inline-flex;
    position: absolute;
    right: 0.95rem;
    top: 0.95rem;
  }

  .site-nav {
    width: 100%;
    margin-top: 0.75rem;
    display: grid;
    gap: 0.45rem;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.28s ease, opacity 0.22s ease;
  }

  .site-nav a {
    width: 100%;
    padding: 0.7rem 0.75rem;
    border-radius: 0.55rem;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(120, 156, 255, 0.22);
  }

  .nav-toggle:checked ~ .site-nav {
    max-height: 24rem;
    opacity: 1;
  }

  .nav-toggle:checked + .hamburger span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
  }

  .nav-toggle:checked + .hamburger span:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle:checked + .hamburger span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
  }

  .hero,
  .split,
  .form-grid,
  .support-cards {
    grid-template-columns: 1fr;
  }

  .hero-actions {
    flex-direction: column;
    width: 100%;
  }

  .hero-actions .btn,
  #submitBtn,
  .btn {
    width: 100%;
    justify-content: center;
  }

  .panel,
  .hero,
  .footer {
    padding: 1rem;
  }

  .dash-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  table {
    min-width: 0;
  }
}

/* Mobile */
@media (max-width: 480px) {
  html {
    font-size: 13px;
  }

  .topbar,
  .footer,
  main {
    width: calc(100% - 0.75rem);
  }

  .topbar {
    padding: 0.7rem;
    top: 0.3rem;
  }

  .logo-wrap img {
    width: 2.2rem;
    height: 2.2rem;
  }

  .logo-wrap h1 {
    font-size: 0.95rem;
  }

  .logo-wrap p {
    font-size: 0.75rem;
  }

  .hero h2 {
    font-size: clamp(1.55rem, 8vw, 2.05rem);
  }

  .hero p,
  .notes,
  .section-head span {
    font-size: 0.9rem;
  }

  .input-shell,
  input,
  .btn {
    min-height: 2.8rem;
  }

  .btn {
    padding: 0.7rem 0.8rem;
  }

  .dash-stats {
    grid-template-columns: 1fr;
  }

  .table-wrap {
    overflow: visible;
    border: 0;
    background: transparent;
  }

  thead {
    display: none;
  }

  table,
  tbody,
  tr,
  td {
    display: block;
    width: 100%;
  }

  tbody tr {
    border: 1px solid rgba(120, 156, 255, 0.28);
    border-radius: 0.85rem;
    margin-bottom: 0.6rem;
    padding: 0.45rem 0.65rem;
    background: rgba(5, 8, 21, 0.75);
  }

  td {
    border: 0;
    padding: 0.35rem 0;
    text-align: left;
  }

  td::before {
    content: attr(data-label);
    display: block;
    color: #9dc2ff;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 0.14rem;
  }

  td.empty::before {
    content: none;
  }

  .toast {
    left: 0.6rem;
    right: 0.6rem;
    min-width: 0;
    max-width: none;
    bottom: 0.6rem;
  }
}

/* Extra mobile UI upgrade layer */
@media (max-width: 768px) {
  body {
    font-size: 16px;
  }

  .topbar {
    padding-top: calc(0.72rem + env(safe-area-inset-top));
  }

  .topbar,
  .panel,
  .hero,
  .footer {
    border-radius: 14px;
  }

  .logo-wrap {
    width: 100%;
    justify-content: flex-start;
  }

  nav {
    scroll-snap-type: x mandatory;
  }

  nav a {
    scroll-snap-align: start;
    min-height: 38px;
    display: inline-flex;
    align-items: center;
  }

  .kicker {
    letter-spacing: 0.08em;
  }

  .hero h2 {
    margin-top: 0.4rem;
    line-height: 1.06;
  }

  .hero-stats,
  .dash-stats,
  .support-cards {
    gap: 0.55rem;
  }

  .hero-stats article,
  .dash-stats article,
  .support-cards article {
    padding: 0.78rem;
  }

  .hero-stats strong,
  .dash-stats strong,
  .support-cards strong {
    font-size: 1.18rem;
  }

  .section-head {
    margin-bottom: 0.38rem;
  }

  .section-head span {
    font-size: 0.76rem;
  }

  .section-head h3 {
    line-height: 1.2;
  }

  .form-grid {
    margin-top: 0.72rem;
    gap: 0.72rem;
  }

  label span {
    font-size: 0.94rem;
  }

  .input-shell {
    min-height: 52px;
    border-radius: 12px;
    padding: 0 0.64rem;
  }

  .input-shell input {
    font-size: 0.98rem;
  }

  .btn {
    min-height: 46px;
    border-radius: 12px;
  }

  .preview {
    border-radius: 12px;
  }

  .table-wrap {
    margin-top: 0.75rem;
  }

  tbody tr {
    border-radius: 12px;
    margin-bottom: 0.55rem;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.24);
  }

  tbody tr td {
    font-size: 0.91rem;
  }

  .status {
    font-size: 0.78rem;
  }

  .support-box {
    border-radius: 12px;
    padding: 0.82rem;
  }

  .footer {
    margin-bottom: calc(0.6rem + env(safe-area-inset-bottom));
    padding: 0.9rem 0.85rem;
    font-size: 0.88rem;
  }
}

@media (max-width: 480px) {
  .topbar,
  .footer,
  main {
    width: calc(100% - 0.5rem);
  }

  .topbar {
    gap: 0.55rem;
    padding: calc(0.62rem + env(safe-area-inset-top)) 0.62rem 0.62rem;
  }

  .logo-wrap img {
    width: 38px;
    height: 38px;
  }

  .logo-wrap h1 {
    font-size: 0.9rem;
  }

  .logo-wrap p {
    font-size: 0.72rem;
  }

  nav a {
    font-size: 0.8rem;
    min-height: 34px;
    padding: 0.35rem 0.55rem;
  }

  .hero,
  .panel,
  .footer {
    padding: 0.85rem;
  }

  .hero h2 {
    font-size: clamp(1.28rem, 8.2vw, 1.9rem);
  }

  .hero p,
  .notes,
  .support-box p {
    font-size: 0.9rem;
  }

  .hero-meta {
    gap: 0.42rem;
  }

  .hero-meta span {
    font-size: 0.7rem;
    padding: 0.3rem 0.48rem;
  }

  .hero-stats strong,
  .dash-stats strong,
  .support-cards strong {
    font-size: 1.04rem;
  }

  .input-icon {
    width: 1.35rem;
    height: 1.35rem;
    font-size: 0.72rem;
  }

  .input-shell {
    min-height: 48px;
  }

  .input-shell input {
    padding: 0.74rem 0.15rem;
    font-size: 0.95rem;
  }

  .btn {
    min-height: 44px;
    font-size: 0.9rem;
  }

  .toast {
    font-size: 0.86rem;
    border-radius: 10px;
    padding: 0.62rem 0.72rem;
  }
}

.support-collapsible {
  display: none !important;
}

.support-collapsible.show {
  display: grid !important;
}
