:root {
  --bg: #050505;
  --bg-2: #0a0a0a;
  --surface: rgba(18, 18, 18, 0.78);
  --surface-strong: #121212;
  --surface-soft: rgba(255, 255, 255, 0.055);
  --line: rgba(255, 255, 255, 0.12);
  --line-strong: rgba(247, 215, 116, 0.34);
  --text: #f7f7f2;
  --text-soft: #d9d7cf;
  --muted: #a7a59d;
  --gold: #f7d774;
  --gold-2: #fff0b0;
  --green: #52e28b;
  --blue: #8fd7ff;
  --danger: #ff7676;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.48);
  --radius: 8px;
  --container: 1180px;
  --header-height: 76px;
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    linear-gradient(115deg, rgba(247, 215, 116, 0.08), transparent 34%),
    linear-gradient(245deg, rgba(143, 215, 255, 0.045), transparent 38%),
    linear-gradient(180deg, #050505 0%, #0b0b0b 46%, #050505 100%);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
  text-rendering: geometricPrecision;
}

body.nav-open {
  overflow: hidden;
}

body.modal-open {
  overflow: hidden;
}

img,
svg {
  max-width: 100%;
  display: block;
}

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

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

.page-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.site-main {
  flex: 1;
}

.container {
  width: min(100% - 40px, var(--container));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  min-height: var(--header-height);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(5, 5, 5, 0.76);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
}

.header-inner {
  min-height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 750;
  letter-spacing: 0;
}

.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  box-shadow: 0 0 34px rgba(247, 215, 116, 0.22);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.site-nav a {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0 15px;
  color: var(--text-soft);
  transition: color 180ms ease, background 180ms ease, border-color 180ms ease;
}

.site-nav a:hover,
.site-nav a.is-active {
  color: var(--text);
  background: rgba(255, 255, 255, 0.08);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
}

.nav-toggle span {
  width: 18px;
  height: 2px;
  display: block;
  margin: 4px auto;
  border-radius: 2px;
  background: currentColor;
  transition: transform 180ms ease, opacity 180ms ease;
}

.nav-open .nav-toggle span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.nav-open .nav-toggle span:nth-child(2) {
  opacity: 0;
}

.nav-open .nav-toggle span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.button {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 0 20px;
  font-weight: 720;
  letter-spacing: 0;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, color 180ms ease, box-shadow 180ms ease;
}

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

.button:focus-visible,
.faq-question:focus-visible,
.dashboard-tab:focus-visible,
.nav-toggle:focus-visible,
.toast-close:focus-visible,
.password-toggle:focus-visible {
  outline: 2px solid rgba(247, 215, 116, 0.82);
  outline-offset: 3px;
}

.button-primary {
  background: linear-gradient(135deg, var(--gold), var(--gold-2));
  color: #050505;
  box-shadow: 0 16px 40px rgba(247, 215, 116, 0.22);
}

.button-secondary {
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.07);
  color: var(--text);
}

.button-dark {
  border-color: var(--line);
  background: #0b0b0b;
  color: var(--text);
}

.button-danger {
  border-color: rgba(255, 118, 118, 0.28);
  background: rgba(255, 118, 118, 0.1);
  color: #ffd0d0;
}

.button.is-loading {
  pointer-events: none;
  color: transparent;
  position: relative;
}

.button.is-loading::after {
  content: "";
  position: absolute;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(5, 5, 5, 0.2);
  border-top-color: #050505;
  border-radius: 999px;
  animation: spin 700ms linear infinite;
}

.button-icon {
  width: 18px;
  height: 18px;
}

.loading-screen {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  background:
    linear-gradient(135deg, rgba(247, 215, 116, 0.09), transparent 36%),
    linear-gradient(180deg, rgba(5, 5, 5, 0.98), rgba(5, 5, 5, 0.92));
  opacity: 1;
  transition: opacity 380ms ease, visibility 380ms ease;
}

.page-ready .loading-screen {
  opacity: 0;
  visibility: hidden;
}

.page-leaving::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 95;
  background: rgba(5, 5, 5, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  animation: fadeIn 170ms ease both;
}

