﻿@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;600;700;800&family=Space+Grotesk:wght@700&display=swap');

/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #f3f6f9;
  --surface: rgba(255, 255, 255, 0.7);
  --surface2: rgba(255, 255, 255, 0.4);
  --border: rgba(255, 255, 255, 0.5);
  --text: #0f172a;
  --text2: #334155;
  --text3: #64748b;
  --primary: #3b82f6;
  --primary-h: #2563eb;
  --accent: #8b5cf6;
  --success: #10b981;
  --warning: #f59e0b;
  --danger: #ef4444;
  --radius: 24px;
  --radius-sm: 14px;
  --shadow: 0 10px 40px -10px rgba(0,0,0,0.08);
  --shadow-lg: 0 20px 40px -10px rgba(0,0,0,0.15);
  --blur: blur(16px);
  --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.dark {
  --bg: #0b1120;
  --surface: rgba(15, 23, 42, 0.65);
  --surface2: rgba(30, 41, 59, 0.4);
  --border: rgba(255, 255, 255, 0.08);
  --text: #f8fafc;
  --text2: #cbd5e1;
  --text3: #94a3b8;
  --primary: #60a5fa;
  --primary-h: #93c5fd;
  --shadow: 0 10px 40px -10px rgba(0,0,0,0.4);
  --shadow-lg: 0 20px 40px -10px rgba(0,0,0,0.6);
}

html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', sans-serif;
  background-color: var(--bg);
  background-image: 
    radial-gradient(at 0% 0%, rgba(59, 130, 246, 0.1) 0px, transparent 50%),
    radial-gradient(at 100% 0%, rgba(139, 92, 246, 0.1) 0px, transparent 50%),
    radial-gradient(at 100% 100%, rgba(59, 130, 246, 0.1) 0px, transparent 50%),
    radial-gradient(at 0% 100%, rgba(139, 92, 246, 0.1) 0px, transparent 50%);
  background-attachment: fixed;
  color: var(--text);
  min-height: 100vh;
  font-size: 15px;
  line-height: 1.6;
  transition: background 0.3s, color 0.3s;
}
.dark body {
  background-image: 
    radial-gradient(at 0% 0%, rgba(59, 130, 246, 0.15) 0px, transparent 50%),
    radial-gradient(at 100% 0%, rgba(139, 92, 246, 0.15) 0px, transparent 50%),
    radial-gradient(at 100% 100%, rgba(59, 130, 246, 0.15) 0px, transparent 50%),
    radial-gradient(at 0% 100%, rgba(139, 92, 246, 0.15) 0px, transparent 50%);
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 4px; }
.dark ::-webkit-scrollbar-thumb { background: #475569; }

/* ===== LAYOUT ===== */
.app-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1.5rem 4rem;
}

.no-transition, .no-transition * {
  transition: none !important;
}

/* ===== HERO ===== */
.hero {
  text-align: center;
  padding: 2.5rem 0 2rem;
}
.hero h1 {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.02em;
  margin-bottom: .75rem;
}
.hero p {
  color: var(--text2);
  max-width: 620px;
  margin: 0 auto 1.25rem;
  font-size: 1.05rem;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: linear-gradient(135deg, rgba(37,99,235,.12), rgba(124,58,237,.12));
  border: 1px solid rgba(37,99,235,.25);
  color: var(--primary);
  padding: .35rem .85rem;
  border-radius: 999px;
  font-size: .8rem;
  font-weight: 600;
}

/* ===== CARDS ===== */
.card {
  background: var(--surface);
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.75rem;
  transition: var(--transition);
}
.card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}
.card-title {
  font-family: 'Outfit', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: .6rem;
  margin-bottom: 1.25rem;
}
.card-title i {
  color: var(--primary);
  font-size: 1rem;
}
.card-title .step-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  background: var(--primary);
  color: white;
  border-radius: 8px;
  font-size: .8rem;
  font-weight: 700;
  flex-shrink: 0;
}

