:root {
  --daq-blue: #1e75ff;
  --daq-white: #ffffff;
  --daq-ink: #0b1b2b;
  --daq-muted: #6b7a90;
  --daq-line: #e7edf6;
  --daq-success: #0aa8ff;
  --daq-warning: #f6c945;
}

* {
  box-sizing: border-box;
}

.daq-wrap {
  font-family: 'Roboto', system-ui, -apple-system, 'Segoe UI', Arial, Helvetica, sans-serif;
  font-weight: 400;
  color: var(--daq-ink);
}

/* ===== CARDS ===== */
.daq-card {
  background: var(--daq-white);
  border: 1px solid var(--daq-line);
  border-radius: 16px;
  padding: 24px;
  margin: 16px auto;
  max-width: 960px;
  box-shadow: 0 8px 24px rgba(9, 30, 66, 0.06);
}

.daq-header .daq-title {
  margin: 0 0 6px;
  font-size: 28px;
  font-weight: 700;
}

.daq-sub {
  margin: 0;
  color: var(--daq-muted);
}

/* ===== FORM & QUESTIONS ===== */
.daq-form {
  margin-top: 16px;
}

.daq-q {
  border-top: 1px solid var(--daq-line);
  padding: 16px 0;
}

.daq-q:first-child {
  border-top: none;
}

.daq-q h3 {
  font-size: 18px;
  margin: 0 0 10px;
  font-weight: 700;
}

.daq-options {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.daq-opt {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  border: 2px solid var(--daq-line);
  border-radius: 12px;
  padding: 12px;
  background: #fff;
  transition: all 0.2s;
  cursor: pointer;
  user-select: none;
}

.daq-opt:hover {
  border-color: var(--daq-blue);
  background: #f8f9fb;
}

.daq-opt.selected {
  border-color: var(--daq-blue);
  background: #e7f3ff;
  box-shadow: 0 4px 12px rgba(30, 117, 255, 0.12);
}

.daq-opt .letter {
  font-weight: 500;
  color: var(--daq-blue);
}

.daq-opt .opt {
  font-weight: 300;
}

/* ===== BUTTONS ===== */
.daq-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 18px;
}

.daq-btn {
  font-weight: 600;
  border-radius: 12px;
  padding: 10px 16px;
  cursor: pointer;
  border: 2px solid var(--daq-blue);
  background: var(--daq-white);
  color: var(--daq-blue);
  transition: all 0.2s;
  font-size: 15px;
}

.daq-btn:hover {
  box-shadow: 0 4px 10px rgba(30, 117, 255, 0.15);
  transform: translateY(-1px);
}

.daq-btn[disabled] {
  opacity: 0.5;
  cursor: not-allowed;
}

.daq-btn-primary {
  background: var(--daq-blue);
  color: #fff;
}

.daq-btn-primary:hover {
  filter: brightness(0.95);
}

.daq-btn.loading {
  opacity: 0.7;
  cursor: wait;
}

/* ===== STEPPER ===== */
.daq-stepper {
  display: flex;
  gap: 6px;
  margin: 10px 0 0;
  flex-wrap: wrap;
  justify-content: center;
}

.daq-dot {
  width: 10px;
  height: 10px;
  border: 2px solid var(--daq-line);
  border-radius: 3px;
  transition: all 0.2s;
}

.daq-dot.active {
  border-color: var(--daq-blue);
  background: var(--daq-blue);
}

/* ===== CONTACT FORM ===== */
.daq-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 12px;
}

.daq-grid input {
  width: 100%;
  padding: 10px 12px;
  border: 2px solid var(--daq-line);
  border-radius: 10px;
  outline: none;
  transition: all 0.2s;
  background: #fff;
  color: var(--daq-ink);
  font-size: 15px;
}

.daq-grid input:focus {
  border-color: var(--daq-blue);
  box-shadow: 0 0 0 3px rgba(30, 117, 255, 0.12);
}

.daq-legal {
  color: var(--daq-muted);
  font-size: 13px;
  margin-top: 8px;
}

.daq-error {
  color: #b00020;
  margin-top: 10px;
  padding: 12px;
  background: #ffebee;
  border-radius: 8px;
  font-size: 14px;
}

