/* dashboard/assets/dashboard.css
   يعتمد بالكامل على متغيرات /assets/css/style.css (نفس هوية itest16.com)
   لا يعيد تعريف الألوان أو الخطوط من جديد — فقط تخطيط الصفحة نفسها. */

body{
  background:var(--bg);
  color:var(--text-primary);
  font-family:var(--font-body);
  min-height:100vh;
  transition:background .3s var(--ease), color .3s var(--ease);
}

.dash-topbar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:20px clamp(20px, 5vw, 48px);
  border-bottom:1px solid var(--border);
}

.dash-brand{
  display:flex;
  align-items:center;
  gap:10px;
  text-decoration:none;
  color:var(--text-primary);
  font-family:var(--font-display);
  font-weight:700;
  font-size:18px;
}
.dash-brand img{ width:32px; height:32px; }

.dash-topbar-actions{ display:flex; align-items:center; gap:10px; }

.theme-toggle-btn{
  width:40px; height:40px;
  border-radius:var(--radius-full);
  border:1px solid var(--border-strong);
  background:var(--bg-elevated);
  display:flex; align-items:center; justify-content:center;
  cursor:pointer;
  font-size:16px;
}

.auth-shell{
  max-width:460px;
  margin:64px auto;
  padding:0 20px;
}

.dash-shell{
  max-width:640px;
  margin:0 auto;
  padding:32px 20px 80px;
}

.dash-card{
  background:var(--bg-elevated);
  border:1px solid var(--border);
  border-radius:var(--radius-lg);
  box-shadow:var(--shadow-sm);
  padding:28px;
  margin-bottom:20px;
}

.dash-card h1{
  font-family:var(--font-display);
  font-size:22px;
  margin:0 0 6px;
}
.dash-card h2{
  font-family:var(--font-display);
  font-size:18px;
  margin:0 0 14px;
  color:var(--text-primary);
}

.auth-card{
  background:var(--bg-elevated);
  border:1px solid var(--border);
  border-radius:var(--radius-lg);
  box-shadow:var(--shadow-md);
  padding:36px 32px;
}
.auth-card h1{
  font-family:var(--font-display);
  font-size:24px;
  margin:0 0 10px;
}
.auth-card-intro{
  font-size:14px;
  line-height:1.8;
  color:var(--text-secondary);
  margin:0 0 24px;
}

.field{ margin-top:16px; }
.field label{
  display:block;
  font-size:13px;
  color:var(--text-secondary);
  margin-bottom:6px;
}
.field input{
  width:100%;
  padding:12px 14px;
  border-radius:var(--radius-sm);
  border:1px solid var(--border-strong);
  background:var(--bg);
  color:var(--text-primary);
  font-family:var(--font-body);
  font-size:15px;
  transition:border-color .2s var(--ease);
}
.field input:focus{
  outline:none;
  border-color:var(--violet);
}

.btn-signature{
  width:100%;
  margin-top:24px;
  padding:13px;
  border:none;
  border-radius:var(--radius-full);
  background:var(--gradient-signature);
  color:#fff;
  font-family:var(--font-body);
  font-weight:700;
  font-size:15px;
  cursor:pointer;
  box-shadow:0 10px 26px -6px rgba(107,79,224,.55), 0 4px 14px -4px rgba(255,122,89,.4);
  transition:transform .25s var(--ease), box-shadow .25s var(--ease);
}
.btn-signature:hover{ transform:translateY(-2px) scale(1.01); }
.btn-signature:disabled{ opacity:.6; cursor:default; transform:none; }

.btn-ghost-full{
  width:100%;
  margin-top:10px;
  padding:12px;
  border:1px solid var(--border-strong);
  border-radius:var(--radius-full);
  background:transparent;
  color:var(--text-primary);
  font-family:var(--font-body);
  font-size:14px;
  cursor:pointer;
}
.btn-ghost-full:hover{ border-color:var(--violet); color:var(--violet); }

.auth-footer{
  text-align:center;
  margin-top:20px;
  font-size:14px;
  color:var(--text-secondary);
}
.auth-footer a{ color:var(--violet); font-weight:600; text-decoration:none; }
.auth-footer a:hover{ text-decoration:underline; }