/* ===== FORM ===== */
.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
}
.form-group { display: flex; flex-direction: column; gap: .4rem; }
.form-label {
  font-size: .82rem;
  font-weight: 600;
  color: var(--text2);
  text-transform: uppercase;
  letter-spacing: .04em;
}
.form-control {
  width: 100%;
  background: var(--surface2);
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  padding: .75rem 1rem;
  font-family: inherit;
  font-size: .95rem;
  transition: var(--transition);
  appearance: none;
  -webkit-appearance: none;
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.02);
}
.form-control:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37,99,235,.15);
}
.form-control::placeholder { color: var(--text3); }

select.form-control {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%2394a3b8'%3E%3Cpath fill-rule='evenodd' d='M5.293 7.293a1 1 0 011.414 0L10 10.586l3.293-3.293a1 1 0 111.414 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414z' clip-rule='evenodd'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right .75rem center;
  background-size: 18px;
  padding-right: 2.5rem;
}

option { background: var(--surface); color: var(--text); }

/* ===== CHECKBOX GROUP ===== */
.checkbox-group {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-top: .25rem;
}
.checkbox-chip {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .6rem 1.1rem;
  border: 1.5px solid var(--border);
  background: var(--surface2);
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
  border-radius: 999px;
  cursor: pointer;
  font-size: .9rem;
  font-weight: 600;
  color: var(--text2);
  transition: var(--transition);
  user-select: none;
  box-shadow: 0 4px 12px rgba(0,0,0,0.03);
}
.checkbox-chip:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: rgba(37,99,235,.06);
}
.checkbox-chip.active {
  border-color: var(--primary);
  background: rgba(37,99,235,.1);
  color: var(--primary);
  font-weight: 600;
}
.checkbox-chip input { display: none; }
.checkbox-chip i { font-size: .75rem; }

/* ===== MODELS GRID ===== */
.models-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: .75rem;
}
.model-card {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .85rem 1rem;
  background: var(--surface2);
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
}
.model-card:hover {
  border-color: var(--primary);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(37,99,235,.12);
}
.model-icon {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}
.model-name { font-size: .88rem; font-weight: 600; color: var(--text); }
.model-sector { font-size: .75rem; color: var(--text3); }

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .7rem 1.5rem;
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: .9rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  text-decoration: none;
}
.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: white;
  box-shadow: 0 4px 14px rgba(37,99,235,.25);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37,99,235,.4);
}
.btn-secondary {
  background: var(--surface2);
  color: var(--text);
  border: 1.5px solid var(--border);
}
.btn-secondary:hover {
  background: var(--border);
}
.btn-danger {
  background: rgba(220,38,38,.08);
  color: var(--danger);
  border: 1.5px solid rgba(220,38,38,.2);
}
.btn-danger:hover {
  background: rgba(220,38,38,.15);
}
.btn-icon {
  padding: .5rem;
  width: 36px;
  height: 36px;
  border-radius: 8px;
}
.btn-lg { padding: .85rem 2rem; font-size: 1rem; border-radius: 12px; }

/* ===== GENERATE SECTION ===== */
.generate-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding-top: 1.5rem;
  flex-wrap: wrap;
}

/* ===== DELIVERABLES ===== */
.deliverables-section { display: none; }
.deliverables-section.visible { display: block; }

.deliverables-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  margin-bottom: 2rem;
  padding: 0.5rem;
  background: var(--surface2);
  border-radius: var(--radius);
  border: 1px solid var(--border);
}
.tab-btn {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  padding: .75rem 1.25rem;
  border-radius: 12px;
  font-size: .95rem;
  font-weight: 700;
  cursor: pointer;
  border: 1px solid transparent;
  background: transparent;
  color: var(--text2);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}
.tab-btn i {
  font-size: 1.1rem;
  opacity: 0.7;
  transition: transform 0.3s ease;
}
.tab-btn:hover {
  color: var(--primary);
  background: rgba(37,99,235,0.05);
}
.tab-btn:hover i {
  transform: translateY(-2px);
  opacity: 1;
}
.tab-btn.active {
  background: var(--surface);
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
  color: var(--primary);
  border-color: var(--border);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08), 0 1px 2px rgba(37,99,235,0.15);
}
.tab-btn.active i {
  opacity: 1;
  color: var(--primary);
}
.tab-btn.active::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 20%;
  right: 20%;
  height: 2px;
  background: var(--primary);
  border-radius: 99px;
}
.dark .tab-btn.active {
  background: var(--bg);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.deliverable-panel { display: none; }
.deliverable-panel.active { display: block; }

.deliverable-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}
.deliverable-title {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 1.35rem;
  color: var(--text);
}
.deliverable-subtitle { font-size: .85rem; color: var(--text2); margin-top: .2rem; }
.deliverable-actions { display: flex; gap: .5rem; flex-wrap: wrap; }

