:root {
  --bg: #071017;
  --panel: #0f1c26;
  --panel-2: #132532;
  --text: #f8fafc;
  --muted: #9fb1c3;
  --line: #203545;
  --cyan: #0bc5ea;
  --cyan-dark: #0585a0;
  --gold: #f7b955;
  --coral: #ff6b5f;
  --green: #35d07f;
  --shadow: 0 22px 70px rgba(0, 0, 0, 0.32);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

a {
  color: inherit;
}

button,
input,
select,
textarea {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 24px;
  align-items: center;
  padding: 16px clamp(18px, 4vw, 56px);
  background: rgba(7, 16, 23, 0.88);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(16px);
}

.brand img,
.site-footer img {
  display: block;
  width: 168px;
  height: auto;
}

.main-nav {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.main-nav a,
.ghost-btn,
.secondary-btn,
.primary-btn,
.icon-btn,
.tab {
  min-height: 42px;
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.main-nav a {
  padding: 10px 13px;
  color: var(--muted);
}

.main-nav .nav-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 96px;
  border: 1px solid rgba(247, 185, 85, 0.85);
  background: linear-gradient(180deg, rgba(247, 185, 85, 0.22), rgba(247, 185, 85, 0.08));
  color: var(--gold);
  font-weight: 850;
  box-shadow: 0 10px 24px rgba(247, 185, 85, 0.08);
}

.main-nav .nav-pill:hover {
  border-color: var(--gold);
  background: var(--gold);
  color: #061017;
}

.main-nav a:hover,
.ghost-btn:hover,
.secondary-btn:hover,
.primary-btn:hover,
.tab:hover {
  transform: translateY(-1px);
}

.ghost-btn,
.secondary-btn {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  padding: 10px 15px;
}

.primary-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  background: var(--cyan);
  color: #031218;
  font-weight: 800;
  padding: 11px 17px;
}

.secondary-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.small {
  min-height: 36px;
  padding: 8px 12px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(300px, 0.82fr) minmax(360px, 1.18fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
  min-height: calc(100vh - 76px);
  padding: clamp(38px, 7vw, 88px) clamp(18px, 4vw, 56px) 42px;
  overflow: hidden;
}

.hero-copy {
  max-width: 650px;
}

.eyebrow {
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

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

h1 {
  margin-bottom: 18px;
  font-size: clamp(4rem, 8vw, 7rem);
  line-height: 0.9;
}

h2 {
  margin-bottom: 14px;
  font-size: clamp(2rem, 4vw, 3.6rem);
  line-height: 1;
}

h3 {
  margin-bottom: 10px;
}

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

.hero-copy p {
  max-width: 590px;
  font-size: clamp(1rem, 1.8vw, 1.24rem);
}

.hero-actions,
.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.trust-row {
  margin-top: 26px;
}

.trust-row span {
  border-left: 3px solid var(--cyan);
  padding-left: 10px;
  color: var(--muted);
  font-size: 0.93rem;
}

.hero-media {
  margin: 0;
  position: relative;
}

.hero-media img {
  display: block;
  width: 100%;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.metrics,
.section,
.site-footer {
  padding-inline: clamp(18px, 4vw, 56px);
}

.metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(150px, 1fr));
  gap: 1px;
  background: var(--line);
}

.metrics article {
  background: var(--panel);
  padding: 26px;
}

.metrics strong {
  display: block;
  margin-bottom: 5px;
  color: var(--cyan);
  font-size: 1.75rem;
}

.metrics span {
  color: var(--muted);
}

.section {
  padding-top: clamp(58px, 8vw, 96px);
  padding-bottom: clamp(58px, 8vw, 96px);
}

.section-heading {
  max-width: 760px;
  margin-bottom: 28px;
}

.order-search-section {
  background: rgba(255, 255, 255, 0.02);
}

.order-search-form {
  display: grid;
  grid-template-columns: minmax(180px, 320px) minmax(150px, max-content);
  gap: 14px;
  align-items: end;
  max-width: 620px;
}

.order-search-form input {
  font-size: 1.25rem;
  letter-spacing: 0.08em;
  text-align: center;
}

.order-search-result {
  max-width: 620px;
}

.plans-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 22px;
  align-items: stretch;
}

.plans-grid.wide-plans {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.plan-card,
.dashboard,
.admin-panel,
.checkout-card,
.list-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);
}

.plan-card {
  position: relative;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 18px;
  padding: 28px 22px;
  overflow: visible;
}

.plan-card.featured {
  border-color: var(--cyan);
  background: linear-gradient(180deg, rgba(11, 197, 234, 0.28), rgba(15, 28, 38, 1) 42%);
  box-shadow: 0 18px 45px rgba(11, 197, 234, 0.2);
  transform: translateY(-8px);
}

.plan-badge {
  position: absolute;
  top: -20px;
  left: 50%;
  transform: translateX(-50%);
  border: 1px solid var(--cyan);
  border-radius: 999px;
  background: var(--bg);
  color: var(--cyan);
  padding: 10px 22px;
  font-size: 0.8rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}

.plan-head {
  text-align: center;
}

.plan-head h3 {
  margin-bottom: 6px;
  color: var(--text);
  font-size: 1.55rem;
}

.wide-plans .plan-head h3 {
  font-size: clamp(1.85rem, 3vw, 2.35rem);
}

.plan-quota {
  margin: 0 0 12px;
  color: var(--cyan);
  font-size: 1.1rem;
  font-weight: 900;
  text-transform: uppercase;
}

.plan-price {
  display: block;
}

.plan-price strong {
  color: var(--text);
  font-size: clamp(2.1rem, 4vw, 3rem);
  line-height: 1;
}

