.docs-nav nav { align-items: stretch; }
.docs-nav nav a:hover, .docs-nav nav a:focus-visible { background: #251b15; transform: none; }
.doc-article details, .docs-nav input { background: #15110e; border-color: var(--line); }
.docs-intro, .doc-article { border-color: var(--line); }
.legal-page { max-width: 940px; padding-block: 50px 70px; }
.legal-page > h1 { margin-bottom: 15px; }
.legal-page a:not(.button) { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.support-section { padding-block: 16px; border-bottom: 1px solid var(--line); }
.support-section h2 { margin-bottom: 7px; }
.v2-premium .pricing-main { padding-block: 56px 70px; }
.v2-premium .pricing-plan, .v2-premium .purchase-dialog { background: #17120f; border-color: #503729; }
.v2-premium .button.orange { background: var(--accent); color: #211208; }
.v2-premium .button.secondary { background: #231a14; border-color: #503729; color: var(--ink); }
.premium-return { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 20px; margin-bottom: 18px; border: 1px solid var(--line); border-radius: 10px; }
.premium-return p { margin: 0; }

.v2-hosting main { max-width: 880px; padding-block: 50px 70px; }
.v2-hosting main h1 { font-size: clamp(34px,5vw,54px); }
.v2-hosting main > p { color: var(--muted); }
.v2-hosting main .panel { margin-block: 16px; padding: 20px; background: #16110e; border: 1px solid var(--line); border-radius: 12px; }
.v2-hosting main a { color: var(--accent); }
.v2-hosting main .actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.v2-hosting main button { color: var(--ink); background: #271b14; border: 1px solid var(--line); border-radius: 8px; padding: 8px 13px; }
.v2-hosting main .button-primary { background: var(--accent); color: #211208; border-radius: 8px; padding: 8px 13px; }
.v2-hosting main label { display: block; margin-block: 12px; }
.v2-hosting main input:not([type=checkbox]), .v2-hosting main select { display: block; max-width: 100%; width: 100%; padding: 9px; margin-top: 4px; border: 1px solid var(--line); border-radius: 6px; background: #100e0d; color: var(--ink); }
.v2-docs .docs-shell { gap: clamp(28px,5vw,68px); padding-top: 42px; padding-inline: 0; }
.v2-docs .docs-nav { top: 24px; max-height: calc(100vh - 48px); scrollbar-width: thin; }
.v2-docs .docs-topic-group h2 { margin: 13px 0 4px; color: var(--muted); font-size: 12px; font-weight: 720; }
.v2-docs .docs-topic-group nav { margin: 0 0 10px; }
.v2-docs .docs-topic-group nav a { padding: 6px 9px; }
.v2-docs .docs-intro { padding-bottom: 26px; }
.v2-docs .docs-intro h1 { margin-top: 0; }
.v2-docs .doc-article { padding-block: 28px; scroll-margin-top: 24px; }
.doc-article-head { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 12px; }
.doc-article-head h2 { margin-top: 0; }
.guide-plan { color: #f4ad83; font-size: 12px; font-weight: 700; }
.v2-docs .command-list { margin: 0; padding: 0; list-style: none; border: 1px solid var(--line); border-radius: 10px; background: #19120e9c; }
.v2-docs .command-list li { display: grid; grid-template-columns: minmax(0,1.06fr) minmax(0,1fr); gap: 8px 16px; padding: 11px 14px; line-height: 1.45; }
.command-list li + li { border-top: 1px solid var(--line); }
.command-list code { color: #ffd0b2; font-size: 13px; overflow-wrap: anywhere; }
.command-list li span { color: var(--muted); font-size: 13px; }
.v2-docs .doc-note a, .support-notes a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.v2-docs .doc-article details, .support-notes details { padding: 0; border: 1px solid var(--line); border-radius: 10px; background: #18120ed9; }
.v2-docs details > summary, .support-notes details > summary { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 13px 15px; list-style: none; font-weight: 700; cursor: pointer; }
.v2-docs details > summary::-webkit-details-marker, .support-notes details > summary::-webkit-details-marker { display: none; }
.v2-docs details > summary::after, .support-notes details > summary::after { content: ''; width: 7px; height: 7px; margin-right: 3px; border: solid var(--accent); border-width: 0 1.5px 1.5px 0; transform: rotate(45deg); transition: transform .2s var(--spring); }
.v2-docs details[open] > summary::after, .support-notes details[open] > summary::after { transform: rotate(225deg); }
.v2-docs .doc-article details ul { margin: 0; padding: 0 24px 13px 35px; }
.support-hub { max-width: 1050px; padding-block: 60px 74px; }
.support-intro { margin-bottom: 27px; }
.support-intro h1 { font-size: clamp(40px,6vw,62px); margin-bottom: 12px; }
.support-intro p, .support-card p, .support-notes p { color: var(--muted); }
.support-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; }
.support-card { display: flex; align-items: start; flex-direction: column; padding: 25px; border: 1px solid #60412e; border-radius: 14px; background: linear-gradient(140deg,#2e1d15a8,#14100de8); }
.support-card h2, .support-notes h2 { font-size: 22px; margin-bottom: 8px; }
.support-card p { flex: 1; }
.support-notes { margin-top: 35px; }
.support-notes details { margin-top: 9px; }
.support-notes p { margin: 0; padding: 0 15px 15px; }
.v2-policy .legal-page { padding-top: 48px; }
@media (max-width: 900px) { .v2-docs .docs-nav { max-height: none; } }
@media (max-width: 640px) {
  .support-grid, .v2-docs .command-list li { grid-template-columns: 1fr; }
  .support-hub { padding-block: 42px; }
}
@media (prefers-reduced-motion: reduce) { .v2-docs details > summary::after, .support-notes details > summary::after { transition: none; } }
@media (max-width: 900px) { .v2-docs .docs-nav { max-height: 255px; overflow: auto; } }

.v2-premium .purchase-dialog { width: min(500px,calc(100% - 32px)); padding: clamp(19px,5vw,30px); }
.v2-premium .purchase-close { display: grid; place-items: center; width: 36px; height: 36px; padding: 0; border: 1px solid #503729; border-radius: 8px; color: var(--ink); }
.v2-premium .purchase-close:hover { background: #302118; }
.v2-premium #purchaseForm { display: grid; gap: 9px; margin: 18px 0 14px; }
.v2-premium #purchaseForm label { margin: 0; }
.v2-premium #purchaseServer { min-width: 0; background: #100d0b; border-color: #604332; }
.v2-premium #purchaseForm .purchase-summary { margin: 0; padding: 0; color: var(--muted); }
.v2-premium #purchaseError { margin: 0; }
.v2-premium #purchaseError:empty { display: none; }
.v2-premium #purchaseContinue { min-height: 43px; margin-top: 5px; }
.v2-premium .pricing-plan.featured {
  background: radial-gradient(ellipse at 84% 0%, #41271a 0%, transparent 68%), #19120e;
  border-color: #99603c;
  box-shadow: 0 12px 38px #ff914d19, inset 0 1px #ffc49f22;
}
.v2-premium .yearly-orbit { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; fill: none; pointer-events: none; }
.v2-premium .yearly-orbit rect { width: calc(100% - 2px); height: calc(100% - 2px); stroke: #ffad7b; stroke-width: 2; stroke-dasharray: 11 89; filter: drop-shadow(0 0 5px #ff914db3); }
.v2-premium .featured .saving { z-index: 1; background: #ffab78; color: #25140b; }
@media (prefers-reduced-motion: no-preference) { .v2-premium .yearly-orbit rect { animation-duration: 3.6s; } }
@media (min-width: 801px) {
  .v2-premium .pricing-plans { grid-template-columns: minmax(0,1fr) minmax(0,1.2fr) minmax(0,1fr); }
  .v2-premium .pricing-plan.featured { margin-block: -9px; padding-block: 39px; }
}
@media (max-width: 800px) {
  .v2-premium .pricing-plan.featured { padding-block: 38px; }
}
