:root {
  --bg: #09090c;
  --panel: #13131a;
  --panel-2: #1b1b25;
  --accent: #ff2f72;
  --accent-2: #ff6a9e;
  --text: #f6f5f7;
  --muted: #b9b3c7;
  --glow: rgba(255, 47, 114, 0.35);
  --shadow: 0 18px 45px rgba(0, 0, 0, 0.45);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Bebas Neue", "Oswald", "Russo One", sans-serif;
  background: radial-gradient(circle at top, rgba(255, 47, 114, 0.12), transparent 45%),
              radial-gradient(circle at 80% 20%, rgba(255, 106, 158, 0.15), transparent 35%),
              var(--bg);
  color: var(--text);
}

.app {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-image: radial-gradient(circle at 20% 70%, rgba(255, 47, 114, 0.08), transparent 40%);
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 18px 8px;
}

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

.logo-orbit {
  position: relative;
  width: 86px;
  height: 86px;
  display: grid;
  place-items: center;
  filter: drop-shadow(0 10px 24px rgba(0, 0, 0, 0.55));
  animation: float 6s ease-in-out infinite;
}

.logo-mark {
  width: 62px;
  height: 62px;
  border-radius: 50%;
  object-fit: cover;
  z-index: 3;
  filter: saturate(1.2) contrast(1.1);
  animation: pulse 3.6s ease-in-out infinite;
}

.logo-glow {
  position: absolute;
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 47, 114, 0.6), transparent 70%);
  filter: blur(4px);
  animation: glow 4.2s ease-in-out infinite;
}

.logo-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(255, 47, 114, 0.4);
  animation: spin 8s linear infinite;
}

.ring-1 {
  inset: -4px;
  border-color: rgba(255, 47, 114, 0.5);
}

.ring-2 {
  inset: 6px;
  border-color: rgba(255, 106, 158, 0.7);
  animation-duration: 6s;
}

.ring-3 {
  inset: -10px;
  border-color: rgba(255, 47, 114, 0.2);
  animation-duration: 12s;
  animation-direction: reverse;
}

.logo-scan {
  position: absolute;
  inset: 8px;
  border-radius: 50%;
  background: conic-gradient(from 180deg, rgba(255, 255, 255, 0.35), transparent 40%, rgba(255, 47, 114, 0.15), transparent 70%);
  mix-blend-mode: screen;
  animation: scan 5.5s linear infinite;
  z-index: 2;
}

.logo-noise {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background-image:
    radial-gradient(rgba(255, 255, 255, 0.12) 1px, transparent 1px),
    radial-gradient(rgba(255, 47, 114, 0.12) 1px, transparent 1px);
  background-size: 6px 6px, 4px 4px;
  opacity: 0.35;
  mix-blend-mode: screen;
  animation: flicker 2.2s steps(2, end) infinite;
  z-index: 4;
  pointer-events: none;
}

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

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.04); }
}

@keyframes glow {
  0%, 100% { opacity: 0.55; transform: scale(1); }
  50% { opacity: 0.9; transform: scale(1.1); }
}