.loading-card {
  width: min(100% - 32px, 360px);
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 16px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(18, 18, 18, 0.82);
  box-shadow: var(--shadow);
  padding: 18px;
  backdrop-filter: blur(26px);
  -webkit-backdrop-filter: blur(26px);
}

.loading-mark {
  width: 52px;
  height: 52px;
}

.loading-copy {
  display: grid;
  gap: 2px;
}

.loading-copy span {
  color: var(--muted);
  font-size: 0.9rem;
}

.loading-copy strong {
  color: var(--text);
}

.loading-lines {
  grid-column: 1 / -1;
  display: grid;
  gap: 8px;
}

.loading-lines span,
.skeleton-stack span {
  display: block;
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.06), rgba(247, 215, 116, 0.24), rgba(255, 255, 255, 0.06));
  background-size: 220% 100%;
  animation: shimmer 1350ms ease-in-out infinite;
}

.loading-lines span:nth-child(2) {
  width: 76%;
}

.loading-lines span:nth-child(3) {
  width: 48%;
}

.hero {
  position: relative;
  min-height: min(760px, calc(100vh - 28px));
  display: flex;
  align-items: center;
  overflow: hidden;
  background-image:
    linear-gradient(90deg, rgba(5, 5, 5, 0.98) 0%, rgba(5, 5, 5, 0.82) 39%, rgba(5, 5, 5, 0.2) 70%, rgba(5, 5, 5, 0.76) 100%),
    linear-gradient(180deg, rgba(5, 5, 5, 0.04), #050505 96%),
    url("../images/hero-shield.png");
  background-size: cover;
  background-position: center;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 180px;
  background: linear-gradient(180deg, transparent, #050505);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  padding: 74px 0 98px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 22px;
  color: var(--gold);
  font-size: 0.86rem;
  font-weight: 760;
  letter-spacing: 0;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 26px;
  height: 1px;
  background: var(--gold);
}

.hero h1,
.page-hero h1 {
  max-width: 750px;
  margin: 0;
  color: var(--text);
  font-size: clamp(4rem, 11vw, 8.7rem);
  line-height: 0.92;
  letter-spacing: 0;
}

.hero-line {
  max-width: 760px;
  margin: 22px 0 0;
  color: var(--gold);
  font-size: clamp(2rem, 5vw, 4.25rem);
  font-weight: 760;
  line-height: 1;
  letter-spacing: 0;
}

.hero-copy {
  max-width: 620px;
  margin: 24px 0 0;
  color: var(--text-soft);
  font-size: 1.12rem;
}

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

.status-strip {
  max-width: 720px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 42px;
}

.status-pill {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 14px;
  background: rgba(255, 255, 255, 0.07);
  color: var(--text-soft);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--green);
  box-shadow: 0 0 16px rgba(82, 226, 139, 0.8);
}

.section {
  padding: 86px 0;
  position: relative;
}

.section-muted {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.025), rgba(255, 255, 255, 0.01)),
    #080808;
}

.section-head {
  max-width: 760px;
  margin-bottom: 34px;
}

.section-head.centered {
  margin-right: auto;
  margin-left: auto;
  text-align: center;
}

.section-kicker {
  margin: 0 0 12px;
  color: var(--gold);
  font-size: 0.82rem;
  font-weight: 760;
  letter-spacing: 0;
  text-transform: uppercase;
}

.section-title {
  margin: 0;
  color: var(--text);
  font-size: clamp(2rem, 4vw, 3.45rem);
  line-height: 1.05;
  letter-spacing: 0;
}

.section-copy {
  margin: 18px 0 0;
  color: var(--text-soft);
  font-size: 1.04rem;
}

.feature-grid,
.platform-grid,
.review-grid,
.faq-grid,
.legal-grid {
  display: grid;
  gap: 16px;
}

.feature-grid {
  grid-template-columns: repeat(4, 1fr);
}

.feature-card,
.platform-card,
.review-card,
.faq-item,
.auth-card,
.dashboard-panel,
.mini-panel,
.legal-card,
.error-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
}

.feature-card {
  min-height: 238px;
  padding: 24px;
  position: relative;
  overflow: hidden;
}

