/* =========================================================
   IDEAS DE 3 - ENTERPRISE PRINT OPERATING SYSTEM
   HIGH-END INSTITUTIONAL CORPORATE DESIGN SYSTEM
   ========================================================= */

:root {
  --inst-bg: #090d16;
  --inst-surface: #0f1728;
  --inst-card: #152035;
  --inst-card-hover: #1c2b46;
  --inst-border: #22324e;
  --inst-border-light: #32476d;

  --accent-blue: #2563eb;
  --accent-blue-hover: #1d4ed8;
  --accent-cyan: #0ea5e9;
  --accent-cyan-glow: rgba(14, 165, 233, 0.35);
  --accent-gold: #f59e0b;

  --status-green: #10b981;
  --status-green-glow: rgba(16, 185, 129, 0.4);

  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-sub: #64748b;

  --font-corporate: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
}

body.institutional-theme {
  background-color: var(--inst-bg);
  color: var(--text-main);
  font-family: var(--font-corporate);
  min-height: 100vh;
  line-height: 1.5;
  overflow-x: hidden;
}

/* =========================================================
   TOP VERSION SWITCHER BAR
   ========================================================= */
.top-version-bar {
  background: rgba(11, 16, 26, 0.95);
  border-bottom: 1px solid var(--inst-border);
  padding: 8px 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  z-index: 1000;
}

.version-inner {
  display: flex;
  align-items: center;
  gap: 8px;
}

.v-label {
  font-family: var(--font-mono);
  color: var(--text-sub);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.8px;
}

.v-link {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 11px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 4px;
  transition: all 0.2s;
}

.v-link:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.06);
}

.v-link.active {
  background: var(--accent-blue);
  color: #ffffff;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.35);
}

.btn-sound-pill {
  background: #152035;
  border: 1px solid var(--inst-border);
  color: var(--text-muted);
  padding: 4px 12px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 11px;
  font-weight: 600;
  transition: all 0.2s;
}

.btn-sound-pill:hover {
  color: #ffffff;
  border-color: var(--accent-cyan);
}

/* =========================================================
   VIEW 1: INSTITUTIONAL CORPORATE LOGIN LAYOUT
   ========================================================= */
.view-panel {
  display: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.view-panel.active {
  display: block;
  opacity: 1;
}

.inst-viewport {
  max-width: 1440px;
  margin: 0 auto;
  padding: 32px 32px 60px;
}

.inst-grid-layout {
  display: grid;
  grid-template-columns: 1.55fr 1fr;
  gap: 36px;
  align-items: start;
}

@media (max-width: 1080px) {
  .inst-grid-layout {
    grid-template-columns: 1fr;
  }
}

/* BRAND MASTHEAD */
.inst-brand-masthead {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
}

.inst-logo-symbol {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
}

.inst-svg-logo {
  width: 100%;
  height: 100%;
  display: block;
}

.inst-company-title {
  font-size: 22px;
  font-weight: 900;
  letter-spacing: 1px;
  color: #ffffff;
  line-height: 1.1;
}

.inst-tagline {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  color: var(--accent-cyan);
  letter-spacing: 1.5px;
}

.inst-hero-lead {
  margin-bottom: 22px;
}

.inst-hero-lead h2 {
  font-size: clamp(24px, 2.8vw, 34px);
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.5px;
  line-height: 1.2;
  margin-bottom: 10px;
}

.inst-hero-lead p {
  font-size: 14px;
  color: var(--text-muted);
  max-width: 660px;
  line-height: 1.6;
}

/* PRINTER STAGE CARD */
.inst-printer-stage-card {
  background: var(--inst-surface);
  border: 1px solid var(--inst-border);
  border-radius: 12px;
  padding: 22px;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.4);
  margin-bottom: 22px;
}

.stage-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--inst-border);
  padding-bottom: 14px;
  margin-bottom: 16px;
  flex-wrap: wrap;
  gap: 12px;
}

.printer-identity {
  display: flex;
  align-items: center;
  gap: 12px;
}

.indicator-dot-green {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--status-green);
  box-shadow: 0 0 10px var(--status-green-glow);
  animation: pulse-dot 1.6s infinite;
}

.printer-identity strong {
  font-size: 13px;
  font-weight: 800;
  color: #ffffff;
  display: block;
}

.printer-subspec {
  font-size: 11px;
  color: var(--text-muted);
}

