/* ROOTMARE - PENETRATION TESTING PROPOSAL & CUSTOMIZER STYLESHEET */

/* --- PROPOSAL PAGE LAYOUT --- */
.proposal-body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-body);
  line-height: 1.65;
  min-height: 100vh;
}

/* Floating Action Toolbar */
.proposal-toolbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(12, 12, 12, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(225, 6, 0, 0.25);
  padding: 12px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6);
}

.proposal-toolbar-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.proposal-toolbar-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.proposal-doc-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  background: rgba(225, 6, 0, 0.08);
  border: 1px solid rgba(225, 6, 0, 0.25);
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--accent-red);
  letter-spacing: 0.08em;
}

.toolbar-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.86rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: all var(--transition-fast);
}

.toolbar-btn-primary {
  background: var(--accent-red);
  color: #ffffff;
  border: 1px solid var(--accent-red);
  box-shadow: 0 0 14px rgba(225, 6, 0, 0.35);
}

.toolbar-btn-primary:hover {
  background: var(--accent-red-hover);
  box-shadow: 0 0 20px rgba(225, 6, 0, 0.6);
  transform: translateY(-1px);
}

.toolbar-btn-outline {
  background: rgba(255, 255, 255, 0.04);
  color: #e5e7eb;
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.toolbar-btn-outline:hover {
  background: rgba(225, 6, 0, 0.12);
  border-color: var(--accent-red);
  color: #ffffff;
}

/* Document Layout Switcher in Toolbar */
.proposal-layout-switch {
  display: inline-flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(225, 6, 0, 0.28);
  border-radius: var(--radius-pill);
  padding: 3px;
  gap: 2px;
}

.switcher-badge {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--accent-red);
  padding: 0 8px;
  letter-spacing: 0.06em;
}

.layout-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: transparent;
  border: none;
  border-radius: var(--radius-pill);
  color: #9ca3af;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
  text-decoration: none;
}

.layout-btn:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
}

.layout-btn.active {
  background: var(--accent-red);
  color: #ffffff;
  box-shadow: 0 0 12px rgba(225, 6, 0, 0.45);
}

/* Page / Slide Headers & Footers (Deck & Portrait) */
.slide-header {
  display: none;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 12px;
  margin-bottom: 20px;
  border-bottom: 1px solid rgba(225, 6, 0, 0.25);
}

.slide-header-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.slide-header-left .brand-logo-img {
  width: 26px;
  height: 26px;
}

.slide-header-left .brand-wordmark {
  font-size: 1.1rem;
}

.slide-header-left .slide-doc-ref {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-muted);
  border-left: 1px solid rgba(255, 255, 255, 0.15);
  padding-left: 10px;
}

.slide-header-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.slide-category-title {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
  color: #e5e7eb;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.slide-index-pill {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--accent-red);
  background: rgba(225, 6, 0, 0.12);
  border: 1px solid rgba(225, 6, 0, 0.35);
  border-radius: var(--radius-pill);
  padding: 3px 10px;
}

.slide-footer {
  display: none;
  justify-content: space-between;
  align-items: center;
  padding-top: 12px;
  margin-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-muted);
}

.slide-footer-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.slide-footer-left span.red-text {
  color: var(--accent-red);
  font-weight: 700;
}

.slide-footer-right {
  text-align: right;
}

/* Base Proposal Page Container */
.proposal-page {
  position: relative;
  transition: all var(--transition-normal);
}

/* In Landscape Deck Mode */
body.layout-deck .proposal-paper {
  max-width: 1220px;
  padding: 0 20px;
  margin: 104px auto 80px auto;
}