.feature-card::before,
.review-card::before,
.dashboard-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(247, 215, 116, 0.16), transparent 42%);
  opacity: 0;
  transition: opacity 180ms ease;
  pointer-events: none;
}

.feature-card:hover::before,
.review-card:hover::before,
.dashboard-panel:hover::before {
  opacity: 1;
}

.feature-index {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  margin-bottom: 28px;
  background: rgba(247, 215, 116, 0.12);
  color: var(--gold);
  font-weight: 780;
}

.feature-card h3,
.platform-card h3,
.review-card h3,
.legal-card h2,
.dashboard-panel h2,
.mini-panel h2,
.mini-panel h3 {
  margin: 0;
  color: var(--text);
  font-size: 1.15rem;
  line-height: 1.2;
}

.feature-card p,
.platform-card p,
.review-card p,
.legal-card p,
.dashboard-panel p,
.mini-panel p {
  margin: 13px 0 0;
  color: var(--muted);
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.step-card {
  position: relative;
  min-height: 190px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.035));
}

.step-card:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 50%;
  right: -15px;
  width: 28px;
  height: 1px;
  background: linear-gradient(90deg, var(--gold), transparent);
}

.step-number {
  color: var(--gold);
  font-weight: 780;
}

.step-card h3 {
  margin: 32px 0 0;
  font-size: 1.4rem;
}

.platform-grid {
  grid-template-columns: repeat(5, 1fr);
}

.platform-card {
  min-height: 174px;
  padding: 22px;
}

.platform-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 20px;
}

.review-grid {
  grid-template-columns: repeat(3, 1fr);
}

.review-card {
  position: relative;
  min-height: 210px;
  padding: 24px;
  overflow: hidden;
}

.quote-mark {
  color: var(--gold);
  font-size: 2.8rem;
  line-height: 1;
}

.support-band {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  gap: 18px;
  align-items: stretch;
}

.support-visual {
  min-height: 280px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(110deg, rgba(247, 215, 116, 0.2), transparent 36%),
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0 1px, transparent 1px 18px),
    linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.025));
  position: relative;
  overflow: hidden;
}

.support-visual::before,
.support-visual::after {
  content: "";
  position: absolute;
  border: 1px solid rgba(247, 215, 116, 0.28);
  border-radius: 999px;
  transform: rotate(-18deg);
}

.support-visual::before {
  width: 260px;
  height: 260px;
  right: 16%;
  top: 26px;
}

.support-visual::after {
  width: 380px;
  height: 380px;
  right: -42px;
  top: -26px;
}

.support-card {
  min-height: 280px;
  padding: 34px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(247, 215, 116, 0.14), rgba(255, 255, 255, 0.045));
}

.support-card p {
  margin: 16px 0 28px;
  color: var(--text-soft);
}

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

.faq-item {
  overflow: hidden;
}

.faq-question {
  width: 100%;
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border: 0;
  background: transparent;
  color: var(--text);
  padding: 0 22px;
  text-align: left;
  font-weight: 730;
}

.faq-question::after {
  content: "+";
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--gold);
  transition: transform 180ms ease;
}

.faq-item.is-open .faq-question::after {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 220ms ease;
}

.faq-answer p {
  margin: 0;
  padding: 0 22px 22px;
  color: var(--muted);
}

.page-hero {
  padding: 78px 0 44px;
}

.page-hero h1 {
  font-size: clamp(3.1rem, 7vw, 6.4rem);
}

.page-hero p {
  max-width: 720px;
  margin: 22px 0 0;
  color: var(--text-soft);
  font-size: 1.08rem;
}

.auth-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(360px, 1.1fr);
  gap: 18px;
  align-items: stretch;
  padding: 42px 0 84px;
}

.auth-visual {
  min-height: 610px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(5, 5, 5, 0.2), rgba(5, 5, 5, 0.76)),
    url("../images/hero-shield.png");
  background-size: cover;
  background-position: center right;
  overflow: hidden;
}

.auth-card {
  padding: 34px;
}

.auth-card h1 {
  margin: 0;
  font-size: clamp(2.1rem, 4vw, 3.2rem);
  line-height: 1.05;
}

.auth-card > p {
  margin: 14px 0 28px;
  color: var(--muted);
}

