:root {
  --bg: #071510;
  --surface: rgba(18, 37, 28, 0.78);
  --surface-strong: rgba(22, 47, 35, 0.92);
  --surface-soft: rgba(255, 255, 255, 0.05);
  --mint: #77f4ba;
  --mint-strong: #4de0a0;
  --mint-deep: #1a7e58;
  --text: #f1fff9;
  --muted: rgba(232, 255, 244, 0.66);
  --stroke: rgba(161, 255, 210, 0.16);
  --danger: #f2c27b;
  --shadow: 0 28px 80px rgba(0, 0, 0, 0.42);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background:
    radial-gradient(circle at 20% 10%, rgba(85, 227, 164, 0.18), transparent 25%),
    radial-gradient(circle at 85% 5%, rgba(68, 167, 120, 0.15), transparent 30%),
    linear-gradient(180deg, #0a1f17 0%, #08120f 100%);
  color: var(--text);
  font-family: "Manrope", sans-serif;
}

button,
input {
  font: inherit;
}

.app-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px 14px;
}

.phone-frame {
  width: min(100%, 390px);
  min-height: 844px;
  border-radius: 36px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background:
    radial-gradient(circle at 50% 20%, rgba(76, 184, 129, 0.38), transparent 32%),
    linear-gradient(180deg, rgba(20, 48, 35, 0.95) 0%, rgba(7, 17, 13, 0.98) 100%);
  box-shadow: var(--shadow);
  overflow: hidden;
  position: relative;
  padding: 18px 18px 112px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.brand-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.brand-title {
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.brand-subtitle {
  font-size: 0.72rem;
  color: var(--muted);
}

.icon-button {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid transparent;
  color: var(--text);
  background: transparent;
  cursor: pointer;
}

.icon-button.ghost {
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(255, 255, 255, 0.06);
}

.icon-button.subtle {
  background: rgba(255, 255, 255, 0.06);
}

.icon-button.mint {
  background: rgba(113, 244, 184, 0.17);
  color: var(--mint);
}

.icon {
  font-size: 1.1rem;
}

.screen-stack {
  position: relative;
  margin-top: 18px;
}

.status-banner {
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  font-size: 0.92rem;
  line-height: 1.4;
}

.status-banner.is-success {
  border-color: rgba(119, 244, 186, 0.36);
  background: rgba(119, 244, 186, 0.12);
}

.status-banner.is-error {
  border-color: rgba(242, 194, 123, 0.36);
  background: rgba(242, 194, 123, 0.12);
}

.screen {
  display: none;
  flex-direction: column;
  gap: 18px;
  animation: fade-slide 180ms ease;
}

.screen.is-active {
  display: flex;
}

.hero-card,
.section-hero,
.profile-banner,
.support-hero,
.menu-card,
.info-card,
.step-card,
.subscription-box,
.device-sheet {
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.hero-card {
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-height: 420px;
}

.orbital-bg {
  position: relative;
  height: 280px;
  display: grid;
  place-items: center;
}

.orbital-bg.compact {
  height: 220px;
}

.ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(160, 255, 207, 0.16);
}

.ring-1 {
  width: 270px;
  height: 270px;
}

.ring-2 {
  width: 206px;
  height: 206px;
}

.ring-3 {
  width: 144px;
  height: 144px;
}

.shield-badge,
.plug-badge,
.support-bubble {
  width: 86px;
  height: 86px;
  border-radius: 26px;
  display: grid;
  place-items: center;
  color: white;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.05));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16);
}

.shield-badge svg,
.plug-badge svg {
  width: 44px;
  height: 44px;
}

.subscription-meta {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
}

.meta-caption {
  color: var(--muted);
  font-size: 0.92rem;
}

.meta-date {
  font-size: 2rem;
  font-weight: 800;
  line-height: 1;
  margin-top: 6px;
}

.meta-status {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 0.92rem;
  margin-top: 12px;
}

.status-dot,
.divider-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.status-dot {
  background: var(--mint);
  box-shadow: 0 0 0 6px rgba(119, 244, 186, 0.1);
}

.divider-dot {
  background: rgba(255, 255, 255, 0.2);
}

.device-chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  border-radius: 999px;
  padding: 12px 14px;
  cursor: pointer;
}

.chip-pencil {
  color: var(--mint);
}