.proposal-body .navbar {
  background: rgba(10, 10, 10, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(225, 6, 0, 0.25);
}

body.layout-deck .proposal-page {
  background: linear-gradient(150deg, #120808 0%, #0c0c0c 50%, #070707 100%);
  border: 1px solid rgba(225, 6, 0, 0.35);
  border-radius: 14px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8), 0 0 35px rgba(225, 6, 0, 0.1);
  padding: 32px 40px;
  margin-bottom: 48px;
  min-height: 660px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

body.layout-deck .slide-header,
body.layout-deck .slide-footer {
  display: flex;
}

body.layout-deck .proposal-cover-card {
  margin-bottom: 0;
  min-height: 660px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* In Landscape Deck Mode on Screen: Proportional scaling for slides with extensive content */
body.layout-deck #slide-04 .slide-content,
body.layout-deck #cust-slide-05 .slide-content {
  zoom: 0.82;
}

body.layout-deck #slide-05 .team-leadership-grid,
body.layout-deck #cust-slide-06 .team-leadership-grid {
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

body.layout-deck #slide-05 .slide-content,
body.layout-deck #cust-slide-06 .slide-content {
  zoom: 0.72;
}

body.layout-deck #slide-06 .slide-content,
body.layout-deck #cust-slide-07 .slide-content {
  zoom: 0.90;
}

/* In Portrait Report Mode */
body.layout-portrait .proposal-paper {
  max-width: 860px;
  padding: 0 20px;
}

body.layout-portrait .proposal-page {
  background: linear-gradient(150deg, #120808 0%, #0c0c0c 50%, #070707 100%);
  border: 1px solid rgba(225, 6, 0, 0.3);
  border-radius: 10px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
  padding: 40px 44px;
  margin-bottom: 48px;
  min-height: 1050px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

body.layout-portrait .slide-header,
body.layout-portrait .slide-footer {
  display: flex;
}

body.layout-portrait .proposal-cover-card {
  margin-bottom: 0;
  min-height: 1050px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* Document Container */
.proposal-paper {
  max-width: 1040px;
  margin: 36px auto 80px auto;
  padding: 0 24px;
}

/* ==================== COVER SECTION ==================== */
.proposal-cover-card {
  position: relative;
  background: linear-gradient(145deg, #120808 0%, #0c0c0c 60%, #070707 100%);
  border: 1px solid rgba(225, 6, 0, 0.35);
  border-radius: var(--radius-xl);
  padding: 64px 54px;
  margin-bottom: 48px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8), 0 0 40px rgba(225, 6, 0, 0.12);
  overflow: hidden;
}

.proposal-cover-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--accent-red), transparent);
  box-shadow: 0 0 16px var(--accent-red);
}

.proposal-cover-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 48px;
  flex-wrap: wrap;
  gap: 20px;
}

.proposal-security-seal {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-muted);
}

.proposal-security-seal .seal-ref {
  color: #ffffff;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.proposal-cover-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(225, 6, 0, 0.12);
  border: 1px solid rgba(225, 6, 0, 0.4);
  border-radius: var(--radius-pill);
  padding: 6px 16px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--accent-red);
  letter-spacing: 0.08em;
  margin-bottom: 24px;
}

.proposal-cover-title {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  font-weight: 800;
  line-height: 1.12;
  color: #ffffff;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.proposal-cover-title span {
  background: linear-gradient(135deg, #ffffff 40%, var(--accent-red) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.proposal-cover-slogan {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--accent-red);
  margin-bottom: 24px;
  letter-spacing: -0.01em;
}

.proposal-cover-desc {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--text-secondary);
  max-width: 760px;
  margin-bottom: 44px;
}

/* Metadata Grid on Cover */
.proposal-meta-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  padding-top: 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.proposal-meta-box {
  background: rgba(20, 20, 20, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 16px 20px;
}

.meta-box-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 6px;
}

.meta-box-val {
  font-size: 0.98rem;
  font-weight: 700;
  color: #ffffff;
}

.meta-box-val a {
  color: var(--accent-red);
  text-decoration: none;
}

/* ==================== PROPOSAL SECTION CARDS ==================== */
.proposal-section {
  background: rgba(14, 14, 14, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  padding: 44px 40px;
  margin-bottom: 36px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
  position: relative;
}

.proposal-section-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 28px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.section-num {
  font-family: var(--font-mono);
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--accent-red);
  background: rgba(225, 6, 0, 0.1);
  border: 1px solid rgba(225, 6, 0, 0.3);
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
}