.telemetry-pill {
  background: rgba(14, 165, 233, 0.1);
  border: 1px solid rgba(14, 165, 233, 0.3);
  padding: 4px 10px;
  border-radius: 4px;
}

.telemetry-pill .mono-txt {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  color: var(--accent-cyan);
}

.vector-printer-frame {
  width: 100%;
  background: radial-gradient(circle at center, #131b2e 0%, #0a0e18 85%);
  border: 1px solid #1c273c;
  border-radius: 8px;
  padding: 12px;
  overflow: hidden;
}

.inst-printer-svg {
  width: 100%;
  height: auto;
  display: block;
}

/* CARRIAGE HORIZONTAL SWEEP ANIMATION */
@keyframes carriage-glide {
  0% { transform: translateX(-150px); }
  50% { transform: translateX(150px); }
  100% { transform: translateX(-150px); }
}

.carriage-glider {
  animation: carriage-glide 6.5s cubic-bezier(0.45, 0.05, 0.55, 0.95) infinite;
  transform-origin: center;
}

/* PRINTER LIVE METRICS STRIP */
.inst-telemetry-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--inst-border);
}

@media (max-width: 680px) {
  .inst-telemetry-row {
    grid-template-columns: repeat(2, 1fr);
  }
}

.t-cell {
  background: #0b111d;
  border: 1px solid #1a2538;
  padding: 10px 12px;
  border-radius: 6px;
}

.t-lbl {
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 700;
  color: var(--text-sub);
  letter-spacing: 0.5px;
  display: block;
  margin-bottom: 2px;
}

.t-val {
  font-family: var(--font-mono);
  font-size: 16px;
  font-weight: 800;
  color: #ffffff;
}

.t-unit {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 500;
}

.highlight-green {
  color: var(--status-green) !important;
}

/* PILLARS STRIP */
.inst-pillars-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

@media (max-width: 760px) {
  .inst-pillars-strip {
    grid-template-columns: 1fr;
  }
}

.ip-item {
  background: var(--inst-surface);
  border: 1px solid var(--inst-border);
  border-radius: 8px;
  padding: 14px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.ip-icon {
  font-size: 20px;
}

.ip-item strong {
  font-size: 12px;
  color: #ffffff;
  display: block;
  margin-bottom: 2px;
}

.ip-item p {
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.4;
}

/* =========================================================
   RIGHT: INSTITUTIONAL LOGIN PORTAL & FOUNDER DIRECTORY
   ========================================================= */
.inst-login-card {
  background: var(--inst-surface);
  border: 1px solid var(--inst-border);
  border-radius: 12px;
  padding: 26px;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.4);
}

.auth-card-top {
  margin-bottom: 18px;
}

.auth-badge-pill {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  color: var(--accent-cyan);
  background: rgba(14, 165, 233, 0.1);
  border: 1px solid rgba(14, 165, 233, 0.25);
  padding: 2px 8px;
  border-radius: 4px;
  display: inline-block;
  margin-bottom: 8px;
  letter-spacing: 1px;
}

.auth-card-top h2 {
  font-size: 22px;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.3px;
  margin-bottom: 4px;
}

.auth-card-top p {
  font-size: 13px;
  color: var(--text-muted);
}

/* 4 FOUNDER STATIONS */
.founder-station-pills {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
}

.f-station-card {
  background: #0b111c;
  border: 1px solid var(--inst-border);
  border-radius: 8px;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  text-align: left;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  width: 100%;
}

.f-station-card:hover {
  background: #141d2d;
  border-color: var(--accent-cyan);
  transform: translateY(-1px);
}

.f-station-card.active {
  background: linear-gradient(135deg, #16243b 0%, #101a2b 100%);
  border-color: var(--accent-blue);
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.25);
}

