/* ═══════════════════════════════════════════════════════════════
   MOTSA — Complete Design System
   Single source of truth. No appended blocks, no conflicts.
   ═══════════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=DM+Serif+Display:ital@0;1&family=DM+Sans:ital,wght@0,300;0,400;0,500;0,600;1,400&family=DM+Mono:wght@400;500&display=swap');

/* ── Variables ─────────────────────────────────────────────── */
:root {
  /* Surfaces */
  --bg:        #f4f3ef;
  --surface:   #ffffff;
  --s2:        #fafaf8;

  /* Borders */
  --line:      #e6e5e1;
  --line2:     #d1d0cb;

  /* Text */
  --text:      #0d0d0b;
  --text2:     #484844;
  --muted:     #88887f;

  /* Brand */
  --blue:      #0f2d6b;
  --blue2:     #1945a8;
  --blue3:     #2563eb;
  --soft:      #e6edfb;

  /* Semantic */
  --green:     #0e5c36;
  --greenBg:   #e8f5ef;
  --greenBd:   rgba(14,92,54,.14);
  --red:       #8a1a1a;
  --redBg:     #fef0f0;
  --redBd:     rgba(138,26,26,.14);
  --orange:    #91400d;
  --orangeBg:  #fef9eb;
  --orangeBd:  #fde68a;

  /* Elevation */
  --shadow:    0 1px 2px rgba(13,13,11,.04),
               0 4px 16px rgba(13,13,11,.05),
               0 24px 64px rgba(13,13,11,.07);
  --shadow-sm: 0 1px 3px rgba(13,13,11,.05),
               0 4px 12px rgba(13,13,11,.06);

  /* Shape */
  --r:         20px;
  --r-sm:      12px;
  --r-xs:      8px;

  /* Layout */
  --nav-h:     64px;
  --max-w:     1160px;
}

/* ── Reset ─────────────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  height: 100%;
}
body {
  font-family: 'DM Sans', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
}
a { text-decoration: none; color: inherit; }
button { font-family: inherit; cursor: pointer; }
img { max-width: 100%; display: block; }

/* ── Typography ────────────────────────────────────────────── */
h1, h2, h3 {
  font-family: 'DM Serif Display', Georgia, serif;
  font-weight: 400;
  letter-spacing: -.02em;
  line-height: 1.05;
}
h1 { font-size: clamp(40px, 5.5vw, 70px); }
h2 { font-size: clamp(28px, 3.5vw, 46px); line-height: 1.1; }
h3 { font-size: 20px; }

.lead {
  font-size: 17px;
  color: var(--text2);
  font-weight: 300;
  max-width: 600px;
  margin: 18px 0 30px;
  line-height: 1.7;
}

.kicker {
  font: 600 10.5px 'DM Mono', monospace;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: var(--blue);
  margin-bottom: 14px;
  display: flex;
  gap: 8px;
  align-items: center;
}
.kicker::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 99px;
  background: var(--blue);
  box-shadow: 0 0 0 5px rgba(15,45,107,.12);
  flex-shrink: 0;
}

/* ── Layout ─────────────────────────────────────────────────── */
.wrap {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 5%;
}

/* ── Nav ────────────────────────────────────────────────────── */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-h);
  padding: 0 5%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(244,243,239,.92);
  backdrop-filter: blur(20px) saturate(1.5);
  -webkit-backdrop-filter: blur(20px) saturate(1.5);
  border-bottom: 1px solid var(--line);
}

.logo {
  display: flex;
  align-items: center;
  gap: 9px;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -.01em;
  color: var(--text);
}
.logo img {
  width: 30px; height: 30px;
  border-radius: 8px;
}