.section-heading-title {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0;
  letter-spacing: -0.01em;
}

/* ==================== 1. EXECUTIVE BRIEF ==================== */
.exec-summary-grid {
  display: grid;
  grid-template-columns: 1.8fr 1.2fr;
  gap: 32px;
  align-items: center;
}

.exec-metrics-aside, .exec-stats-column {
  display: flex;
  flex-direction: column;
  gap: 20px;
  justify-content: center;
}

.exec-stat-card {
  background: rgba(18, 18, 18, 0.92);
  border: 1px solid rgba(225, 6, 0, 0.35);
  border-radius: var(--radius-lg);
  padding: 26px 30px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6), 0 0 16px rgba(225, 6, 0, 0.12);
  transition: all var(--transition-fast);
}

.exec-stat-card:hover {
  border-color: var(--accent-red);
  transform: translateY(-2px);
  box-shadow: 0 14px 35px rgba(0, 0, 0, 0.7), 0 0 25px rgba(225, 6, 0, 0.22);
}

.exec-stat-num {
  font-family: var(--font-display);
  font-size: 2.8rem;
  font-weight: 800;
  color: var(--accent-red);
  line-height: 1.05;
  margin-bottom: 8px;
  text-shadow: 0 0 24px rgba(225, 6, 0, 0.4);
}

.exec-stat-label {
  font-size: 0.94rem;
  color: #d1d5db;
  font-weight: 600;
  line-height: 1.4;
}

/* ==================== 2. SCOPE OF WORK MATRIX ==================== */
.scope-tables-wrap {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.proposal-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: rgba(18, 18, 18, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.proposal-table th {
  background: rgba(26, 26, 26, 0.95);
  color: #ffffff;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 14px 18px;
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.proposal-table td {
  padding: 14px 18px;
  font-size: 0.92rem;
  color: #d1d5db;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.proposal-table tr:last-child td {
  border-bottom: none;
}

.proposal-table tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}

.scope-badge-in {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  background: rgba(0, 230, 118, 0.1);
  border: 1px solid rgba(0, 230, 118, 0.3);
  color: var(--accent-green);
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 700;
}

.scope-badge-out {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #ef4444;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 700;
}

/* ==================== 3. 4-PHASE OFFENSIVE METHODOLOGY ==================== */
.methodology-flow {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-top: 16px;
}

.method-phase-card {
  background: rgba(18, 18, 18, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  padding: 26px 20px;
  position: relative;
  transition: all var(--transition-fast);
  display: flex;
  flex-direction: column;
}

.method-phase-card:hover {
  border-color: var(--accent-red);
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.7), 0 0 20px rgba(225, 6, 0, 0.2);
}

.phase-header-badge, .phase-badge {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--accent-red);
  background: rgba(225, 6, 0, 0.12);
  border: 1px solid rgba(225, 6, 0, 0.35);
  border-radius: var(--radius-pill);
  padding: 4px 12px;
  margin-bottom: 14px;
  width: fit-content;
  letter-spacing: 0.08em;
}

.phase-title {
  color: #ffffff;
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 12px;
  line-height: 1.35;
}

.phase-desc {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 16px;
  flex-grow: 1;
}

.phase-bullets {
  margin: 0;
  padding-left: 18px;
  font-size: 0.82rem;
  color: #9ca3af;
  line-height: 1.65;
}
  flex-direction: column;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.phase-list li {
  position: relative;
  padding-left: 14px;
}

.phase-list li::before {
  content: '▪';
  position: absolute;
  left: 0;
  color: var(--accent-red);
}

/* ==================== 4. DELIVERABLES ==================== */
.deliverables-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.deliverable-card {
  background: rgba(20, 20, 20, 0.7);
  border: 1px solid rgba(225, 6, 0, 0.25);
  border-radius: var(--radius-md);
  padding: 24px;
  display: flex;
  flex-direction: column;
  position: relative;
}

.deliverable-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--accent-red);
  background: rgba(225, 6, 0, 0.08);
  padding: 3px 8px;
  border-radius: 4px;
  width: fit-content;
  margin-bottom: 12px;
}

