:root {
  color-scheme: dark;
  --bg: #0b1020;
  --panel: #111827;
  --panel-2: #0f172a;
  --line: #253044;
  --text: #f8fafc;
  --muted: #a8b3c7;
  --accent: #38bdf8;
  --accent-2: #22c55e;
  --warning: #f59e0b;
}

* {
  box-sizing: border-box;
}

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

.wrap {
  width: min(980px, 100%);
  margin: 0 auto;
  padding: 40px 20px;
}

.wrap.narrow {
  width: min(720px, 100%);
}

.connect-wrap {
  width: min(1240px, 100%);
}

body.is-account {
  min-height: 100vh;
  overflow: hidden;
}

body.is-account .connect-wrap {
  width: min(1680px, 100%);
  height: calc(100vh - 56px);
  margin-left: 0;
  padding: 24px 28px 18px;
}

body.is-account .connect-hero {
  display: none;
}

body.is-account footer {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  display: flex;
  width: 100%;
  height: 56px;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin: 0;
  padding: 0 24px;
  border-top: 1px solid var(--line);
  background: rgba(11, 16, 32, 0.96);
}

body.is-account footer nav {
  margin-top: 0;
}

body.is-account #accountSection {
  height: 100%;
  margin-top: 0;
  border: 0;
  background: transparent;
  padding: 0;
}

.hero,
.section,
.ref-card {
  border: 1px solid var(--line);
  background: var(--panel);
  border-radius: 8px;
  padding: 28px;
}

.section,
.ref-card {
  margin-top: 18px;
}

.eyebrow {
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0;
  margin-bottom: 12px;
}

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

h1 {
  margin-bottom: 14px;
  font-size: 42px;
  line-height: 1.05;
}

h2 {
  margin-bottom: 10px;
  font-size: 24px;
}

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

.lead {
  max-width: 720px;
  font-size: 18px;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  margin-bottom: 14px;
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.8);
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

a,
button {
  font: inherit;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 13px 18px;
  border-radius: 8px;
  background: var(--accent);
  color: #06111f;
  text-decoration: none;
  font-weight: 700;
  border: 0;
  cursor: pointer;
  transition: background-color 0.16s ease, border-color 0.16s ease, color 0.16s ease, transform 0.16s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0);
}

.secondary {
  background: #1f2937;
  color: var(--text);
  border: 1px solid #334155;
}

.secondary:hover {
  border-color: #475569;
  background: #263241;
}

.trial-btn {
  background: var(--accent-2);
  color: #052e16;
}

.trial-btn:hover {
  background: #16a34a;
}

.trial-note,
.section-note,
.small,
.compact {
  color: #94a3b8;
  font-size: 14px;
}

.trial-note {
  margin-top: 12px;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.plan-card {
  position: relative;
  display: flex;
  min-height: 150px;
  flex-direction: column;
  gap: 8px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-2);
  color: inherit;
  text-decoration: none;
}

.plan-card:hover {
  border-color: var(--accent);
}

.featured {
  border-color: rgba(34, 197, 94, 0.75);
}

.badge {
  align-self: flex-start;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(34, 197, 94, 0.14);
  color: #86efac;
  font-size: 12px;
  font-weight: 700;
}

.plan-name {
  font-weight: 700;
}

.price {
  font-size: 28px;
  font-weight: 800;
}

.desc {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

.ref-card b {
  color: #86efac;
}

code {
  padding: 4px 8px;
  border-radius: 6px;
  background: var(--panel-2);
  color: var(--accent);
}

.summary {
  margin-top: 20px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-2);
}

.summary p:last-child {
  margin-bottom: 0;
}

.premium-hint {
  margin-top: 12px;
  padding: 12px;
  border-radius: 8px;
  background: rgba(245, 158, 11, 0.12);
  color: #f8d49b;
  font-size: 14px;
  line-height: 1.5;
}

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

.notice-card,
.status-row {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-2);
}

.notice-card {
  display: block;
  padding: 18px;
  color: inherit;
  text-decoration: none;
}

.notice-card:hover {
  border-color: var(--accent);
}

.notice-card b {
  display: block;
  margin-bottom: 8px;
}

.notice-card span {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

.status-list {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

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

.status-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
}

.status-row > span {
  display: grid;
  gap: 4px;
}

.status-row span b {
  color: var(--text);
}

.status-row small {
  color: var(--muted);
  font-size: 13px;
}

.status-row strong,
.status-row > b {
  color: var(--muted);
  white-space: nowrap;
}

.status-ok strong,
.status-ok > b {
  color: #86efac;
}

.status-warn strong,
.status-warn > b {
  color: #f8d49b;
}

.status-card {
  display: grid;
  gap: 8px;
  min-height: 132px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-2);
}

.status-card b {
  font-size: 16px;
}

.status-card span {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.4;
}

.status-card strong {
  align-self: end;
  justify-self: start;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.12);
  color: var(--muted);
  font-size: 12px;
}