.action-stack {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.primary-cta,
.secondary-cta {
  border: 0;
  border-radius: 22px;
  padding: 18px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  cursor: pointer;
}

.primary-cta {
  background: linear-gradient(180deg, #7ff5c0 0%, #60dba4 100%);
  color: #093423;
  font-weight: 800;
  box-shadow: 0 18px 40px rgba(64, 188, 134, 0.25);
}

.primary-cta.compact {
  justify-content: center;
}

.secondary-cta {
  background: rgba(255, 255, 255, 0.92);
  color: #173826;
  font-weight: 700;
}

.primary-cta:disabled,
.secondary-cta:disabled,
.icon-button:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.primary-cta.is-loading {
  filter: saturate(0.7);
}

.cta-icon {
  color: var(--mint-deep);
}

.mini-cards,
.card-stack,
.steps-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.mini-cards {
  flex-direction: row;
}

.info-card,
.menu-card,
.step-card,
.subscription-box,
.profile-banner,
.support-hero {
  border: 1px solid var(--stroke);
  background: var(--surface);
  border-radius: 22px;
}

.info-card {
  flex: 1;
  padding: 14px;
}

.info-label {
  color: var(--muted);
  font-size: 0.82rem;
}

.info-value {
  margin-top: 8px;
  font-size: 1rem;
  font-weight: 700;
}

.section-hero h1,
.support-hero h1 {
  font-size: 2.4rem;
  line-height: 0.95;
  letter-spacing: -0.05em;
  margin: 0;
}

.section-hero p,
.support-hero p {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
}

.section-hero {
  padding: 10px 0 4px;
}

.step-card,
.menu-card {
  padding: 16px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.step-card h3,
.menu-card h3 {
  margin: 0 0 4px;
  font-size: 1rem;
}

.step-card p,
.menu-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.step-index,
.menu-icon {
  width: 40px;
  height: 40px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.06);
  color: var(--mint);
  font-weight: 700;
  flex: 0 0 auto;
}

.profile-banner {
  padding: 16px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 14px;
  align-items: center;
}

.avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(180deg, #7ad3ff, #6380ff);
  display: grid;
  place-items: center;
  font-weight: 800;
}

.profile-name {
  font-weight: 800;
}

.profile-id {
  color: var(--muted);
  font-size: 0.88rem;
  margin-top: 2px;
}

.subscription-box {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.history-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.history-card {
  border: 1px solid var(--stroke);
  background: var(--surface);
  border-radius: 20px;
  padding: 16px;
}

.history-card.is-empty {
  background: rgba(255, 255, 255, 0.04);
}

.history-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.history-title,
.history-price {
  font-size: 0.98rem;
  font-weight: 800;
}

.history-meta,
.history-status {
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.9rem;
}

.subscription-title {
  color: var(--muted);
  font-size: 0.85rem;
}

.subscription-value-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.subscription-box input {
  flex: 1;
  min-width: 0;
  border: 0;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  padding: 14px;
}

.support-hero {
  padding: 18px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.support-bubble {
  flex: 0 0 auto;
  width: 70px;
  height: 70px;
  border-radius: 22px;
  font-size: 1.7rem;
}

.bottom-nav {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 20px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  padding: 10px;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(8, 16, 13, 0.76);
  backdrop-filter: blur(14px);
}

.nav-item {
  height: 52px;
  border-radius: 18px;
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}

.nav-item.is-active {
  background: linear-gradient(180deg, rgba(119, 244, 186, 0.96), rgba(90, 215, 158, 0.92));
  color: #0e2c1f;
  box-shadow: 0 10px 24px rgba(94, 211, 158, 0.2);
}

.nav-icon {
  font-size: 1.1rem;
}

.sheet-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.44);
}

.device-sheet {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 14px 18px 24px;
  border-top-left-radius: 28px;
  border-top-right-radius: 28px;
  border-top: 1px solid var(--stroke);
  background: linear-gradient(180deg, rgba(16, 34, 25, 0.98), rgba(7, 14, 11, 0.98));
  transform: translateY(102%);
  transition: transform 220ms ease;
}

.device-sheet.is-open {
  transform: translateY(0);
}

.sheet-handle {
  width: 54px;
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  margin: 0 auto 16px;
}

.sheet-header h2 {
  margin: 0;
  font-size: 1.35rem;
}

.sheet-header p {
  color: var(--muted);
  margin: 6px 0 0;
}

.plan-grid {
  display: grid;
  gap: 12px;
  margin: 18px 0;
}

.plan-card {
  border: 1px solid var(--stroke);
  background: rgba(255, 255, 255, 0.04);
  border-radius: 20px;
  padding: 16px;
  text-align: left;
  color: var(--text);
  cursor: pointer;
}

.plan-card.is-selected {
  border-color: rgba(119, 244, 186, 0.52);
  box-shadow: inset 0 0 0 1px rgba(119, 244, 186, 0.35);
  background: rgba(119, 244, 186, 0.09);
}

.plan-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.plan-title {
  font-size: 1rem;
  font-weight: 800;
}

.plan-price {
  font-size: 1.1rem;
  font-weight: 800;
}

.plan-meta {
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.9rem;
}

@keyframes fade-slide {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 420px) {
  .phone-frame {
    width: 100%;
    min-height: 100vh;
    border-radius: 0;
    padding-left: 16px;
    padding-right: 16px;
  }

  .mini-cards {
    flex-direction: column;
  }

  .meta-date {
    font-size: 1.8rem;
  }
}
