/* ============================================================
   BASE RESET & VARIABLES
============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:        #0d1117;
  --bg-card:   #161b22;
  --bg-alt:    #111827;
  --accent:    #00c9a7;
  --accent2:   #ff3366;
  --text:      #e6edf3;
  --muted:     #8b949e;
  --border:    #30363d;
  --radius:    12px;
  --shadow:    0 4px 24px rgba(0,0,0,.45);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a   { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ============================================================
   TYPOGRAPHY
============================================================ */
h1 { font-size: clamp(2rem, 5vw, 3.6rem); font-weight: 900; line-height: 1.1; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); font-weight: 800; margin-bottom: 24px;
     padding-bottom: 0; border-bottom: none; }
/* space before a new topic h2 that follows content */
.content-block .section-divider + h2 { margin-top: 56px; }
@media (max-width: 700px) {
  .content-block .section-divider + h2 { margin-top: 40px; }
}
h3 { font-size: 1.2rem; font-weight: 700; margin-bottom: 12px; }
h4 { font-size: 1.05rem; font-weight: 700; margin: 28px 0 10px; color: var(--accent); }
h5 { font-size: .95rem; font-weight: 700; margin: 24px 0 8px; text-transform: uppercase;
     letter-spacing: .06em; color: var(--muted); }
p  { margin-bottom: 16px; color: var(--text); }
blockquote {
  border-left: 4px solid var(--accent); padding: 16px 20px;
  background: rgba(0,201,167,.08); border-radius: 0 var(--radius) var(--radius) 0;
  font-style: italic; color: #ffffff; margin: 24px 0;
}

/* ============================================================
   LAYOUT
============================================================ */
.container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }

/* hero container gets a bit more breathing room on mobile */
.hero .container { padding: 0 20px; }
.section   { padding: 90px 0; }
.section-alt { background: inherit; }

/* single continuous content flow — centred narrow column */
.content-flow { background: var(--bg); padding: 56px 0 80px; }
.content-flow .container { display: flex; justify-content: center; }

/* topic divider — invisible anchor, no visual decoration */
.section-divider {
  display: block;
  width: 0; height: 0;
  margin: 0;
  padding: 0;
  border: none;
  scroll-margin-top: 90px;
}
.content-block[id] { scroll-margin-top: 90px; }

/* THE CONTENT COLUMN — centred, comfortable reading width */
.content-block {
  width: 100%;
  max-width: 740px;
}

