/* =============================================================
   TRUSTED & TRUE — Brand-aligned styles
   Palette: #aa1945 · #82002b · #391306 · #ffcccc · #fcf4f6
   Font:    Red Hat Display
   ============================================================= */

@import url('https://fonts.googleapis.com/css2?family=Red+Hat+Display:wght@400;500;600;700;800;900&display=swap');

:root {
  --tnt-primary:     #aa1945;
  --tnt-dark:        #82002b;
  --tnt-deeper:      #391306;
  --tnt-light-pink:  #ffcccc;
  --tnt-bg:          #fcf4f6;
  --tnt-bg-beige:    #cbbbb9;
  --tnt-bg-beige2:   #cdc4c1;
  --tnt-white:       #ffffff;
  --tnt-text:        #1a0a0d;
  --tnt-text-mid:    #5a3040;
  --tnt-text-muted:  #9a7480;
  --tnt-border:      rgba(170,25,69,.15);
  --tnt-shadow:      0 4px 24px rgba(130,0,43,.12);
  --tnt-shadow-lg:   0 12px 48px rgba(130,0,43,.18);
}

body.tnt-app {
  font-family: 'Red Hat Display', sans-serif;
  background: var(--tnt-bg);
  color: var(--tnt-text);
}

/* ── Layout ─────────────────────────────────────────────────── */
.tnt-screen {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding-bottom: 56px; /* demo nav clearance */
}

/* ── Top Bar ────────────────────────────────────────────────── */
.tnt-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 28px;
  background: var(--tnt-white);
  border-bottom: 1px solid var(--tnt-border);
  box-shadow: 0 1px 8px rgba(130,0,43,.06);
}
.tnt-logo-mark {
  display: flex;
  align-items: center;
  gap: 10px;
}
.tnt-logo-hearts {
  width: 34px;
  height: 34px;
}
.tnt-logo-text {
  font-size: 18px;
  font-weight: 900;
  color: var(--tnt-primary);
  letter-spacing: -.3px;
  line-height: 1;
}
.tnt-logo-text span { color: var(--tnt-deeper); }
.tnt-topbar-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* ── Hero / Login ───────────────────────────────────────────── */
.tnt-hero {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  background: linear-gradient(155deg, #fcf4f6 0%, #fff0f3 40%, #fce8ee 100%);
}
.tnt-login-card {
  background: var(--tnt-white);
  border-radius: 20px;
  padding: 44px 40px;
  max-width: 420px;
  width: 100%;
  box-shadow: var(--tnt-shadow-lg);
  text-align: center;
  animation: scaleIn .3s ease;
}
.tnt-login-tagline {
  font-size: 28px;
  font-weight: 900;
  color: var(--tnt-deeper);
  line-height: 1.25;
  margin-bottom: 8px;
  letter-spacing: -.5px;
}
.tnt-login-sub {
  font-size: 15px;
  color: var(--tnt-text-muted);
  margin-bottom: 32px;
  font-weight: 500;
}
.tnt-trust-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 12px;
  color: var(--tnt-text-muted);
  font-weight: 500;
  margin-bottom: 24px;
}
.tnt-trust-bar-dot {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--tnt-bg-beige);
}

/* ── Buttons ────────────────────────────────────────────────── */
.btn-osmio {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 20px;
  background: var(--tnt-primary);
  color: #fff;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 700;
  font-family: 'Red Hat Display', sans-serif;
  transition: background .2s ease, transform .1s ease, box-shadow .2s ease;
  box-shadow: 0 4px 16px rgba(170,25,69,.35);
  margin-bottom: 12px;
}
.btn-osmio:hover {
  background: var(--tnt-dark);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(130,0,43,.4);
}
.btn-osmio:active { transform: translateY(0); }
.btn-osmio svg { flex-shrink: 0; }

.btn-outline-tnt {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 20px;
  border: 1.5px solid var(--tnt-border);
  color: var(--tnt-primary);
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  font-family: 'Red Hat Display', sans-serif;
  transition: all .18s ease;
  background: transparent;
}
.btn-outline-tnt:hover { background: rgba(170,25,69,.06); border-color: var(--tnt-primary); }

.btn-tnt-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 24px;
  background: var(--tnt-primary);
  color: #fff;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 700;
  font-family: 'Red Hat Display', sans-serif;
  transition: all .18s ease;
  box-shadow: 0 2px 12px rgba(170,25,69,.3);
}
.btn-tnt-primary:hover { background: var(--tnt-dark); }