.nav-links {
  display: flex;
  gap: 2px;
  align-items: center;
}
.nav-links a {
  font-size: 13.5px;
  font-weight: 400;
  color: var(--text2);
  padding: 7px 13px;
  border-radius: 999px;
  transition: background .15s, color .15s;
}
.nav-links a:hover       { background: white; color: var(--text); }
.nav-links a.active      { background: white; color: var(--text); font-weight: 500; }
.nav-links .btn-nav {
  background: var(--blue);
  color: white;
  padding: 7px 16px;
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 500;
  transition: background .15s;
  margin-left: 6px;
}
.nav-links .btn-nav:hover { background: var(--blue2); }

/* User chip (injected by auth.js) */
.user-chip {
  display: flex;
  align-items: center;
  gap: 7px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 13px 5px 6px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  position: relative;
  user-select: none;
}
.user-chip:hover .user-dropdown { display: block; }

.user-avatar {
  width: 24px; height: 24px;
  border-radius: 99px;
  display: flex; align-items: center; justify-content: center;
  font-size: 10px; font-weight: 700;
  color: white; flex-shrink: 0;
}
.user-avatar.issuer   { background: var(--blue); }
.user-avatar.verifier { background: var(--blue3); }

.user-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  min-width: 210px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow);
  z-index: 300;
  overflow: hidden;
}
.user-dropdown-header {
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
}
.user-dropdown-header .name  { font-size: 13px; font-weight: 600; }
.user-dropdown-header .email { font-size: 12px; color: var(--muted); margin-top: 2px; }
.user-dropdown-header .type-pill {
  display: inline-block;
  font: 600 10px 'DM Mono', monospace;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: 999px;
  margin-top: 6px;
}
.type-pill.issuer   { background: var(--soft); color: var(--blue); }
.type-pill.verifier { background: #eff6ff; color: var(--blue3); }

.user-dropdown a {
  display: block;
  padding: 10px 16px;
  font-size: 13px;
  color: var(--text2);
  transition: background .1s;
}
.user-dropdown a:hover  { background: var(--bg); }
.user-dropdown .logout  { color: var(--red); border-top: 1px solid var(--line); }

/* ── Buttons ────────────────────────────────────────────────── */
.btn {
  border: 1px solid var(--line2);
  background: white;
  border-radius: 999px;
  padding: 12px 22px;
  font-weight: 500;
  font-size: 14.5px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  cursor: pointer;
  transition: all .15s;
  white-space: nowrap;
  font-family: inherit;
  line-height: 1;
}
.btn:hover            { background: var(--s2); }
.btn.primary          { background: var(--blue); border-color: var(--blue); color: white; }
.btn.primary:hover    { background: var(--blue2); border-color: var(--blue2); }
.btn.soft             { background: var(--soft); border-color: #c2d6fa; color: var(--blue); }
.btn.soft:hover       { background: #d8e9ff; }
.btn:disabled         { opacity: .45; cursor: not-allowed; pointer-events: none; }
.btn.full             { width: 100%; }
.btn-group            { display: flex; gap: 10px; flex-wrap: wrap; }

/* Spinner inside button */
.btn .spinner {
  width: 15px; height: 15px;
  border: 2px solid rgba(255,255,255,.25);
  border-top-color: white;
  border-radius: 99px;
  animation: spin .65s linear infinite;
  display: none;
  flex-shrink: 0;
}
.btn.primary.loading .spinner,
.btn.loading .spinner { display: block; }
.btn.loading .btn-label { opacity: .65; }

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

/* ── Cards ──────────────────────────────────────────────────── */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  box-shadow: var(--shadow);
}
.card.panel { padding: 32px; }

/* ── Hero ───────────────────────────────────────────────────── */
.hero {
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 64px;
  align-items: center;
  min-height: calc(100vh - var(--nav-h));
  padding: 72px 0;
}
.hero-proof {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--r);
  box-shadow: var(--shadow);
  padding: 28px;
  position: relative;
  overflow: hidden;
}
.badge-verified {
  width: 50px; height: 50px;
  border-radius: 99px;
  background: var(--blue);
  color: white;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
  margin-bottom: 14px;
}
.proof-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  border-top: 1px solid var(--line);
  padding: 11px 0;
  font-size: 13px;
}
.proof-row span:first-child { color: var(--muted); white-space: nowrap; }
.proof-row strong           { color: var(--text); font-weight: 500; text-align: right; }

