/* ===== FUNCTION TABS ===== */
.page-hero-simple {
  background: #2c2a27;
  padding: 100px 24px 40px;
}
.page-hero-simple h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 800;
  color: #f5f0eb;
}
.func-tabs-bar {
  background: #fff;
  border-bottom: 1px solid #e8e4df;
  position: sticky;
  top: 60px;
  z-index: 50;
}
.func-tabs {
  display: flex;
  gap: 0;
}
.func-tab {
  padding: 16px 28px;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 600;
  background: none;
  border: none;
  border-bottom: 3px solid transparent;
  color: #999;
  cursor: pointer;
  transition: all 0.2s;
}
.func-tab:hover { color: #2c2c2c; }
.func-tab.active {
  color: #2c2c2c;
  border-bottom-color: #8a7d6b;
}
.func-panel { display: none; }
.func-panel.active { display: block; }

/* ===== TOOL STYLING ===== */
.tool-title {
  font-family: 'Playfair Display', serif;
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 12px;
  color: #1a1a1a;
}
.tool-desc {
  color: #777;
  font-size: 15px;
  margin-bottom: 24px;
}

/* ===== CALCULATOR ===== */
.calc-tool {
  background: #faf8f5;
  border: 1px solid #e8e4df;
  border-radius: 12px;
  padding: 32px;
}
.calc-result {
  margin-top: 24px;
  background: #fff;
  border: 1px solid #e8e4df;
  border-radius: 10px;
  padding: 28px;
}
.calc-result h4 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 16px;
  color: #2c2c2c;
}
.calc-row {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid #f0ece6;
  font-size: 14px;
}
.calc-row:last-child { border-bottom: none; }
.calc-row-label { color: #666; }
.calc-row-value { font-weight: 700; color: #2c2c2c; }
.calc-total {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 2px solid #e8e4df;
  display: flex;
  justify-content: space-between;
  font-size: 18px;
  font-weight: 700;
}
.calc-total .calc-row-value { color: #8a7d6b; font-size: 20px; }

/* ===== IDEA GENERATOR ===== */
.igec-tool {
  background: #faf8f5;
  border: 1px solid #e8e4df;
  border-radius: 12px;
  padding: 32px;
}
.igec-step {
  margin-bottom: 28px;
  padding-bottom: 28px;
  border-bottom: 1px solid #e8e4df;
}
.igec-step:last-of-type { border-bottom: none; margin-bottom: 20px; }
.igec-step-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
}
.igec-step-num {
  width: 32px; height: 32px;
  background: #8a7d6b;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  flex-shrink: 0;
}
.igec-step-header h4 {
  font-size: 18px;
  font-weight: 700;
  color: #2c2c2c;
}

/* Range inputs */
.range-input {
  width: 100%;
  height: 6px;
  -webkit-appearance: none;
  appearance: none;
  background: #e8e4df;
  border-radius: 3px;
  outline: none;
  margin: 8px 0 4px;
}
.range-input::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 20px; height: 20px;
  background: #8a7d6b;
  border-radius: 50%;
  cursor: pointer;
  border: 3px solid #fff;
  box-shadow: 0 1px 4px rgba(0,0,0,0.15);
}
.range-input::-moz-range-thumb {
  width: 20px; height: 20px;
  background: #8a7d6b;
  border-radius: 50%;
  cursor: pointer;
  border: 3px solid #fff;
  box-shadow: 0 1px 4px rgba(0,0,0,0.15);
}
.range-labels {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: #999;
}
.range-labels span:nth-child(2) {
  font-weight: 700;
  color: #8a7d6b;
  font-size: 16px;
}

/* Checkboxes */
.checkbox-group {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: #555;
  cursor: pointer;
}
.checkbox-label input { accent-color: #8a7d6b; }

/* Radio group */
.radio-group { display: flex; flex-direction: column; gap: 10px; }
.radio-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: #555;
  cursor: pointer;
}
.radio-label input { accent-color: #8a7d6b; }

/* Result */
.igec-result {
  margin-top: 28px;
  background: #fff;
  border: 1px solid #e8e4df;
  border-radius: 12px;
  padding: 32px;
}
.score-header {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid #f0ece6;
}
.score-circle {
  width: 80px; height: 80px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  font-weight: 800;
  flex-shrink: 0;
}
.score-low { background: #fef3f2; color: #b42318; border: 2px solid #fecdca; }
.score-mid { background: #fffaeb; color: #b54708; border: 2px solid #fedf89; }
.score-high { background: #ecfdf3; color: #067647; border: 2px solid #abefc6; }
.score-info h3 { font-size: 20px; font-weight: 700; margin-bottom: 4px; }
.score-info p { font-size: 14px; color: #777; }
.score-bars { margin-bottom: 24px; }
.score-bar-item {
  margin-bottom: 14px;
}
.score-bar-label {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 6px;
}
.score-bar-label span:first-child { color: #555; }
.score-bar-label span:last-child { color: #8a7d6b; }
.score-bar {
  height: 8px;
  background: #f0ece6;
  border-radius: 4px;
  overflow: hidden;
}
.score-bar-fill {
  height: 100%;
  border-radius: 4px;
  transition: width 0.6s ease;
}
.score-bar-fill.low { background: #f97066; }
.score-bar-fill.mid { background: #fdb022; }
.score-bar-fill.high { background: #32d583; }
.score-recommendations {
  background: #faf8f5;
  border-radius: 8px;
  padding: 20px;
}
.score-recommendations h4 { font-size: 15px; font-weight: 700; margin-bottom: 10px; color: #2c2c2c; }
.score-recommendations ul {
  list-style: none;
  padding: 0;
}
.score-recommendations li {
  padding: 6px 0 6px 20px;
  position: relative;
  font-size: 14px;
  color: #666;
}
.score-recommendations li::before {
  content: '';
  position: absolute;
  left: 0; top: 13px;
  width: 6px; height: 6px;
  background: #8a7d6b;
  border-radius: 50%;
}

/* ===== E-PITCHING ===== */
.epitch-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 20px;
}
.epitch-step-card {
  background: #faf8f5;
  border: 1px solid #e8e4df;
  border-radius: 10px;
  padding: 24px 20px;
  text-align: center;
  transition: all 0.3s;
}
.epitch-step-card:hover { border-color: #c4b8a5; transform: translateY(-2px); }
.epitch-step-num {
  display: inline-flex;
  width: 36px; height: 36px;
  background: #8a7d6b;
  color: #fff;
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 15px;
  margin-bottom: 12px;
}
.epitch-step-card h4 { font-size: 15px; font-weight: 700; margin-bottom: 8px; color: #2c2c2c; }
.epitch-step-card p { font-size: 13px; color: #777; line-height: 1.6; }

/* Stage list */
.stage-list { margin-top: 20px; }
.stage-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid #f0ece6;
}
.stage-item:last-child { border-bottom: none; }
.stage-num {
  width: 32px; height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 13px;
  flex-shrink: 0;
  background: #f0ece6;
  color: #8a7d6b;
}
.stage-item h4 { font-size: 15px; font-weight: 700; color: #2c2c2c; margin-bottom: 2px; }
.stage-item p { font-size: 13px; color: #777; }
.stage-1 .stage-num { background: #ecfdf3; color: #067647; }
.stage-2 .stage-num { background: #eff8ff; color: #175cd3; }
.stage-3 .stage-num { background: #fffaeb; color: #b54708; }
.stage-4 .stage-num { background: #ecfdf3; color: #067647; }
.stage-5 .stage-num { background: #f4f3ff; color: #5925dc; }
.stage-6 .stage-num { background: #fdf2fa; color: #c11574; }
.stage-7 .stage-num { background: #fef3f2; color: #b42318; }

/* IP Options */
.ip-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 16px;
}
.ip-option {
  background: #faf8f5;
  border: 1px solid #e8e4df;
  border-radius: 10px;
  padding: 24px;
  transition: border-color 0.3s;
}
.ip-option:hover { border-color: #c4b8a5; }
.ip-icon {
  width: 44px; height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}
.ip-free { background: #ecfdf3; color: #067647; }
.ip-protected { background: #eff8ff; color: #175cd3; }
.ip-option h4 { font-size: 16px; font-weight: 700; margin-bottom: 8px; color: #2c2c2c; }
.ip-option p { font-size: 13px; color: #777; line-height: 1.6; }

/* Disclaimer */
.epitch-disclaimer {
  background: #fffaeb;
  border: 1px solid #fedf89;
  border-radius: 8px;
  padding: 16px 20px;
  margin-top: 20px;
}
.epitch-disclaimer p { font-size: 13px; color: #93370d; line-height: 1.6; }

/* E-Pitch form */
.epitch-form {
  margin-top: 24px;
}
.epitch-form .form-group { margin-bottom: 18px; }
.epitch-form label { font-size: 13px; font-weight: 600; color: #555; display: block; margin-bottom: 6px; }
.epitch-form input, .epitch-form select, .epitch-form textarea {
  width: 100%;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 12px 14px;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  outline: none;
  transition: border-color 0.3s;
}
.epitch-form input:focus, .epitch-form select:focus, .epitch-form textarea:focus { border-color: #8a7d6b; }
.epitch-form textarea { resize: vertical; }

/* Pitch success */
.pitch-success {
  text-align: center;
  padding: 40px 20px;
}
.pitch-success-icon {
  width: 64px; height: 64px;
  background: #ecfdf3;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}
.pitch-success h3 { font-size: 22px; font-weight: 700; margin-bottom: 8px; color: #2c2c2c; }
.pitch-success p { font-size: 15px; color: #777; max-width: 440px; margin: 0 auto; }
.pitch-id { font-family: monospace; font-size: 16px; font-weight: 700; color: #8a7d6b; background: #faf8f5; padding: 8px 16px; border-radius: 6px; display: inline-block; margin-top: 12px; }

/* ===== CREATIVE SLIDERS ===== */
.igec-sliders {
  background: #faf8f5;
  border: 1px solid #e8e4df;
  border-radius: 12px;
  padding: 28px;
}
.slider-pair { display: flex; flex-direction: column; gap: 24px; margin-top: 16px; }
.slider-item { }
.slider-main-label {
  font-size: 14px;
  font-weight: 700;
  color: #2c2c2c;
  display: block;
  margin-bottom: 8px;
}

/* ===== BRAINSTORMING ===== */
.igec-brainstorm {
  background: #faf8f5;
  border: 1px solid #e8e4df;
  border-radius: 12px;
  padding: 32px;
}
.brain-loading {
  text-align: center;
  padding: 40px 20px;
  color: #8a7d6b;
  font-weight: 600;
}
.brain-loading .spinner {
  width: 32px; height: 32px;
  border: 3px solid #e8e4df;
  border-top-color: #8a7d6b;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 0 auto 16px;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ===== PROGRESS DIAL ===== */
.progress-dial {
  position: relative;
  width: 80px;
  height: 80px;
  margin: 0 auto 16px;
}
.progress-dial svg {
  transform: rotate(-90deg);
  width: 80px;
  height: 80px;
}
.progress-dial .dial-bg {
  fill: none;
  stroke: #e8e4df;
  stroke-width: 6;
}
.progress-dial .dial-fill {
  fill: none;
  stroke: #8a7d6b;
  stroke-width: 6;
  stroke-linecap: round;
  stroke-dasharray: 226;
  stroke-dashoffset: 226;
  transition: stroke-dashoffset 0.4s ease;
}
.progress-dial .dial-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 16px;
  font-weight: 700;
  color: #2c2c2c;
}
.progress-dial .dial-label {
  text-align: center;
  font-size: 12px;
  color: #888;
  margin-top: 6px;
}

.brain-principles {
  background: #fff;
  border: 1px solid #e8e4df;
  border-radius: 10px;
  padding: 20px;
  margin-bottom: 24px;
}
.brain-principles h4 {
  font-size: 14px;
  font-weight: 700;
  color: #8a7d6b;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 10px;
}
.brain-principles ul {
  list-style: none;
  padding: 0;
}
.brain-principles li {
  padding: 5px 0 5px 18px;
  position: relative;
  font-size: 13px;
  color: #666;
}
.brain-principles li::before {
  content: '';
  position: absolute;
  left: 0; top: 12px;
  width: 6px; height: 6px;
  background: #c4b8a5;
  border-radius: 50%;
}

/* Idea cards */
.brain-idea-card {
  background: #fff;
  border: 1px solid #e8e4df;
  border-radius: 10px;
  padding: 24px;
  margin-bottom: 16px;
  transition: border-color 0.3s;
}
.brain-idea-card:hover { border-color: #c4b8a5; }
.brain-idea-card.original {
  border-left: 4px solid #8a7d6b;
}
.brain-idea-card.improved {
  border-left: 4px solid #32d583;
}
.brain-idea-card.opposite {
  border-left: 4px solid #f97066;
}
.brain-idea-card.generated {
  border-left: 4px solid #6172F3;
}
.brain-card-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 3px 10px;
  border-radius: 4px;
  margin-bottom: 10px;
}
.badge-original { background: #f0ece6; color: #8a7d6b; }
.badge-improved { background: #ecfdf3; color: #067647; }
.badge-opposite { background: #fef3f2; color: #b42318; }
.badge-generated { background: #EEF4FF; color: #3538CD; }
.brain-idea-card h4 {
  font-family: 'Playfair Display', serif;
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 6px;
  color: #2c2c2c;
}
.brain-idea-card .brain-genre {
  font-size: 12px;
  color: #8a7d6b;
  font-weight: 600;
  margin-bottom: 8px;
}
.brain-idea-card .brain-logline {
  font-size: 15px;
  color: #444;
  margin-bottom: 10px;
  line-height: 1.6;
  font-style: italic;
}
.brain-idea-card .brain-approach {
  font-size: 12px;
  color: #999;
  margin-bottom: 8px;
}
.brain-idea-card .brain-justification {
  font-size: 13px;
  color: #666;
  line-height: 1.6;
  padding: 12px;
  background: #faf8f5;
  border-radius: 6px;
  margin-bottom: 12px;
}
.brain-more-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: #8a7d6b;
  background: none;
  border: 1px solid #e8e4df;
  padding: 6px 16px;
  border-radius: 6px;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  transition: all 0.2s;
}
.brain-more-btn:hover { border-color: #8a7d6b; background: #faf8f5; }
.brain-more-btn:disabled { opacity: 0.5; cursor: not-allowed; }
.brain-card-actions {
  margin-top: 12px;
}
.brain-feed-links {
  display: flex;
  gap: 8px;
  margin-top: 8px;
  flex-wrap: wrap;
}
.brain-feed-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  font-weight: 600;
  color: #555;
  background: #f5f0eb;
  border: 1px solid #e8e4df;
  padding: 4px 12px;
  border-radius: 14px;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  transition: all 0.2s;
}
.brain-feed-btn:hover { background: #e8e4df; color: #2c2c2c; }
.brain-feed-label {
  font-size: 11px;
  color: #999;
  font-weight: 500;
  align-self: center;
  white-space: nowrap;
}
.brain-more-results {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid #f0ece6;
}
.brain-sub-idea {
  padding: 12px 0;
  border-bottom: 1px solid #f5f0eb;
}
.brain-sub-idea:last-child { border-bottom: none; }
.brain-sub-idea h5 {
  font-size: 15px;
  font-weight: 700;
  color: #2c2c2c;
  margin-bottom: 4px;
}
.brain-sub-idea .brain-logline {
  font-size: 13px;
  margin-bottom: 6px;
}
.brain-sub-idea .brain-justification {
  font-size: 12px;
  padding: 8px 10px;
  margin-bottom: 0;
}

/* ===== FORM ACTIONS ===== */
.ig-action-row { margin-top: 8px; }
.ig-secondary-actions {
  display: flex; gap: 12px; margin-top: 12px; justify-content: center;
}
.btn-outline {
  background: #fff; color: #8a7d6b; border: 1px solid #e8e4df;
  padding: 10px 24px; border-radius: 8px; font-family: 'Inter', sans-serif;
  font-size: 14px; font-weight: 600; cursor: pointer; transition: all 0.2s;
}
.btn-outline:hover { border-color: #8a7d6b; background: #faf8f5; }
.ig-pitch-actions {
  text-align: center; margin-top: 24px;
  display: flex; gap: 12px; justify-content: center; flex-wrap: wrap;
}

/* ===== SAVED IDEAS ===== */
.saved-idea-card {
  display: flex; justify-content: space-between; align-items: center;
  padding: 16px 0; border-bottom: 1px solid #f0ece6;
}
.saved-idea-card:last-child { border-bottom: none; }
.saved-idea-info { flex: 1; cursor: pointer; padding-right: 16px; }
.saved-idea-info:hover h4 { color: #8a7d6b; }
.saved-idea-info h4 {
  font-size: 15px; font-weight: 700; color: #2c2c2c; margin-bottom: 2px;
  transition: color 0.2s;
}
.saved-idea-info p { font-size: 13px; color: #777; line-height: 1.5; margin-top: 4px; }
.saved-idea-genre {
  display: inline-block; font-size: 11px; font-weight: 600;
  color: #8a7d6b; background: #f0ece6; padding: 2px 8px;
  border-radius: 4px; margin-bottom: 4px;
}
.saved-idea-date { font-size: 11px; color: #bbb; }
.saved-idea-actions { display: flex; gap: 6px; flex-shrink: 0; }
.btn-icon {
  width: 32px; height: 32px; border-radius: 6px; border: 1px solid #e8e4df;
  background: #fff; color: #8a7d6b; font-size: 16px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.2s; font-family: 'Inter', sans-serif;
}
.btn-icon:hover { border-color: #8a7d6b; background: #faf8f5; }
.btn-icon-danger:hover { border-color: #f97066; color: #b42318; background: #fef3f2; }

/* ===== COLLAPSIBLE SAVED PANELS ===== */
.saved-panel-header {
  cursor: pointer;
  padding: 4px 0;
}
.saved-panel-header:hover .tool-title { color: #8a7d6b; }
.saved-panel-arrow {
  font-size: 11px;
  display: inline-block;
  transition: transform 0.2s;
  margin-left: 6px;
  color: #bbb;
}
.saved-panel-expanded .saved-panel-arrow {
  transform: rotate(90deg);
}
.saved-panel-preview {
  font-size: 12px;
  color: #999;
  margin: 4px 0 0;
  line-height: 1.5;
}

/* ===== LOGIN PROMPT MODAL ===== */
.modal-overlay {
  position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.5); z-index: 1000;
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
}
.modal-box {
  background: #fff; border-radius: 16px; padding: 36px;
  max-width: 440px; width: 100%; position: relative;
  box-shadow: 0 20px 60px rgba(0,0,0,0.2);
}
.modal-close {
  position: absolute; top: 14px; right: 18px; background: none; border: none;
  font-size: 24px; color: #999; cursor: pointer; line-height: 1;
}
.modal-close:hover { color: #2c2c2c; }
.modal-box h3 {
  font-family: 'Playfair Display', serif; font-size: 22px;
  font-weight: 700; margin-bottom: 10px; color: #2c2c2c;
}
.modal-box p { font-size: 14px; color: #666; line-height: 1.7; margin-bottom: 20px; }
.modal-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.modal-actions .btn { flex: 1; min-width: 100px; text-align: center; text-decoration: none; }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .func-tabs { overflow-x: auto; }
  .func-tab { white-space: nowrap; padding: 14px 20px; }
  .epitch-steps { grid-template-columns: 1fr 1fr; }
  .ip-options { grid-template-columns: 1fr; }
  .checkbox-group { grid-template-columns: 1fr; }
  .igec-tool, .calc-tool { padding: 20px; }
  .ig-secondary-actions { flex-direction: column; }
  .ig-secondary-actions .btn-outline { width: 100%; }
  .modal-actions { flex-direction: column; }
  .saved-idea-card { flex-direction: column; align-items: flex-start; gap: 10px; }
  .saved-idea-actions { width: 100%; }
}

/* ===== AI VARIATIONS LINK & MODAL ===== */
.ai-variations-link {
  font-size: 12px;
  font-weight: 600;
  color: #8a7d6b;
  margin-left: 8px;
  text-decoration: none;
  border-bottom: 1px dashed #c4b8a5;
  transition: color 0.15s;
}
.ai-variations-link:hover { color: #2c2c2c; border-bottom-color: #2c2c2c; }

.ai-var-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 9999;
  align-items: flex-start;
  justify-content: center;
  padding: 40px 20px;
  overflow-y: auto;
}
.ai-var-modal {
  background: #fff;
  border-radius: 16px;
  max-width: 900px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0,0,0,0.2);
}
.ai-var-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 28px;
  border-bottom: 1px solid #e8e4df;
  position: sticky;
  top: 0;
  background: #fff;
  border-radius: 16px 16px 0 0;
  z-index: 1;
}
.ai-var-header h3 {
  font-family: 'Playfair Display', serif;
  font-size: 20px;
  font-weight: 700;
  color: #2c2c2c;
  margin: 0;
}
.ai-var-close {
  width: 36px;
  height: 36px;
  border: none;
  background: #f5f0eb;
  border-radius: 50%;
  font-size: 20px;
  cursor: pointer;
  color: #555;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
  flex-shrink: 0;
}
.ai-var-close:hover { background: #e8e4df; }
.ai-var-body { padding: 24px 28px; }

/* ===== MY PROJECTS CARDS (shared with My Projects page) ===== */
.mp-card {
  background: #fff;
  border: 2px solid #e8e4df;
  border-radius: 12px;
  padding: 20px 24px;
  margin-bottom: 14px;
  transition: border-color 0.2s, box-shadow 0.2s;
  cursor: pointer;
}
.mp-card:hover {
  border-color: #c4b8a5;
  box-shadow: 0 4px 16px rgba(0,0,0,0.06);
}
.mp-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}
.mp-card h4 {
  font-size: 16px;
  font-weight: 700;
  color: #2c2c2c;
  margin: 0 0 4px;
}
.mp-card-meta {
  font-size: 13px;
  color: #999;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 4px;
}
.mp-card-meta span { display: flex; align-items: center; gap: 4px; }
.mp-card-logline {
  font-size: 14px;
  color: #666;
  margin-top: 8px;
  line-height: 1.5;
}
.mp-card-badge {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 3px 10px;
  border-radius: 20px;
  white-space: nowrap;
  flex-shrink: 0;
}
.mp-badge-calc { background: #e8f4f0; color: #067647; }
.mp-badge-idea { background: #eef0ff; color: #4a5acd; }
.mp-badge-pitch { background: #fff3e6; color: #c67a1a; }
.mp-badge-presented { background: #2c2c2c; color: #f5f0eb; }
.mp-badge-public { background: #067647; color: #fff; }
.mp-card-actions {
  display: flex;
  gap: 6px;
  margin-top: 12px;
  flex-wrap: wrap;
}
.mp-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 12px;
  font-size: 12px;
  font-weight: 600;
  font-family: 'Inter', sans-serif;
  border: 1.5px solid #e8e4df;
  border-radius: 6px;
  background: #faf8f5;
  color: #555;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.15s;
}
.mp-action-btn:hover { border-color: #c4b8a5; background: #f0ece7; color: #2c2c2c; }
.mp-gl-green { background: #34c759; }
.mp-gl-yellow { background: #ffcc00; }
.mp-gl-red { background: #ff3b30; }
@media (max-width: 600px) {
  .mp-card-header { flex-direction: column; }
  .mp-card-actions { flex-direction: column; }
}

/* ===== SAVE TOAST NOTIFICATION ===== */
.save-toast {
  position: fixed;
  top: 80px;
  right: 24px;
  z-index: 9999;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 24px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  font-family: 'Inter', sans-serif;
  box-shadow: 0 8px 30px rgba(0,0,0,0.15);
  transform: translateX(120%);
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  pointer-events: none;
}
.save-toast.show { transform: translateX(0); }
.save-toast-success { background: #067647; color: #fff; }
.save-toast-delete { background: #b42318; color: #fff; }
.save-toast-icon {
  font-size: 20px;
  line-height: 1;
}

/* ===== SAVE DROPDOWN ===== */
.save-dropdown-wrap {
  position: relative;
  display: inline-flex;
}
.save-dropdown-wrap .btn { border-radius: 6px 0 0 6px; }
.save-dropdown-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  padding: 0;
  border: 2px solid #2c2c2c;
  border-left: 1px solid rgba(255,255,255,0.2);
  border-radius: 0 6px 6px 0;
  background: transparent;
  color: #2c2c2c;
  font-size: 10px;
  cursor: pointer;
  transition: all 0.15s;
}
.save-dropdown-toggle:hover { background: #f5f0eb; }
.save-dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 4px;
  background: #fff;
  border: 2px solid #e8e4df;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
  z-index: 100;
  min-width: 200px;
  overflow: hidden;
}
.save-dropdown-menu.open { display: block; }
.save-dropdown-item {
  display: block;
  width: 100%;
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 500;
  font-family: 'Inter', sans-serif;
  color: #2c2c2c;
  background: none;
  border: none;
  text-align: left;
  cursor: pointer;
  transition: background 0.1s;
}
.save-dropdown-item:hover { background: #f5f0eb; }
.save-dropdown-item small { display: block; font-size: 11px; color: #999; font-weight: 400; margin-top: 2px; }

/* ===== EU CO-PRO TABLE ===== */
.ss-table select.ss-input-sm {
  font-size: 11px;
  padding: 4px 6px;
  border: 1px solid #e8e4df;
  border-radius: 4px;
  background: #fff;
  color: #555;
  min-width: 110px;
}

/* ===== INDUSTRY ENGINE ===== */

.ie-pathway-studio { background: linear-gradient(135deg, #f0f4ff 0%, #e8eeff 100%); border-color: #4a6cf7; }
.ie-pathway-independent { background: linear-gradient(135deg, #fef7ed 0%, #fcefd4 100%); border-color: #d4860a; }
.ie-pathway-hybrid { background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%); border-color: #16a34a; }

.ie-pathway-btn {
  margin: 0 4px;
  font-size: 13px;
  padding: 8px 18px;
  transition: all 0.2s;
}
.ie-pathway-btn.active {
  background: #2c2a27;
  color: #f5f0eb;
  border-color: #2c2a27;
}

.ie-category-section {
  background: #fff;
  border: 1px solid #e8e4df;
  border-radius: 10px;
  margin-bottom: 12px;
  overflow: hidden;
}

.ie-category-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 20px;
  cursor: pointer;
  background: #faf8f5;
  border-bottom: 1px solid #e8e4df;
  transition: background 0.15s;
}
.ie-category-header:hover {
  background: #f5f0eb;
}

.ie-category-icon {
  font-size: 20px;
  width: 28px;
  text-align: center;
}

.ie-category-title {
  font-size: 15px;
  font-weight: 700;
  color: #2c2c2c;
  flex: 1;
}

.ie-category-count {
  background: #e8e4df;
  color: #555;
  font-size: 12px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 10px;
}

.ie-category-chevron {
  font-size: 11px;
  color: #999;
  transition: transform 0.2s;
}

.ie-category-body {
  padding: 16px 20px;
}

.ie-entity-card {
  padding: 14px 16px;
  border: 1px solid #e8e4df;
  border-radius: 8px;
  margin-bottom: 10px;
  background: #fff;
  transition: box-shadow 0.15s, border-color 0.15s;
}
.ie-entity-card:hover {
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  border-color: #ccc;
}

.ie-entity-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}

.ie-entity-name {
  font-size: 15px;
  font-weight: 700;
  color: #2c2c2c;
}

.ie-entity-score {
  font-size: 13px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 12px;
}
.ie-score-high { background: #dcfce7; color: #166534; }
.ie-score-mid { background: #fef3c7; color: #92400e; }
.ie-score-low { background: #fee2e2; color: #991b1b; }

.ie-entity-why {
  font-size: 13px;
  color: #555;
  line-height: 1.6;
  margin-bottom: 4px;
}

.ie-entity-detail {
  font-size: 12px;
  color: #777;
  margin-bottom: 2px;
}

.ie-entity-link {
  font-size: 12px;
  color: #4a6cf7;
  text-decoration: none;
  font-weight: 600;
  display: inline-block;
  margin-top: 4px;
}
.ie-entity-link:hover {
  text-decoration: underline;
}
.ie-entity-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 2px 8px;
  border-radius: 10px;
  margin-top: 6px;
}
.ie-badge-active { background: #dcfce7; color: #166534; }
.ie-badge-full { background: #fef3f2; color: #b42318; }

.ie-explore-btn {
  width: 100%;
  margin-top: 12px;
  font-size: 13px;
}

/* ===== INTERNAL GREENLIGHT ===== */

.gl-badge {
  display: inline-block;
  padding: 20px 40px;
  border-radius: 16px;
  text-align: center;
  transition: all 0.3s;
}
.gl-badge-score {
  font-size: 48px;
  font-weight: 800;
  font-family: 'Playfair Display', serif;
  line-height: 1;
}
.gl-badge-label {
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 6px;
}
.gl-green {
  background: linear-gradient(135deg, #dcfce7, #bbf7d0);
  border: 2px solid #16a34a;
  color: #166534;
}
.gl-yellow {
  background: linear-gradient(135deg, #fef3c7, #fde68a);
  border: 2px solid #d97706;
  color: #92400e;
}
.gl-red {
  background: linear-gradient(135deg, #fee2e2, #fecaca);
  border: 2px solid #dc2626;
  color: #991b1b;
}

.gl-add-form {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px dashed #e8e4df;
}

.gl-entry-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background: #fff;
  border: 1px solid #e8e4df;
  border-radius: 8px;
  margin-bottom: 6px;
  font-size: 13px;
  color: #2c2c2c;
}
.gl-entry-text {
  flex: 1;
}
.gl-entry-remove {
  background: none;
  border: none;
  color: #dc2626;
  cursor: pointer;
  font-size: 14px;
  padding: 2px 6px;
  border-radius: 4px;
}
.gl-entry-remove:hover {
  background: #fee2e2;
}

@media (max-width: 600px) {
  .ie-category-body { padding: 12px; }
  .ie-entity-card { padding: 10px 12px; }
  .ie-pathway-btn { display: block; width: 100%; margin: 4px 0; }
  .gl-badge { padding: 16px 24px; }
  .gl-badge-score { font-size: 36px; }
}

/* ===== Literary Release Agreement ===== */
.release-text-scroll {
  max-height: 350px;
  overflow-y: auto;
  padding: 20px;
  background: #faf8f5;
  border: 1px solid #e8e4df;
  border-radius: 8px;
  font-size: 13px;
  color: #555;
  line-height: 1.8;
}
.release-text-scroll::-webkit-scrollbar { width: 6px; }
.release-text-scroll::-webkit-scrollbar-thumb { background: #ccc; border-radius: 3px; }
.release-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  font-size: 13px;
  color: #2c2c2c;
  line-height: 1.5;
  transition: opacity 0.3s;
}
.release-checkbox input[type="checkbox"] { margin-top: 3px; accent-color: #1a5c2e; }
.release-checkbox input[type="checkbox"]:disabled { cursor: not-allowed; }
