* {
  box-sizing: border-box;
}

:root {
  --bg: #10151f;
  --panel: rgba(17, 24, 36, 0.82);
  --panel-strong: rgba(19, 28, 43, 0.94);
  --line: rgba(255, 255, 255, 0.1);
  --text: #f8efe1;
  --muted: #aeb8c8;
  --gold: #f0bd72;
  --gold-2: #ffe0a8;
  --blue: #80a7ff;
  --green: #54d6a4;
  --danger: #ff9a9a;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.34);
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Trebuchet MS", "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 10% 0%, rgba(240, 189, 114, 0.28), transparent 28%),
    radial-gradient(circle at 90% 10%, rgba(84, 214, 164, 0.14), transparent 22%),
    radial-gradient(circle at 70% 85%, rgba(128, 167, 255, 0.18), transparent 32%),
    var(--bg);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(to bottom, black, transparent 75%);
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea {
  font: inherit;
}

.app-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1180px, calc(100% - 28px));
  margin: 0 auto;
  padding: 14px 0;
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 15px;
  background:
    linear-gradient(135deg, rgba(240, 189, 114, 0.95), rgba(84, 214, 164, 0.9)),
    #222;
  box-shadow: 0 12px 35px rgba(240, 189, 114, 0.22);
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  letter-spacing: 0.04em;
}

.brand small {
  color: var(--muted);
  font-size: 12px;
}

.top-actions {
  display: flex;
  gap: 10px;
}

.top-actions a {
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255,255,255,0.05);
  color: var(--muted);
}

.app-shell {
  position: relative;
  width: min(1180px, calc(100% - 28px));
  margin: 0 auto;
  padding: 24px 0 92px;
}

.app-shell.narrow {
  width: min(760px, calc(100% - 28px));
}

.hero-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(320px, 0.7fr);
  gap: 22px;
  align-items: stretch;
  min-height: 430px;
}

.hero-copy,
.phone-preview,
.plan-card,
.info-card,
.form-card,
.instruction-card,
.success-card,
.checkout-hero {
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.hero-copy {
  display: grid;
  align-content: center;
  padding: clamp(26px, 5vw, 56px);
}

.eyebrow {
  display: inline-flex;
  width: fit-content;
  padding: 7px 11px;
  border-radius: 999px;
  background: rgba(240, 189, 114, 0.14);
  color: var(--gold-2);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 760px;
  margin: 16px 0;
  font-size: clamp(38px, 7vw, 78px);
  line-height: 0.92;
  letter-spacing: -0.07em;
}

h2 {
  margin: 10px 0 0;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1;
  letter-spacing: -0.05em;
}

h3 {
  margin-bottom: 10px;
  font-size: 22px;
}

p {
  color: var(--muted);
  line-height: 1.65;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border: 0;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--gold), var(--gold-2));
  color: #21160a;
  font-weight: 900;
  cursor: pointer;
}

.button-secondary {
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.06);
  color: var(--text);
}

.button-full {
  width: 100%;
}

.phone-preview {
  position: relative;
  display: grid;
  align-content: center;
  gap: 18px;
  padding: 22px;
  overflow: hidden;
}

.phone-preview::before {
  content: "";
  position: absolute;
  inset: 22px;
  border-radius: 34px;
  border: 1px solid rgba(255,255,255,0.08);
  background: linear-gradient(180deg, rgba(255,255,255,0.07), rgba(255,255,255,0.02));
}

.phone-status,
.phone-card,
.phone-list {
  position: relative;
  z-index: 1;
}

.phone-status {
  width: 74px;
  height: 7px;
  margin: 0 auto 16px;
  border-radius: 999px;
  background: rgba(255,255,255,0.22);
}

.phone-card {
  display: grid;
  gap: 8px;
  padding: 22px;
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(240,189,114,0.95), rgba(84,214,164,0.78));
  color: #121212;
}

.phone-card strong {
  font-size: 42px;
  line-height: 1;
}

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

.phone-list span {
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(0,0,0,0.22);
  color: var(--muted);
}

.trust-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 18px 0 38px;
}

.trust-strip div {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255,255,255,0.05);
}

.trust-strip strong,
.trust-strip span {
  display: block;
}

.trust-strip strong {
  font-size: 22px;
}

.trust-strip span {
  color: var(--muted);
  font-size: 13px;
}

.section-title {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 18px;
  margin: 24px 0 18px;
}

.section-title.compact {
  display: block;
  margin-top: 0;
}