.auth-benefits {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: -10px 0 24px;
}

.auth-benefits span {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.055);
  color: var(--text-soft);
  padding: 0 12px;
  font-size: 0.9rem;
}

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

.form-row {
  display: grid;
  gap: 8px;
}

.form-row label {
  color: var(--text-soft);
  font-size: 0.92rem;
}

.input-wrap {
  position: relative;
}

.form-row input,
.form-row select {
  width: 100%;
  min-height: 50px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  padding: 0 14px;
  outline: 0;
  transition: border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.form-row input:hover,
.form-row select:hover {
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.075);
}

.form-row input:focus,
.form-row select:focus {
  border-color: rgba(247, 215, 116, 0.72);
  box-shadow: 0 0 0 4px rgba(247, 215, 116, 0.12);
  background: rgba(255, 255, 255, 0.08);
}

.password-toggle {
  position: absolute;
  top: 50%;
  right: 8px;
  transform: translateY(-50%);
  min-width: 82px;
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.36);
  color: var(--text-soft);
  font-size: 0.85rem;
}

.checkbox-row {
  display: flex;
  gap: 10px;
  color: var(--muted);
  font-size: 0.92rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  padding: 12px;
}

.checkbox-row input {
  width: 18px;
  height: 18px;
  accent-color: var(--gold);
  margin-top: 3px;
}

.form-message {
  min-height: 44px;
  display: none;
  align-items: center;
  border: 1px solid rgba(247, 215, 116, 0.28);
  border-radius: 8px;
  background: rgba(247, 215, 116, 0.1);
  color: var(--gold-2);
  padding: 10px 12px;
}

.form-message.is-visible {
  display: flex;
}

.toast-region {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 120;
  width: min(100% - 36px, 420px);
  display: grid;
  gap: 10px;
  pointer-events: none;
}

.toast {
  min-height: 58px;
  display: grid;
  grid-template-columns: 12px 1fr 32px;
  gap: 12px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(14, 14, 14, 0.88);
  color: var(--text);
  box-shadow: var(--shadow);
  padding: 12px;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 180ms ease, transform 180ms ease;
  pointer-events: auto;
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
}

.toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.toast.is-leaving {
  opacity: 0;
  transform: translateY(8px);
}

.toast-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--gold);
  box-shadow: 0 0 18px rgba(247, 215, 116, 0.55);
}

.toast-success .toast-dot {
  background: var(--green);
}

.toast-warning .toast-dot {
  background: var(--gold);
}

.toast-error .toast-dot {
  background: var(--danger);
}

.toast-text {
  color: var(--text-soft);
  font-size: 0.94rem;
}

.toast-close {
  width: 32px;
  height: 32px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
}

.app-modal {
  position: fixed;
  inset: 0;
  z-index: 110;
  display: grid;
  place-items: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease;
}

.app-modal.is-open {
  opacity: 1;
  pointer-events: auto;
}

.app-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.62);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.app-modal-dialog {
  position: relative;
  width: min(100%, 460px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(18, 18, 18, 0.94);
  box-shadow: var(--shadow);
  padding: 28px;
  transform: translateY(12px) scale(0.98);
  transition: transform 180ms ease;
}

.app-modal.is-open .app-modal-dialog {
  transform: translateY(0) scale(1);
}

.modal-icon {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  border: 1px solid rgba(255, 118, 118, 0.28);
  background: linear-gradient(135deg, rgba(255, 118, 118, 0.22), rgba(247, 215, 116, 0.08));
  margin-bottom: 18px;
}

.app-modal-dialog h2 {
  margin: 0;
  font-size: 1.55rem;
}

.app-modal-dialog p {
  margin: 12px 0 0;
  color: var(--muted);
}

.modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 24px;
}

.auth-switch {
  margin-top: 18px;
  color: var(--muted);
}

.auth-switch a,
.text-link {
  color: var(--gold);
  font-weight: 720;
}

.dashboard-layout {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 18px;
  padding: 42px 0 86px;
}

.dashboard-sidebar {
  align-self: start;
  position: sticky;
  top: calc(var(--header-height) + 18px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(247, 215, 116, 0.08), transparent 30%),
    rgba(18, 18, 18, 0.78);
  padding: 12px;
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
}

