/* ================================================
   KURO SPHERE – Corporate Architecture Framework
   ================================================ */

:root {
  --bg-deep: #06060b;
  --bg-base: #0c0c14;
  --bg-surface: #13131f;
  --bg-elevated: #1a1a2e;
  --bg-hover: #22223a;
  --border: #2a2a42;
  --border-subtle: #1e1e34;
  --text-primary: #eef0f6;
  --text-secondary: #8b8fa8;
  --text-muted: #5c5f78;
  --accent-indigo: #818cf8;
  --accent-violet: #a78bfa;
  --accent-cyan: #22d3ee;
  --accent-amber: #fbbf24;
  --accent-emerald: #34d399;
  --accent-pink: #f472b6;
  --accent-orange: #fb923c;
  --accent-teal: #2dd4bf;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --font-heading: 'Sora', sans-serif;
  --font-body: 'Plus Jakarta Sans', sans-serif;
  --transition: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  --sidebar-w: 64px;
}

/* ---- LIGHT THEME ---- */

[data-theme="light"] {
  --bg-deep: #edeef3;
  --bg-base: #e4e5ed;
  --bg-surface: #ffffff;
  --bg-elevated: #f2f3f8;
  --bg-hover: #dddee8;
  --border: #c8cad6;
  --border-subtle: #d8dae4;
  --text-primary: #1a1c2e;
  --text-secondary: #4a4d68;
  --text-muted: #7a7d98;
  --accent-indigo: #374151;
  --accent-violet: #4b5563;
  --accent-cyan: #0891b2;
  --accent-amber: #d97706;
  --accent-emerald: #059669;
  --accent-pink: #db2777;
  --accent-orange: #ea580c;
  --accent-teal: #0d9488;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html, body { height: 100%; overflow: hidden; }
body { font-family: var(--font-body); background: var(--bg-deep); color: var(--text-primary); -webkit-font-smoothing: antialiased; }
#app { display: flex; flex-direction: column; height: 100vh; width: 100vw; }

/* ---- HEADER ---- */

#header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 28px; height: 48px; min-height: 48px;
  background: rgba(12, 12, 20, 0.9); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-subtle); z-index: 100;
}
.logo { font-family: var(--font-heading); font-size: 17px; font-weight: 700; letter-spacing: 3px; }
.logo span { font-weight: 300; color: var(--accent-indigo); }
.subtitle { font-size: 10px; color: var(--text-muted); letter-spacing: 1.2px; margin-left: 20px; text-transform: uppercase; }
.header-left { display: flex; align-items: baseline; }

.btn-icon {
  background: none; border: 1px solid var(--border); color: var(--text-secondary);
  width: 32px; height: 32px; border-radius: var(--radius-sm);
  cursor: pointer; display: flex; align-items: center; justify-content: center; transition: var(--transition);
}
.btn-icon:hover { background: var(--bg-hover); color: var(--text-primary); border-color: var(--accent-indigo); }

/* ---- BODY WRAP ---- */

#body-wrap { display: flex; flex: 1; overflow: hidden; }

/* ---- SIDEBAR ---- */

#sidebar {
  width: var(--sidebar-w); min-width: var(--sidebar-w); display: flex; flex-direction: column;
  align-items: center; padding: 8px 0; gap: 2px;
  background: rgba(12, 12, 20, 0.95); border-right: 1px solid var(--border-subtle); z-index: 90;
}

.nav-btn {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  width: 56px; height: 52px; background: transparent; border: none; border-radius: var(--radius-sm);
  color: var(--text-muted); cursor: pointer; transition: var(--transition); position: relative;
}
.nav-btn span { font-size: 8px; font-weight: 600; letter-spacing: 0.5px; text-transform: uppercase; }
.nav-btn:hover { color: var(--text-primary); background: var(--bg-hover); }
.nav-btn.active { color: var(--accent-indigo); background: rgba(129, 140, 248, 0.08); }
.nav-btn.active::before {
  content: ''; position: absolute; left: 0; top: 8px; bottom: 8px; width: 2px;
  background: var(--accent-indigo); border-radius: 0 2px 2px 0;
}

/* ---- MAIN / VIEWS ---- */

#main { flex: 1; position: relative; overflow: hidden; }
.view { position: absolute; inset: 0; opacity: 0; pointer-events: none; transition: opacity 0.3s ease; }
.view.active { opacity: 1; pointer-events: auto; }

/* ---- CANVAS ---- */

#sphere-canvas { width: 100%; height: 100%; display: block; cursor: grab; }
#sphere-canvas:active { cursor: grabbing; }

/* ---- CAMERA PRESETS ---- */

