:root {
  color-scheme: light;
  --sky: #1aa8ff;
  --sky-dark: #0788ec;
  --card: rgba(211, 239, 255, 0.88);
  --card-strong: rgba(236, 249, 255, 0.94);
  --blue: #0072e6;
  --blue-dark: #0054b8;
  --yellow: #ffc32b;
  --yellow-dark: #e28d00;
  --ink: #071a32;
  --muted: #315f8f;
  --line: rgba(0, 93, 178, 0.28);
  --white: #ffffff;
  --shadow: 0 12px 28px rgba(0, 72, 140, 0.32);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background: #96d8ff;
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

.app {
  position: relative;
  width: min(430px, 100%);
  min-height: 100vh;
  margin: 0 auto;
  padding: 18px 14px 92px;
  overflow: hidden;
  background:
    linear-gradient(rgba(0, 150, 255, 0.08), rgba(0, 150, 255, 0.1)),
    url("/assets/pixel-bg.png") center bottom / cover no-repeat;
  box-shadow: 0 0 45px rgba(0, 92, 160, 0.35);
}

.app::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 18% 14%, rgba(255, 255, 255, 0.22), transparent 12%),
    linear-gradient(180deg, rgba(0, 111, 220, 0.1), rgba(0, 0, 0, 0.05));
}

.topbar,
.content,
.bottom-nav {
  position: relative;
  z-index: 1;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 44px;
  margin-bottom: 12px;
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.eyebrow {
  margin: 0 0 3px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.eyebrow.dark {
  color: var(--muted);
}

h1,
h2 {
  margin: 0;
  letter-spacing: 0;
}

h1 {
  color: var(--white);
  font-size: 22px;
  line-height: 1.12;
  text-shadow: 0 2px 0 rgba(0, 74, 152, 0.65);
}

h2 {
  font-size: 24px;
  line-height: 1.08;
}

.icon-button {
  width: 42px;
  height: 42px;
  border: 2px solid rgba(255, 255, 255, 0.55);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.18);
  color: var(--white);
  font-size: 22px;
  font-weight: 900;
  box-shadow: inset 0 -3px 0 rgba(0, 80, 160, 0.25);
}

.content {
  display: grid;
  gap: 10px;
}

.hero-screen {
  min-height: calc(100vh - 128px);
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 4px;
  padding-bottom: 18px;
  text-align: center;
}

.pixel-logo {
  display: grid;
  justify-items: center;
  line-height: 0.82;
  color: #ffd42a;
  font-size: clamp(44px, 14vw, 68px);
  font-weight: 1000;
  text-transform: uppercase;
  text-shadow:
    3px 0 #111,
    -3px 0 #111,
    0 3px #111,
    0 -3px #111,
    5px 5px 0 #7a3900,
    7px 7px 0 rgba(0, 0, 0, 0.35);
}

.hero-subtitle {
  margin: 0 0 -8px;
  font-size: 17px;
  font-weight: 900;
  color: #001d37;
  text-shadow: 0 1px rgba(255, 255, 255, 0.5);
}

.hero-cat {
  display: block;
  width: min(410px, 94vw);
  max-width: none;
  margin: -8px 0 -12px;
  image-rendering: pixelated;
  filter: drop-shadow(0 12px 0 rgba(0, 80, 20, 0.15)) drop-shadow(0 16px 20px rgba(0, 74, 100, 0.22));
}

.hero-actions {
  display: grid;
  gap: 8px;
  width: min(300px, 86%);
}

.search-panel,
.card,
.button-card,
.info-card,
.orders-head,
.language-card,
.country-hero,
.profile-head,
.notice,
.empty {
  border: 2px solid rgba(255, 255, 255, 0.7);
  border-radius: 10px;
  background: var(--card);
  box-shadow: var(--shadow), inset 0 -3px 0 rgba(0, 108, 198, 0.14);
  backdrop-filter: blur(8px);
}

.search-panel {
  position: relative;
  display: grid;
  gap: 8px;
  padding: 12px 72px 12px 12px;
}

.orders-head {
  position: relative;
  min-height: 76px;
  display: flex;
  align-items: center;
  padding: 12px 72px 12px 14px;
}

.orders-head h2 {
  color: #074f97;
  font-size: 22px;
  font-weight: 1000;
}

.panel-cat {
  position: absolute;
  right: 7px;
  bottom: 6px;
  width: 62px;
  height: 52px;
  object-fit: cover;
  object-position: center;
  image-rendering: pixelated;
}

.search-label,
.section-title {
  color: #074f97;
  font-size: 13px;
  font-weight: 900;
}

.section-title {
  margin: 10px 0 0;
  color: var(--white);
  text-shadow: 0 2px 0 rgba(0, 74, 152, 0.55);
}

.search-input {
  width: 100%;
  min-height: 42px;
  border: 2px solid rgba(0, 102, 201, 0.15);
  border-radius: 8px;
  background: rgba(117, 194, 255, 0.45);
  color: var(--ink);
  padding: 0 12px;
  font-weight: 800;
  outline: none;
}

.search-input::placeholder {
  color: rgba(7, 65, 122, 0.64);
}

.search-input:focus {
  border-color: var(--blue);
  background: rgba(237, 249, 255, 0.8);
}

.chips {
  display: flex;
  gap: 8px;
}

.chip {
  min-height: 34px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 8px;
  background: rgba(194, 232, 255, 0.65);
  color: #07559f;
  font-size: 12px;
  font-weight: 900;
}

.chip.active {
  background: rgba(255, 255, 255, 0.82);
}

.carousel-wrap {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) 38px;
  align-items: center;
  gap: 7px;
}