/* ── Section ────────────────────────────────────────────────── */
.section { padding: 80px 0; border-top: 1px solid var(--line); }

/* ── Grid ───────────────────────────────────────────────────── */
.grid3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
}
.tile { background: white; padding: 30px 26px; }
.tile-num {
  font: 600 10.5px 'DM Mono', monospace;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--blue);
  margin-bottom: 12px;
}
.tile h3 { font-size: 18px; margin-bottom: 8px; }
.tile p  { color: var(--muted); font-size: 14px; line-height: 1.6; font-weight: 300; }

/* ── Split layout ───────────────────────────────────────────── */
.split {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 28px;
  align-items: start;
}

/* ── Stats ──────────────────────────────────────────────────── */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 24px;
}
.stat-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  padding: 22px 18px;
  box-shadow: var(--shadow-sm);
}
.stat-card h3 {
  font-family: 'DM Serif Display', serif;
  font-size: 34px;
  color: var(--blue);
  margin-bottom: 4px;
  letter-spacing: -.02em;
}
.stat-card p { color: var(--muted); font-size: 13px; }

/* ── Form fields ────────────────────────────────────────────── */
.field { margin-bottom: 14px; }
.field label {
  display: block;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--text2);
  margin-bottom: 6px;
  letter-spacing: .02em;
  text-transform: uppercase;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 11px 13px;
  border: 1px solid var(--line2);
  border-radius: 10px;
  background: var(--bg);
  font: 14px 'DM Sans', inherit;
  color: var(--text);
  outline: none;
  transition: border-color .15s, box-shadow .15s, background .15s;
  -webkit-appearance: none;
  appearance: none;
}
.field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='7' viewBox='0 0 12 7'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%2388887f' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 13px center;
  padding-right: 34px;
  cursor: pointer;
}
.field textarea { min-height: 90px; resize: vertical; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  background: white;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(15,45,107,.09);
}
.field input:disabled {
  opacity: 1;
  cursor: default;
}