.plan-saving {
  display: flex;
  justify-content: center;
  gap: 8px;
  align-items: center;
  min-height: 30px;
  margin-top: 10px;
}

.old-price {
  color: var(--muted);
  text-decoration: line-through;
}

.discount-pill {
  border-radius: 999px;
  background: rgba(11, 197, 234, 0.14);
  color: var(--cyan);
  padding: 6px 10px;
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.guarantee {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 700;
}

.features {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.features li::before {
  content: "✓";
  color: var(--green);
  font-weight: 900;
  margin-right: 8px;
}

.features {
  gap: 10px;
}

.features li::before {
  content: "+";
  color: var(--cyan);
}

.plan-card.featured .discount-pill {
  background: rgba(255, 255, 255, 0.12);
  color: var(--text);
}

.plan-card.featured .features li,
.plan-card.featured .guarantee {
  color: var(--text);
}

.split {
  display: grid;
  grid-template-columns: minmax(280px, 0.88fr) minmax(320px, 1.12fr);
  gap: clamp(22px, 5vw, 56px);
  align-items: start;
}

.format-list {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 22px 0;
}

.format-list span {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 9px 12px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
}

.video-shell {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #02070b;
  box-shadow: var(--shadow);
}

.video-shell video {
  width: 100%;
  height: 100%;
  display: block;
  background: #02070b;
}

.player-status {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 10px;
  margin: 0;
  border-radius: 8px;
  background: rgba(2, 7, 11, 0.76);
  color: var(--text);
  font-size: 0.86rem;
  line-height: 1.35;
  padding: 9px 11px;
}

.player-status:empty {
  display: none;
}

label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 0.92rem;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #09151d;
  color: var(--text);
  padding: 12px 13px;
}

textarea {
  min-height: 96px;
  resize: vertical;
}

.panel-form,
.admin-login,
.stack-form {
  display: grid;
  gap: 13px;
}

.dashboard {
  padding: 22px;
}

.dashboard-header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  margin-bottom: 18px;
}

.credit-pill {
  border-radius: 999px;
  background: rgba(53, 208, 127, 0.14);
  color: var(--green);
  padding: 8px 12px;
  font-weight: 800;
}

.admin-section {
  background: #0a151d;
}

.admin-login {
  max-width: 430px;
}

.admin-panel {
  overflow: hidden;
}

.admin-tabs {
  display: flex;
  gap: 1px;
  overflow-x: auto;
  border-bottom: 1px solid var(--line);
  background: var(--line);
}

.tab {
  border-radius: 0;
  background: var(--panel);
  color: var(--muted);
  padding: 14px 17px;
  white-space: nowrap;
}

.tab.is-active {
  color: #031218;
  background: var(--gold);
  font-weight: 800;
}

.admin-grid {
  padding: 22px;
}

.admin-pane {
  display: none;
}

.admin-pane.is-active {
  display: grid;
  gap: 20px;
}

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

.admin-plan-divider {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 10px;
  border: 1px solid rgba(246, 184, 63, 0.4);
  border-radius: 8px;
  background: rgba(246, 184, 63, 0.08);
  padding: 13px 16px;
}

.admin-plan-divider strong {
  color: var(--gold);
  font-size: 1.08rem;
}

.admin-plan-divider span {
  color: var(--muted);
  font-weight: 700;
}

.list-card {
  display: grid;
  gap: 10px;
  padding: 16px;
}

.list-card strong {
  color: var(--text);
}

.row-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.danger-btn {
  border: 1px solid rgba(255, 107, 95, 0.55);
  background: rgba(255, 107, 95, 0.09);
  color: #ffb2ac;
  border-radius: 8px;
  padding: 9px 12px;
  cursor: pointer;
}

.checkout {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(0, 0, 0, 0.65);
}

.checkout[hidden] {
  display: none;
}

.checkout-card {
  position: relative;
  width: min(520px, 100%);
  max-height: calc(100vh - 36px);
  overflow: auto;
  padding: 25px;
}

.checkout-card form {
  display: grid;
  gap: 12px;
}

.icon-btn {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 38px;
  height: 38px;
  background: var(--panel-2);
  color: var(--text);
}

.notice {
  margin-top: 14px;
  border: 1px solid rgba(11, 197, 234, 0.45);
  border-radius: 8px;
  padding: 14px;
  background: rgba(11, 197, 234, 0.08);
  color: var(--text);
}

.payment-helper {
  display: grid;
  gap: 4px;
  border: 1px solid rgba(11, 197, 234, 0.45);
  border-radius: 8px;
  padding: 12px;
  background: rgba(11, 197, 234, 0.1);
  color: var(--text);
}

.payment-helper span {
  color: var(--muted);
  font-size: 0.92rem;
}

.site-footer {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  padding-top: 28px;
  padding-bottom: 28px;
  border-top: 1px solid var(--line);
}

.site-footer p {
  max-width: 680px;
  margin: 0;
  font-size: 0.9rem;
}

.site-footer a {
  color: var(--cyan);
  font-weight: 800;
}

@media (max-width: 920px) {
  .site-header {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .main-nav {
    justify-content: start;
  }

  .main-nav .nav-pill {
    min-width: 0;
    flex: 1 1 130px;
  }

  .hero,
  .split {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

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

@media (max-width: 620px) {
  .plans-grid,
  .metrics,
  .data-grid {
    grid-template-columns: 1fr;
  }

  .brand img {
    width: 146px;
  }

  .main-nav {
    gap: 8px;
  }

  .main-nav .nav-pill {
    flex-basis: calc(50% - 8px);
    min-height: 40px;
    padding: 9px 10px;
    font-size: 0.92rem;
  }

  h1 {
    font-size: 3.6rem;
  }
}
