:root {
  color-scheme: dark;
  --bg: #09050e;
  --bg-deep: #050308;
  --surface: #120a1d;
  --surface-raised: #1a0d29;
  --line: #3d1d57;
  --line-soft: #2d153d;
  --purple: #8c38ff;
  --violet: #bd5cff;
  --pink: #ed48d7;
  --text: #f8f4ff;
  --muted: #b9adc7;
  --content: 1160px;
  --radius: 8px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--bg-deep); }
body { margin: 0; overflow-x: hidden; color: var(--text); background: var(--bg); font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; letter-spacing: 0; }
button,
a { font: inherit; -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

.plans-header { position: sticky; top: 0; z-index: 20; display: grid; grid-template-columns: 1fr auto 1fr; min-height: 72px; align-items: center; padding: 0 max(24px, calc((100vw - var(--content)) / 2)); border-bottom: 1px solid rgba(189, 92, 255, 0.18); background: rgba(9, 5, 14, 0.92); backdrop-filter: blur(18px); }
.plans-brand { display: inline-flex; align-items: center; gap: 11px; width: fit-content; font-weight: 900; }
.plans-brand img { width: 38px; height: 38px; border: 1px solid rgba(181, 83, 255, 0.7); border-radius: 8px; object-fit: cover; box-shadow: 0 0 20px rgba(140, 56, 255, 0.32); }
.plans-nav { display: flex; gap: 26px; color: #d2c8dc; font-size: 0.78rem; font-weight: 800; }
.plans-nav a:hover { color: var(--violet); }
.plans-account { justify-self: end; position: relative; }
.plans-account > a,
.plans-account-trigger { display: inline-flex; min-height: 40px; align-items: center; gap: 9px; padding: 0 13px; border: 1px solid #5a2588; border-radius: 6px; color: #f2e8ff; background: #160b22; font-size: 0.74rem; font-weight: 800; cursor: pointer; }
.plans-account-trigger img { width: 22px; height: 22px; border-radius: 50%; object-fit: cover; }
.plans-account-menu { position: absolute; top: calc(100% + 10px); right: 0; display: none; width: 250px; padding: 10px; border: 1px solid #54227d; border-radius: var(--radius); background: #120a1d; box-shadow: 0 25px 80px rgba(0, 0, 0, 0.62); }
.plans-account.open .plans-account-menu { display: grid; }
.plans-account-profile { display: grid; grid-template-columns: 40px 1fr; gap: 10px; padding: 9px; border-bottom: 1px solid var(--line-soft); }
.plans-account-profile img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }
.plans-account-profile span,
.plans-account-profile strong,
.plans-account-profile small { display: block; }
.plans-account-profile span { color: var(--muted); font-size: 0.62rem; font-weight: 800; text-transform: uppercase; }
.plans-account-profile strong { margin-top: 3px; overflow: hidden; font-size: 0.82rem; text-overflow: ellipsis; white-space: nowrap; }
.plans-account-profile small { margin-top: 3px; color: var(--violet); font-size: 0.68rem; }
.plans-account-menu a,
.plans-account-menu button { padding: 11px 9px; border: 0; border-radius: 4px; color: #e8ddf4; background: transparent; font-size: 0.74rem; font-weight: 800; text-align: left; cursor: pointer; }
.plans-account-menu a:hover,
.plans-account-menu button:hover { color: #fff; background: #2a1240; }

.plans-hero { position: relative; min-height: 520px; padding: 130px max(24px, calc((100vw - var(--content)) / 2)) 88px; overflow: hidden; border-bottom: 1px solid var(--line-soft); background: #0a0511; }
.plans-hero::before { position: absolute; inset: 0; background-image: linear-gradient(rgba(152, 77, 255, 0.08) 1px, transparent 1px), linear-gradient(90deg, rgba(152, 77, 255, 0.08) 1px, transparent 1px); background-size: 46px 46px; content: ""; opacity: 0.36; pointer-events: none; }
.plans-hero::after { position: absolute; inset: auto -20% -160px auto; width: 460px; height: 460px; border: 1px solid rgba(182, 93, 255, 0.4); border-radius: 50%; box-shadow: 0 0 90px rgba(140, 56, 255, 0.17), inset 0 0 90px rgba(140, 56, 255, 0.1); content: ""; }
.plans-hero > * { position: relative; z-index: 1; }
.hero-mark { position: absolute; z-index: 2; top: 116px; right: max(24px, calc((100vw - var(--content)) / 2)); width: 168px; padding: 14px; border: 1px solid rgba(165, 66, 255, 0.62); border-radius: 18px; background: rgba(11, 5, 18, 0.82); box-shadow: 0 0 50px rgba(140, 56, 255, 0.28); }
.hero-mark img { width: 100%; border-radius: 10px; }
.eyebrow { margin: 0 0 17px; color: var(--violet); font-size: 0.71rem; font-weight: 900; letter-spacing: 0.12em; text-transform: uppercase; }
.plans-hero h1 { max-width: 850px; margin: 0; font-size: clamp(3.25rem, 6.5vw, 6.6rem); line-height: 0.9; font-weight: 900; }
.plans-hero > p:not(.eyebrow) { max-width: 680px; margin: 28px 0 0; color: #d4c9de; font-size: 1.08rem; line-height: 1.75; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 31px; }
.hero-meta span { padding: 9px 11px; border: 1px solid #482069; border-radius: 999px; color: #d8c7e7; background: rgba(31, 13, 45, 0.7); font-size: 0.7rem; font-weight: 800; }

.plans-shell { width: min(var(--content), calc(100% - 48px)); margin: 0 auto; padding: 104px 0; }
.section-heading { display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px, 0.48fr); gap: 50px; align-items: end; margin-bottom: 34px; }
.section-heading .eyebrow { margin-bottom: 12px; }
.section-heading h2 { max-width: 720px; margin: 0; font-size: clamp(2.15rem, 4vw, 4rem); line-height: 0.98; }
.section-heading > p { margin: 0; color: var(--muted); line-height: 1.7; }

.checkout-identity { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 15px; padding: 16px 18px; border: 1px solid var(--line-soft); border-radius: var(--radius); background: #0e0717; }
.checkout-identity div { display: grid; gap: 4px; }
.checkout-identity span { color: var(--muted); font-size: 0.65rem; font-weight: 800; text-transform: uppercase; }
.checkout-identity strong { color: #eee6f7; font-size: 0.81rem; }
.checkout-identity strong[data-state="success"] { color: #9ef3bd; }
.checkout-identity strong[data-state="error"] { color: #ffadbf; }
.outline-button,
.primary-button { display: inline-flex; min-height: 46px; align-items: center; justify-content: center; padding: 0 16px; border: 1px solid transparent; border-radius: 6px; font-size: 0.8rem; font-weight: 900; cursor: pointer; transition: transform 160ms ease, background 160ms ease, border-color 160ms ease; }
.outline-button { border-color: #572182; color: #ecdfff; background: #160b21; }
.primary-button { color: #fff; background: #7d24e9; box-shadow: 0 0 24px rgba(140, 56, 255, 0.24); }
.primary-button.soft { border-color: #56207f; color: #eadcff; background: #1b0d29; box-shadow: none; }
.outline-button:hover,
.primary-button:hover { transform: translateY(-2px); }
.primary-button:hover { background: #9438fa; }
.primary-button.soft:hover,
.outline-button:hover { border-color: var(--violet); background: #29113d; }
.primary-button:disabled { opacity: 0.58; cursor: not-allowed; transform: none; box-shadow: none; }

.access-choice { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-bottom: 16px; }
.access-choice-card { min-height: 118px; padding: 17px; border: 1px solid var(--line-soft); border-radius: var(--radius); color: #e6dcee; background: #0f0818; text-align: left; cursor: pointer; transition: transform 160ms ease, border-color 160ms ease, background 160ms ease; }
.access-choice-card:hover { transform: translateY(-2px); border-color: #6a299a; }
.access-choice-card.active { border-color: #9b43ff; background: #1d0d2d; box-shadow: inset 3px 0 0 var(--violet), 0 0 28px rgba(140, 56, 255, 0.13); }
.access-choice-card span,
.access-choice-card strong,
.access-choice-card small { display: block; }
.access-choice-card span { color: var(--violet); font-size: 0.63rem; font-weight: 900; letter-spacing: 0.09em; text-transform: uppercase; }
.access-choice-card strong { margin-top: 6px; color: #fff; font-size: 0.96rem; }
.access-choice-card small { margin-top: 6px; color: var(--muted); font-size: 0.73rem; line-height: 1.45; }

.pricing-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.price-card { position: relative; display: flex; min-height: 430px; flex-direction: column; padding: 24px; border: 1px solid var(--line-soft); border-radius: var(--radius); background: #0f0818; }
.price-card.featured { border-color: #69309b; background: #150a21; }
.price-card.pro-card { border-color: #a646f4; background: #190a29; box-shadow: inset 0 0 0 1px rgba(237, 72, 215, 0.08), 0 0 38px rgba(175, 62, 255, 0.14); }
.pro-badge { position: absolute; top: 16px; right: 16px; padding: 5px 7px; border: 1px solid rgba(238, 84, 224, 0.58); border-radius: 999px; color: #f3b1eb; font-size: 0.57rem; font-weight: 900; text-transform: uppercase; }
.plan-label { margin: 0; color: var(--violet); font-size: 0.65rem; font-weight: 900; letter-spacing: 0.1em; text-transform: uppercase; }
.price-card h3 { max-width: 220px; margin: 13px 0 11px; font-size: 1.8rem; line-height: 1.02; }
.price-card > p:not(.plan-label) { min-height: 74px; margin: 0; color: var(--muted); font-size: 0.84rem; line-height: 1.62; }
.sale-price { display: flex; align-items: end; justify-content: space-between; gap: 12px; margin-top: 24px; padding: 16px 0; border-block: 1px solid var(--line-soft); }
.sale-price span { color: #b7a8c5; font-size: 0.7rem; font-weight: 800; }
.sale-price strong { color: #fff; font-size: 1.8rem; line-height: 1; }
.plan-notes { display: grid; gap: 10px; margin: 22px 0 25px; padding: 0; list-style: none; }
.plan-notes li { position: relative; padding-left: 17px; color: #dbd2e5; font-size: 0.76rem; line-height: 1.45; }
.plan-notes li::before { position: absolute; left: 0; color: var(--violet); content: "+"; font-weight: 900; }
.price-card .primary-button { width: 100%; margin-top: auto; }
.terms-panel { display: grid; grid-template-columns: minmax(240px, 0.42fr) minmax(0, 1fr); gap: 28px; margin-top: 18px; padding: 24px; border: 1px solid #4d236f; border-radius: var(--radius); background: linear-gradient(135deg, rgba(23, 10, 35, 0.96), rgba(11, 5, 18, 0.96)); box-shadow: inset 3px 0 0 rgba(189, 92, 255, 0.85); }
.terms-panel h2 { margin: 0; font-size: 1.45rem; line-height: 1.08; }
.terms-panel ul { display: grid; gap: 11px; margin: 0; padding: 0; list-style: none; }
.terms-panel li { position: relative; padding-left: 18px; color: #dfd3ea; font-size: 0.78rem; line-height: 1.55; }
.terms-panel li::before { position: absolute; left: 0; color: var(--violet); content: "+"; font-weight: 900; }
.plans-disclaimer { max-width: 880px; margin: 22px auto 0; color: #9384a4; font-size: 0.72rem; line-height: 1.65; text-align: center; }

.v5-route { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 72px; align-items: start; padding: 94px max(24px, calc((100vw - var(--content)) / 2)); border-block: 1px solid var(--line-soft); background: #0b0610; }
.v5-route h2 { max-width: 540px; margin: 0; font-size: clamp(2.1rem, 3.9vw, 3.9rem); line-height: 0.98; }
.route-list { border-top: 1px solid var(--line-soft); }
.route-list article { display: grid; grid-template-columns: 44px 1fr; column-gap: 13px; padding: 20px 0; border-bottom: 1px solid var(--line-soft); }
.route-list span { grid-row: span 2; color: var(--violet); font-size: 0.69rem; font-weight: 900; }
.route-list h3 { margin: 0; font-size: 0.94rem; }
.route-list p { margin: 7px 0 0; color: var(--muted); font-size: 0.78rem; line-height: 1.55; }

.plans-footer { display: grid; grid-template-columns: 1fr auto 1fr; gap: 20px; align-items: center; width: min(var(--content), calc(100% - 48px)); min-height: 115px; margin: 0 auto; }
.plans-footer p { margin: 0; color: var(--muted); font-size: 0.72rem; text-align: center; }
.plans-footer > div { display: flex; justify-content: flex-end; gap: 18px; color: #d7cce3; font-size: 0.72rem; font-weight: 800; }
.plans-footer > div a:hover { color: var(--violet); }

.plans-modal-wrap[hidden] { display: none; }
.plans-modal-wrap { position: fixed; z-index: 50; inset: 0; display: grid; place-items: center; padding: 18px; background: rgba(3, 1, 6, 0.82); backdrop-filter: blur(8px); }
.plans-modal { width: min(540px, 100%); padding: 26px; border: 1px solid #7930ad; border-radius: 10px; background: #120a1d; box-shadow: 0 30px 90px rgba(0, 0, 0, 0.7), 0 0 45px rgba(140, 56, 255, 0.22); }
.plans-modal-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.plans-modal-head > div > span { color: var(--violet); font-size: 0.65rem; font-weight: 900; letter-spacing: 0.1em; text-transform: uppercase; }
.plans-modal h2 { margin: 7px 0 0; font-size: 1.85rem; line-height: 1.06; }
.plans-modal-close { width: 34px; height: 34px; border: 1px solid #4d236f; border-radius: 5px; color: #f6efff; background: #1b0c29; cursor: pointer; }
.plans-modal > p { color: var(--muted); line-height: 1.7; }
.plans-modal ul { display: grid; gap: 9px; margin: 20px 0 0; padding: 17px 0; border-block: 1px solid var(--line-soft); list-style: none; }
.plans-modal li { position: relative; padding-left: 17px; color: #e0d6e9; font-size: 0.8rem; line-height: 1.48; }
.plans-modal li::before { position: absolute; left: 0; color: var(--violet); content: "+"; font-weight: 900; }
.modal-terms-note { margin: 14px 0 0; padding: 12px 13px; border: 1px solid #54227d; border-radius: 6px; color: #f0e6fb; background: #0c0613; font-size: 0.76rem; line-height: 1.5; }
.plans-modal-actions { display: flex; gap: 10px; margin-top: 20px; }
.plans-key { margin-top: 18px; padding: 14px; border: 1px solid #673096; border-radius: 6px; color: #fff; background: #0c0613; word-break: break-all; }
.plans-key span { display: block; margin-bottom: 5px; color: var(--muted); font-size: 0.64rem; font-weight: 800; text-transform: uppercase; }
.plans-key strong { font-size: 0.95rem; }

a:focus-visible,
button:focus-visible { outline: 2px solid var(--violet); outline-offset: 3px; }

@media (max-width: 900px) {
  .plans-header { padding: 0 18px; }
  .plans-hero { padding: 116px 18px 76px; }
  .plans-shell { width: min(100% - 36px, var(--content)); padding: 76px 0; }
  .hero-mark { right: 18px; top: 96px; width: 116px; }
  .plans-hero h1 { max-width: 660px; }
  .section-heading,
  .terms-panel,
  .v5-route { grid-template-columns: 1fr; gap: 28px; }
  .v5-route { padding: 72px 18px; }
  .pricing-grid { grid-template-columns: 1fr; }
  .price-card { min-height: 0; }
  .price-card > p:not(.plan-label) { min-height: 0; }
}

@media (max-width: 580px) {
  .plans-header { grid-template-columns: 1fr auto; min-height: 64px; }
  .plans-nav { display: none; }
  .plans-brand img { width: 34px; height: 34px; }
  .plans-account > a,
  .plans-account-trigger { min-width: 42px; width: 42px; justify-content: center; padding: 0; font-size: 0; }
  .plans-account > a::before { content: "DV"; color: #f0e5ff; font-size: 0.59rem; font-weight: 900; }
  .plans-account-trigger span { display: none; }
  .plans-hero { min-height: 560px; padding-top: 118px; }
  .plans-hero::after { width: 330px; height: 330px; }
  .hero-mark { top: 86px; width: 78px; padding: 8px; }
  .plans-hero h1 { font-size: clamp(2.8rem, 13vw, 4rem); }
  .plans-hero > p:not(.eyebrow) { font-size: 0.95rem; }
  .hero-meta { gap: 7px; }
  .checkout-identity { align-items: flex-start; flex-direction: column; }
  .checkout-identity .outline-button { width: 100%; }
  .access-choice { grid-template-columns: 1fr; }
  .plans-footer { grid-template-columns: 1fr; justify-items: start; width: min(100% - 36px, var(--content)); padding: 28px 0; }
  .plans-footer p { text-align: left; }
  .plans-footer > div { justify-content: flex-start; }
  .plans-modal-actions { display: grid; }
  .plans-modal-actions .primary-button,
  .plans-modal-actions .outline-button { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
