:root {
  --bg-black: #000000;
  --bg-obsidian: #09090A;
  --bg-card: #000000;
  --border-glass: rgba(255, 255, 255, 0.08);
  --text-white: #ffffff;
  --text-gray: #86868B;
  --text-dim: #636366;
  --accent: #0052FF;
  --accent-rgb: 0, 82, 255;
  --accent-secondary: #0052FF;
  --accent-secondary-rgb: 0, 82, 255;
  --accent-gold: #D4AF37;
  --accent-gold-rgb: 212, 175, 55;
  --success: #34C759;
}

:root[data-theme="light"] {
  --bg-black: #ffffff;
  --bg-obsidian: #f5f5f7;
  --bg-card: #ffffff;
  --border-glass: rgba(0, 0, 0, 0.08);
  --text-white: #000000;
  --text-gray: #515154;
  --text-dim: #86868B;
  --accent: #0052FF;
  --accent-rgb: 0, 82, 255;
  --accent-secondary: #0052FF;
  --accent-secondary-rgb: 0, 82, 255;
  --accent-gold: #D4AF37;
  --accent-gold-rgb: 212, 175, 55;
  --success: #34C759;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: var(--bg-black);
  color: var(--text-white);
  font-family: 'Inter', sans-serif;
  min-height: 100vh;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
}

#app {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  width: 100%;
}

/* Layout containers */
.view-fade {
  animation: slide-fade 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes slide-fade {
  from {
    opacity: 0;
    transform: translateY(12px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Login Security Gateway Styles */
.login-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
  padding: 1.5rem;
}

.login-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: 12px;
  padding: 2.5rem;
  width: 100%;
  max-width: 440px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.8), 0 0 20px rgba(0, 82, 255, 0.05);
  text-align: center;
}

.login-logo {
  height: 120px;
  margin-bottom: 1.5rem;
  object-fit: contain;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.login-insignia {
  font-size: 0.75rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--text-gray);
  margin-bottom: 0.5rem;
  display: block;
}

.login-title {
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  margin-bottom: 2rem;
  text-transform: uppercase;
}

.input-group {
  margin-bottom: 1.5rem;
  text-align: left;
}

.input-label {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-gray);
  margin-bottom: 0.5rem;
  display: block;
}