.section-title p {
  max-width: 420px;
  margin-bottom: 0;
}

.plans-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.plan-card,
.info-card,
.form-card,
.instruction-card,
.success-card,
.checkout-hero {
  padding: 22px;
}

.plan-card {
  position: relative;
  min-height: 310px;
  display: grid;
  align-content: space-between;
}

.plan-card.is-hot {
  border-color: rgba(240, 189, 114, 0.55);
  background: linear-gradient(180deg, rgba(240, 189, 114, 0.12), rgba(17, 24, 36, 0.84));
}

.badge {
  position: absolute;
  top: 14px;
  right: 14px;
  padding: 6px 9px;
  border-radius: 999px;
  background: var(--green);
  color: #07140e;
  font-size: 11px;
  font-weight: 900;
}

.plan-topline,
.field-title {
  color: var(--gold-2);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.price-row {
  margin: 18px 0;
}

.price-row strong {
  display: block;
  font-size: 38px;
  line-height: 1;
}

.price-row span {
  color: var(--muted);
  font-size: 13px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 16px;
}

.mini-icon {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 16px;
  border-radius: 14px;
  background: rgba(128, 167, 255, 0.12);
  color: var(--blue);
  font-weight: 900;
}

.back-link {
  display: inline-block;
  margin-bottom: 14px;
  color: var(--muted);
}

.checkout-hero {
  margin-bottom: 18px;
}

.checkout-hero h1 {
  max-width: 900px;
  font-size: clamp(34px, 5vw, 56px);
}

.checkout-layout {
  display: grid;
  grid-template-columns: minmax(320px, 0.82fr) minmax(0, 1.18fr);
  gap: 18px;
  align-items: start;
}

.stack {
  display: grid;
  gap: 13px;
}

label span {
  display: block;
  margin-bottom: 8px;
  color: #d8dfeb;
  font-size: 14px;
  font-weight: 800;
}

input,
textarea {
  width: 100%;
  padding: 15px 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  outline: none;
  background: rgba(255,255,255,0.06);
  color: var(--text);
}

input:focus,
textarea:focus {
  border-color: rgba(240, 189, 114, 0.6);
  box-shadow: 0 0 0 4px rgba(240, 189, 114, 0.12);
}

.plan-option {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255,255,255,0.045);
  cursor: pointer;
}

.plan-option:has(input:checked) {
  border-color: rgba(240, 189, 114, 0.65);
  background: rgba(240, 189, 114, 0.12);
}

.plan-option input {
  width: auto;
}

.plan-option strong,
.plan-option small {
  display: block;
}

.plan-option small {
  margin-top: 3px;
  color: var(--muted);
}

.hint-box,
.error-box {
  padding: 14px;
  border-radius: 16px;
  line-height: 1.5;
}

.hint-box {
  border: 1px solid rgba(128, 167, 255, 0.28);
  background: rgba(128, 167, 255, 0.1);
  color: #dbe6ff;
}

.error-box {
  border: 1px solid rgba(255, 154, 154, 0.34);
  background: rgba(255, 154, 154, 0.12);
  color: #ffdada;
  margin-bottom: 14px;
}

.instruction-card {
  display: grid;
  gap: 16px;
}

.instruction-step {
  display: grid;
  grid-template-columns: 44px minmax(0, 0.9fr) minmax(230px, 1fr);
  gap: 14px;
  align-items: center;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255,255,255,0.04);
}

.step-number {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 15px;
  background: linear-gradient(135deg, var(--gold), var(--gold-2));
  color: #21160a;
  font-weight: 1000;
}

.step-copy h3 {
  margin-bottom: 8px;
}

.step-copy p {
  margin-bottom: 0;
  font-size: 14px;
}

.visual-shot,
.mock-screen {
  position: relative;
  min-height: 190px;
  border: 1px solid var(--line);
  border-radius: 20px;
  overflow: hidden;
  background: rgba(0,0,0,0.22);
}

.visual-shot {
  display: grid;
  place-items: center;
  padding: 10px;
}

.visual-shot img {
  max-width: 100%;
  max-height: 250px;
  border-radius: 14px;
  background: #fff;
}

.arrow-tag {
  position: absolute;
  z-index: 2;
  padding: 8px 10px;
  border-radius: 999px;
  border: 1px solid rgba(240, 189, 114, 0.65);
  background: rgba(13, 18, 27, 0.94);
  color: var(--gold-2);
  font-size: 12px;
  font-weight: 900;
}