.sidebar-profile {
  display: grid;
  grid-template-columns: 46px 1fr;
  gap: 12px;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding: 8px 8px 16px;
  margin-bottom: 10px;
}

.sidebar-avatar,
.profile-avatar {
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: rgba(247, 215, 116, 0.1);
  box-shadow: inset 0 0 0 1px rgba(247, 215, 116, 0.2);
}

.sidebar-avatar {
  width: 46px;
  height: 46px;
}

.sidebar-avatar img {
  width: 30px;
  height: 30px;
}

.sidebar-profile span,
.soft-label {
  display: block;
  color: var(--muted);
  font-size: 0.86rem;
}

.sidebar-profile strong {
  display: block;
  color: var(--text);
  font-size: 0.98rem;
}

.sidebar-tabs {
  display: grid;
  gap: 4px;
}

.dashboard-tab {
  width: 100%;
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--text-soft);
  padding: 0 14px;
  text-align: left;
  transition: background 180ms ease, color 180ms ease;
}

.dashboard-tab:hover,
.dashboard-tab.is-active {
  background: rgba(247, 215, 116, 0.13);
  color: var(--text);
}

.dashboard-tab::after {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: transparent;
  transition: background 180ms ease, box-shadow 180ms ease;
}

.dashboard-tab.is-active::after {
  background: var(--gold);
  box-shadow: 0 0 14px rgba(247, 215, 116, 0.7);
}

.sidebar-status {
  display: grid;
  grid-template-columns: 12px 1fr;
  gap: 12px;
  align-items: start;
  border: 1px solid rgba(82, 226, 139, 0.18);
  border-radius: 8px;
  background: rgba(82, 226, 139, 0.07);
  margin-top: 14px;
  padding: 14px;
}

.sidebar-status strong,
.sidebar-status span {
  display: block;
}

.sidebar-status strong {
  color: var(--text);
}

.sidebar-status span:last-child {
  color: var(--muted);
  font-size: 0.9rem;
  margin-top: 2px;
}

.dashboard-content {
  min-width: 0;
}

.dashboard-command {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(247, 215, 116, 0.13), transparent 38%),
    rgba(18, 18, 18, 0.76);
  box-shadow: var(--shadow);
  padding: 24px;
  margin-bottom: 16px;
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
}

.dashboard-command h2 {
  margin: 0;
  font-size: clamp(1.65rem, 3vw, 2.3rem);
  line-height: 1.05;
}

.dashboard-command p:not(.section-kicker) {
  margin: 10px 0 0;
  color: var(--muted);
}

.dashboard-actions,
.panel-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

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

.notice {
  min-height: 78px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.055);
  padding: 16px;
}

.notice strong,
.notice span {
  display: block;
}

.notice strong {
  color: var(--text);
}

.notice span {
  color: var(--muted);
  margin-top: 4px;
}

.notice-warning {
  border-color: rgba(247, 215, 116, 0.25);
}

.notice-success {
  border-color: rgba(82, 226, 139, 0.22);
}

.dashboard-top {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 16px;
}

.mini-panel,
.dashboard-panel {
  position: relative;
  overflow: hidden;
  padding: 24px;
}

.mini-panel {
  min-height: 172px;
}

.metric-panel {
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.metric-panel:hover {
  transform: translateY(-2px);
  border-color: rgba(247, 215, 116, 0.26);
  background: rgba(24, 24, 24, 0.82);
}

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

.status-row {
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--muted);
}

.status-row:last-child {
  border-bottom: 0;
}

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

.dashboard-section {
  display: none;
}

.dashboard-section.is-active {
  display: block;
}

.dashboard-panel {
  min-height: 380px;
}

.panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.panel-head h2 {
  margin: 0;
  font-size: clamp(1.55rem, 3vw, 2.1rem);
}

.panel-head p {
  margin-top: 10px;
}

.dashboard-panel + .dashboard-panel {
  margin-top: 16px;
}

.panel-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-top: 22px;
}

.info-tile {
  min-height: 96px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding: 18px 0;
}

.info-tile span {
  color: var(--muted);
  font-size: 0.9rem;
}