.security-input {
  background: var(--bg-black);
  border: 1px solid var(--border-glass);
  border-radius: 6px;
  padding: 0.85rem 1rem;
  width: 100%;
  color: var(--text-white);
  font-family: inherit;
  font-size: 0.9rem;
  text-align: center;
  letter-spacing: 0.05em;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.security-input:focus {
  outline: none;
  border-color: rgba(var(--accent-rgb), 0.4);
  box-shadow: 0 0 10px rgba(var(--accent-rgb), 0.15);
}

.security-input.error {
  border-color: rgba(255, 59, 48, 0.4);
  box-shadow: 0 0 10px rgba(255, 59, 48, 0.15);
}

.login-btn {
  background: var(--accent);
  color: white;
  border: none;
  border-radius: 6px;
  padding: 0.85rem;
  width: 100%;
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color 0.25s ease, box-shadow 0.25s ease;
  min-height: 48px;
}

.login-btn:hover {
  background-color: #0047DD;
  box-shadow: 0 0 15px rgba(var(--accent-rgb), 0.3);
}

.error-ticker {
  color: #FF3B30;
  font-size: 0.75rem;
  margin-top: 1rem;
  min-height: 18px;
}

/* Dashboard view styles */
.dashboard-header {
  background: var(--bg-card);
  border-bottom: 1px solid var(--border-glass);
  padding: 1.25rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.header-logo {
  height: 40px;
  object-fit: contain;
  display: block;
}

.logo-block {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo-insignia {
  color: var(--accent);
  font-weight: 800;
  letter-spacing: 0.05em;
  font-size: 1.1rem;
}

.logo-vertical-bar {
  width: 1px;
  height: 16px;
  background: var(--border-glass);
}

.logo-dashboard-title {
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  color: var(--text-gray);
  text-transform: uppercase;
}

.client-title-block {
  text-align: left;
}

.client-title {
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.client-sub {
  font-size: 0.75rem;
  color: var(--text-gray);
  margin-top: 0.15rem;
}

.dashboard-main {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  padding: 2rem;
  flex: 1;
  max-width: 1600px;
  margin: 0 auto;
  width: 100%;
}

.dashboard-bottom-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2rem;
  width: 100%;
}

.dashboard-col {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

@media (max-width: 1024px) {
  .dashboard-bottom-grid {
    grid-template-columns: 1fr;
  }

  .dashboard-col {
    display: contents;
  }

  .asset-uploader-panel {
    order: 1;
  }

  .timeline-panel {
    order: 2;
  }

  .dashboard-subgrid {
    order: 3;
  }

  .ticker-panel {
    order: 4;
  }
}

.panel {
  background: var(--bg-obsidian);
  border: 1px solid var(--border-glass);
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
}

.panel-title {
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-gray);
  margin-bottom: 1.5rem;
  font-weight: 700;
}

/* Live Action Engine styling */
.demo-frame-wrapper {
  background: var(--bg-black);
  border: 1px solid var(--border-glass);
  border-radius: 12px;
  height: 640px; /* Large layout for full desktop view */
  position: relative;
  overflow: hidden;
  margin-bottom: 1.5rem;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.demo-iframe {
  width: 100%;
  height: 100%;
  border: none;
  background: #000;
  transition: width 0.4s cubic-bezier(0.16, 1, 0.3, 1), height 0.4s cubic-bezier(0.16, 1, 0.3, 1), border-radius 0.4s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Mobile View Mode Frame overrides */
.demo-frame-wrapper.mobile-view .demo-iframe {
  width: 375px;
  height: calc(100% - 40px);
  border: 8px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.8);
}

/* Viewport Toggle Button Styles */
.viewport-toggle-btn {
  color: var(--text-gray) !important;
}

.viewport-toggle-btn.active {
  background: var(--accent) !important;
  color: #ffffff !important;
}

.viewport-toggle-btn:not(.active):hover {
  color: #ffffff !important;
  background: rgba(255, 255, 255, 0.04);
}


.demo-fallback {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--bg-obsidian);
  color: var(--text-white);
  padding: 2rem;
  text-align: center;
  z-index: 10;
}

.action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  padding: 0.85rem 1.5rem;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: background-color 0.25s, box-shadow 0.25s, transform 0.25s;
  margin-top: 1rem;
  min-height: 48px;
}

.action-btn:hover {
  box-shadow: 0 0 15px rgba(var(--accent-rgb), 0.3);
  transform: translateY(-1px);
}

/* Dropper Intake Widget */
.dropzone-container {
  border: 1px dashed var(--border-glass);
  background: rgba(255, 255, 255, 0.01);
  border-radius: 8px;
  padding: 2rem;
  text-align: center;
  transition: background-color 0.25s, border-color 0.25s;
  cursor: pointer;
  position: relative;
}

.dropzone-container.dragover {
  background: rgba(var(--accent-secondary-rgb), 0.04);
  border-color: var(--accent-secondary);
}

.dropzone-icon {
  font-size: 1.5rem;
  color: var(--accent-secondary);
  margin-bottom: 0.75rem;
}

.dropzone-text {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-white);
}

.dropzone-sub {
  font-size: 0.75rem;
  color: var(--text-gray);
  margin-top: 0.25rem;
}

.file-input {
  display: none;
}

/* File list & Progress Tracker */
.file-list {
  margin-top: 1rem;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.file-item {
  background: var(--bg-black);
  border: 1px solid var(--border-glass);
  border-radius: 6px;
  padding: 0.75rem 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.75rem;
}

.file-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 250px;
}

.file-status {
  font-weight: 600;
  font-size: 0.7rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.upload-progress-bar {
  width: 100%;
  height: 3px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 2px;
  margin-top: 0.5rem;
  overflow: hidden;
}

.upload-progress-fill {
  height: 100%;
  background: var(--accent-secondary);
  width: 0%;
  transition: width 1.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Timeline & Progress Indicator */
.timeline-gauge {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
}

.gauge-wrapper {
  flex: 1;
  height: 6px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 3px;
  overflow: hidden;
}

.gauge-fill {
  height: 100%;
  background: var(--accent-secondary);
  border-radius: 3px;
  transition: width 0.5s ease;
}

.gauge-label {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-white);
}

.timeline-track {
  position: relative;
  padding-left: 2rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.timeline-track::before {
  content: '';
  position: absolute;
  left: 7px;
  top: 10px;
  bottom: 10px;
  width: 2px;
  background: var(--border-glass);
  z-index: 1;
}

.timeline-step {
  position: relative;
  z-index: 2;
}

.timeline-node {
  position: absolute;
  left: -2rem;
  top: 2px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--bg-obsidian);
  border: 2px solid var(--text-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.timeline-step.completed .timeline-node {
  background: var(--success);
  border-color: var(--success);
}

.timeline-step.active .timeline-node {
  background: var(--bg-obsidian);
  border-color: var(--accent-secondary);
  box-shadow: 0 0 10px rgba(var(--accent-secondary-rgb), 0.5);
  animation: node-pulse 2s infinite ease-in-out;
}

@keyframes node-pulse {
  0% {
    box-shadow: 0 0 0 0px rgba(var(--accent-secondary-rgb), 0.5);
  }

  70% {
    box-shadow: 0 0 0 8px rgba(var(--accent-secondary-rgb), 0);
  }

  100% {
    box-shadow: 0 0 0 0px rgba(var(--accent-secondary-rgb), 0);
  }
}

.timeline-step-content h4 {
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.timeline-step.completed .timeline-step-content h4 {
  color: var(--text-gray);
}

.timeline-step.active .timeline-step-content h4 {
  color: var(--text-white);
}

.timeline-step.pending .timeline-step-content h4 {
  color: var(--text-dim);
}

.timeline-badge {
  display: inline-block;
  font-size: 0.6rem;
  font-weight: 700;
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
  margin-bottom: 0.35rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.timeline-step.completed .timeline-badge {
  background: rgba(52, 199, 89, 0.1);
  color: var(--success);
}

.timeline-step.active .timeline-badge {
  background: rgba(var(--accent-secondary-rgb), 0.1);
  color: var(--accent-secondary);
}

.timeline-step.pending .timeline-badge {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-dim);
}

/* Transparency ticker status styling */
.ticker-content {
  background: var(--bg-black);
  border: 1px solid var(--border-glass);
  padding: 1.25rem;
  border-radius: 8px;
  font-size: 0.8rem;
  line-height: 1.5;
  color: var(--text-gray);
  border-left: 3px solid var(--accent);
}

/* Tiers Download Button Styles */
.tiers-download-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-obsidian);
  border: 1px solid var(--border-glass);
  color: var(--text-white);
  text-decoration: none;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0 1.25rem;
  height: 48px;
  border-radius: 24px;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  cursor: pointer;
}

.tiers-download-btn:hover {
  background: var(--bg-card);
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(var(--accent-rgb), 0.15);
  border-color: var(--accent);
}

.tiers-download-btn:active {
  transform: scale(0.98);
}

/* Theme Toggle Button Styles */
.theme-toggle-container {
  position: fixed;
  top: 1.5rem;
  right: 1.5rem;
  z-index: 1000;
}

.theme-toggle-btn {
  background: var(--bg-obsidian);
  border: 1px solid var(--border-glass);
  color: var(--text-white);
  border-radius: 50%;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.theme-toggle-btn:hover {
  background: var(--bg-card);
  transform: scale(1.05);
  box-shadow: 0 4px 20px rgba(var(--accent-rgb), 0.15);
}

.theme-toggle-btn:active {
  transform: scale(0.95);
}

.theme-icon {
  font-size: 1.25rem;
  line-height: 1;
}

/* Password Visibility Toggle Styles */
.password-container {
  position: relative;
  width: 100%;
}

.password-toggle-btn {
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--text-gray);
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  transition: color 0.25s ease;
  min-height: 48px;
  width: 48px;
}

.password-toggle-btn:hover {
  color: var(--text-white);
}

.security-input {
  padding-right: 3.25rem;
}

/* Mobile responsive enhancements */
@media (max-width: 768px) {
  .dashboard-header {
    padding: 1rem 1.25rem;
    flex-direction: column;
    align-items: flex-start;
    gap: 1.25rem;
  }
  
  .dashboard-main {
    padding: 1.25rem 1rem;
    gap: 1.5rem;
  }
  
  .panel {
    padding: 1.25rem;
  }

  .login-card {
    padding: 1.75rem 1.25rem;
  }
  
  .logo-block {
    width: 100%;
    justify-content: space-between;
  }

  /* Force Mobile layout & Device Frame for Live Action Engine on Mobile screens */
  .viewport-toggle-container {
    display: none !important;
  }

  .demo-frame-wrapper {
    height: 540px !important;
  }

  .demo-frame-wrapper .demo-iframe {
    width: 100% !important;
    max-width: 375px !important;
    height: calc(100% - 24px) !important;
    border: 6px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 16px !important;
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.8) !important;
  }
}

/* Asset Status Manifest Card & Badges */
.asset-manifest-panel {
  background: rgba(255, 255, 255, 0.02) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: 12px;
  padding: 24px !important;
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.manifest-header {
  margin-bottom: 1.5rem;
}

.manifest-title {
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #ffffff;
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.manifest-desc {
  color: var(--text-gray);
  font-size: 0.75rem;
  line-height: 1.4;
}

.manifest-rows {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.manifest-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.25rem;
  background: rgba(255, 255, 255, 0.01);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 8px;
  gap: 1rem;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.manifest-row:hover {
  background: rgba(255, 255, 255, 0.02);
  border-color: rgba(255, 255, 255, 0.08);
}

.manifest-info {
  flex: 1;
  min-width: 200px;
}

.manifest-asset-name {
  font-weight: 700;
  color: var(--text-white);
  font-size: 0.85rem;
  margin-bottom: 0.25rem;
}

.manifest-context {
  color: var(--text-gray);
  font-size: 0.75rem;
  line-height: 1.3;
}

/* Status Badge Pills */
.badge-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.35rem 0.75rem;
  border-radius: 4px; /* Micro-radius */
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  white-space: nowrap;
  min-height: 24px;
}

.badge-pill.completed {
  background: rgba(0, 82, 255, 0.05);
  border: 1px solid #0052FF;
  color: #3b82f6;
}

.badge-pill.action-required {
  background: rgba(255, 69, 58, 0.1);
  border: 1px solid rgba(255, 69, 58, 0.4);
  color: #ff453a;
  animation: badge-pulse 2s infinite ease-in-out;
}

.badge-pill.in-review {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-gray);
  font-style: italic;
  text-transform: uppercase;
}

@keyframes badge-pulse {
  0% {
    box-shadow: 0 0 0 0px rgba(255, 69, 58, 0.4);
  }
  70% {
    box-shadow: 0 0 0 6px rgba(255, 69, 58, 0);
  }
  100% {
    box-shadow: 0 0 0 0px rgba(255, 69, 58, 0);
  }
}

@media (max-width: 580px) {
  .manifest-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }
  .badge-pill {
    align-self: flex-start;
  }
}

/* Project Scope Matrix Cards & List Items */
.scope-matrix-panel {
  background: rgba(255, 255, 255, 0.02) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: 12px;
  padding: 24px !important;
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.scope-header {
  margin-bottom: 1.5rem;
}

.scope-title {
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #ffffff;
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.scope-desc {
  color: var(--text-gray);
  font-size: 0.75rem;
  line-height: 1.4;
}

.scope-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.scope-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem 1.25rem;
  background: rgba(255, 255, 255, 0.01);
  border: 1px solid rgba(255, 255, 255, 0.03);
  border-radius: 8px;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.scope-item:hover {
  background: rgba(255, 255, 255, 0.02);
  border-color: rgba(255, 255, 255, 0.08);
}

.scope-marker {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(var(--accent-rgb), 0.1);
  border: 1px solid var(--accent);
  color: var(--accent);
  font-size: 0.65rem;
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 1px;
}

.scope-content {
  flex: 1;
}

.scope-item-title {
  font-weight: 700;
  color: var(--text-white);
  font-size: 0.85rem;
  margin-bottom: 0.25rem;
}

.scope-item-detail {
  color: var(--text-gray);
  font-size: 0.75rem;
  line-height: 1.35;
}

/* Dashboard Layout Subgrid for Asset Manifest & Scope Matrix */
.dashboard-subgrid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: start;
}

@media (max-width: 1200px) {
  .dashboard-subgrid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}
/* Logo visibility toggling based on active theme */
[data-theme="dark"] .logo-light {
  display: none !important;
}
[data-theme="dark"] .logo-dark {
  display: block !important;
}
[data-theme="light"] .logo-light {
  display: block !important;
}
[data-theme="light"] .logo-dark {
  display: none !important;
}

/* Configurator Panel Layout */
.configurator-panel {
  background: var(--bg-obsidian);
  border: 1px solid var(--border-glass);
  border-radius: 12px;
  padding: 2.5rem !important;
  margin-top: 2rem;
}

.config-grid {
  display: grid;
  grid-template-columns: 1.1fr 1.1fr 0.8fr;
  gap: 2rem;
  margin-top: 1.5rem;
}

.config-col {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.config-sub-title {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-gray);
  letter-spacing: 0.1em;
  border-bottom: 1px solid var(--border-glass);
  padding-bottom: 0.5rem;
  margin-bottom: 0.5rem;
}

/* Toggle buttons as tiles */
.tile-group {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.tile-option {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-glass);
  padding: 1rem;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  min-height: 48px;
}

.tile-option:hover {
  border-color: rgba(var(--accent-rgb), 0.3);
  background: rgba(var(--accent-rgb), 0.02);
}

.tile-option.active {
  border-color: var(--accent);
  background: rgba(var(--accent-rgb), 0.05);
}

.tile-option.recommended-gold {
  border-color: rgba(var(--accent-gold-rgb), 0.3);
}

.tile-option.recommended-gold.active {
  border-color: var(--accent-gold);
  background: rgba(var(--accent-gold-rgb), 0.05);
}

.tile-option input[type="radio"], 
.tile-option input[type="checkbox"] {
  margin-top: 0.2rem;
  accent-color: var(--accent);
  min-width: 18px;
  min-height: 18px;
  cursor: pointer;
}

.tile-option.recommended-gold input[type="radio"] {
  accent-color: var(--accent-gold);
}

.tile-label-wrapper {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  text-align: left;
}

.tile-title {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-white);
}

.tile-desc {
  font-size: 0.7rem;
  color: var(--text-gray);
  line-height: 1.3;
}

.tile-badge-gold {
  align-self: flex-start;
  background: rgba(212, 175, 55, 0.1);
  color: var(--accent-gold);
  font-size: 0.55rem;
  font-weight: 700;
  padding: 0.1rem 0.3rem;
  border-radius: 4px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 0.15rem;
}

/* Dynamic Feature Inclusion Panel */
.feature-inclusion-box {
  background: rgba(255, 255, 255, 0.01);
  border: 1px dashed var(--border-glass);
  border-radius: 8px;
  padding: 1rem;
  font-size: 0.75rem;
  text-align: left;
}

.feature-inclusion-title {
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.feature-inclusion-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.feature-inclusion-list li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-gray);
}

.feature-inclusion-list li::before {
  content: "✓";
  color: var(--success);
  font-weight: bold;
}

/* Dynamic Summary Panel */
.summary-sidebar {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-glass);
  border-radius: 8px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.summary-stat-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.summary-stat-label {
  font-size: 0.7rem;
  color: var(--text-gray);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.summary-stat-val {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-white);
}

.summary-grand-totals {
  margin-top: 1.5rem;
  border-top: 1px solid var(--border-glass);
  padding-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.grand-total-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.grand-total-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.grand-total-val {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--accent);
}

.grand-total-val.gold {
  color: var(--accent-gold);
}

/* Locked States & Warning */
.tile-option.disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.tile-option.disabled:hover {
  border-color: var(--border-glass);
  background: rgba(255, 255, 255, 0.02);
}

.warning-lockbox {
  background: rgba(255, 59, 48, 0.05);
  border: 1px solid rgba(255, 59, 48, 0.15);
  border-radius: 6px;
  padding: 0.75rem;
  font-size: 0.7rem;
  color: #FF3B30;
  line-height: 1.4;
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  margin-top: 0.5rem;
  text-align: left;
}

.warning-lockbox svg {
  margin-top: 0.1rem;
  flex-shrink: 0;
}

/* Modal Handover Authorization Layout */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-card {
  background: var(--bg-obsidian);
  border: 1px solid var(--border-glass);
  border-radius: 12px;
  padding: 2.5rem;
  width: 90%;
  max-width: 550px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.8);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  transform: translateY(20px);
  transition: transform 0.3s ease;
}

