/* ════════════════════════════════════════════════════
   Venturi for Pennylane — Design System
   Couleurs & tokens calqués sur l'UI Pennylane
   ════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --green:        #00C98D;
  --green-dark:   #00A876;
  --green-light:  #E6FAF4;
  --green-mid:    #B3F0DC;
  --dark:         #1A1F2E;
  --dark-2:       #252B3B;
  --gray:         #6B7280;
  --gray-2:       #9CA3AF;
  --gray-light:   #F4F5F7;
  --border:       #E5E7EB;
  --border-2:     #F3F4F6;
  --white:        #FFFFFF;
  --purple:       #4F46E5;
  --purple-light: #EEF2FF;
  --amber:        #F59E0B;
  --amber-light:  #FFFBEB;
  --red:          #DC2626;
  --red-light:    #FEF2F2;
  --radius:       10px;
  --radius-sm:    6px;
  --shadow:       0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.04);
  --shadow-md:    0 4px 14px rgba(0,0,0,.08);
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--gray-light);
  color: var(--dark);
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* ── HEADER ── */
.pl-header {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  height: 56px;
  position: sticky;
  top: 0;
  z-index: 200;
}
.pl-header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 32px;
}
.pl-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--dark);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: -0.02em;
  flex-shrink: 0;
}
.pl-logo {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  background: var(--green);
  display: flex;
  align-items: center;
  justify-content: center;
}
.pl-brand-sub {
  font-weight: 400;
  font-size: 12px;
  color: var(--gray);
  border-left: 1px solid var(--border);
  padding-left: 8px;
  margin-left: 2px;
}
.pl-nav { display: flex; gap: 4px; }
.pl-nav-link {
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  color: var(--gray);
  font-size: 13px;
  font-weight: 500;
  transition: all .15s;
}
.pl-nav-link:hover, .pl-nav-link.active {
  background: var(--gray-light);
  color: var(--dark);
}
.pl-header-actions { margin-left: auto; display: flex; gap: 8px; align-items: center; }

/* ── BUTTONS ── */
.pl-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all .15s;
  border: none;
  text-decoration: none;
  white-space: nowrap;
}
.pl-btn-green { background: var(--green); color: #fff; }
.pl-btn-green:hover:not(:disabled) { background: var(--green-dark); transform: translateY(-1px); box-shadow: 0 4px 12px rgba(0,201,141,.28); }
.pl-btn-green:disabled { background: var(--gray-2); cursor: not-allowed; transform: none !important; }
.pl-btn-ghost { background: var(--white); color: var(--gray); border: 1.5px solid var(--border); }
.pl-btn-ghost:hover { border-color: var(--green); color: var(--green); }
.pl-btn-sm { padding: 6px 12px; font-size: 12px; }
.pl-btn-lg { padding: 11px 24px; font-size: 14px; }

/* ── CARDS ── */
.pl-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

/* ── FORM FIELDS ── */
.pl-field { display: flex; flex-direction: column; gap: 5px; }
.pl-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--dark);
}
.pl-label .req { color: var(--green); }
.pl-input {
  width: 100%;
  border: 1.5px solid var(--border);
  background: var(--white);
  color: var(--dark);
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 13px;
  outline: none;
  transition: border-color .15s, box-shadow .15s;
}
.pl-input:focus { border-color: var(--green); box-shadow: 0 0 0 3px rgba(0,201,141,.12); }
.pl-input-pw { padding-right: 40px; }
.pl-hint { font-size: 11px; color: var(--gray-2); }
.pl-field-wrap { position: relative; }
.pl-eye {
  position: absolute; right: 10px; top: 50%; transform: translateY(-50%);
  background: none; border: none; cursor: pointer; color: var(--gray); font-size: 14px; padding: 2px;
}

