:root {
  --color-bg: #0b1220;
  --color-surface: #121b2e;
  --color-border: #223049;
  --color-text: #e6ebf5;
  --color-text-muted: #9aa8c2;
  --color-primary: #4f8cff;
  --color-primary-hover: #6fa1ff;
  --color-accent: #22d3aa;
  --radius: 10px;
  --max-width: 1120px;
}

* { box-sizing: border-box; }

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

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

a { color: var(--color-primary); text-decoration: none; }
a:hover { color: var(--color-primary-hover); }

.site-header {
  border-bottom: 1px solid var(--color-border);
  padding: 16px 0;
}

.site-header .nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-header nav a {
  margin-left: 24px;
  color: var(--color-text-muted);
  font-weight: 500;
}

.site-header nav a:hover { color: var(--color-text); }

.lang-switch {
  white-space: nowrap;
  margin-left: 16px;
  padding-left: 8px;
  border-left: 1px solid var(--color-border);
}

.site-header .lang-switch a { margin-left: 8px; font-size: 0.9rem; }

.logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--color-text);
}

.logo img { width: 32px; height: 32px; }

.logo span span { color: var(--color-primary); }

.btn {
  display: inline-block;
  background: var(--color-primary);
  color: #fff !important;
  padding: 10px 20px;
  border-radius: var(--radius);
  font-weight: 600;
}

.btn:hover { background: var(--color-primary-hover); }

.btn-outline {
  background: transparent;
  border: 1px solid var(--color-border);
  color: var(--color-text) !important;
}

.btn-accent {
  background: var(--color-accent);
  color: #06251d !important;
}

.hero {
  padding-top: 96px;
  padding-bottom: 64px;
  text-align: center;
}

.hero h1 {
  font-size: 2.75rem;
  margin: 0 0 16px;
}

.hero p {
  color: var(--color-text-muted);
  font-size: 1.15rem;
  max-width: 640px;
  margin: 0 auto 32px;
}

.hero .actions { display: flex; gap: 16px; justify-content: center; }

.section {
  padding-top: 64px;
  padding-bottom: 64px;
  border-top: 1px solid var(--color-border);
}

.section h2 {
  text-align: center;
  margin-bottom: 40px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}

.card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 24px;
}

.currency-switch {
  text-align: center;
  color: var(--color-text-muted);
  margin-bottom: 32px;
}

.currency-switch a {
  margin: 0 6px;
  padding: 4px 10px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  color: var(--color-text-muted);
}

.currency-switch a[aria-current] {
  border-color: var(--color-primary);
  color: var(--color-text);
}

.plan .tax-note {
  color: var(--color-text-muted);
  font-size: 0.85rem;
  margin: -12px 0 16px;
}

.plan .saving {
  color: var(--color-accent);
  font-weight: 600;
  margin: -8px 0 16px;
}

.pricing-grid + h2 {
  margin-top: 64px;
}

.features {
  max-width: 480px;
  margin: 0 auto;
  padding: 0;
  list-style: none;
}

.features li {
  padding: 8px 0;
  border-bottom: 1px solid var(--color-border);
  color: var(--color-text-muted);
}

.packages {
  list-style: none;
  padding: 0;
  margin: 16px 0 0;
}

.packages li {
  padding: 8px 0;
  border-top: 1px solid var(--color-border);
  overflow-wrap: anywhere;
}

.packages li span {
  display: block;
  color: var(--color-text-muted);
  font-size: 0.85rem;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 360px));
  justify-content: center;
  gap: 24px;
  align-items: stretch;
}

.plan {
  display: flex;
  flex-direction: column;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 32px;
  text-align: center;
}