/* ===== SWOT MATRIX ===== */
.swot-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.swot-cell {
  padding: 1.5rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
  box-shadow: var(--shadow);
}
.swot-cell.strengths { background: rgba(5,150,105,.06); border-color: rgba(5,150,105,.25); }
.swot-cell.weaknesses { background: rgba(220,38,38,.06); border-color: rgba(220,38,38,.25); }
.swot-cell.opportunities { background: rgba(37,99,235,.06); border-color: rgba(37,99,235,.25); }
.swot-cell.threats { background: rgba(217,119,6,.06); border-color: rgba(217,119,6,.25); }
.swot-label {
  font-weight: 700;
  font-size: .82rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: .85rem;
  display: flex;
  align-items: center;
  gap: .4rem;
}
.swot-cell.strengths .swot-label { color: #059669; }
.swot-cell.weaknesses .swot-label { color: #dc2626; }
.swot-cell.opportunities .swot-label { color: #2563eb; }
.swot-cell.threats .swot-label { color: #d97706; }

/* ===== PESTEL ===== */
.pestel-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
}
.pestel-cell {
  background: var(--surface2);
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1.25rem;
}
.pestel-label {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  font-weight: 700;
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: .05em;
  padding: .25rem .7rem;
  border-radius: 999px;
  margin-bottom: .75rem;
}

/* ===== PORTER 5 FORCES ===== */
.porter-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
}
.porter-cell {
  background: var(--surface2);
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1.5rem;
}
.force-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: .75rem;
}
.force-name {
  font-weight: 700;
  font-size: .95rem;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: .5rem;
}
.force-level {
  font-size: .75rem;
  font-weight: 700;
  padding: .2rem .6rem;
  border-radius: 999px;
}
.level-high { background: rgba(220,38,38,.12); color: #dc2626; }
.level-medium { background: rgba(217,119,6,.12); color: #d97706; }
.level-low { background: rgba(5,150,105,.12); color: #059669; }

/* ===== VRIO TABLE ===== */
.vrio-table-wrap { overflow-x: auto; }
.vrio-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .88rem;
}
.vrio-table th {
  background: var(--surface2);
  color: var(--text2);
  font-weight: 700;
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .04em;
  padding: .75rem 1rem;
  border: 1px solid var(--border);
  text-align: left;
}
.vrio-table td {
  padding: .75rem 1rem;
  border: 1px solid var(--border);
  color: var(--text);
  vertical-align: top;
}
.vrio-table tr:nth-child(even) td { background: var(--surface2); }
.check-yes { color: #059669; font-weight: 700; }
.check-no { color: #dc2626; font-weight: 700; }
.check-partial { color: #d97706; font-weight: 700; }

/* ===== ANSOFF MATRIX ===== */
.ansoff-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1.5px solid var(--border);
}
.ansoff-cell {
  background: var(--surface);
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
  padding: 1.5rem;
  min-height: 140px;
}
.ansoff-cell.highlight {
  background: linear-gradient(135deg, rgba(37,99,235,.08), rgba(124,58,237,.08));
  border: 2px solid rgba(37,99,235,.3);
}
.ansoff-label {
  font-weight: 800;
  font-size: .9rem;
  margin-bottom: .5rem;
  color: var(--primary);
}
.ansoff-sub { font-size: .75rem; color: var(--text3); margin-bottom: .5rem; }

/* ===== POSITIONING MAP ===== */
.positioning-map-wrap {
  width: 100%;
}
.canvas-container {
  width: 100%;
  background: var(--surface2);
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  border: 1px solid var(--border);
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.02);
  cursor: crosshair;
  margin-top: 1rem;
}
#positioning-canvas {
  width: 100%;
  height: auto;
  display: block;
  touch-action: none;
}
.map-label {
  position: absolute;
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 800;
  color: var(--text);
  white-space: nowrap;
  padding: 2px 6px;
  border-radius: 4px;
  background: var(--surface);
  border: 1.5px solid transparent;
  transform: translate(-50%, 25px);
  cursor: text;
  pointer-events: auto;
  z-index: 10;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.map-label:hover, .map-label:focus {
  border-color: var(--primary);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  background: var(--surface);
  outline: none;
}

/* ===== EDITABLE CONTENT ===== */
.editable-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: .5rem;
}
.editable-item {
  display: flex;
  align-items: flex-start;
  gap: .5rem;
  padding: .5rem .6rem;
  border-radius: 8px;
  transition: var(--transition);
  font-weight: 600;
}
.editable-item:hover { background: var(--surface2); }
.editable-item::before {
  content: '•';
  color: var(--primary);
  font-weight: 700;
  margin-top: .1rem;
  flex-shrink: 0;
}
[contenteditable] {
  outline: none;
  border-bottom: 1.5px dashed transparent;
  transition: var(--transition);
  min-width: 20px;
  padding: 1px 2px;
  border-radius: 3px;
}
[contenteditable]:focus {
  border-bottom-color: var(--primary);
  background: rgba(37,99,235,.05);
}
[contenteditable]:hover { border-bottom-color: var(--border); }

/* ===== SOURCES ===== */
.sources-box {
  margin-top: 1.25rem;
  padding: .9rem 1.1rem;
  background: var(--surface2);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: .8rem;
}
.sources-box .source-title {
  font-weight: 700;
  color: var(--text2);
  font-size: .75rem;
  text-transform: uppercase;
  letter-spacing: .05em;
  margin-bottom: .45rem;
  display: flex;
  align-items: center;
  gap: .35rem;
}
.sources-box a {
  color: var(--primary);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  font-size: .8rem;
  transition: var(--transition);
  word-break: break-all;
}
.sources-box a:hover { text-decoration: underline; opacity: .85; }

/* ===== EXPORT SECTION ===== */
.export-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 1.5rem;
}
.export-label {
  font-weight: 700;
  color: var(--text);
  font-size: 1rem;
}
.export-label span { color: var(--text2); font-weight: 400; font-size: .88rem; display: block; }
.export-btns { display: flex; gap: .65rem; flex-wrap: wrap; }

/* ===== TOWS TABLE ===== */
.tows-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.tows-cell {
  padding: 1.25rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--surface2);
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
  box-shadow: var(--shadow);
}
.tows-label {
  font-weight: 700;
  font-size: .82rem;
  text-transform: uppercase;
  letter-spacing: .05em;
  margin-bottom: .75rem;
  padding-bottom: .5rem;
  border-bottom: 2px solid;
}
.tows-cell:nth-child(1) .tows-label { color: #059669; border-color: #059669; }
.tows-cell:nth-child(2) .tows-label { color: #2563eb; border-color: #2563eb; }
.tows-cell:nth-child(3) .tows-label { color: #d97706; border-color: #d97706; }
.tows-cell:nth-child(4) .tows-label { color: #dc2626; border-color: #dc2626; }

/* ===== LOADING SPINNER ===== */
.spinner-wrap {
  display: none;
  text-align: center;
  padding: 3rem 0;
}
.spinner-wrap.visible { display: block; }
.spinner {
  width: 48px;
  height: 48px;
  border: 4px solid var(--border);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 0 auto 1rem;
}
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}
.animate-in { animation: fadeIn 0.4s ease-out forwards; }

/* ===== PROGRESS BAR ===== */
.competitiveness-bar {
  height: 8px;
  background: var(--border);
  border-radius: 999px;
  overflow: hidden;
  margin-top: .3rem;
}
.competitiveness-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  transition: width 1s ease;
}

/* ===== STRATEGY RECOMMENDATION ===== */
.strategy-card {
  background: linear-gradient(135deg, rgba(37,99,235,.07), rgba(124,58,237,.07));
  border: 1.5px solid rgba(37,99,235,.2);
  border-radius: var(--radius);
  padding: 1.5rem;
}
.strategy-card h3 {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--primary);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: .5rem;
}
.recommendation-list { display: flex; flex-direction: column; gap: .75rem; }
.recommendation-item {
  display: flex;
  align-items: flex-start;
  gap: .75rem;
  padding: .75rem;
  background: var(--surface);
  border-radius: 10px;
  border: 1px solid var(--border);
}
.rec-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .8rem;
  flex-shrink: 0;
}
.rec-text { font-size: .9rem; color: var(--text); line-height: 1.5; }
.rec-text strong { color: var(--text); font-weight: 600; }

/* ===== QUOTE ===== */
.insight-box {
  margin-top: 1rem;
  padding: .9rem 1.1rem .9rem 1.4rem;
  border-left: 3px solid var(--primary);
  background: var(--surface2);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: .88rem;
  color: var(--text2);
  font-style: italic;
}

/* ===== POSITIONING AXES ===== */
.axes-config {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-bottom: 1rem;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .app-container { padding: 1rem 1rem 3rem; }
  .swot-grid, .tows-grid { grid-template-columns: 1fr; }
  .ansoff-grid { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .deliverable-header { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 480px) {
  .models-grid { grid-template-columns: 1fr 1fr; }
  .tab-btn span { display: none; }
}

/* ===== PDF-only ===== */
.pdf-header-block {
  display: none;
}
.for-pdf .pdf-header-block {
  display: flex;
}

/* ===== NOTIFICATION ===== */
.notif {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: 12px;
  padding: .85rem 1.25rem;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: .65rem;
  font-size: .9rem;
  font-weight: 500;
  animation: fadeIn .3s ease;
  max-width: 340px;
}
.notif.success { border-color: rgba(5,150,105,.35); color: #059669; }
.notif.error { border-color: rgba(220,38,38,.35); color: #dc2626; }

/* ===== EXPORT MODE — HIGH CONTRAST & READABILITY ===== */
/* Applied temporarily to panels during PNG/PDF captures */
.export-mode, .export-mode * {
  animation: none !important;
  transition: none !important;
}
.export-mode.animate-in, .export-mode .animate-in {
  opacity: 1 !important;
  transform: none !important;
  animation: none !important;
}
.export-mode {
  background: #ffffff !important;
  color: #000000 !important;
  border-color: #000000 !important;
  padding: 3rem !important;
  border-radius: 0 !important;
  opacity: 1 !important;
  transform: none !important;
}

.export-mode .strategy-card {
  background: #f8fafc !important;
  border: 2px solid #2563eb !important;
}
.export-mode .recommendation-item {
  background: #ffffff !important;
  border: 1.5px solid #cbd5e1 !important;
}

/* ── Titles ── */
.export-mode .deliverable-title {
  font-size: 1.6rem !important;
  font-weight: 800 !important;
  color: #0f172a !important;
  letter-spacing: -0.01em !important;
}
.export-mode .deliverable-subtitle {
  font-size: 1rem !important;
  font-weight: 500 !important;
  color: #334155 !important;
}

/* ── Hide export buttons in captures ── */
.export-mode .deliverable-actions {
  display: none !important;
}

/* ── SWOT cells ── */
.export-mode .swot-cell {
  border-width: 3px !important;
  padding: 1.5rem !important;
}
.export-mode .swot-cell.strengths {
  background: #f0fdf4 !important;
  border-color: #166534 !important;
}
.export-mode .swot-cell.weaknesses {
  background: #fef2f2 !important;
  border-color: #991b1b !important;
}
.export-mode .swot-cell.opportunities {
  background: #eff6ff !important;
  border-color: #1e40af !important;
}
.export-mode .swot-cell.threats {
  background: #fffbeb !important;
  border-color: #92400e !important;
}

.export-mode .swot-label {
  font-size: 1rem !important;
  font-weight: 800 !important;
  letter-spacing: 0.08em !important;
  margin-bottom: 1rem !important;
}
.export-mode .swot-cell.strengths .swot-label { color: #047857 !important; }
.export-mode .swot-cell.weaknesses .swot-label { color: #b91c1c !important; }
.export-mode .swot-cell.opportunities .swot-label { color: #1d4ed8 !important; }
.export-mode .swot-cell.threats .swot-label { color: #b45309 !important; }

/* ── Editable list items ── */
.export-mode .editable-item {
  font-size: 1rem !important;
  font-weight: 700 !important;
  color: #000000 !important;
  line-height: 1.6 !important;
  padding: .55rem .65rem !important;
}
.export-mode .editable-item::before {
  font-size: 1.1rem !important;
  color: #2563eb !important;
  font-weight: 900 !important;
}

/* ── TOWS cells ── */
.export-mode .tows-cell {
  padding: 1.4rem !important;
  border-width: 2px !important;
  background: #f8fafc !important;
}
.export-mode .tows-label {
  font-size: 1rem !important;
  font-weight: 800 !important;
  letter-spacing: 0.06em !important;
  border-bottom-width: 3px !important;
  margin-bottom: 1rem !important;
  padding-bottom: .65rem !important;
}

/* ── PESTEL cells ── */
.export-mode .pestel-cell {
  padding: 1.4rem !important;
  border-width: 2px !important;
  background: #f8fafc !important;
}
.export-mode .pestel-label {
  font-size: .95rem !important;
  font-weight: 800 !important;
  letter-spacing: 0.06em !important;
  padding: .35rem .85rem !important;
}

/* ── Porter cells ── */
.export-mode .porter-cell {
  padding: 1.5rem !important;
  border-width: 2px !important;
  background: #f8fafc !important;
}
.export-mode .force-name {
  font-size: 1.05rem !important;
  font-weight: 800 !important;
  color: #0f172a !important;
}
.dark .export-mode .force-name {
  color: #f1f5f9 !important;
}
.export-mode .force-level {
  font-size: .85rem !important;
  font-weight: 800 !important;
  padding: .3rem .75rem !important;
}
.export-mode .level-high {
  background: #991b1b !important;
  color: #ffffff !important;
}
.export-mode .level-medium {
  background: #92400e !important;
  color: #ffffff !important;
}
.export-mode .level-low {
  background: #166534 !important;
  color: #ffffff !important;
}
.dark .export-mode .level-high {
  background: #f87171 !important;
  color: #000000 !important;
}
.dark .export-mode .level-medium {
  background: #fbbf24 !important;
  color: #000000 !important;
}
.dark .export-mode .level-low {
  background: #4ade80 !important;
  color: #000000 !important;
}
.export-mode .porter-cell p {
  font-size: .95rem !important;
  font-weight: 500 !important;
  color: #334155 !important;
  line-height: 1.65 !important;
}

.export-mode .competitiveness-bar {
  height: 10px !important;
}

/* ── VRIO table ── */
.export-mode .vrio-table {
  font-size: 1rem !important;
}
.export-mode .vrio-table th {
  font-size: .9rem !important;
  font-weight: 800 !important;
  padding: .9rem 1.15rem !important;
  background: #f1f5f9 !important;
  color: #0f172a !important;
  border-width: 2px !important;
}
.export-mode .vrio-table td {
  padding: .9rem 1.15rem !important;
  font-size: .95rem !important;
  font-weight: 600 !important;
  color: #1e293b !important;
  border-width: 2px !important;
}
.export-mode .vrio-table tr:nth-child(even) td {
  background: #f8fafc !important;
}
.export-mode .check-yes {
  color: #047857 !important;
  font-size: 1.15rem !important;
}
.export-mode .check-no {
  color: #b91c1c !important;
  font-size: 1.15rem !important;
}
.export-mode .check-partial {
  color: #b45309 !important;
  font-size: 1.15rem !important;
}

/* ── Ansoff cells ── */
.export-mode .ansoff-cell {
  padding: 1.5rem !important;
}
.export-mode .ansoff-label {
  font-size: 1.05rem !important;
  font-weight: 800 !important;
  color: #1d4ed8 !important;
}
.export-mode .ansoff-sub {
  font-size: .88rem !important;
  font-weight: 500 !important;
  color: #475569 !important;
}
.export-mode .ansoff-cell.highlight {
  background: #eff6ff !important;
  border-color: #2563eb !important;
  border-width: 3px !important;
}

/* ── Sources box ── */
.export-mode .sources-box {
  border-width: 2px !important;
  background: #f1f5f9 !important;
  padding: 1rem 1.25rem !important;
}
.export-mode .sources-box .source-title {
  font-size: .85rem !important;
  font-weight: 800 !important;
  color: #0f172a !important;
}
.export-mode .sources-box a {
  font-size: .85rem !important;
  font-weight: 600 !important;
  color: #1d4ed8 !important;
}

/* ── Contenteditable dashes hidden in export ── */
.export-mode [contenteditable] {
  border-bottom-color: transparent !important;
}

/* ── Export watermark ── */
.export-watermark {
  text-align: right;
  padding: .75rem 0 0;
  font-size: .8rem;
  font-weight: 600;
  color: #94a3b8;
  border-top: 1px solid #e2e8f0;
  margin-top: 1.5rem;
}

/* Extracted from index.html */

.grimont-global-header {
    width: 100%;
    z-index: 1000;
    position: sticky;
    top: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding: 14px 0;
    font-family: 'Outfit', 'Inter', sans-serif;
    color: #e2e8f0;
    box-sizing: border-box;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.15);
}
.grimont-global-header * { box-sizing: border-box; }
.grimont-global-header .ggh-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.ggh-left { display: flex; align-items: center; gap: 1.5rem; }
.ggh-logo-group {
    display: flex; align-items: center; gap: 0.875rem; text-decoration: none; transition: transform 0.2s ease;
}
.ggh-logo-group:hover { transform: scale(1.02); }
.ggh-logo-box {
    width: 40px; height: 40px; background: linear-gradient(135deg, #2563eb, #7c3aed);
    border-radius: 10px; display: flex; align-items: center; justify-content: center;
    color: white; font-weight: bold; font-size: 1.25rem; border: 1px solid rgba(255,255,255,0.15);
    box-shadow: 0 0 20px rgba(37, 99, 235, 0.25); flex-shrink: 0;
}
.ggh-logo-text {
    font-family: 'Space Grotesk', monospace; font-weight: 800; font-size: 1.2rem;
    color: white; letter-spacing: 0.05em; display: none;
}
.ggh-logo-text span { color: #00f2ff; }
@media (min-width: 640px) { .ggh-logo-text { display: block; } }
.ggh-separator { width: 1px; height: 36px; background-color: rgba(255, 255, 255, 0.1); display: none; }
@media (min-width: 768px) { .ggh-separator { display: block; } }
.ggh-app-info { display: flex; flex-direction: column; justify-content: center; }
.ggh-app-title-group { display: flex; align-items: center; gap: 0.6rem; }
.ggh-app-icon-container {
    width: 32px; height: 32px; border-radius: 8px; background: rgba(30, 41, 59, 1);
    border: 1px solid rgba(255, 255, 255, 0.1); display: flex; align-items: center; justify-content: center;
    font-size: 14px; color: #60a5fa; box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2); flex-shrink: 0;
}
.ggh-app-name { font-weight: 700; color: white; font-size: 1.05rem; margin: 0; padding: 0; letter-spacing: 0.02em; }
.ggh-app-desc {
    font-size: 0.8rem; color: #94a3b8; max-width: 600px;
    display: none; margin: 4px 0 0 0; padding: 0; line-height: 1.4; font-weight: 300;
}
@media (min-width: 1024px) { .ggh-app-desc { display: block; } }
.ggh-right { display: flex; align-items: center; gap: 1rem; }
.ggh-right button {
    background: rgba(30, 41, 59, 0.6) !important; border: 1px solid rgba(255, 255, 255, 0.1) !important;
    color: #cbd5e1 !important; width: 40px !important; height: 40px !important;
    border-radius: 50% !important; display: flex !important; align-items: center !important; justify-content: center !important;
    cursor: pointer !important; transition: all 0.2s ease !important; padding: 0 !important; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1) !important;
}
.ggh-right button:hover {
    background: rgba(30, 41, 59, 1) !important; color: white !important; border-color: rgba(255, 255, 255, 0.2) !important; transform: translateY(-1px) !important;
}