@keyframes scan {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes flicker {
  0%, 100% { opacity: 0.25; }
  50% { opacity: 0.5; }
}

@media (prefers-reduced-motion: reduce) {
  .logo-orbit,
  .logo-mark,
  .logo-glow,
  .logo-ring,
  .logo-scan,
  .logo-noise {
    animation: none !important;
  }
}

.status-pill {
  background: rgba(255, 47, 114, 0.18);
  color: var(--accent-2);
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12px;
  letter-spacing: 0.15em;
}

.content {
  flex: 1;
  padding: 8px 18px 100px;
}

.page {
  display: none;
  animation: fadeUp 0.45s ease;
}

.page.active {
  display: block;
}

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

.hero-title {
  font-size: 32px;
  margin: 6px 0 6px;
  letter-spacing: 0.02em;
}

.hero-sub {
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 18px;
}

.home-actions {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.promo-block {
  background: linear-gradient(135deg, rgba(255, 47, 114, 0.2), rgba(255, 106, 158, 0.08));
  border: 1px solid rgba(255, 47, 114, 0.3);
  padding: 16px;
  border-radius: 18px;
  box-shadow: var(--shadow);
}

.promo-block.large {
  padding: 22px;
}

.promo-title {
  font-size: 20px;
  margin-bottom: 6px;
}

.promo-sub {
  font-size: 13px;
  color: var(--muted);
}

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

.glass-card {
  background: linear-gradient(135deg, rgba(19, 19, 26, 0.9), rgba(27, 27, 37, 0.95));
  border: 1px solid rgba(255, 255, 255, 0.05);
  padding: 14px;
  border-radius: 16px;
  min-height: 160px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-shadow: var(--shadow);
}

.card-title {
  font-size: 18px;
}

.card-text {
  font-size: 12px;
  color: var(--muted);
  flex: 1;
}

.primary-btn,
.ghost-btn {
  border: none;
  border-radius: 14px;
  padding: 12px 14px;
  font-size: 14px;
  letter-spacing: 0.06em;
  cursor: pointer;
}

.primary-btn {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
  box-shadow: 0 10px 25px var(--glow);
}

.ghost-btn {
  background: transparent;
  color: var(--text);
  border: 1px solid rgba(255, 47, 114, 0.4);
}

.page-title {
  font-size: 26px;
  margin: 8px 0 6px;
}

.page-sub {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 16px;
}

.wheel-wrap {
  position: relative;
  display: grid;
  place-items: center;
  margin: 10px 0 18px;
}

.wheel {
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: conic-gradient(
    #ff2f72 0deg 72deg,
    #1b1b25 72deg 144deg,
    #ff6a9e 144deg 216deg,
    #141420 216deg 288deg,
    #ff2f72 288deg 360deg
  );
  position: relative;
  box-shadow: var(--shadow);
  transition: transform 3.2s cubic-bezier(0.12, 0.7, 0.2, 1);
}

.wheel-center {
  position: absolute;
  inset: 35% 35%;
  border-radius: 50%;
  background: var(--panel-2);
  display: grid;
  place-items: center;
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent-2);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.wheel-labels {
  position: absolute;
  inset: 0;
}

.wheel-label {
  position: absolute;
  width: 40%;
  left: 30%;
  top: 10%;
  transform-origin: center 120px;
  text-align: center;
  font-size: 10px;
  color: rgba(255, 255, 255, 0.9);
}

.wheel-pointer {
  position: absolute;
  top: -6px;
  width: 0;
  height: 0;
  border-left: 12px solid transparent;
  border-right: 12px solid transparent;
  border-bottom: 20px solid var(--accent);
  filter: drop-shadow(0 4px 8px rgba(255, 47, 114, 0.6));
}

.result {
  margin-top: 10px;
  font-size: 16px;
  text-align: center;
}

.hint {
  margin-top: 6px;
  font-size: 12px;
  color: var(--muted);
  text-align: center;
}

.note {
  margin-top: 12px;
  font-size: 12px;
  color: var(--muted);
}

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

.report-card {
  background: var(--panel);
  border-radius: 18px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: var(--shadow);
}

.report-media {
  height: 140px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(255, 47, 114, 0.4), rgba(255, 106, 158, 0.1));
}

.report-media.alt {
  background: linear-gradient(135deg, rgba(27, 27, 37, 0.8), rgba(255, 47, 114, 0.2));
}

.report-date {
  font-size: 14px;
}

.bottom-nav {
  position: fixed;
  bottom: 12px;
  left: 12px;
  right: 12px;
  background: rgba(15, 15, 20, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 18px;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  padding: 8px 6px;
  gap: 6px;
  backdrop-filter: blur(10px);
}

.nav-item {
  background: transparent;
  border: none;
  color: var(--muted);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  cursor: pointer;
}

.nav-item.active {
  color: var(--accent-2);
}

.nav-icon {
  font-size: 16px;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 90px;
  transform: translateX(-50%);
  background: rgba(255, 47, 114, 0.9);
  padding: 10px 18px;
  border-radius: 16px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.toast.show {
  opacity: 1;
}

@media (max-width: 420px) {
  .wheel {
    width: 230px;
    height: 230px;
  }
  .grid-2 {
    grid-template-columns: 1fr;
  }
}