.info-tile strong {
  display: block;
  margin-top: 8px;
  color: var(--text);
  font-size: 1.12rem;
}

.profile-card,
.subscription-shell,
.device-empty,
.timeline-empty {
  display: grid;
  gap: 18px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.045);
  margin-top: 22px;
  padding: 22px;
}

.profile-card {
  grid-template-columns: 78px 1fr;
  align-items: center;
}

.profile-avatar {
  width: 78px;
  height: 78px;
}

.profile-avatar::before {
  content: "";
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--gold), var(--gold-2));
  box-shadow: 0 0 24px rgba(247, 215, 116, 0.26);
}

.profile-summary span,
.profile-summary strong {
  display: block;
}

.profile-summary span {
  color: var(--muted);
}

.profile-summary strong {
  color: var(--text);
  font-size: 1.35rem;
  line-height: 1.2;
  margin-top: 2px;
}

.subscription-shell {
  grid-template-columns: 1fr minmax(180px, 0.36fr);
  align-items: center;
}

.subscription-shell strong {
  display: block;
  color: var(--text);
  font-size: 1.45rem;
  margin-top: 4px;
}

.skeleton-stack {
  display: grid;
  gap: 12px;
}

.skeleton-stack span {
  height: 14px;
}

.skeleton-stack span:nth-child(2) {
  width: 82%;
}

.skeleton-stack span:nth-child(3) {
  width: 58%;
}

.skeleton-stack.compact span {
  height: 12px;
}

.device-empty {
  grid-template-columns: 86px 1fr;
  align-items: center;
}

.device-visual {
  width: 86px;
  height: 86px;
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(247, 215, 116, 0.22), rgba(255, 255, 255, 0.05)),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.08) 0 1px, transparent 1px 10px);
  box-shadow: inset 0 0 0 1px rgba(247, 215, 116, 0.2);
}

.device-empty strong,
.timeline-empty strong {
  display: block;
  color: var(--text);
  font-size: 1.2rem;
}

.premium-empty {
  display: grid;
  gap: 8px;
}

.premium-empty strong,
.premium-empty span {
  display: block;
}

.premium-empty strong {
  color: var(--text);
}

.premium-empty span {
  color: var(--muted);
}

.settings-list {
  display: grid;
  gap: 12px;
  margin-top: 22px;
}

.setting-row {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text);
  padding: 16px 0;
}

.setting-row strong,
.setting-row em {
  display: block;
}

.setting-row em {
  color: var(--muted);
  font-style: normal;
  margin-top: 4px;
}

.setting-row input {
  width: 48px;
  height: 26px;
  appearance: none;
  flex: 0 0 auto;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.08);
  position: relative;
  transition: background 180ms ease, border-color 180ms ease;
}

.setting-row input::before {
  content: "";
  position: absolute;
  width: 18px;
  height: 18px;
  left: 3px;
  top: 3px;
  border-radius: 999px;
  background: var(--text-soft);
  transition: transform 180ms ease, background 180ms ease;
}

.setting-row input:checked {
  border-color: rgba(247, 215, 116, 0.42);
  background: rgba(247, 215, 116, 0.22);
}

.setting-row input:checked::before {
  transform: translateX(22px);
  background: var(--gold);
}

.timeline-empty {
  grid-template-columns: 18px 1fr;
  align-items: start;
}

.timeline-empty > span {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: var(--gold);
  box-shadow: 0 0 18px rgba(247, 215, 116, 0.5);
  margin-top: 6px;
}

.empty-state {
  min-height: 180px;
  display: grid;
  place-items: center;
  border: 1px dashed rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  margin-top: 22px;
  padding: 24px;
  color: var(--muted);
  text-align: center;
}

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

.legal-card {
  padding: 28px;
}

.legal-card ul {
  margin: 16px 0 0;
  padding-left: 20px;
  color: var(--muted);
}

.legal-card li + li {
  margin-top: 8px;
}

.error-wrap {
  min-height: calc(100vh - var(--header-height));
  display: grid;
  place-items: center;
  padding: 70px 0;
}

.error-panel {
  width: min(100%, 760px);
  padding: 42px;
  text-align: center;
}

