/* ================================================================
   Mail Tester by EuroVDC — Premium Design v2
   ================================================================ */

/* ── Variables ── */
:root {
  --navy:        #090f1e;
  --navy-mid:    #0e1a2e;
  --navy-soft:   #152540;
  --navy-light:  #1e3a5f;
  --blue:        #1a6ccf;
  --blue-hover:  #155ab5;
  --blue-light:  #3b82f6;
  --gold:        #f0ba22;
  --gold-dark:   #d4a41e;

  --success:     #22c55e;
  --warning:     #f59e0b;
  --danger:      #ef4444;
  --info:        #3b82f6;

  --text:        #0f172a;
  --text-2:      #475569;
  --text-3:      #94a3b8;

  --bg:          #ffffff;
  --bg-soft:     #f8fafc;
  --bg-blue:     #eff6ff;
  --border:      #e2e8f0;
  --border-soft: #f1f5f9;

  --r-sm:   6px;
  --r-md:   10px;
  --r-lg:   14px;
  --r-xl:   20px;
  --r-2xl:  28px;

  --sh-sm:  0 1px 3px rgba(15,23,42,0.07), 0 1px 2px rgba(15,23,42,0.04);
  --sh-md:  0 4px 16px rgba(15,23,42,0.10), 0 2px 6px rgba(15,23,42,0.05);
  --sh-lg:  0 12px 40px rgba(15,23,42,0.14), 0 4px 14px rgba(15,23,42,0.07);
  --sh-xl:  0 24px 64px rgba(15,23,42,0.18), 0 8px 24px rgba(15,23,42,0.09);
  --sh-glow:0 0 40px rgba(26,108,207,0.25);
}

/* ── Reset ── */
*, *::before, *::after { margin:0; padding:0; box-sizing:border-box; }
html { scroll-behavior:smooth; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 15px;
  color: var(--text);
  line-height: 1.65;
  background: var(--bg-soft);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--blue-hover); }

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ================================================================
   HEADER
   ================================================================ */
.header {
  background: rgba(9,15,30,0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  position: sticky;
  top: 0;
  z-index: 1000;
  padding: 0;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 66px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: white;
  text-decoration: none;
}

.logo-badge {
  background: linear-gradient(135deg, var(--blue) 0%, #2563eb 100%);
  border-radius: var(--r-md);
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(26,108,207,0.4);
  color: white;
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.logo-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: white;
  letter-spacing: -0.01em;
}

.logo-sub {
  font-size: 0.68rem;
  color: var(--gold);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-link {
  color: rgba(255,255,255,0.72);
  padding: 0.45rem 0.9rem;
  border-radius: var(--r-sm);
  font-size: 0.875rem;
  font-weight: 500;
  transition: all 0.18s;
  border: 1px solid transparent;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.nav-link:hover,
.nav-link.active {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.1);
  color: white;
}

.nav-link-cta {
  background: rgba(26,108,207,0.18);
  border-color: rgba(26,108,207,0.3);
  color: rgba(255,255,255,0.9);
}

.nav-link-cta:hover {
  background: var(--blue);
  border-color: var(--blue);
  color: white;
}

/* ================================================================
   HERO
   ================================================================ */
.hero {
  background: linear-gradient(155deg, var(--navy) 0%, var(--navy-mid) 35%, #102240 70%, #0d1e3a 100%);
  position: relative;
  overflow: hidden;
  padding: 6rem 0 5rem;
  min-height: 88vh;
  display: flex;
  align-items: center;
}

/* ── SVG background ── */
.hero-bg-wrap {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.hero-svg-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

/* Animated glow orbs */
.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
}

.hero-orb-1 {
  width: 560px;
  height: 560px;
  background: radial-gradient(circle, rgba(26,108,207,0.18) 0%, transparent 70%);
  top: -120px;
  right: -60px;
  animation: orbFloat1 12s ease-in-out infinite;
}

.hero-orb-2 {
  width: 380px;
  height: 380px;
  background: radial-gradient(circle, rgba(240,186,34,0.09) 0%, transparent 70%);
  bottom: -80px;
  left: 5%;
  animation: orbFloat2 16s ease-in-out infinite;
}

.hero-orb-3 {
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(59,130,246,0.14) 0%, transparent 70%);
  top: 40%;
  left: 40%;
  animation: orbFloat3 10s ease-in-out infinite;
}

@keyframes orbFloat1 {
  0%, 100% { transform: translate(0,0) scale(1); }
  50%       { transform: translate(-30px, 40px) scale(1.05); }
}
@keyframes orbFloat2 {
  0%, 100% { transform: translate(0,0) scale(1); }
  50%       { transform: translate(40px, -30px) scale(1.08); }
}
@keyframes orbFloat3 {
  0%, 100% { transform: translate(0,0) scale(1); }
  50%       { transform: translate(-20px, 30px) scale(0.95); }
}

/* ── Hero inner layout ── */
.hero .container { position: relative; z-index: 1; }

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 480px;
  gap: 4rem;
  align-items: center;
}

/* ── Left copy ── */
.hero-copy {
  color: white;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(240,186,34,0.12);
  border: 1px solid rgba(240,186,34,0.28);
  color: var(--gold);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.38rem 1rem;
  border-radius: 20px;
  margin-bottom: 1.4rem;
}

.eyebrow-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
  animation: dotPulse 2s ease-in-out infinite;
  flex-shrink: 0;
}

@keyframes dotPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.5; transform: scale(0.7); }
}

.hero-title {
  font-size: clamp(2.1rem, 3.8vw, 3.2rem);
  font-weight: 900;
  color: white;
  line-height: 1.15;
  letter-spacing: -0.035em;
  margin-bottom: 1.25rem;
}

