:root {
  color-scheme: dark;
  --bg-0: #050507;
  --bg-1: #080811;
  --bg-2: #10111a;
  --panel: rgba(18, 22, 34, 0.96);
  --panel-soft: rgba(24, 29, 43, 0.94);
  --text: #f5f7fb;
  --muted: rgba(225, 232, 244, 0.68);
  --muted-strong: rgba(225, 232, 244, 0.84);
  --blue: #2f85ff;
  --blue-soft: rgba(47, 133, 255, 0.16);
  --orange: #ff7a18;
  --orange-soft: rgba(255, 122, 24, 0.16);
  --red: #ef233c;
  --red-soft: rgba(239, 35, 60, 0.16);
  --green: #22c55e;
  --green-soft: rgba(34, 197, 94, 0.14);
  --border: rgba(125, 140, 175, 0.18);
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.55);
  --radius-lg: 28px;
  --radius-md: 22px;
  --radius-sm: 18px;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 50% 34%, rgba(33, 99, 255, 0.16), transparent 18%),
    radial-gradient(circle at 17% 56%, rgba(36, 210, 90, 0.12), transparent 18%),
    radial-gradient(circle at 84% 30%, rgba(36, 210, 90, 0.12), transparent 12%),
    linear-gradient(180deg, var(--bg-1), var(--bg-0) 35%, #040404 100%);
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 50% 42%, rgba(0, 255, 162, 0.08), transparent 0 22%),
    radial-gradient(circle at 50% 8%, rgba(112, 91, 255, 0.08), transparent 0 20%);
  filter: blur(18px);
  opacity: 0.8;
}

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

.page-shell {
  position: relative;
  min-height: 100vh;
  display: grid;
  place-items: start center;
  padding: 28px 16px 24px;
}

.profile-page {
  width: min(100%, 390px);
  display: grid;
  gap: 14px;
  justify-items: center;
  position: relative;
  z-index: 1;
}

.page-header {
  width: 100%;
  text-align: center;
  padding: 10px 0 8px;
}

.page-header h1 {
  margin: 0;
  font-size: clamp(2.15rem, 5vw, 3rem);
  line-height: 0.98;
  letter-spacing: -0.05em;
  font-weight: 800;
}

.page-header p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.35;
}

.page-chevron {
  display: inline-grid;
  place-items: center;
  margin-top: 10px;
  color: #3ee07a;
  font-size: 1.25rem;
  line-height: 1;
  text-shadow: 0 0 18px rgba(62, 224, 122, 0.35);
}

.feature-card {
  width: 100%;
  overflow: hidden;
  border-radius: 24px;
  border: 1px solid rgba(68, 109, 255, 0.95);
  background:
    linear-gradient(180deg, rgba(14, 19, 33, 0.18), rgba(14, 19, 33, 0.96)),
    linear-gradient(180deg, rgba(15, 20, 33, 0.7), rgba(20, 27, 44, 0.98));
  box-shadow:
    0 0 0 1px rgba(70, 120, 255, 0.2) inset,
    0 24px 55px rgba(0, 0, 0, 0.52),
    0 0 30px rgba(52, 115, 255, 0.14);
}

.feature-visual {
  position: relative;
  height: 194px;
  background:
    radial-gradient(circle at 14% 24%, rgba(255, 255, 255, 0.1), transparent 12%),
    radial-gradient(circle at 74% 12%, rgba(34, 211, 238, 0.38), transparent 14%),
    radial-gradient(circle at 96% 16%, rgba(255, 136, 85, 0.34), transparent 14%),
    linear-gradient(135deg, #07111d 16%, #0b1526 46%, #102039 78%, #0a1220 100%);
}

.feature-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 10%, rgba(255, 255, 255, 0.08), transparent 12%),
    linear-gradient(180deg, transparent 0 45%, rgba(0, 0, 0, 0.2) 100%);
}

.feature-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(2px);
  opacity: 0.9;
}

