:root {
  --bg: #020812;
  --panel: rgba(9, 24, 43, 0.9);
  --panel-2: rgba(11, 29, 52, 0.92);
  --line: rgba(219, 184, 114, 0.28);
  --line-blue: rgba(88, 135, 194, 0.35);
  --text: #f5f7fb;
  --muted: #9aa8ba;
  --gold: #f5c772;
  --gold-2: #ffe5a9;
  --purple: #b176ff;
  --green: #81e58c;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.38);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", Arial, sans-serif;
  background:
    radial-gradient(circle at 78% 8%, rgba(245, 199, 114, 0.16), transparent 32rem),
    radial-gradient(circle at 12% 12%, rgba(43, 122, 255, 0.2), transparent 30rem),
    linear-gradient(180deg, #020812 0%, #07111f 52%, #020812 100%);
}

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

button,
input {
  font: inherit;
}

button {
  border: 0;
}

.page {
  width: min(1450px, calc(100% - 38px));
  margin: 0 auto;
  padding: 18px 0 30px;
}

.hero-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 34px;
  min-height: 228px;
  padding: 34px 70px;
  overflow: hidden;
  background:
    linear-gradient(110deg, rgba(5, 18, 35, 0.95) 0%, rgba(9, 21, 34, 0.92) 46%, rgba(36, 28, 15, 0.88) 100%),
    radial-gradient(circle at 92% 74%, rgba(255, 205, 117, 0.45), transparent 18rem);
  border: 1px solid rgba(245, 199, 114, 0.28);
  border-radius: 28px;
  box-shadow: var(--shadow);
}

.hero-card::before,
.hero-card::after {
  content: "";
  position: absolute;
  pointer-events: none;
  border-radius: 50%;
}

.hero-card::before {
  right: -130px;
  bottom: -190px;
  width: 680px;
  height: 310px;
  border: 1px solid rgba(245, 199, 114, 0.35);
  transform: rotate(-16deg);
}

.hero-card::after {
  left: 24px;
  top: -160px;
  width: 360px;
  height: 360px;
  border: 1px solid rgba(80, 132, 214, 0.28);
}

.hero-avatar {
  position: relative;
  z-index: 1;
  display: grid;
  width: 150px;
  height: 150px;
  place-items: center;
  overflow: hidden;
  background: #fff;
  border: 7px solid rgba(245, 199, 114, 0.84);
  border-radius: 50%;
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.35);
}

.hero-avatar img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.hero-copy {
  position: relative;
  z-index: 1;
  min-width: 0;
}

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

h1 {
  color: var(--gold-2);
  font-size: clamp(38px, 5vw, 62px);
  line-height: 1.08;
  letter-spacing: 0;
  text-shadow: 0 0 22px rgba(245, 199, 114, 0.18);
}

.hero-copy p {
  margin-top: 18px;
  color: #d5dce8;
  font-size: 21px;
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 24px;
}

.gold-button,
.outline-button,
.copy-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  border-radius: 12px;
  font-weight: 900;
  cursor: pointer;
}