.arrow-tag::after {
  content: "";
  position: absolute;
  width: 34px;
  height: 2px;
  background: var(--gold-2);
}

.arrow-top {
  top: 14px;
  right: 14px;
}

.arrow-top::after {
  right: 100%;
  top: 50%;
}

.arrow-bottom {
  left: 14px;
  bottom: 14px;
}

.arrow-bottom::after {
  left: 100%;
  top: 50%;
}

.mock-screen {
  display: grid;
  align-content: center;
  gap: 12px;
  padding: 18px;
}

.mock-label {
  color: var(--muted);
  font-size: 13px;
}

.mock-input {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255,255,255,0.08);
  color: var(--text);
}

.pay-screen strong {
  font-size: 40px;
}

.mock-button {
  display: inline-flex;
  justify-content: center;
  width: fit-content;
  padding: 12px 18px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--gold), var(--gold-2));
  color: #21160a;
  font-weight: 900;
}

.success-card {
  display: grid;
  gap: 14px;
}

.connect-card {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255,255,255,0.04);
}

.connect-grid {
  display: grid;
  grid-template-columns: minmax(220px, 260px) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.qr-panel {
  display: grid;
  gap: 12px;
}

.qr-image {
  width: 100%;
  max-width: 260px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #fff;
}

.instruction-list {
  display: grid;
  gap: 12px;
}

.instruction-item {
  display: grid;
  gap: 6px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255,255,255,0.04);
}

.instruction-item strong {
  font-size: 15px;
}

.instruction-item span,
.subtle-note {
  color: var(--muted);
  line-height: 1.55;
}

.bot-status {
  padding: 14px 16px;
  border-radius: 16px;
  font-weight: 700;
  line-height: 1.5;
}

.bot-status-warn {
  border: 1px solid rgba(240, 189, 114, 0.25);
  background: rgba(240, 189, 114, 0.12);
  color: var(--gold-2);
}

.success-card h1 {
  font-size: clamp(38px, 6vw, 64px);
}

.success-mark {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: 22px;
  background: var(--green);
  color: #07140e;
  font-size: 36px;
  font-weight: 1000;
}

.meta-list {
  display: grid;
  gap: 8px;
  margin: 4px 0;
}

.meta-list div {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.meta-list dt {
  color: var(--muted);
}

.meta-list dd {
  margin: 0;
  text-align: right;
  font-weight: 900;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 108px;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
}

.status-badge.is-paid {
  background: rgba(84, 214, 164, 0.18);
  color: #8bf0c7;
}

.status-badge.is-pending {
  background: rgba(240, 189, 114, 0.18);
  color: var(--gold-2);
}

.status-badge.is-failed {
  background: rgba(255, 154, 154, 0.14);
  color: #ffd2d2;
}

.bottom-nav {
  position: fixed;
  left: 50%;
  bottom: 14px;
  z-index: 30;
  display: none;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  width: min(420px, calc(100% - 24px));
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(13, 18, 27, 0.9);
  transform: translateX(-50%);
  backdrop-filter: blur(18px);
}

.bottom-nav a {
  padding: 11px 8px;
  border-radius: 16px;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}

.bottom-nav a:nth-child(2) {
  background: rgba(240, 189, 114, 0.15);
  color: var(--gold-2);
}

.admin-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

.table-wrap {
  overflow-x: auto;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
}

.admin-table th,
.admin-table td {
  padding: 12px 10px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  white-space: nowrap;
}

.admin-table th {
  color: var(--gold-2);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.admin-table td {
  color: var(--muted);
}

@media (max-width: 1040px) {
  .hero-panel,
  .checkout-layout,
  .instruction-step,
  .connect-grid {
    grid-template-columns: 1fr;
  }

  .plans-grid,
  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .step-number {
    grid-row: auto;
  }
}

@media (max-width: 700px) {
  .top-actions {
    display: none;
  }

  .app-shell {
    padding-top: 12px;
  }

  .hero-panel {
    min-height: auto;
  }

  .plans-grid,
  .feature-grid,
  .trust-strip,
  .section-title {
    display: grid;
    grid-template-columns: 1fr;
  }

  .hero-copy,
  .phone-preview,
  .plan-card,
  .info-card,
  .form-card,
  .instruction-card,
  .success-card,
  .checkout-hero {
    border-radius: 22px;
  }

  h1 {
    letter-spacing: -0.05em;
  }

  .bottom-nav {
    display: grid;
  }
}