.feature-glow-left {
  width: 62px;
  height: 62px;
  left: 44px;
  top: 52px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.82), rgba(255, 255, 255, 0) 70%);
  box-shadow:
    0 0 12px rgba(255, 255, 255, 0.4),
    0 0 30px rgba(64, 255, 198, 0.12);
  opacity: 0.18;
}

.feature-glow-right {
  width: 92px;
  height: 92px;
  right: -14px;
  top: 4px;
  background: radial-gradient(circle, rgba(49, 255, 225, 0.9), rgba(49, 255, 225, 0) 66%);
  opacity: 0.5;
  filter: blur(10px);
}

.feature-bubbles {
  position: absolute;
  inset: 0;
}

.feature-bubbles span {
  position: absolute;
  display: block;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  box-shadow: 0 0 16px rgba(255, 255, 255, 0.08);
}

.feature-bubbles span:nth-child(1) {
  width: 10px;
  height: 10px;
  left: 70px;
  top: 20px;
}

.feature-bubbles span:nth-child(2) {
  width: 14px;
  height: 14px;
  left: 112px;
  top: 30px;
}

.feature-bubbles span:nth-child(3) {
  width: 7px;
  height: 7px;
  right: 28px;
  bottom: 42px;
}

.feature-bubbles span:nth-child(4) {
  width: 10px;
  height: 10px;
  right: 44px;
  top: 78px;
}

.feature-figure {
  position: absolute;
  bottom: 22px;
  border-radius: 22px;
}