.deliverable-title {
  color: #ffffff;
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.deliverable-desc {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ==================== 5. TIMELINES (GANTT INSPIRED) ==================== */
.timeline-gantt {
  background: rgba(18, 18, 18, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 24px;
  overflow-x: auto;
}

.gantt-header-row {
  display: grid;
  grid-template-columns: 220px repeat(10, 1fr);
  gap: 4px;
  margin-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 10px;
}

.gantt-day-col {
  text-align: center;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--text-muted);
}

.gantt-task-row {
  display: grid;
  grid-template-columns: 220px repeat(10, 1fr);
  gap: 4px;
  align-items: center;
  margin-bottom: 10px;
}

.gantt-task-name {
  font-size: 0.88rem;
  color: #ffffff;
  font-weight: 600;
}

.gantt-bar-cell {
  height: 26px;
  display: flex;
  align-items: center;
}

.gantt-bar {
  height: 18px;
  border-radius: 4px;
  width: 100%;
}

.bar-plan { background: #3b82f6; }
.bar-test { background: var(--accent-red); box-shadow: 0 0 10px rgba(225, 6, 0, 0.4); }
.bar-report { background: #f59e0b; }
.bar-retest { background: var(--accent-green); }

/* ==================== 6. THE 5-MEMBER SECURITY TEAM ==================== */
.team-leadership-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 16px;
}

.member-card {
  background: rgba(18, 18, 18, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  padding: 18px 16px;
  display: flex;
  flex-direction: column;
  transition: all var(--transition-fast);
  position: relative;
}

.member-card:hover {
  border-color: var(--accent-red);
  transform: translateY(-3px);
  box-shadow: 0 14px 35px rgba(0, 0, 0, 0.7), 0 0 25px rgba(225, 6, 0, 0.2);
}

.member-card-top {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 12px;
}

.member-avatar-wrap {
  position: relative;
  width: 80px;
  height: 98px;
  border-radius: 10px;
  overflow: hidden;
  border: 2px solid var(--accent-red);
  box-shadow: 0 0 16px rgba(225, 6, 0, 0.35);
  flex-shrink: 0;
  background: #141414;
}

.member-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.member-avatar-img.avatar-ahmed,
.member-avatar-img[src*="ahmed.jpeg"],
.member-avatar-ahmed {
  object-position: center 20% !important;
}

.member-avatar-img.avatar-sami,
.member-avatar-img[src*="sami.jpeg"],
.member-avatar-sami {
  transform: scale(1.3) !important;
  transform-origin: center 25% !important;
}

.member-placeholder-avatar {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: linear-gradient(145deg, #220b0b 0%, #130606 60%, #0a0a0a 100%);
  color: #ffffff;
}

.member-placeholder-avatar .avatar-initials {
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: 0.05em;
  text-shadow: 0 0 12px rgba(225, 6, 0, 0.5);
}

.member-placeholder-avatar .avatar-hint {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  color: var(--accent-red);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
}

.member-identity {
  display: flex;
  flex-direction: column;
  justify-content: center;
  flex: 1;
}

.member-name {
  color: #ffffff;
  font-size: 1.2rem;
  font-weight: 700;
  margin: 0 0 4px 0;
  font-family: var(--font-display);
}

.member-role {
  font-size: 0.82rem;
  color: var(--accent-red);
  font-family: var(--font-mono);
  font-weight: 600;
  margin-bottom: 12px;
}

.member-specialties {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.specialty-tag {
  background: rgba(225, 6, 0, 0.16);
  border: 1px solid rgba(225, 6, 0, 0.45);
  color: #ffffff;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  padding: 3px 8px;
  border-radius: 4px;
}

.specialty-tag.highlight {
  background: rgba(225, 6, 0, 0.22);
  border-color: rgba(225, 6, 0, 0.55);
  color: #ffffff;
}

.member-bio {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.member-links-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.profile-link-btn {
  font-size: 0.75rem;
  font-family: var(--font-mono);
  color: var(--accent-red);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  background: rgba(225, 6, 0, 0.06);
  border: 1px solid rgba(225, 6, 0, 0.2);
  border-radius: 4px;
  transition: all var(--transition-fast);
}

.profile-link-btn:hover {
  background: rgba(225, 6, 0, 0.18);
  color: #ffffff;
  border-color: var(--accent-red);
}

/* ==================== 7. COMPANIES WE HELPED SECURING ==================== */
.secured-companies-header {
  margin-bottom: 24px;
}

.secured-companies-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.secured-company-card {
  background: rgba(22, 22, 22, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  padding: 20px 16px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all var(--transition-fast);
}

.secured-company-card:hover {
  border-color: var(--accent-red);
  background: rgba(30, 16, 16, 0.9);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(225, 6, 0, 0.18);
}

.secured-company-name {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: #ffffff;
}

.secured-company-badge {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--accent-green);
  background: rgba(0, 230, 118, 0.08);
  padding: 2px 8px;
  border-radius: var(--radius-pill);
}

/* ==================== 8. FINANCIAL CONSIDERATIONS ==================== */
.pricing-schedule-box {
  background: rgba(18, 18, 18, 0.9);
  border: 1px solid rgba(225, 6, 0, 0.3);
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 24px;
}

.pricing-terms-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 0.88rem;
  color: var(--text-secondary);
}

.pricing-terms-list li {
  position: relative;
  padding-left: 20px;
}

.pricing-terms-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--accent-green);
  font-weight: 700;
}

/* Sign-off box */
.signoff-box {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px dashed rgba(255, 255, 255, 0.15);
}

.signoff-col {
  background: rgba(22, 22, 22, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 20px;
}

.signoff-line {
  margin-top: 36px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  margin-bottom: 8px;
}

/* ==================== PRINT / PDF EXPORT ENGINE ==================== */
@page {
  size: A4 landscape;
  margin: 0;
}

@media print {
  * {
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
    color-adjust: exact !important;
    box-sizing: border-box !important;
  }

  html, body, .proposal-body, .customizer-body {
    background: #080808 !important;
    color: #f3f4f6 !important;
    margin: 0 !important;
    padding: 0 !important;
    width: 297mm !important;
    overflow: visible !important;
    -webkit-print-color-adjust: exact !important;
  }

  .navbar,
  #main-nav,
  .proposal-toolbar,
  .customizer-sidebar,
  .proposal-actions,
  #btn-reset-defaults,
  .mobile-drawer-overlay,
  .mobile-nav-drawer,
  #doc-layout-switcher {
    display: none !important;
  }

  .customizer-workspace {
    display: block !important;
  }

  .customizer-preview-pane {
    padding: 0 !important;
    max-height: none !important;
    overflow: visible !important;
    background: transparent !important;
  }

  .proposal-paper,
  #proposal-document {
    max-width: 297mm !important;
    width: 297mm !important;
    margin: 0 !important;
    padding: 0 !important;
    box-shadow: none !important;
  }

  .proposal-page {
    page-break-after: always !important;
    break-after: page !important;
    page-break-inside: avoid !important;
    break-inside: avoid !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    margin: 0 !important;
    position: relative !important;
    box-sizing: border-box !important;
  }

  /* CRITICAL: Eliminate phantom 7th blank page */
  .proposal-page:last-child,
  .proposal-page:last-of-type,
  #slide-06 {
    page-break-after: avoid !important;
    break-after: avoid !important;
    page-break-after: auto !important;
    break-after: auto !important;
    margin-bottom: 0 !important;
  }

  /* Full-bleed A4 Landscape Deck (297mm x 209mm) */
  body.layout-deck .proposal-page,
  body:not(.layout-portrait) .proposal-page {
    width: 297mm !important;
    height: 209mm !important;
    max-height: 209mm !important;
    min-height: 209mm !important;
    padding: 24px 36px 18px 36px !important;
    box-sizing: border-box !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    overflow: hidden !important;
    background: linear-gradient(150deg, #120808 0%, #0c0c0c 50%, #070707 100%) !important;
    border: none !important;
    border-bottom: 2px solid #e10600 !important;
  }

  /* Portrait Report Mode: A4 Portrait (210mm x 297mm) */
  body.layout-portrait .proposal-page {
    width: 210mm !important;
    height: 296mm !important;
    max-height: 296mm !important;
    min-height: 296mm !important;
    padding: 28px 32px 20px 32px !important;
    box-sizing: border-box !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    overflow: hidden !important;
    background: #080808 !important;
    border: none !important;
    border-bottom: 2px solid #e10600 !important;
  }

  /* Slide Header & Footer in Print */
  .slide-header {
    display: flex !important;
    border-bottom: 1px solid rgba(225, 6, 0, 0.45) !important;
    padding-bottom: 8px !important;
    margin-bottom: 12px !important;
    flex-shrink: 0 !important;
  }

  .slide-footer {
    display: flex !important;
    border-top: 1px solid rgba(255, 255, 255, 0.12) !important;
    padding-top: 8px !important;
    margin-top: 10px !important;
    font-size: 0.72rem !important;
    flex-shrink: 0 !important;
  }

  .slide-content {
    flex: 1 1 auto !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-start !important;
    min-height: 0 !important;
  }

  .proposal-section-header {
    display: flex !important;
    align-items: center !important;
    gap: 14px !important;
    margin-bottom: 16px !important;
    padding-bottom: 10px !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
    flex-shrink: 0 !important;
  }

  /* Preservation of RootMare rich visual identity */
  .proposal-cover-card {
    background: linear-gradient(145deg, #130808 0%, #0c0c0c 60%, #070707 100%) !important;
    border: 1px solid rgba(225, 6, 0, 0.4) !important;
    box-shadow: none !important;
    padding: 32px 40px 20px 40px !important;
  }

  .proposal-section {
    background: #0c0c0c !important;
    border: 1px solid rgba(225, 6, 0, 0.3) !important;
    box-shadow: none !important;
    margin-bottom: 0 !important;
  }

  .proposal-meta-box,
  .exec-stat-card,
  .method-phase-card,
  .deliverable-card,
  .member-card,
  .secured-company-card,
  .proposal-cta-box,
  .signoff-col {
    background: #111111 !important;
    border: 1px solid rgba(225, 6, 0, 0.32) !important;
    color: #ffffff !important;
    box-shadow: none !important;
  }

  .proposal-cta-box .btn-primary {
    background: #e10600 !important;
    color: #ffffff !important;
    border-color: #e10600 !important;
  }

  .proposal-cta-box .btn-secondary {
    background: #1a1a1a !important;
    color: #ffffff !important;
    border-color: rgba(255, 255, 255, 0.4) !important;
  }

  .member-name, .phase-title, .deliverable-title, .secured-company-name {
    color: #ffffff !important;
  }

  .member-role {
    color: #e10600 !important;
  }

  /* --- SLIDE 01: COVER CARD BALANCED SPACING --- */
  #slide-01 .proposal-cover-header {
    margin-bottom: 24px !important;
  }

  #slide-01 .proposal-cover-badge {
    margin-bottom: 16px !important;
  }

  #slide-01 .proposal-cover-desc {
    margin-bottom: 24px !important;
  }

  #slide-01 .proposal-meta-grid {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 16px !important;
    padding-top: 18px !important;
    border-top: 1px solid rgba(255, 255, 255, 0.12) !important;
  }

  #slide-01 .slide-footer {
    margin-top: 14px !important;
  }

  /* --- SLIDE 02: EXECUTIVE BRIEFING SPACING --- */
  #slide-02 .exec-summary-grid {
    gap: 28px !important;
  }

  #slide-02 .exec-stat-card {
    padding: 22px 26px !important;
  }

  /* --- SLIDE 03: 4-PHASE OFFENSIVE METHODOLOGY SPACING --- */
  #slide-03 .methodology-flow {
    gap: 16px !important;
    margin-top: 12px !important;
  }

  #slide-03 .method-phase-card {
    padding: 22px 18px !important;
  }

  /* --- PROPORTIONAL SLIDE CONTENT SCALING (MATCHES WEBSITE EXACTLY WITHOUT OVERFLOW) --- */
  #slide-04 .slide-content,
  #cust-slide-05 .slide-content {
    zoom: 0.82 !important;
  }

  #slide-05 .team-leadership-grid,
  #cust-slide-06 .team-leadership-grid {
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 16px !important;
  }

  #slide-05 .slide-content,
  #cust-slide-06 .slide-content {
    zoom: 0.72 !important;
  }

  #slide-06 .slide-content,
  #cust-slide-07 .slide-content {
    zoom: 0.90 !important;
  }
}