.status-ok.status-card,
.status-ok.status-pill {
  border-color: rgba(34, 197, 94, 0.5);
}

.status-ok.status-card strong,
.status-ok.status-pill {
  background: rgba(34, 197, 94, 0.12);
  color: #86efac;
}

.status-warn.status-card,
.status-warn.status-pill {
  border-color: rgba(245, 158, 11, 0.58);
}

.status-warn.status-card strong,
.status-warn.status-pill {
  background: rgba(245, 158, 11, 0.12);
  color: #f8d49b;
}

.site-form {
  display: grid;
  gap: 14px;
  margin-top: 16px;
}

.site-form label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.site-form input,
.site-form select,
.site-form textarea {
  width: 100%;
  min-height: 46px;
  padding: 12px;
  border: 1px solid #334155;
  border-radius: 8px;
  background: var(--panel-2);
  color: var(--text);
  font: inherit;
}

.site-form input:focus,
.site-form select:focus,
.site-form textarea:focus,
button:focus-visible,
a:focus-visible,
summary:focus-visible {
  outline: 2px solid rgba(56, 189, 248, 0.7);
  outline-offset: 2px;
}

.site-form textarea {
  min-height: 140px;
  resize: vertical;
}

.form-result {
  min-height: 22px;
  margin: 0;
  color: #86efac;
}

.account-layout {
  display: grid;
  grid-template-columns: 340px minmax(0, 820px) minmax(260px, 360px);
  gap: 34px;
  align-items: start;
  height: 100%;
  overflow: visible;
}

.account-sidebar {
  max-height: 100%;
  overflow: auto;
  padding-right: 4px;
}

.account-sidebar .summary {
  margin-top: 14px;
  padding: 18px;
  background: rgba(15, 23, 42, 0.66);
}

.account-sidebar .summary p {
  margin-bottom: 10px;
}

.account-sidebar .site-form {
  gap: 10px;
}

.account-sidebar .site-form textarea {
  min-height: 76px;
}

.sidebar-bottom {
  margin-top: 28px;
}

.sidebar-bottom .actions {
  margin-top: 0;
}

.account-main {
  min-width: 0;
  max-height: none;
  overflow: visible;
  padding-right: 0;
  align-self: start;
}

.account-support-column {
  position: sticky;
  top: 0;
  max-height: 100%;
  overflow: auto;
}

.compact-status-grid {
  grid-template-columns: 1fr;
}

.compact-status-grid .notice-card {
  padding: 13px;
}

.compact-status-grid .notice-card b {
  margin-bottom: 4px;
}

.link-list {
  display: grid;
  gap: 14px;
  margin-top: 14px;
}

.single-link-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.link-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-2);
  transition: border-color 0.16s ease, background-color 0.16s ease, transform 0.16s ease;
}

.link-item:hover {
  border-color: rgba(56, 189, 248, 0.55);
  background: #111c31;
}

.primary-link-item {
  min-height: 114px;
}

.link-recommended {
  border-color: rgba(34, 197, 94, 0.8);
  background: linear-gradient(90deg, rgba(34, 197, 94, 0.12), rgba(15, 23, 42, 0.95));
}

.link-recommended:hover {
  border-color: rgba(34, 197, 94, 0.95);
  background: linear-gradient(90deg, rgba(34, 197, 94, 0.16), rgba(15, 23, 42, 0.98));
}

.link-full {
  border-color: rgba(56, 189, 248, 0.5);
}

.link-title-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.link-title-row em {
  padding: 3px 7px;
  border-radius: 999px;
  background: rgba(56, 189, 248, 0.14);
  color: #7dd3fc;
  font-size: 12px;
  font-style: normal;
  font-weight: 700;
}

.link-recommended .link-title-row em {
  background: rgba(34, 197, 94, 0.16);
  color: #86efac;
}

.compact-link-item {
  grid-template-columns: minmax(0, 1fr) 150px;
  gap: 6px 14px;
  align-items: center;
  min-height: 112px;
  padding: 10px 14px;
  background: rgba(15, 23, 42, 0.7);
}

.compact-link-item b {
  grid-column: 1;
  font-size: 15px;
}

.compact-link-item span {
  grid-column: 1;
  font-size: 13px;
  line-height: 1.25;
}

.compact-link-item code {
  grid-column: 1;
  max-height: none;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-size: 12px;
}

.compact-link-item .btn {
  grid-column: 2;
  grid-row: 1 / span 3;
  width: 100%;
  min-height: 38px;
  padding: 9px 12px;
  font-size: 14px;
}

.link-item code {
  display: block;
  max-width: 100%;
  margin-top: 8px;
  overflow-wrap: anywhere;
}

.link-item span {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.3;
}

.compact-link-item code {
  margin-top: 2px;
}

.compact-link-item span {
  margin-top: 2px;
}

.section-subtitle {
  margin-top: 18px;
}