.f-code-badge {
  width: 34px;
  height: 34px;
  border-radius: 6px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 800;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.badge-dir { background: #0284c7; }
.badge-ops { background: #059669; }
.badge-sales { background: #d97706; }
.badge-fin { background: #4f46e5; }

.f-text-block {
  flex: 1;
}

.f-title-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2px;
}

.f-main-title {
  font-size: 12px;
  font-weight: 700;
  color: #ffffff;
}

.f-status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--status-green);
  opacity: 0.4;
}

.f-station-card.active .f-status-dot {
  opacity: 1;
  box-shadow: 0 0 6px var(--status-green);
}

.f-sub-desc {
  font-size: 10px;
  color: var(--text-muted);
}

/* CREDENTIALS FORM */
.inst-credentials-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.field-item label {
  display: block;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 0.5px;
  margin-bottom: 6px;
}

.field-shell {
  display: flex;
  align-items: center;
  background: #080c14;
  border: 1px solid var(--inst-border);
  border-radius: 6px;
  padding: 0 12px;
  transition: all 0.2s;
}

.field-shell:focus-within {
  border-color: var(--accent-cyan);
  box-shadow: 0 0 0 3px var(--accent-cyan-glow);
  background: #0d1422;
}

.field-icon {
  font-size: 14px;
  color: var(--text-sub);
  margin-right: 10px;
}

.field-shell input {
  width: 100%;
  background: transparent;
  border: none;
  outline: none;
  color: #ffffff;
  font-family: var(--font-corporate);
  font-size: 13px;
  padding: 12px 0;
}

.select-shell {
  padding: 0;
}

.corp-select {
  width: 100%;
  background: transparent;
  border: none;
  color: #cbd5e1;
  font-family: var(--font-corporate);
  font-size: 12px;
  padding: 12px 14px;
  outline: none;
  cursor: pointer;
}

.corp-select option {
  background: #111827;
  color: #ffffff;
}

/* REMEMBER CHECKBOX */
.remember-line {
  margin: 2px 0 4px;
}

.remember-checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  user-select: none;
}

.remember-checkbox-label input {
  display: none;
}

.custom-box {
  width: 15px;
  height: 15px;
  border: 1px solid var(--inst-border-light);
  background: #090e18;
  border-radius: 3px;
  position: relative;
  transition: all 0.2s;
}

.remember-checkbox-label input:checked + .custom-box {
  background: var(--accent-blue);
  border-color: var(--accent-blue);
}

.remember-checkbox-label input:checked + .custom-box::after {
  content: "";
  position: absolute;
  left: 4px;
  top: 1px;
  width: 4px;
  height: 8px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.box-text {
  font-size: 12px;
  color: var(--text-muted);
}

/* BUTTONS STACK */
.auth-buttons-stack {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 6px;
}

.btn-inst-primary {
  background: linear-gradient(135deg, var(--accent-blue) 0%, #1e40af 100%);
  color: #ffffff;
  border: 1px solid #60a5fa;
  padding: 14px 20px;
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
}

.btn-inst-primary:hover {
  background: linear-gradient(135deg, #1d4ed8 0%, #1e3a8a 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.5);
}

.btn-inst-primary:active {
  transform: translateY(1px);
}

.btn-main-txt {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.5px;
}

.btn-sub-txt {
  font-family: var(--font-mono);
  font-size: 9px;
  color: #bfdbfe;
  margin-top: 2px;
}

.btn-inst-secondary {
  background: transparent;
  color: var(--accent-cyan);
  border: 1px dashed var(--inst-border-light);
  font-size: 11px;
  font-weight: 700;
  padding: 10px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s;
  letter-spacing: 0.5px;
}

.btn-inst-secondary:hover {
  background: rgba(14, 165, 233, 0.08);
  border-color: var(--accent-cyan);
}

/* FOOTER */
.auth-card-footer {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--inst-border);
}

.sec-statement {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--text-sub);
  margin-bottom: 6px;
}

.diagnostics-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 10px;
}

.diag-link {
  color: var(--accent-cyan);
  text-decoration: underline;
  cursor: pointer;
}

.diag-sep {
  color: var(--text-sub);
}

.diag-val {
  color: var(--status-green);
}

/* =========================================================
   TRANSITION MODAL
   ========================================================= */
.insite-trans-modal {
  position: fixed;
  top: 0; left: 0; width: 100vw; height: 100vh;
  background: rgba(8, 12, 19, 0.92);
  backdrop-filter: blur(10px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.insite-trans-modal.show {
  opacity: 1;
  pointer-events: all;
}

.trans-dialog-box {
  background: var(--inst-surface);
  border: 1px solid var(--inst-border-light);
  border-radius: 12px;
  padding: 34px 40px;
  max-width: 520px;
  width: 90%;
  text-align: center;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
  animation: modal-scale 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modal-scale {
  from { transform: scale(0.92); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.trans-brand-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 11px;
  font-family: var(--font-mono);
  color: var(--accent-cyan);
  letter-spacing: 1px;
  margin-bottom: 12px;
}

.trans-title {
  font-size: 24px;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 8px;
}

.trans-desc {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 18px;
}

.trans-loading-rail {
  background: #080c14;
  height: 6px;
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 16px;
}

.trans-loading-bar {
  background: linear-gradient(90deg, var(--accent-blue), var(--accent-cyan));
  height: 100%;
  animation: load-strip 1.2s infinite ease-in-out;
}

@keyframes load-strip {
  0% { transform: translateX(-100%); }
  50% { transform: translateX(0%); }
  100% { transform: translateX(100%); }
}

.trans-step-checklist {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--status-green);
  display: flex;
  flex-direction: column;
  gap: 4px;
  text-align: left;
  background: #090e18;
  padding: 12px;
  border-radius: 6px;
  border: 1px solid var(--inst-border);
}

/* =========================================================
   VIEW 2: FULL POST-LOGIN PROPOSAL DASHBOARD
   ========================================================= */
.corp-dashboard-panel {
  width: 100%;
}

.corp-dash-wrapper {
  max-width: 1400px;
  margin: 0 auto;
  padding: 24px 24px 60px;
}

.corp-dash-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--inst-border);
  padding-bottom: 18px;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 16px;
}

.corp-crumb {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  color: var(--accent-cyan);
  letter-spacing: 0.8px;
  margin-bottom: 4px;
}

.dash-h2 {
  font-size: 26px;
  font-weight: 800;
  color: #ffffff;
}

.h2-brand {
  color: var(--accent-cyan);
}

.dash-meta {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 4px;
}

.btn-corp-back {
  background: #152035;
  color: #e2e8f0;
  border: 1px solid var(--inst-border-light);
  padding: 8px 16px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-corp-back:hover {
  background: var(--accent-blue);
  color: #ffffff;
  border-color: var(--accent-blue);
}

/* PROPOSAL EXECUTIVE TABS */
.corp-tab-nav {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 14px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--inst-border);
  scrollbar-width: thin;
}

.c-tab-btn {
  background: var(--inst-surface);
  border: 1px solid var(--inst-border);
  color: var(--text-muted);
  padding: 10px 16px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  transition: all 0.2s;
}

.c-tab-num {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.06);
  padding: 2px 6px;
  border-radius: 3px;
}

.c-tab-btn:hover {
  background: var(--inst-card);
  color: #ffffff;
  border-color: var(--accent-cyan);
}

.c-tab-btn.active {
  background: var(--accent-blue);
  color: #ffffff;
  border-color: #60a5fa;
  font-weight: 800;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
}

.c-tab-btn.active .c-tab-num {
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
}

.c-tab-btn.highlight-tab {
  border-color: rgba(14, 165, 233, 0.4);
  background: rgba(14, 165, 233, 0.08);
  color: var(--accent-cyan);
}

.c-tab-btn.highlight-tab.active {
  background: var(--accent-cyan);
  color: #000000;
  border-color: #38bdf8;
}

/* TAB CONTENT PANES */
.c-tab-content {
  display: none;
  animation: c-fade 0.3s ease;
}

.c-tab-content.active {
  display: block;
}

@keyframes c-fade {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.tab-heading-row {
  margin-bottom: 24px;
}

.tab-heading-row h3 {
  font-size: 22px;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 6px;
}

.tab-heading-row p {
  font-size: 14px;
  color: var(--text-muted);
}

/* TAB 1: HERO QUOTE BOX */
.corp-hero-quote-box {
  background: linear-gradient(135deg, #152238 0%, #0d1524 100%);
  border: 1px solid var(--inst-border-light);
  border-left: 4px solid var(--accent-cyan);
  border-radius: 10px;
  padding: 30px;
  margin-bottom: 26px;
}

.quote-header-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  color: var(--accent-cyan);
  letter-spacing: 1.5px;
  margin-bottom: 10px;
}

.quote-text {
  font-size: clamp(22px, 2.8vw, 32px);
  font-weight: 800;
  color: #ffffff;
  line-height: 1.3;
  margin-bottom: 14px;
}

.quote-explanation {
  font-size: 15px;
  color: #cbd5e1;
  line-height: 1.6;
}

.corp-three-pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 30px;
}

@media (max-width: 860px) {
  .corp-three-pillars {
    grid-template-columns: 1fr;
  }
}

.pillar-card {
  background: var(--inst-surface);
  border: 1px solid var(--inst-border);
  border-radius: 8px;
  padding: 24px;
  display: flex;
  flex-direction: column;
}

.pillar-num {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 800;
  color: var(--accent-cyan);
  margin-bottom: 12px;
}

.pillar-card h4 {
  font-size: 16px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 10px;
}

.pillar-card p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
  flex: 1;
  margin-bottom: 16px;
}