/* Responsive Breakpoints (Restricted to SCREEN only so print never collapses) */
@media screen and (max-width: 900px) {
  .methodology-flow {
    grid-template-columns: 1fr 1fr;
  }
  .deliverables-grid {
    grid-template-columns: 1fr;
  }
  .secured-companies-grid {
    grid-template-columns: 1fr 1fr;
  }
  .exec-summary-grid {
    grid-template-columns: 1fr;
  }
  .signoff-box {
    grid-template-columns: 1fr;
  }
}

@media screen and (max-width: 640px) {
  .proposal-toolbar {
    flex-direction: column;
    gap: 12px;
    align-items: flex-start;
  }
  .proposal-toolbar-right {
    width: 100%;
    justify-content: space-between;
  }
  .proposal-cover-card {
    padding: 36px 20px;
  }
  .proposal-section {
    padding: 28px 18px;
  }
  .methodology-flow {
    grid-template-columns: 1fr;
  }
  .secured-companies-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* ==================== CUSTOMIZER STUDIO LAYOUT ==================== */
.customizer-body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background-color: var(--bg-primary);
}

.customizer-workspace {
  display: flex;
  flex: 1;
  overflow: hidden;
}

.customizer-sidebar {
  width: 380px;
  flex-shrink: 0;
  background: #0d0d0d;
  border-right: 1px solid rgba(225, 6, 0, 0.22);
  padding: 24px;
  overflow-y: auto;
  max-height: calc(100vh - 58px);
}