.error-msg{
  color:#e0335c;
  font-size:13px;
  margin-top:12px;
  min-height:16px;
}

/* شريط التقدّم */
.progress-track{
  background:var(--bg-soft);
  height:10px;
  border-radius:var(--radius-full);
  overflow:hidden;
  margin:16px 0 10px;
}
.progress-fill{
  height:100%;
  width:0%;
  background:var(--gradient-signature);
  border-radius:var(--radius-full);
  transition:width .5s var(--ease);
}
.progress-percent{
  font-family:var(--font-display);
  font-weight:700;
  font-size:15px;
  color:var(--violet);
}
.progress-note{
  color:var(--text-secondary);
  font-size:14px;
  margin-top:10px;
  line-height:1.7;
}

.profile-status{
  color:var(--text-secondary);
  font-size:14px;
  line-height:1.8;
}

.dash-logout-btn{
  padding:9px 18px;
  border-radius:var(--radius-full);
  border:1px solid var(--border-strong);
  background:var(--bg-elevated);
  color:var(--text-primary);
  font-family:var(--font-body);
  font-size:13px;
  cursor:pointer;
}
.dash-logout-btn:hover{ border-color:var(--coral); color:var(--coral); }

.dash-flow-note{
  background:var(--gradient-signature-soft);
  border-radius:var(--radius-sm);
  padding:12px 16px;
  font-size:13px;
  line-height:1.9;
  color:var(--text-secondary);
  margin-bottom:16px;
}
.dash-flow-note strong{ color:var(--violet); }

.register-promo-card{
  background:var(--gradient-signature);
  border-radius:var(--radius-lg);
  padding:28px 32px;
  margin-bottom:20px;
  color:#fff;
  box-shadow:0 12px 30px -8px rgba(107,79,224,.5);
  position:relative;
}
.register-promo-badge{
  display:inline-block;
  background:rgba(255,255,255,.2);
  padding:4px 12px;
  border-radius:var(--radius-full);
  font-size:12px;
  font-weight:700;
  margin-bottom:12px;
}
.register-promo-card h2{
  font-family:var(--font-display);
  font-size:20px;
  margin:0 0 10px;
  color:#fff;
}
.register-promo-card p{
  font-size:14px;
  line-height:1.9;
  opacity:.95;
  margin:0 0 20px;
}
.register-promo-btn{
  display:inline-block;
  width:auto;
  background:#fff;
  color:var(--violet) !important;
  padding:12px 28px;
  margin-top:0;
  text-decoration:none;
  font-weight:700;
  box-shadow:none;
}
.register-promo-btn:hover{
  transform:translateY(-2px);
  box-shadow:0 8px 20px -6px rgba(0,0,0,.3);
}

.profile-preview-note{
  font-size:12px;
  color:var(--text-tertiary);
  background:var(--bg-soft);
  padding:8px 12px;
  border-radius:var(--radius-sm);
  margin-bottom:16px;
}

.traits-list{ display:flex; flex-direction:column; gap:14px; }
.trait-row-header{
  display:flex;
  justify-content:space-between;
  margin-bottom:6px;
  font-size:14px;
}
.trait-title{ font-weight:600; color:var(--text-primary); }
.trait-level{ color:var(--violet); font-weight:700; }
.trait-bar-track{
  background:var(--bg-soft);
  height:8px;
  border-radius:var(--radius-full);
  overflow:hidden;
}
.trait-bar-fill{
  height:100%;
  background:var(--gradient-signature);
  border-radius:var(--radius-full);
}

.report-section{ margin-bottom:22px; }
.report-section h3{
  font-family:var(--font-display);
  font-size:15px;
  color:var(--violet);
  margin:0 0 8px;
}
.report-section p, .report-section ul{
  font-size:14px;
  line-height:1.9;
  color:var(--text-primary);
  margin:0;
}
.report-section ul{ padding-inline-start:20px; }
.report-section li{ margin-bottom:6px; }

.report-evidence{
  margin:20px 0;
  border:1px solid var(--border);
  border-radius:var(--radius-sm);
  padding:12px 16px;
}
.report-evidence summary{
  cursor:pointer;
  font-weight:700;
  font-size:14px;
  color:var(--text-secondary);
}
.report-evidence table{
  width:100%;
  margin-top:12px;
  border-collapse:collapse;
  font-size:13px;
}
.report-evidence th, .report-evidence td{
  text-align:right;
  padding:6px 8px;
  border-bottom:1px solid var(--border);
}