.pillar-tag {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  color: var(--text-sub);
  background: rgba(255, 255, 255, 0.04);
  padding: 4px 10px;
  border-radius: 4px;
  align-self: flex-start;
}

.pillar-tag.tag-blue {
  color: var(--accent-cyan);
  background: rgba(14, 165, 233, 0.1);
}

/* TAB 2: MODULES GRID */
.corp-modules-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  margin-bottom: 30px;
}

@media (max-width: 860px) {
  .corp-modules-grid {
    grid-template-columns: 1fr;
  }
}

.c-mod-box {
  background: var(--inst-surface);
  border: 1px solid var(--inst-border);
  border-radius: 8px;
  padding: 22px;
}

.c-mod-box.full-span {
  grid-column: 1 / -1;
  border-color: var(--accent-blue);
  background: linear-gradient(135deg, #152238 0%, #0d1524 100%);
}

.c-mod-top {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.c-mod-index {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 800;
  color: var(--accent-cyan);
  background: rgba(14, 165, 233, 0.12);
  padding: 2px 8px;
  border-radius: 3px;
}

.c-mod-top h4 {
  font-size: 16px;
  font-weight: 700;
  color: #ffffff;
}

.c-mod-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.c-mod-list li {
  font-size: 13px;
  color: #cbd5e1;
  position: relative;
  padding-left: 18px;
  line-height: 1.5;
}

.c-mod-list li::before {
  content: "■";
  color: var(--accent-cyan);
  font-size: 8px;
  position: absolute;
  left: 2px;
  top: 4px;
}

.text-alert {
  color: var(--accent-gold) !important;
}

.c-mod-split p {
  font-size: 14px;
  color: #cbd5e1;
  line-height: 1.6;
  margin-bottom: 12px;
}

.portal-tags {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.portal-tags span {
  font-size: 12px;
  font-weight: 600;
  color: var(--status-green);
  background: rgba(16, 185, 129, 0.1);
  padding: 4px 10px;
  border-radius: 4px;
}

/* TAB 3: AI RULE & CONSOLE */
.corp-rule-alert {
  background: linear-gradient(90deg, #132238 0%, #0d1726 100%);
  border-left: 4px solid var(--status-green);
  padding: 16px 20px;
  border-radius: 8px;
  margin-bottom: 22px;
}

.rule-badge-pill {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 800;
  color: var(--status-green);
  letter-spacing: 1px;
  margin-bottom: 4px;
}

.corp-rule-alert p {
  font-size: 15px;
  color: #f1f5f9;
}

.corp-table-shell {
  background: var(--inst-surface);
  border: 1px solid var(--inst-border);
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 28px;
}

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

.corp-table th {
  background: #0f1624;
  padding: 12px 18px;
  text-align: left;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  border-bottom: 1px solid var(--inst-border);
}

.corp-table td {
  padding: 14px 18px;
  border-bottom: 1px solid #1a2436;
  font-size: 13px;
  color: #cbd5e1;
}

.corp-table tr:hover td {
  background: #141d2d;
}

.corp-ai-console {
  background: #080c14;
  border: 1px solid var(--inst-border);
  border-radius: 8px;
  padding: 22px;
  margin-bottom: 30px;
}

.console-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.live-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--status-green);
  box-shadow: 0 0 8px var(--status-green);
}

.console-head strong {
  font-size: 13px;
  color: #ffffff;
  font-weight: 700;
}

.console-sub {
  font-size: 12px;
  color: var(--text-sub);
}

.console-buttons {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.corp-q-btn {
  background: #111827;
  border: 1px solid var(--inst-border);
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s;
}

.corp-q-btn:hover {
  background: #1a2436;
  color: #ffffff;
  border-color: var(--accent-cyan);
}

.corp-q-btn.active {
  background: rgba(14, 165, 233, 0.15);
  color: var(--accent-cyan);
  border-color: var(--accent-cyan);
}

.console-screen {
  background: #05080f;
  border: 1px solid #141c2c;
  border-radius: 4px;
  padding: 18px;
}

.console-line-header {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  color: var(--accent-cyan);
  margin-bottom: 8px;
}

.prompt-sym {
  color: var(--status-green);
}

.console-body {
  font-size: 13px;
  color: #cbd5e1;
  line-height: 1.6;
}

.console-body ul {
  padding-left: 20px;
  margin-top: 8px;
}

.console-body li {
  margin-bottom: 6px;
}

/* TAB 4: IMPACT GRID */
.corp-impact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-bottom: 30px;
}

@media (max-width: 960px) {
  .corp-impact-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 580px) {
  .corp-impact-grid {
    grid-template-columns: 1fr;
  }
}

.impact-item {
  background: var(--inst-surface);
  border: 1px solid var(--inst-border);
  border-radius: 8px;
  padding: 20px;
}

.impact-metric {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 800;
  color: var(--accent-cyan);
  letter-spacing: 1px;
  margin-bottom: 8px;
}

.impact-arrow-row {
  display: flex;
  flex-direction: column;
  margin-bottom: 10px;
}

.impact-arrow-row .cause {
  font-size: 12px;
  color: var(--text-muted);
}

.impact-arrow-row .arr {
  color: var(--accent-cyan);
  font-size: 14px;
}

.impact-arrow-row .effect {
  font-size: 15px;
  font-weight: 800;
  color: #ffffff;
}

.impact-item p {
  font-size: 12px;
  color: #94a3b8;
  line-height: 1.5;
}

/* TAB 5: STEPS FLOW */
.corp-steps-flow {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 30px;
}

.c-step-card {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  background: var(--inst-surface);
  border: 1px solid var(--inst-border);
  border-radius: 8px;
  padding: 20px 24px;
}

.c-step-card.highlight-step {
  border-color: var(--accent-cyan);
  background: linear-gradient(90deg, #152238 0%, #0d1524 100%);
}

.c-step-badge {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 800;
  color: var(--text-muted);
  background: #0d1422;
  padding: 6px 12px;
  border-radius: 4px;
  white-space: nowrap;
}

.badge-ai-step {
  background: var(--accent-blue);
  color: #ffffff;
}

.c-step-body h4 {
  font-size: 16px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 6px;
}

.c-step-body p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 10px;
}

.c-step-deliverable {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  color: var(--status-green);
  background: rgba(16, 185, 129, 0.08);
  padding: 3px 8px;
  border-radius: 4px;
}

/* TAB 6: NEEDS CARDS & CLOSING */
.corp-needs-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 30px;
}

@media (max-width: 900px) {
  .corp-needs-cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 520px) {
  .corp-needs-cards {
    grid-template-columns: 1fr;
  }
}

.need-block {
  background: var(--inst-surface);
  border: 1px solid var(--inst-border);
  border-radius: 8px;
  padding: 22px 18px;
  display: flex;
  flex-direction: column;
}

.need-num {
  font-family: var(--font-mono);
  font-size: 24px;
  font-weight: 800;
  color: var(--accent-cyan);
  margin-bottom: 8px;
}

.need-block h4 {
  font-size: 14px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 8px;
}

.need-block p {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.5;
  flex: 1;
  margin-bottom: 14px;
}

.need-note {
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 700;
  color: var(--text-sub);
}

.corp-closing-box {
  background: linear-gradient(135deg, #152238 0%, #0d1524 100%);
  border: 1px solid var(--accent-blue);
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  margin-bottom: 30px;
}

.corp-closing-box h4 {
  font-size: 22px;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 10px;
}

.corp-closing-box p {
  font-size: 14px;
  color: #cbd5e1;
  max-width: 760px;
  margin: 0 auto 20px;
  line-height: 1.6;
}

.btn-jump-telemetria {
  background: var(--accent-blue);
  color: #ffffff;
  border: 1px solid #60a5fa;
  font-size: 13px;
  font-weight: 800;
  padding: 12px 24px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
}

.btn-jump-telemetria:hover {
  background: var(--accent-blue-hover);
}

/* TAB 7: TELEMETRY VIEW */
.corp-kpi-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

@media (max-width: 900px) {
  .corp-kpi-row {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 520px) {
  .corp-kpi-row {
    grid-template-columns: 1fr;
  }
}

.c-kpi-card {
  background: var(--inst-surface);
  border: 1px solid var(--inst-border);
  border-radius: 8px;
  padding: 18px;
}

.kpi-tag {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  color: var(--text-sub);
  letter-spacing: 0.8px;
  margin-bottom: 6px;
}

.kpi-num {
  font-family: var(--font-mono);
  font-size: 30px;
  font-weight: 800;
  color: #ffffff;
  line-height: 1;
  margin-bottom: 6px;
}

.kpi-num .unit {
  font-size: 14px;
  color: var(--text-sub);
}

.color-gold {
  color: var(--accent-gold) !important;
}

.kpi-trend {
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 4px;
}

.kpi-trend.pos { color: var(--status-green); }
.kpi-trend.neutral { color: var(--accent-cyan); }

.kpi-meta {
  font-size: 11px;
  color: var(--text-sub);
}

.corp-dash-split {
  display: grid;
  grid-template-columns: 1.55fr 1fr;
  gap: 20px;
  margin-bottom: 30px;
}

@media (max-width: 980px) {
  .corp-dash-split {
    grid-template-columns: 1fr;
  }
}

.c-panel-box {
  background: var(--inst-surface);
  border: 1px solid var(--inst-border);
  border-radius: 8px;
  padding: 22px;
}

.panel-top-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--inst-border);
  padding-bottom: 12px;
  margin-bottom: 16px;
}

.panel-top-title h4 {
  font-size: 13px;
  font-weight: 800;
  color: #ffffff;
}

.live-pill-green {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  color: var(--status-green);
}

.sync-tag {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  color: var(--accent-cyan);
  background: rgba(14, 165, 233, 0.1);
  padding: 2px 8px;
  border-radius: 3px;
}

.table-compact th, .table-compact td {
  padding: 10px 12px;
}

.badge-run {
  font-size: 10px;
  font-weight: 700;
  color: var(--status-green);
  background: rgba(16, 185, 129, 0.15);
  padding: 2px 8px;
  border-radius: 3px;
}

.badge-queue {
  font-size: 10px;
  font-weight: 700;
  color: var(--accent-cyan);
  background: rgba(14, 165, 233, 0.15);
  padding: 2px 8px;
  border-radius: 3px;
}

.badge-done {
  font-size: 10px;
  font-weight: 700;
  color: var(--accent-gold);
  background: rgba(245, 158, 11, 0.15);
  padding: 2px 8px;
  border-radius: 3px;
}

.badge-ready {
  font-size: 10px;
  font-weight: 700;
  color: #a855f7;
  background: rgba(168, 85, 247, 0.15);
  padding: 2px 8px;
  border-radius: 3px;
}

.c-founder-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: #0b111c;
  border: 1px solid var(--inst-border);
  padding: 10px 12px;
  border-radius: 6px;
  margin-bottom: 10px;
}