.tnt-demo-links {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 16px;
}
.tnt-demo-link {
  font-size: 12.5px;
  color: var(--tnt-text-muted);
  cursor: pointer;
  padding: 4px;
  border-radius: 6px;
  transition: color .15s ease;
}
.tnt-demo-link:hover { color: var(--tnt-primary); }
.tnt-demo-link-label { font-weight: 600; font-size: 10px; letter-spacing: .5px; text-transform: uppercase; color: var(--tnt-bg-beige); margin-top: 4px; }

/* ── Cert Check Screen ──────────────────────────────────────── */
.tnt-cert-screen {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(155deg, #fcf4f6 0%, #fff0f3 60%, #fce8ee 100%);
  padding: 40px 20px;
}
.tnt-cert-card {
  background: #fff;
  border-radius: 20px;
  padding: 44px 40px;
  max-width: 460px;
  width: 100%;
  box-shadow: var(--tnt-shadow-lg);
  animation: scaleIn .3s ease;
}
.tnt-cert-header {
  text-align: center;
  margin-bottom: 32px;
}
.tnt-cert-icon-wrap {
  width: 64px; height: 64px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--tnt-primary), var(--tnt-dark));
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  box-shadow: 0 4px 16px rgba(170,25,69,.3);
}
.tnt-cert-header h2 { font-size: 20px; font-weight: 800; color: var(--tnt-deeper); }
.tnt-cert-header p  { font-size: 13.5px; color: var(--tnt-text-muted); margin-top: 4px; }

.cert-steps { display: flex; flex-direction: column; gap: 0; }
.cert-step {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(170,25,69,.07);
  animation: slideInLeft .3s ease;
}
.cert-step:last-child { border-bottom: none; }
.cert-step-icon {
  width: 28px; height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
}
.cert-step-icon.loading { background: rgba(170,25,69,.1); color: var(--tnt-primary); }
.cert-step-icon.success { background: rgba(6,214,160,.15); color: #06d6a0; }
.cert-step-icon.info    { background: rgba(59,130,246,.12); color: #60a5fa; }
.cert-step-text { flex: 1; }
.cert-step-text strong { font-size: 14px; font-weight: 700; color: var(--tnt-deeper); display: block; }
.cert-step-text span   { font-size: 12px; color: var(--tnt-text-muted); font-weight: 500; }
.cert-step-idqa {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  background: linear-gradient(90deg, rgba(6,214,160,.15), rgba(6,214,160,.08));
  border: 1px solid rgba(6,214,160,.3);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
  color: #06d6a0;
  margin-top: 4px;
}

/* ── Access Denied ──────────────────────────────────────────── */
.tnt-denied-screen {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(155deg, #fcf4f6 0%, #fff0f3 100%);
  padding: 40px 20px;
}
.tnt-denied-card {
  background: #fff;
  border-radius: 20px;
  padding: 48px 40px;
  max-width: 420px;
  width: 100%;
  box-shadow: var(--tnt-shadow-lg);
  text-align: center;
  animation: scaleIn .3s ease;
}
.tnt-denied-icon {
  width: 68px; height: 68px;
  border-radius: 50%;
  background: rgba(239,71,111,.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  border: 2px solid rgba(239,71,111,.25);
}
.tnt-denied-card h2 { font-size: 22px; font-weight: 800; color: var(--tnt-deeper); margin-bottom: 8px; }
.tnt-denied-card p  { font-size: 14.5px; color: var(--tnt-text-muted); margin-bottom: 28px; line-height: 1.6; }

/* ── Redirecting Screen ─────────────────────────────────────── */
.tnt-redirect-screen {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(155deg, #fcf4f6 0%, #fce8ee 100%);
}
.tnt-redirect-card {
  text-align: center;
  padding: 48px 40px;
  max-width: 380px;
  width: 100%;
  animation: scaleIn .3s ease;
}
.tnt-redirect-spinner {
  width: 72px; height: 72px;
  border-radius: 50%;
  background: var(--tnt-white);
  box-shadow: var(--tnt-shadow-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
}
.tnt-redirect-card h2 { font-size: 20px; font-weight: 800; color: var(--tnt-deeper); margin-bottom: 8px; }
.tnt-redirect-card p  { font-size: 14px; color: var(--tnt-text-muted); }
.tnt-redirect-progress {
  margin: 24px auto 0;
  height: 4px;
  background: rgba(170,25,69,.1);
  border-radius: 999px;
  overflow: hidden;
  max-width: 200px;
}
.tnt-redirect-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--tnt-primary), var(--tnt-light-pink));
  border-radius: 999px;
  width: 0%;
  transition: width 2s ease;
}

/* ── Dashboard ──────────────────────────────────────────────── */
.tnt-dashboard {
  flex: 1;
  padding: 28px;
  max-width: 960px;
  margin: 0 auto;
  width: 100%;
}
.tnt-dash-welcome {
  font-size: 13px;
  font-weight: 600;
  color: var(--tnt-text-muted);
  text-transform: uppercase;
  letter-spacing: .8px;
  margin-bottom: 4px;
}
.tnt-dash-name {
  font-size: 26px;
  font-weight: 900;
  color: var(--tnt-deeper);
  letter-spacing: -.5px;
  margin-bottom: 24px;
}

.tnt-profile-grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 20px;
  margin-bottom: 20px;
}
@media (max-width: 700px) { .tnt-profile-grid { grid-template-columns: 1fr; } }

.tnt-profile-card {
  background: var(--tnt-white);
  border-radius: 16px;
  padding: 28px;
  box-shadow: var(--tnt-shadow);
  text-align: center;
}
.tnt-profile-avatar {
  width: 80px; height: 80px;
  border-radius: 50%;
  margin: 0 auto 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--tnt-primary), var(--tnt-dark));
  font-size: 28px;
  font-weight: 900;
  color: #fff;
  box-shadow: 0 4px 16px rgba(170,25,69,.3);
}
.tnt-profile-fullname {
  font-size: 18px;
  font-weight: 800;
  color: var(--tnt-deeper);
  margin-bottom: 4px;
}
.tnt-profile-stats {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 0;
  margin-top: 20px;
  border-top: 1px solid var(--tnt-border);
  padding-top: 16px;
}
.tnt-stat { text-align: center; padding: 0 4px; }
.tnt-stat + .tnt-stat { border-left: 1px solid var(--tnt-border); }
.tnt-stat-val { font-size: 22px; font-weight: 900; color: var(--tnt-primary); }
.tnt-stat-label { font-size: 11px; color: var(--tnt-text-muted); font-weight: 600; text-transform: uppercase; letter-spacing: .4px; }