.report-limits{
  font-size:13px;
  color:var(--text-secondary);
  background:var(--bg-soft);
  padding:10px 14px;
  border-radius:var(--radius-sm);
  line-height:1.8;
  margin-bottom:10px;
}
.report-engine-note{
  font-size:11px;
  color:var(--text-tertiary);
  text-align:center;
}

.feedback-row{
  display:flex;
  gap:8px;
  margin-top:10px;
}
.feedback-btn{
  font-size:12px;
  padding:5px 12px;
  border-radius:var(--radius-full);
  border:1px solid var(--border-strong);
  background:var(--bg);
  color:var(--text-secondary);
  cursor:pointer;
}
.feedback-btn:hover{ border-color:var(--violet); color:var(--violet); }
.feedback-btn:disabled{ opacity:.5; cursor:default; }
.feedback-thanks{
  font-size:12px;
  color:var(--text-tertiary);
}

.discoveries-list{ display:flex; flex-direction:column; gap:16px; }
.discovery-card{
  background:var(--bg);
  border:1px solid var(--border);
  border-radius:var(--radius-md);
  padding:20px;
}
.discovery-category{
  display:inline-block;
  font-size:11px;
  font-weight:700;
  color:var(--text-tertiary);
  background:var(--bg-soft);
  padding:3px 9px;
  border-radius:var(--radius-full);
  margin-bottom:12px;
}
.discovery-card h3{
  font-family:var(--font-display);
  font-size:16px;
  margin:0 0 8px;
  line-height:1.6;
}
.discovery-card p{
  font-size:14px;
  line-height:1.9;
  margin:0 0 10px;
  color:var(--text-primary);
}
.discovery-misconception{ color:var(--text-secondary); }
.discovery-why{
  font-size:13px;
  color:var(--text-secondary);
  border-top:1px solid var(--border);
  padding-top:10px;
  margin-top:12px;
}
.feedback-question{
  font-size:13px;
  font-weight:600;
  color:var(--text-secondary);
  margin-bottom:8px !important;
}

.most-accurate-card{
  background:var(--gradient-signature-soft);
  border-radius:var(--radius-md);
  padding:20px;
  margin-top:20px;
  text-align:center;
}
.most-accurate-card h3{
  font-family:var(--font-display);
  font-size:15px;
  margin:0 0 14px;
}
.most-accurate-options{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  justify-content:center;
}
.most-accurate-btn{
  font-size:12px;
  padding:8px 14px;
  border-radius:var(--radius-full);
  border:1px solid var(--border-strong);
  background:var(--bg);
  color:var(--text-primary);
  cursor:pointer;
  max-width:220px;
}
.most-accurate-btn:hover{ border-color:var(--violet); color:var(--violet); }
.most-accurate-btn:disabled{ opacity:.5; }
.most-accurate-thanks{ font-size:13px; color:var(--text-secondary); margin:0; }

/* ---------- رأس البروفايل ---------- */
.profile-header-card{
  display:flex;
  align-items:center;
  gap:20px;
  background:var(--gradient-signature);
  border-radius:var(--radius-lg);
  padding:28px 32px;
  margin-bottom:24px;
  color:#fff;
  box-shadow:0 12px 30px -8px rgba(107,79,224,.5);
}
.profile-avatar{
  width:64px; height:64px;
  border-radius:50%;
  background:rgba(255,255,255,.25);
  display:flex; align-items:center; justify-content:center;
  font-family:var(--font-display);
  font-size:28px;
  font-weight:700;
  flex-shrink:0;
}
.profile-header-info{ flex:1; min-width:0; }
.profile-header-info h1{
  font-family:var(--font-display);
  font-size:22px;
  margin:0 0 4px;
  color:#fff;
}
.profile-header-info p{
  font-size:13px;
  margin:0;
  opacity:.9;
}
.profile-member-since{ margin-top:2px !important; opacity:.75 !important; }
.profile-header-badge{
  background:rgba(255,255,255,.2);
  padding:10px 18px;
  border-radius:var(--radius-full);
  font-family:var(--font-display);
  font-weight:700;
  font-size:18px;
  flex-shrink:0;
}