.gold-button,
.copy-button {
  color: #0a1321;
  background: linear-gradient(180deg, #ffe7ad 0%, #f3bd61 100%);
  box-shadow: 0 12px 24px rgba(245, 199, 114, 0.18);
}

.gold-button {
  padding: 0 28px;
}

.outline-button {
  padding: 0 28px;
  color: #f7d99a;
  background: rgba(3, 13, 25, 0.55);
  border: 1px solid rgba(245, 199, 114, 0.6);
}

.notice {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 18px 18px 14px;
  padding: 16px 26px;
  color: #f6d58c;
  background: rgba(12, 17, 24, 0.84);
  border: 1px solid rgba(245, 199, 114, 0.5);
  border-radius: 14px;
  box-shadow: 0 0 28px rgba(245, 199, 114, 0.08) inset;
  font-size: 19px;
}

.notice span {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  color: #0b1422;
  background: var(--gold);
  border-radius: 50%;
  font-weight: 900;
}

.flow-card {
  display: grid;
  grid-template-columns: 1fr 26px 1fr 26px 1fr 26px 1fr 26px 1fr;
  gap: 10px;
  align-items: center;
  margin: 0 18px 14px;
  padding: 18px 22px;
  background: linear-gradient(135deg, rgba(13, 36, 66, 0.92), rgba(9, 24, 43, 0.82));
  border: 1px solid var(--line-blue);
  border-radius: 18px;
  box-shadow: var(--shadow);
}

.flow-step {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 10px;
  align-items: center;
  min-width: 0;
}

.flow-icon {
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  color: var(--gold);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(245, 199, 114, 0.24);
  border-radius: 16px;
  font-weight: 900;
}

.flow-step strong {
  display: block;
  color: #f9fbff;
  font-size: 17px;
}

.flow-step p {
  margin-top: 5px;
  color: var(--muted);
  font-size: 14px;
}

.flow-arrow {
  color: #d9e2ef;
  text-align: center;
  font-size: 28px;
}

.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 430px;
  gap: 14px;
  margin: 0 18px;
  align-items: start;
}

.plans-column,
.side-column {
  display: grid;
  gap: 14px;
}

.side-column {
  position: sticky;
  top: 18px;
}

.plan-card,
.order-card,
.activity-card,
.admin-notes-card {
  background: linear-gradient(145deg, rgba(9, 28, 52, 0.94), rgba(7, 19, 35, 0.94));
  border: 1px solid var(--line-blue);
  border-radius: 18px;
  box-shadow: var(--shadow);
}

.plan-card {
  display: grid;
  grid-template-columns: 250px 1fr;
  gap: 22px;
  min-height: 166px;
  padding: 24px;
  overflow: hidden;
}

.standard-plan {
  border-left: 8px solid var(--gold);
}

.plus-plan {
  border-left: 8px solid var(--purple);
  background: linear-gradient(145deg, rgba(28, 23, 62, 0.94), rgba(8, 17, 36, 0.95));
}

.plan-intro {
  display: flex;
  gap: 20px;
  align-items: center;
}

.plan-icon {
  display: grid;
  width: 78px;
  height: 78px;
  place-items: center;
  color: var(--gold-2);
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(245, 199, 114, 0.32);
  border-radius: 50%;
  font-size: 38px;
}

.plus-plan .plan-icon {
  color: #d6a6ff;
  border-color: rgba(177, 118, 255, 0.42);
}

.plan-intro h2 {
  color: var(--gold-2);
  font-size: 30px;
  line-height: 1.16;
}

.plus-plan .plan-intro h2 {
  color: #d8b0ff;
}

.plan-intro p {
  margin-top: 9px;
  color: var(--muted);
}

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

.price-card {
  position: relative;
  display: grid;
  min-height: 122px;
  place-items: center;
  padding: 18px 14px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid rgba(161, 183, 213, 0.24);
  border-radius: 16px;
  cursor: pointer;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease, background 0.18s ease;
}

.price-card:hover,
.price-card.is-selected {
  border-color: rgba(245, 199, 114, 0.9);
  background: rgba(245, 199, 114, 0.11);
  box-shadow: 0 0 26px rgba(245, 199, 114, 0.14);
  transform: translateY(-2px);
}

.plus-plan .price-card:hover,
.plus-plan .price-card.is-selected {
  border-color: rgba(177, 118, 255, 0.92);
  background: rgba(177, 118, 255, 0.12);
  box-shadow: 0 0 26px rgba(177, 118, 255, 0.14);
}

.price-card span {
  color: #dce5f2;
  font-size: 20px;
  font-weight: 800;
}

.price-card strong {
  color: var(--gold-2);
  font-size: 34px;
  line-height: 1;
}

.price-card em {
  color: var(--gold-2);
  font-style: normal;
  font-weight: 900;
}

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

.price-card.is-sold-out {
  cursor: not-allowed;
  opacity: 0.55;
}

