:root {
  --background: #0c0d10;
  --card: #17191f;
  --border: #2b2e36;
  --text: #f4f4f5;
  --muted: #a7a9b0;
  --input: #22252d;
  --accent: #7557ff;
  --accent-hover: #6547ee;
  --error: #ffb4b4;
  --success: #b9f6ca;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--background);
  color: var(--text);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.65;
}
a { color: #9f8cff; text-decoration: none; }
a:hover { color: #c3b8ff; }

.site-header {
  border-bottom: 1px solid var(--border);
  background: rgba(12, 13, 16, .96);
}
.nav {
  width: min(1180px, calc(100% - 32px));
  min-height: 68px;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand { color: var(--text); font-size: 18px; font-weight: 800; }
.nav-links { display: flex; flex-wrap: wrap; gap: 18px; }
.nav-links a { color: var(--muted); font-size: 14px; font-weight: 700; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--text); }

.page-shell {
  width: min(1180px, calc(100% - 32px));
  margin: auto;
  padding: 32px 0 48px;
}
.content-grid {
  display: grid;
  grid-template-columns: minmax(140px, 220px) minmax(0, 620px) minmax(140px, 220px);
  justify-content: center;
  gap: 24px;
  align-items: start;
}
.ad-rail { position: sticky; top: 24px; }
.ad-placeholder {
  min-height: 600px;
  padding: 18px;
  border: 1px dashed #3b3f49;
  border-radius: 14px;
  display: grid;
  place-items: center;
  color: #777b86;
  background: rgba(255, 255, 255, .02);
  text-align: center;
  font-size: 13px;
}

.container { width: 100%; max-width: 900px; margin: auto; }
.card {
  padding: 30px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--card);
  box-shadow: 0 14px 38px rgba(0,0,0,.28);
}
h1 { margin: 0 0 10px; font-size: 30px; line-height: 1.15; }
h2 { margin-top: 30px; margin-bottom: 12px; }
p, li { color: var(--muted); }
.subtitle { margin: 0 0 28px; color: var(--muted); }

label { display: block; margin: 18px 0 8px; font-weight: 700; }
select, input {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  outline: none;
  background: var(--input);
  color: var(--text);
  font-size: 16px;
}
select:focus, input:focus { border-color: var(--accent); }

button, .button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 12px 18px;
  border: 0;
  border-radius: 10px;
  background: var(--accent);
  color: white;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
}
form button { width: 100%; margin-top: 24px; }
button:hover, .button:hover { background: var(--accent-hover); color: white; }
button:disabled { cursor: wait; opacity: .65; }

#status { min-height: 24px; margin-top: 18px; text-align: center; color: var(--muted); }
#status.error { color: var(--error); }
.result {
  display: none;
  margin-top: 24px;
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: rgba(255,255,255,.035);
}
.result.visible { display: block; }
.result h2 { margin: 0 0 18px; font-size: 21px; }
.result-row {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}
.result-row:last-of-type { border-bottom: 0; }
.result-label { color: var(--muted); }
.result-value { text-align: right; font-weight: 700; }
.notice {
  margin: 18px 0 0;
  padding: 12px;
  border-radius: 9px;
  background: rgba(117,87,255,.12);
  color: var(--success);
}
.disclaimer { margin: 24px 0 0; color: var(--muted); font-size: 12px; }

#disclaimerOverlay {
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(5,6,9,.94);
}
#disclaimerBox {
  width: 100%;
  max-width: 720px;
  max-height: 88vh;
  overflow-y: auto;
  padding: 32px;
  border: 1px solid #343741;
  border-radius: 18px;
  background: #17191f;
  box-shadow: 0 20px 60px rgba(0,0,0,.55);
}
.disclaimerButtons { display: flex; gap: 12px; margin-top: 26px; }
#disclaimerBox .acceptButton, #disclaimerBox .leaveButton { width: auto; flex: 1; margin: 0; }
#disclaimerBox .leaveButton { border: 1px solid #565a66; background: transparent; }

.support-box {
  margin-top: 24px;
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: 14px;
  text-align: center;
  background: rgba(117,87,255,.08);
}
.support-box p { margin: 0 0 14px; }
.coffee-button { background: #ffdd00; color: #17191f; }
.coffee-button:hover { background: #f0cf00; color: #17191f; }

.site-footer {
  border-top: 1px solid var(--border);
  padding: 28px 16px;
  text-align: center;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  margin-bottom: 10px;
}
.footer-links a { color: var(--muted); font-size: 14px; }
.site-footer p { margin: 0; font-size: 13px; }

.email-card {
  display: inline-block;
  margin: 12px 0 24px;
  padding: 14px 18px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--input);
  color: var(--text);
  font-weight: 700;
}

@media (max-width: 980px) {
  .content-grid { grid-template-columns: minmax(0, 620px); }
  .ad-rail { display: none; }
}
@media (max-width: 650px) {
  .nav { padding: 14px 0; align-items: flex-start; flex-direction: column; gap: 10px; }
  .nav-links { gap: 12px; }
  .page-shell { width: min(100% - 24px, 1180px); padding-top: 20px; }
  .card { padding: 22px 18px; }
  h1 { font-size: 26px; }
  .result-row { display: block; }
  .result-value { margin-top: 5px; text-align: left; }
  .disclaimerButtons { flex-direction: column; }
}