.customizer-preview-pane {
  flex: 1;
  overflow-y: auto;
  max-height: calc(100vh - 58px);
  padding: 24px;
  background: #080808;
}

.config-group {
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.config-group:last-child {
  border-bottom: none;
}

.config-group-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--accent-red);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.config-input-label {
  display: block;
  font-size: 0.78rem;
  color: #9ca3af;
  margin-bottom: 6px;
  font-weight: 500;
}

.config-input, .config-select, .config-textarea {
  width: 100%;
  background: rgba(22, 22, 22, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  color: #ffffff;
  font-size: 0.88rem;
  font-family: var(--font-body);
  outline: none;
  margin-bottom: 12px;
  transition: all var(--transition-fast);
}

.config-input:focus, .config-select:focus, .config-textarea:focus {
  border-color: var(--accent-red);
  box-shadow: 0 0 12px rgba(225, 6, 0, 0.3);
}

.config-checkbox-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 12px;
}

.config-checkbox-label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.84rem;
  color: #d1d5db;
  cursor: pointer;
}

.config-checkbox-label input[type="checkbox"] {
  accent-color: var(--accent-red);
  width: 16px;
  height: 16px;
  cursor: pointer;
}

@media print {
  .customizer-sidebar, .proposal-toolbar {
    display: none !important;
  }
  .customizer-workspace {
    display: block !important;
  }
  .customizer-preview-pane {
    max-height: none !important;
    overflow: visible !important;
    padding: 0 !important;
    background: transparent !important;
  }
}

@media (max-width: 1024px) {
  .customizer-workspace {
    flex-direction: column;
  }
  .customizer-sidebar {
    width: 100%;
    max-height: none;
    border-right: none;
    border-bottom: 1px solid rgba(225, 6, 0, 0.22);
  }
  .customizer-preview-pane {
    max-height: none;
  }
}