.price-card b {
  position: absolute;
  top: 0;
  right: 0;
  padding: 8px 14px;
  color: #111827;
  background: linear-gradient(180deg, #ffe8ad, #f2bd60);
  border-radius: 0 14px 0 12px;
  font-size: 14px;
}

.plus-plan .price-card b {
  color: #1b0d2b;
  background: linear-gradient(180deg, #ddb8ff, #b176ff);
}

.order-card,
.activity-card {
  padding: 18px;
}

.card-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
  color: #f4f7fb;
  font-size: 22px;
  font-weight: 900;
}

.card-title a {
  color: var(--muted);
  font-size: 14px;
}

.order-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 52px;
  padding: 12px 8px;
  border-bottom: 1px solid rgba(154, 168, 186, 0.16);
}

.order-row span {
  color: #d8e0ec;
}

.order-row strong {
  color: #f7f9fc;
  text-align: right;
}

.input-row input {
  width: 150px;
  min-height: 38px;
  padding: 8px 12px;
  color: #f7f9fc;
  background: rgba(2, 8, 18, 0.42);
  border: 1px solid rgba(154, 168, 186, 0.5);
  border-radius: 9px;
  outline: none;
}

.input-row input:focus {
  border-color: var(--gold);
}

.copy-button {
  width: 100%;
  margin-top: 14px;
}

.copy-button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.copy-status {
  min-height: 22px;
  margin-top: 10px;
  color: var(--green);
  font-weight: 800;
}

.activity-list {
  display: grid;
  gap: 0;
  overflow: hidden;
  border: 1px solid rgba(154, 168, 186, 0.12);
  border-radius: 12px;
}

.activity-list div {
  display: grid;
  grid-template-columns: 12px 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 14px 12px;
  border-bottom: 1px solid rgba(154, 168, 186, 0.12);
}

.activity-list div:last-child {
  border-bottom: 0;
}

.activity-list i {
  width: 8px;
  height: 8px;
  background: var(--green);
  border-radius: 50%;
  box-shadow: 0 0 14px rgba(129, 229, 140, 0.65);
}

.activity-list span {
  color: #f0f4fa;
  font-weight: 800;
}

.activity-list p {
  color: var(--muted);
  white-space: nowrap;
}

.admin-notes-card {
  min-height: 220px;
  padding: 24px;
  background:
    linear-gradient(145deg, rgba(9, 28, 52, 0.94), rgba(5, 14, 27, 0.96)),
    radial-gradient(circle at 92% 15%, rgba(245, 199, 114, 0.16), transparent 18rem);
}

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