/* ============================================================
   BUTTONS
============================================================ */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 26px; border-radius: 8px;
  font-size: .95rem; font-weight: 700; cursor: pointer;
  border: 2px solid transparent; transition: all .22s ease;
  text-decoration: none;
}
.btn-primary {
  background: var(--accent); color: #0d1117;
  border-color: var(--accent);
}
.btn-primary:hover { background: #00e4bc; border-color: #00e4bc; transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,201,167,.4); text-decoration: none; }
.btn-outline {
  background: transparent; color: var(--accent);
  border-color: var(--accent);
}
.btn-outline:hover { background: rgba(0,201,167,.1); transform: translateY(-2px); text-decoration: none; }
.btn-accent {
  background: var(--accent2); color: #fff;
  border-color: var(--accent2);
}
.btn-accent:hover { background: #ff5580; border-color: #ff5580; transform: translateY(-2px); box-shadow: 0 6px 20px rgba(255,51,102,.4); text-decoration: none; }

/* ============================================================
   HEADER
============================================================ */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 900;
  background: rgba(13,17,23,.75);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: background .3s, box-shadow .3s;
}
.site-header.scrolled { background: rgba(13,17,23,.97); box-shadow: 0 2px 20px rgba(0,0,0,.6); }
.header-inner { display: flex; align-items: center; gap: 24px; height: 68px; padding: 0 28px; max-width: 1200px; margin: 0 auto; }
.header-logo { display: flex; align-items: center; text-decoration: none; }
.header-logo-img { height: 36px; width: auto; display: block; filter: brightness(1); transition: filter .2s; }
.header-logo:hover .header-logo-img { filter: brightness(1.12); }
/* legacy text fallback */
.logo-text    { font-size: 1.4rem; font-weight: 900; letter-spacing: -.02em; color: var(--text); white-space: nowrap; }
.logo-accent  { color: var(--accent); }

.header-nav { display: flex; gap: 6px; margin-left: auto; }
.header-nav a { color: #cbe4ff; font-size: .88rem; font-weight: 600; padding: 6px 10px; border-radius: 6px; transition: color .2s, background .2s; }
.header-nav a:hover { color: var(--text); background: rgba(255,255,255,.06); text-decoration: none; }

.header-actions { display: flex; gap: 10px; margin-left: 16px; }
.header-actions .btn { padding: 9px 18px; font-size: .5rem; }

.mobile-toggle { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 8px; margin-left: auto; }
.mobile-toggle span { display: block; width: 24px; height: 2px; background: var(--text); border-radius: 2px; transition: all .3s; }
.mobile-toggle.open span:nth-child(1) { transform: rotate(45deg) translate(5px,5px); }
.mobile-toggle.open span:nth-child(2) { opacity: 0; }
.mobile-toggle.open span:nth-child(3) { transform: rotate(-45deg) translate(5px,-5px); }

/* ============================================================
   HERO
============================================================ */
.hero {
  min-height: auto;
  display: flex; align-items: center;
  padding: 120px 0 80px;
  background: var(--bg);
  position: relative; overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 80% 70% at 60% 40%, rgba(0,201,167,.13) 0%, transparent 60%),
              radial-gradient(ellipse 60% 50% at 20% 80%, rgba(255,51,102,.08) 0%, transparent 60%);
  animation: meshShift 8s ease-in-out infinite alternate;
}
@keyframes meshShift {
  0%   { opacity:.7; transform: scale(1); }
  100% { opacity:1;  transform: scale(1.06) rotate(2deg); }
}

/* dots grid */
.hero-dots {
  position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(circle, rgba(0,201,167,.18) 1px, transparent 1px);
  background-size: 36px 36px;
  animation: dotsFloat 20s linear infinite;
}
@keyframes dotsFloat { from { transform: translateY(0); } to { transform: translateY(-36px); } }

.hero-content { position: relative; z-index: 2; padding: 0; }
.hero-content h1 { color: var(--text); margin-bottom: 20px; }
.highlight { color: var(--accent); }
.subtitle { font-size: 1.15rem; color: #ffffff; max-width: 640px; margin-bottom: 36px; }
.hero-buttons { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 48px; }

.stats-row { display: flex; gap: 40px; flex-wrap: wrap; }
.stat-item { text-align: center; }
.stat-number { font-size: 2rem; font-weight: 900; color: var(--accent); line-height: 1; }
.stat-label  { font-size: .78rem; color: var(--muted); margin-top: 4px; text-transform: uppercase; letter-spacing: .06em; }

/* ============================================================
   CARDS — replaced with inline topic blocks
============================================================ */
/* card-grid kept for 2-col app section only */
.card-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin: 24px 0; }
.card {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 24px 22px;
}
.card-icon { font-size: 1.6rem; margin-bottom: 10px; }

/* inline topic blocks — replace old card-grid for modes/resources */
.topic-block { margin: 32px 0; padding: 0 0 32px; border-bottom: 1px solid rgba(48,54,61,.4); }
.topic-block:last-child { border-bottom: none; padding-bottom: 0; }
.topic-block h3 { font-size: 1.1rem; font-weight: 700; color: var(--text); margin-bottom: 8px; display: flex; align-items: center; gap: 10px; }
.topic-block h3 .t-icon { font-size: 1.3rem; }
.topic-block p { color: var(--muted); margin-bottom: 0; }

/* ============================================================
   TABLES
============================================================ */
.table-wrapper { overflow-x: auto; margin: 24px 0; border-radius: var(--radius); border: 1px solid var(--border); }
table { width: 100%; border-collapse: collapse; }
thead { background: rgba(0,201,167,.12); }
th { padding: 14px 16px; text-align: left; font-size: .82rem; text-transform: uppercase; letter-spacing: .06em; color: var(--accent); font-weight: 700; }
td { padding: 13px 16px; border-top: 1px solid var(--border); font-size: .9rem; }
tr:hover td { background: rgba(255,255,255,.03); }

/* ============================================================
   LISTS & CALLOUTS
============================================================ */
/* steps as clean numbered inline list */
.steps-list { list-style: none; counter-reset: steps; margin: 28px 0; }
.steps-list li {
  counter-increment: steps; position: relative;
  padding: 0 0 28px 52px;
  margin-bottom: 0;
}
.steps-list li:not(:last-child)::after {
  content: '';
  position: absolute; left: 17px; top: 36px; bottom: 0;
  width: 2px; background: var(--border);
}
.steps-list li::before {
  content: counter(steps); position: absolute; left: 0; top: 2px;
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--accent); color: #0d1117;
  font-weight: 900; font-size: .9rem;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}

