:root {
  --bg: #020617;
  --bg-elevated: #020617;
  --card: #020617;
  --card-soft: #0b1120;
  --border-subtle: #111827;
  --border-strong: #1f2937;
  --accent: #22d3ee;
  --accent-soft: rgba(34, 211, 238, 0.12);
  --accent-strong: #06b6d4;
  --text: #f9fafb;
  --text-muted: #94a3b8;
}

* {
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: radial-gradient(circle at top, #0b1120 0, #020617 55%, #000 100%);
  color: var(--text);
  margin: 0;
  line-height: 1.6;
}

a {
  color: inherit;
}

.container {
  max-width: 1040px;
  margin: 0 auto;
  padding: 32px 20px;
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding-top: 4px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: 600;
  color: #e0f2fe;
}

.logo img {
  width: 36px;
  height: 36px;
  border-radius: 14px;
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.9);
}

nav a {
  margin-left: 16px;
  text-decoration: none;
  color: var(--text-muted);
  font-size: 14px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

nav a:hover {
  color: var(--text);
  border-color: rgba(148, 163, 184, 0.5);
  background: rgba(15, 23, 42, 0.9);
}

.lang-links {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--text-muted);
}

.lang-links a {
  text-decoration: none;
  color: var(--text-muted);
}

.lang-links a:hover,
.lang-links a.active {
  color: var(--text);
}

.hero {
  text-align: left;
  padding: 72px 20px 40px;
}

.hero h1 {
  font-size: 42px;
  line-height: 1.1;
  letter-spacing: -0.04em;
  margin-bottom: 16px;
}

.hero p {
  max-width: 520px;
  color: var(--text-muted);
  font-size: 16px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(280px, 0.7fr);
  gap: 32px;
  align-items: center;
}

.hero-copy {
  max-width: 620px;
}

.hero-note {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  padding: 7px 12px;
  font-size: 13px;
  color: var(--text-muted);
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.72);
}

.hero-note::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(34, 211, 238, 0.12);
}

.hero-panel {
  background: linear-gradient(180deg, rgba(11, 17, 32, 0.98), rgba(2, 6, 23, 0.98));
  border: 1px solid var(--border-subtle);
  border-radius: 18px;
  padding: 22px;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.7);
}

.hero-panel h3 {
  margin-top: 0;
  margin-bottom: 10px;
  font-size: 18px;
}

.hero-panel p,
.hero-panel li {
  font-size: 14px;
  color: var(--text-muted);
}

.hero-panel ul {
  margin: 12px 0 0;
  padding-left: 18px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  color: #02131a;
  padding: 11px 24px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 500;
  font-size: 14px;
  border: none;
  cursor: pointer;
  box-shadow: 0 18px 40px rgba(8, 47, 73, 0.7);
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.button:hover {
  transform: translateY(-1px);
  box-shadow: 0 22px 50px rgba(8, 47, 73, 0.9);
}

.features {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
  margin-top: 40px;
}

.feature {
  background: var(--card-soft);
  padding: 20px 20px 18px;
  border-radius: 14px;
  border: 1px solid var(--border-subtle);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.7);
}

.feature h3 {
  margin-top: 0;
  margin-bottom: 8px;
  font-size: 18px;
}

.feature p {
  margin: 0;
  font-size: 14px;
  color: var(--text-muted);
}

.feature ul {
  margin: 10px 0 0;
  padding-left: 18px;
  color: var(--text-muted);
  font-size: 14px;
}

.feature li + li {
  margin-top: 6px;
}

section h2 {
  font-size: 26px;
  letter-spacing: -0.03em;
  margin-bottom: 8px;
}

section p {
  margin-top: 4px;
  color: var(--text-muted);
}

footer {
  margin-top: 72px;
  text-align: center;
  color: var(--text-muted);
  padding-bottom: 32px;
  font-size: 13px;
}

.screenshots {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 28px;
  justify-content: center;
}

.screenshots img {
  width: 190px;
  border-radius: 22px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.55);
  border: 1px solid #020617;
}

.section-block {
  margin-top: 22px;
}

.section-block p {
  max-width: 760px;
}

