:root {
  --pepsi-blue: #1677ff;
  --pepsi-blue-bright: #35a7ff;
  --pepsi-red: #ff345d;
  --pepsi-navy: #020817;
  --pepsi-surface: #07152c;
  --pepsi-white: #f7fbff;
}

html,
body,
#root {
  min-height: 100%;
  background-color: var(--pepsi-navy);
}

body {
  color: var(--pepsi-white);
  background:
    radial-gradient(circle at 12% -8%, rgba(21, 119, 255, 0.24), transparent 34rem),
    radial-gradient(circle at 92% 12%, rgba(255, 52, 93, 0.16), transparent 30rem),
    linear-gradient(180deg, #020817 0%, #01040c 100%) !important;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 18% 28%, rgba(24, 138, 255, 0.09), transparent 24rem),
    radial-gradient(circle at 82% 72%, rgba(255, 49, 88, 0.08), transparent 26rem);
  animation: pepsi-ambient 14s ease-in-out infinite alternate;
}

#root {
  position: relative;
  z-index: 1;
}

.pepsi-brand-orb {
  display: block;
  max-width: 100%;
  border-radius: 24%;
  object-fit: cover;
}

.pepsi-brand-orb--small {
  width: 2rem;
  height: 2rem;
  box-shadow:
    0 0 0 1px rgba(104, 171, 255, 0.24),
    0 7px 20px rgba(20, 106, 255, 0.22);
}