.feature-list { list-style: none; margin: 16px 0; }
.feature-list li { padding: 8px 0 8px 24px; position: relative; border-bottom: 1px solid rgba(48,54,61,.5); }
.feature-list li::before { content: '→'; position: absolute; left: 0; color: var(--accent); font-weight: 700; }

.nav-list { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; margin: 12px 0; }
.nav-list li { background: var(--bg-card); border: 1px solid var(--border); border-radius: 6px; padding: 7px 14px; font-size: .88rem; }

.callout { padding: 20px 24px; border-radius: var(--radius); margin: 24px 0; }
.callout-title { font-weight: 700; margin-bottom: 8px; font-size: .95rem; }
.callout-success { background: rgba(0,201,167,.1); border: 1px solid rgba(0,201,167,.3); }
.callout-success .callout-title { color: var(--accent); }
.callout-warning { background: rgba(255,166,0,.08); border: 1px solid rgba(255,166,0,.3); }
.callout-warning .callout-title { color: #ffa600; }
.callout-info { background: rgba(88,166,255,.08); border: 1px solid rgba(88,166,255,.3); }
.callout-info .callout-title { color: #58a6ff; }

/* ============================================================
   SECTION IMAGES
============================================================ */
.section-img { width: 100%; border-radius: var(--radius); margin: 28px 0; box-shadow: var(--shadow); border: 1px solid var(--border); }

/* ============================================================
   RESPONSIBLE GAMBLING
============================================================ */
.responsible-gambling {
  background: rgba(255,51,102,.08); border: 1px solid rgba(255,51,102,.3);
  border-radius: var(--radius); padding: 32px; margin: 24px 0;
}
.responsible-gambling h3 { color: var(--accent2); font-size: 1.3rem; letter-spacing: .04em; text-transform: uppercase; }
.helpline { font-size: 1.1rem; font-weight: 700; color: var(--accent2); margin: 16px 0; }
.badge-18 { display: inline-block; background: var(--accent2); color: #fff; padding: 6px 16px; border-radius: 6px; font-weight: 900; font-size: .85rem; margin-top: 12px; }

/* ============================================================
   PROS & CONS — unified single block
============================================================ */
.pros-cons { margin: 28px 0; }
.pros-cons-block { border-radius: var(--radius); border: 1px solid var(--border); overflow: hidden; }
.pros-cons-section { padding: 28px 32px; }
.pros-cons-section + .pros-cons-section { border-top: 1px solid var(--border); }
.pros-cons-section h3 { font-size: 1rem; font-weight: 700; margin-bottom: 16px; display: flex; align-items: center; gap: 10px; }
.pros-cons-section.pros-sec h3 { color: var(--accent); }
.pros-cons-section.cons-sec h3 { color: var(--accent2); }
.pros-cons-section ul { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 6px 24px; }
.pros-cons-section ul li { padding: 5px 0 5px 20px; position: relative; font-size: .88rem; color: var(--muted); line-height: 1.45; }
.pros-cons-section.pros-sec ul li::before { content: '✓'; position: absolute; left: 0; color: var(--accent); font-weight: 700; }
.pros-cons-section.cons-sec ul li::before { content: '✗'; position: absolute; left: 0; color: var(--accent2); font-weight: 700; }
@media (max-width: 600px) {
  .pros-cons-section ul { grid-template-columns: 1fr; }
  .pros-cons-section { padding: 20px 18px; }
}

/* ============================================================
   FOOTER
============================================================ */
.site-footer { background: #0a0e14; border-top: 1px solid var(--border); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; padding: 56px 0 36px; }
.footer-brand p { color: var(--muted); font-size: .9rem; margin-top: 14px; line-height: 1.6; }
.footer-social { display: flex; gap: 12px; margin-top: 16px; }
.footer-social a { width: 36px; height: 36px; border-radius: 8px; background: var(--bg-card); border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; color: var(--muted); font-weight: 700; transition: all .2s; }
.footer-social a:hover { border-color: var(--accent); color: var(--accent); text-decoration: none; }
.footer-col h4 { color: var(--text); font-size: .9rem; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 16px; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a { color: var(--muted); font-size: .88rem; transition: color .2s; }
.footer-col ul li a:hover { color: var(--accent); text-decoration: none; }
.footer-bottom { border-top: 1px solid var(--border); padding: 20px 0; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; }
.footer-bottom p { font-size: .8rem; color: var(--muted); margin: 0; }
.footer-legal { display: flex; gap: 16px; }
.footer-legal a { font-size: .8rem; color: var(--muted); }
.footer-legal a:hover { color: var(--accent); }
.footer-gambling-warning {
  background: rgba(255,51,102,.08);
  border-top: 1px solid rgba(255,51,102,.2);
  padding: 14px 28px;
  text-align: center;
}
.footer-gambling-warning p {
  font-size: .78rem; color: var(--muted);
  margin: 0; line-height: 1.7;
}
.footer-gambling-warning a { color: #58a6ff; }
.footer-gambling-warning a:hover { color: var(--accent); }
.warning-highlight { color: var(--accent2); font-weight: 900; letter-spacing: .02em; }

/* ============================================================
   BACK TO TOP
============================================================ */
#backToTop {
  position: fixed; bottom: 32px; right: 32px; z-index: 800;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--accent); color: #0d1117;
  border: none; cursor: pointer; font-size: 1.2rem;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none; transform: translateY(12px);
  transition: opacity .3s, transform .3s;
  box-shadow: 0 4px 16px rgba(0,201,167,.4);
}
#backToTop.visible { opacity: 1; pointer-events: all; transform: translateY(0); }

/* ============================================================
   REVEAL ANIMATIONS
============================================================ */
.reveal {
  opacity: 0; transform: translateY(24px);
  transition: opacity .55s ease, transform .55s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ============================================================
   ██████████  REGISTRATION MODAL  ██████████
============================================================ */

/* --- Overlay --- */
#regModal {
  display: none;
  position: fixed; inset: 0; z-index: 9999;
  background: rgba(7,9,14,.85);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  align-items: center; justify-content: center;
  padding: 20px;
}
#regModal.open { display: flex; }

/* --- Dialog box --- */
.reg-dialog {
  display: flex; width: 100%; max-width: 900px;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 18px; overflow: hidden;
  box-shadow: 0 24px 80px rgba(0,0,0,.8);
  animation: modalIn .35s cubic-bezier(.34,1.56,.64,1);
  max-height: 95vh;
}
@keyframes modalIn {
  from { opacity: 0; transform: scale(.88) translateY(30px); }
  to   { opacity: 1; transform: scale(1)   translateY(0); }
}

/* --- Left branding panel --- */
.reg-left {
  flex: 0 0 280px; background: linear-gradient(160deg, #0a1a18 0%, #0d1117 50%, #100918 100%);
  padding: 40px 32px; display: flex; flex-direction: column; gap: 20px;
  border-right: 1px solid var(--border); position: relative; overflow: hidden;
}
.reg-left::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse 120% 80% at 30% 60%, rgba(0,201,167,.12) 0%, transparent 70%);
}
.reg-left-logo { font-size: 1.6rem; font-weight: 900; color: var(--text); position: relative; z-index: 1; }
.reg-left-logo span { color: var(--accent); }
.reg-left-tagline { font-size: .95rem; color: var(--muted); position: relative; z-index: 1; line-height: 1.5; }
.reg-left-perks { list-style: none; display: flex; flex-direction: column; gap: 12px; position: relative; z-index: 1; margin-top: 8px; }
.reg-left-perks li { display: flex; gap: 12px; align-items: flex-start; font-size: .85rem; color: var(--muted); }
.reg-left-perks li span:first-child { font-size: 1.1rem; flex-shrink: 0; margin-top: 1px; }
.reg-left-disclaimer { margin-top: auto; font-size: .72rem; color: #555; line-height: 1.5; position: relative; z-index: 1; }

/* --- Right form panel --- */
.reg-right {
  flex: 1; padding: 36px 36px 36px 36px; overflow-y: auto;
  display: flex; flex-direction: column;
}

/* close button */
.reg-close {
  position: absolute; top: 16px; right: 20px; z-index: 10;
  background: none; border: none; color: var(--muted); font-size: 1.5rem;
  cursor: pointer; line-height: 1; padding: 4px; transition: color .2s;
}
.reg-close:hover { color: var(--text); }

/* --- Progress bar --- */
.reg-progress { display: flex; align-items: center; gap: 0; margin-bottom: 28px; }
.reg-step-dot {
  width: 32px; height: 32px; border-radius: 50%; border: 2px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: .8rem; font-weight: 700; color: var(--muted);
  transition: all .3s; flex-shrink: 0; background: var(--bg);
}
.reg-step-dot.active  { border-color: var(--accent); background: var(--accent); color: #0d1117; }
.reg-step-dot.done    { border-color: var(--accent); background: var(--accent); color: #0d1117; }
.reg-step-dot.done::after { content: '✓'; }
.reg-step-dot.done .dot-num { display: none; }
.reg-step-line {
  flex: 1; height: 2px; background: var(--border); transition: background .4s;
}
.reg-step-line.done { background: var(--accent); }
.reg-step-label { font-size: .7rem; color: var(--muted); text-align: center; margin-top: 6px; }

.progress-labels { display: flex; justify-content: space-between; margin-top: 6px; margin-bottom: 24px; }
.progress-labels span { font-size: .7rem; color: var(--muted); }
.progress-labels span.active { color: var(--accent); font-weight: 600; }

/* --- Step panels --- */
.reg-step { display: none; }
.reg-step.active { display: block; animation: stepIn .3s ease; }
@keyframes stepIn { from { opacity:0; transform:translateX(18px); } to { opacity:1; transform:translateX(0); } }
.reg-step-title { font-size: 1.25rem; font-weight: 800; margin-bottom: 4px; color: var(--text); }
.reg-step-sub   { font-size: .88rem; color: var(--muted); margin-bottom: 24px; }

/* --- Form fields --- */
.form-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.form-group label { font-size: .83rem; font-weight: 600; color: var(--muted); }
.form-group label .req { color: var(--accent2); margin-left: 2px; }

.form-input {
  background: var(--bg); border: 1.5px solid var(--border);
  color: var(--text); border-radius: 8px; padding: 11px 14px;
  font-size: .9rem; font-family: 'Inter', sans-serif;
  transition: border-color .2s, box-shadow .2s; width: 100%;
  outline: none;
}
.form-input:focus   { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(0,201,167,.15); }
.form-input.valid   { border-color: #26c96a; }
.form-input.invalid { border-color: var(--accent2); }

.input-wrap { position: relative; }
.input-suffix {
  position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
  color: var(--muted); cursor: pointer; font-size: .85rem; user-select: none;
  transition: color .2s;
}
.input-suffix:hover { color: var(--text); }

.field-error {
  font-size: .78rem; color: var(--accent2); margin-top: 4px;
  display: none; animation: errShake .3s ease;
}
@keyframes errShake {
  0%,100%{transform:translateX(0)}
  20%    {transform:translateX(-5px)}
  60%    {transform:translateX(5px)}
}
.field-error.show { display: block; }

/* select */
select.form-input { cursor: pointer; appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%238b949e' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; padding-right: 36px;
}
select.form-input option { background: #1c232d; color: var(--text); }

/* checkbox */
.checkbox-row { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 14px; }
.checkbox-row input[type="checkbox"] { width: 18px; height: 18px; accent-color: var(--accent); flex-shrink: 0; margin-top: 2px; cursor: pointer; }
.checkbox-row label { font-size: .83rem; color: var(--muted); cursor: pointer; line-height: 1.5; }
.checkbox-row label a { color: var(--accent); }

/* --- Password strength --- */
.pw-strength-bar {
  height: 4px; border-radius: 2px; background: var(--border);
  margin: 8px 0 4px; overflow: hidden;
}
.pw-strength-fill {
  height: 100%; width: 0; border-radius: 2px;
  transition: width .4s ease, background .4s ease;
}
.pw-strength-label { font-size: .75rem; color: var(--muted); margin-bottom: 10px; }

.pw-rules { list-style: none; display: flex; flex-direction: column; gap: 5px; margin: 8px 0 16px; }
.pw-rules li { font-size: .78rem; color: var(--muted); display: flex; gap: 8px; align-items: center; }
.pw-rules li .rule-icon { width: 16px; height: 16px; border-radius: 50%; border: 1.5px solid var(--border);
  display: flex; align-items: center; justify-content: center; font-size: .6rem; transition: all .2s; flex-shrink: 0; }
.pw-rules li.ok .rule-icon { background: #26c96a; border-color: #26c96a; color: #fff; }
.pw-rules li.ok { color: #26c96a; }

/* --- Form navigation buttons --- */
.reg-nav { display: flex; gap: 12px; margin-top: 8px; }
.reg-nav .btn { flex: 1; justify-content: center; }
.reg-btn-back { background: transparent; border: 1.5px solid var(--border); color: var(--muted); }
.reg-btn-back:hover { border-color: var(--text); color: var(--text); text-decoration: none; }

/* spinner on submit */
.reg-btn-next { position: relative; }
.btn-spinner { display: none; width: 16px; height: 16px; border: 2px solid rgba(0,0,0,.3);
  border-top-color: #0d1117; border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.btn-spinner.show { display: inline-block; }

/* --- Global error banner --- */
.reg-error-banner {
  background: rgba(255,51,102,.12); border: 1px solid rgba(255,51,102,.4);
  border-radius: 8px; padding: 12px 16px; font-size: .85rem; color: var(--accent2);
  margin-bottom: 16px; display: none; animation: errShake .3s ease;
}
.reg-error-banner.show { display: block; }

/* --- Success screen --- */
.reg-success { text-align: center; padding: 16px 0; }
.reg-success-icon { font-size: 3.5rem; animation: bounceIn .6s cubic-bezier(.34,1.56,.64,1); display: block; margin-bottom: 20px; }
@keyframes bounceIn {
  0%  { transform: scale(0); opacity:0; }
  60% { transform: scale(1.2); opacity:1; }
  100%{ transform: scale(1); }
}
.reg-success h2 { font-size: 1.5rem; margin-bottom: 8px; border: none; padding: 0; }
.reg-success p  { color: var(--muted); font-size: .9rem; }
.reg-summary {
  background: var(--bg); border: 1px solid var(--border); border-radius: 10px;
  padding: 16px 20px; text-align: left; margin: 20px 0;
}
.reg-summary-row { display: flex; justify-content: space-between; padding: 7px 0;
  border-bottom: 1px solid rgba(48,54,61,.5); font-size: .85rem; }
.reg-summary-row:last-child { border-bottom: none; }
.reg-summary-row .s-label { color: var(--muted); }
.reg-summary-row .s-val   { color: var(--text); font-weight: 600; }

/* ============================================================
   RESPONSIVE
============================================================ */

/* tablet */
@media (max-width: 960px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .pros-cons { grid-template-columns: 1fr; }
  .reg-left { display: none; }
  .reg-right { padding: 28px 24px; }
}

/* mobile */
@media (max-width: 700px) {
  /* header */
  .header-nav, .header-actions { display: none; }
  .mobile-toggle { display: flex; }
  .header-inner { padding: 0 16px; }

  /* mobile nav drawer */
  .header-nav.mobile-open {
    display: flex; flex-direction: column; gap: 2px;
    position: fixed; top: 68px; left: 0; right: 0;
    background: rgba(10,14,20,.98); backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
    padding: 12px 16px 16px; z-index: 890;
  }
  .header-nav.mobile-open a {
    padding: 11px 14px; font-size: .95rem;
    border-radius: 8px; color: var(--text);
  }
  /* mobile bottom cta bar — hidden */
  .mobile-open-actions { display: none !important; }

  /* hero */
  .hero { min-height: auto; padding: 100px 0 56px; align-items: flex-start; }
  .hero .container { padding: 0 18px; }
  .hero-content h1 { font-size: clamp(1.7rem, 7vw, 2.4rem); }
  .subtitle { font-size: .97rem; max-width: 100%; }
  .hero-buttons { flex-direction: column; }
  .hero-buttons .btn { width: 100%; justify-content: center; }
  .stats-row { gap: 20px; }
  .stat-number { font-size: 1.6rem; }

  /* content */
  .content-flow { padding: 40px 0 60px; }
  .content-flow .container { padding: 0 18px; }
  .section-divider { margin: 0; }
  h2 { font-size: 1.4rem; }
  h4 { font-size: 1rem; }

  /* steps — keep vertical line readable */
  .steps-list li { padding-left: 46px; }
  .steps-list li::before { width: 28px; height: 28px; font-size: .8rem; }
  .steps-list li:not(:last-child)::after { left: 13px; top: 30px; }

  /* tables — allow horizontal scroll */
  .table-wrapper { -webkit-overflow-scrolling: touch; }
  th, td { font-size: .82rem; padding: 10px 12px; }

  /* cards — stack */
  .card-grid { grid-template-columns: 1fr !important; }

  /* pros cons — single column on mobile already handled */

  /* nav-list — wrap tighter */
  .nav-list li { padding: 6px 12px; font-size: .82rem; }

  /* footer */
  .footer-grid { grid-template-columns: 1fr; gap: 24px; padding: 40px 0 28px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 8px; }
  .footer-legal { flex-wrap: wrap; gap: 10px; }
  #backToTop { bottom: 80px; right: 16px; width: 40px; height: 40px; font-size: 1rem; }

  /* registration modal */
  .reg-dialog { max-height: 100dvh; border-radius: 16px 16px 0 0; align-self: flex-end; }
  #regModal { padding: 0; align-items: flex-end; }
  .reg-right { padding: 24px 20px; }
  .form-grid-2 { grid-template-columns: 1fr; }
  .reg-progress { margin-bottom: 20px; }
}

@media (max-width: 380px) {
  .header-inner { padding: 0 12px; }
  .header-logo-img { height: 30px; }
}