.cam-presets {
  position: absolute; top: 16px; left: 16px; display: flex; gap: 4px; z-index: 50;
}
.cam-btn {
  width: 36px; height: 36px; border-radius: var(--radius-sm); border: 1px solid var(--border);
  background: rgba(12, 12, 20, 0.7); backdrop-filter: blur(8px); color: var(--text-secondary);
  cursor: pointer; display: flex; align-items: center; justify-content: center; transition: var(--transition);
}
.cam-btn:hover { color: var(--text-primary); border-color: var(--accent-indigo); }
.cam-btn.active { background: var(--accent-indigo); color: #fff; border-color: var(--accent-indigo); }

/* ---- BACK BUTTON ---- */

.btn-back {
  position: absolute; top: 16px; left: 100px; display: flex; align-items: center; gap: 8px;
  padding: 8px 18px; background: rgba(12, 12, 20, 0.8); backdrop-filter: blur(8px);
  border: 1px solid var(--border); border-radius: var(--radius-md); color: var(--text-primary);
  font-family: var(--font-body); font-size: 13px; font-weight: 500; cursor: pointer;
  transition: var(--transition); z-index: 50;
}
.btn-back:hover { background: var(--bg-elevated); border-color: var(--accent-indigo); }

/* ---- TOGGLE BAR ---- */

.toggle-bar {
  position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 3px; padding: 3px; background: rgba(12, 12, 20, 0.85); backdrop-filter: blur(12px);
  border: 1px solid var(--border); border-radius: 28px; z-index: 50;
}
.toggle-btn {
  padding: 7px 16px; background: transparent; border: none; border-radius: 24px;
  color: var(--text-secondary); font-family: var(--font-body); font-size: 12px; font-weight: 500;
  cursor: pointer; transition: var(--transition); white-space: nowrap;
}
.toggle-btn:hover { color: var(--text-primary); }
.toggle-btn.active { background: var(--accent-indigo); color: #fff; box-shadow: 0 2px 12px rgba(129,140,248,0.3); }

/* ---- INFO PANEL ---- */

.info-panel {
  position: absolute; top: 16px; right: 16px; width: 400px; max-height: calc(100% - 80px);
  overflow-y: auto; background: rgba(14, 14, 26, 0.95); backdrop-filter: blur(20px);
  border: 1px solid rgba(99, 102, 241, 0.25); border-radius: var(--radius-lg); padding: 28px; z-index: 50;
  transition: opacity 0.4s ease, transform 0.4s ease, box-shadow 0.4s ease;
  box-shadow: 0 0 40px rgba(99, 102, 241, 0.08), 0 8px 32px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255,255,255,0.04);
}
.info-close {
  position: absolute; top: 12px; right: 12px; width: 28px; height: 28px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.1);
  border-radius: 6px; color: rgba(255,255,255,0.4); cursor: pointer; transition: 0.2s;
  z-index: 2;
}
.info-close:hover { background: rgba(255,255,255,0.12); color: #fff; border-color: rgba(255,255,255,0.25); }
[data-theme="light"] .info-close { background: var(--bg-elevated); border-color: var(--border); color: var(--text-muted); }
[data-theme="light"] .info-close:hover { background: var(--bg-hover); color: var(--text-primary); border-color: var(--accent-indigo); }
.info-panel.hidden { opacity: 0; pointer-events: none; transform: translateX(20px); box-shadow: none; }
.info-panel h3 { font-family: var(--font-heading); font-size: 20px; font-weight: 600; margin-bottom: 18px; }
.info-section { margin-bottom: 18px; }
.info-label { font-size: 10px; font-weight: 600; letter-spacing: 1.5px; text-transform: uppercase; color: var(--text-muted); margin-bottom: 8px; }
.info-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.info-tag { padding: 4px 12px; border-radius: 16px; font-size: 12px; font-weight: 500; background: var(--bg-elevated); border: 1px solid var(--border); color: var(--text-secondary); }
.info-tag.vendor { background: rgba(129,140,248,0.1); border-color: rgba(129,140,248,0.25); color: var(--accent-indigo); }

/* ---- TOOLTIP ---- */

.tooltip {
  position: absolute; padding: 5px 12px; background: rgba(19,19,31,0.95); backdrop-filter: blur(8px);
  border: 1px solid var(--border); border-radius: var(--radius-sm); font-size: 12px; font-weight: 500;
  color: var(--text-primary); pointer-events: none; z-index: 200; white-space: nowrap; transition: opacity 0.15s ease;
}
.tooltip.hidden { opacity: 0; }

/* ---- HIDDEN ---- */
.hidden { display: none !important; }

/* ---- DETAIL PAGES ---- */

.page-wrap {
  padding: 40px 48px; max-width: 1100px; height: 100%; overflow-y: auto;
}
.page-back {
  display: inline-flex; align-items: center; gap: 6px; margin-bottom: 24px;
  background: none; border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 6px 14px; color: var(--text-secondary); font-family: var(--font-body);
  font-size: 12px; cursor: pointer; transition: var(--transition);
}
.page-back:hover { color: var(--text-primary); border-color: var(--accent-indigo); }
.page-title { font-family: var(--font-heading); font-size: 26px; font-weight: 700; margin-bottom: 6px; }
.page-subtitle { font-size: 13px; color: var(--text-muted); margin-bottom: 36px; }

.portfolio-header {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 20px;
  flex-wrap: wrap; margin-bottom: 8px;
}
.portfolio-header .page-subtitle { margin-bottom: 0; }
.portfolio-switch {
  display: flex; background: var(--bg-surface); border: 1px solid var(--border);
  border-radius: 10px; padding: 3px; gap: 2px; flex-shrink: 0;
}
.portfolio-switch-btn {
  padding: 8px 18px; border-radius: 8px; border: none; background: transparent;
  color: var(--text-muted); font-family: 'Sora', sans-serif; font-size: 13px; font-weight: 500;
  cursor: pointer; transition: all 0.2s ease; white-space: nowrap;
}
.portfolio-switch-btn:hover { color: var(--text-primary); }
.portfolio-switch-btn.active {
  background: var(--text-primary); color: var(--bg-base); font-weight: 600;
}
#portfolio-tab-services.hidden { display: none; }
#portfolio-tab-taxonomy.hidden { display: none; }

/* Entity Tree */

.entity-tree { display: flex; flex-direction: column; align-items: center; gap: 16px; }
.et-level { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.et-arrow { color: var(--text-muted); text-align: center; font-size: 22px; line-height: 1; }
.et-card {
  padding: 14px 20px; background: var(--bg-surface); border: 1px solid var(--border);
  border-radius: var(--radius-md); min-width: 180px; text-align: center; transition: var(--transition);
}
.et-card:hover { border-color: var(--accent-indigo); transform: translateY(-2px); }
.et-card .name { font-family: var(--font-heading); font-size: 14px; font-weight: 600; margin-bottom: 4px; }
.et-card .meta { font-size: 11px; color: var(--text-muted); }
.et-card .stake { font-size: 11px; color: var(--accent-indigo); font-weight: 600; margin-top: 4px; }
.et-card.holding { border-color: var(--accent-indigo); background: rgba(129,140,248,0.06); }
.et-card.equity { border-left: 3px solid var(--accent-amber); }

.et-section-label {
  font-size: 10px; font-weight: 600; letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--text-muted); margin-top: 12px;
}

/* Operating Model */

.operating-detail { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.op-ring {
  padding: 24px; background: var(--bg-surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); border-top: 3px solid;
}
.op-ring h4 { font-family: var(--font-heading); font-size: 16px; font-weight: 600; margin-bottom: 4px; }
.op-ring .op-sub { font-size: 12px; color: var(--text-muted); margin-bottom: 16px; }
.op-ring ul { list-style: none; }
.op-ring li { padding: 6px 0; font-size: 13px; color: var(--text-secondary); border-bottom: 1px solid var(--border-subtle); }
.op-ring li:last-child { border: none; }

/* Card Grid (Brands, Portfolio) */

.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.card {
  padding: 20px; background: var(--bg-surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); border-left: 3px solid; transition: var(--transition);
}
.card:hover { transform: translateY(-2px); border-color: var(--border); box-shadow: 0 8px 24px rgba(0,0,0,0.15); }
.card-header-row { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.brand-logo {
  width: 36px; height: 36px; object-fit: contain; border-radius: 8px; flex-shrink: 0;
  background: var(--bg-elevated); border: 1px solid var(--border); padding: 4px;
}
.card-header-row h4 { margin-bottom: 0; }
.card-header-row .card-sub { margin-bottom: 0; }
.card h4 { font-family: var(--font-heading); font-size: 15px; font-weight: 600; margin-bottom: 4px; }
.card .card-sub { font-size: 11px; color: var(--text-muted); margin-bottom: 12px; }
.card .card-tags { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 10px; }
.card .card-tag {
  padding: 2px 8px; border-radius: 12px; font-size: 10px; font-weight: 500;
  background: var(--bg-elevated); border: 1px solid var(--border); color: var(--text-secondary);
}
.card .card-section { margin-top: 10px; }
.card .card-section-label { font-size: 9px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; color: var(--text-muted); margin-bottom: 4px; }

/* Revenue Switch */

.rev-switch {
  display: inline-flex; gap: 2px; padding: 2px; margin: 12px 0 4px;
  background: var(--bg-surface); border: 1px solid var(--border); border-radius: 24px;
}
.rev-switch-btn {
  padding: 6px 18px; background: transparent; border: none; border-radius: 22px;
  color: var(--text-muted); font-family: var(--font-body); font-size: 12px; font-weight: 500;
  cursor: pointer; transition: var(--transition); white-space: nowrap;
}
.rev-switch-btn:hover { color: var(--text-primary); }
.rev-switch-btn.active { background: var(--accent-indigo); color: #fff; }

/* Revenue Matrix */

.rev-table { width: 100%; border-collapse: collapse; margin-top: 20px; }
.rev-table th, .rev-table td { padding: 10px 14px; text-align: left; border-bottom: 1px solid var(--border-subtle); font-size: 12px; }
.rev-table th { font-family: var(--font-heading); font-size: 10px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; color: var(--text-muted); }
.rev-table td:first-child { font-weight: 600; color: var(--text-primary); }
.rev-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; }
.rev-empty { color: var(--border); font-size: 10px; }

/* Markets */

.market-tag {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 16px; border-radius: 20px; font-size: 13px; font-weight: 500;
  background: var(--bg-surface); border: 1px solid var(--border); color: var(--text-primary);
}
.market-tag .flag { font-size: 16px; }
.market-tag .note { font-size: 11px; color: var(--text-muted); margin-left: 4px; }
.loc-type {
  display: inline-block; padding: 2px 8px; border-radius: 10px; font-size: 9px;
  font-weight: 600; letter-spacing: 0.5px; text-transform: uppercase;
}
.loc-type.hq { background: var(--accent-indigo); color: #fff; }
.loc-type.office { background: var(--bg-elevated); border: 1px solid var(--border); color: var(--text-secondary); }
.loc-type.tba { background: transparent; border: 1px dashed var(--border); color: var(--text-muted); }

/* Tech Ecosystem */

.tech-category { margin-bottom: 36px; }
.tech-category-head {
  font-family: var(--font-heading); font-size: 13px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 1.5px; color: var(--text-muted);
  margin-bottom: 16px; padding-bottom: 10px; border-bottom: 1px solid var(--border);
}
.tech-vendor-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.tech-vendor {
  display: flex; align-items: center; gap: 14px;
  padding: 18px 20px; background: var(--bg-surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); transition: var(--transition); cursor: default;
}
.tech-vendor:hover { border-color: var(--text-muted); box-shadow: 0 4px 20px rgba(0,0,0,0.15); }
.tech-vendor-logo {
  width: 40px; height: 40px; border-radius: 10px; object-fit: contain;
  background: #fff; padding: 6px; flex-shrink: 0;
}
.tech-vendor-logo.placeholder {
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; font-weight: 700; color: var(--text-muted);
  background: var(--bg-elevated); border-radius: 10px;
  width: 40px; height: 40px;
}
.tech-vendor-info { flex: 1; min-width: 0; }
.tech-vendor-name { font-family: var(--font-heading); font-size: 14px; font-weight: 600; }
.tech-vendor-level {
  display: inline-block; margin-top: 4px; padding: 1px 8px; border-radius: 10px;
  font-size: 9px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px;
  background: var(--bg-elevated); border: 1px solid var(--border); color: var(--text-muted);
}
.tech-vendor-level.premier { background: rgba(234,179,8,0.12); border-color: rgba(234,179,8,0.3); color: #eab308; }
.tech-vendor-level.in-house { background: rgba(99,102,241,0.1); border-color: rgba(99,102,241,0.25); color: #818cf8; }

/* Services & Products */

.svc-search-wrap {
  position: relative; margin-bottom: 20px;
}
.svc-search {
  width: 100%; padding: 12px 16px 12px 40px; border-radius: 12px;
  border: 1px solid var(--border); background: var(--bg-surface); color: var(--text-primary);
  font-size: 14px; font-family: 'Sora', sans-serif; outline: none; transition: var(--transition);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%23888' viewBox='0 0 24 24'%3E%3Cpath d='M15.5 14h-.79l-.28-.27A6.47 6.47 0 0016 9.5 6.5 6.5 0 109.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: 14px center; background-size: 16px;
}
.svc-search:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(66,133,244,0.12); }
.svc-search::placeholder { color: var(--text-muted); }

.svc-suggestions {
  position: absolute; top: 100%; left: 0; right: 0; z-index: 50;
  background: var(--bg-surface); border: 1px solid var(--border); border-radius: 12px;
  margin-top: 4px; max-height: 280px; overflow-y: auto;
  box-shadow: 0 8px 24px rgba(0,0,0,0.25);
}
.svc-suggestions.hidden { display: none; }
.svc-sug-item {
  padding: 10px 16px; cursor: pointer; display: flex; align-items: center; gap: 10px;
  transition: background 0.15s;
}
.svc-sug-item:first-child { border-radius: 12px 12px 0 0; }
.svc-sug-item:last-child { border-radius: 0 0 12px 12px; }
.svc-sug-item:hover, .svc-sug-item.active { background: var(--bg-card); }
.svc-sug-type {
  font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em;
  padding: 2px 7px; border-radius: 4px; white-space: nowrap;
  background: var(--border); color: var(--text-muted);
}
.svc-sug-type.service { background: rgba(40,149,110,0.15); color: #28956e; }
.svc-sug-type.group { background: rgba(123,104,168,0.15); color: #7b68a8; }
.svc-sug-type.brand { background: rgba(184,146,32,0.15); color: #b89220; }
.svc-sug-name { font-size: 13px; color: var(--text-primary); }
.svc-sug-name mark { background: transparent; color: var(--accent); font-weight: 600; }
.svc-sug-context { font-size: 11px; color: var(--text-muted); margin-left: auto; white-space: nowrap; }

.svc-filter {
  display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px;
}
.svc-filter-btn {
  padding: 5px 14px; border-radius: 16px; font-size: 12px; font-weight: 500;
  background: var(--bg-surface); border: 1px solid var(--border); color: var(--text-secondary);
  cursor: pointer; transition: var(--transition);
}
.svc-filter-btn:hover { border-color: var(--text-muted); }
.svc-filter-btn.active { background: var(--text-primary); color: var(--bg-base); border-color: var(--text-primary); }

.svc-group { margin-bottom: 32px; }
.svc-group-head {
  display: flex; align-items: center; gap: 12px;
  padding-bottom: 12px; margin-bottom: 16px; border-bottom: 1px solid var(--border);
}
.svc-group-icon {
  width: 36px; height: 36px; border-radius: 10px; display: flex; align-items: center; justify-content: center;
  font-size: 16px; flex-shrink: 0;
}
.svc-group-title { font-family: var(--font-heading); font-size: 16px; font-weight: 600; }
.svc-group-brands { display: flex; flex-wrap: wrap; gap: 4px; margin-left: auto; }
.svc-brand-tag {
  padding: 2px 8px; border-radius: 10px; font-size: 9px; font-weight: 600;
  background: var(--bg-elevated); border: 1px solid var(--border); color: var(--text-muted);
}
.svc-items { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 10px; }
.svc-item {
  padding: 14px 18px; background: var(--bg-surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); font-size: 13px; color: var(--text-secondary);
  border-left: 3px solid; transition: var(--transition);
  display: flex; flex-direction: column; gap: 8px;
}
.svc-item:hover { border-color: var(--text-muted); box-shadow: 0 2px 12px rgba(0,0,0,0.1); }
.svc-item-name { font-weight: 500; }
.svc-item-brands { display: flex; flex-wrap: wrap; gap: 4px; }
.svc-item-brand {
  font-size: 10px; font-weight: 600; padding: 2px 8px; border-radius: 8px;
  background: color-mix(in srgb, var(--bc) 12%, transparent);
  color: var(--bc); border: 1px solid color-mix(in srgb, var(--bc) 25%, transparent);
  white-space: nowrap; letter-spacing: 0.01em;
}
.svc-group.hidden { display: none; }

/* ---- PITCHDECK ---- */

.pd-overlay {
  position: fixed; inset: 0; z-index: 9999; background: #0a0a14;
  display: flex; flex-direction: column; overflow: hidden;
}
.pd-overlay.hidden { display: none; }

.pd-topbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 32px; height: 52px; min-height: 52px;
  background: rgba(10,10,20,0.95); border-bottom: 1px solid rgba(255,255,255,0.06);
}
.pd-close-btn {
  display: flex; align-items: center; gap: 8px; background: none; border: 1px solid rgba(255,255,255,0.1);
  border-radius: 6px; padding: 6px 16px; color: rgba(255,255,255,0.6);
  font-family: var(--font-body); font-size: 13px; cursor: pointer; transition: 0.2s;
}
.pd-close-btn:hover { color: #fff; border-color: rgba(255,255,255,0.3); }
.pd-counter { font-family: var(--font-heading); font-size: 13px; color: rgba(255,255,255,0.35); letter-spacing: 2px; }

.pd-slides { flex: 1; overflow: hidden; position: relative; }

.pd-slide {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none; transition: opacity 0.5s ease, transform 0.5s ease;
  transform: translateX(40px); padding: 48px 64px;
}
.pd-slide.active { opacity: 1; pointer-events: auto; transform: translateX(0); }
.pd-slide.exit-left { transform: translateX(-40px); opacity: 0; }

.pd-nav {
  display: flex; align-items: center; gap: 16px; padding: 12px 32px;
  background: rgba(10,10,20,0.95); border-top: 1px solid rgba(255,255,255,0.06);
}
.pd-nav-btn {
  width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1); color: rgba(255,255,255,0.5);
  cursor: pointer; display: flex; align-items: center; justify-content: center; transition: 0.2s;
}
.pd-nav-btn:hover { background: rgba(255,255,255,0.1); color: #fff; }
.pd-progress { flex: 1; height: 2px; background: rgba(255,255,255,0.08); border-radius: 1px; overflow: hidden; }
.pd-progress-fill { height: 100%; background: rgba(255,255,255,0.35); border-radius: 1px; transition: width 0.4s ease; }

.pd-content { width: 100%; max-width: 1100px; color: #fff; }

.pd-headline {
  font-family: var(--font-heading); font-weight: 700; line-height: 1.15; margin-bottom: 16px;
}
.pd-headline.xl { font-size: 52px; }
.pd-headline.lg { font-size: 36px; }
.pd-headline.md { font-size: 28px; }

.pd-sub { font-size: 18px; color: rgba(255,255,255,0.5); line-height: 1.6; max-width: 700px; }
.pd-label {
  font-family: var(--font-heading); font-size: 10px; font-weight: 600; letter-spacing: 2.5px;
  text-transform: uppercase; color: rgba(255,255,255,0.3); margin-bottom: 12px;
}
.pd-accent { color: #818cf8; }
.pd-divider { width: 48px; height: 2px; background: #818cf8; margin: 20px 0; border-radius: 1px; }

.pd-metrics {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-top: 40px;
}
.pd-metric {
  padding: 28px; background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.06);
  border-radius: 12px; text-align: center;
}
.pd-metric-value {
  font-family: var(--font-heading); font-size: 44px; font-weight: 700; color: #fff; line-height: 1;
}
.pd-metric-label { font-size: 12px; color: rgba(255,255,255,0.4); margin-top: 8px; font-weight: 500; }
.pd-metric-sub { font-size: 11px; color: rgba(255,255,255,0.25); margin-top: 2px; }

.pd-pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 40px; }
.pd-pillar {
  padding: 32px; background: rgba(255,255,255,0.02); border: 1px solid rgba(255,255,255,0.06);
  border-radius: 12px; border-top: 2px solid #818cf8;
}
.pd-pillar-icon { font-size: 28px; margin-bottom: 12px; opacity: 0.6; }
.pd-pillar h4 { font-family: var(--font-heading); font-size: 18px; font-weight: 600; margin-bottom: 8px; }
.pd-pillar p { font-size: 13px; color: rgba(255,255,255,0.45); line-height: 1.6; }

.pd-cols { display: grid; gap: 32px; }
.pd-cols-2 { grid-template-columns: 1fr 1fr; }
.pd-cols-3 { grid-template-columns: repeat(3, 1fr); }
.pd-cols-4 { grid-template-columns: repeat(4, 1fr); }

.pd-entity-tree { display: flex; flex-direction: column; gap: 16px; align-items: center; margin-top: 24px; }
.pd-entity-top { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; width: 100%; max-width: 500px; }
.pd-entity-arrow { color: rgba(255,255,255,0.15); font-size: 20px; }
.pd-entity-subs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; width: 100%; }
.pd-entity-stakes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; width: 100%; max-width: 600px; }
.pd-card-center { text-align: center; }
.pd-card-holding { max-width: 320px; width: 100%; }
.pd-card-sm h5 { font-size: 12px; }
.pd-card-sm p { font-size: 10px; }
.pd-card-stake { border-left: 2px solid #fbbf24; }
.pd-label-inline { margin: 0; }
.pd-metric-value-lg { font-size: 36px; }
[data-theme="light"] .pd-entity-arrow { color: var(--border); }

.pd-card {
  padding: 24px; background: rgba(255,255,255,0.02); border: 1px solid rgba(255,255,255,0.06);
  border-radius: 10px;
}
.pd-card h5 { font-family: var(--font-heading); font-size: 14px; font-weight: 600; margin-bottom: 6px; }
.pd-card p, .pd-card li { font-size: 12px; color: rgba(255,255,255,0.45); line-height: 1.6; }
.pd-card ul { list-style: none; }
.pd-card li { padding: 3px 0; }
.pd-card li::before { content: '·'; margin-right: 8px; color: #818cf8; }
.pd-card-accent { border-left: 2px solid #818cf8; }

.pd-ring-group { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 24px; }
.pd-ring-card {
  padding: 24px; background: rgba(255,255,255,0.02); border: 1px solid rgba(255,255,255,0.06);
  border-radius: 10px; border-top: 2px solid;
}
.pd-ring-card h5 { font-family: var(--font-heading); font-size: 15px; font-weight: 600; margin-bottom: 4px; }
.pd-ring-card .pd-ring-sub { font-size: 11px; color: rgba(255,255,255,0.3); margin-bottom: 12px; }
.pd-ring-card li { font-size: 12px; color: rgba(255,255,255,0.5); padding: 4px 0; }
.pd-ring-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 2px; }
.pd-ring-chip {
  padding: 3px 10px; border-radius: 12px; font-size: 11px; font-weight: 500;
  background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.6); white-space: nowrap;
}

.pd-integration-timeline { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 32px; }
.pd-step {
  padding: 24px; background: rgba(255,255,255,0.02); border: 1px solid rgba(255,255,255,0.06);
  border-radius: 10px; position: relative;
}
.pd-step::after {
  content: '→'; position: absolute; right: -14px; top: 50%; transform: translateY(-50%);
  font-size: 18px; color: rgba(255,255,255,0.15);
}
.pd-step:last-child::after { display: none; }
.pd-step-phase {
  font-family: var(--font-heading); font-size: 10px; font-weight: 600; letter-spacing: 1.5px;
  text-transform: uppercase; color: #818cf8; margin-bottom: 8px;
}
.pd-step h5 { font-family: var(--font-heading); font-size: 14px; font-weight: 600; margin-bottom: 6px; }
.pd-step p { font-size: 12px; color: rgba(255,255,255,0.4); line-height: 1.5; }

.pd-seg-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 24px; }
.pd-seg {
  padding: 16px; background: rgba(255,255,255,0.02); border: 1px solid rgba(255,255,255,0.06);
  border-radius: 8px; border-left: 3px solid;
}
.pd-seg h5 { font-family: var(--font-heading); font-size: 13px; font-weight: 600; margin-bottom: 4px; }
.pd-seg p { font-size: 10px; color: rgba(255,255,255,0.35); }

.pd-brand-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 24px; }
.pd-brand {
  display: flex; align-items: center; gap: 10px; padding: 12px 16px;
  background: rgba(255,255,255,0.02); border: 1px solid rgba(255,255,255,0.06);
  border-radius: 8px;
}
.pd-brand img { width: 28px; height: 28px; object-fit: contain; border-radius: 6px; background: rgba(255,255,255,0.05); padding: 3px; }
.pd-brand-info h5 { font-size: 13px; font-weight: 600; }
.pd-brand-info span { font-size: 10px; color: rgba(255,255,255,0.3); }

.pd-rev-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 24px; }
.pd-rev {
  padding: 20px; background: rgba(255,255,255,0.02); border: 1px solid rgba(255,255,255,0.06);
  border-radius: 8px; border-left: 3px solid;
}
.pd-rev h5 { font-family: var(--font-heading); font-size: 13px; font-weight: 600; margin-bottom: 4px; }
.pd-rev p { font-size: 11px; color: rgba(255,255,255,0.35); }
.pd-rev .pd-rev-status { font-size: 9px; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; margin-top: 6px; }

.pd-industry-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 24px; }
.pd-industry {
  padding: 24px; background: rgba(255,255,255,0.02); border: 1px solid rgba(255,255,255,0.06);
  border-radius: 10px; border-top: 3px solid;
}
.pd-industry h5 { font-family: var(--font-heading); font-size: 16px; font-weight: 600; margin-bottom: 8px; }
.pd-industry-tags { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 8px; }
.pd-industry-tag {
  padding: 2px 8px; border-radius: 10px; font-size: 10px;
  background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08); color: rgba(255,255,255,0.5);
}
.pd-industry-segs { margin-top: 10px; font-size: 11px; color: rgba(255,255,255,0.3); }

.pd-loc-stats {
  display: flex; gap: 24px; margin-bottom: 28px; margin-top: 8px;
}
.pd-loc-stat {
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  padding: 16px 28px; background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.06);
  border-radius: 10px; min-width: 80px;
}
.pd-loc-stat-val { font-family: var(--font-heading); font-size: 28px; font-weight: 700; color: #fff; }
.pd-loc-stat-lbl { font-size: 10px; color: rgba(255,255,255,0.35); font-weight: 500; text-transform: uppercase; letter-spacing: 1px; }

.pd-map-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; margin-top: 8px; }
.pd-loc-group {
  padding: 22px; background: rgba(255,255,255,0.02); border: 1px solid rgba(255,255,255,0.06);
  border-radius: 10px;
}
.pd-loc-group-head {
  display: flex; align-items: center; gap: 10px; margin-bottom: 14px;
  padding-bottom: 12px; border-bottom: 1px solid rgba(255,255,255,0.06);
}
.pd-loc-flag { font-size: 22px; line-height: 1; }
.pd-loc-group-head h5 { font-family: var(--font-heading); font-size: 16px; font-weight: 600; flex: 1; }
.pd-loc-count {
  font-family: var(--font-heading); font-size: 12px; font-weight: 600; color: rgba(255,255,255,0.3);
  background: rgba(255,255,255,0.05); padding: 2px 10px; border-radius: 10px;
}
.pd-loc-list { list-style: none; }
.pd-loc-list li {
  font-size: 13px; color: rgba(255,255,255,0.55); padding: 6px 0;
  display: flex; align-items: center; gap: 10px;
  border-bottom: 1px solid rgba(255,255,255,0.03);
}
.pd-loc-list li:last-child { border-bottom: none; }
.pd-loc-type {
  font-size: 9px; font-weight: 700; letter-spacing: 0.5px; padding: 2px 8px; border-radius: 4px; text-transform: uppercase;
  min-width: 42px; text-align: center;
}
.pd-loc-type.hq { background: #818cf8; color: #fff; }
.pd-loc-type.office { background: rgba(255,255,255,0.08); color: rgba(255,255,255,0.5); }
.pd-loc-type.tba { border: 1px dashed rgba(255,255,255,0.15); color: rgba(255,255,255,0.3); }

.pd-chart-wrap { width: 100%; max-width: 900px; margin: 32px auto 0; height: 340px; position: relative; }
.pd-chart-legend { display: flex; gap: 24px; justify-content: center; margin-top: 16px; }
.pd-legend-item { display: flex; align-items: center; gap: 6px; font-size: 12px; color: rgba(255,255,255,0.5); }
.pd-legend-dot { width: 12px; height: 12px; border-radius: 3px; }

.pd-value-chain { display: flex; align-items: center; gap: 0; margin-top: 32px; }
.pd-vc-step {
  flex: 1; padding: 20px; background: rgba(255,255,255,0.02); border: 1px solid rgba(255,255,255,0.06);
  text-align: center; position: relative;
}
.pd-vc-step:first-child { border-radius: 10px 0 0 10px; }
.pd-vc-step:last-child { border-radius: 0 10px 10px 0; }
.pd-vc-step h5 { font-size: 13px; font-weight: 600; margin-bottom: 4px; }
.pd-vc-step p { font-size: 11px; color: rgba(255,255,255,0.35); }
.pd-vc-arrow { font-size: 20px; color: #818cf8; margin: 0 -4px; z-index: 1; }

.pd-closing-target {
  font-family: var(--font-heading); font-size: 72px; font-weight: 700; text-align: center; margin: 32px 0 12px;
  background: linear-gradient(135deg, #818cf8, #a78bfa, #22d3ee); -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.pd-closing-year { text-align: center; font-size: 20px; color: rgba(255,255,255,0.4); font-weight: 500; }
.pd-closing-type { font-size: 16px; color: rgba(255,255,255,0.4); margin-top: 4px; }
.pd-closing-tagline { margin-top: 40px; font-size: 13px; color: rgba(255,255,255,0.25); }
.pd-center { text-align: center; }
.pd-divider-center { margin: 24px auto; }
.pd-sub-center { margin: 0 auto; }

.pd-market-tags { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 28px; }
.pd-market-chip {
  padding: 8px 20px; border-radius: 20px; font-size: 14px; font-weight: 500;
  background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08); color: rgba(255,255,255,0.7);
  letter-spacing: 0.3px;
}

.pd-ict-box {
  margin-top: 32px; padding: 24px; border-radius: 10px;
  background: rgba(129,140,248,0.06); border: 1px solid rgba(129,140,248,0.15);
}
.pd-ict-title { font-size: 14px; font-weight: 600; margin-bottom: 8px; color: #818cf8; }
.pd-ict-desc { font-size: 13px; color: rgba(255,255,255,0.5); line-height: 1.7; }

[data-theme="light"] .pd-closing-type { color: var(--text-secondary); }
[data-theme="light"] .pd-closing-tagline { color: var(--text-muted); }
[data-theme="light"] .pd-ict-box { background: rgba(55,65,81,0.04); border-color: rgba(55,65,81,0.12); }
[data-theme="light"] .pd-ict-title { color: var(--accent-indigo); }
[data-theme="light"] .pd-ict-desc { color: var(--text-secondary); }

/* ---- FULLSCREEN ---- */
body.fullscreen #header { display: none; }
body.fullscreen #sidebar { display: none; }

/* ---- SCROLLBAR ---- */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 2px; }

/* ---- LIGHT THEME OVERRIDES ---- */

[data-theme="light"] body { background: var(--bg-deep); color: var(--text-primary); }
[data-theme="light"] #header { background: var(--bg-base); border-bottom-color: var(--border-subtle); }
[data-theme="light"] .logo { color: var(--text-primary); }
[data-theme="light"] #sidebar { background: var(--bg-base); border-right-color: var(--border-subtle); }
[data-theme="light"] .nav-btn.active { background: rgba(55, 65, 81, 0.08); }
[data-theme="light"] .cam-btn { background: var(--bg-elevated); border-color: var(--border); color: var(--text-secondary); }
[data-theme="light"] .cam-btn:hover { color: var(--text-primary); border-color: var(--accent-indigo); }
[data-theme="light"] .cam-btn.active { background: var(--accent-indigo); color: #fff; }
[data-theme="light"] .btn-back { background: var(--bg-base); border-color: var(--border); color: var(--text-primary); }
[data-theme="light"] .toggle-bar { background: var(--bg-base); border-color: var(--border); }
[data-theme="light"] .toggle-btn { color: var(--text-secondary); }
[data-theme="light"] .toggle-btn.active { background: var(--accent-indigo); color: #fff; box-shadow: 0 2px 8px rgba(55,65,81,0.18); }
[data-theme="light"] .info-panel {
  background: var(--bg-surface);
  border-color: rgba(55, 65, 81, 0.15);
  box-shadow: 0 0 30px rgba(55, 65, 81, 0.04), 0 4px 24px rgba(0, 0, 0, 0.06), inset 0 1px 0 rgba(255,255,255,0.8);
}
[data-theme="light"] .tooltip { background: var(--bg-surface); border-color: var(--border); color: var(--text-primary); }
[data-theme="light"] .et-card { background: var(--bg-surface); border-color: var(--border); }
[data-theme="light"] .et-card:hover { border-color: var(--accent-indigo); box-shadow: 0 4px 16px rgba(0,0,0,0.06); }
[data-theme="light"] .et-card.holding { background: rgba(55,65,81,0.05); border-color: var(--accent-indigo); }
[data-theme="light"] .card { background: var(--bg-surface); border-color: var(--border); }
[data-theme="light"] .card:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.06); }
[data-theme="light"] .card .card-tag { background: var(--bg-elevated); border-color: var(--border); color: var(--text-secondary); }
[data-theme="light"] .op-ring { background: var(--bg-surface); border-color: var(--border); }
[data-theme="light"] .rev-switch { background: var(--bg-surface); border-color: var(--border); }
[data-theme="light"] .rev-switch-btn.active { background: var(--accent-indigo); color: #fff; }
[data-theme="light"] .rev-table th { color: var(--text-muted); }
[data-theme="light"] .rev-table td:first-child { color: var(--text-primary); }
[data-theme="light"] .info-tag { background: var(--bg-elevated); border-color: var(--border); color: var(--text-secondary); }
[data-theme="light"] .info-tag.vendor { background: rgba(55,65,81,0.06); border-color: rgba(55,65,81,0.15); color: var(--accent-indigo); }
[data-theme="light"] .page-back { border-color: var(--border); color: var(--text-secondary); }
[data-theme="light"] .page-back:hover { color: var(--text-primary); border-color: var(--accent-indigo); }
[data-theme="light"] ::-webkit-scrollbar-thumb { background: var(--border); }

/* Pitchdeck Light */
[data-theme="light"] .pd-overlay { background: #f0f1f5; }
[data-theme="light"] .pd-topbar { background: rgba(228,229,237,0.97); border-bottom-color: var(--border-subtle); }
[data-theme="light"] .pd-close-btn { border-color: var(--border); color: var(--text-secondary); }
[data-theme="light"] .pd-close-btn:hover { color: var(--text-primary); border-color: var(--accent-indigo); }
[data-theme="light"] .pd-counter { color: var(--text-muted); }
[data-theme="light"] .pd-nav { background: rgba(228,229,237,0.97); border-top-color: var(--border-subtle); }
[data-theme="light"] .pd-nav-btn { background: var(--bg-elevated); border-color: var(--border); color: var(--text-secondary); }
[data-theme="light"] .pd-nav-btn:hover { background: var(--bg-hover); color: var(--text-primary); }
[data-theme="light"] .pd-progress { background: var(--border-subtle); }
[data-theme="light"] .pd-progress-fill { background: var(--accent-indigo); }
[data-theme="light"] .pd-content { color: var(--text-primary); }
[data-theme="light"] .pd-headline { color: var(--text-primary); }
[data-theme="light"] .pd-sub { color: var(--text-secondary); }
[data-theme="light"] .pd-label { color: var(--text-muted); }
[data-theme="light"] .pd-accent { color: var(--accent-indigo); }
[data-theme="light"] .pd-divider { background: var(--accent-indigo); }
[data-theme="light"] .pd-metric { background: var(--bg-surface); border-color: var(--border); }
[data-theme="light"] .pd-metric-value { color: var(--text-primary); }
[data-theme="light"] .pd-metric-label { color: var(--text-secondary); }
[data-theme="light"] .pd-metric-sub { color: var(--text-muted); }
[data-theme="light"] .pd-pillar { background: var(--bg-surface); border-color: var(--border); border-top-color: var(--accent-indigo); }
[data-theme="light"] .pd-pillar h4 { color: var(--text-primary); }
[data-theme="light"] .pd-pillar p { color: var(--text-secondary); }
[data-theme="light"] .pd-pillar-icon { color: var(--text-muted); }
[data-theme="light"] .pd-card { background: var(--bg-surface); border-color: var(--border); }
[data-theme="light"] .pd-card h5 { color: var(--text-primary); }
[data-theme="light"] .pd-card p, [data-theme="light"] .pd-card li { color: var(--text-secondary); }
[data-theme="light"] .pd-card-accent { border-left-color: var(--accent-indigo); }
[data-theme="light"] .pd-ring-card { background: var(--bg-surface); border-color: var(--border); }
[data-theme="light"] .pd-ring-card li { color: var(--text-secondary); }
[data-theme="light"] .pd-ring-card .pd-ring-sub { color: var(--text-muted); }
[data-theme="light"] .pd-step { background: var(--bg-surface); border-color: var(--border); }
[data-theme="light"] .pd-step::after { color: var(--border); }
[data-theme="light"] .pd-step-phase { color: var(--accent-indigo); }
[data-theme="light"] .pd-step h5 { color: var(--text-primary); }
[data-theme="light"] .pd-step p { color: var(--text-secondary); }
[data-theme="light"] .pd-seg { background: var(--bg-surface); border-color: var(--border); }
[data-theme="light"] .pd-seg p { color: var(--text-muted); }
[data-theme="light"] .pd-brand { background: var(--bg-surface); border-color: var(--border); }
[data-theme="light"] .pd-brand-info span { color: var(--text-muted); }
[data-theme="light"] .pd-rev { background: var(--bg-surface); border-color: var(--border); }
[data-theme="light"] .pd-rev p { color: var(--text-secondary); }
[data-theme="light"] .pd-industry { background: var(--bg-surface); border-color: var(--border); }
[data-theme="light"] .pd-industry-tag { background: var(--bg-elevated); border-color: var(--border); color: var(--text-secondary); }
[data-theme="light"] .pd-industry-segs { color: var(--text-muted); }
[data-theme="light"] .pd-ring-chip { background: var(--bg-elevated); border-color: var(--border); color: var(--text-secondary); }
[data-theme="light"] .pd-loc-stats { gap: 16px; }
[data-theme="light"] .pd-loc-stat { background: var(--bg-surface); border-color: var(--border); }
[data-theme="light"] .pd-loc-stat-val { color: var(--text-primary); }
[data-theme="light"] .pd-loc-stat-lbl { color: var(--text-muted); }
[data-theme="light"] .pd-loc-group { background: var(--bg-surface); border-color: var(--border); }
[data-theme="light"] .pd-loc-group-head { border-bottom-color: var(--border-subtle); }
[data-theme="light"] .pd-loc-group-head h5 { color: var(--text-primary); }
[data-theme="light"] .pd-loc-count { color: var(--text-muted); background: var(--bg-elevated); }
[data-theme="light"] .pd-loc-list li { color: var(--text-secondary); border-bottom-color: var(--border-subtle); }
[data-theme="light"] .pd-loc-type.hq { background: var(--accent-indigo); }
[data-theme="light"] .pd-loc-type.office { background: var(--bg-elevated); color: var(--text-secondary); }
[data-theme="light"] .pd-loc-type.tba { border-color: var(--border); color: var(--text-muted); }
[data-theme="light"] .pd-market-chip { background: var(--bg-surface); border-color: var(--border); color: var(--text-primary); }
[data-theme="light"] .pd-vc-step { background: var(--bg-surface); border-color: var(--border); }
[data-theme="light"] .pd-vc-step h5 { color: var(--text-primary); }
[data-theme="light"] .pd-vc-step p { color: var(--text-secondary); }
[data-theme="light"] .pd-vc-arrow { color: var(--accent-indigo); }
[data-theme="light"] .pd-closing-target { background: linear-gradient(135deg, #374151, #4b5563, #0891b2); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
[data-theme="light"] .pd-closing-year { color: var(--text-muted); }
[data-theme="light"] .pd-legend-item { color: var(--text-secondary); }
[data-theme="light"] .pd-chart-wrap canvas { filter: none; }

/* Pitchdeck Language Switcher */
.pd-lang-switch { display: flex; gap: 2px; padding: 2px; background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08); border-radius: 20px; }
.pd-lang-btn {
  padding: 4px 12px; border: none; border-radius: 18px; background: transparent;
  color: rgba(255,255,255,0.4); font-family: var(--font-body); font-size: 11px; font-weight: 600;
  cursor: pointer; transition: 0.2s; letter-spacing: 0.5px;
}
.pd-lang-btn:hover { color: rgba(255,255,255,0.7); }
.pd-lang-btn.active { background: rgba(255,255,255,0.12); color: #fff; }
[data-theme="light"] .pd-lang-switch { background: var(--bg-elevated); border-color: var(--border); }
[data-theme="light"] .pd-lang-btn { color: var(--text-muted); }
[data-theme="light"] .pd-lang-btn:hover { color: var(--text-secondary); }
[data-theme="light"] .pd-lang-btn.active { background: var(--accent-indigo); color: #fff; }

/* ---- RESPONSIVE ---- */
@media (max-width: 768px) {
  #sidebar { width: 48px; min-width: 48px; }
  .nav-btn { width: 42px; height: 42px; }
  .nav-btn span { display: none; }
  .toggle-bar { bottom: 70px; }
  .toggle-btn { padding: 6px 12px; font-size: 11px; }
  .info-panel { width: calc(100% - 32px); right: 16px; padding: 22px; }
  .subtitle { display: none; }
  .page-wrap { padding: 24px 20px; }
  .operating-detail { grid-template-columns: 1fr; }

  /* ---- Pitchdeck Mobile ---- */
  .pd-slide { padding: 24px 20px; align-items: flex-start; overflow-y: auto; -webkit-overflow-scrolling: touch; }
  .pd-content { max-width: 100%; }
  .pd-topbar { padding: 0 14px; height: 46px; min-height: 46px; }
  .pd-nav { padding: 10px 14px; }

  /* --- Carousel helper (reusable) --- */
  .pd-carousel-m {
    display: flex !important; overflow-x: auto; -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory; gap: 12px;
    padding-bottom: 8px; margin-left: -20px; margin-right: -20px; padding-left: 20px; padding-right: 40px;
    scrollbar-width: none;
  }
  .pd-carousel-m::-webkit-scrollbar { display: none; }
  .pd-carousel-m > * { flex: 0 0 auto; scroll-snap-align: start; }

  /* --- Stack helper (full-width vertical tiles) --- */
  .pd-stack-m {
    display: flex !important; flex-direction: column; gap: 12px;
  }
  .pd-stack-m > * { width: 100%; }

  /* --- Folie 1: Title – bigger headline + text --- */
  .pd-headline.xl { font-size: 32px; }
  .pd-headline.lg { font-size: 22px; }
  .pd-sub { font-size: 16px; }

  /* --- Folie 2: Vision/Pillars – taller cards --- */
  .pd-pillars {
    display: flex !important; flex-direction: column; gap: 14px;
  }
  .pd-pillar { padding: 28px 24px; min-height: 120px; }
  .pd-pillar h4 { font-size: 17px; }
  .pd-pillar p { font-size: 13px; }

  /* --- Folie 3: KPIs – 2×2 grid, NOT carousel --- */
  .pd-metrics {
    display: grid !important; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 24px;
    overflow: visible; margin-left: 0; margin-right: 0; padding-left: 0; padding-right: 0;
  }
  .pd-metric { padding: 18px 14px; min-width: 0; }
  .pd-metric-value { font-size: 28px; }
  .pd-metric-value-lg { font-size: 24px; }
  .pd-metric-label { font-size: 11px; }

  /* --- Folie 4: Entity tree --- */
  .pd-entity-top { display: flex; gap: 10px; }
  .pd-entity-top > * { flex: 1; min-width: 140px; }
  .pd-entity-subs, .pd-entity-stakes {
    display: grid !important; grid-template-columns: 1fr 1fr; gap: 8px;
    overflow: visible; margin-left: 0; margin-right: 0; padding-left: 0; padding-right: 0;
  }
  .pd-entity-subs > *, .pd-entity-stakes > * { min-width: 0; }

  /* --- Folie 5: Operating Model – taller ring cards --- */
  .pd-ring-group {
    display: flex !important; flex-direction: column; gap: 14px;
  }
  .pd-ring-card { padding: 20px; min-height: 0; }
  .pd-ring-card h5 { font-size: 15px; }
  .pd-ring-card li { font-size: 12px; }
  .pd-ring-chips { gap: 5px; }
  .pd-ring-chip { font-size: 10px; padding: 2px 8px; }

  /* --- Folie 6: Integration Timeline – grid tiles --- */
  .pd-integration-timeline {
    display: grid !important; grid-template-columns: 1fr 1fr; gap: 12px;
    overflow: visible; margin-top: 20px;
    margin-left: 0; margin-right: 0; padding-left: 0; padding-right: 0;
  }
  .pd-step { min-width: 0; padding: 18px 16px; }
  .pd-step::after { display: none; }
  .pd-step-phase { font-size: 9px; letter-spacing: 1.5px; margin-bottom: 8px; }
  .pd-step h5 { font-size: 13px; margin-bottom: 6px; }
  .pd-step p { font-size: 11px; line-height: 1.55; word-break: break-word; hyphens: auto; }

  /* --- Folie 7: Portfolio Segments – grid tiles --- */
  .pd-seg-grid {
    display: grid !important; grid-template-columns: 1fr 1fr; gap: 12px;
    overflow: visible; margin-top: 16px;
    margin-left: 0; margin-right: 0; padding-left: 0; padding-right: 0;
  }
  .pd-seg { min-width: 0; padding: 18px 16px; border-left-width: 3px; }
  .pd-seg h5 { font-size: 13px; margin-bottom: 5px; }
  .pd-seg p { font-size: 11px; line-height: 1.45; color: rgba(255,255,255,0.45); }

  /* --- Folie 8: Brands – full-width stacked tiles --- */
  .pd-brand-grid {
    display: flex !important; flex-direction: column; gap: 10px;
    overflow: visible; margin-left: 0; margin-right: 0; padding-left: 0; padding-right: 0;
  }
  .pd-brand { width: 100%; min-width: 0; padding: 14px 16px; }
  .pd-brand img { width: 32px; height: 32px; }
  .pd-brand-info h5 { font-size: 14px; }
  .pd-brand-info span { font-size: 11px; }

  /* --- Folie 9: Revenue Models – grid tiles --- */
  .pd-rev-grid {
    display: grid !important; grid-template-columns: 1fr 1fr; gap: 12px;
    overflow: visible; margin-top: 16px;
    margin-left: 0; margin-right: 0; padding-left: 0; padding-right: 0;
  }
  .pd-rev { min-width: 0; padding: 18px 16px; border-left-width: 3px; }
  .pd-rev h5 { font-size: 13px; margin-bottom: 5px; }
  .pd-rev p { font-size: 11px; line-height: 1.45; color: rgba(255,255,255,0.45); }
  .pd-rev .pd-rev-status { font-size: 9px; margin-top: 8px; }

  /* --- Folie 10: Industries – full-width stacked tiles --- */
  .pd-industry-row {
    display: flex !important; flex-direction: column; gap: 14px;
    overflow: visible; margin-left: 0; margin-right: 0; padding-left: 0; padding-right: 0;
  }
  .pd-industry { width: 100%; min-width: 0; padding: 22px; }
  .pd-industry h5 { font-size: 16px; }

  /* --- Folie 11: Markets – 2x2 grid stats + stacked location groups --- */
  .pd-loc-stats {
    display: grid !important; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 20px;
  }
  .pd-loc-stat { padding: 12px 10px; min-width: 0; }
  .pd-loc-stat-val { font-size: 22px; }
  .pd-loc-stat-lbl { font-size: 8px; letter-spacing: 0.8px; }
  .pd-market-tags { flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
  .pd-market-chip { font-size: 12px; padding: 6px 14px; }
  .pd-map-row {
    display: grid !important; grid-template-columns: 1fr 1fr; gap: 10px;
    overflow: visible; margin-left: 0; margin-right: 0; padding-left: 0; padding-right: 0;
  }
  .pd-loc-group { width: 100%; min-width: 0; padding: 16px; }
  .pd-loc-group-head { margin-bottom: 10px; padding-bottom: 8px; gap: 6px; }
  .pd-loc-flag { font-size: 16px; }
  .pd-loc-group-head h5 { font-size: 13px; }
  .pd-loc-count { font-size: 10px; padding: 1px 7px; }
  .pd-loc-list li { font-size: 11px; padding: 4px 0; gap: 6px; }
  .pd-loc-type { font-size: 7px; padding: 1px 5px; min-width: 32px; }

  /* --- Folie 12: Chart --- */
  .pd-chart-wrap { height: 240px; }

  /* --- Folie 13: Value chain vertical --- */
  .pd-value-chain { flex-direction: column; }
  .pd-vc-step:first-child { border-radius: 10px 10px 0 0; }
  .pd-vc-step:last-child { border-radius: 0 0 10px 10px; }
  .pd-vc-arrow { transform: rotate(90deg); margin: -4px 0; }

  /* --- Folie 14: Closing --- */
  .pd-closing-target { font-size: 48px; }
}