.notes-header span,
.admin-dialog-header span {
  color: var(--gold);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.notes-header h2,
.admin-dialog-header h2 {
  margin-top: 6px;
  color: var(--gold-2);
  font-size: 26px;
}

.edit-notes-button {
  min-height: 38px;
  padding: 0 16px;
  color: #0a1321;
  background: linear-gradient(180deg, #ffe7ad 0%, #f3bd61 100%);
  border-radius: 10px;
  font-weight: 900;
  cursor: pointer;
}

.notes-content {
  display: grid;
  gap: 12px;
}

.notes-content p {
  position: relative;
  padding: 14px 16px 14px 40px;
  color: #d7e0ef;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(154, 168, 186, 0.14);
  border-radius: 14px;
  line-height: 1.65;
}

.notes-content p::before {
  content: "";
  position: absolute;
  left: 17px;
  top: 23px;
  width: 8px;
  height: 8px;
  background: var(--gold);
  border-radius: 50%;
  box-shadow: 0 0 14px rgba(245, 199, 114, 0.55);
}

.admin-panel {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: none;
}

.admin-panel.is-open {
  display: block;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 16px 0;
}

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

.admin-dialog {
  position: relative;
  width: min(680px, calc(100% - 28px));
  max-height: calc(100dvh - 32px);
  margin: 0 auto;
  padding: 24px;
  overflow-y: auto;
  background: linear-gradient(145deg, #0b1b32, #07111f);
  border: 1px solid rgba(245, 199, 114, 0.3);
  border-radius: 20px;
  box-shadow: var(--shadow);
}

.admin-dialog-header {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.admin-dialog-header button {
  width: 40px;
  height: 40px;
  color: var(--gold-2);
  background: rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  font-size: 26px;
  cursor: pointer;
}

.admin-dialog label {
  display: grid;
  gap: 10px;
  color: #d7e0ef;
  font-weight: 900;
}

.admin-auth-box {
  display: grid;
  gap: 14px;
  margin-bottom: 18px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(245, 199, 114, 0.18);
  border-radius: 16px;
}

.admin-auth-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.admin-auth-actions button {
  min-height: 42px;
  padding: 0 18px;
  border-radius: 10px;
  font-weight: 900;
  cursor: pointer;
}

.admin-auth-actions button:first-child {
  color: #0a1321;
  background: linear-gradient(180deg, #ffe7ad 0%, #f3bd61 100%);
}

.admin-auth-actions button:last-child {
  color: #dbe4f2;
  background: rgba(255, 255, 255, 0.08);
}

.admin-auth-box p {
  color: var(--muted);
  line-height: 1.6;
}

.admin-auth-box p.is-pass {
  color: #9df0a7;
}

.admin-auth-box p.is-fail {
  color: #ffb8b8;
}

.settings-editor {
  display: grid;
  gap: 16px;
}

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

.admin-dialog input,
.admin-dialog textarea {
  width: 100%;
  padding: 14px;
  color: #f5f7fb;
  background: rgba(2, 8, 18, 0.5);
  border: 1px solid rgba(154, 168, 186, 0.38);
  border-radius: 14px;
  outline: none;
  resize: vertical;
}

.admin-dialog input:focus,
.admin-dialog textarea:focus {
  border-color: var(--gold);
}

.admin-dialog > p {
  margin-top: 12px;
  color: var(--muted);
  line-height: 1.7;
}

.admin-actions {
  position: sticky;
  bottom: -24px;
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 18px;
  padding: 14px 0 0;
  background: linear-gradient(180deg, rgba(7, 17, 31, 0), #07111f 36%);
}

.admin-actions button {
  min-height: 42px;
  padding: 0 18px;
  border-radius: 10px;
  font-weight: 900;
  cursor: pointer;
}

.admin-actions button:first-child {
  color: #dbe4f2;
  background: rgba(255, 255, 255, 0.08);
}

.admin-actions button:last-child {
  color: #0a1321;
  background: linear-gradient(180deg, #ffe7ad 0%, #f3bd61 100%);
}

.footer {
  padding: 24px 18px 0;
  color: var(--muted);
  text-align: center;
  line-height: 1.7;
}

.admin-launcher {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 35;
  min-height: 48px;
  padding: 0 20px;
  color: #0a1321;
  background: linear-gradient(180deg, #ffe7ad 0%, #f3bd61 100%);
  border-radius: 999px;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.35);
  font-weight: 900;
  cursor: pointer;
}

@media (max-width: 1120px) {
  .content-grid {
    grid-template-columns: 1fr;
  }

  .side-column {
    position: static;
    grid-template-columns: 1fr 1fr;
  }

  .plan-card {
    grid-template-columns: 220px 1fr;
  }
}

@media (max-width: 820px) {
  .page {
    width: min(100% - 20px, 1450px);
  }

  .hero-card {
    display: block;
    padding: 28px;
  }

  .hero-avatar {
    width: 116px;
    height: 116px;
  }

  .hero-copy {
    margin-top: 18px;
  }

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

  .flow-arrow {
    display: none;
  }

  .plan-card,
  .side-column {
    grid-template-columns: 1fr;
  }

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

  .notes-header,
  .admin-actions,
  .settings-grid {
    display: grid;
  }
}

@media (max-width: 520px) {
  h1 {
    font-size: 34px;
  }

  .notice,
  .flow-card,
  .content-grid {
    margin-left: 0;
    margin-right: 0;
  }

  .hero-actions {
    display: grid;
  }

  .gold-button,
  .outline-button {
    width: 100%;
  }

  .order-row,
  .activity-list div {
    display: grid;
  }

  .input-row input {
    width: 100%;
  }

  .activity-list p {
    white-space: normal;
  }
}