.tnt-moi-data-card {
  background: var(--tnt-white);
  border-radius: 16px;
  padding: 28px;
  box-shadow: var(--tnt-shadow);
}
.tnt-moi-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}
.tnt-moi-title {
  font-size: 14px;
  font-weight: 800;
  color: var(--tnt-deeper);
  text-transform: uppercase;
  letter-spacing: .6px;
}
.tnt-moi-source {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  color: var(--tnt-text-muted);
  font-weight: 600;
  background: rgba(170,25,69,.06);
  padding: 4px 10px;
  border-radius: 8px;
  border: 1px solid var(--tnt-border);
}

.tnt-field-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
@media (max-width: 500px) { .tnt-field-grid { grid-template-columns: 1fr; } }

.tnt-field {
  padding: 12px 14px;
  background: var(--tnt-bg);
  border-radius: 10px;
  border: 1px solid var(--tnt-border);
}
.tnt-field-label {
  font-size: 11px;
  color: var(--tnt-text-muted);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .5px;
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.tnt-field-value {
  font-size: 15px;
  font-weight: 700;
  color: var(--tnt-deeper);
}
.tnt-field-not-shared {
  font-size: 13px;
  color: var(--tnt-text-muted);
  font-style: italic;
}

.tnt-interests-card {
  background: var(--tnt-white);
  border-radius: 16px;
  padding: 24px 28px;
  box-shadow: var(--tnt-shadow);
}
.tnt-interests-title {
  font-size: 13px;
  font-weight: 800;
  color: var(--tnt-deeper);
  text-transform: uppercase;
  letter-spacing: .6px;
  margin-bottom: 14px;
}
.tnt-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tnt-tag {
  padding: 5px 14px;
  background: rgba(170,25,69,.07);
  color: var(--tnt-primary);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  border: 1px solid rgba(170,25,69,.15);
}

.tnt-cta-bar {
  display: flex;
  gap: 12px;
  margin-top: 20px;
  flex-wrap: wrap;
}

/* ── MOI data notice ────────────────────────────────────────── */
.tnt-moi-notice {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: linear-gradient(90deg, rgba(6,214,160,.08), rgba(6,214,160,.04));
  border: 1px solid rgba(6,214,160,.2);
  border-radius: 10px;
  margin-bottom: 20px;
  font-size: 12.5px;
  color: #06d6a0;
  font-weight: 600;
}
.tnt-moi-notice svg { flex-shrink: 0; }