.error-code {
  color: var(--gold);
  font-size: clamp(4.5rem, 18vw, 10rem);
  font-weight: 820;
  line-height: 0.95;
}

.site-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: #050505;
  padding: 54px 0 28px;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(150px, 1fr));
  gap: 28px;
}

.footer-brand p,
.footer-column a,
.footer-bottom {
  color: var(--muted);
}

.footer-brand p {
  max-width: 420px;
  margin: 18px 0 0;
}

.footer-column h3 {
  margin: 0 0 14px;
  font-size: 0.95rem;
  color: var(--text);
}

.footer-column a {
  display: block;
  padding: 5px 0;
}

.footer-column a:hover {
  color: var(--gold);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  margin-top: 42px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.92rem;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (prefers-reduced-motion: no-preference) {
  .feature-card,
  .platform-card,
  .review-card,
  .dashboard-panel,
  .button {
    animation: settleIn 420ms ease both;
  }

  @keyframes settleIn {
    from {
      opacity: 0;
      transform: translateY(12px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes shimmer {
  0% {
    background-position: 140% 0;
  }
  100% {
    background-position: -80% 0;
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@media (max-width: 1040px) {
  .feature-grid,
  .platform-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .review-grid,
  .steps,
  .support-band,
  .auth-layout,
  .dashboard-layout,
  .dashboard-top,
  .notice-stack,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .step-card:not(:last-child)::after {
    top: auto;
    right: auto;
    bottom: -15px;
    left: 26px;
    width: 1px;
    height: 28px;
    background: linear-gradient(180deg, var(--gold), transparent);
  }

  .auth-visual {
    min-height: 340px;
    order: -1;
  }

  .dashboard-sidebar {
    position: static;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
  }

  .sidebar-profile,
  .sidebar-status {
    grid-column: 1 / -1;
  }

  .sidebar-tabs {
    grid-column: 1 / -1;
    grid-template-columns: repeat(3, 1fr);
  }

  .dashboard-command,
  .panel-head,
  .subscription-shell {
    display: grid;
  }

  .dashboard-actions,
  .panel-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 820px) {
  .container {
    width: min(100% - 28px, var(--container));
  }

  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: fixed;
    inset: var(--header-height) 14px auto;
    display: grid;
    gap: 6px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(12, 12, 12, 0.96);
    padding: 12px;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px);
    transition: opacity 180ms ease, transform 180ms ease;
  }

  .nav-open .site-nav {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .site-nav a {
    min-height: 48px;
    justify-content: center;
  }

  .hero {
    min-height: 720px;
    background-position: 62% center;
  }

  .hero h1 {
    font-size: clamp(3.4rem, 18vw, 6.1rem);
  }

  .hero-line {
    font-size: clamp(2.1rem, 10vw, 3.4rem);
  }

  .section {
    padding: 64px 0;
  }

  .platform-grid,
  .feature-grid,
  .panel-grid,
  .sidebar-tabs,
  .dashboard-sidebar {
    grid-template-columns: 1fr;
  }

  .profile-card,
  .device-empty,
  .timeline-empty {
    grid-template-columns: 1fr;
  }

  .profile-avatar,
  .device-visual {
    width: 64px;
    height: 64px;
  }

  .auth-card,
  .legal-card,
  .dashboard-panel,
  .mini-panel,
  .support-card,
  .error-panel {
    padding: 22px;
  }
}

@media (max-width: 520px) {
  .brand span {
    font-size: 0.98rem;
  }

  .header-inner {
    gap: 12px;
  }

  .header-actions {
    gap: 8px;
  }

  .header-actions .button {
    min-height: 40px;
    padding: 0 13px;
  }

  .hero-actions,
  .status-strip {
    display: grid;
  }

  .hero-actions .button,
  .form-grid .button,
  .dashboard-actions .button,
  .panel-actions .button,
  .modal-actions .button,
  .status-pill {
    width: 100%;
  }

  .toast-region {
    right: 12px;
    bottom: 12px;
    width: calc(100% - 24px);
  }

  .hero {
    min-height: 680px;
  }

  .hero-copy,
  .section-copy,
  .page-hero p {
    font-size: 1rem;
  }

  .footer-bottom {
    display: grid;
  }
}
