/* SeedScore — M&A Due Diligence Styles
 * ------------------------------------------------------------
 * Sections, SDE blocks, traffic lights, verdict, pipeline,
 * add-ons. Aligned with the global gold-accent (#C5A572) and
 * dark-navy palette used throughout SeedScore.
 */

:root {
  --ma-gold: #C5A572;
  --ma-gold-dark: #a98959;
  --ma-dark: #1a1a2e;
  --ma-green: #16a34a;
  --ma-green-bg: #ecfdf5;
  --ma-amber: #f59e0b;
  --ma-amber-bg: #fffbeb;
  --ma-red: #dc2626;
  --ma-red-bg: #fef2f2;
  --ma-card: #ffffff;
  --ma-muted: #6a6a7e;
  --ma-border: #e7e3d8;
}

/* ---------- Section wrapper ---------- */
.ma-section {
  background: var(--ma-card);
  border: 1px solid var(--ma-border);
  border-radius: 14px;
  padding: 24px;
  margin-bottom: 18px;
  box-shadow: 0 1px 3px rgba(26, 26, 46, 0.04);
}

.ma-section.hidden { display: none; }

.ma-section h2 {
  color: var(--ma-dark);
  font-size: 18px;
  margin-bottom: 4px;
}

.ma-section p.section-hint {
  color: var(--ma-muted);
  font-size: 13.5px;
  margin-bottom: 16px;
}

/* ---------- SDE Block ---------- */
.sde-block {
  border: 1px solid var(--ma-border);
  border-radius: 12px;
  margin: 14px 0;
  overflow: hidden;
  background: #fdfdf9;
}

.sde-block-label {
  background: var(--ma-dark);
  color: var(--ma-gold);
  padding: 8px 14px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
}

.sde-block-body {
  padding: 14px;
}

.sde-table {
  width: 100%;
  border-collapse: collapse;
}

.sde-table thead th {
  text-align: left;
  font-size: 11px;
  text-transform: uppercase;
  color: var(--ma-muted);
  letter-spacing: 0.6px;
  padding: 6px 8px;
  border-bottom: 1px solid var(--ma-border);
}

.sde-table th.numeric, .sde-table td.numeric {
  text-align: right;
}

.sde-table tbody td {
  padding: 5px 8px;
  border-bottom: 1px dashed var(--ma-border);
}

.sde-table tbody tr:last-child td { border-bottom: 0; }

.sde-table input[type="text"],
.sde-table input[type="number"] {
  width: 100%;
  padding: 6px 8px;
  border: 1px solid var(--ma-border);
  border-radius: 6px;
  font-size: 13px;
  text-align: right;
  font-family: inherit;
  background: #fff;
}

.sde-table input:focus {
  outline: none;
  border-color: var(--ma-gold);
  box-shadow: 0 0 0 3px rgba(197, 165, 114, 0.18);
}

.sde-row-label {
  font-size: 13px;
  color: var(--ma-dark);
  width: 38%;
}

.sde-total-row td {
  font-weight: 700;
  background: rgba(197, 165, 114, 0.08);
  border-top: 1.5px solid var(--ma-gold);
  border-bottom: 0 !important;
}