/* ── Upload zone ────────────────────────────────────────────── */
.upload-zone {
  border: 1.5px dashed var(--line2);
  border-radius: 14px;
  background: white;
  padding: 28px 20px;
  text-align: center;
  cursor: pointer;
  margin-bottom: 18px;
  transition: border-color .15s, background .15s;
  display: block;
}
.upload-zone:hover              { border-color: var(--blue); background: var(--soft); }
.upload-zone.has-file           { border-color: var(--green); background: var(--greenBg); border-style: solid; }
.upload-zone .upload-icon       { font-size: 26px; margin-bottom: 8px; line-height: 1; }
.upload-zone strong             { display: block; font-size: 14px; font-weight: 500; margin-bottom: 3px; }
.upload-zone .upload-hint       { color: var(--muted); font-size: 13px; }
.upload-zone .upload-filename   {
  display: none;
  font: 500 12px 'DM Mono', monospace;
  color: var(--green);
  margin-top: 6px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.upload-zone.has-file .upload-filename { display: block; }
.upload-zone.has-file .upload-hint     { display: none; }
input[type="file"] { display: none; }

/* ── API code block ─────────────────────────────────────────── */
.api-block {
  background: #0b1836;
  color: #bdd0f0;
  border-radius: 14px;
  padding: 20px 22px;
  font: 12.5px 'DM Mono', monospace;
  line-height: 1.75;
  overflow-x: auto;
  position: relative;
  border: 1px solid rgba(255,255,255,.05);
}
.api-block .method  { color: #6fa3f5; }
.api-block .path    { color: #99c4ff; }
.api-block .key     { color: #8dd4d4; }
.api-block .val     { color: #b8e8a0; }
.api-block .num     { color: #f0b86e; }
.api-block .dim     { color: #4e6d9e; }
.api-block .copy-btn {
  position: absolute;
  top: 11px; right: 11px;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.1);
  color: #7a9abe;
  border-radius: 6px;
  padding: 3px 9px;
  font: 10.5px 'DM Mono', monospace;
  cursor: pointer;
  transition: background .15s, color .15s;
}
.api-block .copy-btn:hover { background: rgba(255,255,255,.14); color: white; }

/* ── Result panels ──────────────────────────────────────────── */
.result-panel {
  display: none;
  border-radius: var(--r-sm);
  padding: 22px;
  border: 1px solid var(--line);
  margin-top: 14px;
  animation: fadeUp .2s ease;
}
.result-panel.show { display: block; }
.result-panel.ok   { background: var(--greenBg);  border-color: var(--greenBd); }
.result-panel.warn { background: var(--orangeBg); border-color: var(--orangeBd); }
.result-panel.err  { background: var(--redBg);    border-color: var(--redBd); }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 999px;
  font: 700 10px 'DM Mono', monospace;
  text-transform: uppercase;
  letter-spacing: .07em;
  margin-bottom: 12px;
}
.status-badge::before {
  content: '';
  width: 5px; height: 5px;
  border-radius: 99px;
}
.ok   .status-badge              { background: white; color: var(--green);  }
.ok   .status-badge::before      { background: var(--green);  }
.warn .status-badge              { background: white; color: var(--orange); }
.warn .status-badge::before      { background: var(--orange); }
.err  .status-badge              { background: white; color: var(--red);    }
.err  .status-badge::before      { background: var(--red);    }

.result-panel h2 {
  font-family: 'DM Sans', sans-serif;
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 6px;
}
.result-panel p {
  font-size: 13.5px;
  color: var(--text2);
  margin-bottom: 10px;
  line-height: 1.6;
}

.hash-block {
  font: 11.5px 'DM Mono', monospace;
  word-break: break-all;
  color: var(--text2);
  background: rgba(255,255,255,.7);
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 12px 14px;
  margin-top: 10px;
  line-height: 1.85;
}
.hash-block strong {
  color: var(--text);
  display: inline-block;
  min-width: 140px;
}

.detail-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  padding: 9px 0;
  border-bottom: 1px solid rgba(0,0,0,.055);
  gap: 12px;
}
.detail-row:last-child          { border-bottom: none; }
.detail-row span:first-child    { color: var(--text2); white-space: nowrap; }
.detail-row strong              { color: var(--text); font-weight: 500; text-align: right; }

/* ── Data table ─────────────────────────────────────────────── */
.data-table {
  border-radius: var(--r-sm);
  overflow: hidden;
  border: 1px solid var(--line);
}
.table-head,
.table-row {
  display: grid;
  grid-template-columns: 1.4fr 1fr .9fr .8fr .6fr;
  gap: 10px;
  padding: 13px 16px;
  align-items: center;
}
.table-head {
  background: var(--s2);
  font: 600 10.5px 'DM Mono', monospace;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .07em;
  border-bottom: 1px solid var(--line);
}
.table-row {
  background: white;
  font-size: 13.5px;
  border-bottom: 1px solid var(--line);
  transition: background .1s;
}
.table-row:last-child   { border-bottom: none; }
.table-row:hover        { background: var(--s2); }
.table-row strong       { font-weight: 500; }

.pill-status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px;
  border-radius: 999px;
  font: 600 10px 'DM Mono', monospace;
  text-transform: uppercase;
  letter-spacing: .05em;
}
.pill-status.certified          { background: var(--greenBg); color: var(--green); }
.pill-status.certified::before  { content: ''; width: 5px; height: 5px; border-radius: 99px; background: var(--green); }
.pill-status.pending            { background: var(--orangeBg); color: var(--orange); }

/* ── Footer ─────────────────────────────────────────────────── */
.footer {
  padding: 24px 5%;
  border-top: 1px solid var(--line);
  background: white;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  font-size: 13px;
  color: var(--muted);
}
.footer-links          { display: flex; gap: 18px; }
.footer-links a        { color: var(--muted); transition: color .15s; }
.footer-links a:hover  { color: var(--text); }

/* ── Toast ──────────────────────────────────────────────────── */
.toast {
  position: fixed;
  bottom: 24px; right: 24px;
  z-index: 999;
  background: var(--text);
  color: white;
  padding: 11px 17px;
  border-radius: 11px;
  font-size: 13.5px;
  font-weight: 500;
  box-shadow: 0 8px 28px rgba(0,0,0,.22);
  opacity: 0;
  transform: translateY(6px);
  transition: all .18s;
  pointer-events: none;
}
.toast.show { opacity: 1; transform: none; }

/* ── Mobile bottom tabs ─────────────────────────────────────── */
.mobile-tabs { display: none; }

/* ══════════════════════════════════════════════════════════════
   AUTH PAGES
   ══════════════════════════════════════════════════════════════ */

.auth-root {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 100vh;
}

/* Left panel — branding */
.auth-left {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 60px 64px;
  background: var(--bg);
}

/* Right panel — form (issuer = light, verifier = dark) */
.auth-right {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 60px 48px;
  background: white;
  border-left: 1px solid var(--line);
}

/* Verifier dark form */
.auth-right.verifier-side {
  background: #0b1836;
  border-left: none;
}
.auth-right.verifier-side .auth-form-wrap {
  background: rgba(255,255,255,.04);
  border-color: rgba(255,255,255,.09);
}
.auth-right.verifier-side h2,
.auth-right.verifier-side label {
  color: white;
}
.auth-right.verifier-side .field label {
  color: #7a9abe;
}
.auth-right.verifier-side p {
  color: #7a9abe !important;
}
.auth-right.verifier-side .field input,
.auth-right.verifier-side .field select {
  background: rgba(255,255,255,.06);
  border-color: rgba(255,255,255,.1);
  color: white;
}
.auth-right.verifier-side .field input::placeholder {
  color: #4a6585;
}
.auth-right.verifier-side .field input:focus,
.auth-right.verifier-side .field select:focus {
  background: rgba(255,255,255,.1);
  border-color: #5580c0;
  box-shadow: 0 0 0 3px rgba(85,128,192,.18);
}
.auth-right.verifier-side .btn.primary {
  background: var(--blue3);
  border-color: var(--blue3);
}
.auth-right.verifier-side .btn.primary:hover {
  background: #1d55d0;
}
.auth-right.verifier-side .auth-toggle { color: #5e7da0; }
.auth-right.verifier-side .auth-toggle a { color: #7ab0f0; }

/* Form tabs (sign in / create account) */
.form-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3px;
  background: var(--bg);
  border-radius: 10px;
  padding: 3px;
  margin-bottom: 22px;
}
.verifier-side .form-tabs { background: rgba(255,255,255,.07); }

.form-tab {
  padding: 8px;
  text-align: center;
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  border-radius: 7px;
  cursor: pointer;
  transition: all .15s;
  border: none;
  background: transparent;
  font-family: inherit;
}
.form-tab.active {
  background: white;
  color: var(--text);
  box-shadow: 0 1px 4px rgba(0,0,0,.08);
}
.verifier-side .form-tab.active {
  background: rgba(255,255,255,.12);
  color: white;
}

/* Badges */
.auth-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 11px;
  border-radius: 999px;
  font: 600 10.5px 'DM Mono', monospace;
  text-transform: uppercase;
  letter-spacing: .09em;
  margin-bottom: 18px;
}
.auth-badge.issuer   { background: var(--soft);           border: 1px solid #c0d6fa; color: var(--blue);  }
.auth-badge.verifier { background: rgba(37,99,235,.12);   border: 1px solid rgba(37,99,235,.25); color: #93c5fd; }

.auth-left-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 999px;
  font: 600 10.5px 'DM Mono', monospace;
  text-transform: uppercase;
  letter-spacing: .09em;
  margin-bottom: 20px;
  border: 1px solid var(--line2);
  color: var(--muted);
  background: white;
}

/* Form wrap */
.auth-form-wrap {
  width: 100%;
  max-width: 370px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 34px 30px;
  box-shadow: var(--shadow);
}

/* Error / success banners */
.auth-error {
  background: var(--redBg);
  border: 1px solid var(--redBd);
  border-radius: 9px;
  padding: 11px 13px;
  font-size: 13px;
  color: var(--red);
  margin-bottom: 14px;
  display: none;
  line-height: 1.5;
}
.auth-error.show   { display: block; }
.auth-success {
  background: var(--greenBg);
  border: 1px solid var(--greenBd);
  border-radius: 9px;
  padding: 11px 13px;
  font-size: 13px;
  color: var(--green);
  margin-bottom: 14px;
  display: none;
  line-height: 1.5;
}
.auth-success.show { display: block; }

/* Toggle link */
.auth-toggle {
  font-size: 12.5px;
  color: var(--text2);
  text-align: center;
  margin-top: 18px;
}
.auth-toggle a { color: var(--blue); font-weight: 500; }

/* Auth feature rows */
.auth-feature {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 22px;
}
.auth-feature-icon {
  width: 38px; height: 38px;
  border-radius: 11px;
  background: white;
  border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
  font-size: 17px;
  flex-shrink: 0;
}
.auth-feature-text h4 { font-size: 13.5px; font-weight: 600; margin-bottom: 2px; }
.auth-feature-text p  { font-size: 13px; color: var(--muted); line-height: 1.5; }

/* ══════════════════════════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════════════════════════ */

@media (max-width: 1000px) {
  .hero           { grid-template-columns: 1fr; min-height: unset; padding: 52px 0; gap: 36px; }
  .split          { grid-template-columns: 1fr; }
  .grid3          { grid-template-columns: 1fr; }
  .stat-grid      { grid-template-columns: 1fr 1fr; }
  .auth-root      { grid-template-columns: 1fr; }
  .auth-left      { display: none; }
  .auth-right     { padding: 48px 24px; border-left: none; min-height: 100vh; }
}

@media (max-width: 680px) {
  .nav            { padding: 0 16px; }
  .wrap           { padding: 0 16px; }

  .nav-links a:not(.btn-nav):not(.keep) { display: none; }

  .footer         { flex-direction: column; text-align: center; padding-bottom: 88px; }
  .footer-links   { flex-wrap: wrap; justify-content: center; }

  .stat-grid      { grid-template-columns: 1fr; }

  .table-head,
  .table-row {
    grid-template-columns: 1.1fr 1fr .7fr;
  }
  .table-head span:nth-child(n+4),
  .table-row  span:nth-child(n+4)  { display: none; }

  .mobile-tabs {
    position: fixed;
    bottom: 0; left: 0; right: 0;
    z-index: 200;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    background: rgba(255,255,255,.96);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-top: 1px solid var(--line);
    padding: 6px 8px calc(6px + env(safe-area-inset-bottom));
  }
  .mobile-tabs a {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    font-size: 10.5px;
    font-weight: 500;
    color: var(--muted);
    padding: 7px 4px;
    border-radius: 9px;
    transition: background .15s, color .15s;
  }
  .mobile-tabs a.active     { background: var(--soft); color: var(--blue); }
  .mobile-tabs .tab-icon    { font-size: 17px; line-height: 1; }

  .auth-form-wrap { padding: 28px 22px; }
}