/* ─── Doctor de buzunar ────────────────────────────────────────────────────── */

/* Dashboard card */
.doctor-dashboard-card {
  background: var(--card-bg);
  border-radius: var(--r-md);
  padding: 20px;
  margin-top: 24px;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(52, 211, 153, 0.15);
}
.doctor-dash-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 12px;
}
.doctor-dash-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 2px;
}
.doctor-dash-subtitle {
  font-size: 12px;
  color: var(--muted);
  margin: 0;
}
.doctor-dash-score {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  padding: 10px 14px;
  background: rgba(52, 211, 153, 0.08);
  border-radius: 8px;
}
.doctor-dash-score-value {
  font-size: 28px;
  font-weight: 800;
  color: #34D399;
  line-height: 1;
}
.doctor-dash-score-label {
  font-size: 12px;
  color: var(--muted);
}
.doctor-dash-desc {
  font-size: 13px;
  color: var(--muted);
  margin: 0 0 14px;
  line-height: 1.5;
}
.doctor-dash-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.doctor-dash-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  border: none;
  transition: opacity 0.15s;
}
.doctor-dash-btn:hover { opacity: 0.85; }
.doctor-dash-btn-primary {
  background: linear-gradient(135deg, #34D399, #059669);
  color: #fff;
}
.doctor-dash-btn-secondary {
  background: var(--card-bg-alt, rgba(255,255,255,0.06));
  color: var(--text);
  border: 1px solid rgba(255,255,255,0.1);
}
.doctor-dash-loading {
  text-align: center;
  padding: 16px;
  color: var(--muted);
  font-size: 13px;
}

.doctor-loading, .doctor-error, .doctor-no-access {
  text-align: center;
  padding: 60px 20px;
  color: var(--muted);
  font-size: 15px;
}
.doctor-error { color: #dc2626; }
.doctor-no-access i { font-size: 40px; margin-bottom: 16px; color: var(--cream-muted); }
.doctor-no-access h3 { color: var(--text); margin-bottom: 8px; }

/* Layout */
.doctor-wrap {
  max-width: 800px;
  margin: 0 auto;
  padding: 20px 16px;
}

/* Hero */
.doctor-hero {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}
.doctor-hero-icon {
  width: 52px; height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--emerald), var(--emerald-dark));
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
  box-shadow: var(--shadow-emerald);
}
.doctor-hero h2 {
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
  margin: 0;
}
.doctor-hero-sub {
  font-size: 13px;
  color: var(--muted);
  margin: 2px 0 0;
}

/* Disclaimer */
.doctor-disclaimer {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 12px 16px;
  background: rgba(52, 211, 153, 0.08);
  border: 1px solid rgba(52, 211, 153, 0.2);
  border-radius: var(--r-md);
  font-size: 12px;
  color: var(--cream-dim);
  margin-bottom: 20px;
  line-height: 1.5;
}
.doctor-disclaimer i {
  color: var(--emerald);
  margin-top: 2px;
  flex-shrink: 0;
}

/* Affiliate CTA */
.doctor-affiliate-cta {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: var(--gold-dim);
  border: 1px solid rgba(198, 164, 78, 0.25);
  border-radius: var(--r-md);
  font-size: 13px;
  color: var(--cream-dim);
  margin-bottom: 20px;
}
.doctor-affiliate-cta i { color: var(--gold); }
.doctor-affiliate-cta a { color: var(--gold-light); text-decoration: underline; cursor: pointer; }

/* Sections */
.doctor-section { margin-bottom: 24px; }
.doctor-section-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  margin: 0 0 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.doctor-section-title i { color: var(--emerald); font-size: 14px; }