.page-card {
  background: var(--card-soft);
  border-radius: 18px;
  padding: 28px 24px 24px;
  border: 1px solid var(--border-subtle);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.7);
}

.page-card h1 {
  margin-top: 0;
  margin-bottom: 8px;
}

.page-card .lead {
  margin-top: 0;
  margin-bottom: 18px;
  color: var(--text-muted);
  font-size: 15px;
}

.field {
  margin-bottom: 16px;
}

.field label {
  display: block;
  font-size: 14px;
  margin-bottom: 6px;
}

input[type="text"],
input[type="email"],
textarea {
  width: 100%;
  border-radius: 10px;
  border: 1px solid var(--border-strong);
  background: var(--bg-elevated);
  color: var(--text);
  padding: 9px 11px;
  font-size: 14px;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

input:focus,
textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px rgba(34, 211, 238, 0.35);
  background: #020617;
}

textarea {
  resize: vertical;
  min-height: 110px;
}

.human-check {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.human-check input {
  max-width: 80px;
}

.small-text {
  font-size: 13px;
  color: var(--text-muted);
}

.policy-meta {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 8px;
}

hr {
  border: none;
  border-top: 1px solid var(--border-subtle);
  margin: 24px 0;
}

@media (max-width: 900px) {
  .features {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Donate page */
.donate-hero {
  text-align: center;
  padding: 48px 20px 32px;
}
.donate-hero-note {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  padding: 7px 14px;
  font-size: 13px;
  color: var(--text-muted);
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.72);
}
.donate-hero h1 {
  font-size: 32px;
  line-height: 1.2;
  letter-spacing: -0.03em;
  margin: 0 0 16px;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}
.donate-hero .lead {
  max-width: 520px;
  margin: 0 auto;
  color: var(--text-muted);
  font-size: 16px;
}
.donate-cta {
  display: grid;
  grid-template-columns: minmax(300px, 1fr) minmax(320px, 1.2fr);
  gap: 24px;
  margin-top: 24px;
}
@media (max-width: 800px) {
  .donate-cta {
    grid-template-columns: minmax(0, 1fr);
  }
}
.donate-card {
  background: linear-gradient(180deg, rgba(11, 17, 32, 0.98), rgba(2, 6, 23, 0.98));
  border: 1px solid var(--border-subtle);
  border-radius: 18px;
  padding: 24px;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.7);
}
.donate-card-primary {
  border-color: rgba(251, 191, 36, 0.3);
  background: linear-gradient(180deg, rgba(45, 35, 15, 0.95), rgba(11, 17, 32, 0.98));
}
.donate-card-icon {
  font-size: 48px;
  margin-bottom: 12px;
}
.donate-card h2 {
  margin: 0 0 10px;
  font-size: 20px;
}
.donate-card p {
  margin: 0 0 16px;
  color: var(--text-muted);
  font-size: 14px;
}
.button-coffee {
  background: linear-gradient(135deg, #fbbf24, #f59e0b) !important;
  color: #1a1505 !important;
  font-weight: 600;
  padding: 14px 28px !important;
  font-size: 15px !important;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.button-coffee:hover {
  box-shadow: 0 20px 50px rgba(245, 158, 11, 0.4) !important;
}
.crypto-grid {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 16px;
}
.crypto-item {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  background: rgba(15, 23, 42, 0.8);
  border-radius: 12px;
  border: 1px solid var(--border-subtle);
}
.crypto-label {
  font-size: 13px;
  color: var(--accent);
  font-weight: 500;
  flex-basis: 120px;
}
.crypto-address {
  flex: 1;
  min-width: 140px;
  font-size: 12px;
  padding: 6px 10px;
  background: var(--bg);
  border-radius: 8px;
  overflow-x: auto;
  display: block;
}
.copy-btn {
  background: var(--accent);
  color: #02131a;
  border: none;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: opacity 0.15s ease;
}
.copy-btn:hover {
  opacity: 0.9;
}
.copy-btn.copied {
  background: #22c55e;
}
.donate-note {
  font-size: 12px !important;
  color: var(--text-muted) !important;
  margin-top: 12px !important;
}
.donate-footer-cta {
  text-align: center;
  padding: 40px 20px;
  margin-top: 24px;
}
.donate-footer-cta p {
  margin: 0 0 16px;
  color: var(--text-muted);
}
.logo a {
  text-decoration: none;
  color: inherit;
  display: flex;
  align-items: center;
  gap: 10px;
}

@media (max-width: 720px) {
  header {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero {
    padding-top: 56px;
  }

  .features {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .screenshots img {
    width: 44%;
    max-width: 200px;
  }
}

/* ── Legal Info page ─────────────────────────────────────── */

.li-search-wrap {
  margin-bottom: 24px;
}

.li-search {
  width: 100%;
  max-width: 400px;
  border-radius: 10px;
  border: 1px solid var(--border-strong);
  background: var(--bg-elevated);
  color: var(--text);
  padding: 9px 14px;
  font-size: 14px;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.li-search:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px rgba(34,211,238,0.35);
}

.li-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 20px;
}

.li-card {
  background: var(--card-soft);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  padding: 18px 18px 14px;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.li-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.li-flag-name {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 600;
}

.li-flag {
  font-size: 22px;
  line-height: 1;
}

.li-verified {
  font-size: 11px;
  color: var(--text-muted);
}

.li-rows {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 10px;
}

.li-row {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 6px;
  font-size: 13px;
  line-height: 1.4;
}

.li-label {
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding-top: 1px;
}

.li-value {
  color: var(--text);
}

.li-value a {
  color: var(--accent);
  text-decoration: none;
  font-size: 12px;
}

.li-value a:hover { text-decoration: underline; }

.li-items-toggle {
  background: none;
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  color: var(--text-muted);
  font-size: 12px;
  padding: 5px 10px;
  cursor: pointer;
  width: 100%;
  text-align: left;
  margin-bottom: 6px;
  transition: border-color 0.15s, color 0.15s;
}

.li-items-toggle:hover {
  border-color: var(--accent);
  color: var(--text);
}

.li-items-list {
  list-style: none;
  padding: 0 0 0 4px;
  margin: 0 0 8px;
  display: none;
}

.li-items-list.open { display: block; }

.li-items-list li {
  font-size: 12px;
  color: var(--text-muted);
  padding: 2px 0;
  display: flex;
  align-items: flex-start;
  gap: 6px;
}

.li-items-list li::before {
  content: '✓';
  color: var(--accent);
  flex-shrink: 0;
  margin-top: 1px;
}

.li-notes {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.5;
  border-top: 1px solid var(--border-subtle);
  padding-top: 8px;
  margin-top: 4px;
}

.li-disclaimer {
  margin-top: 28px;
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.6;
  max-width: 760px;
}

.li-none {
  color: var(--text-muted);
  font-size: 14px;
  padding: 16px 0;
}

@media (max-width: 900px) {
  .li-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
}

@media (max-width: 600px) {
  .li-grid { grid-template-columns: minmax(0,1fr); }
  .li-row { grid-template-columns: 90px 1fr; }
}

/* ── World map (homepage) ────────────────────────────────── */

.map-wrap {
  position: relative;
  margin-top: 24px;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  background: #3a5a75;
  box-shadow:
    0 0 0 2px rgba(180, 200, 220, 0.3),
    0 0 40px rgba(150, 180, 220, 0.25),
    inset 0 0 40px rgba(100, 120, 150, 0.2);
}

#world-map {
  height: 420px;
}

#flag-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.country-map-flag {
  position: absolute;
  transform: translate(-50%, -50%);
  height: 11px;
  width: 16px;
  border-radius: 2px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.7);
  opacity: 0.92;
  background-size: cover;
}

.jvm-tooltip {
  background: #0b1120 !important;
  border: 1px solid #1f2937 !important;
  color: #f9fafb !important;
  border-radius: 8px !important;
  font-family: inherit !important;
  font-size: 13px !important;
  padding: 7px 12px !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5) !important;
  display: flex !important;
  align-items: center !important;
  gap: 6px !important;
  white-space: nowrap !important;
}

.country-more {
  margin-top: 12px;
  font-size: 13px;
  color: var(--text-muted);
}

@media (max-width: 720px) {
  #world-map { height: 260px; }
  .country-map-flag { height: 8px; width: 11px; }
}