/* ---------- قسم النتائج التفصيلية ---------- */
.section-title{
  font-family:var(--font-display);
  font-size:18px;
  margin:32px 0 16px;
}
.detailed-results-grid{
  display:grid;
  grid-template-columns:repeat(2, 1fr);
  gap:16px;
  margin-bottom:24px;
}
@media (max-width:640px){ .detailed-results-grid{ grid-template-columns:1fr; } }

.result-card{
  background:var(--bg-elevated);
  border:1px solid var(--border);
  border-top:4px solid var(--card-color);
  border-radius:var(--radius-md);
  padding:24px;
  box-shadow:var(--shadow-sm);
}
.result-card-header{
  display:flex;
  align-items:center;
  gap:14px;
  margin-bottom:18px;
}
.result-card-icon{
  width:46px; height:46px;
  border-radius:var(--radius-sm);
  background:color-mix(in srgb, var(--card-color) 15%, transparent);
  display:flex; align-items:center; justify-content:center;
  font-size:20px;
  flex-shrink:0;
}
.result-card-header h3{
  font-family:var(--font-display);
  font-size:15px;
  margin:0 0 3px;
}
.result-card-badge{
  display:inline-block;
  font-size:14px;
  font-weight:700;
  color:var(--card-color);
}
.result-card-bars{ display:flex; flex-direction:column; gap:8px; }
.result-card-link{
  display:inline-block;
  margin-top:16px;
  font-size:13px;
  font-weight:700;
  color:var(--violet);
  text-decoration:none;
}
.result-card-link:hover{ text-decoration:underline; }