/* Product Grid */
.doctor-product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
}
.doctor-product-card {
  background: var(--card-bg);
  border-radius: var(--r-md);
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
  box-shadow: var(--shadow-sm);
}
.doctor-product-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.doctor-product-img {
  height: 120px;
  overflow: hidden;
  background: var(--night-elevated);
  display: flex; align-items: center; justify-content: center;
}
.doctor-product-img img {
  width: 100%; height: 100%;
  object-fit: contain;
  padding: 8px;
}
.doctor-product-info { padding: 12px; }
.doctor-product-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
  line-height: 1.3;
}
.doctor-product-prices {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 6px;
  flex-wrap: wrap;
}
.doctor-price-member {
  font-size: 15px;
  font-weight: 700;
  color: var(--emerald);
}
.doctor-price-nonmember {
  font-size: 13px;
  color: var(--cream-muted);
}
.doctor-price-label {
  font-size: 10px;
  color: var(--cream-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.doctor-price-sep {
  color: var(--cream-muted);
  margin: 0 2px;
}
.doctor-product-desc {
  font-size: 12px;
  color: var(--cream-dim);
  line-height: 1.4;
}

/* Back button */
.doctor-back-btn {
  background: none;
  border: none;
  color: var(--emerald);
  font-size: 14px;
  cursor: pointer;
  padding: 4px 0;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.doctor-back-btn:hover { color: var(--emerald-light); }

/* Detail header */
.doctor-detail-header {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 24px;
}
.doctor-detail-img {
  width: 120px; height: 120px;
  object-fit: contain;
  border-radius: var(--r-md);
  background: var(--night-elevated);
  padding: 8px;
  flex-shrink: 0;
}
.doctor-detail-name {
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 4px;
}
.doctor-detail-category {
  font-size: 12px;
  color: var(--cream-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}
.doctor-detail-prices {
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Detail sections */
.doctor-detail-section {
  margin-bottom: 20px;
  padding: 16px;
  background: var(--card-bg);
  border-radius: var(--r-md);
}
.doctor-detail-section h3 {
  font-size: 14px;
  font-weight: 600;
  color: var(--emerald);
  margin: 0 0 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.doctor-detail-section p {
  font-size: 13px;
  color: var(--cream-dim);
  line-height: 1.6;
  margin: 0;
  white-space: pre-line;
}

/* Warning section */
.doctor-warning {
  border: 1px solid rgba(220, 38, 38, 0.3);
  background: rgba(220, 38, 38, 0.06);
}
.doctor-warning h3 { color: #f87171; }

/* Ingredients table */
.doctor-ingredients-table { font-size: 13px; }
.doctor-ing-header {
  display: grid;
  grid-template-columns: 1fr 100px 60px;
  gap: 8px;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  color: var(--cream-muted);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.doctor-ing-row {
  display: grid;
  grid-template-columns: 1fr 100px 60px;
  gap: 8px;
  padding: 6px 0;
  border-bottom: 1px solid rgba(245, 240, 232, 0.05);
  color: var(--cream-dim);
}

/* Certificates */
.doctor-certs { display: flex; flex-wrap: wrap; gap: 8px; }
.doctor-cert-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: var(--emerald-dim);
  border-radius: var(--r-full);
  font-size: 12px;
  color: var(--emerald);
}
.doctor-cert-badge a { color: var(--emerald-light); }

/* Sources */
.doctor-sources { font-size: 12px; }
.doctor-source {
  display: flex;
  gap: 8px;
  align-items: baseline;
  margin-bottom: 4px;
}
.doctor-source-type {
  font-size: 10px;
  color: var(--cream-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  flex-shrink: 0;
}
.doctor-source a {
  color: var(--emerald);
  text-decoration: none;
  word-break: break-all;
}
.doctor-source a:hover { text-decoration: underline; }

/* Official link */
.doctor-official-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: var(--emerald);
  color: #fff;
  border-radius: var(--r-full);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  margin-top: 8px;
  transition: background 0.15s;
}
.doctor-official-link:hover { background: var(--emerald-dark); }

/* ── Affiliate Form ── */
.doctor-form { max-width: 480px; }
.doctor-form-group {
  margin-bottom: 16px;
}
.doctor-form-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
}
.doctor-form-group input {
  width: 100%;
  padding: 10px 12px;
  background: var(--night-elevated);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  color: var(--text);
  font-size: 14px;
  outline: none;
  transition: border-color 0.15s;
}
.doctor-form-group input:focus {
  border-color: var(--emerald);
}
.doctor-form-group small {
  display: block;
  font-size: 11px;
  color: var(--cream-muted);
  margin-top: 4px;
}
.doctor-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 24px;
  background: var(--emerald);
  color: #fff;
  border: none;
  border-radius: var(--r-full);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s;
}
.doctor-btn-primary:hover { background: var(--emerald-dark); }
.doctor-btn-primary:disabled { opacity: 0.6; cursor: not-allowed; }

/* Link status */
.doctor-link-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
  padding: 6px 12px;
  border-radius: var(--r-full);
  font-size: 12px;
}
.doctor-link-status--verified {
  background: var(--emerald-dim);
  color: var(--emerald);
}
.doctor-link-status--pending {
  background: var(--gold-dim);
  color: var(--gold);
}
.doctor-link-status--failed {
  background: rgba(220, 38, 38, 0.1);
  color: #f87171;
}

/* ── Stats Grid ── */
.doctor-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 20px;
}
.doctor-stat-card {
  background: var(--card-bg);
  border-radius: var(--r-md);
  padding: 14px 8px;
  text-align: center;
  box-shadow: var(--shadow-sm);
}
.doctor-stat-value {
  display: block;
  font-size: 22px;
  font-weight: 700;
  color: var(--emerald);
}
.doctor-stat-label {
  display: block;
  font-size: 10px;
  color: var(--cream-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 2px;
}

/* ── Share Links ── */
.doctor-link-item {
  background: var(--card-bg);
  border-radius: var(--r-sm);
  padding: 10px 12px;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.doctor-link-url {
  font-size: 12px;
  color: var(--cream-dim);
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.doctor-link-meta {
  display: flex;
  gap: 10px;
  font-size: 11px;
  color: var(--cream-muted);
}
.doctor-link-meta i { margin-right: 2px; }
.doctor-copy-btn {
  background: var(--emerald-dim);
  border: none;
  color: var(--emerald);
  padding: 6px 12px;
  border-radius: var(--r-full);
  font-size: 11px;
  cursor: pointer;
  white-space: nowrap;
}
.doctor-copy-btn:hover { background: rgba(52, 211, 153, 0.2); }

/* ── Leads ── */
.doctor-lead-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  background: var(--card-bg);
  border-radius: var(--r-sm);
  margin-bottom: 6px;
}
.doctor-lead-name {
  font-size: 14px;
  font-weight: 500;
  color: var(--cream);
}
.doctor-lead-meta {
  display: flex;
  gap: 10px;
  align-items: center;
  font-size: 12px;
  color: var(--cream-muted);
}
.doctor-lead-status {
  padding: 2px 8px;
  border-radius: var(--r-full);
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
}
.doctor-lead-status--completed { background: var(--emerald-dim); color: var(--emerald); }
.doctor-lead-status--in_progress { background: var(--gold-dim); color: var(--gold); }
.doctor-lead-status--pending { background: rgba(255,255,255,0.05); color: var(--cream-muted); }
.doctor-lead-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}
.doctor-lead-action {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: var(--r-full);
  border: 1px solid rgba(198, 164, 78, 0.35);
  color: var(--gold);
  background: rgba(198, 164, 78, 0.10);
  font-size: 11px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}
.doctor-lead-action:hover {
  background: rgba(198, 164, 78, 0.18);
}
.doctor-lead-consent-pending {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--cream-muted);
  font-size: 11px;
  white-space: nowrap;
}

/* ── Dashboard Card ── */
.doctor-dashboard-card {
  background: var(--card-bg);
  border-radius: var(--r-md);
  padding: 20px;
  margin-top: 24px;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(52, 211, 153, 0.15);
}
.doctor-dash-loading {
  text-align: center;
  padding: 20px;
  color: var(--cream-muted);
  font-size: 13px;
}
.doctor-dash-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}
.doctor-dash-header svg { flex-shrink: 0; }
.doctor-dash-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  margin: 0;
}
.doctor-dash-subtitle {
  font-size: 12px;
  color: var(--cream-muted);
  margin: 2px 0 0;
}
.doctor-dash-score {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 12px;
}
.doctor-dash-score-value {
  font-size: 36px;
  font-weight: 700;
  color: var(--emerald);
}
.doctor-dash-score-label {
  font-size: 13px;
  color: var(--cream-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.doctor-dash-desc {
  font-size: 13px;
  color: var(--cream-dim);
  line-height: 1.5;
  margin-bottom: 14px;
}
.doctor-dash-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.doctor-dash-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: var(--r-full);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  text-decoration: none;
  transition: background 0.15s;
}
.doctor-dash-btn-primary {
  background: var(--emerald);
  color: #fff;
}
.doctor-dash-btn-primary:hover { background: var(--emerald-dark); }
.doctor-dash-btn-secondary {
  background: var(--emerald-dim);
  color: var(--emerald);
}
.doctor-dash-btn-secondary:hover { background: rgba(52, 211, 153, 0.2); }

/* ── Responsive ── */
@media (max-width: 480px) {
  .doctor-product-grid {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }
  .doctor-detail-header {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .doctor-detail-img { width: 100px; height: 100px; }
  .doctor-ing-header, .doctor-ing-row {
    grid-template-columns: 1fr 80px 50px;
  }
}
