html,
body {
  min-height: 100%;
  overflow-x: hidden;
  background: var(--premium-bg);
}

.pattern-premium {
  min-height: 100svh;
  min-height: 100dvh;
  color: var(--premium-text);
  font-family: var(--premium-font);
  background:
    radial-gradient(circle at 18% 0%, rgba(136, 227, 161, 0.17), transparent 34%),
    radial-gradient(circle at 86% 18%, rgba(143, 191, 255, 0.13), transparent 30%),
    linear-gradient(180deg, #07130f 0%, #030706 68%);
}

.premium-frame {
  position: relative;
  width: min(100vw, 430px);
  min-height: 100svh;
  min-height: 100dvh;
  margin: 0 auto;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent 42%),
    var(--premium-bg);
}

.premium-scroll {
  height: 100svh;
  height: 100dvh;
  overflow-y: auto;
  overflow-x: hidden;
  padding: calc(78px + env(safe-area-inset-top)) 18px calc(var(--premium-tabbar-height) + 26px);
  scroll-padding-bottom: calc(var(--premium-tabbar-height) + 24px);
  -webkit-overflow-scrolling: touch;
}

.premium-topbar {
  position: fixed;
  z-index: 30;
  top: 0;
  left: 50%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(100vw, 430px);
  padding: calc(13px + env(safe-area-inset-top)) 18px 12px;
  transform: translateX(-50%);
  background: linear-gradient(180deg, rgba(4, 9, 7, 0.94), rgba(4, 9, 7, 0.62) 74%, transparent);
  backdrop-filter: blur(18px);
}

.premium-topbar strong {
  display: block;
  font-size: 25px;
  line-height: 0.98;
  letter-spacing: -0.04em;
}

.premium-eyebrow,
.premium-topbar span,
.premium-trust-chip {
  color: var(--premium-muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.premium-trust-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid var(--premium-line);
  border-radius: 999px;
  color: var(--premium-muted);
  background: rgba(255, 255, 255, 0.04);
}

.premium-trust-chip span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--premium-mint);
  box-shadow: 0 0 16px rgba(136, 227, 161, 0.34);
}

.premium-tabbar {
  position: fixed;
  z-index: 32;
  right: 50%;
  bottom: 0;
  left: auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  width: min(100vw, 430px);
  height: var(--premium-tabbar-height);
  padding: 9px 14px calc(10px + env(safe-area-inset-bottom));
  transform: translateX(50%);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(5, 9, 7, 0.82);
  backdrop-filter: blur(26px) saturate(1.2);
}

.premium-tabbar::before {
  position: absolute;
  inset: -28px 0 auto;
  height: 28px;
  pointer-events: none;
  content: "";
  background: linear-gradient(180deg, transparent, rgba(5, 9, 7, 0.78));
}

.premium-tabbar button {
  display: grid;
  min-height: 50px;
  place-items: center;
  gap: 2px;
  border: 0;
  border-radius: 18px;
  color: var(--premium-dim);
  background: transparent;
}

.premium-tabbar svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.premium-tabbar span {
  font-size: 11px;
  font-weight: 720;
}

.premium-tabbar button.is-active {
  color: var(--premium-text);
  background: rgba(255, 255, 255, 0.09);
}

.premium-sheet-root {
  position: fixed;
  inset: 0;
  z-index: 45;
  pointer-events: none;
}

.premium-sheet-root:empty {
  display: none;
}

.premium-sheet-backdrop,
.premium-sheet {
  pointer-events: auto;
}

.premium-sheet-backdrop {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 18%, rgba(136, 227, 161, 0.08), transparent 28%),
    rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(7px);
}

.premium-sheet {
  position: absolute;
  right: 50%;
  bottom: 0;
  width: min(100vw, 430px);
  max-height: 92dvh;
  padding: 18px 18px calc(18px + env(safe-area-inset-bottom));
  overflow-y: auto;
  transform: translateX(50%);
  border: 1px solid var(--premium-line);
  border-radius: 30px 30px 0 0;
  background: #06100c;
  box-shadow: var(--premium-shadow);
}

.premium-sheet > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 16px;
}

.premium-sheet > header strong {
  display: block;
  font-size: 26px;
  line-height: 1;
}

.premium-sheet button,
.premium-action,
.premium-mini-button,
.premium-link-button {
  min-height: 44px;
  border: 1px solid var(--premium-line);
  border-radius: 999px;
  color: var(--premium-text);
  background: rgba(255, 255, 255, 0.06);
  font-weight: 760;
}