/* ── CHIPS ── */
.pl-chip { display: inline-flex; align-items: center; gap: 4px; padding: 2px 9px; border-radius: 20px; font-size: 11px; font-weight: 600; white-space: nowrap; }
.pl-chip-green  { background: var(--green-light); color: var(--green-dark); border: 1px solid var(--green-mid); }
.pl-chip-indigo { background: var(--purple-light); color: var(--purple); border: 1px solid #C7D2FE; }
.pl-chip-amber  { background: var(--amber-light); color: #92400E; border: 1px solid #FDE68A; }
.pl-chip-ok     { background: #F0FDF4; color: #16A34A; border: 1px solid #BBF7D0; }
.pl-chip-err    { background: var(--red-light); color: var(--red); border: 1px solid #FECACA; }
.pl-chip-muted  { background: #F1F5F9; color: #64748B; border: 1px solid #E2E8F0; }

/* ── ALERTS ── */
.pl-alert { border-radius: var(--radius-sm); padding: 10px 14px; display: flex; gap: 9px; align-items: flex-start; font-size: 12px; line-height: 1.5; }
.pl-alert-err   { background: var(--red-light); border: 1px solid #FECACA; color: #B91C1C; }
.pl-alert-warn  { background: var(--amber-light); border: 1px solid #FDE68A; color: #92400E; }
.pl-alert-info  { background: var(--green-light); border: 1px solid var(--green-mid); color: var(--green-dark); }
.pl-alert-title { font-weight: 700; font-size: 13px; display: block; margin-bottom: 2px; }

/* ── PROGRESS ── */
.pl-progress-bg { height: 5px; background: var(--gray-light); border-radius: 4px; overflow: hidden; }
.pl-progress-fill { height: 100%; background: linear-gradient(90deg, var(--green), #00E8A6); border-radius: 4px; transition: width .4s ease; }

/* ── TABLE ── */
.pl-table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius-sm); }
.pl-table { border-collapse: collapse; width: 100%; }
.pl-table th { background: var(--gray-light); color: var(--gray); font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; padding: 9px 12px; text-align: left; border-bottom: 1px solid var(--border); white-space: nowrap; }
.pl-table th.xref { background: var(--amber-light); color: #92400E; }
.pl-table td { font-size: 12px; padding: 8px 12px; border-bottom: 1px solid var(--border-2); white-space: nowrap; max-width: 200px; overflow: hidden; text-overflow: ellipsis; }
.pl-table tr:last-child td { border-bottom: none; }
.pl-table tr:hover td { background: var(--green-light); }
.pl-table td.xref-val { background: #FFFDF0; }
.pl-table tr:hover td.xref-val { background: #FEF9C3; }
.pl-table .empty { text-align: center; color: var(--gray); padding: 36px !important; font-size: 13px; }

/* ── ID BADGE ── */
.pl-id { font-family: 'Fira Code', 'SF Mono', monospace; font-size: 10px; background: var(--green-light); color: var(--green-dark); padding: 2px 7px; border-radius: 4px; border: 1px solid var(--green-mid); display: inline-block; max-width: 130px; overflow: hidden; text-overflow: ellipsis; vertical-align: middle; }

/* ── STAT PILL ── */
.pl-stat-pill { background: var(--gray-light); border-radius: var(--radius-sm); padding: 10px 14px; display: flex; align-items: baseline; gap: 5px; }
.pl-stat-n { font-size: 22px; font-weight: 700; letter-spacing: -0.03em; }
.pl-stat-l { font-size: 11px; color: var(--gray); font-weight: 500; }

/* ── TABS ── */
.pl-tabs-bar { display: flex; gap: 2px; background: var(--white); border: 1px solid var(--border); border-radius: 10px 10px 0 0; padding: 6px 6px 0; overflow-x: auto; }
.pl-tab {
  display: flex; align-items: center; gap: 6px;
  padding: 9px 14px; border-radius: 7px 7px 0 0; border: none;
  background: transparent; cursor: pointer; font-family: inherit;
  font-size: 13px; font-weight: 500; color: var(--gray);
  transition: all .15s; white-space: nowrap;
  border-bottom: 2px solid transparent;
}
.pl-tab:hover { background: var(--gray-light); color: var(--dark); }
.pl-tab.active { background: var(--green-light); color: var(--green-dark); border-bottom-color: var(--green); font-weight: 600; }
.pl-tab-count { font-size: 10px; background: var(--green-mid); color: var(--green-dark); padding: 1px 6px; border-radius: 10px; font-weight: 700; display: none; }
.pl-tab.has-data .pl-tab-count { display: inline; }
.pl-tab-xref { font-size: 10px; background: #FEF3C7; color: #92400E; padding: 1px 6px; border-radius: 10px; font-weight: 700; display: none; }
.pl-tab.has-xref .pl-tab-xref { display: inline; }

.pl-tab-panel { background: var(--white); border: 1px solid var(--border); border-top: none; border-radius: 0 0 10px 10px; padding: 24px; min-height: 220px; }

/* ── AUTH PAGES ── */
.pl-auth-wrap { min-height: 100vh; background: var(--gray-light); display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 24px; }
.pl-auth-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 36px; width: 100%; max-width: 400px; box-shadow: var(--shadow-md); }
.pl-auth-logo { display: flex; align-items: center; gap: 8px; justify-content: center; margin-bottom: 28px; }
.pl-auth-title { font-size: 20px; font-weight: 700; letter-spacing: -0.02em; text-align: center; margin-bottom: 6px; }
.pl-auth-sub { font-size: 13px; color: var(--gray); text-align: center; margin-bottom: 24px; }
.pl-form-stack { display: flex; flex-direction: column; gap: 16px; }
.pl-divider { border: none; border-top: 1px solid var(--border); margin: 20px 0; }
.pl-auth-footer { font-size: 12px; color: var(--gray); text-align: center; }
.pl-auth-footer a { color: var(--green); text-decoration: none; font-weight: 500; }

/* ── DASHBOARD LAYOUT ── */
.pl-app { display: flex; min-height: 100vh; }
.pl-sidebar { width: 220px; background: var(--white); border-right: 1px solid var(--border); padding: 20px 12px; display: flex; flex-direction: column; flex-shrink: 0; position: sticky; top: 0; height: 100vh; }
.pl-sidebar-brand { display: flex; align-items: center; gap: 8px; padding: 8px; margin-bottom: 24px; font-weight: 700; font-size: 14px; color: var(--dark); text-decoration: none; }
.pl-sidebar-section { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--gray-2); padding: 0 8px; margin-bottom: 6px; margin-top: 16px; }
.pl-sidebar-link { display: flex; align-items: center; gap: 9px; padding: 8px 10px; border-radius: var(--radius-sm); text-decoration: none; color: var(--gray); font-size: 13px; font-weight: 500; transition: all .15s; }
.pl-sidebar-link:hover { background: var(--gray-light); color: var(--dark); }
.pl-sidebar-link.active { background: var(--green-light); color: var(--green-dark); font-weight: 600; }
.pl-sidebar-icon { font-size: 16px; }
.pl-main { flex: 1; padding: 32px; overflow-x: hidden; }
.pl-page-header { margin-bottom: 24px; }
.pl-page-title { font-size: 20px; font-weight: 700; letter-spacing: -0.02em; margin-bottom: 4px; }
.pl-page-sub { font-size: 13px; color: var(--gray); }
.pl-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.pl-grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }

/* ── UTILITIES ── */
.pl-main-wrap { max-width: 1080px; margin: 0 auto; padding: 32px 24px; }
.mb-4  { margin-bottom: 16px; }
.mb-5  { margin-bottom: 20px; }
.mb-6  { margin-bottom: 24px; }
.flex  { display: flex; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-2 { gap: 8px; }
.gap-3 { gap: 12px; }
.gap-4 { gap: 16px; }
.flex-wrap { flex-wrap: wrap; }
.hidden { display: none !important; }
.text-gray { color: var(--gray); }
.text-sm { font-size: 12px; }
.font-bold { font-weight: 700; }

/* ── ANIMATIONS ── */
@keyframes fadeUp { from { opacity:0; transform:translateY(8px); } to { opacity:1; transform:translateY(0); } }
@keyframes spin { to { transform: rotate(360deg); } }
.fu  { animation: fadeUp .28s ease both; }
.fu1 { animation-delay:.06s; }
.fu2 { animation-delay:.12s; }
.spinner { display: inline-block; animation: spin .8s linear infinite; }

/* ── MODAL ── */
.pl-overlay { position: fixed; inset: 0; background: rgba(15,23,42,.45); z-index: 300; display: flex; align-items: center; justify-content: center; padding: 24px; }
.pl-modal { background: var(--white); border-radius: var(--radius); padding: 28px; width: 100%; max-width: 480px; box-shadow: 0 20px 60px rgba(0,0,0,.18); }
.pl-modal-title { font-size: 16px; font-weight: 700; margin-bottom: 6px; }
.pl-modal-sub { font-size: 13px; color: var(--gray); margin-bottom: 20px; }

/* ── XREF BANNER ── */
.xref-banner { background: linear-gradient(135deg, #0f2a1a 0%, #0d1a35 100%); border: 1px solid #1a4d30; border-radius: var(--radius); padding: 14px 18px; display: flex; align-items: center; gap: 14px; }
.xref-dot { width: 8px; height: 8px; border-radius: 50%; background: #2D3748; flex-shrink: 0; transition: background .3s; }
.xref-dot.done { background: #34D399; box-shadow: 0 0 6px rgba(52,211,153,.5); }

/* ── AUTH LOGO SIZES ── */
.pl-auth-logo .pl-logo { width: 34px; height: 34px; border-radius: 9px; }
.pl-auth-logo-name { font-size: 18px; font-weight: 700; letter-spacing: -.02em; }

/* ── FORM UTILITIES ── */
.pl-btn-full { width: 100%; justify-content: center; }
.pl-alert-mb { margin-bottom: 16px; }
.pl-field-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 4px; }
.pl-field-row .pl-label { margin: 0; }
.pl-forgot-link { font-size: 12px; color: var(--green); text-decoration: none; }
.pl-forgot-link:hover { text-decoration: underline; }
.pl-terms-note { font-size: 12px; color: var(--gray); margin-bottom: 4px; }
.pl-terms-note a { color: var(--green); text-decoration: none; }
.pl-footer-link-muted { color: var(--gray-2); font-size: 11px; text-decoration: none; }
.pl-footer-link-muted:hover { color: var(--gray); }

/* ── PASSWORD STRENGTH BAR ── */
.pw-strength-bar { margin-top: 6px; height: 4px; background: #2D3748; border-radius: 4px; overflow: hidden; }
.pw-strength-fill { height: 100%; width: 0%; border-radius: 4px; transition: width .3s, background .3s; }
.pw-strength-hint { margin-top: 4px; font-size: 11px; color: var(--gray); }

/* ── DASHBOARD CARDS ── */
.dash-card { padding: 20px 22px; }
.dash-card-label { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: var(--gray); margin-bottom: 10px; }
.dash-card-value { font-size: 32px; font-weight: 700; letter-spacing: -.03em; }
.dash-card-sub { font-size: 11px; color: var(--gray-2); margin-top: 4px; }
.dash-score-value { font-size: 32px; font-weight: 700; }
.dash-score-label { font-size: 13px; font-weight: 600; }
.dash-action { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 8px; background: var(--gray-light); margin-bottom: 8px; font-size: 13px; }
.dash-action-badge { width: 20px; height: 20px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 11px; flex-shrink: 0; color: #fff; }
.dash-action-badge-ok { background: var(--green); }
.dash-action-badge-warn { background: var(--amber); }
.dash-action-link { font-size: 11px; color: #2563EB; text-decoration: none; margin-left: auto; }
.ml-auto { margin-left: auto; }
.pl-page {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
.pl-page-body {
  flex: 1;
}

/* ── FOOTER ── */
.pl-footer {
  background: var(--white);
  border-top: 1px solid var(--border);
  margin-top: 48px;
}
.pl-footer-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.pl-footer-brand {
  display: flex;
  align-items: center;
  gap: 7px;
  text-decoration: none;
  color: var(--dark);
  font-weight: 700;
  font-size: 13px;
}
.pl-footer-brand .pl-logo {
  width: 20px;
  height: 20px;
  border-radius: 5px;
}
.pl-footer-links {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}
.pl-footer-links a {
  font-size: 12px;
  color: var(--gray);
  text-decoration: none;
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  transition: color .15s, background .15s;
}
.pl-footer-links a:hover {
  color: var(--dark);
  background: var(--gray-light);
}
.pl-footer-sep {
  color: var(--border);
  font-size: 14px;
  user-select: none;
}
.pl-footer-copy {
  font-size: 11px;
  color: var(--gray-2);
}

@media (max-width: 600px) {
  .pl-footer-inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 12px;
  }
}

/* ── INDEX — Hero + layout ── */
.hero { margin-bottom: 24px; }
.hero h1 { font-size: 22px; font-weight: 700; letter-spacing: -.03em; margin-bottom: 6px; }
.hero p  { font-size: 13px; color: var(--gray); line-height: 1.6; }

/* ── INDEX — Barre requêtes gratuites ── */
.free-bar {
  background: var(--dark);
  border-radius: var(--radius);
  padding: 12px 18px;
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 12px;
  color: #94A3B8;
}
.free-bar-inner { flex: 1; }
.free-bar-track { margin-top: 6px; height: 4px; background: #2D3748; border-radius: 4px; overflow: hidden; }

/* ── INDEX — Config API grid ── */
.api-grid { display: grid; grid-template-columns: 1fr 200px; gap: 14px; margin-bottom: 14px; }
@media (max-width: 600px) { .api-grid { grid-template-columns: 1fr; } }

/* ── INDEX — Tableau stats ── */
.stats-row { display: flex; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }

/* ── INDEX — Panel tab ── */
.panel-hdr  { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 16px; flex-wrap: wrap; gap: 12px; }
.panel-title { font-size: 15px; font-weight: 700; }
.panel-desc  { font-size: 12px; color: var(--gray); margin-top: 3px; }
.export-row  { display: flex; justify-content: flex-end; margin-top: 12px; }
.prog-row    { display: flex; justify-content: space-between; margin-bottom: 6px; font-size: 12px; }

/* ── INDEX — Xref notice ── */
.xref-notice {
  display: flex; align-items: flex-start; gap: 9px;
  padding: 10px 14px;
  background: var(--amber-light);
  border: 1px solid #FDE68A;
  border-radius: var(--radius-sm);
  margin-bottom: 14px;
  font-size: 12px;
  color: #92400E;
}

/* ── INDEX — Clé API active ── */
.key-ok {
  display: flex; align-items: center; gap: 8px;
  font-size: 12px; color: var(--green-dark);
  background: var(--green-light);
  border: 1px solid var(--green-mid);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  margin-bottom: 14px;
}

/* ── AUTH — classes manquantes ── */
.pl-auth-logo-name { font-size: 18px; font-weight: 700; letter-spacing: -.02em; }
.pl-alert-mb  { margin-bottom: 16px; }
.pl-btn-full  { width: 100%; justify-content: center; }
.pl-field-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 4px; }
.pl-forgot-link { font-size: 12px; color: var(--green); text-decoration: none; font-weight: 500; }
.pl-forgot-link:hover { text-decoration: underline; }
.pl-footer-link-muted { color: var(--gray-2); text-decoration: none; }
.pl-footer-link-muted:hover { color: var(--dark); }

/* ── AUTH — Champ OTP (MFA) ── */
.otp-input {
  font-size: 28px; font-weight: 700; letter-spacing: .3em;
  text-align: center; width: 100%; padding: 14px;
  border: 2px solid var(--border); border-radius: 10px;
  background: var(--white); color: var(--dark); outline: none;
  transition: border-color .15s;
}
.otp-input:focus { border-color: var(--green); }

/* ── Dashboard — Score sécurité ── */
.sec-bar    { height: 8px; border-radius: 4px; background: var(--border); overflow: hidden; margin: 8px 0; }
.sec-fill   { height: 100%; border-radius: 4px; transition: width .6s ease; }
.sec-action {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px; border-radius: 8px;
  background: var(--gray-light); margin-bottom: 8px; font-size: 13px;
}
.sec-badge  { width: 20px; height: 20px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 11px; flex-shrink: 0; }

/* ── Dashboard — Cards stat ── */
.dash-card-label { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: var(--gray); margin-bottom: 10px; }
.dash-card-val   { font-size: 32px; font-weight: 700; letter-spacing: -.03em; }
.dash-card-sub   { font-size: 11px; color: var(--gray-2); margin-top: 4px; }

/* ── Dashboard — Info connexion ── */
.info-row        { display: flex; flex-direction: column; gap: 10px; font-size: 12px; color: var(--gray); }
.info-row-item   { display: flex; flex-direction: column; gap: 2px; }
.info-row-label  { font-weight: 600; color: var(--dark); }

/* ── Dashboard — nouvelles classes sémantiques ── */
.pl-logo-sm         { width:26px;height:26px;border-radius:6px;flex-shrink:0; }
.pl-chip-auto       { margin-left:auto;font-size:9px; }
.pl-sidebar-link-bottom { margin-top:auto; }
.pl-card-pad        { padding:20px 22px; }
.pl-card-title      { font-size:13px;font-weight:600;margin-bottom:12px; }
.pl-btn-mt          { margin-top:8px;width:fit-content; }
.pl-btn-group       { display:flex;gap:10px;flex-wrap:wrap; }
.pl-alert-row       { display:flex;align-items:flex-start;gap:12px;margin-bottom:20px; }
.pl-alert-body      { flex:1; }
.pl-alert-action    { flex-shrink:0; }

.pl-grid-2          { display:grid;grid-template-columns:1fr 1fr;gap:16px;margin-bottom:16px; }
.pl-grid-3          { display:grid;grid-template-columns:repeat(3,1fr);gap:16px;margin-bottom:16px; }
@media(max-width:860px){ .pl-grid-3{grid-template-columns:1fr 1fr;} }
@media(max-width:600px){ .pl-grid-2,.pl-grid-3{grid-template-columns:1fr;} }

.dash-card-val      { font-size:32px;font-weight:700;letter-spacing:-.03em;margin-bottom:4px; }
.dash-card-val--green  { color:var(--green); }
.dash-card-val--purple { color:var(--purple); }

.sec-score          { display:flex;align-items:baseline;gap:8px;margin-bottom:4px; }
.sec-score-num      { font-size:32px;font-weight:700; }
.sec-score-label    { font-size:13px;font-weight:600; }
.sec-actions        { margin-top:14px; }
.sec-badge          { width:20px;height:20px;border-radius:50%;display:flex;align-items:center;justify-content:center;font-size:11px;flex-shrink:0;color:#fff; }
.sec-badge--ok      { background:var(--green); }
.sec-badge--err     { background:var(--red); }
.sec-badge--warn    { background:var(--amber); }
.sec-action-label   { flex:1; }
.sec-action-link    { font-size:11px;color:#2563EB;text-decoration:none;white-space:nowrap; }
.sec-action-link:hover { text-decoration:underline; }

.text-green         { color:var(--green); }
.text-amber         { color:var(--amber); }

/* ── Auth — Password strength bar ── */
.pw-strength-track { margin-top:6px;height:4px;background:#2D3748;border-radius:4px;overflow:hidden; }
.pw-strength-fill  { height:100%;width:0%;border-radius:4px;transition:width .3s,background .3s; }
.pw-hint           { margin-top:4px;font-size:11px;color:var(--gray); }

/* ── Auth — Terms line ── */
.pl-terms { font-size:12px;color:var(--gray);margin-bottom:4px; }
.pl-terms a { color:var(--green);text-decoration:none; }
.pl-terms a:hover { text-decoration:underline; }

/* ── Index — Paywall modal ── */
.pl-modal-center    { text-align:center; }
.pl-modal-icon      { font-size:40px;margin-bottom:16px; }
.pl-modal-box       { background:#F8FAFC;border-radius:var(--radius-sm);padding:14px;margin-bottom:20px;text-align:left; }
.pl-modal-box-title { font-size:12px;font-weight:600;margin-bottom:8px; }
.pl-modal-box-list  { font-size:12px;color:var(--gray);display:flex;flex-direction:column;gap:5px; }
.pl-modal-login-link{ display:block;margin-top:12px;font-size:12px;color:var(--gray);text-decoration:none; }
.pl-modal-login-link:hover { text-decoration:underline; }
.pl-modal-close-btn { display:block;margin:10px auto 0;background:none;border:none;font-size:11px;color:var(--gray-2);cursor:pointer; }

/* ── Index — Free bar ── */
.free-bar-icon  { font-size:16px; }
.free-bar-count { color:#E2E8F0; }
.free-bar-fill  { height:100%;background:linear-gradient(90deg,#00C98D,#00E8A6);border-radius:4px;transition:width .4s;width:0%; }

/* ── Index — API card ── */
.pl-section-label { font-size:10.5px;font-weight:700;text-transform:uppercase;letter-spacing:.08em;color:var(--gray);margin-bottom:14px; }
.key-reset-link   { margin-left:8px;color:var(--green-dark);text-decoration:underline;font-size:12px; }
.pl-label-opt     { color:var(--gray-2);font-weight:400;text-transform:none; }
.pl-mt            { margin-top:10px; }

/* ── Index — Xref banner ── */
.xref-banner    { display:flex;align-items:center;gap:14px;padding:14px 18px;background:var(--dark-2);border-radius:var(--radius);border:1px solid #2D3748;margin-bottom:18px; }
.xref-icon      { font-size:20px;flex-shrink:0; }
.xref-body      { flex:1; }
.xref-title     { color:#34D399;font-weight:600;font-size:13px;margin-bottom:3px; }
.xref-sub       { font-size:12px;color:#64748B; }
.xref-status    { display:flex;flex-direction:column;gap:6px;align-items:flex-end;flex-shrink:0; }
.xref-status-row{ display:flex;align-items:center;gap:7px;font-size:11px;color:#64748B; }
.xref-ready     { color:#34D399;font-size:11px;font-weight:600; }

/* ── Index — Progress & tables ── */
.mb-14          { margin-bottom:14px; }
.mb-12          { margin-bottom:12px; }
.pcount         { font-weight:600;color:var(--green); }
.pl-stat-n--green  { color:var(--green); }
.pl-stat-n--purple { color:var(--purple); }
.pl-stat-n--amber  { color:var(--amber); }
.cell-empty     { color:#D1D5DB; }
.tbl-more       { color:var(--gray-2);font-size:11px; }

/* ── Utilitaires espacement ── */
.flex-1   { flex:1; }
.mb-24    { margin-bottom:24px; }
.mb-8     { margin-bottom:8px; }
.mt-12    { margin-top:12px; }
.mt-8     { margin-top:8px; }
.text-sm  { font-size:12px;color:var(--gray); }