.f-pill-icon {
  width: 28px;
  height: 28px;
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 800;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.f-dir { background: #0284c7; }
.f-ops { background: #059669; }
.f-sales { background: #d97706; }
.f-fin { background: #4f46e5; }

.f-desc {
  font-size: 12px;
  color: #cbd5e1;
  line-height: 1.4;
}

.c-takeaway-card {
  background: #080c14;
  border: 1px dashed var(--inst-border-light);
  border-left: 3px solid var(--accent-cyan);
  padding: 14px;
  border-radius: 6px;
  margin-top: 14px;
}

.c-takeaway-card h5 {
  font-size: 12px;
  color: var(--accent-cyan);
  margin-bottom: 4px;
}

.c-takeaway-card p {
  font-size: 12px;
  color: var(--text-muted);
}

/* FOOTER NAV BUTTONS IN TABS */
.corp-tab-nav-footer {
  display: flex;
  justify-content: space-between;
  border-top: 1px solid var(--inst-border);
  padding-top: 20px;
  margin-top: 20px;
  flex-wrap: wrap;
  gap: 12px;
}

.btn-corp-next {
  background: var(--accent-blue);
  color: #ffffff;
  border: 1px solid #60a5fa;
  padding: 10px 20px;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  margin-left: auto;
  transition: all 0.2s;
}

.btn-corp-next:hover {
  background: var(--accent-blue-hover);
}

.btn-corp-prev {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--inst-border);
  padding: 10px 18px;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-corp-prev:hover {
  color: #ffffff;
  border-color: var(--text-muted);
}

/* ANIMATIONS */
@keyframes pulse-dot {
  0% { transform: scale(0.9); opacity: 0.7; }
  50% { transform: scale(1.2); opacity: 1; }
  100% { transform: scale(0.9); opacity: 0.7; }
}