.feature-figure-front {
  left: 56px;
  width: 116px;
  height: 148px;
  background:
    radial-gradient(circle at 50% 22%, #3c2b24 0 10%, transparent 11%),
    radial-gradient(circle at 50% 16%, #0c0d12 0 18%, transparent 19%),
    linear-gradient(180deg, #0c121d 0 20%, #151a25 20% 100%);
  box-shadow:
    0 20px 42px rgba(0, 0, 0, 0.42),
    0 0 0 1px rgba(255, 255, 255, 0.05) inset;
}

.feature-figure-front .figure-head,
.feature-figure-back .figure-head {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: 16px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 40% 35%, #d7b09d 0 16%, #9f6244 17% 40%, transparent 41%),
    linear-gradient(180deg, #2d1c15 0 100%);
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.02);
}

.feature-figure-front .figure-body,
.feature-figure-back .figure-body {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: 0;
  width: 92px;
  height: 102px;
  border-radius: 24px 24px 14px 14px;
  background: linear-gradient(180deg, #111827 0 36%, #0f172a 36% 100%);
}

.feature-figure-back {
  right: 28px;
  width: 120px;
  height: 160px;
  background:
    radial-gradient(circle at 50% 22%, #a08274 0 10%, transparent 11%),
    radial-gradient(circle at 50% 16%, #1a1110 0 18%, transparent 19%),
    linear-gradient(180deg, #111827 0 18%, #172033 18% 100%);
  box-shadow:
    0 20px 42px rgba(0, 0, 0, 0.36),
    0 0 0 1px rgba(255, 255, 255, 0.04) inset;
}

.feature-figure-back .figure-body {
  width: 88px;
  height: 110px;
  background: linear-gradient(180deg, #d8e0ea 0 20%, #e6eef7 20% 26%, #111827 26% 100%);
}

.feature-content {
  padding: 14px 16px 16px;
  background: rgba(17, 22, 34, 0.9);
}

.feature-kicker {
  margin: 0 0 8px;
  color: #9fb4d7;
  font-size: 0.73rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.feature-content h2 {
  margin: 0;
  font-size: 1.03rem;
  line-height: 1.22;
  letter-spacing: -0.03em;
}

.feature-content p:last-child {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.38;
}

.links-stack {
  width: 100%;
  display: grid;
  gap: 10px;
}

.section-header {
  display: none;
}

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

.link-item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 70px;
  padding: 14px 16px;
  border-radius: 16px;
  background:
    linear-gradient(180deg, rgba(23, 29, 41, 0.95), rgba(20, 24, 36, 0.98));
  border: 1px solid var(--border);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.02) inset,
    0 14px 30px rgba(0, 0, 0, 0.24);
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    box-shadow 160ms ease,
    background 160ms ease;
}

.link-item:hover {
  transform: translateY(-2px);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.03) inset,
    0 18px 36px rgba(0, 0, 0, 0.3);
}

.link-item::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.04), transparent);
  mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  mask-composite: exclude;
  opacity: 0.25;
  pointer-events: none;
}

.link-item--blue {
  border-color: rgba(47, 133, 255, 0.92);
  background:
    linear-gradient(180deg, rgba(20, 30, 50, 0.96), rgba(17, 23, 37, 0.98)),
    var(--blue-soft);
}

.link-item--orange {
  border-color: rgba(255, 122, 24, 0.92);
  background:
    linear-gradient(180deg, rgba(30, 26, 36, 0.96), rgba(19, 22, 34, 0.98)),
    var(--orange-soft);
}

.link-item--red {
  border-color: rgba(239, 35, 60, 0.92);
  background:
    linear-gradient(180deg, rgba(30, 20, 28, 0.96), rgba(19, 21, 33, 0.98)),
    var(--red-soft);
}

.link-item--green {
  border-color: rgba(34, 197, 94, 0.92);
  background:
    linear-gradient(180deg, rgba(18, 27, 30, 0.96), rgba(17, 20, 30, 0.98)),
    var(--green-soft);
}

.link-item--neutral {
  border-color: rgba(58, 74, 100, 0.78);
  background:
    linear-gradient(180deg, rgba(18, 22, 34, 0.96), rgba(15, 18, 29, 0.98));
}

.link-icon {
  flex: 0 0 auto;
  width: 26px;
  height: 26px;
  display: inline-grid;
  place-items: center;
  font-size: 1rem;
  line-height: 1;
  border-radius: 999px;
}

.link-item--blue .link-icon {
  color: #7eb1ff;
}

.link-item--orange .link-icon {
  color: #ffb16a;
}

.link-item--red .link-icon {
  color: #ff7281;
}

.link-item--green .link-icon {
  color: #70e8a0;
}

.link-item--neutral .link-icon {
  color: #a8b4c6;
}

.link-copy {
  min-width: 0;
  flex: 1 1 auto;
}

.link-title {
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.18;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.link-desc {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.35;
}

.link-arrow {
  flex: 0 0 auto;
  color: rgba(198, 210, 228, 0.56);
  font-size: 0.95rem;
}

.page-footer {
  width: 100%;
  padding: 16px 0 0;
  text-align: center;
}

.page-footer p {
  margin: 0;
  color: rgba(198, 208, 222, 0.45);
  font-size: 0.78rem;
}

.admin-secondary-link {
  color: rgba(162, 180, 206, 0.82);
  font-size: 0.8rem;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.admin-shell {
  min-height: 100vh;
  padding: 28px 16px 36px;
}

.admin-page {
  width: min(100%, 980px);
  margin: 0 auto;
  display: grid;
  gap: 18px;
}

.is-hidden {
  display: none !important;
}

.admin-header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
}

.admin-actions,
.section-row {
  display: flex;
  gap: 12px;
  align-items: center;
}

.admin-eyebrow {
  margin: 0 0 8px;
  color: #3ee07a;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.admin-header h1 {
  margin: 0;
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  line-height: 1.04;
  letter-spacing: -0.04em;
}

.admin-header p {
  margin: 10px 0 0;
  max-width: 68ch;
  color: var(--muted);
  line-height: 1.45;
}

.admin-form {
  display: grid;
  gap: 16px;
}

.admin-panel {
  padding: 18px;
  border: 1px solid rgba(86, 105, 140, 0.2);
  border-radius: 22px;
  background: rgba(14, 18, 29, 0.88);
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.24);
}

.admin-panel h2 {
  margin: 0 0 14px;
  font-size: 1rem;
  letter-spacing: -0.02em;
}

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

.admin-grid--links {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.field {
  display: grid;
  gap: 8px;
}

.field-wide {
  grid-column: 1 / -1;
}

.field span {
  color: rgba(219, 227, 238, 0.78);
  font-size: 0.82rem;
  font-weight: 600;
}

.field input,
.field textarea,
.field select {
  width: 100%;
  border: 1px solid rgba(90, 108, 140, 0.28);
  border-radius: 14px;
  background: rgba(8, 11, 18, 0.86);
  color: var(--text);
  padding: 12px 14px;
  font: inherit;
}

.field textarea {
  resize: vertical;
}

.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: 2px solid rgba(62, 224, 122, 0.3);
  border-color: rgba(62, 224, 122, 0.42);
}

.admin-links {
  display: grid;
  gap: 12px;
}

.link-editor {
  padding: 14px;
  border-radius: 18px;
  border: 1px solid rgba(93, 109, 141, 0.18);
  background: rgba(10, 14, 24, 0.76);
}

.link-editor-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.link-editor-header h3 {
  margin: 0;
  font-size: 0.92rem;
}

.admin-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding-top: 4px;
}

.admin-footer-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.save-status {
  min-height: 1em;
  color: rgba(184, 197, 214, 0.82);
  font-size: 0.88rem;
}

.save-status[data-tone="ok"] {
  color: #6ee7a8;
}

.save-status[data-tone="warn"] {
  color: #ffcd70;
}

.admin-flash {
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid rgba(94, 112, 143, 0.28);
  background: rgba(10, 14, 24, 0.82);
  color: #dbe4ef;
}

.admin-flash--ok {
  border-color: rgba(62, 224, 122, 0.28);
  color: #8ef0b7;
}

.auth-shell {
  min-height: calc(100vh - 64px);
  display: grid;
  place-items: center;
}

.auth-card {
  width: min(100%, 420px);
  padding: 22px;
  border-radius: 24px;
  border: 1px solid rgba(86, 105, 140, 0.2);
  background: rgba(14, 18, 29, 0.92);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.34);
}

.auth-card h1 {
  margin: 0;
  font-size: 1.7rem;
  letter-spacing: -0.04em;
}

.auth-card p {
  color: var(--muted);
  line-height: 1.45;
}

.auth-form {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.auth-error {
  margin: 14px 0 0;
  color: #ff9191 !important;
}

.auth-footnote {
  margin: 14px 0 0;
  font-size: 0.88rem;
}

.admin-button {
  border: 1px solid rgba(72, 114, 232, 0.5);
  background: linear-gradient(180deg, rgba(46, 96, 220, 0.95), rgba(26, 58, 148, 0.96));
  color: white;
  border-radius: 14px;
  padding: 12px 16px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.admin-button--ghost {
  background: rgba(18, 22, 34, 0.96);
  border-color: rgba(94, 112, 143, 0.3);
}

.admin-button--small {
  padding: 9px 12px;
  border-radius: 12px;
  font-size: 0.84rem;
}

.admin-button--danger {
  border-color: rgba(239, 68, 68, 0.45);
  background: rgba(60, 18, 22, 0.92);
}

@media (max-width: 420px) {
  .page-shell {
    padding-inline: 12px;
  }

  .profile-page {
    width: 100%;
  }

  .feature-visual {
    height: 180px;
  }

  .feature-figure-front {
    left: 40px;
    width: 108px;
    height: 138px;
  }

  .feature-figure-back {
    right: 18px;
    width: 110px;
    height: 148px;
  }

  .admin-shell {
    padding-inline: 12px;
  }

  .admin-header,
  .admin-footer,
  .admin-footer-actions,
  .link-editor-header,
  .admin-actions,
  .section-row {
    flex-direction: column;
    align-items: stretch;
  }

  .admin-grid,
  .admin-grid--links {
    grid-template-columns: 1fr;
  }
}