.plan .plan-actions {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.paypal-note {
  max-width: 720px;
  margin: 32px auto 0;
  text-align: center;
  font-size: 0.9rem;
  color: var(--color-text-muted);
}


.plan .price {
  font-size: 2.25rem;
  font-weight: 700;
  margin: 16px 0;
}

.plan .price span {
  font-size: 1rem;
  color: var(--color-text-muted);
  font-weight: 400;
}

.plan ul {
  list-style: none;
  padding: 0;
  margin: 24px 0;
  text-align: left;
}

.plan li {
  padding: 8px 0;
  border-bottom: 1px solid var(--color-border);
  color: var(--color-text-muted);
}

form.auth {
  max-width: 400px;
  margin: 64px auto;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 32px;
}

form.auth label {
  display: block;
  margin-bottom: 6px;
  font-weight: 500;
}

form.auth input {
  width: 100%;
  padding: 10px 12px;
  margin-bottom: 16px;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  color: var(--color-text);
}

.alert {
  padding: 12px 16px;
  border-radius: var(--radius);
  margin-bottom: 16px;
}

.alert-error { background: #3a1620; border: 1px solid #7a2b3d; color: #ffb4c2; }
.alert-success { background: #133a2c; border: 1px solid #22684f; color: #7fe6c4; }

.site-footer {
  border-top: 1px solid var(--color-border);
  padding: 32px 0;
  margin-top: 64px;
  color: var(--color-text-muted);
}

.risk-note {
  font-size: 0.85rem;
  max-width: 820px;
  margin: 0 0 16px;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.site-footer nav a { margin-left: 16px; color: var(--color-text-muted); }

.footer-brand { display: flex; align-items: center; gap: 10px; }

.eyebrow {
  color: var(--color-accent) !important;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.85rem !important;
  font-weight: 600;
  margin-bottom: 12px !important;
}

.hero .hero-note {
  font-size: 0.9rem;
  margin: 16px auto 0;
}

.screenshot {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 48px auto 0;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
}

.lead {
  max-width: 720px;
  margin: -16px auto 40px;
  text-align: center;
  font-size: 1.1rem;
  color: var(--color-text-muted);
}

.lead-left {
  font-size: 1.1rem;
  color: var(--color-text-muted);
}

.card h3 { margin-top: 0; }
.card p { color: var(--color-text-muted); margin-bottom: 0; }

.steps {
  list-style: none;
  counter-reset: step;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
}

.steps li {
  counter-increment: step;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 24px;
}

.steps li::before {
  content: counter(step);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  margin-bottom: 12px;
  border-radius: 50%;
  background: var(--color-primary);
  color: #fff;
  font-weight: 700;
}

.steps h3 { margin: 0 0 8px; }
.steps p { margin: 0; color: var(--color-text-muted); }

.feature-row {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 48px;
  align-items: center;
}

.feature-row.reverse > div { order: 2; }
.section .feature-row h2 { text-align: left; margin: 0 0 16px; }
.feature-row p { color: var(--color-text-muted); }
.feature-row .screenshot { margin: 0; }

.cta-band { text-align: center; }
.cta-band img { display: block; margin: 0 auto 16px; }
.section.cta-band h2 { margin-bottom: 16px; }
.cta-band p { max-width: 560px; margin: 0 auto 24px; color: var(--color-text-muted); }

.setup {
  max-width: 760px;
  margin: 0 auto;
  padding-left: 24px;
  color: var(--color-text-muted);
}

.setup > li { margin-bottom: 20px; }
.setup strong { color: var(--color-text); }

.setup ul,
.permissions {
  margin: 8px 0;
  color: var(--color-text);
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.9rem;
}

.legal {
  max-width: 800px;
  padding-top: 48px;
}

.legal h2 { margin-top: 40px; font-size: 1.25rem; }
.legal p, .legal li { color: var(--color-text-muted); }
.legal strong { color: var(--color-text); }

.legal-table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
  font-size: 0.9rem;
}

.legal-table th,
.legal-table td {
  text-align: left;
  vertical-align: top;
  padding: 10px 12px;
  border: 1px solid var(--color-border);
  color: var(--color-text-muted);
}

.legal-table th { color: var(--color-text); background: var(--color-surface); }

mark {
  background: #3a2f13;
  color: #f0d99a;
  padding: 0 4px;
  border-radius: 4px;
}

form.auth .consent { font-size: 0.85rem; color: var(--color-text-muted); }

.auth.contact { max-width: 600px; }

div.auth.contact {
  margin: 64px auto;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 32px;
}

form.auth textarea {
  width: 100%;
  padding: 10px 12px;
  margin-bottom: 16px;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  color: var(--color-text);
  font: inherit;
  resize: vertical;
}

/* Honeypot: invisible to people, filled in by bots. */
.hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.consent-box {
  max-width: 760px;
  margin: 0 auto;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 24px;
}

.consent-box label {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin: 16px 0 24px;
}

.consent-box input[type="checkbox"] { margin-top: 5px; flex-shrink: 0; }
.consent-box p.muted { margin: 16px 0 0; font-size: 0.9rem; }

.admin { padding-top: 32px; padding-bottom: 32px; }
.site-header nav a[aria-current] { color: var(--color-text); }

.admin-search { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin: 24px 0; }

.admin-search input {
  flex: 1;
  min-width: 200px;
  max-width: 360px;
  padding: 10px 12px;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  color: var(--color-text);
}

.table-scroll { overflow-x: auto; }
.admin .legal-table td { color: var(--color-text); }
.admin .legal-table tr.disabled td { opacity: 0.55; }
.admin .legal-table form { margin: 0; }
.admin .sub-line { margin-bottom: 4px; }
.admin form.inline { display: inline; }

.admin .link-button {
  background: none;
  border: none;
  padding: 0;
  color: var(--color-primary);
  font: inherit;
  cursor: pointer;
}

.admin form.grant {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.admin form.grant select,
.admin form.grant input {
  padding: 6px 8px;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  color: var(--color-text);
}

.admin form.grant input { width: 130px; }

.admin .paypal-report {
  margin-top: 12px;
  padding: 10px 12px;
  border: 1px dashed #a3822f;
  border-radius: var(--radius);
  background: #3a2f13;
}

.badge {
  display: inline-block;
  padding: 1px 8px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
}

.badge-ok { background: #133a2c; color: #7fe6c4; }
.badge-off { background: #3a1620; color: #ffb4c2; }

.message { margin-bottom: 16px; }
.message.handled { opacity: 0.6; }
.message h3 { margin: 8px 0; }
.message form { display: flex; gap: 12px; align-items: center; margin-top: 16px; }

@media (max-width: 800px) {
  .legal-table, .legal-table tbody, .legal-table tr, .legal-table td { display: block; width: 100%; }
  .legal-table thead { display: none; }
  .legal-table tr { margin-bottom: 12px; }
}

.muted { color: var(--color-text-muted); }
.center { text-align: center; }
p.center { margin-top: 24px; }

/* The header stacks earlier than the rest: on one line, with five languages, the French menu needs about 1060px, German 1000, Spanish 990, Hungarian 970, English 900. */
@media (max-width: 1120px) {
  .site-header .nav { flex-direction: column; gap: 12px; }
  .site-header nav { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px 16px; }
  .site-header nav a { margin-left: 0; }
  .lang-switch { margin-left: 0; padding-left: 0; border-left: 0; }
  .site-header .lang-switch a { margin: 0 6px; }
}

@media (max-width: 800px) {
  .hero { padding-top: 48px; padding-bottom: 32px; }
  .hero h1 { font-size: 2rem; }
  .hero .actions { flex-wrap: wrap; }
  .feature-row { grid-template-columns: 1fr; gap: 24px; }
  .feature-row.reverse > div { order: 0; }
}

.placeholder-note {
  background: #3a2f13;
  border: 1px dashed #a3822f;
  color: #f0d99a;
  padding: 12px 16px;
  border-radius: var(--radius);
  font-size: 0.9rem;
  margin-bottom: 24px;
}