.sde-derived {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 6px;
  background: rgba(197, 165, 114, 0.12);
  color: var(--ma-gold-dark);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.sde-highlight {
  background: linear-gradient(135deg, var(--ma-gold) 0%, #d4b884 100%);
  color: #fff;
  padding: 14px 18px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  margin: 6px 0 4px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* ---------- Traffic Lights ---------- */
.traffic-lights {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px;
  margin: 14px 0;
}

.traffic-light-card {
  background: #fff;
  border: 1px solid var(--ma-border);
  border-radius: 10px;
  padding: 12px;
  position: relative;
  transition: transform 0.15s;
}

.traffic-light-card:hover { transform: translateY(-1px); }

.traffic-light-dot {
  width: 12px; height: 12px;
  border-radius: 50%;
  position: absolute;
  top: 12px; right: 12px;
  box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.06);
}

.traffic-light-card.green .traffic-light-dot { background: var(--ma-green); }
.traffic-light-card.amber .traffic-light-dot { background: var(--ma-amber); }
.traffic-light-card.red .traffic-light-dot { background: var(--ma-red); }

.traffic-light-card.green { border-left: 4px solid var(--ma-green); }
.traffic-light-card.amber { border-left: 4px solid var(--ma-amber); }
.traffic-light-card.red { border-left: 4px solid var(--ma-red); }

.traffic-light-name {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--ma-muted);
}

.traffic-light-value {
  font-size: 18px;
  font-weight: 700;
  color: var(--ma-dark);
  margin: 2px 0;
  font-variant-numeric: tabular-nums;
}

.traffic-light-threshold {
  font-size: 11px;
  color: var(--ma-muted);
}

/* ---------- Verdict Banner ---------- */
.verdict-banner {
  border-radius: 14px;
  padding: 22px 26px;
  margin: 14px 0;
  text-align: center;
  font-size: 28px;
  font-weight: 800;
  letter-spacing: 0.5px;
  font-family: 'Playfair Display', Georgia, serif;
}

.verdict-banner.hidden { display: none; }

.verdict-strong-buy {
  background: linear-gradient(135deg, var(--ma-green) 0%, #22c55e 100%);
  color: #fff;
}

.verdict-negotiate {
  background: linear-gradient(135deg, var(--ma-amber) 0%, #fbbf24 100%);
  color: var(--ma-dark);
}

.verdict-walk-away {
  background: linear-gradient(135deg, var(--ma-red) 0%, #f87171 100%);
  color: #fff;
}

.verdict-sub {
  display: block;
  font-size: 13px;
  font-weight: 500;
  opacity: 0.92;
  margin-top: 4px;
  font-family: 'Inter', sans-serif;
  letter-spacing: 0;
}

/* ---------- SDE Result Summary ---------- */
.sde-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
  margin: 12px 0;
}

.sde-summary-card {
  background: #fff;
  border: 1px solid var(--ma-border);
  border-radius: 10px;
  padding: 12px 14px;
}

.sde-summary-label {
  font-size: 11px;
  color: var(--ma-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.sde-summary-value {
  font-size: 18px;
  font-weight: 700;
  color: var(--ma-dark);
  margin-top: 2px;
}

/* ---------- Pipeline Kanban ---------- */
.pipeline-section {
  margin: 22px 0;
}

.pipeline-section.hidden { display: none; }

.pipeline-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
  flex-wrap: wrap;
  gap: 10px;
}

.pipeline-view {
  display: grid;
  grid-template-columns: repeat(7, minmax(180px, 1fr));
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 8px;
}

.pipeline-column {
  background: #f6f3eb;
  border: 1px solid var(--ma-border);
  border-radius: 10px;
  padding: 10px;
  min-width: 180px;
}

.pipeline-column-header {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--ma-dark);
  font-weight: 700;
  margin-bottom: 8px;
  padding-bottom: 6px;
  border-bottom: 2px solid var(--ma-gold);
}

.deal-card {
  background: #fff;
  border: 1px solid var(--ma-border);
  border-radius: 8px;
  padding: 10px;
  margin-bottom: 8px;
  cursor: grab;
  font-size: 12.5px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.deal-card-name {
  font-weight: 700;
  color: var(--ma-dark);
  margin-bottom: 2px;
}

.deal-card-sde {
  font-size: 11px;
  color: var(--ma-muted);
}

.deal-card-actions {
  display: flex;
  gap: 4px;
  margin-top: 6px;
}

.deal-card-actions button {
  font-size: 10px;
  padding: 3px 6px;
  border: 1px solid var(--ma-border);
  background: #fff;
  border-radius: 4px;
  cursor: pointer;
}

.deal-card-actions button:hover { background: #f6f3eb; }

/* ---------- Add-on Section ---------- */
.addon-section {
  margin: 24px 0 32px 0;
}

.addon-section.hidden { display: none; }

.addon-section h2 {
  color: var(--ma-dark);
  margin-bottom: 12px;
}

.addon-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
}

.addon-card {
  background: #fff;
  border: 1.5px solid var(--ma-border);
  border-radius: 12px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: border-color 0.15s, transform 0.15s;
}

.addon-card:hover {
  border-color: var(--ma-gold);
  transform: translateY(-1px);
}

.addon-card.unlocked {
  border-color: var(--ma-green);
}

.addon-card-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--ma-dark);
  margin-bottom: 4px;
}

.addon-card-desc {
  font-size: 12.5px;
  color: var(--ma-muted);
  flex-grow: 1;
  margin-bottom: 10px;
}

.addon-card-price {
  font-size: 18px;
  font-weight: 700;
  color: var(--ma-gold-dark);
  margin-bottom: 8px;
}

.addon-card-cta {
  background: var(--ma-dark);
  color: #fff;
  border: 0;
  padding: 10px 14px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  font-size: 13.5px;
  transition: background 0.15s;
}

.addon-card-cta:hover { background: #2a2a3e; }

.addon-card-cta.unlocked {
  background: var(--ma-green);
}

.addon-card-cta.unlocked:hover { background: #22c55e; }

.addon-demo-badge {
  position: absolute;
  top: 12px; right: 12px;
  background: var(--ma-gold);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 999px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

/* ---------- Mode-specific show/hide ---------- */
body.ma-mode .simple-mode-section,
body.ma-mode .smb-mode-section,
body.ma-mode .smb-val-mode-section,
body.ma-mode .expert-section,
body.ma-mode .email-hero-section .investor-toggle-inline {
  display: none !important;
}

/* M&A-spezifische Elemente nur im MA-Modus */
body:not(.ma-mode) .ma-section,
body:not(.ma-mode) .pipeline-section {
  display: none;
}

/* Addon-Section: immer hidden per default, per JS eingeblendet nach Analyse */
.addon-section { display: none; }
.addon-section.visible { display: block; }

/* Addon-Section Inneres */
.addon-section-inner {
  max-width: 100%;
  padding: 32px 0 8px 0;
  border-top: 1px solid var(--ma-border);
}

.addon-subtitle {
  color: var(--ma-muted);
  font-size: 13.5px;
  margin-bottom: 6px;
  margin-top: -6px;
}

.addon-hint {
  font-size: 12px;
  color: #C5A572;
  background: #FFFBF3;
  border: 1px solid #E8D9B8;
  border-radius: 6px;
  padding: 7px 12px;
  margin-bottom: 16px;
  display: inline-block;
}

.addon-card.addon-coming-soon {
  border-color: #E5E7EB;
  opacity: 0.85;
  overflow: hidden;
}

.addon-card.addon-coming-soon:hover {
  border-color: #D1D5DB;
  transform: none;
}

.addon-soon-overlay {
  position: absolute;
  inset: 0;
  background: rgba(243, 244, 246, 0.82);
  border-radius: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  backdrop-filter: blur(2px);
}

.addon-soon-label {
  font-size: 13px;
  font-weight: 700;
  color: #6B7280;
  letter-spacing: 0.5px;
  padding: 6px 14px;
  border: 1.5px solid #D1D5DB;
  border-radius: 20px;
  background: #fff;
}

.addon-cta-soon {
  background: #E5E7EB;
  color: #9CA3AF;
  border: 0;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: not-allowed;
  width: 100%;
}

/* ---------- Business Profile Layout ---------- */
.ma-profile-row2 {
  grid-template-columns: 1fr 1fr;
  margin-top: -8px;
}

/* ---------- Promo Code ---------- */
.promo-code-box {
  margin-top: 28px;
  padding: 18px 20px;
  border: 1.5px dashed var(--ma-border);
  border-radius: 12px;
  background: #fdfdf9;
}

.promo-label {
  font-size: 13px;
  color: var(--ma-muted);
  margin-bottom: 10px;
}

.promo-input-row {
  display: flex;
  gap: 10px;
  align-items: center;
}

.promo-input {
  flex: 1;
  border: 1.5px solid var(--ma-border);
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 14px;
  font-family: 'Inter', sans-serif;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  background: #fff;
  outline: none;
  transition: border-color 0.15s;
}

.promo-input:focus { border-color: var(--ma-gold); }

.promo-btn {
  background: var(--ma-dark);
  color: #fff;
  border: 0;
  padding: 10px 20px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 13.5px;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s;
}

.promo-btn:hover { background: #2a2a3e; }
.promo-btn:disabled { opacity: 0.6; cursor: default; }

.promo-feedback {
  margin-top: 8px;
  font-size: 13px;
  font-weight: 600;
  padding: 6px 10px;
  border-radius: 6px;
}

.promo-feedback.promo-success {
  color: var(--ma-green);
  background: var(--ma-green-bg);
}

.promo-feedback.promo-error {
  color: var(--ma-red);
  background: var(--ma-red-bg);
}

.promo-feedback.hidden { display: none; }

/* ---------- Buttons ---------- */
.ma-btn-calc {
  background: var(--ma-gold);
  color: #fff;
  border: 0;
  padding: 12px 20px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 700;
  font-size: 14px;
  margin-top: 12px;
}

.ma-btn-calc:hover { background: var(--ma-gold-dark); }

.ma-btn-analyze {
  background: var(--ma-dark);
  color: var(--ma-gold);
  border: 1.5px solid var(--ma-gold);
  padding: 12px 20px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 700;
  font-size: 14px;
  margin-top: 8px;
}

.ma-btn-analyze:hover {
  background: #2a2a3e;
}

.ma-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 12px;
}

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
  .pipeline-view {
    grid-template-columns: repeat(7, 220px);
  }
  .sde-table .sde-row-label { width: 50%; }
  .verdict-banner { font-size: 22px; }
}

/* ── Unlock Modal ────────────────────────────────────────────────────────── */
.unlock-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 20px;
  animation: fadeInOverlay 0.18s ease;
}

@keyframes fadeInOverlay {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.unlock-modal-box {
  background: #fff;
  border-radius: 16px;
  padding: 36px 32px 28px;
  max-width: 420px;
  width: 100%;
  position: relative;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.18);
  animation: slideUpModal 0.22s ease;
}

@keyframes slideUpModal {
  from { transform: translateY(24px); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}

.unlock-modal-close {
  position: absolute;
  top: 14px;
  right: 16px;
  background: none;
  border: none;
  font-size: 22px;
  color: #94a3b8;
  cursor: pointer;
  line-height: 1;
  padding: 4px 8px;
}

.unlock-modal-close:hover { color: #1B2A4A; }

.unlock-modal-title {
  font-size: 20px;
  font-weight: 700;
  color: #1B2A4A;
  margin: 0 0 10px;
}

.unlock-modal-desc {
  font-size: 14px;
  color: #64748b;
  margin: 0 0 20px;
  line-height: 1.5;
}

.unlock-modal-input {
  width: 100%;
  padding: 12px 14px;
  border: 2px solid #e2e8f0;
  border-radius: 8px;
  font-size: 15px;
  color: #1B2A4A;
  outline: none;
  box-sizing: border-box;
  margin-bottom: 14px;
  transition: border-color 0.15s;
}

.unlock-modal-input:focus { border-color: #C5A572; }

.unlock-modal-btn {
  width: 100%;
  padding: 13px;
  background: #1B2A4A;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.18s;
}

.unlock-modal-btn:hover:not(:disabled) { background: #243657; }
.unlock-modal-btn:disabled { opacity: 0.6; cursor: default; }

.unlock-modal-feedback {
  margin-top: 12px;
  font-size: 13px;
  min-height: 20px;
  text-align: center;
}

.unlock-modal-feedback.success { color: #16a34a; font-weight: 600; }
.unlock-modal-feedback.error   { color: #dc2626; }

@media (max-width: 480px) {
  .unlock-modal-box { padding: 28px 20px 22px; }
  .unlock-modal-title { font-size: 18px; }
}