.mini-bar-row{
  display:flex;
  align-items:center;
  gap:8px;
  font-size:11px;
}
.mini-bar-row.is-winner .mini-bar-label{ font-weight:700; color:var(--text-primary); }
.mini-bar-label{
  flex:0 0 auto;
  min-width:90px;
  max-width:120px;
  color:var(--text-secondary);
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.mini-bar-track{
  flex:1;
  height:6px;
  background:var(--bg-soft);
  border-radius:var(--radius-full);
  overflow:hidden;
}
.mini-bar-fill{ height:100%; border-radius:var(--radius-full); }
.mini-bar-value{
  flex:0 0 auto;
  min-width:32px;
  text-align:left;
  color:var(--text-tertiary);
  font-size:11px;
}

/* ==================== Hero الجديد (أهم عنصر) ==================== */
.identity-hero{
  background:var(--gradient-signature);
  border-radius:var(--radius-lg);
  padding:32px;
  margin-bottom:24px;
  color:#fff;
  box-shadow:0 16px 40px -10px rgba(107,79,224,.55);
}
.identity-hero-top{
  display:flex;
  align-items:center;
  gap:18px;
  margin-bottom:20px;
}
.identity-hero-info{ flex:1; min-width:0; }
.identity-hero-greeting{
  font-size:13px;
  opacity:.8;
  margin:0 0 2px;
}
.identity-hero-info h1{
  font-family:var(--font-display);
  font-size:26px;
  margin:0;
  color:#fff;
}
.identity-persona-title{
  font-family:var(--font-display);
  font-size:15px;
  font-weight:700;
  color:rgba(255,255,255,.85);
  margin:4px 0 0;
}
.identity-hero-completion{
  background:rgba(255,255,255,.2);
  padding:10px 18px;
  border-radius:var(--radius-full);
  font-family:var(--font-display);
  font-weight:700;
  font-size:18px;
  flex-shrink:0;
}

.identity-badges{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:10px;
  margin-bottom:16px;
}
.identity-badge{
  background:rgba(255,255,255,.18);
  padding:6px 16px;
  border-radius:var(--radius-full);
  font-family:var(--font-display);
  font-weight:700;
  font-size:14px;
}
.identity-badge-sep{ opacity:.5; }

.identity-oneliner{
  font-size:15px;
  line-height:1.9;
  opacity:.95;
  margin:0 0 16px;
  border-top:1px solid rgba(255,255,255,.2);
  padding-top:16px;
}

.identity-stats{
  display:flex;
  gap:24px;
  border-top:1px solid rgba(255,255,255,.2);
  padding-top:16px;
}
.identity-stat{ display:flex; flex-direction:column; align-items:center; }
.identity-stat span{
  font-family:var(--font-display);
  font-size:20px;
  font-weight:700;
}
.identity-stat label{
  font-size:11px;
  opacity:.8;
  margin-top:2px;
}

/* ---------- بصمة DNA ---------- */
.dna-card{
  background:var(--bg-elevated);
  border:1px solid var(--border);
  border-radius:var(--radius-lg);
  padding:24px 28px;
  margin-bottom:24px;
}
.dna-chain{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:0;
  flex-wrap:wrap;
}
.dna-node{
  background:var(--gradient-signature);
  color:#fff;
  font-family:var(--font-display);
  font-weight:700;
  font-size:14px;
  padding:12px 22px;
  border-radius:var(--radius-full);
  animation:dna-pulse 3s ease-in-out infinite;
}
.dna-node:nth-child(3){ animation-delay:.4s; }
.dna-node:nth-child(5){ animation-delay:.8s; }
.dna-node:nth-child(7){ animation-delay:1.2s; }
@keyframes dna-pulse{
  0%, 100%{ box-shadow:0 0 0 0 rgba(107,79,224,.35); }
  50%{ box-shadow:0 0 0 8px rgba(107,79,224,0); }
}
.dna-connector{
  width:32px;
  height:2px;
  margin:0 4px;
  background:linear-gradient(90deg, var(--violet), var(--coral), var(--violet));
  background-size:200% 100%;
  animation:dna-flow 2.5s linear infinite;
}
@keyframes dna-flow{
  0%{ background-position:0% 0; }
  100%{ background-position:200% 0; }
}

/* ---------- Radar Chart ---------- */
.radar-chart-wrap{ display:flex; justify-content:center; }
.radar-svg{ width:100%; max-width:340px; height:auto; }
.radar-grid-line{ fill:none; stroke:var(--border); stroke-width:1; }
.radar-axis-line{ stroke:var(--border); stroke-width:1; }
.radar-data-shape{
  fill:color-mix(in srgb, var(--violet) 25%, transparent);
  stroke:var(--violet);
  stroke-width:2;
}
.radar-data-point{ fill:var(--violet); }
.radar-label{
  fill:var(--text-secondary);
  font-size:10px;
  font-family:var(--font-body);
}

/* ---------- Heatmap ---------- */
.heatmap-intro{ font-size:13px; color:var(--text-secondary); margin:-8px 0 16px; }
.heatmap-grid{ display:flex; flex-direction:column; gap:4px; overflow-x:auto; }
.heatmap-header{ display:flex; gap:8px; }
.heatmap-row{ display:flex; align-items:center; gap:8px; }
.heatmap-row-label{
  flex:0 0 140px;
  font-size:12px;
  color:var(--text-secondary);
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding-inline-end:8px;
}
.heatmap-row-level{ font-size:10px; color:var(--text-tertiary); }
.heatmap-col-label{
  flex:1;
  min-width:70px;
  text-align:center;
  font-size:11px;
  font-weight:700;
  color:var(--text-secondary);
}
.heatmap-row-cells{ flex:1; display:flex; gap:8px; }
.heatmap-cell{
  flex:1;
  min-width:70px;
  height:32px;
  border-radius:var(--radius-sm);
  border:1px solid var(--border);
}
.heatmap-cell-empty{ background:var(--bg-soft); opacity:.4; }

/* ---------- Connections ---------- */
.connections-svg{ width:100%; height:auto; max-height:400px; }
.connections-test-node{ fill:var(--coral); }
.connections-trait-node{ fill:var(--violet); }
.connections-label{
  fill:var(--text-primary);
  font-size:12px;
  font-weight:600;
  font-family:var(--font-body);
}
.connections-line{ stroke:var(--violet); }

/* ---------- مفتاح التحليل الذكي ---------- */
.ai-expansion-card{
  background:var(--gradient-signature-soft);
  border:1px dashed var(--violet);
  text-align:center;
}
.ai-expansion-desc{
  font-size:14px;
  line-height:1.9;
  color:var(--text-secondary);
  margin:12px auto 20px;
  max-width:480px;
}
.ai-expansion-btn{ max-width:320px; margin:0 auto; }

.ai-key-modal-overlay{
  position:fixed;
  inset:0;
  background:rgba(0,0,0,.6);
  display:flex;
  align-items:center;
  justify-content:center;
  z-index:1000;
  padding:20px;
}
.ai-key-modal{
  background:var(--bg-elevated);
  border-radius:var(--radius-lg);
  padding:32px;
  max-width:600px;
  width:100%;
  max-height:85vh;
  overflow-y:auto;
  position:relative;
  box-shadow:var(--shadow-lg);
}
.ai-key-modal-close{
  position:absolute;
  top:16px;
  inset-inline-end:16px;
  background:none;
  border:none;
  font-size:20px;
  color:var(--text-secondary);
  cursor:pointer;
}
.ai-key-modal h2{
  font-family:var(--font-display);
  font-size:20px;
  margin:0 0 10px;
}
.ai-key-modal-desc{
  font-size:14px;
  color:var(--text-secondary);
  line-height:1.8;
  margin:0 0 16px;
}
.ai-key-textarea{
  width:100%;
  height:220px;
  padding:14px;
  border-radius:var(--radius-sm);
  border:1px solid var(--border-strong);
  background:var(--bg);
  color:var(--text-primary);
  font-family:monospace;
  font-size:12px;
  line-height:1.7;
  resize:vertical;
  margin-bottom:16px;
}
.ai-key-size-estimate{
  font-size:12px;
  color:var(--violet);
  font-weight:600;
  text-align:center;
  margin:-8px 0 16px;
}
.ai-key-modal-actions{
  display:flex;
  flex-direction:column;
  gap:10px;
}
.ai-key-modal-footnote{
  font-size:11px;
  color:var(--text-tertiary);
  line-height:1.8;
  margin:16px 0 0;
  text-align:center;
}
@media (max-width:600px){
  .dna-chain{ flex-direction:column; }
  .dna-connector{ width:2px; height:20px; margin:4px 0; }
}

/* ---------- Timeline ---------- */
.journey-timeline{ display:flex; flex-direction:column; gap:2px; }

.journey-timeline-horizontal{
  flex-direction:row;
  overflow-x:auto;
  gap:0;
  padding-bottom:12px;
  scrollbar-width:thin;
}
.journey-timeline-horizontal .timeline-item{
  flex-direction:column;
  align-items:center;
  text-align:center;
  min-width:120px;
  border-bottom:none;
  border-inline-end:1px solid var(--border);
  padding:8px 16px;
  gap:6px;
  position:relative;
}
.journey-timeline-horizontal .timeline-item:last-child{ border-inline-end:none; }
.journey-timeline-horizontal .timeline-item::before{
  content:"";
  position:absolute;
  top:34px;
  right:calc(-50% - 8px);
  width:calc(100% + 16px);
  height:2px;
  background:var(--border-strong);
  z-index:0;
}
.journey-timeline-horizontal .timeline-item:first-child::before{ display:none; }
.journey-timeline-horizontal .timeline-date{ min-width:0; order:1; }
.journey-timeline-horizontal .timeline-icon{ order:0; font-size:22px; z-index:1; background:var(--bg-elevated); border-radius:50%; }
.journey-timeline-horizontal .timeline-label{ order:2; font-size:12px; }
.journey-timeline-horizontal .timeline-check{ order:3; }
.journey-timeline-horizontal .timeline-item.is-highlight{ background:none; }
.timeline-item{
  display:flex;
  align-items:center;
  gap:14px;
  padding:12px 0;
  border-bottom:1px solid var(--border);
}
.timeline-item:last-child{ border-bottom:none; }
.timeline-item.is-highlight{ background:var(--gradient-signature-soft); border-radius:var(--radius-sm); padding:12px 14px; }
.timeline-date{
  font-size:12px;
  color:var(--text-tertiary);
  min-width:90px;
  flex-shrink:0;
}
.timeline-icon{ font-size:18px; flex-shrink:0; }
.timeline-label{ flex:1; font-size:14px; font-weight:600; }
.timeline-check{ color:#22c55e; font-weight:700; flex-shrink:0; }

.privacy-footnote{
  font-size:12px;
  color:var(--text-tertiary);
  text-align:center;
  margin-top:24px;
  line-height:1.8;
}

.journey-actions{
  display:flex;
  gap:10px;
  margin-top:18px;
  padding-top:18px;
  border-top:1px solid var(--border);
}
.journey-action-btn{
  flex:1;
  padding:11px;
  border-radius:var(--radius-full);
  border:1px solid var(--border-strong);
  background:var(--bg);
  color:var(--text-primary);
  font-size:13px;
  font-weight:600;
  cursor:pointer;
}
.journey-action-btn:hover{ border-color:var(--violet); color:var(--violet); }

@media print{
  .dash-topbar, .dash-flow-note, .test-grid, .journey-actions,
  #site-footer, .most-accurate-card, .feedback-row,
  .show-all-discoveries-btn, .theme-toggle-btn, .dash-logout-btn{
    display:none !important;
  }
  .dash-shell{ max-width:100%; }
  .discovery-card{ break-inside:avoid; }
}

/* ==================== قسم الاكتشافات (أولوية ثانية) ==================== */
.discoveries-section h2{
  font-family:var(--font-display);
  font-size:19px;
  margin:0 0 18px;
}

.discovery-card{
  background:var(--bg);
  border:1px solid var(--border);
  border-radius:var(--radius-md);
  padding:18px 20px;
  margin-bottom:14px;
  transition:box-shadow .2s var(--ease);
}
.discovery-card:not(.is-collapsed){ box-shadow:var(--shadow-sm); }

.discovery-category{
  display:inline-block;
  font-size:11px;
  font-weight:700;
  color:var(--text-tertiary);
  background:var(--bg-soft);
  padding:3px 9px;
  border-radius:var(--radius-full);
  margin-bottom:10px;
}
.discovery-card h3{
  font-family:var(--font-display);
  font-size:15px;
  margin:0 0 8px;
  line-height:1.6;
}
.discovery-quote{
  font-size:14px;
  line-height:1.8;
  color:var(--text-secondary);
  font-style:italic;
  margin:0 0 12px;
}
.discovery-teaser{
  font-size:14px;
  line-height:1.8;
  color:var(--text-secondary);
  margin:0 0 12px;
}
.show-all-discoveries-btn{
  display:block;
  width:100%;
  background:none;
  border:1px dashed var(--border-strong);
  border-radius:var(--radius-sm);
  padding:12px;
  color:var(--violet);
  font-weight:700;
  font-size:13px;
  cursor:pointer;
  margin-top:8px;
}
.show-all-discoveries-btn:hover{ background:var(--bg-soft); }
.discovery-expand-btn, .discovery-collapse-btn{
  background:none;
  border:none;
  color:var(--violet);
  font-size:13px;
  font-weight:700;
  cursor:pointer;
  padding:0;
}
.discovery-card-expanded-view p{
  font-size:14px;
  line-height:1.9;
  margin:0 0 10px;
  color:var(--text-primary);
}
.discovery-why{
  font-size:13px;
  color:var(--text-secondary);
  border-top:1px solid var(--border);
  padding-top:10px;
  margin-top:4px;
}
.feedback-question{
  font-size:13px;
  font-weight:600;
  color:var(--text-secondary);
  margin-bottom:8px !important;
}
.feedback-thanks{ font-size:12px; color:var(--text-tertiary); }

.most-accurate-card{
  background:var(--gradient-signature-soft);
  border-radius:var(--radius-md);
  padding:20px;
  margin-top:12px;
  text-align:center;
}
.most-accurate-card h3{
  font-family:var(--font-display);
  font-size:15px;
  margin:0 0 14px;
}
.most-accurate-options{ display:flex; flex-wrap:wrap; gap:8px; justify-content:center; }
.most-accurate-btn{
  font-size:12px;
  padding:8px 14px;
  border-radius:var(--radius-full);
  border:1px solid var(--border-strong);
  background:var(--bg);
  color:var(--text-primary);
  cursor:pointer;
  max-width:220px;
}
.most-accurate-btn:hover{ border-color:var(--violet); color:var(--violet); }
.most-accurate-btn:disabled{ opacity:.5; }
.most-accurate-thanks{ font-size:13px; color:var(--text-secondary); margin:0; }

/* ==================== نتائج الاختبارات (أولوية ثالثة - أخف بصريًا) ==================== */
.section-title-primary{
  font-family:var(--font-display);
  font-size:20px;
  margin:0 0 18px;
}
.detailed-results-section{ margin-bottom:28px; }
.detailed-results-grid{
  display:grid;
  grid-template-columns:repeat(2, 1fr);
  gap:18px;
}
@media (max-width:640px){ .detailed-results-grid{ grid-template-columns:1fr; } }

.discoveries-intro{
  font-size:14px;
  color:var(--text-secondary);
  margin:-8px 0 18px;
}

/* ---------- Hero ---------- */
.dash-hero{
  text-align:center;
  padding:20px 0 8px;
  margin-bottom:8px;
}
.dash-hero-badge{
  display:inline-block;
  background:var(--gradient-signature-soft);
  color:var(--violet);
  font-size:13px;
  font-weight:700;
  padding:6px 16px;
  border-radius:var(--radius-full);
  margin-bottom:16px;
}
.dash-hero h1{
  font-family:var(--font-display);
  font-size:clamp(22px, 3.5vw, 30px);
  margin:0 0 12px;
}
.dash-hero p{
  color:var(--text-secondary);
  font-size:15px;
  line-height:1.9;
  max-width:520px;
  margin:0 auto;
}

/* ---------- Test grid (بطاقات الاختبار) ---------- */
.test-grid{
  display:grid;
  grid-template-columns:repeat(2, 1fr);
  gap:14px;
}
@media (max-width:520px){ .test-grid{ grid-template-columns:1fr; } }

.test-card{
  display:flex;
  align-items:center;
  gap:12px;
  padding:16px;
  border-radius:var(--radius-md);
  border:1px solid var(--border);
  background:var(--bg);
  text-decoration:none;
  color:var(--text-primary);
  transition:transform .2s var(--ease), border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.test-card:hover{
  transform:translateY(-3px);
  border-color:var(--violet);
  box-shadow:var(--shadow-sm);
}
.test-card.is-done{
  border-color:rgba(34,197,94,.35);
  background:rgba(34,197,94,.06);
}

.test-card-icon{
  width:42px; height:42px;
  border-radius:var(--radius-sm);
  display:flex; align-items:center; justify-content:center;
  font-size:20px;
  background:var(--gradient-signature-soft);
  flex-shrink:0;
}
.test-card.is-done .test-card-icon{ background:rgba(34,197,94,.18); }

.test-card-body{ flex:1; min-width:0; }
.test-card-title{
  font-family:var(--font-display);
  font-weight:700;
  font-size:14px;
  margin:0 0 2px;
}
.test-card-status{
  font-size:12px;
  color:var(--text-tertiary);
}
.test-card.is-done .test-card-status{ color:#22c55e; font-weight:600; }

/* ---------- Footer (نسخة داكنة/فاتحة متجاوبة مع الثيم) ---------- */
#site-footer{
  margin-top:40px;
  padding:48px clamp(20px, 5vw, 48px) 24px;
  background:var(--bg-deep, #15102B);
  color:var(--text-on-dark, #F3F0FF);
}
#site-footer .footer-grid{
  display:flex;
  flex-wrap:wrap;
  gap:32px;
  justify-content:space-between;
  max-width:var(--container-w);
  margin:0 auto;
}
#site-footer .footer-brand{ max-width:320px; }
#site-footer .brand{
  display:flex; align-items:center; gap:10px;
  text-decoration:none; color:inherit;
  font-family:var(--font-display); font-weight:700; font-size:16px;
  margin-bottom:10px;
}
#site-footer .brand-mark{ width:32px; height:32px; }
#site-footer .footer-brand p{
  font-size:13px; line-height:1.8; color:rgba(243,240,255,.65);
}
#site-footer .footer-col h4{
  font-family:var(--font-display); font-size:14px; margin:0 0 12px;
}
#site-footer .footer-col a{
  display:block; color:rgba(243,240,255,.65); text-decoration:none;
  font-size:13px; margin-bottom:8px;
}
#site-footer .footer-col a:hover{ color:#fff; }
#site-footer .footer-bottom{
  max-width:var(--container-w);
  margin:32px auto 0;
  padding-top:20px;
  border-top:1px solid rgba(255,255,255,.1);
  font-size:12px;
  color:rgba(243,240,255,.5);
  text-align:center;
}