:root {
  --bg: #07111f;
  --bg-soft: #0d1830;
  --panel: rgba(255, 255, 255, 0.12);
  --panel-strong: rgba(255, 255, 255, 0.16);
  --line: rgba(255, 255, 255, 0.12);
  --text: #f5f7ff;
  --muted: rgba(245, 247, 255, 0.68);
  --teal: #68f2d3;
  --cyan: #8cb8ff;
  --rose: #ff8db8;
  --gold: #ffd38f;
  --shadow: 0 18px 60px rgba(0, 0, 0, 0.34);
  --radius-xl: 30px;
  --radius-lg: 24px;
  --radius-md: 18px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  background:
    radial-gradient(circle at top left, rgba(104, 242, 211, 0.2), transparent 24%),
    radial-gradient(circle at top right, rgba(140, 184, 255, 0.22), transparent 28%),
    linear-gradient(180deg, #08111f 0%, #0a1224 42%, #060b15 100%);
  overscroll-behavior-x: none;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  font-family: "Inter", ui-sans-serif, system-ui, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(104, 242, 211, 0.2), transparent 24%),
    radial-gradient(circle at top right, rgba(140, 184, 255, 0.22), transparent 28%),
    linear-gradient(180deg, #08111f 0%, #0a1224 42%, #060b15 100%);
  overscroll-behavior-x: none;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    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: 26px 26px;
  mask-image: radial-gradient(circle at center, black 45%, transparent 90%);
  pointer-events: none;
  opacity: 0.35;
}

a {
  color: inherit;
  text-decoration: none;
}

.app-shell {
  width: min(100%, 430px);
  min-height: 100vh;
  margin: 0 auto;
  position: relative;
  overflow-x: clip;
}

.content {
  position: relative;
  z-index: 1;
}

.glass-panel {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.08));
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  box-shadow: var(--shadow);
}

.glass-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(140deg, rgba(255, 255, 255, 0.16), transparent 38%);
  pointer-events: none;
}

.eyebrow {
  margin: 0 0 8px;
  font-size: 0.72rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.58);
}

.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.section-heading h2,
.detail-hero h1,
.scan-topbar h1 {
  margin: 0;
  font-size: 1.6rem;
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.hero-banner {
  min-height: 210px;
  padding: 24px;
  border-radius: 34px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.hero-orb {
  width: 112px;
  height: 112px;
  align-self: flex-start;
  border-radius: 999px;
  background:
    radial-gradient(circle at 35% 30%, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.28) 18%, transparent 38%),
    linear-gradient(145deg, rgba(104, 242, 211, 0.95), rgba(140, 184, 255, 0.5), rgba(255, 141, 184, 0.68));
  box-shadow: inset 0 1px 18px rgba(255, 255, 255, 0.35), 0 0 80px rgba(104, 242, 211, 0.25);
  animation: floatOrb 5.5s ease-in-out infinite;
}

.bottom-nav {
  position: fixed;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  width: min(calc(100% - 24px), 406px);
  padding: 12px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  border-radius: 28px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(6, 12, 24, 0.82);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.4);
  z-index: 20;
}

.bottom-nav__link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 54px;
  border-radius: 18px;
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.95rem;
  transition: transform 180ms ease, background 180ms ease, color 180ms ease;
}

.bottom-nav__link.active {
  color: #06111e;
  background: linear-gradient(135deg, var(--teal), #a8ddff);
}

.bottom-nav__link:active {
  transform: scale(0.98);
}

.nav-icon {
  font-size: 1rem;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 0.95rem;
}

@keyframes floatOrb {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(10px);
  }
}

@media (max-width: 380px) {
  .hero-banner {
    padding: 20px;
    min-height: 190px;
  }

  .section-heading h2,
  .detail-hero h1,
  .scan-topbar h1 {
    font-size: 1.4rem;
  }
}
