:root {
  --primary: #1ebbd7;
  --primary-light: #3ecde6;
  --primary-dark: #159bb3;
  --bg-dark: #0a0a0f;
  --bg-card: #111118;
  --bg-card-hover: #1a1a24;
  --bg-elevated: #16161f;
  --text-primary: #fff;
  --text-secondary: #a1a1aa;
  --text-muted: #71717a;
  --border: #27272a;
  --border-light: #3f3f46;
  --gradient-primary: linear-gradient(135deg, #1ebbd7 0%, #0d8ba8 100%);
  --gradient-text: linear-gradient(135deg, #3ecde6 0%, #1ebbd7 50%, #14a3c7 100%);
  --gradient-glow: radial-gradient(ellipse at center, rgba(30, 187, 215, 0.15) 0%, transparent 70%);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.4);
  --shadow-glow: 0 0 40px rgba(30, 187, 215, 0.25);
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --transition: all 0.3s ease;
  --transition-fast: all 0.15s ease;
  --ok: #22c55e;
  --warn: #fbbf24;
  --bad: #ef4444;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg-dark);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}

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

.container {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Header — matches novanode.eu */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg-dark);
}

.topbar {
  background: rgba(6, 6, 10, 0.95);
  border-bottom: 1px solid var(--border);
  height: 36px;
}

.topbar-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.topbar-brand {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
}

.topbar-right {
  font-size: 12px;
  color: var(--text-muted);
}

.navbar {
  padding: 16px 0;
  background: rgba(10, 10, 15, 0.95);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.logo { display: flex; align-items: center; }

.logo-img {
  height: 32px;
  width: auto;
  display: block;
}

.nav-links {
  display: flex;
  gap: 28px;
  list-style: none;
}

.nav-links a {
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 500;
}

.nav-links a:hover { color: var(--text-primary); }

.nav-buttons { display: flex; gap: 12px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
  text-decoration: none;
}

.btn-sm { padding: 8px 16px; font-size: 13px; }

.btn-primary {
  background: var(--gradient-primary);
  color: #fff;
  box-shadow: var(--shadow-md);
}

.btn-primary:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: var(--shadow-glow);
  color: #fff;
}

.btn-primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

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

.btn-outline:hover {
  background: var(--bg-card);
  border-color: var(--primary);
  color: var(--text-primary);
}

.btn-ghost {
  background: var(--bg-elevated);
  color: var(--text-secondary);
  border: 1px solid var(--border);
}

.btn-ghost:hover {
  border-color: var(--border-light);
  color: var(--text-primary);
}

.btn-block { width: 100%; }

/* Hero */
.check-page { flex: 1; }

.check-hero {
  position: relative;
  padding: 48px 0 32px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-gradient {
  position: absolute;
  top: -40%;
  left: 50%;
  transform: translateX(-50%);
  width: 120%;
  height: 100%;
  background: var(--gradient-glow);
  opacity: 0.7;
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(30, 187, 215, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(30, 187, 215, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at center, black 0%, transparent 75%);
}

.check-hero-inner { position: relative; }

.section-tag {
  display: inline-block;
  padding: 6px 14px;
  background: rgba(30, 187, 215, 0.1);
  border: 1px solid rgba(30, 187, 215, 0.2);
  border-radius: 100px;
  font-size: 13px;
  font-weight: 600;
  color: var(--primary-light);
  margin-bottom: 16px;
}

.check-hero h1 {
  font-size: clamp(28px, 5vw, 38px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 12px;
}

.check-lead {
  color: var(--text-secondary);
  font-size: 15px;
  max-width: 560px;
  line-height: 1.65;
}

.check-lead em {
  color: var(--text-primary);
  font-style: normal;
  font-weight: 600;
}

.check-body {
  padding-bottom: 64px;
}

.fraud-notice {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  margin-bottom: 24px;
  padding: 22px 24px;
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.35);
  border-left: 4px solid #ef4444;
  border-radius: var(--radius-lg);
}

.fraud-notice-icon {
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  background: rgba(239, 68, 68, 0.15);
  border-radius: var(--radius-md);
  color: #f87171;
  font-size: 1.15rem;
}

.fraud-notice-body h2 {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 8px;
  color: #fecaca;
}

.fraud-notice-body p {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text-secondary);
}

.fraud-notice-body p + p {
  margin-top: 8px;
}

.fraud-notice-body strong {
  color: var(--text-primary);
  font-weight: 700;
}

.check-grid {
  display: grid;
  gap: 20px;
}

.check-panel,
.result-panel {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
}

.field-block {
  border: none;
  margin-bottom: 24px;
}

.field-block legend,
.field-block > label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 10px;
}

.type-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.type-option {
  display: block;
  padding: 16px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: var(--transition-fast);
}

.type-option:hover {
  border-color: var(--border-light);
}

.type-option:has(input:checked) {
  border-color: rgba(30, 187, 215, 0.5);
  background: rgba(30, 187, 215, 0.06);
}

.type-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.type-label {
  display: block;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.type-note {
  display: block;
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.4;
}

.select-wrap { position: relative; }

#country-search {
  width: 100%;
  padding: 14px 16px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-family: inherit;
  font-size: 15px;
  transition: var(--transition-fast);
}

#country-search::placeholder { color: var(--text-muted); }

#country-search:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(30, 187, 215, 0.12);
}