/* Login */
.oreo-login-page {
  position: relative;
  isolation: isolate;
  background:
    radial-gradient(circle at 22% 18%, rgba(12, 109, 255, 0.27), transparent 29rem),
    radial-gradient(circle at 78% 80%, rgba(255, 46, 85, 0.2), transparent 30rem),
    linear-gradient(155deg, #020713 0%, #050a17 46%, #02040a 100%) !important;
}

.oreo-login-page::before,
.oreo-login-page::after {
  content: "";
  position: fixed;
  z-index: -1;
  width: 24rem;
  height: 24rem;
  border-radius: 999px;
  filter: blur(80px);
  pointer-events: none;
}

.oreo-login-page::before {
  top: -12rem;
  left: -10rem;
  background: rgba(11, 105, 255, 0.35);
}

.oreo-login-page::after {
  right: -12rem;
  bottom: -13rem;
  background: rgba(255, 44, 82, 0.28);
}

.oreo-login-grid {
  opacity: 0.6 !important;
  background-image:
    linear-gradient(rgba(40, 132, 255, 0.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 55, 91, 0.07) 1px, transparent 1px) !important;
  background-size: 36px 36px !important;
  mask-image: radial-gradient(circle at 50% 38%, #000 0%, transparent 74%);
}

.oreo-login-brand,
.oreo-auth-kicker {
  color: #a9caff !important;
  letter-spacing: 0.19em !important;
}

.oreo-login-brand::before,
.oreo-auth-kicker::before {
  background: linear-gradient(180deg, #74c7ff, #1677ff) !important;
  box-shadow: 0 0 16px rgba(27, 134, 255, 0.9);
}

.oreo-auth-cookie {
  overflow: visible !important;
  border: 1px solid rgba(86, 157, 255, 0.26) !important;
  border-radius: 25% !important;
  background: url("/brand/pepsivpn-orb.png?v=2") center / cover no-repeat !important;
  box-shadow:
    inset 0 1px rgba(255, 255, 255, 0.12),
    0 16px 45px rgba(0, 74, 255, 0.21);
  filter:
    drop-shadow(0 18px 38px rgba(0, 72, 255, 0.28))
    drop-shadow(0 12px 32px rgba(255, 30, 75, 0.16));
  animation: pepsi-float 5s ease-in-out infinite;
}

.oreo-auth-cookie > * {
  display: none !important;
}

.oreo-auth-cookie img {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 24%;
  object-fit: cover;
}

.oreo-auth-title {
  color: transparent !important;
  background: linear-gradient(90deg, #fff 3%, #b9ddff 51%, #ff7b94 105%);
  background-clip: text;
  -webkit-background-clip: text;
  text-shadow:
    0 0 30px rgba(31, 137, 255, 0.28),
    0 0 48px rgba(255, 51, 91, 0.13);
}

.oreo-auth-subtitle {
  color: #8298b7 !important;
}

.oreo-login-card,
.oreo-auth-tile {
  border: 1px solid transparent !important;
  background:
    linear-gradient(145deg, rgba(8, 28, 62, 0.96), rgba(5, 9, 23, 0.97)) padding-box,
    linear-gradient(135deg, rgba(31, 132, 255, 0.55), rgba(255, 255, 255, 0.08) 48%, rgba(255, 49, 88, 0.4)) border-box !important;
  box-shadow:
    inset 0 1px rgba(255, 255, 255, 0.07),
    0 24px 70px rgba(0, 0, 0, 0.35),
    0 0 50px rgba(16, 102, 255, 0.06) !important;
  backdrop-filter: blur(22px);
}

.oreo-login-card:hover,
.oreo-auth-tile:hover {
  transform: translateY(-2px);
  box-shadow:
    inset 0 1px rgba(255, 255, 255, 0.1),
    0 26px 76px rgba(0, 0, 0, 0.42),
    0 0 42px rgba(24, 126, 255, 0.14) !important;
}

.oreo-auth-bot {
  background:
    radial-gradient(circle at 86% 18%, rgba(27, 132, 255, 0.3), transparent 19rem),
    radial-gradient(circle at 96% 105%, rgba(255, 45, 83, 0.23), transparent 18rem),
    linear-gradient(145deg, rgba(8, 28, 62, 0.96), rgba(5, 9, 23, 0.97)) !important;
}

.oreo-auth-bot .login-art {
  filter:
    drop-shadow(0 18px 24px rgba(0, 96, 255, 0.22))
    drop-shadow(0 10px 25px rgba(255, 35, 76, 0.12));
}

.oreo-auth-tile:first-of-type .login-art {
  filter: drop-shadow(0 12px 24px rgba(25, 127, 255, 0.22));
}

.oreo-auth-tile:last-of-type .login-art {
  filter: drop-shadow(0 12px 24px rgba(255, 45, 84, 0.14));
}

/* Mini app shell */
.mini-shell {
  position: relative;
  isolation: isolate;
  background:
    radial-gradient(circle at 15% 0%, rgba(11, 102, 255, 0.2), transparent 25rem),
    radial-gradient(circle at 92% 38%, rgba(255, 48, 87, 0.12), transparent 30rem),
    linear-gradient(180deg, #020817 0%, #030713 54%, #01040b 100%) !important;
}

.mini-shell::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.55;
  background-image:
    linear-gradient(rgba(70, 145, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(70, 145, 255, 0.035) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(to bottom, #000, transparent 76%);
}

.mini-app,
.mini-content {
  position: relative;
  z-index: 1;
}

.mini-header,
.mini-bottom-nav {
  border-color: rgba(95, 155, 255, 0.13) !important;
  background: rgba(3, 10, 24, 0.78) !important;
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(22px) saturate(140%);
}

.pepsi-layout-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.56rem;
  color: #f8fbff;
}

.pepsi-layout-brand img {
  width: 2rem;
  height: 2rem;
  border-radius: 0.62rem;
  object-fit: cover;
  box-shadow:
    0 0 0 1px rgba(104, 171, 255, 0.24),
    0 7px 20px rgba(20, 106, 255, 0.22);
}

.pepsi-layout-brand strong {
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.mini-editorial {
  background:
    radial-gradient(circle at 72% 22%, rgba(24, 133, 255, 0.19), transparent 18rem),
    radial-gradient(circle at 100% 100%, rgba(255, 46, 85, 0.14), transparent 21rem),
    linear-gradient(145deg, rgba(7, 24, 52, 0.93), rgba(3, 9, 21, 0.97)) !important;
  border-color: rgba(79, 151, 255, 0.2) !important;
  box-shadow:
    inset 0 1px rgba(255, 255, 255, 0.06),
    0 30px 80px rgba(0, 0, 0, 0.28),
    0 0 55px rgba(20, 113, 255, 0.07) !important;
}

.mini-editorial::after {
  border-color: rgba(68, 147, 255, 0.1) !important;
}

.editorial-kicker,
.pass-kicker,
.card-kicker,
.eyebrow {
  color: #6eb9ff !important;
}

.editorial-title,
.hero-title,
.home-title {
  color: #fff !important;
  text-shadow: 0 0 32px rgba(36, 137, 255, 0.16);
}

.editorial-art {
  filter:
    drop-shadow(0 26px 38px rgba(0, 75, 255, 0.24))
    drop-shadow(0 20px 36px rgba(255, 32, 74, 0.12));
}

.sculpture.pepsi-orb {
  object-fit: contain !important;
  border-radius: 22%;
  filter:
    drop-shadow(0 22px 36px rgba(0, 82, 255, 0.26))
    drop-shadow(0 13px 30px rgba(255, 39, 79, 0.15));
  animation: pepsi-float 5.4s ease-in-out infinite;
}

.pass-card,
.subscription-card,
.plan-card,
.device-card,
.profile-card,
.glass-card {
  border-color: rgba(76, 147, 255, 0.17) !important;
  background:
    linear-gradient(145deg, rgba(8, 24, 50, 0.9), rgba(4, 10, 23, 0.94)) !important;
  box-shadow:
    inset 0 1px rgba(255, 255, 255, 0.055),
    0 18px 55px rgba(0, 0, 0, 0.22) !important;
}

.mini-bottom-nav .active,
.mini-bottom-nav [aria-current="page"],
.mini-nav-item.active {
  color: #67b7ff !important;
  text-shadow: 0 0 17px rgba(23, 124, 255, 0.48);
}

button[class*="bg-primary"],
a[class*="bg-primary"],
.primary-button,
.cta-button {
  border-color: transparent !important;
  color: #fff !important;
  background: linear-gradient(105deg, #0b62ff 0%, #168bff 54%, #ff345d 140%) !important;
  box-shadow:
    0 10px 28px rgba(12, 105, 255, 0.25),
    inset 0 1px rgba(255, 255, 255, 0.22) !important;
}

button[class*="bg-primary"]:hover,
a[class*="bg-primary"]:hover,
.primary-button:hover,
.cta-button:hover {
  filter: brightness(1.08);
  box-shadow:
    0 12px 34px rgba(12, 105, 255, 0.34),
    0 0 28px rgba(255, 52, 93, 0.1) !important;
}

.text-primary-400,
.text-primary-500 {
  color: #63b4ff !important;
}

.bg-primary-500 {
  background-color: #1677ff !important;
}

::selection {
  color: #fff;
  background: rgba(16, 112, 255, 0.65);
}

::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #020817;
}

::-webkit-scrollbar-thumb {
  border: 2px solid #020817;
  border-radius: 99px;
  background: linear-gradient(#1677ff, #ff345d);
}

@keyframes pepsi-float {
  0%,
  100% {
    transform: translateY(0) rotate(-1deg);
  }
  50% {
    transform: translateY(-7px) rotate(1deg);
  }
}

@keyframes pepsi-ambient {
  0% {
    transform: translate3d(-2%, -1%, 0) scale(1);
  }
  100% {
    transform: translate3d(2%, 1%, 0) scale(1.06);
  }
}

@media (max-width: 640px) {
  .oreo-login-page::before,
  .oreo-login-page::after {
    width: 17rem;
    height: 17rem;
  }

  .oreo-login-card,
  .oreo-auth-tile {
    backdrop-filter: blur(16px);
  }
}

@media (prefers-reduced-motion: reduce) {
  body::before,
  .oreo-auth-cookie,
  .sculpture.pepsi-orb {
    animation: none !important;
  }
}
