:root {
  --primary: #0f4f59;
  --ink: #08363d;
  --cloud: #f5fafa;
  --muted: #9fb6bb;
  --accent: #1f8f98;
  --deep: #082d33;
}

.bg-grid {
  background-image:
    linear-gradient(rgba(8, 45, 51, 0.48) 1px, transparent 1px),
    linear-gradient(90deg, rgba(8, 45, 51, 0.48) 1px, transparent 1px),
    radial-gradient(circle at 10% 10%, rgba(31, 143, 152, 0.4), transparent 35%),
    radial-gradient(circle at 100% 0%, rgba(15, 79, 89, 0.34), transparent 40%),
    linear-gradient(180deg, rgba(8, 45, 51, 0.16), transparent 40%);
  background-size: 20px 20px, 20px 20px, auto, auto, auto;
  background-position: 0 0, 0 0, center, center, center;
}

.nav-link {
  color: #e6f4f6;
  font-weight: 600;
  transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link-active {
  color: #7ff9e8;
}

.nav-shell {
  background: rgba(8, 54, 61, 0.8);
  border: 1px solid rgba(159, 214, 220, 0.6);
  box-shadow:
    0 18px 50px rgba(8, 45, 51, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(32px) saturate(180%);
}

.nav-3d {
  position: relative;
  overflow: hidden;
}

.nav-orb {
  position: absolute;
  border-radius: 999px;
  pointer-events: none;
  transform: translateZ(0);
  mix-blend-mode: screen;
}

.nav-orb-a {
  right: -36px;
  top: -22px;
  width: 110px;
  height: 110px;
  background: radial-gradient(circle at 30% 30%, rgba(111, 246, 232, 0.9), rgba(31, 143, 152, 0.25), rgba(8, 45, 51, 0));
  filter: blur(0.5px);
  animation: floatOrb 8s ease-in-out infinite;
}

.nav-orb-b {
  left: -22px;
  bottom: -28px;
  width: 90px;
  height: 90px;
  background: radial-gradient(circle at 40% 40%, rgba(26, 163, 163, 0.75), rgba(15, 79, 89, 0.2), rgba(8, 45, 51, 0));
  filter: blur(0.5px);
  animation: floatOrb 9s ease-in-out infinite reverse;
}

@keyframes floatOrb {
  0%, 100% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  50% {
    transform: translate3d(6px, -8px, 0) scale(1.05);
  }
}

.btn-cta {
  border-radius: 999px;
  padding-left: 1.35rem;
  padding-right: 1.35rem;
  border: 1px solid rgba(255, 255, 255, 0.35);
  box-shadow: 0 12px 24px rgba(26, 163, 163, 0.25);
}

.btn-primary {
  background: linear-gradient(135deg, #7ff9e8, #1aa3a3);
  background-color: #1aa3a3;
  color: #ffffff;
  padding: 0.62rem 1.15rem;
  border-radius: 0.9em;
  font-size: 0.9rem;
  font-weight: 700;
  border: 1px solid rgba(255, 255, 255, 0.25);
  transition: transform 0.15s ease, box-shadow 0.2s ease;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 30px rgba(15, 79, 89, 0.35);
}

.marquee-bar {
  position: relative;
  overflow: hidden;
  height: 4rem;
  display: flex;
  align-items: center;
  font-family: "IBM Plex Mono", "Manrope", sans-serif;
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.marquee-track {
  display: inline-flex;
  align-items: center;
  gap: 2.25rem;
  white-space: nowrap;
  padding-left: 100%;
  animation: marquee 16s linear infinite;
}

.marquee-icon svg {
  width: 28px;
  height: 28px;
  display: inline-block;
  vertical-align: middle;
}

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

.glow-panel {
  box-shadow: 0 0 0 1px rgba(15, 79, 89, 0.2), 0 24px 60px rgba(8, 45, 51, 0.35);
}

.glow-orb {
  background: radial-gradient(circle, rgba(31, 143, 152, 0.55), rgba(31, 143, 152, 0));
  filter: blur(6px);
}

.hero-pulse {
  text-shadow:
    0 0 18px rgba(45, 198, 195, 0.35),
    0 0 40px rgba(15, 79, 89, 0.4);
  animation: heroPulse 4.5s ease-in-out infinite;
}

@keyframes heroPulse {
  0%, 100% {
    letter-spacing: 0.01em;
    text-shadow:
      0 0 14px rgba(45, 198, 195, 0.25),
      0 0 34px rgba(15, 79, 89, 0.3);
  }
  50% {
    letter-spacing: 0.03em;
    text-shadow:
      0 0 24px rgba(45, 198, 195, 0.45),
      0 0 52px rgba(15, 79, 89, 0.5);
  }
}

.btn-secondary {
  border: 1px solid var(--muted);
  color: var(--ink);
  padding: 0.5rem 0.95rem;
  border-radius: 999px;
  font-size: 0.85rem;
  background: #ffffff;
  font-weight: 600;
}

.btn-danger {
  border: 1px solid var(--primary);
  color: var(--primary);
  padding: 0.5rem 0.95rem;
  border-radius: 999px;
  font-size: 0.85rem;
  background: #ffffff;
  font-weight: 600;
}

.input-field {
  border: 1px solid var(--muted);
  border-radius: 0.9rem;
  padding: 0.72rem 0.9rem;
  background: #ffffff;
  font-size: 0.92rem;
  color: var(--ink);
}

.input-field:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(255, 107, 0, 0.18);
}

.product-card {
  background: #ffffff;
  border: 1px solid #e5e5e5;
  border-radius: 1.4rem;
  padding: 1rem;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.08);
  transition: transform 0.2s ease;
}

.product-card:hover {
  transform: translateY(-2px);
}

.stat-card {
  background: #ffffff;
  border: 1px solid #e5e5e5;
  border-radius: 1rem;
  padding: 1rem;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.07);
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.65rem;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 700;
  background: #fff3eb;
  color: var(--primary);
  border: 1px solid #ffcfb0;
}

.chart-card {
  position: relative;
  border-radius: 1.4rem;
  border: 1px solid #e5e7eb;
  background: linear-gradient(135deg, #ffffff, #fff7f1);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.08);
  overflow: hidden;
}

.chart-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 10% 10%, rgba(255, 107, 0, 0.08), transparent 40%),
    radial-gradient(circle at 90% 0%, rgba(0, 0, 0, 0.08), transparent 45%);
  pointer-events: none;
}

.chart-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.chart-subtitle {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: #94a3b8;
}

.chart-wrap {
  position: relative;
  height: 260px;
}

@media (max-width: 640px) {
  .chart-wrap {
    height: 220px;
  }
}

@media (max-width: 640px) {
  .btn-primary,
  .btn-secondary,
  .btn-danger {
    width: 100%;
    justify-content: center;
  }
  .admin-layout {
    grid-template-columns: 1fr !important;
    gap: 1rem;
  }
  .admin-sidebar {
    width: 100%;
    max-width: 100%;
  }
  .admin-content {
    width: 100%;
    max-width: 100%;
  }
  .admin-top {
    flex-direction: column;
    align-items: stretch;
  }
  .admin-top > * {
    width: 100%;
  }
  .admin-table {
    font-size: 0.85rem;
  }
  .admin-table th,
  .admin-table td {
    padding: 0.5rem 0.5rem;
  }
  .admin-actions {
    flex-wrap: wrap;
  }
  .admin-actions > * {
    width: 100%;
  }
}