.hero-title-accent {
  background: linear-gradient(135deg, #60a5fa 0%, #818cf8 50%, var(--gold) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-desc {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.65);
  line-height: 1.75;
  margin-bottom: 2rem;
  max-width: 480px;
}

/* Stats strip */
.hero-stats {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 1.75rem;
  flex-wrap: wrap;
}

.hero-stat-divider {
  width: 1px;
  height: 34px;
  background: rgba(255,255,255,0.12);
}

.hero-stat-num {
  display: block;
  font-size: 1.35rem;
  font-weight: 800;
  color: white;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.hero-stat-lbl {
  display: block;
  font-size: 0.7rem;
  color: rgba(255,255,255,0.45);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin-top: 2px;
}

/* Checks */
.hero-checks {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.hero-check {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  color: rgba(255,255,255,0.72);
  font-weight: 500;
}

.hero-check svg {
  color: var(--success);
  flex-shrink: 0;
}

/* ── Right: widget ── */
.hero-widget-wrap {
  position: relative;
}

.hero-widget-glow {
  position: absolute;
  inset: -24px;
  border-radius: var(--r-2xl);
  background: radial-gradient(ellipse at 50% 0%, rgba(26,108,207,0.35) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
  filter: blur(20px);
}

/* ── Test card ── */
.test-card {
  background: rgba(255,255,255,0.97);
  border-radius: var(--r-2xl);
  box-shadow: var(--sh-xl), 0 0 0 1px rgba(255,255,255,0.08);
  overflow: hidden;
  position: relative;
  z-index: 1;
}

.test-card-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 1rem 1.5rem;
  background: linear-gradient(135deg, var(--navy-mid), var(--navy-soft));
  color: rgba(255,255,255,0.85);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}

.test-card-badge {
  margin-left: auto;
  background: rgba(240,186,34,0.18);
  border: 1px solid rgba(240,186,34,0.3);
  color: var(--gold);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: 10px;
}

.test-input-section {
  padding: 2.25rem 1.75rem 2rem;
  text-align: center;
}

.test-start-icon {
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, rgba(26,108,207,0.08), rgba(26,108,207,0.15));
  border-radius: var(--r-xl);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.1rem;
  color: var(--blue);
}

.test-start-title {
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.5rem;
}

.test-start-sub {
  font-size: 0.83rem;
  color: var(--text-2);
  line-height: 1.6;
  margin-bottom: 1.5rem;
  max-width: 340px;
  margin-left: auto;
  margin-right: auto;
}

.test-quota {
  margin-top: 0.9rem;
  color: var(--text-3);
  font-size: 0.8rem;
}

#remainingTests {
  font-weight: 700;
  color: var(--blue);
}

/* ================================================================
   BUTTONS
   ================================================================ */
.btn {
  border: none;
  border-radius: var(--r-md);
  padding: 0.65rem 1.5rem;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.18s;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  font-family: inherit;
  letter-spacing: -0.01em;
}

.btn-primary {
  background: linear-gradient(135deg, var(--blue) 0%, #1558b8 100%);
  color: white;
  box-shadow: 0 4px 14px rgba(26,108,207,0.35);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--blue-hover), #0f47a0);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(26,108,207,0.45);
  color: white;
}

.btn-primary:active { transform: translateY(0); }

.btn-ghost {
  background: transparent;
  color: var(--text-2);
  border: 1px solid var(--border);
}

.btn-ghost:hover {
  background: var(--bg-soft);
  color: var(--text);
  border-color: var(--blue);
}

.btn-gold {
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: var(--navy);
  font-weight: 700;
  box-shadow: 0 4px 16px rgba(240,186,34,0.35);
}

.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(240,186,34,0.45);
  color: var(--navy);
}

.btn-large {
  padding: 0.88rem 2.25rem;
  font-size: 1rem;
  border-radius: var(--r-lg);
}

/* Copy button */
.btn-copy {
  background: var(--blue);
  color: white;
  border: none;
  border-radius: var(--r-sm);
  padding: 6px 10px;
  cursor: pointer;
  transition: all 0.18s;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
  font-size: 0.78rem;
  font-family: inherit;
  font-weight: 600;
}

.btn-copy:hover {
  background: var(--blue-hover);
  transform: scale(1.04);
}

/* ================================================================
   EMAIL SECTION
   ================================================================ */
.test-email-section {
  text-align: center;
  padding: 1.5rem 1.75rem 1.75rem;
}

.email-box {
  background: var(--bg-blue);
  border: 2px solid rgba(26,108,207,0.2);
  border-radius: var(--r-lg);
  padding: 1.25rem 1.25rem 1rem;
  margin-bottom: 1.25rem;
}

.email-label {
  display: block;
  font-weight: 700;
  color: var(--navy-mid);
  margin-bottom: 0.75rem;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.email-display {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 0.65rem;
  flex-wrap: wrap;
}

.email-display code {
  background: white;
  padding: 0.6rem 1rem;
  border-radius: var(--r-md);
  font-size: 0.95rem;
  color: var(--navy-mid);
  font-family: 'Courier New','Consolas',monospace;
  word-break: break-all;
  border: 1px solid var(--border);
  box-shadow: var(--sh-sm);
  font-weight: 600;
}

.email-instruction {
  color: var(--text-2);
  font-size: 0.8rem;
}

/* ================================================================
   WAITING SECTION
   ================================================================ */
.waiting-section {
  text-align: center;
  padding: 1.5rem 1.75rem;
}

.waiting-email-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
}

.waiting-email-row code {
  font-size: 0.85rem;
  color: var(--navy-mid);
  background: var(--bg-soft);
  padding: 4px 10px;
  border-radius: var(--r-sm);
  font-family: 'Courier New',monospace;
  border: 1px solid var(--border);
}

.waiting-countdown-wrap {
  margin: 0 auto 1.25rem;
  width: 120px;
  height: 120px;
}

.waiting-countdown-ring {
  position: relative;
  width: 120px;
  height: 120px;
}

.countdown-svg {
  width: 120px;
  height: 120px;
  transform: rotate(-90deg);
}

.countdown-track { fill:none; stroke:var(--border); stroke-width:8; }

.countdown-progress {
  fill: none;
  stroke: var(--blue);
  stroke-width: 8;
  stroke-linecap: round;
  transition: stroke-dashoffset 1s linear;
}