.carousel-arrow {
  width: 38px;
  height: 64px;
  border: 2px solid rgba(255, 255, 255, 0.72);
  border-radius: 10px;
  background: rgba(236, 249, 255, 0.82);
  color: var(--blue-dark);
  font-size: 24px;
  font-weight: 1000;
  box-shadow: inset 0 -3px 0 rgba(0, 108, 198, 0.14);
}

.popular-carousel {
  width: 100%;
  display: flex;
  gap: 10px;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 2px 2px 8px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  touch-action: pan-x;
  scroll-snap-type: x proximity;
}

.popular-carousel::-webkit-scrollbar {
  display: none;
}

.popular-card {
  position: relative;
  flex: 0 0 calc((100% - 10px) / 2);
  min-height: 76px;
  border: 2px solid rgba(255, 255, 255, 0.72);
  border-radius: 10px;
  background:
    linear-gradient(180deg, rgba(239, 249, 255, 0.92), rgba(181, 229, 255, 0.86));
  color: var(--ink);
  text-align: left;
  padding: 12px;
  box-shadow: var(--shadow), inset 0 -3px 0 rgba(0, 108, 198, 0.14);
  scroll-snap-align: start;
}

.popular-card strong {
  display: block;
  margin-bottom: 5px;
  font-size: 16px;
  font-weight: 1000;
}

.popular-card span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}

.popular-card.vpn-card {
  padding-right: 50px;
}

.vpn-pixel {
  position: absolute;
  right: 10px;
  top: 10px;
  display: grid;
  place-items: center;
  width: 38px;
  height: 28px;
  border: 3px solid #071a32;
  border-radius: 3px;
  background: linear-gradient(#72f0ff, #1687ff);
  color: #ffffff !important;
  font-size: 10px !important;
  font-weight: 1000 !important;
  letter-spacing: 0;
  text-shadow: 1px 1px 0 #003b83;
  box-shadow:
    inset 0 3px 0 rgba(255, 255, 255, 0.45),
    inset 0 -4px 0 rgba(0, 0, 0, 0.18),
    0 3px 0 rgba(0, 0, 0, 0.32);
}

.vpn-pixel::before {
  content: "";
  position: absolute;
  top: -10px;
  width: 18px;
  height: 12px;
  border: 3px solid #071a32;
  border-bottom: 0;
  border-radius: 8px 8px 0 0;
  background: transparent;
}

.hidden {
  display: none;
}

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

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

.list {
  display: grid;
  gap: 10px;
}

.button-card {
  width: 100%;
  min-height: 70px;
  text-align: left;
  color: var(--ink);
  padding: 13px 14px;
}

.info-card {
  width: 100%;
  display: grid;
  gap: 4px;
  min-height: 64px;
  padding: 13px 14px;
  color: var(--ink);
  text-align: left;
}

.info-card strong {
  color: #074f97;
  font-size: 16px;
  font-weight: 1000;
}

.info-card span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.button-card strong,
.card strong {
  display: block;
  margin-bottom: 4px;
  font-size: 16px;
  font-weight: 950;
}

.meta {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.card {
  padding: 14px;
}

.country-hero {
  position: relative;
  min-height: 138px;
  display: flex;
  align-items: flex-end;
  gap: 12px;
  padding: 14px;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(32, 168, 255, 0.2), rgba(181, 231, 255, 0.84)),
    url("/assets/pixel-bg.png") center 34% / 170% auto no-repeat;
}

.back-link {
  position: absolute;
  top: 10px;
  left: 10px;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.28);
  color: var(--white);
  font-size: 22px;
  font-weight: 900;
}

.country-cat-icon {
  position: absolute;
  right: 10px;
  bottom: 8px;
  width: 104px;
  height: 118px;
  object-fit: contain;
  object-position: center;
  opacity: 0.96;
  image-rendering: pixelated;
}