/* ===== RESULTS ===== */
.daq-results .daq-title {
  margin-bottom: 4px;
}

/* ===== AVATAR SECTION (NEW) ===== */
#daq-avatar-section {
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 2px solid var(--daq-line);
}

.daq-avatar-header {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 24px;
}

.daq-avatar-icon {
  flex-shrink: 0;
}

.daq-avatar-emoji {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  background: linear-gradient(135deg, #e7f3ff 0%, #d0e9ff 100%);
  border: 3px solid var(--daq-blue);
  box-shadow: 0 4px 12px rgba(30, 117, 255, 0.2);
}

.daq-avatar-title {
  flex: 1;
}

.daq-avatar-name {
  margin: 0 0 4px;
  font-size: 32px;
  font-weight: 700;
  color: var(--daq-ink);
  line-height: 1.2;
}

.daq-avatar-tagline {
  margin: 0 0 12px;
  font-size: 18px;
  color: var(--daq-muted);
  font-style: italic;
}

.daq-avatar-meta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}

/* Confidence Badges */
.daq-confidence {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.daq-confidence.very-high {
  background: #d4f4dd;
  color: #1e7e34;
}

.daq-confidence.high {
  background: #d0e9ff;
  color: #0066cc;
}

.daq-confidence.medium {
  background: #fff3cd;
  color: #856404;
}

.daq-confidence.low {
  background: #f8d7da;
  color: #721c24;
}

.daq-match-score {
  padding: 6px 12px;
  background: #e7f3ff;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  color: var(--daq-blue);
}

/* Avatar Archetypes */
.daq-avatar-archetypes {
  margin: 20px 0;
}

.daq-section-title {
  margin: 0 0 12px;
  font-size: 18px;
  font-weight: 600;
  color: var(--daq-ink);
}

.daq-arch-tags {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.daq-arch-tag {
  display: inline-block;
  padding: 8px 14px;
  background: #f8f9fb;
  border: 2px solid var(--daq-line);
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--daq-ink);
}

/* Avatar Explanation */
.daq-avatar-explanation {
  margin: 20px 0;
  padding: 16px;
  background: #f8f9fb;
  border-left: 4px solid var(--daq-blue);
  border-radius: 8px;
}

.daq-explanation-text {
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
  color: var(--daq-ink);
}

/* ===== CHART AREA ===== */
.daq-chart-area {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 18px;
  align-items: center;
  margin-top: 8px;
}

#daq-chart {
  width: 100%;
  height: auto;
  background: #fff;
  border: 1px dashed var(--daq-line);
  border-radius: 16px;
  padding: 10px;
}

#daq-chart text {
  font-family: 'Roboto', sans-serif;
  font-size: 35px;
  font-weight: 500;
}

/* ===== LEGEND ===== */
.daq-legend {
  display: grid;
  gap: 10px;
  border: 1px solid var(--daq-line);
  border-radius: 12px;
  padding: 12px;
  background: #fff;
}

.daq-legend .leg {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  border-bottom: 1px dashed var(--daq-line);
  padding: 8px 0;
}

.daq-legend .leg:last-child {
  border-bottom: none;
}

.leg .swatch {
  display: inline-block;
  width: 12px;
  height: 12px;
  border-radius: 3px;
  background: var(--daq-blue);
  opacity: 0.85;
  margin-right: 8px;
}

.leg .name {
  font-weight: 600;
  display: flex;
  align-items: center;
}

.leg .pct {
  font-variant-numeric: tabular-nums;
  font-weight: 500;
  color: var(--daq-blue);
}

/* ===== TOPSTACK ===== */
.daq-topstack {
  margin-top: 18px;
  border-top: 1px solid var(--daq-line);
  padding-top: 14px;
  color: var(--daq-ink);
}

.daq-topstack h3 {
  margin: 0 0 6px;
}

.daq-topstack p {
  margin: 0;
  color: var(--daq-muted);
}

/* ===== FREE CONTENT SECTIONS ===== */
.daq-free-section {
  padding: 20px;
  background: #f8f9fb;
  border-radius: 12px;
  margin: 16px 0;
}