.countdown-inner {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.countdown-num {
  font-size: 2rem;
  font-weight: 800;
  color: var(--navy-mid);
  line-height: 1;
}

.countdown-label {
  font-size: 0.65rem;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.waiting-progress-wrap {
  margin: 0 auto 1rem;
  max-width: 380px;
}

.waiting-progress-bar {
  background: var(--bg-soft);
  border-radius: 20px;
  height: 11px;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border-soft);
}

.waiting-progress-fill {
  background: linear-gradient(90deg, var(--blue), #60a5fa);
  height: 100%;
  border-radius: 20px;
  transition: width 1s linear;
  width: 0%;
}

.waiting-boat {
  position: absolute;
  top: -10px;
  font-size: 1.2rem;
  transition: left 1s linear;
}

.waiting-status {
  color: var(--text-3);
  font-size: 0.86rem;
  margin-bottom: 0.75rem;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%,100% { opacity:1; }
  50%      { opacity:0.5; }
}

.waiting-timeout { margin: 0.75rem 0; }

.timeout-msg {
  background: #fefce8;
  border: 1px solid #fcd34d;
  border-radius: var(--r-md);
  padding: 0.75rem 1rem;
  margin-bottom: 0.85rem;
  font-size: 0.86rem;
  color: #78350f;
}

.timeout-actions {
  display: flex;
  gap: 0.6rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* Spinner */
.spinner {
  width: 20px;
  height: 20px;
  border: 3px solid var(--border);
  border-top-color: var(--blue);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin { to { transform:rotate(360deg); } }

/* ================================================================
   RESULT AREA (hero altında, her zaman DOM'da)
   ================================================================ */
.result-area {
  background: var(--bg-soft);
  padding: 4rem 0 5rem;
  border-top: 3px solid var(--gold);
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.result-area--visible {
  opacity: 1;
  transform: translateY(0);
}

.result-area .container {
  max-width: 820px;
}

/* MT hero banner */
.mt-hero {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1.5rem;
  align-items: center;
  padding: 2rem 2.25rem;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 60%, #1a3a6e 100%);
  border-radius: var(--r-2xl);
  margin-bottom: 1.5rem;
  color: white;
  position: relative;
  overflow: hidden;
  box-shadow: var(--sh-xl);
}

.mt-hero::before {
  content: '';
  position: absolute;
  right: -60px; top: -60px;
  width: 300px; height: 300px;
  border-radius: 50%;
  background: rgba(255,255,255,0.04);
  pointer-events: none;
}

.mt-hero.hero-perfect  { background: linear-gradient(135deg,#064e3b,#065f46,#047857); }
.mt-hero.hero-great    { background: linear-gradient(135deg,#1e3a5f,#1a5276,#1e6091); }
.mt-hero.hero-good     { background: linear-gradient(135deg,#1e3a5f,#1a4f72); }
.mt-hero.hero-moderate { background: linear-gradient(135deg,#78350f,#92400e,#b45309); }
.mt-hero.hero-bad      { background: linear-gradient(135deg,#7f1d1d,#991b1b,#b91c1c); }

.mt-hero-left { z-index: 1; min-width: 0; }

.mt-hero-title {
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  font-weight: 800;
  color: white;
  margin-bottom: 0.5rem;
  letter-spacing: -0.025em;
  line-height: 1.2;
}

.mt-hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  font-size: 0.84rem;
  color: rgba(255,255,255,0.62);
  margin-top: 0.3rem;
}

.mt-hero-score {
  flex-shrink: 0;
  position: relative;
  width: 120px;
  height: 120px;
  z-index: 1;
}

.mt-hero-score-inner {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.mt-score-num { font-size: 2.4rem; font-weight: 900; color: white; line-height: 1; letter-spacing: -0.04em; }
.mt-score-den { font-size: 0.78rem; color: rgba(255,255,255,0.5); font-weight: 600; }

/* Accordion sections */
.mt-sections { display: flex; flex-direction: column; gap: 0.6rem; }

.mt-section {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--sh-sm);
  transition: box-shadow 0.2s;
}

.mt-section:hover { box-shadow: var(--sh-md); }

.mt-sec-head {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 1rem 1.25rem;
  cursor: pointer;
  background: var(--bg-soft);
  border-bottom: 1px solid transparent;
  transition: background 0.15s;
  user-select: none;
}

.mt-sec-head:hover { background: var(--bg-blue); }
.mt-section.open .mt-sec-head { border-bottom-color: var(--border); background: white; }

.mt-sec-dot {
  width: 9px; height: 9px;
  border-radius: 50%;
  flex-shrink: 0;
}

.dot-green  { background: var(--success); box-shadow: 0 0 6px rgba(34,197,94,0.45); }
.dot-red    { background: var(--danger);  box-shadow: 0 0 6px rgba(239,68,68,0.45); }
.dot-yellow { background: var(--warning); box-shadow: 0 0 6px rgba(245,158,11,0.45); }
.dot-blue   { background: var(--blue);    box-shadow: 0 0 6px rgba(26,108,207,0.45); }

.mt-sec-title { font-weight: 700; font-size: 0.9rem; color: var(--text); flex: 1; }
.mt-sec-arrow { color: var(--text-3); font-size: 0.65rem; }
.mt-sec-body  { padding: 1rem 1.25rem; }

/* Auth rows */
.mt-auth-row {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--border-soft);
  font-size: 0.86rem;
}

.mt-auth-row:last-child { border-bottom: none; }

.mt-auth-icon {
  width: 24px; height: 24px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.85rem; font-weight: 800;
  flex-shrink: 0; margin-top: 1px;
}

.mt-auth-row.pass .mt-auth-icon { background: #dcfce7; color: #166534; }
.mt-auth-row.warn .mt-auth-icon { background: #fef9c3; color: #854d0e; }
.mt-auth-row.fail .mt-auth-icon { background: #fee2e2; color: #991b1b; }

.mt-auth-content { flex: 1; min-width: 0; }
.mt-auth-extra   { margin-top: 0.35rem; }

.mt-auth-header {
  display: flex; align-items: center; gap: 0.5rem;
  flex-wrap: wrap; margin-bottom: 0.2rem;
}

.mt-auth-header b { font-weight: 700; color: var(--text); font-size: 0.9rem; }
.mt-auth-label    { font-size: 0.78rem; color: var(--text-3); }
.mt-auth-note     { font-size: 0.8rem; color: var(--text-2); line-height: 1.55; margin-top: 0.25rem; }

/* DNS record */
.mt-dns-record {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  padding: 0.5rem 0.85rem;
  font-family: 'Courier New', Consolas, monospace;
  font-size: 0.78rem;
  word-break: break-all;
  line-height: 1.55;
  display: flex; gap: 0.75rem; flex-wrap: wrap;
  margin-top: 0.35rem;
}

.mt-dns-key { color: var(--blue); font-weight: 600; flex-shrink: 0; }
.mt-dns-val { color: var(--text); flex: 1; }

.mt-hint {
  font-size: 0.8rem; color: var(--text-2);
  background: var(--bg-blue);
  border: 1px solid rgba(26,108,207,0.15);
  border-radius: var(--r-sm);
  padding: 0.45rem 0.85rem;
  margin-top: 0.35rem; line-height: 1.55;
}

.mt-hint code {
  background: white; padding: 1px 5px;
  border-radius: 3px; font-size: 0.78rem;
  border: 1px solid var(--border); color: var(--navy-mid);
}

/* Info grid */
.mt-info-grid { display: flex; flex-direction: column; }

.mt-info-row {
  display: flex; gap: 0.75rem;
  font-size: 0.86rem; padding: 0.35rem 0;
  border-bottom: 1px solid var(--border-soft);
  align-items: flex-start;
}

.mt-info-row:last-child { border-bottom: none; }

.mt-info-row b {
  font-weight: 600; color: var(--text-3);
  min-width: 75px; flex-shrink: 0;
  font-size: 0.75rem; text-transform: uppercase;
  letter-spacing: 0.04em; padding-top: 2px;
}

.mt-info-row span { color: var(--text); word-break: break-word; flex: 1; }
.mt-preview { font-style: italic; color: var(--text-2) !important; line-height: 1.55 !important; }

/* Labels */
.lbl {
  display: inline-flex; align-items: center;
  padding: 2px 9px; border-radius: 9px;
  font-size: 0.7rem; font-weight: 700; white-space: nowrap;
}

.lbl-pass { background: #dcfce7; color: #166534; }
.lbl-warn { background: #fef9c3; color: #854d0e; }
.lbl-fail { background: #fee2e2; color: #991b1b; }

/* BL table */
.mt-bl-table { width: 100%; border-collapse: collapse; font-size: 0.86rem; }
.mt-bl-table th { text-align: left; padding: 0.45rem 0.65rem; background: var(--bg-soft); font-weight: 600; font-size: 0.73rem; color: var(--text-3); text-transform: uppercase; letter-spacing: 0.04em; border-bottom: 1px solid var(--border); }
.mt-bl-table td { padding: 0.5rem 0.65rem; border-bottom: 1px solid var(--border-soft); }
.mt-bl-table tr:last-child td { border-bottom: none; }
.mt-bl-table tr:hover td { background: var(--bg-soft); }

/* Recommendations */
.recommendations {
  background: #fefce8;
  border-left: 4px solid var(--gold);
  border-radius: var(--r-md);
  padding: 1rem 1.25rem;
}

.recommendations h3 { font-size: 0.8rem; font-weight: 700; color: var(--text); margin-bottom: 0.5rem; text-transform: uppercase; letter-spacing: 0.05em; }
.recommendations ul  { list-style: none; padding: 0; margin: 0; }
.recommendations li  { padding: 0.25rem 0 0.25rem 1.3rem; color: #713f12; position: relative; font-size: 0.86rem; line-height: 1.5; }
.recommendations li::before { content: '→'; position: absolute; left: 0; color: var(--gold-dark); font-weight: 700; }
.recommendations.success-rec { background: #f0fdf4; border-left-color: var(--success); }
.recommendations.success-rec h3, .recommendations.success-rec p { color: #166534; margin: 0; font-size: 0.88rem; }

/* Actions */
.mt-actions {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  margin-top: 1.75rem;
  flex-wrap: wrap;
}

/* ================================================================
   FEATURES SECTION
   ================================================================ */
.features {
  padding: 6rem 0;
  background: var(--bg-soft);
  border-top: 1px solid var(--border);
  position: relative;
}

.features::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--blue), #818cf8, var(--gold));
}

.features-header {
  text-align: center;
  margin-bottom: 3.5rem;
}

.section-label-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(26,108,207,0.08);
  border: 1px solid rgba(26,108,207,0.2);
  color: var(--blue);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.35rem 0.9rem;
  border-radius: 20px;
  margin-bottom: 0.9rem;
}

.section-label-pill--dark {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.15);
  color: rgba(255,255,255,0.75);
}

.section-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 0.65rem;
}

.section-title {
  font-size: clamp(1.7rem,3vw,2.35rem);
  font-weight: 800;
  color: var(--navy-mid);
  margin-bottom: 0.75rem;
  letter-spacing: -0.028em;
  line-height: 1.2;
}

.section-subtitle {
  color: var(--text-2);
  font-size: 1rem;
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.75;
}

/* ── Premium Feature Cards ── */
.features-grid-premium {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.feature-card-premium {
  background: white;
  border-radius: var(--r-xl);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: all 0.24s cubic-bezier(0.2,0,0,1);
  cursor: default;
}

.feature-card-premium:hover {
  transform: translateY(-6px);
  box-shadow: var(--sh-lg);
  border-color: rgba(26,108,207,0.12);
}

.fcp-highlight {
  background: linear-gradient(160deg, #fffbeb, #fefce8);
  border-color: rgba(240,186,34,0.3);
}

.fcp-highlight:hover {
  border-color: rgba(240,186,34,0.5);
  box-shadow: 0 12px 40px rgba(240,186,34,0.18), 0 4px 14px rgba(0,0,0,0.05);
}

.fcp-accent-bar {
  height: 3px;
  width: 100%;
}

.fcp-inner {
  padding: 1.5rem 1.5rem 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 0;
  position: relative;
}

.fcp-icon-wrap {
  width: 48px;
  height: 48px;
  border-radius: var(--r-lg);
  background: color-mix(in srgb, var(--ic) 10%, transparent);
  border: 1px solid color-mix(in srgb, var(--ic) 20%, transparent);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ic, var(--blue));
  margin-bottom: 1.1rem;
  transition: all 0.24s;
  flex-shrink: 0;
}

.feature-card-premium:hover .fcp-icon-wrap {
  background: var(--ic, var(--blue));
  color: white;
  border-color: transparent;
  box-shadow: 0 4px 14px color-mix(in srgb, var(--ic, var(--blue)) 40%, transparent);
  transform: scale(1.08);
}

.fcp-body { flex: 1; }

.fcp-tag {
  display: inline-block;
  font-size: 0.67rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: 8px;
  margin-bottom: 0.5rem;
}

.fcp-title {
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--navy-mid);
  margin-bottom: 0.5rem;
  letter-spacing: -0.015em;
}

.fcp-desc {
  font-size: 0.84rem;
  color: var(--text-2);
  line-height: 1.68;
  margin: 0 0 1rem;
}

.fcp-arrow {
  color: var(--text-3);
  display: flex;
  align-items: center;
  transition: all 0.2s;
  opacity: 0;
  transform: translate(-4px, 4px);
}

.feature-card-premium:hover .fcp-arrow {
  opacity: 1;
  transform: translate(0, 0);
  color: var(--blue);
}

/* @supports fallback */
@supports not (background: color-mix(in srgb, red 50%, blue)) {
  .fcp-icon-wrap { background: rgba(26,108,207,0.1); border-color: rgba(26,108,207,0.2); }
  .feature-card-premium:hover .fcp-icon-wrap { background: #1a6ccf; }
}

/* ================================================================
   HOW IT WORKS
   ================================================================ */
.how-it-works {
  background: linear-gradient(160deg, var(--navy) 0%, #122240 40%, #0e1d38 100%);
  padding: 6rem 0;
  position: relative;
  overflow: hidden;
}

.hiw-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 10% 50%, rgba(26,108,207,0.10) 0%, transparent 70%),
    radial-gradient(ellipse 40% 40% at 90% 30%, rgba(240,186,34,0.06) 0%, transparent 70%);
  pointer-events: none;
}

.hiw-container { position: relative; z-index: 1; }

.hiw-header { margin-bottom: 4rem; }

.hiw-title { color: white; }

.hiw-sub {
  color: rgba(255,255,255,0.55);
}

/* Steps row */
.hiw-steps {
  display: flex;
  align-items: flex-start;
  gap: 0;
}

.hiw-step {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.hiw-step-num-wrap {
  position: relative;
  width: 72px;
  height: 72px;
  margin-bottom: 1.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hiw-step-num {
  font-size: 1.25rem;
  font-weight: 900;
  color: white;
  letter-spacing: -0.03em;
  position: relative;
  z-index: 1;
}

.hiw-step-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: rgba(26,108,207,0.18);
  border: 1.5px solid rgba(26,108,207,0.4);
}

.hiw-step-ring::before {
  content: '';
  position: absolute;
  inset: 6px;
  border-radius: 50%;
  background: rgba(26,108,207,0.25);
}

.hiw-step-ring--gold {
  background: rgba(240,186,34,0.15);
  border-color: rgba(240,186,34,0.45);
}

.hiw-step-ring--gold::before {
  background: rgba(240,186,34,0.2);
}

.hiw-step-content {
  max-width: 240px;
}

.hiw-step-icon {
  width: 58px;
  height: 58px;
  background: rgba(26,108,207,0.15);
  border: 1px solid rgba(26,108,207,0.3);
  border-radius: var(--r-xl);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #60a5fa;
  margin: 0 auto 0.9rem;
  transition: all 0.24s;
}

.hiw-step-icon--2 {
  background: rgba(124,58,237,0.15);
  border-color: rgba(124,58,237,0.3);
  color: #a78bfa;
}

.hiw-step-icon--3 {
  background: rgba(240,186,34,0.15);
  border-color: rgba(240,186,34,0.35);
  color: var(--gold);
}

.hiw-step:hover .hiw-step-icon {
  background: var(--blue);
  border-color: transparent;
  color: white;
  box-shadow: 0 6px 20px rgba(26,108,207,0.4);
  transform: scale(1.08);
}

.hiw-step-badge {
  display: inline-block;
  font-size: 0.67rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 10px;
  background: rgba(26,108,207,0.2);
  border: 1px solid rgba(26,108,207,0.3);
  color: #93c5fd;
  margin-bottom: 0.65rem;
}

.hiw-step-badge--gold {
  background: rgba(240,186,34,0.18);
  border-color: rgba(240,186,34,0.35);
  color: var(--gold);
}

.hiw-step-content h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: white;
  margin-bottom: 0.5rem;
  letter-spacing: -0.015em;
}

.hiw-step-content p {
  font-size: 0.84rem;
  color: rgba(255,255,255,0.52);
  line-height: 1.7;
  margin: 0;
}

.hiw-connector {
  flex-shrink: 0;
  width: 80px;
  padding: 0 4px;
  display: flex;
  align-items: center;
  align-self: flex-start;
  margin-top: 34px;
  opacity: 0.9;
}

.hiw-connector svg { width: 100%; height: auto; display: block; }

/* ================================================================
   CTA STRIP
   ================================================================ */
.cta-strip {
  background: linear-gradient(135deg, var(--navy) 0%, #112240 50%, #0d1e3a 100%);
  padding: 4rem 0;
  position: relative;
  overflow: hidden;
}

.cta-strip::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M60 0L0 0 0 60' fill='none' stroke='rgba(255,255,255,0.03)' stroke-width='1'/%3E%3C/svg%3E");
  pointer-events: none;
}

.cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}

.cta-text h2 {
  font-size: clamp(1.4rem,2.5vw,1.9rem);
  font-weight: 800;
  color: white;
  margin-bottom: 0.4rem;
  letter-spacing: -0.02em;
}

.cta-text p {
  color: rgba(255,255,255,0.6);
  font-size: 0.95rem;
  margin: 0;
}

/* ================================================================
   FOOTER
   ================================================================ */
.footer {
  background: linear-gradient(160deg, var(--navy) 0%, #070d1a 100%);
  color: rgba(255,255,255,0.65);
  padding: 3.5rem 0 0;
  border-top: 3px solid var(--gold);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}

.footer-brand p {
  font-size: 0.86rem;
  line-height: 1.7;
  color: rgba(255,255,255,0.45);
  max-width: 280px;
}

.footer-col h4 {
  color: white;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 0.9rem;
  padding-bottom: 0.55rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-col ul { list-style:none; padding:0; }
.footer-col ul li { margin-bottom:0.5rem; }
.footer-col ul li a { color:rgba(255,255,255,0.5); font-size:0.86rem; transition:color 0.18s; }
.footer-col ul li a:hover { color: var(--gold); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 0;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.footer-bottom p { font-size:0.78rem; color:rgba(255,255,255,0.3); margin:0; }
.footer-bottom a { color:var(--gold); font-size:0.78rem; }
.footer-bottom a:hover { color:white; }

/* ================================================================
   NOTIFICATIONS
   ================================================================ */
.notification {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  padding: 0.8rem 1.4rem;
  border-radius: var(--r-md);
  color: white;
  font-weight: 600;
  font-size: 0.88rem;
  z-index: 9999;
  box-shadow: var(--sh-lg);
  animation: slideInRight 0.25s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.notification.success { background: #16a34a; }
.notification.error   { background: #dc2626; }
.notification.info    { background: var(--blue); }

@keyframes slideInRight {
  from { transform:translateX(120%); opacity:0; }
  to   { transform:translateX(0); opacity:1; }
}

/* ================================================================
   ANIMATIONS
   ================================================================ */
@keyframes fadeIn {
  from { opacity:0; transform:translateY(10px); }
  to   { opacity:1; transform:translateY(0); }
}

.fade-in { animation: fadeIn 0.35s ease; }

/* ================================================================
   RESPONSIVE
   ================================================================ */
@media (max-width: 1100px) {
  .hero-inner { grid-template-columns: 1fr 420px; gap: 3rem; }
}

@media (max-width: 900px) {
  .hero {
    padding: 4rem 0 3rem;
    min-height: auto;
  }

  .hero-inner {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    text-align: center;
  }

  .hero-copy { order: 1; }
  .hero-widget-wrap { order: 2; max-width: 520px; margin: 0 auto; width: 100%; }

  .hero-desc { margin-left: auto; margin-right: auto; }

  .hero-stats { justify-content: center; }

  .hero-checks {
    align-items: center;
  }

  .features-grid-premium { grid-template-columns: repeat(2,1fr); }

  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }

  .hiw-steps { flex-direction: column; align-items: center; gap: 2rem; }
  .hiw-connector { display: none; }
  .hiw-step { width: 100%; max-width: 400px; }
  .hiw-step-num-wrap { margin-bottom: 1.25rem; }
}

@media (max-width: 640px) {
  .hero-title { font-size: 1.95rem; }
  .hero-orb-1, .hero-orb-3 { display: none; }

  .test-card { border-radius: var(--r-xl); }

  .features-grid-premium { grid-template-columns: 1fr; }
  .section-title { font-size: 1.65rem; }

  .footer-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .footer-bottom { flex-direction: column; text-align: center; }

  .cta-inner { flex-direction: column; text-align: center; }
}

@media (max-width: 480px) {
  .hero-eyebrow { display: none; }
  .hero-title { font-size: 1.7rem; }
  .nav .nav-link:not(.nav-link-cta) { display: none; }
}

/* ================================================================
   LEGACY / COMPAT
   ================================================================ */
.status-indicator {
  display:flex; align-items:center; justify-content:center;
  gap:0.75rem; padding:1.25rem; color:var(--text-2);
}

.result-actions {
  display:flex; gap:0.65rem; justify-content:center;
  margin-top:1.25rem; flex-wrap:wrap;
}

/* color-mix fallback for older browsers */
@supports not (background: color-mix(in srgb, red 50%, blue)) {
  .feature-icon-wrap { background: rgba(26,108,207,0.1); border-color: rgba(26,108,207,0.2); }
}

/* ================================================================
   RESULT: NEW DETAILED SECTIONS
   ================================================================ */

/* ─── Hero badges ─────────────────────────────────────────────── */
.mt-hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.75rem;
}
.mt-badge-pill {
  padding: 0.2rem 0.65rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}
.mt-badge-pill.bp-pass { background: rgba(22,163,74,0.25);  color: #86efac; }
.mt-badge-pill.bp-fail { background: rgba(220,38,38,0.3);   color: #fca5a5; }
.mt-badge-pill.bp-warn { background: rgba(234,179,8,0.25);  color: #fde047; }

/* ─── Section count label ─────────────────────────────────────── */
.mt-sec-count {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-3);
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.15rem 0.6rem;
  margin-right: 0.4rem;
  flex-shrink: 0;
}

/* ─── Recommendation number ───────────────────────────────────── */
.mt-rec-num {
  font-size: 0.72rem;
  font-weight: 800;
}

/* ─── Score rules table ───────────────────────────────────────── */
.mt-rules-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.83rem;
}
.mt-rules-table thead tr {
  background: var(--bg-soft);
  border-bottom: 2px solid var(--border);
}
.mt-rules-table th {
  padding: 0.5rem 0.65rem;
  font-weight: 700;
  font-size: 0.72rem;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  text-align: left;
}
.mt-rules-table td {
  padding: 0.45rem 0.65rem;
  border-bottom: 1px solid var(--border-soft);
  vertical-align: top;
}
.mt-rules-table tr:last-child td { border-bottom: none; }
.mt-rules-table tr.rule-pass td { background: rgba(22,163,74,0.03); }
.mt-rules-table tr.rule-fail td { background: rgba(220,38,38,0.04); }
.mt-rules-table tr.rule-warn td { background: rgba(234,179,8,0.04); }
.mt-rules-table tr.rule-info td { background: rgba(26,108,207,0.03); }
.mt-rules-table tr:hover td     { background: var(--bg-blue) !important; }

.rule-icon-cell { width: 28px; text-align: center; }
.rule-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  font-size: 0.68rem;
  font-weight: 900;
}
tr.rule-pass .rule-icon { background: #dcfce7; color: #166534; }
tr.rule-fail .rule-icon { background: #fee2e2; color: #991b1b; }
tr.rule-warn .rule-icon { background: #fef9c3; color: #854d0e; }
tr.rule-info .rule-icon { background: #e8f4fd; color: #0277bd; }

.rule-name {
  font-family: monospace;
  font-size: 0.8rem;
  font-weight: 700;
  white-space: nowrap;
  color: var(--text);
  width: 160px;
}
.rule-desc {
  color: var(--text-2);
  line-height: 1.5;
}
.rule-detail {
  font-size: 0.75rem;
  color: var(--text-3);
  word-break: break-all;
  display: block;
  margin-top: 0.2rem;
}
.rule-pts-cell { text-align: right; white-space: nowrap; width: 55px; }
.rule-pts {
  display: inline-block;
  font-weight: 800;
  font-size: 0.82rem;
  padding: 0.1rem 0.4rem;
  border-radius: 6px;
}
.pts-neg  { color: #dc2626; background: #fee2e2; }
.pts-pos  { color: #16a34a; background: #dcfce7; }
.pts-zero { color: var(--text-3); background: var(--bg-soft); }

/* ─── Content grid ────────────────────────────────────────────── */
.mt-content-grid {
  display: flex;
  flex-direction: column;
}
.mt-content-row {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--border-soft);
}
.mt-content-row:last-child { border-bottom: none; }
.mt-content-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  min-width: 26px;
  border-radius: 50%;
  font-size: 0.72rem;
  font-weight: 900;
}
.mt-content-row.pass .mt-content-icon { background: #dcfce7; color: #166534; }
.mt-content-row.warn .mt-content-icon { background: #fef9c3; color: #854d0e; }
.mt-content-row.fail .mt-content-icon { background: #fee2e2; color: #991b1b; }
.mt-content-row.info .mt-content-icon { background: #e8f4fd; color: #0277bd; }

.mt-content-body { flex: 1; min-width: 0; }
.mt-content-label {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.15rem;
}
.mt-content-val {
  font-size: 0.87rem;
  font-weight: 600;
  color: var(--text);
}
.mt-content-detail {
  font-size: 0.78rem;
  color: var(--text-2);
  margin-top: 0.3rem;
  line-height: 1.5;
  word-break: break-word;
}

/* span spam word badges */
.mt-spam-word {
  display: inline-block;
  background: #fee2e2;
  color: #991b1b;
  border: 1px solid #fca5a5;
  border-radius: 4px;
  padding: 0.1rem 0.4rem;
  font-size: 0.74rem;
  font-weight: 600;
  margin: 0.1rem 0.1rem 0 0;
}

/* external links in content section */
.mt-link {
  display: inline-block;
  color: var(--blue);
  font-size: 0.78rem;
  word-break: break-all;
  text-decoration: none;
  border-bottom: 1px dashed var(--blue);
}
.mt-link:hover { opacity: 0.8; }

/* ─── Blacklist groups ────────────────────────────────────────── */
.mt-bl-group {
  margin-bottom: 0.75rem;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.mt-bl-group:last-child { margin-bottom: 0; }
.mt-bl-group-header {
  padding: 0.5rem 1rem;
  background: var(--bg-soft);
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 1px solid var(--border);
}
.mt-bl-group-rows .mt-auth-row {
  border-radius: 0 !important;
  border-bottom: 1px solid var(--border-soft);
}
.mt-bl-group-rows .mt-auth-row:last-child { border-bottom: none; }

/* ─── lbl-info ────────────────────────────────────────────────── */
.lbl-info {
  background: #e8f4fd;
  color: #0277bd;
}

/* ─── Responsive tweaks for new sections ─────────────────────── */
@media (max-width: 640px) {
  .mt-rules-table { font-size: 0.76rem; }
  .rule-name { width: 100px; font-size: 0.72rem; }
  .mt-rules-table th:nth-child(2),
  .mt-rules-table td:nth-child(2) { display: none; }
}

/* ─── Share bar ───────────────────────────────────────────────── */
.mt-share-bar {
  margin: 1rem 0 0.25rem;
}
.mt-share-bar-inner {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: 12px;
  padding: 0.65rem 1rem;
  flex-wrap: wrap;
}
.mt-share-label {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.78rem;
  font-weight: 700;
  color: #1e40af;
  white-space: nowrap;
  flex-shrink: 0;
}
.mt-share-url {
  flex: 1;
  font-family: var(--font-mono, 'Courier New', monospace);
  font-size: 0.8rem;
  color: #2563eb;
  text-decoration: none;
  word-break: break-all;
  min-width: 0;
}
.mt-share-url:hover { text-decoration: underline; }
.mt-share-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}
.mt-share-expiry {
  font-size: 0.73rem;
  color: #6b7280;
  white-space: nowrap;
}
.mt-share-copy-btn {
  background: #dbeafe;
  color: #1e40af;
  border: none;
  border-radius: 6px;
  padding: 0.28rem 0.75rem;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  transition: background .15s;
  white-space: nowrap;
}
.mt-share-copy-btn:hover { background: #bfdbfe; }
@media (max-width: 600px) {
  .mt-share-bar-inner { flex-direction: column; align-items: flex-start; }
  .mt-share-url { font-size: 0.75rem; }
}

/* ─── Fix Guide Panels ────────────────────────────────────────── */
.mt-fix-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.6rem;
  padding: 0.3rem 0.8rem 0.3rem 0.6rem;
  background: #fffbeb;
  border: 1px solid #fcd34d;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 700;
  color: #92400e;
  cursor: pointer;
  transition: background .15s, border-color .15s, transform .1s;
  line-height: 1;
}
.mt-fix-btn:hover { background: #fef3c7; border-color: #f59e0b; }
.mt-fix-btn.open  { background: #fef3c7; border-color: #f59e0b; }
.mt-fix-btn.open::after { content: ' ▲'; font-size: .65rem; margin-left:.2rem; }
.mt-fix-btn:not(.open)::after { content: ' ▼'; font-size: .65rem; margin-left:.2rem; }
.mt-fix-btn-icon { font-size: 0.9rem; }

.mt-fix-panel {
  margin-top: 0.5rem;
  border: 1px solid #fde68a;
  border-radius: 10px;
  background: #fffdf0;
  overflow: hidden;
  animation: fixSlideIn .2s ease;
}
@keyframes fixSlideIn {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Inner guide layout */
.mt-fix-guide {
  padding: 1rem 1.1rem;
  font-size: 0.82rem;
  line-height: 1.6;
  color: var(--text, #1a202c);
}
.mt-fix-intro {
  margin: 0 0 0.85rem;
  color: #374151;
  font-size: 0.83rem;
}
.mt-fix-steps {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  margin-bottom: 0.75rem;
}
.mt-fix-step {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
}
.mt-fix-num {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  background: #f59e0b;
  color: white;
  border-radius: 50%;
  font-size: 0.72rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 0.1rem;
}
.mt-fix-step div { flex: 1; }

.mt-fix-code {
  background: #1e2a3a;
  border-radius: 8px;
  padding: 0.75rem 1rem;
  margin: 0.5rem 0;
  font-family: 'Courier New', Consolas, monospace;
}
.mt-fix-code code {
  display: block;
  color: #a8d5a2;
  font-size: 0.77rem;
  white-space: pre-wrap;
  word-break: break-all;
  line-height: 1.55;
  background: none;
  padding: 0;
  border: none;
}
.mt-fix-code-label {
  color: #94a3b8;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  margin-bottom: 0.25rem;
  font-family: inherit;
}

.mt-fix-examples {
  background: #1e2a3a;
  border-radius: 8px;
  padding: 0.75rem 1rem;
  margin: 0.5rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}
.mt-fix-example-label {
  color: #94a3b8;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  margin-bottom: 0.2rem;
  font-family: inherit;
}
.mt-fix-examples code {
  display: inline;
  color: #a8d5a2;
  font-size: 0.77rem;
  font-family: 'Courier New', Consolas, monospace;
  background: none;
  border: none;
  padding: 0;
}
.mt-fix-etiket {
  margin-left: 0.5rem;
  font-size: 0.68rem;
  color: #64748b;
  font-style: italic;
  font-family: inherit;
}

.mt-fix-note {
  margin-top: 0.7rem;
  padding: 0.55rem 0.75rem;
  background: #ecfdf5;
  border-left: 3px solid #34d399;
  border-radius: 0 6px 6px 0;
  font-size: 0.78rem;
  color: #065f46;
  line-height: 1.5;
}
.mt-fix-note a { color: #059669; }
.mt-fix-note a:hover { text-decoration: underline; }

/* Inside code blocks that contain inline <code> from notes/hints */
.mt-fix-guide p code,
.mt-fix-intro  code,
.mt-fix-step   code {
  background: rgba(0,0,0,0.06);
  padding: 0.05em 0.35em;
  border-radius: 4px;
  font-family: 'Courier New', Consolas, monospace;
  font-size: 0.9em;
  color: #92400e;
}

@media (max-width: 600px) {
  .mt-fix-guide { padding: .75rem .85rem; }
  .mt-fix-code  { padding: .6rem .75rem; }
  .mt-fix-code code { font-size: .72rem; }
}

/* ─── Result page refresh row ───────────────────────────────────────────────── */
.mt-result-refresh-row {
  display: flex;
  align-items: center;
  gap: .75rem;
  margin-top: .75rem;
  flex-wrap: wrap;
}
.share-refresh-btn {
  background: linear-gradient(135deg, #4f46e5, #6d28d9);
  color: #fff;
  border: none;
  padding: .45rem 1.1rem;
  border-radius: 8px;
  font-size: .85rem;
  font-weight: 600;
  cursor: pointer;
  transition: opacity .2s;
}
.share-refresh-btn:hover  { opacity: .85; color: #fff; }
.share-refresh-btn:disabled { opacity: .5; cursor: not-allowed; }
.share-refresh-time {
  font-size: .8rem;
  color: var(--text-muted, #6b7280);
}
.share-refresh-flash {
  font-size: .8rem;
  color: #059669;
  font-weight: 600;
  opacity: 0;
  transition: opacity .4s;
}
@keyframes spinr { to { transform: rotate(360deg); } }

/* ─── Privacy / KVKK / GDPR Banner ─────────────────────────────────────────── */
#privacyBanner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 9999;
  background: rgba(15, 23, 42, 0.97);
  backdrop-filter: blur(8px);
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: .85rem 1rem;
  animation: pvbSlideUp .35s ease;
}
@keyframes pvbSlideUp {
  from { transform: translateY(100%); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}
.pvb-inner {
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}
.pvb-icon { font-size: 1.2rem; flex-shrink: 0; }
.pvb-text {
  flex: 1;
  font-size: .82rem;
  color: rgba(255,255,255,0.8);
  line-height: 1.5;
  min-width: 200px;
}
.pvb-text strong { color: #fff; }
.pvb-text a { color: #60a5fa; text-decoration: underline; }
.pvb-btn {
  background: linear-gradient(135deg, #1a6ccf, #2563eb);
  color: #fff;
  border: none;
  padding: .5rem 1.3rem;
  border-radius: 8px;
  font-size: .82rem;
  font-weight: 700;
  cursor: pointer;
  flex-shrink: 0;
  transition: opacity .15s;
}
.pvb-btn:hover { opacity: .85; }
@media (max-width: 600px) {
  .pvb-inner { gap: .6rem; }
  .pvb-text  { font-size: .78rem; }
}

/* ── Legal Modal ──────────────────────────────────────────────────────────── */
.lm-overlay {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: rgba(6, 14, 32, 0.75);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  animation: lmFadeIn .2s ease;
}
@keyframes lmFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
.lm-dialog {
  background: #fff;
  border-radius: 16px;
  width: 100%;
  max-width: 680px;
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 24px 72px rgba(0,0,0,.35);
  outline: none;
  position: relative;
  animation: lmSlideUp .22s ease;
}
@keyframes lmSlideUp {
  from { transform: translateY(24px); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}
.lm-close {
  position: absolute;
  top: 14px; right: 16px;
  background: none;
  border: none;
  font-size: 1.1rem;
  color: #6b7280;
  cursor: pointer;
  line-height: 1;
  padding: 4px 8px;
  border-radius: 6px;
  transition: background .15s, color .15s;
}
.lm-close:hover { background: #f3f4f6; color: #111; }
.lm-body {
  overflow-y: auto;
  padding: 2rem 2rem 1rem;
  flex: 1;
  scrollbar-width: thin;
  scrollbar-color: #d1d5db #f9fafb;
}
.lm-body::-webkit-scrollbar { width: 6px; }
.lm-body::-webkit-scrollbar-thumb { background: #d1d5db; border-radius: 3px; }
.lm-section { margin-bottom: 1.5rem; }
.lm-section h3 {
  font-size: 1.05rem;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 .3rem;
  letter-spacing: -.01em;
}
.lm-section h4 {
  font-size: .88rem;
  font-weight: 700;
  color: #1e3a8a;
  margin: 0 0 .5rem;
  padding-bottom: .3rem;
  border-bottom: 1px solid #e2e8f0;
}
.lm-sub {
  font-size: .78rem;
  color: #6b7280;
  margin: 0;
}
.lm-section p {
  font-size: .83rem;
  color: #374151;
  line-height: 1.65;
  margin: 0 0 .5rem;
}
.lm-section ul {
  margin: .4rem 0 0 1.1rem;
  padding: 0;
}
.lm-section ul li {
  font-size: .83rem;
  color: #374151;
  line-height: 1.65;
  margin-bottom: .25rem;
}
.lm-section a { color: #2563eb; text-decoration: underline; }
.lm-footer {
  padding: 1rem 2rem 1.25rem;
  border-top: 1px solid #e2e8f0;
  display: flex;
  justify-content: flex-end;
}
.lm-ok-btn {
  background: linear-gradient(135deg, #1a6ccf, #2563eb);
  color: #fff;
  border: none;
  padding: .55rem 1.8rem;
  border-radius: 8px;
  font-size: .85rem;
  font-weight: 700;
  cursor: pointer;
  transition: opacity .15s;
}
.lm-ok-btn:hover { opacity: .88; }
@media (max-width: 640px) {
  .lm-dialog { max-height: 92vh; border-radius: 12px 12px 0 0; align-self: flex-end; }
  .lm-overlay { align-items: flex-end; padding: 0; }
  .lm-body { padding: 1.25rem 1.25rem .75rem; }
  .lm-footer { padding: .75rem 1.25rem 1rem; }
}