.modal-overlay.active .modal-card {
  transform: translateY(0);
}

.modal-title {
  font-size: 1.1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-white);
  border-bottom: 1px solid var(--border-glass);
  padding-bottom: 0.75rem;
  text-align: left;
}

.modal-body {
  font-size: 0.8rem;
  line-height: 1.5;
  color: var(--text-gray);
  text-align: left;
}

.modal-body strong {
  color: var(--text-white);
}

.modal-actions {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.modal-btn {
  flex: 1;
  min-height: 48px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s;
  font-size: 0.8rem;
}

.modal-btn.primary {
  background: var(--accent);
  color: #fff;
  border: none;
}

.modal-btn.primary:hover {
  box-shadow: 0 0 15px rgba(var(--accent-rgb), 0.3);
}

.modal-btn.secondary {
  background: transparent;
  color: var(--text-gray);
  border: 1px solid var(--border-glass);
}

.modal-btn.secondary:hover {
  border-color: var(--text-white);
  color: var(--text-white);
}

/* Responsive styling for dashboard config */
@media (max-width: 1024px) {
  .config-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

/* Mobile-First and Touch Profile Compliance overrides */
@media (max-width: 768px) {
  .configurator-panel {
    padding: 1.25rem !important;
  }
  
  .tile-option {
    padding: 0.85rem;
  }
}

@media (max-width: 500px) {
  .modal-card {
    padding: 1.5rem;
    width: 95%;
  }

  .modal-actions {
    flex-direction: column;
    gap: 0.75rem;
  }

  .modal-btn {
    width: 100%;
  }
}