.daq-free-section h3 {
  margin: 0 0 12px;
  font-size: 20px;
  font-weight: 600;
  color: var(--daq-ink);
}

.daq-free-section h4 {
  margin: 16px 0 8px;
  font-size: 16px;
  font-weight: 600;
  color: var(--daq-blue);
}

.daq-free-section ul {
  margin: 8px 0;
  padding-left: 24px;
}

.daq-free-section li {
  margin: 8px 0;
  color: var(--daq-ink);
  line-height: 1.5;
}

/* ===== UNLOCK CTA ===== */
.daq-unlock-cta {
  background: linear-gradient(135deg, #f8f9fb 0%, #e7edf6 100%);
  border: 3px solid var(--daq-blue);
  border-radius: 16px;
  padding: 32px;
  margin-top: 24px;
  text-align: center;
}

.daq-unlock-cta h3 {
  margin: 0 0 12px;
  font-size: 26px;
  font-weight: 700;
  color: var(--daq-ink);
}

.daq-unlock-cta > p {
  margin: 0 0 20px;
  color: var(--daq-muted);
  font-size: 16px;
}

.daq-unlock-benefits {
  list-style: none;
  padding: 0;
  margin: 20px 0;
  text-align: left;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.daq-unlock-benefits li {
  padding: 10px 0;
  padding-left: 28px;
  color: var(--daq-ink);
  font-size: 15px;
  position: relative;
}

.daq-unlock-benefits li:before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--daq-success);
  font-weight: 700;
  font-size: 18px;
}

.daq-unlock-price {
  margin: 24px 0;
  padding: 20px;
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.daq-unlock-price .price {
  display: block;
  font-size: 48px;
  font-weight: 700;
  color: var(--daq-blue);
  line-height: 1;
}

.daq-unlock-price .note {
  display: block;
  margin-top: 8px;
  font-size: 14px;
  color: var(--daq-muted);
}

.daq-email-note {
  margin: 20px 0 0;
  padding: 14px;
  background: #fff8e1;
  border-left: 4px solid var(--daq-warning);
  border-radius: 8px;
  color: #856404;
  font-size: 14px;
  line-height: 1.5;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .daq-chart-area {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  
  .daq-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  #daq-chart text {
    font-size: 25px;
  }
  
  .daq-avatar-header {
    flex-direction: column;
    text-align: center;
    align-items: center;
  }
  
  .daq-avatar-name {
    font-size: 26px;
  }
  
  .daq-avatar-tagline {
    font-size: 16px;
  }
  
  .daq-avatar-meta {
    justify-content: center;
  }
  
  .daq-unlock-price .price {
    font-size: 36px;
  }
  
  .daq-unlock-cta {
    padding: 24px 16px;
  }
}

/* ===== LOADING STATES ===== */
.daq-btn.loading:after {
  content: '...';
  animation: dots 1.5s infinite;
}

@keyframes dots {
  0%, 20% { content: '.'; }
  40% { content: '..'; }
  60%, 100% { content: '...'; }
}

/* Question styles */
.daq-question {
    margin-bottom: 30px;
}

.daq-question-text {
    font-size: 20px;
    font-weight: 600;
    color: #0b1b2b;
    margin-bottom: 20px;
}

.daq-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.daq-option {
    display: flex;
    align-items: center;
    padding: 16px 20px;
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.daq-option:hover {
    background: #e9ecef;
    border-color: #1e75ff;
}

.daq-option.selected {
    background: #e3f2ff;
    border-color: #1e75ff;
}

.daq-option-letter {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: white;
    border: 2px solid #dee2e6;
    border-radius: 50%;
    font-weight: 700;
    color: #495057;
    margin-right: 16px;
    flex-shrink: 0;
}

.daq-option.selected .daq-option-letter {
    background: #1e75ff;
    border-color: #1e75ff;
    color: white;
}

.daq-option-text {
    flex: 1;
    font-size: 16px;
    color: #212529;
    line-height: 1.5;
}

#daq-navigation {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-top: 30px;
}

/* Responsive */
@media (max-width: 768px) {
    .daq-option {
        padding: 12px 16px;
    }
    
    .daq-option-text {
        font-size: 14px;
    }
    
    .daq-question-text {
        font-size: 18px;
    }
}