.package {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
}

.price {
  color: var(--ink);
  font-size: 18px;
  font-weight: 1000;
  white-space: nowrap;
}

.actions {
  display: flex;
  gap: 8px;
  margin-top: 12px;
  flex-wrap: wrap;
}

.pixel-button {
  position: relative;
  min-height: 46px;
  width: 100%;
  border-radius: 4px;
  padding: 0 16px;
  color: #181000;
  font-weight: 1000;
  border: 3px solid #1d210b;
  box-shadow:
    inset 0 3px 0 rgba(255, 255, 255, 0.45),
    inset 0 -5px 0 rgba(0, 0, 0, 0.14),
    0 4px 0 rgba(0, 0, 0, 0.42);
}

.primary-pixel {
  background: linear-gradient(#ffd949, var(--yellow));
}

.blue-pixel {
  background: linear-gradient(#238dff, var(--blue));
  color: var(--white);
  border-color: #043a7a;
}

.primary,
.secondary {
  min-height: 42px;
  border-radius: 8px;
  padding: 0 14px;
  font-weight: 900;
}

.primary {
  border: 1px solid var(--blue);
  background: var(--blue);
  color: white;
}

.secondary {
  border: 1px solid var(--line);
  background: rgba(230, 247, 255, 0.9);
  color: var(--ink);
}

.status {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  border-radius: 8px;
  padding: 0 10px;
  background: rgba(230, 247, 255, 0.9);
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}

.status.delivered {
  background: #e9f7ef;
  color: #0c8f45;
}

.empty {
  padding: 24px 16px;
  text-align: center;
  color: var(--muted);
}

.empty h2 {
  margin: 0 0 6px;
  color: var(--ink);
  font-size: 18px;
}

.empty.compact {
  padding: 16px 12px;
}

.notice {
  border-left: 5px solid var(--yellow);
  padding: 12px;
  color: #4d3200;
}

.profile-head {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
}

.profile-head img {
  width: 78px;
  height: 78px;
  border: 0;
  border-radius: 0;
  object-fit: contain;
  object-position: center;
  image-rendering: pixelated;
}

.profile-head p {
  margin: 4px 0 0;
  color: var(--muted);
  font-weight: 800;
}

.language-card {
  display: grid;
  gap: 10px;
  padding: 14px;
}

.language-card > strong {
  color: #074f97;
  font-size: 16px;
  font-weight: 1000;
}

.language-switch {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.language-switch button {
  min-height: 42px;
  border: 2px solid var(--line);
  border-radius: 8px;
  background: rgba(230, 247, 255, 0.9);
  color: var(--ink);
  font-weight: 1000;
}

.language-switch button.active {
  border-color: #043a7a;
  background: linear-gradient(#238dff, var(--blue));
  color: var(--white);
  box-shadow: inset 0 -4px 0 rgba(0, 0, 0, 0.16);
}

.esim-detail-card {
  display: grid;
  justify-items: center;
  gap: 12px;
  border: 2px solid rgba(255, 255, 255, 0.7);
  border-radius: 10px;
  background: var(--card);
  box-shadow: var(--shadow), inset 0 -3px 0 rgba(0, 108, 198, 0.14);
  padding: 16px;
}

.esim-detail-card > strong {
  justify-self: start;
  font-size: 18px;
  font-weight: 1000;
}

.usage-ring {
  width: min(252px, 100%);
  min-height: 126px;
  display: grid;
  gap: 10px;
  place-items: center;
  padding: 12px;
  border: 4px solid #071a32;
  border-radius: 4px;
  background:
    linear-gradient(180deg, #1aa8ff, #0072e6);
  box-shadow:
    inset 0 4px 0 rgba(255, 255, 255, 0.3),
    inset 0 -6px 0 rgba(0, 0, 0, 0.18),
    0 5px 0 rgba(0, 0, 0, 0.38);
}

.usage-value {
  width: 100%;
  min-height: 68px;
  display: grid;
  place-items: center;
  align-content: center;
  border: 3px solid #071a32;
  border-radius: 3px;
  background:
    linear-gradient(180deg, rgba(236, 249, 255, 0.95), rgba(177, 229, 255, 0.9));
  color: white;
  text-align: center;
  box-shadow:
    inset 0 4px 0 rgba(255, 255, 255, 0.58),
    inset 0 -4px 0 rgba(0, 114, 230, 0.16);
}

.usage-ring b {
  color: #071a32;
  font-size: 32px;
  line-height: 1;
  text-shadow: 2px 2px 0 rgba(255, 255, 255, 0.7);
}

.usage-ring span {
  margin-top: 4px;
  font-size: 11px;
  color: #315f8f;
  font-weight: 1000;
}

.usage-pixels {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 4px;
}

.usage-pixels span {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  margin: 0;
  border: 2px solid #071a32;
  border-radius: 2px;
  background: rgba(236, 249, 255, 0.48);
  box-shadow: inset 0 -3px 0 rgba(0, 0, 0, 0.12);
}

.usage-pixels span.active {
  background: var(--yellow);
  box-shadow:
    inset 0 3px 0 rgba(255, 255, 255, 0.55),
    inset 0 -4px 0 var(--yellow-dark);
}

.qr-title {
  margin: 2px 0 -2px;
  color: #074f97;
  font-size: 15px;
  font-weight: 1000;
}

.qr-image,
.qr-placeholder {
  width: min(230px, 72vw);
  aspect-ratio: 1;
  border: 8px solid rgba(255, 255, 255, 0.88);
  border-radius: 10px;
  background: white;
  box-shadow: 0 6px 0 rgba(0, 90, 170, 0.13);
}

.qr-image {
  object-fit: contain;
  image-rendering: pixelated;
}

.qr-placeholder {
  display: grid;
  place-items: center;
  color: var(--muted);
  font-weight: 900;
}

.detail-list {
  width: 100%;
  display: grid;
  gap: 8px;
}

.detail-list p {
  margin: 0;
  display: grid;
  gap: 3px;
  padding: 10px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.36);
}

.detail-list span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.detail-list b {
  color: #153763;
  font-size: 13px;
  line-break: anywhere;
}

.manual-activation {
  width: 100%;
  display: grid;
  gap: 10px;
  margin-top: 4px;
  padding: 13px;
  border: 2px solid rgba(255, 255, 255, 0.72);
  border-radius: 10px;
  background: rgba(236, 249, 255, 0.62);
  box-shadow: inset 0 -3px 0 rgba(0, 108, 198, 0.12);
}

.manual-activation h3 {
  margin: 0;
  color: #074f97;
  font-size: 17px;
  font-weight: 1000;
}

.manual-activation ol {
  display: grid;
  gap: 6px;
  margin: 0;
  padding-left: 22px;
  color: #153763;
  font-size: 13px;
  font-weight: 800;
}

.manual-activation li::marker {
  color: var(--blue);
  font-weight: 1000;
}

.copy-field {
  width: 100%;
  display: grid;
  gap: 4px;
  min-height: 56px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.58);
  color: var(--ink);
  padding: 10px;
  text-align: left;
}

.copy-field span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 1000;
}

.copy-field b {
  color: #153763;
  font-size: 13px;
  line-break: anywhere;
}

.info-page {
  display: grid;
  gap: 14px;
  border: 2px solid rgba(255, 255, 255, 0.7);
  border-radius: 10px;
  background: var(--card);
  box-shadow: var(--shadow), inset 0 -3px 0 rgba(0, 108, 198, 0.14);
  padding: 16px;
}

.info-page h2,
.info-page h3 {
  margin: 0;
  color: #074f97;
  font-weight: 1000;
}

.info-page h2 {
  font-size: 22px;
}

.info-page h3 {
  font-size: 17px;
}

.info-page p {
  margin: 0;
  color: #153763;
  font-size: 14px;
  font-weight: 750;
  line-height: 1.45;
}

.info-page ol {
  display: grid;
  gap: 7px;
  margin: 10px 0 0;
  padding-left: 22px;
  color: #153763;
  font-size: 14px;
  font-weight: 850;
}

.info-page li::marker {
  color: var(--blue);
  font-weight: 1000;
}

.benefits-list {
  display: grid;
  gap: 9px;
  margin-top: 10px;
}

.benefits-list p {
  display: grid;
  gap: 3px;
  padding: 10px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.4);
}

.benefits-list strong {
  color: var(--ink);
  font-size: 14px;
  font-weight: 1000;
}

.benefits-list span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
}

.bottom-nav {
  position: fixed;
  left: 50%;
  bottom: 0;
  width: min(430px, 100%);
  transform: translateX(-50%);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
  padding: 8px 10px calc(8px + env(safe-area-inset-bottom));
  border-radius: 14px 14px 0 0;
  background: linear-gradient(#097be8, #0064d3);
  box-shadow: 0 -8px 22px rgba(0, 45, 120, 0.28);
}

.nav-item {
  min-height: 48px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: rgba(255, 255, 255, 0.84);
  font-size: 11px;
  font-weight: 900;
}

.nav-item span {
  display: block;
  margin-bottom: 2px;
  font-size: 20px;
  line-height: 1;
}

.nav-item.active {
  color: #76fff8;
  background: rgba(255, 255, 255, 0.12);
}

@media (max-width: 380px) {
  .app {
    padding-inline: 10px;
  }

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

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

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