#country { display: none; }

.country-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  max-height: 260px;
  overflow-y: auto;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  z-index: 30;
}

.country-group-label {
  padding: 8px 14px 4px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  background: var(--bg-elevated);
  border-top: 1px solid var(--border);
}

.country-group-label:first-child { border-top: none; }

.country-option {
  padding: 10px 14px;
  font-size: 14px;
  cursor: pointer;
  color: var(--text-primary);
  transition: background 0.1s;
}

.country-option:hover,
.country-option.active {
  background: rgba(30, 187, 215, 0.08);
}

.country-option small {
  color: var(--text-muted);
  font-size: 12px;
  margin-left: 6px;
}

.field-note {
  margin-top: 8px;
  font-size: 13px;
  color: var(--text-muted);
}

.form-error {
  margin-top: 16px;
  padding: 12px 14px;
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.25);
  border-radius: var(--radius-md);
  color: #fca5a5;
  font-size: 14px;
}

/* Result */
.result-panel[data-status="green"] { border-left: 3px solid var(--ok); }
.result-panel[data-status="yellow"] { border-left: 3px solid var(--warn); }
.result-panel[data-status="red"] { border-left: 3px solid var(--bad); }

.result-label {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 8px;
}

.result-panel[data-status="green"] .result-label { color: var(--ok); }
.result-panel[data-status="yellow"] .result-label { color: var(--warn); }
.result-panel[data-status="red"] .result-label { color: var(--bad); }

.result-panel h2 {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 6px;
}

.result-context {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.result-text {
  font-size: 15px;
  color: var(--text-secondary);
  margin-bottom: 16px;
  line-height: 1.6;
}

.result-box {
  padding: 14px 16px;
  border-radius: var(--radius-md);
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 20px;
}

.result-panel[data-status="green"] .result-box {
  background: rgba(34, 197, 94, 0.08);
  border: 1px solid rgba(34, 197, 94, 0.2);
  color: #bbf7d0;
}

.result-panel[data-status="yellow"] .result-box {
  background: rgba(251, 191, 36, 0.08);
  border: 1px solid rgba(251, 191, 36, 0.2);
  color: #fde68a;
}

.result-panel[data-status="red"] .result-box {
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.2);
  color: #fecaca;
}

.result-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.info-strip {
  margin-top: 24px;
  padding: 20px 22px;
  background: rgba(30, 187, 215, 0.05);
  border: 1px solid rgba(30, 187, 215, 0.15);
  border-radius: var(--radius-md);
}

.info-strip p {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.65;
}

.info-strip p + p { margin-top: 10px; }

.info-strip strong { color: var(--text-primary); font-weight: 600; }

/* Footer */
.footer {
  padding: 40px 0;
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  margin-top: auto;
}

.footer-bottom { text-align: center; }

.footer-legal {
  color: var(--text-muted);
  font-size: 12px;
  line-height: 1.7;
}

.copyright {
  margin-top: 12px;
  color: var(--text-secondary);
  font-size: 13px;
}

@media (max-width: 640px) {
  .type-row { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .check-panel, .result-panel { padding: 20px; }
  .container { padding: 0 16px; }
  .fraud-notice { flex-direction: column; gap: 12px; padding: 18px; }
}

::selection {
  background: rgba(30, 187, 215, 0.3);
  color: #fff;
}