.embedded-section {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.support-details {
  margin-top: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.72);
  transition: border-color 0.16s ease, background-color 0.16s ease;
}

.support-details:hover {
  border-color: rgba(56, 189, 248, 0.45);
  background: rgba(15, 23, 42, 0.86);
}

.support-details summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  padding: 16px 18px;
  cursor: pointer;
  list-style: none;
}

.support-details summary::-webkit-details-marker {
  display: none;
}

.support-details summary span {
  font-size: 18px;
  font-weight: 800;
}

.support-details summary small {
  grid-column: 1;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.support-details summary::after {
  grid-column: 2;
  grid-row: 1 / span 2;
  content: "+";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border: 1px solid #334155;
  border-radius: 8px;
  color: var(--accent);
  font-size: 20px;
  line-height: 1;
}

.support-details summary:hover::after {
  border-color: rgba(56, 189, 248, 0.7);
}

.support-details[open] summary {
  border-bottom: 1px solid var(--line);
}

.support-details[open] summary::after {
  content: "-";
}

.support-details .site-form {
  padding: 18px;
  margin-top: 0;
}

.ticket-panel {
  margin-top: 14px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.64);
}

.ticket-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.ticket-panel h3 {
  margin: 0;
  font-size: 17px;
}

.ticket-refresh {
  display: inline-flex;
  width: 30px;
  height: 30px;
  align-items: center;
  justify-content: center;
  border: 1px solid #334155;
  border-radius: 8px;
  background: transparent;
  color: var(--accent);
  cursor: pointer;
}

.ticket-list {
  display: grid;
  gap: 8px;
}

.ticket-item {
  display: grid;
  gap: 6px;
  padding: 10px;
  border: 1px solid rgba(37, 48, 68, 0.78);
  border-radius: 8px;
  background: rgba(11, 16, 32, 0.5);
}

.ticket-main-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  align-items: center;
}

.ticket-item b,
.ticket-reply strong {
  color: var(--accent);
}

.ticket-main-row span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 700;
}

.ticket-item small {
  color: var(--muted);
}

.ticket-item p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}

.ticket-reply {
  display: grid;
  gap: 4px;
  margin-top: 2px;
  padding: 8px;
  border-radius: 8px;
  background: rgba(56, 189, 248, 0.08);
}

.ticket-reply strong {
  font-size: 12px;
}

.ticket-reply p {
  color: #dbeafe;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(2, 6, 23, 0.78);
}

.hidden {
  display: none;
}

.modal-card {
  width: min(560px, 100%);
  max-height: calc(100vh - 40px);
  overflow: auto;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

#trialLink,
.active-access textarea {
  width: 100%;
  min-height: 92px;
  margin: 12px 0;
  padding: 12px;
  border: 1px solid #334155;
  border-radius: 8px;
  background: var(--panel-2);
  color: var(--accent);
  resize: vertical;
}

.modal-card .btn,
.active-access .btn {
  width: 100%;
  margin-top: 10px;
}

.modal-close {
  width: 100%;
  margin-top: 12px;
  padding: 12px;
  border: 0;
  background: transparent;
  color: #94a3b8;
  cursor: pointer;
}

.active-access {
  margin-top: 20px;
  padding: 16px;
  border: 1px solid rgba(34, 197, 94, 0.45);
  border-radius: 8px;
  background: rgba(34, 197, 94, 0.08);
}

footer {
  width: min(980px, 100%);
  margin: 20px auto 0;
  padding: 24px 20px 36px;
  color: #8290a7;
  font-size: 14px;
  text-align: center;
}

footer nav {
  display: flex;
  justify-content: center;
  gap: 18px;
  margin-top: 12px;
}

footer a {
  color: #a8b3c7;
  text-decoration: none;
}

@media (max-width: 760px) {
  .wrap {
    padding: 20px 14px;
  }

  .hero,
  .section,
  .ref-card {
    padding: 20px;
  }

  h1 {
    font-size: 34px;
  }

  .actions,
  .btn {
    width: 100%;
  }

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

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

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

  .link-item {
    grid-template-columns: 1fr;
  }

  .single-link-grid {
    grid-template-columns: 1fr;
  }

  .compact-link-item .btn {
    grid-column: 1;
    grid-row: auto;
  }

  .account-layout {
    grid-template-columns: 1fr;
  }

  .account-sidebar,
  .account-support-column {
    position: static;
    max-height: none;
    overflow: visible;
    padding-right: 0;
  }

  body.is-account .connect-wrap {
    height: auto;
    margin: 0 auto;
    padding-top: 20px;
  }

  body.is-account footer {
    position: static;
    display: block;
    height: auto;
    padding: 24px 20px 36px;
    border-top: 0;
    background: transparent;
  }

  body.is-account {
    overflow: auto;
  }

  body.is-account #accountSection,
  .account-layout {
    height: auto;
    overflow: visible;
  }

  .support-details {
    margin-top: 22px;
  }
}
