/* Metrics Strip */
.metric-item {
  display: flex;
  flex-direction: column;
}

.metric-item h3 {
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 2.2vw, 1.85rem);
  font-weight: 800;
  line-height: 1.15;
  white-space: nowrap;
}

.metric-item p {
  font-size: 0.84rem;
  color: var(--text-secondary);
  margin-top: 0.35rem;
}

/* Visitor Analytics KPI Grid */
.analytics-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  margin-bottom: 2.25rem;
}

.analytics-kpi-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  box-shadow: var(--shadow-card);
}

.analytics-kpi-card h2 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 2.8vw, 2.35rem);
  font-weight: 800;
  line-height: 1.15;
  margin: 0.25rem 0;
}

.analytics-kpi-card p {
  font-size: 0.82rem;
  color: var(--text-secondary);
}

@media (max-width: 64rem) {
  .analytics-kpi-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 34rem) {
  .analytics-kpi-grid {
    grid-template-columns: 1fr;
  }
}

/* Filter Bar */
.filter-bar {
  display: flex;
  gap: 0.55rem;
  flex-wrap: wrap;
}

.filter-pill {
  min-height: 42px;
  padding: 0.45rem 1.15rem;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  border-radius: 50px;
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}

.filter-pill:hover,
.filter-pill.active {
  background: var(--accent-primary);
  color: #fff;
  border-color: var(--accent-primary);
}

/* Studio Header Bar */
.studio-header-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.studio-compact-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.compact-pill-btn {
  min-height: 36px !important;
  padding: 0.38rem 0.9rem !important;
  font-size: 0.78rem !important;
  gap: 0.4rem !important;
}

/* Upload Card Header */
.upload-card-top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  padding-bottom: 1.25rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-subtle);
}

/* Compact Pill Tab Switcher (For Vault Items Header) */
.studio-compact-switch {
  display: inline-flex;
  align-items: center;
  padding: 3px;
  border-radius: 999px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  gap: 2px;
}

.studio-compact-tab {
  padding: 0.32rem 0.85rem;
  border-radius: 999px;
  border: none;
  background: transparent;
  color: var(--text-secondary);
  font-family: var(--font-body);
  font-size: 0.76rem;
  font-weight: 400;
  line-height: 1.3;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}

.studio-compact-tab:hover {
  color: var(--text-primary);
}

.studio-compact-tab.active {
  background: var(--accent-primary);
  color: #ffffff;
  font-weight: 400;
}

/* Discreet Muted Reset Link */
.subtle-reset-link {
  background: none;
  border: none;
  color: var(--text-muted);
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 400;
  cursor: pointer;
  padding: 0.25rem 0.4rem;
  transition: color 0.2s ease;
}

.subtle-reset-link:hover {
  color: var(--text-secondary);
  text-decoration: underline;
}

/* Distinct Container for Figma Previews Below Selected Works */
.figma-showcase-banner {
  background: var(--contact-gradient);
  border: 1px solid rgba(56, 189, 248, 0.25);
  border-radius: var(--radius-lg);
  padding: 2.75rem;
  box-shadow: var(--shadow-card);
}

/* Project & Figma Tiles */
.project-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: var(--transition);
  box-shadow: var(--shadow-card);
}

.project-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-hover);
}

.project-thumb {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--bg-secondary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.project-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.project-card:hover .project-thumb img {
  transform: scale(1.05);
}

.project-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  padding: 0.3rem 0.75rem;
  background: rgba(7, 8, 10, 0.82);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50px;
  font-size: 0.72rem;
  font-weight: 600;
  color: #f8fafc;
}

.figma-live-pill {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0.28rem 0.72rem;
  background: rgba(6, 28, 20, 0.88);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(16, 185, 129, 0.45);
  border-radius: 50px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  color: #10b981;
  letter-spacing: 0.03em;
}

.figma-live-pill .live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 8px #10b981;
}

.project-metric-pill {
  position: absolute;
  bottom: 12px;
  right: 12px;
  z-index: 2;
  padding: 0.25rem 0.68rem;
  background: var(--accent-primary);
  color: #fff;
  border-radius: 6px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 500;
}

.project-body {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.project-role-line {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--accent-secondary);
  margin-bottom: 0.45rem;
}

.project-title {
  font-family: var(--font-display);
  font-size: 1.28rem;
  font-weight: 700;
  margin-bottom: 0.55rem;
}

.project-desc {
  color: var(--text-secondary);
  font-size: 0.91rem;
  margin-bottom: 1.15rem;
  flex: 1;
}

.project-deliverables-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 1.35rem;
}

.deliverable-chip {
  font-size: 0.72rem;
  padding: 0.24rem 0.6rem;
  border-radius: 6px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
}

.project-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-subtle);
}

.project-tags {
  font-size: 0.76rem;
  color: var(--text-muted);
  font-weight: 500;
}

.project-link {
  min-height: 40px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent-primary);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  background: none;
  border: none;
  white-space: nowrap;
}

.project-link:hover {
  text-decoration: underline;
}

/* Live Figma Modal */
.figma-modal-panel {
  max-width: min(94vw, 86rem);
}

.figma-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  padding: 1.25rem 4.25rem 1.25rem 1.75rem;
  border-bottom: 1px solid var(--border-subtle);
  background: var(--bg-secondary);
}

.figma-modal-controls {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-left: auto;
}

.figma-mode-switch {
  display: inline-flex;
  padding: 3px;
  border-radius: 50px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
}

.figma-mode-btn {
  padding: 0.34rem 0.88rem;
  border-radius: 50px;
  border: none;
  background: transparent;
  color: var(--text-secondary);
  font-size: 0.78rem;
  font-weight: 400;
  cursor: pointer;
  transition: var(--transition);
}

.figma-mode-btn.active {
  background: var(--accent-primary);
  color: #ffffff;
}

.figma-modal-iframe-wrap {
  position: relative;
  width: 100%;
  height: clamp(480px, 72vh, 860px);
  border-bottom: 1px solid var(--border-subtle);
  background: var(--bg-primary);
  overflow: hidden;
}

.figma-embed-iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

.figma-empty-box {
  background: var(--bg-card);
  border: 1px dashed rgba(99, 102, 241, 0.45);
  border-radius: var(--radius-lg);
  padding: 3rem 2rem;
  text-align: center;
}

/* Encrypted Project Vault Admin UI */
.vault-auth-card {
  max-width: 36rem;
  margin: 1rem auto;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-card);
}

.vault-title {
  font-family: var(--font-display);
  font-size: 1.85rem;
  font-weight: 800;
  margin-bottom: 0.6rem;
}

.vault-sub {
  color: var(--text-secondary);
  font-size: 0.92rem;
  margin-bottom: 1.65rem;
}

.totp-setup-box {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 1.15rem;
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  margin-bottom: 1.5rem;
}

.totp-qr-wrap {
  width: 164px;
  height: 164px;
  flex-shrink: 0;
  background: #ffffff;
  padding: 12px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.totp-qr-wrap svg,
.totp-qr-wrap img {
  width: 100%;
  height: 100%;
  display: block;
}

.secret-pill {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  padding: 0.45rem 0.75rem;
  background: var(--input-bg);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  color: var(--accent-secondary);
  word-break: break-all;
}

.totp-timer-row {
  margin-top: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
}

.password-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.password-input-wrap input {
  padding-right: 3.1rem;
}

.pwd-eye-btn {
  position: absolute;
  right: 8px;
  width: 34px;
  height: 32px;
  border-radius: 8px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
}

.pwd-eye-btn:hover,
.pwd-eye-btn.active {
  border-color: var(--accent-primary);
  color: var(--accent-secondary);
}

.vault-form,
.vault-grid-form {
  display: grid;
  gap: 1.1rem;
}

.vault-grid-form {
  grid-template-columns: repeat(2, 1fr);
}

.full-span {
  grid-column: 1 / -1;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-group label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-secondary);
}

/* Uniform Drag & Drop Zone */
.upload-dropzone {
  position: relative;
  min-height: 148px;
  border: 1.5px dashed rgba(99, 102, 241, 0.45);
  background: var(--input-bg);
  border-radius: 12px;
  padding: 1.25rem 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  text-align: center;
  cursor: pointer;
  color: var(--text-secondary);
  font-size: 0.86rem;
  transition: var(--transition);
}

.upload-dropzone:hover,
.upload-dropzone.drag-over {
  border-color: var(--accent-secondary);
  background: rgba(56, 189, 248, 0.06);
}

.upload-dropzone input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  z-index: 2;
}

.dropzone-caption {
  font-size: 0.82rem;
  color: var(--text-secondary);
}

.dropzone-thumb-wrap {
  position: relative;
  display: inline-block;
  margin: 0 auto;
  z-index: 5;
}

.dropzone-thumb-wrap img {
  width: 192px;
  height: 120px;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid var(--border-subtle);
  background: var(--bg-secondary);
  display: block;
}

.thumb-remove-x {
  position: absolute;
  top: -8px;
  right: -8px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #f43f5e;
  color: #ffffff;
  border: 2px solid var(--bg-card);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
  transition: transform 0.15s ease, background-color 0.15s ease;
}

.thumb-remove-x:hover {
  background: #e11d48;
  transform: scale(1.1);
}

.vault-msg {
  font-size: 0.85rem;
  font-weight: 600;
  color: #f43f5e;
  min-height: 1.2rem;
}

/* Vault Table Header, Contextual Excel Dropbar & Progress Status Banner */
.vault-table-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.bulk-inline-tools {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.contextual-excel-dropbar {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  height: 46px;
  margin-bottom: 1rem;
  padding: 0 1rem;
  border-radius: 10px;
  background: rgba(56, 189, 248, 0.08);
  border: 1.5px dashed var(--accent-secondary);
  color: var(--text-primary);
  font-size: 0.84rem;
  font-weight: 600;
  transition: var(--transition);
}

.contextual-excel-dropbar.visible {
  display: flex;
}

.bulk-upload-banner {
  padding: 0.75rem 1rem;
  margin-bottom: 1rem;
  border-radius: 10px;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.35);
  color: #10b981;
  font-size: 0.84rem;
  font-weight: 600;
}

.bulk-upload-banner.uploading {
  background: rgba(99, 102, 241, 0.12);
  border-color: rgba(99, 102, 241, 0.35);
  color: var(--accent-secondary);
}

.bulk-upload-banner.error {
  background: rgba(244, 63, 94, 0.12);
  border-color: rgba(244, 63, 94, 0.35);
  color: #f43f5e;
}

.bulk-banner-content {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  width: 100%;
}

.bulk-banner-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.bulk-banner-top button {
  background: transparent;
  border: none;
  color: inherit;
  font-size: 1.15rem;
  line-height: 1;
  cursor: pointer;
}

.bulk-progress-track {
  width: 100%;
  height: 5px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  overflow: hidden;
}

.bulk-progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
  border-radius: 999px;
  transition: width 0.25s ease;
}

/* Clean Vault & Visitor Tables */
.vault-table-wrap {
  width: 100%;
  overflow-x: auto;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
}

.vault-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.9rem;
}

.vault-table th {
  padding: 0.85rem 1rem;
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border-subtle);
  font-family: var(--font-mono);
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

.vault-table td {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--border-subtle);
  vertical-align: middle;
}

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

.vault-table tbody tr:hover {
  background: var(--row-bg);
}

.vault-table tbody tr.is-hidden-row {
  opacity: 0.55;
}

.vault-thumb-box {
  position: relative;
  width: 66px;
  height: 44px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  background: var(--bg-secondary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.vault-table-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.vault-thumb-overlay {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.74);
  color: #f8fafc;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.vault-thumb-box:hover .vault-thumb-overlay {
  opacity: 1;
}

.vault-title-stack {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.35rem;
}

.vault-tags-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.vault-type-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  padding: 0.14rem 0.55rem;
  border-radius: 50px;
  background: rgba(56, 189, 248, 0.12);
  color: var(--accent-secondary);
  border: 1px solid rgba(56, 189, 248, 0.28);
}

.vault-type-tag.portfolio-tag {
  background: rgba(99, 102, 241, 0.14);
  color: #a5b4fc;
  border-color: rgba(99, 102, 241, 0.3);
}

.vault-type-tag.hidden-tag {
  background: rgba(245, 158, 11, 0.14);
  color: #f59e0b;
  border-color: rgba(245, 158, 11, 0.3);
}

.vault-icon-actions {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.45rem;
}

.table-icon-btn {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
}

.table-icon-btn:disabled,
.table-icon-btn.is-locked-action {
  opacity: 0.32;
  cursor: not-allowed !important;
  pointer-events: none;
}

.table-icon-btn.toggle-vis-btn:hover {
  border-color: var(--accent-primary);
  color: var(--accent-primary);
}

.table-icon-btn.toggle-vis-btn.is-hidden {
  border-color: rgba(245, 158, 11, 0.45);
  color: #f59e0b;
}

.table-icon-btn.edit-btn:hover {
  border-color: var(--accent-secondary);
  color: var(--accent-secondary);
}

.table-icon-btn.delete-btn:hover {
  border-color: #f43f5e;
  color: #f43f5e;
}

/* Deep-Dive Spotlight */
.spotlight-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2.75rem;
  box-shadow: var(--shadow-card);
}

.spotlight-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 1.5rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 2.25rem;
}

.spotlight-title {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.5vw, 1.65rem);
}

.spotlight-pillar {
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.5rem;
}

.spotlight-pillar h4 {
  font-family: var(--font-display);
  font-size: 1.06rem;
  margin-bottom: 0.65rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.spotlight-pillar p {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

/* Process, Capabilities, Stack & Timeline */
.process-step,
.bento-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.85rem 1.65rem;
  transition: var(--transition);
  box-shadow: var(--shadow-card);
}

.process-step:hover,
.bento-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
}

.step-num {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--accent-primary);
  background: rgba(99, 102, 241, 0.12);
  padding: 0.3rem 0.7rem;
  border-radius: 6px;
  margin-bottom: 1.1rem;
}

.process-step h3,
.bento-card h3 {
  font-family: var(--font-display);
  font-size: 1.18rem;
  margin-bottom: 0.65rem;
}

.process-step p,
.bento-card p {
  color: var(--text-secondary);
  font-size: 0.91rem;
}

.bento-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: rgba(99, 102, 241, 0.12);
  color: var(--accent-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.35rem;
}

.about-copy p {
  color: var(--text-secondary);
  font-size: 0.96rem;
  margin-bottom: 1.25rem;
}

.stack-item {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  padding: 0.95rem 1.1rem;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 0.87rem;
}

.timeline {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  border-left: 2px solid var(--border-subtle);
  padding-left: 1.35rem;
}

.timeline-item {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.35rem 1.5rem;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: -1.78rem;
  top: 1.65rem;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--accent-primary);
  box-shadow: 0 0 10px var(--accent-primary);
}

.timeline-date {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--accent-secondary);
  margin-bottom: 0.3rem;
}

.timeline-item h4 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  margin-bottom: 0.4rem;
}

.timeline-item p {
  color: var(--text-secondary);
  font-size: 0.88rem;
}

/* Split Contact Panel */
.contact-panel {
  background: var(--contact-gradient);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 3.5rem 3.75rem;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 3rem;
  align-items: center;
  box-shadow: var(--shadow-card);
}

.contact-badge {
  display: inline-block;
  padding: 0.45rem 0.95rem;
  background: var(--accent-glow);
  border: 1px solid var(--border-hover);
  color: var(--accent-primary);
  border-radius: var(--radius-sm);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 1.35rem;
}

.contact-left h2 {
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 3.6vw, 2.85rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 1rem;
}

.contact-left p {
  color: var(--text-secondary);
  font-size: 0.98rem;
  max-width: 28rem;
  margin-bottom: 1.85rem;
}

.btn-glow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0.9rem 1.75rem;
  background: var(--accent-primary);
  color: #ffffff !important;
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: var(--radius-sm);
  box-shadow: 0 0 28px var(--accent-glow);
  transition: var(--transition);
}

.btn-glow:hover {
  filter: brightness(1.08);
  transform: translateY(-2px);
}

.contact-right {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.contact-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  min-height: 52px;
  padding: 0.95rem 1.25rem;
  background: var(--row-bg);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  font-family: var(--font-mono);
  font-size: 0.86rem;
  transition: var(--transition);
}

a.contact-row:hover {
  border-color: var(--border-hover);
  transform: translateX(3px);
}

.contact-row-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text-secondary);
}

.contact-row-value {
  color: var(--text-primary);
  text-align: right;
  word-break: break-word;
}

.contact-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.25rem;
}

.social-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0.65rem 1.1rem;
  background: var(--row-bg);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  font-size: 0.85rem;
  font-weight: 600;
  transition: var(--transition);
}

.social-pill:hover {
  border-color: var(--border-hover);
  transform: translateY(-2px);
}

/* Floating Back to Top Button */
.back-to-top {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  box-shadow: var(--shadow-card);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 95;
  opacity: 0;
  visibility: hidden;
  transform: translateY(14px);
  transition: var(--transition);
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--accent-primary);
  border-color: var(--accent-primary);
  color: #fff;
  transform: translateY(-3px);
}

/* Footer */
.footer {
  border-top: 1px solid var(--border-subtle);
  padding: 2.5rem 0;
  margin-top: 3.5rem;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.25rem;
}

.copyright-text {
  color: var(--text-muted);
  font-size: 0.88rem;
}

.socials {
  display: flex;
  gap: 0.75rem;
}

.socials a {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
}

.socials a:hover {
  background: var(--accent-primary);
  color: #fff;
  border-color: var(--accent-primary);
}

/* Local Asset Drop-Zone Placeholder */
.asset-placeholder {
  width: 100%;
  height: 100%;
  min-height: 200px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 1.5rem;
  text-align: center;
  background: repeating-linear-gradient(
    -45deg,
    rgba(128, 128, 128, 0.04),
    rgba(128, 128, 128, 0.04) 10px,
    rgba(99, 102, 241, 0.06) 10px,
    rgba(99, 102, 241, 0.06) 20px
  );
  border: 1px dashed rgba(99, 102, 241, 0.4);
  border-radius: 12px;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.76rem;
}

.brand .asset-placeholder {
  width: 38px;
  height: 38px;
  min-height: 38px;
  padding: 0;
  border-radius: 50%;
  font-size: 0.7rem;
}

/* Case Study & Video Modal */
.modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(5, 6, 8, 0.88);
  backdrop-filter: blur(12px);
  z-index: 1000;
  padding: 1.5rem 1rem;
  overflow-y: auto;
  align-items: flex-start;
  justify-content: center;
}

.modal.open {
  display: flex;
}

.modal-panel {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  max-width: 54rem;
  width: 100%;
  margin: auto;
  overflow: hidden;
  position: relative;
  animation: modalFade 0.25s ease;
}

@keyframes modalFade {
  from { opacity: 0; transform: translateY(15px); }
  to { opacity: 1; transform: translateY(0); }
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.78);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.18);
  font-size: 1.25rem;
  cursor: pointer;
  z-index: 10;
}

.modal-img,
.modal-video {
  width: 100%;
  max-height: 25rem;
  object-fit: cover;
  border-bottom: 1px solid var(--border-subtle);
  background: #000;
}

.modal-content {
  padding: 2rem;
}

.modal-meta-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.65rem;
}

.modal-role {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: var(--text-muted);
}

.modal-content h3 {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 3vw, 1.8rem);
  margin-bottom: 0.6rem;
}

.modal-lead {
  color: var(--text-secondary);
  font-size: 0.96rem;
  margin-bottom: 1.5rem;
}

.case-study-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.15rem;
}

.cs-block {
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 1.15rem;
}

.cs-block h4 {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent-secondary);
  margin-bottom: 0.55rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.cs-block p {
  color: var(--text-secondary);
  font-size: 0.88rem;
}

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

.cs-list li {
  color: var(--text-secondary);
  font-size: 0.86rem;
  padding-left: 1rem;
  position: relative;
}

.cs-list li::before {
  content: "•";
  color: var(--accent-primary);
  position: absolute;
  left: 0;
}

/* Ergonomic High-Contrast Geometric Cursor Suite */
@media (hover: hover) and (pointer: fine) {
  body,
  a,
  button,
  input,
  select,
  textarea,
  label,
  p,
  h1,
  h2,
  h3,
  h4,
  span,
  li,
  .project-thumb,
  .filter-pill,
  .social-pill {
    cursor: none !important;
  }

  .figma-cursor {
    position: fixed;
    top: 0;
    left: 0;
    background: transparent !important;
    pointer-events: none;
    z-index: 99999;
    opacity: 0;
    transition: opacity 0.1s ease;
  }

  .figma-cursor.visible {
    opacity: 1;
  }

  body.cursor-in-iframe .figma-cursor {
    opacity: 0 !important;
    visibility: hidden !important;
  }

  .cursor-svg {
    display: none;
    background: transparent !important;
    transition: transform 0.14s ease;
  }

  .cursor-arrow {
    display: block;
    margin-left: -5px;
    margin-top: -3px;
  }

  .cursor-hand {
    margin-left: -10px;
    margin-top: -3px;
  }

  .cursor-text {
    margin-left: -11px;
    margin-top: -11px;
  }

  .figma-cursor-fill {
    fill: #f8fafc;
    stroke: #07080a;
    transition: fill 0.2s ease, stroke 0.2s ease;
  }

  .figma-hand-lines {
    stroke: #07080a;
    transition: stroke 0.2s ease;
  }

  .figma-cursor-dot {
    fill: var(--accent-secondary);
    stroke: #07080a;
    transition: fill 0.2s ease, stroke 0.2s ease;
  }

  [data-theme="light"] .figma-cursor-fill {
    fill: #0f172a;
    stroke: #ffffff;
  }

  [data-theme="light"] .figma-hand-lines {
    stroke: #ffffff;
  }

  [data-theme="light"] .figma-cursor-dot {
    fill: var(--accent-primary);
    stroke: #ffffff;
  }

  body.cursor-text-mode:not(.cursor-hover) .cursor-arrow {
    display: none;
  }

  body.cursor-text-mode:not(.cursor-hover) .cursor-text {
    display: block;
  }

  body.cursor-hover .cursor-arrow,
  body.cursor-hover .cursor-text {
    display: none;
  }

  body.cursor-hover .cursor-hand {
    display: block;
  }

  body.cursor-pressed .cursor-svg {
    transform: scale(0.86) translateY(2px);
  }
}

@media (hover: none), (pointer: coarse) {
  .figma-cursor {
    display: none !important;
  }
}

@media (max-width: 60rem) {
  .contact-panel {
    grid-template-columns: 1fr;
    padding: 2.5rem 2rem;
  }
}

@media (max-width: 48rem) {
  .filter-bar {
    width: 100%;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 0.35rem;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .filter-bar::-webkit-scrollbar {
    display: none;
  }
  .case-study-grid,
  .vault-grid-form {
    grid-template-columns: 1fr;
  }
  .totp-setup-box {
    flex-direction: column;
    text-align: center;
  }
  .contact-panel,
  .spotlight-card,
  .vault-auth-card,
  .figma-showcase-banner {
    padding: 1.5rem 1.25rem;
  }
  .spotlight-header .btn,
  .contact-left .btn-glow {
    width: 100%;
  }
  .contact-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.35rem;
    padding: 0.9rem 1rem;
  }
  .contact-row-value {
    text-align: left;
    font-size: 0.82rem;
  }
  .contact-pills {
    flex-direction: column;
  }
  .social-pill {
    width: 100%;
    justify-content: center;
  }
  .modal-content {
    padding: 1.35rem;
  }
  .footer-inner {
    flex-direction: column;
    text-align: center;
  }
  .back-to-top {
    bottom: 1rem;
    right: 1rem;
    width: 42px;
    height: 42px;
  }
}

/* ==========================================================================
   Visitor Pin Map & Leaflet Theme Styles
   ========================================================================== */
.visitor-map-card {
  position: relative;
  overflow: hidden;
}

#visitorMapWrap {
  transition: border-color var(--transition);
}

/* Static, Elegant Non-Blinking Visitor Pin Marker */
.visitor-pin-icon-wrap {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  cursor: pointer;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.4));
  transition: transform 0.22s cubic-bezier(0.34, 1.56, 0.64, 1), filter 0.22s ease;
}

.visitor-pin-icon-wrap:hover {
  transform: translateY(-4px) scale(1.15);
  filter: drop-shadow(0 8px 16px rgba(56, 189, 248, 0.55));
}

.visitor-map-pin {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.pin-badge {
  position: relative;
  width: 26px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}

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

.pin-count-bubble {
  position: absolute;
  top: -4px;
  right: -7px;
  min-width: 17px;
  height: 17px;
  padding: 0 4px;
  background: linear-gradient(135deg, #ef4444, #f43f5e);
  color: #ffffff;
  font-family: var(--font-mono, monospace);
  font-size: 0.68rem;
  font-weight: 700;
  border-radius: 999px;
  border: 1.5px solid #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
  line-height: 1;
}

.pin-anchor-shadow {
  width: 14px;
  height: 4px;
  background: rgba(0, 0, 0, 0.4);
  border-radius: 50%;
  margin-top: 1px;
  filter: blur(1.5px);
}

/* Custom Leaflet Vector Map Overrides */
.leaflet-container {
  background: #080a0f !important;
  font-family: var(--font-body) !important;
}

[data-theme="light"] .leaflet-container {
  background: #f1f5f9 !important;
}

/* Smooth SVG Country & State Polygon Transitions */
.leaflet-interactive {
  transition: fill 0.22s ease, stroke 0.22s ease, fill-opacity 0.22s ease;
  outline: none !important;
}

/* Theme-matched Leaflet Zoom Controls */
.leaflet-bar {
  border: 1px solid var(--border-subtle, rgba(255, 255, 255, 0.1)) !important;
  border-radius: var(--radius-sm, 8px) !important;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.4) !important;
  overflow: hidden !important;
  background: var(--bg-card, #13171f) !important;
}

.leaflet-bar a {
  background-color: var(--bg-card, #13171f) !important;
  color: var(--text-primary, #f1f5f9) !important;
  border-bottom: 1px solid var(--border-subtle, rgba(255, 255, 255, 0.08)) !important;
  width: 34px !important;
  height: 34px !important;
  line-height: 34px !important;
  font-size: 1.15rem !important;
  font-weight: 600 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  transition: background-color var(--transition, 0.2s), color var(--transition, 0.2s), transform 0.15s ease !important;
  text-decoration: none !important;
}

.leaflet-bar a:last-child {
  border-bottom: none !important;
}

.leaflet-bar a:hover {
  background-color: var(--bg-surface-elevated, #1a2233) !important;
  color: var(--accent-secondary, #38bdf8) !important;
}

.leaflet-bar a:active {
  transform: scale(0.94);
}

.leaflet-bar a.leaflet-disabled {
  background-color: var(--bg-card, #13171f) !important;
  color: var(--text-muted, #475569) !important;
  cursor: not-allowed !important;
  opacity: 0.45 !important;
}

[data-theme="light"] .leaflet-bar {
  border-color: rgba(15, 23, 42, 0.14) !important;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.08) !important;
  background: #ffffff !important;
}

[data-theme="light"] .leaflet-bar a {
  background-color: #ffffff !important;
  color: #0f172a !important;
  border-bottom-color: rgba(15, 23, 42, 0.1) !important;
}

[data-theme="light"] .leaflet-bar a:hover {
  background-color: #f1f5f9 !important;
  color: #0284c7 !important;
}

/* Country hover tooltip */
.custom-country-tooltip {
  background: var(--bg-card, #13171f) !important;
  color: var(--text-primary, #f8fafc) !important;
  border: 1px solid var(--border-hover, rgba(99, 102, 241, 0.4)) !important;
  border-radius: 6px !important;
  font-size: 0.78rem !important;
  font-family: var(--font-body) !important;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.45) !important;
  padding: 3px 8px !important;
}

.custom-country-tooltip::before {
  display: none !important;
}

/* State hover tooltip */
.custom-state-tooltip {
  background: var(--bg-card, #13171f) !important;
  color: var(--accent-secondary, #38bdf8) !important;
  border: 1px solid var(--accent-primary, #6366f1) !important;
  border-radius: 6px !important;
  font-size: 0.78rem !important;
  font-weight: 600 !important;
  font-family: var(--font-display, inherit) !important;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4) !important;
  padding: 4px 9px !important;
  letter-spacing: 0.02em !important;
}

.custom-state-tooltip::before {
  display: none !important;
}

[data-theme="light"] .custom-state-tooltip {
  background: #ffffff !important;
  color: #0284c7 !important;
  border-color: #cbd5e1 !important;
}

/* City Label Markers */
.city-label-icon {
  pointer-events: none;
}

.city-dot-container {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
}

.city-dot {
  width: 5px;
  height: 5px;
  background: var(--accent-secondary, #38bdf8);
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  box-shadow: 0 0 6px rgba(56, 189, 248, 0.85);
  flex-shrink: 0;
}

.city-name {
  font-family: var(--font-body, system-ui);
  font-size: 0.72rem;
  font-weight: 500;
  color: rgba(241, 245, 249, 0.85);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.9), 0 0 8px rgba(0, 0, 0, 0.95);
  letter-spacing: 0.015em;
  user-select: none;
}

[data-theme="light"] .city-dot {
  background: #0284c7;
  border-color: #ffffff;
  box-shadow: 0 0 4px rgba(2, 132, 199, 0.6);
}

[data-theme="light"] .city-name {
  color: #0f172a;
  text-shadow: 0 1px 3px rgba(255, 255, 255, 0.9), 0 0 6px #ffffff;
  font-weight: 600;
}

/* Visitor intelligence popup card */
.custom-visitor-popup .leaflet-popup-content-wrapper {
  background: var(--bg-card) !important;
  color: var(--text-primary) !important;
  border: 1px solid var(--border-hover) !important;
  border-radius: var(--radius-sm) !important;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.5) !important;
  padding: 0 !important;
  backdrop-filter: blur(8px);
}

.custom-visitor-popup .leaflet-popup-tip {
  background: var(--bg-card) !important;
  border: 1px solid var(--border-hover) !important;
}

.custom-visitor-popup .leaflet-popup-content {
  margin: 0 !important;
  line-height: 1.4 !important;
}

.custom-visitor-popup a.leaflet-popup-close-button {
  color: var(--text-muted) !important;
  padding: 6px !important;
}

.custom-visitor-popup a.leaflet-popup-close-button:hover {
  color: var(--text-primary) !important;
}

.map-popup-card {
  padding: 0.85rem 1rem;
  font-size: 0.82rem;
  min-width: 190px;
}

.map-popup-header {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-display);
  font-size: 0.95rem;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid var(--border-subtle);
}

.map-popup-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 0.25rem;
  color: var(--text-secondary);
}

.map-popup-row code {
  color: var(--accent-secondary);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  background: rgba(56, 189, 248, 0.1);
  padding: 1px 4px;
  border-radius: 4px;
}

/* Universal Analytics Filter & Search Toolbar */
.analytics-filter-card {
  border: 1px solid var(--border-subtle);
  background: var(--bg-card);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: border-color var(--transition);
}

.analytics-filter-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
}

.filter-search-box {
  position: relative;
  flex: 1 1 260px;
  min-width: 220px;
  display: flex;
  align-items: center;
}

.filter-search-box .search-input-icon {
  position: absolute;
  left: 0.85rem;
  color: var(--text-muted);
  pointer-events: none;
  transition: color var(--transition);
}

#analyticsSearchInput {
  width: 100%;
  height: 40px;
  padding: 0 2.2rem 0 2.4rem;
  background: var(--bg-surface-elevated, #0d1017);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.86rem;
  outline: none;
  transition: all var(--transition);
}

#analyticsSearchInput::placeholder {
  color: var(--text-muted);
  font-size: 0.82rem;
}

#analyticsSearchInput:focus {
  border-color: var(--accent-secondary, #38bdf8);
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.15);
  background: var(--bg-card);
}

.filter-search-box:focus-within .search-input-icon {
  color: var(--accent-secondary, #38bdf8);
}

.clear-search-btn {
  position: absolute;
  right: 0.65rem;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.15rem;
  line-height: 1;
  padding: 0 4px;
  cursor: pointer;
  border-radius: 50%;
  transition: color var(--transition);
}

.clear-search-btn:hover {
  color: var(--text-primary);
}

.filter-controls-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
}

.filter-select-wrap {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.filter-label {
  font-size: 0.78rem;
  font-family: var(--font-mono);
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.analytics-select {
  width: auto;
  min-width: 155px;
  height: 40px;
  padding: 0 2.4rem 0 0.9rem;
  background-color: var(--input-bg, #0d1017);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.84rem;
  outline: none;
  transition: all var(--transition);
}

.analytics-select:hover {
  border-color: var(--border-hover, rgba(99, 102, 241, 0.4));
}

.analytics-select:focus {
  border-color: var(--accent-secondary, #38bdf8);
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.15);
}

[data-theme="light"] #analyticsSearchInput,
[data-theme="light"] .analytics-select {
  background-color: #ffffff;
  border-color: #cbd5e1;
  color: #0f172a;
}
[data-theme="light"] #analyticsSearchInput:focus,
[data-theme="light"] .analytics-select:focus {
  border-color: #0284c7;
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.15);
}

.dashboard-filter-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  margin-bottom: 1.5rem;
}

.dashboard-filter-toolbar select {
  width: auto;
  min-width: 170px;
}

.filter-count-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  background: var(--row-bg);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  white-space: nowrap;
}

/* Detailed Zone Quick-Navigation Pills & Regional Badges */
.map-zone-quick-bar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
  padding: 0.2rem 0;
  overflow-x: auto;
  scrollbar-width: none;
}

.map-zone-quick-bar::-webkit-scrollbar {
  display: none;
}

.zone-bar-title {
  font-family: var(--font-mono, monospace);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  white-space: nowrap;
  flex-shrink: 0;
}

.zone-pill-list {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: nowrap;
}

.zone-pill {
  height: 28px;
  padding: 0 0.75rem;
  font-family: var(--font-body);
  font-size: 0.74rem;
  font-weight: 500;
  border-radius: 999px;
  border: 1px solid var(--border-subtle);
  background: var(--bg-card);
  color: var(--text-secondary);
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  display: inline-flex;
  align-items: center;
  user-select: none;
}

.zone-pill:hover {
  color: var(--accent-secondary, #38bdf8);
  border-color: var(--border-hover, rgba(99, 102, 241, 0.4));
  background: var(--bg-surface-elevated, #161c28);
  transform: translateY(-1px);
}

.zone-pill.active {
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.2), rgba(99, 102, 241, 0.22));
  color: var(--accent-secondary, #38bdf8);
  border-color: var(--accent-secondary, #38bdf8);
  font-weight: 600;
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.25);
}

[data-theme="light"] .zone-pill {
  background: #ffffff;
  border-color: #cbd5e1;
  color: #475569;
}

[data-theme="light"] .zone-pill:hover {
  background: #f1f5f9;
  color: #0284c7;
  border-color: #94a3b8;
}

[data-theme="light"] .zone-pill.active {
  background: rgba(2, 132, 199, 0.12);
  color: #0284c7;
  border-color: #0284c7;
  box-shadow: 0 0 8px rgba(2, 132, 199, 0.2);
}

.tooltip-zone-badge {
  display: block;
  font-size: 0.68rem;
  font-family: var(--font-mono, monospace);
  color: var(--accent-secondary, #38bdf8);
  margin-top: 3px;
  letter-spacing: 0.04em;
  font-weight: 500;
}

[data-theme="light"] .tooltip-zone-badge {
  color: #0284c7;
}

.table-zone-tag {
  display: inline-block;
  font-size: 0.68rem;
  font-family: var(--font-mono, monospace);
  color: var(--accent-secondary, #38bdf8);
  background: rgba(56, 189, 248, 0.08);
  border: 1px solid rgba(56, 189, 248, 0.2);
  border-radius: 4px;
  padding: 1px 6px;
  margin-top: 3px;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

[data-theme="light"] .table-zone-tag {
  background: rgba(2, 132, 199, 0.08);
  border-color: rgba(2, 132, 199, 0.25);
  color: #0284c7;
}

/* ==========================================================================
   Contact Details & Social Links Manager (Admin Studio)
   ========================================================================== */
.contact-admin-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: 1.5rem;
  margin-top: 1.25rem;
}

.contact-settings-card {
  padding: 1.5rem;
  border: 1px solid var(--border-subtle);
  background: var(--bg-card);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: border-color var(--transition);
}

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

.contact-edit-item {
  padding: 1rem 1.15rem;
  background: var(--bg-surface-elevated, #0d1017);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  transition: border-color var(--transition);
}

.contact-edit-item:hover {
  border-color: var(--border-hover, rgba(99, 102, 241, 0.4));
}

.contact-edit-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.65rem;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.contact-item-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.contact-icon-box {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-item-title {
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0;
  line-height: 1.2;
}

.contact-item-sub {
  font-size: 0.74rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

.contact-edit-inputs {
  margin-top: 0.4rem;
}

.contact-edit-inputs input,
.contact-edit-inputs textarea {
  width: 100%;
}

/* Modern Theme-Matched Toggle Switch */
.setting-toggle-label {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  cursor: pointer;
  user-select: none;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.setting-toggle-switch {
  position: relative;
  display: inline-block;
  width: 42px;
  height: 22px;
  flex-shrink: 0;
}

.setting-toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
  position: absolute;
}

.setting-toggle-slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background-color: var(--bg-surface-elevated, #161c28);
  border: 1px solid var(--border-subtle, rgba(255, 255, 255, 0.15));
  border-radius: 999px;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.setting-toggle-slider::before {
  position: absolute;
  content: "";
  height: 16px;
  width: 16px;
  left: 2px;
  bottom: 2px;
  background-color: #ffffff;
  border-radius: 50%;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.35);
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.setting-toggle-switch input:checked + .setting-toggle-slider {
  background: linear-gradient(135deg, var(--accent-secondary, #38bdf8), var(--accent-primary, #6366f1));
  border-color: var(--accent-secondary, #38bdf8);
}

.setting-toggle-switch input:checked + .setting-toggle-slider::before {
  transform: translateX(20px);
}

[data-theme="light"] .contact-edit-item {
  background: #f8fafc;
  border-color: #e2e8f0;
}

[data-theme="light"] .contact-edit-item:hover {
  border-color: #cbd5e1;
}

[data-theme="light"] .setting-toggle-slider {
  background-color: #e2e8f0;
  border-color: #cbd5e1;
}

[data-theme="light"] .setting-toggle-switch input:checked + .setting-toggle-slider {
  background: linear-gradient(135deg, #0284c7, #4f46e5);
  border-color: #0284c7;
}

/* ==========================================================================
   Analytics Dashboard View Controls & Restoration Banner (v3.7)
   ========================================================================== */
.analytics-view-group {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  flex-wrap: wrap;
}

.btn-view-active {
  border-color: var(--accent-secondary, #38bdf8) !important;
  color: var(--accent-secondary, #38bdf8) !important;
  background: rgba(56, 189, 248, 0.09) !important;
  box-shadow: 0 0 0 2px rgba(56, 189, 248, 0.15) !important;
}

[data-theme="light"] .btn-view-active {
  border-color: #0284c7 !important;
  color: #0284c7 !important;
  background: rgba(2, 132, 199, 0.09) !important;
  box-shadow: 0 0 0 2px rgba(2, 132, 199, 0.15) !important;
}

.analytics-widgets-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.85rem;
  background: var(--bg-card);
  border: 1px dashed var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 0.85rem 1.25rem;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
}

.widgets-bar-left {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--text-secondary);
  font-size: 0.84rem;
  font-family: var(--font-body);
}

.widgets-bar-left svg {
  color: var(--accent-secondary, #38bdf8);
  flex-shrink: 0;
}

.widgets-bar-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.btn-restore-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.38rem;
  height: 32px;
  padding: 0 0.85rem;
  font-size: 0.76rem;
  font-weight: 500;
  font-family: var(--font-body);
  border-radius: 999px;
  background: var(--bg-surface-elevated, #0d1017);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  cursor: pointer;
  transition: all var(--transition);
}

.btn-restore-pill svg {
  color: var(--text-muted);
  transition: color var(--transition);
}

.btn-restore-pill:hover {
  border-color: var(--accent-secondary, #38bdf8);
  color: var(--accent-secondary, #38bdf8);
  background: rgba(56, 189, 248, 0.08);
  transform: translateY(-1px);
}

.btn-restore-pill:hover svg {
  color: var(--accent-secondary, #38bdf8);
}

.btn-restore-all {
  background: rgba(99, 102, 241, 0.12);
  border-color: rgba(99, 102, 241, 0.35);
  color: #818cf8;
  font-weight: 600;
}

.btn-restore-all svg {
  color: #818cf8;
}

.btn-restore-all:hover {
  background: rgba(99, 102, 241, 0.22);
  border-color: #818cf8;
  color: #ffffff;
}

.btn-restore-all:hover svg {
  color: #ffffff;
}

[data-theme="light"] .analytics-widgets-bar {
  background: #f8fafc;
  border-color: #cbd5e1;
}

[data-theme="light"] .btn-restore-pill {
  background: #ffffff;
  border-color: #cbd5e1;
  color: #0f172a;
}

[data-theme="light"] .btn-restore-pill svg {
  color: #64748b;
}

[data-theme="light"] .btn-restore-pill:hover {
  border-color: #0284c7;
  color: #0284c7;
  background: rgba(2, 132, 199, 0.06);
}

[data-theme="light"] .btn-restore-pill:hover svg {
  color: #0284c7;
}

[data-theme="light"] .btn-restore-all {
  background: #eef2ff;
  border-color: #c7d2fe;
  color: #4f46e5;
}

[data-theme="light"] .btn-restore-all svg {
  color: #4f46e5;
}

[data-theme="light"] .btn-restore-all:hover {
  background: #e0e7ff;
  border-color: #4f46e5;
  color: #3730a3;
}

/* ==========================================================================
   Activity Log Pagination Styles (v3.8)
   ========================================================================== */
.log-pagination-top {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.page-indicator-text {
  font-size: 0.78rem;
  font-family: var(--font-mono, monospace);
  color: var(--text-secondary);
  padding: 0 0.35rem;
  white-space: nowrap;
}

.log-pagination-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  padding-top: 1.25rem;
  margin-top: 1rem;
  border-top: 1px solid var(--border-subtle);
}

.log-pagination-info {
  font-size: 0.82rem;
  color: var(--text-muted);
  font-family: var(--font-body);
}

.log-pagination-info strong {
  color: var(--text-primary);
  font-family: var(--font-mono, monospace);
  font-weight: 600;
}

.log-pagination-nav {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-wrap: wrap;
}

.btn-page-nav {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  height: 32px;
  padding: 0 0.8rem;
  font-size: 0.78rem;
  font-family: var(--font-body);
  font-weight: 500;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
  background: var(--bg-surface-elevated, #0d1017);
  color: var(--text-primary);
  cursor: pointer;
  transition: all var(--transition);
}

.btn-page-nav:hover:not(:disabled) {
  border-color: var(--accent-secondary, #38bdf8);
  color: var(--accent-secondary, #38bdf8);
  background: rgba(56, 189, 248, 0.08);
  transform: translateY(-1px);
}

.btn-page-nav:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  pointer-events: none;
}

.log-page-numbers {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.page-num-pill {
  min-width: 32px;
  height: 32px;
  padding: 0 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  font-family: var(--font-mono, monospace);
  font-weight: 500;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
  background: var(--bg-surface-elevated, #0d1017);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition);
}

.page-num-pill:hover:not(.active):not(.ellipsis) {
  border-color: var(--border-hover, rgba(99, 102, 241, 0.4));
  color: var(--text-primary);
  transform: translateY(-1px);
}

.page-num-pill.active {
  background: linear-gradient(135deg, var(--accent-secondary, #38bdf8), var(--accent-primary, #6366f1));
  border-color: var(--accent-secondary, #38bdf8);
  color: #ffffff;
  font-weight: 600;
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.25);
}

.page-num-pill.ellipsis {
  border: none;
  background: transparent;
  cursor: default;
  color: var(--text-muted);
  min-width: 20px;
}

[data-theme="light"] .btn-page-nav,
[data-theme="light"] .page-num-pill {
  background: #ffffff;
  border-color: #cbd5e1;
  color: #0f172a;
}

[data-theme="light"] .btn-page-nav:hover:not(:disabled) {
  border-color: #0284c7;
  color: #0284c7;
  background: rgba(2, 132, 199, 0.06);
}

[data-theme="light"] .page-num-pill:hover:not(.active):not(.ellipsis) {
  border-color: #94a3b8;
  color: #0f172a;
}

[data-theme="light"] .page-num-pill.active {
  background: linear-gradient(135deg, #0284c7, #4f46e5);
  border-color: #0284c7;
  color: #ffffff;
}

[data-theme="light"] .page-num-pill.ellipsis {
  background: transparent;
  color: #64748b;
}

/* Vault In-Page Refresh Spinner */
@keyframes spinRefresh {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.spin-refresh {
  animation: spinRefresh 0.75s linear infinite;
  transform-origin: center;
  display: inline-block;
}

/* ---------------------------------------------------------------------------
 * Backend Changelog & Release Management Studio
 * --------------------------------------------------------------------------- */
.changelog-release-card {
  padding: 1.5rem 1.75rem;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: border-color var(--transition), transform var(--transition);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.changelog-release-card:hover {
  border-color: var(--border-hover, var(--border-focus));
}

.changelog-release-card.latest-release {
  border-left: 3px solid var(--accent-primary);
}

.changelog-card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  flex-wrap: wrap;
}

.changelog-version-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.22rem 0.65rem;
  font-family: var(--font-mono, monospace);
  font-size: 0.85rem;
  font-weight: 700;
  border-radius: 9999px;
  background: var(--accent-primary-alpha, rgba(99, 102, 241, 0.15));
  color: var(--accent-primary);
  border: 1px solid var(--accent-primary-alpha, rgba(99, 102, 241, 0.35));
}

.changelog-folder-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.22rem 0.65rem;
  font-family: var(--font-mono, monospace);
  font-size: 0.76rem;
  border-radius: var(--radius-sm);
  background: var(--bg-surface-elevated, #0d1017);
  color: var(--text-muted);
  border: 1px solid var(--border-subtle);
  user-select: all;
}

.changelog-points-list {
  margin: 0;
  padding-left: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  color: var(--text-secondary);
  font-size: 0.88rem;
  line-height: 1.55;
}

.changelog-points-list li strong {
  color: var(--text-primary);
}

.changelog-tags-row {
  display: flex;
  gap: 0.45rem;
  flex-wrap: wrap;
  align-items: center;
}

.changelog-tag-pill {
  font-size: 0.72rem;
  padding: 0.15rem 0.55rem;
  border-radius: 9999px;
  background: var(--bg-surface-elevated, #131722);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
}

/* ==========================================================================
   Stealth 404 Gate, Radiant Unlock Transition & Vault Security Section
   ========================================================================== */
body.vault-gate-locked .desktop-nav,
body.vault-gate-locked #vaultRefreshBtn {
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
}

.gate-404-card {
  max-width: 38rem;
  margin: 1.5rem auto 0;
  padding: 2.75rem 2rem;
  text-align: center;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg, 20px);
  background: var(--bg-card);
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.gate-404-card.is-exiting {
  opacity: 0;
  transform: scale(0.96);
}

.gate-404-illustration {
  width: min(300px, 85%);
  height: auto;
  margin: 0 auto 1.25rem;
  display: block;
}

.gate-anim-float {
  animation: gateFloatY 4.6s ease-in-out infinite;
  transform-box: fill-box;
  transform-origin: center;
}

.gate-anim-orbit {
  animation: gateOrbitSpin 16s linear infinite;
  transform-box: fill-box;
  transform-origin: center;
}

.gate-anim-pulse {
  animation: gateRadarPulse 3.2s ease-out infinite;
  transform-box: fill-box;
  transform-origin: center;
}

.gate-anim-pulse-delay {
  animation: gateRadarPulse 3.2s ease-out 1.4s infinite;
  transform-box: fill-box;
  transform-origin: center;
}

.gate-anim-twinkle {
  animation: gateTwinkle 2.8s ease-in-out infinite;
}

.gate-anim-twinkle-delay {
  animation: gateTwinkle 3.4s ease-in-out 1.2s infinite;
}

@keyframes gateFloatY {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-9px); }
}

@keyframes gateOrbitSpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes gateRadarPulse {
  0% { transform: scale(0.86); opacity: 0.65; }
  100% { transform: scale(1.42); opacity: 0; }
}

@keyframes gateTwinkle {
  0%, 100% { opacity: 0.35; transform: scale(0.92); }
  50% { opacity: 1; transform: scale(1.12); }
}

.gate-lumos-flash {
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(circle at 50% 44%, rgba(255, 248, 214, 0.92) 0%, rgba(167, 139, 250, 0.55) 32%, rgba(99, 102, 241, 0.16) 65%, transparent 85%);
}

.gate-lumos-flash.is-active {
  animation: lumosRevealBurst 0.85s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes lumosRevealBurst {
  0% { opacity: 0; transform: scale(0.35); filter: blur(18px); }
  30% { opacity: 1; transform: scale(1.06); filter: blur(4px); }
  100% { opacity: 0; transform: scale(1.75); filter: blur(22px); }
}

.vault-lumos-reveal {
  animation: lumosCardReveal 0.65s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes lumosCardReveal {
  0% {
    opacity: 0;
    transform: translateY(18px) scale(0.95);
    filter: blur(8px) brightness(1.35);
    box-shadow: 0 0 0 0 rgba(167, 139, 250, 0);
  }
  55% {
    opacity: 1;
    filter: blur(0px) brightness(1.08);
    box-shadow: 0 0 42px rgba(167, 139, 250, 0.35);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0px) brightness(1);
    box-shadow: var(--shadow-md);
  }
}

.security-settings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(310px, 1fr));
  gap: 1.35rem;
  margin-top: 1.25rem;
}

/* ==========================================================================
   Release Changelogs Stat Cards (Matches Analytics KPI Aesthetics)
   ========================================================================== */
.analytics-metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.1rem;
  margin-bottom: 1.75rem;
}

.stat-card {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 1.25rem 1.35rem;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  transition: var(--transition);
}

.stat-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-2px);
}

.stat-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  font-weight: 600;
}

.stat-value {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.2vw, 1.85rem);
  font-weight: 800;
  line-height: 1.2;
  color: var(--text-primary);
}

.stat-hint {
  font-size: 0.78rem;
  color: var(--text-secondary);
}

@media (max-width: 64rem) {
  .analytics-metrics-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 34rem) {
  .analytics-metrics-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   Global Glassmorphism Theme, Multi-Card Design Systems & Live Studio UI
   ========================================================================== */
html[data-surface-mode="glass"] .ambient-glow {
  background:
    radial-gradient(ellipse 52% 46% at 14% 16%, rgba(99, 102, 241, 0.32) 0%, transparent 72%),
    radial-gradient(ellipse 46% 44% at 86% 24%, rgba(56, 189, 248, 0.28) 0%, transparent 72%),
    radial-gradient(ellipse 50% 42% at 52% 84%, rgba(168, 85, 247, 0.22) 0%, transparent 74%),
    radial-gradient(ellipse 68% 58% at 50% 18%, var(--accent-glow) 0%, transparent 74%);
}

html[data-surface-mode="glass"][data-theme="light"] .ambient-glow {
  background:
    radial-gradient(ellipse 56% 50% at 15% 18%, rgba(129, 140, 248, 0.34) 0%, transparent 70%),
    radial-gradient(ellipse 50% 45% at 84% 22%, rgba(56, 189, 248, 0.3) 0%, transparent 70%),
    radial-gradient(ellipse 55% 44% at 55% 86%, rgba(244, 114, 182, 0.2) 0%, transparent 72%);
}

html[data-surface-mode="glass"] .navbar {
  backdrop-filter: blur(26px) saturate(180%);
  -webkit-backdrop-filter: blur(26px) saturate(180%);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.16);
}

html[data-surface-mode="glass"] .metrics-strip,
html[data-surface-mode="glass"] .hero-visual,
html[data-surface-mode="glass"] .figma-showcase-banner,
html[data-surface-mode="glass"] .contact-panel,
html[data-surface-mode="glass"] .process-step,
html[data-surface-mode="glass"] .bento-card,
html[data-surface-mode="glass"] .timeline-item,
html[data-surface-mode="glass"] .stack-item,
html[data-surface-mode="glass"] .spotlight-pillar,
html[data-surface-mode="glass"] .analytics-kpi-card,
html[data-surface-mode="glass"] .stat-card,
html[data-surface-mode="glass"] .changelog-release-card,
html[data-surface-mode="glass"] .contact-settings-card,
html[data-surface-mode="glass"] .gate-404-card,
html[data-surface-mode="glass"] .vault-auth-card,
html[data-surface-mode="glass"] .spotlight-card,
html[data-surface-mode="glass"] .vault-panel,
html[data-surface-mode="glass"] .vault-table-wrap,
html[data-surface-mode="glass"] .modal-panel,
html[data-surface-mode="glass"] .figma-modal-panel,
html[data-surface-mode="glass"] .nav-drawer,
html[data-surface-mode="glass"] .btn-outline {
  background: var(--bg-card);
  backdrop-filter: var(--card-backdrop);
  -webkit-backdrop-filter: var(--card-backdrop);
  box-shadow: var(--shadow-card);
}

html[data-surface-mode="glass"] .contact-row,
html[data-surface-mode="glass"] .social-pill {
  background: var(--row-bg);
  backdrop-filter: blur(12px) saturate(150%);
  -webkit-backdrop-filter: blur(12px) saturate(150%);
}

/* Shared Surface Targets for Card Themes */
html[data-card-style="glass"] .project-card,
html[data-card-style="glass"] .figma-tile-card,
html[data-card-style="glass"] .metrics-strip,
html[data-card-style="glass"] .figma-showcase-banner,
html[data-card-style="glass"] .contact-panel,
html[data-card-style="glass"] .process-step,
html[data-card-style="glass"] .bento-card,
html[data-card-style="glass"] .timeline-item,
html[data-card-style="glass"] .stack-item,
html[data-card-style="glass"] .spotlight-pillar,
html[data-card-style="glass"] .spotlight-card,
html[data-card-style="glass"] .contact-settings-card,
html[data-card-style="glass"] .changelog-release-card,
html[data-card-style="glass"] .stat-card,
html[data-card-style="glass"] .analytics-kpi-card,
html[data-card-style="glass"] .vault-panel,
html[data-card-style="glass"] .vault-auth-card,
html[data-card-style="glass"] .vault-table-wrap,
html[data-card-style="glass"] .modal-panel,
html[data-card-style="glass"] .figma-modal-panel,
html[data-card-style="glass"] .gate-404-card {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.095), rgba(255, 255, 255, 0.025)) !important;
  backdrop-filter: blur(var(--glass-blur, 22px)) saturate(175%) !important;
  -webkit-backdrop-filter: blur(var(--glass-blur, 22px)) saturate(175%) !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.34), inset 0 1px 0 rgba(255, 255, 255, 0.22) !important;
}

html[data-card-style="glass"] .contact-row,
html[data-card-style="glass"] .social-pill {
  background: rgba(255, 255, 255, 0.06) !important;
  border-color: rgba(255, 255, 255, 0.16) !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
}

html[data-theme="light"][data-card-style="glass"] .project-card,
html[data-theme="light"][data-card-style="glass"] .figma-tile-card,
html[data-theme="light"][data-card-style="glass"] .metrics-strip,
html[data-theme="light"][data-card-style="glass"] .figma-showcase-banner,
html[data-theme="light"][data-card-style="glass"] .contact-panel,
html[data-theme="light"][data-card-style="glass"] .process-step,
html[data-theme="light"][data-card-style="glass"] .bento-card,
html[data-theme="light"][data-card-style="glass"] .timeline-item,
html[data-theme="light"][data-card-style="glass"] .stack-item,
html[data-theme="light"][data-card-style="glass"] .spotlight-pillar,
html[data-theme="light"][data-card-style="glass"] .spotlight-card,
html[data-theme="light"][data-card-style="glass"] .contact-settings-card,
html[data-theme="light"][data-card-style="glass"] .changelog-release-card,
html[data-theme="light"][data-card-style="glass"] .stat-card,
html[data-theme="light"][data-card-style="glass"] .analytics-kpi-card,
html[data-theme="light"][data-card-style="glass"] .vault-panel,
html[data-theme="light"][data-card-style="glass"] .vault-auth-card,
html[data-theme="light"][data-card-style="glass"] .vault-table-wrap,
html[data-theme="light"][data-card-style="glass"] .modal-panel,
html[data-theme="light"][data-card-style="glass"] .figma-modal-panel,
html[data-theme="light"][data-card-style="glass"] .gate-404-card {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0.42)) !important;
  border: 1px solid rgba(255, 255, 255, 0.88) !important;
  box-shadow: 0 18px 38px rgba(15, 23, 42, 0.09), inset 0 1px 0 rgba(255, 255, 255, 0.95) !important;
}

html[data-theme="light"][data-card-style="glass"] .contact-row,
html[data-theme="light"][data-card-style="glass"] .social-pill {
  background: rgba(255, 255, 255, 0.56) !important;
  border-color: rgba(255, 255, 255, 0.85) !important;
}

html[data-card-style="glass"] .project-card:hover,
html[data-card-style="glass"] .figma-tile-card:hover {
  border-color: var(--accent-secondary) !important;
  box-shadow: 0 24px 52px var(--accent-glow), inset 0 1px 0 rgba(255, 255, 255, 0.3) !important;
}

/* Card Theme 2: Swiss Bento Architectural Grid */
html[data-card-style="bento"] .project-card,
html[data-card-style="bento"] .figma-tile-card,
html[data-card-style="bento"] .figma-showcase-banner,
html[data-card-style="bento"] .contact-panel,
html[data-card-style="bento"] .process-step,
html[data-card-style="bento"] .bento-card,
html[data-card-style="bento"] .timeline-item,
html[data-card-style="bento"] .spotlight-card,
html[data-card-style="bento"] .contact-settings-card,
html[data-card-style="bento"] .changelog-release-card,
html[data-card-style="bento"] .stat-card,
html[data-card-style="bento"] .analytics-kpi-card,
html[data-card-style="bento"] .vault-auth-card,
html[data-card-style="bento"] .vault-panel {
  border-radius: 0.5rem !important;
  background-color: var(--bg-card) !important;
  border: 1px solid rgba(148, 163, 184, 0.28) !important;
  box-shadow: 4px 4px 0 var(--accent-glow) !important;
  background-image: radial-gradient(rgba(148, 163, 184, 0.1) 1px, transparent 1px) !important;
  background-size: 16px 16px !important;
}

html[data-card-style="bento"] .contact-row,
html[data-card-style="bento"] .social-pill {
  border-radius: 0.4rem !important;
  border-color: rgba(148, 163, 184, 0.28) !important;
}

html[data-card-style="bento"] .project-card:hover,
html[data-card-style="bento"] .figma-tile-card:hover {
  transform: translate(-2px, -3px);
  box-shadow: 6px 6px 0 var(--accent-primary) !important;
  border-color: var(--accent-primary) !important;
}

/* Card Theme 3: Soft Neumorphic Elevation */
html[data-card-style="neo-soft"][data-theme="dark"] .project-card,
html[data-card-style="neo-soft"][data-theme="dark"] .figma-tile-card,
html[data-card-style="neo-soft"][data-theme="dark"] .figma-showcase-banner,
html[data-card-style="neo-soft"][data-theme="dark"] .contact-panel,
html[data-card-style="neo-soft"][data-theme="dark"] .process-step,
html[data-card-style="neo-soft"][data-theme="dark"] .bento-card,
html[data-card-style="neo-soft"][data-theme="dark"] .timeline-item,
html[data-card-style="neo-soft"][data-theme="dark"] .spotlight-card,
html[data-card-style="neo-soft"][data-theme="dark"] .contact-settings-card,
html[data-card-style="neo-soft"][data-theme="dark"] .changelog-release-card,
html[data-card-style="neo-soft"][data-theme="dark"] .stat-card,
html[data-card-style="neo-soft"][data-theme="dark"] .analytics-kpi-card,
html[data-card-style="neo-soft"][data-theme="dark"] .vault-auth-card,
html[data-card-style="neo-soft"][data-theme="dark"] .vault-panel {
  background: linear-gradient(145deg, #161b25, #0e1218) !important;
  border: 1px solid rgba(255, 255, 255, 0.04) !important;
  box-shadow: 10px 10px 22px rgba(0, 0, 0, 0.6), -6px -6px 16px rgba(255, 255, 255, 0.03) !important;
}

html[data-card-style="neo-soft"][data-theme="light"] .project-card,
html[data-card-style="neo-soft"][data-theme="light"] .figma-tile-card,
html[data-card-style="neo-soft"][data-theme="light"] .figma-showcase-banner,
html[data-card-style="neo-soft"][data-theme="light"] .contact-panel,
html[data-card-style="neo-soft"][data-theme="light"] .process-step,
html[data-card-style="neo-soft"][data-theme="light"] .bento-card,
html[data-card-style="neo-soft"][data-theme="light"] .timeline-item,
html[data-card-style="neo-soft"][data-theme="light"] .spotlight-card,
html[data-card-style="neo-soft"][data-theme="light"] .contact-settings-card,
html[data-card-style="neo-soft"][data-theme="light"] .changelog-release-card,
html[data-card-style="neo-soft"][data-theme="light"] .stat-card,
html[data-card-style="neo-soft"][data-theme="light"] .analytics-kpi-card,
html[data-card-style="neo-soft"][data-theme="light"] .vault-auth-card,
html[data-card-style="neo-soft"][data-theme="light"] .vault-panel {
  background: linear-gradient(145deg, #ffffff, #e9eef6) !important;
  border: 1px solid rgba(255, 255, 255, 0.9) !important;
  box-shadow: 10px 10px 24px rgba(148, 163, 184, 0.25), -8px -8px 20px rgba(255, 255, 255, 0.95) !important;
}

/* Card Theme 4: Luminous Aurora Gradient Stroke */
html[data-card-style="aurora-border"] .project-card,
html[data-card-style="aurora-border"] .figma-tile-card,
html[data-card-style="aurora-border"] .figma-showcase-banner,
html[data-card-style="aurora-border"] .contact-panel,
html[data-card-style="aurora-border"] .process-step,
html[data-card-style="aurora-border"] .bento-card,
html[data-card-style="aurora-border"] .timeline-item,
html[data-card-style="aurora-border"] .spotlight-card,
html[data-card-style="aurora-border"] .contact-settings-card,
html[data-card-style="aurora-border"] .changelog-release-card,
html[data-card-style="aurora-border"] .stat-card,
html[data-card-style="aurora-border"] .analytics-kpi-card,
html[data-card-style="aurora-border"] .vault-auth-card,
html[data-card-style="aurora-border"] .vault-panel {
  border: 1px solid transparent !important;
  background-image:
    linear-gradient(var(--bg-card), var(--bg-card)),
    linear-gradient(135deg, var(--accent-primary), var(--accent-secondary), rgba(236, 72, 153, 0.55)) !important;
  background-origin: border-box !important;
  background-clip: padding-box, border-box !important;
  box-shadow: 0 14px 36px var(--accent-glow) !important;
}

.contact-toggle-group {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
  flex-wrap: wrap;
}

/* ==========================================================================
   Vault Design System Studio & Live Preview Layout
   ========================================================================== */
.appearance-studio-split {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 1.5rem;
  align-items: start;
}

.appearance-controls-col {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.appearance-preview-col {
  position: sticky;
  top: 5.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.preset-chip-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 0.65rem;
}

.preset-chip {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.25rem;
  padding: 0.78rem 0.9rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
  background: var(--row-bg);
  color: var(--text-primary);
  text-align: left;
  cursor: pointer;
  transition: var(--transition);
}

.preset-chip:hover {
  border-color: var(--border-hover);
  transform: translateY(-1px);
}

.preset-chip.active {
  border-color: var(--accent-primary);
  background: var(--accent-glow);
  box-shadow: 0 0 0 2px var(--accent-glow);
}

.preset-chip-title {
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--text-primary);
}

.preset-chip-sub {
  font-size: 0.72rem;
  color: var(--text-secondary);
}

.palette-swatch-row {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 0.2rem;
}

.palette-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.35);
}

.color-picker-inline {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
}

.color-input-pill {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.45rem 0.75rem;
  background: var(--input-bg);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
}

.color-input-pill input[type="color"] {
  width: 32px;
  height: 28px;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  flex-shrink: 0;
}

.live-preview-shell {
  padding: 1.15rem;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
}

.live-preview-stage {
  position: relative;
  overflow: hidden;
  border-radius: var(--pv-radius-md, var(--radius-md));
  padding: 1.25rem;
  background: var(--pv-bg, #07080a);
  color: var(--pv-text, #f8fafc);
  font-family: var(--pv-font-body, var(--font-body));
  border: 1px solid var(--pv-border, rgba(255, 255, 255, 0.12));
  transition: all 0.25s ease;
}

.live-preview-stage.is-glass {
  background:
    radial-gradient(ellipse 65% 55% at 15% 15%, var(--pv-accent-glow, rgba(99, 102, 241, 0.3)), transparent 70%),
    radial-gradient(ellipse 55% 50% at 88% 82%, var(--pv-accent-2-glow, rgba(56, 189, 248, 0.26)), transparent 70%),
    var(--pv-bg, #060914);
}

.pv-nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.55rem 0.85rem;
  margin-bottom: 1rem;
  border-radius: var(--pv-radius-sm, 0.625rem);
  background: var(--pv-nav-bg, rgba(14, 17, 22, 0.85));
  border: 1px solid var(--pv-border, rgba(255, 255, 255, 0.1));
  backdrop-filter: blur(var(--pv-blur, 18px));
}

.pv-brand {
  font-family: var(--pv-font-display, var(--font-display));
  font-weight: 700;
  font-size: 0.88rem;
}

.pv-eyebrow {
  font-family: var(--pv-font-mono, var(--font-mono));
  font-size: 0.66rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--pv-accent-2, #38bdf8);
  display: block;
  margin-bottom: 0.3rem;
}

.pv-headline {
  font-family: var(--pv-font-display, var(--font-display));
  font-size: 1.32rem;
  font-weight: 700;
  line-height: 1.18;
  margin: 0 0 0.45rem;
}

.pv-card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
  margin-top: 1rem;
}

.pv-demo-card {
  padding: 0.9rem;
  border-radius: var(--pv-radius-md, 1rem);
  background: var(--pv-card-bg, #13171f);
  border: 1px solid var(--pv-card-border, rgba(255, 255, 255, 0.1));
  box-shadow: var(--pv-card-shadow, 0 12px 24px rgba(0, 0, 0, 0.35));
  backdrop-filter: var(--pv-card-blur, none);
  transition: all 0.25s ease;
}

.pv-demo-thumb {
  height: 54px;
  border-radius: var(--pv-radius-sm, 0.55rem);
  margin-bottom: 0.6rem;
  background: linear-gradient(135deg, var(--pv-accent, #6366f1), var(--pv-accent-2, #38bdf8));
  opacity: 0.88;
}

.pv-site-iframe-wrap {
  width: 100%;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
  background: #07080a;
  overflow: hidden;
  display: flex;
  justify-content: center;
}

.pv-site-iframe {
  width: 100%;
  height: 540px;
  border: none;
  background: #07080a;
  transition: width 0.28s ease;
}

.pv-site-iframe.is-mobile {
  width: 390px;
  max-width: 100%;
  border-left: 1px solid var(--border-subtle);
  border-right: 1px solid var(--border-subtle);
}

@media (max-width: 68rem) {
  .appearance-studio-split {
    grid-template-columns: 1fr;
  }
  .appearance-preview-col {
    position: static;
  }
}

/* ==========================================================================
   Reference Design Systems: Dynamic Island Aura, Telemetry Bento, Tactical HUD, Retro CRT
   ========================================================================== */

/* 1. Fluid Aura & Dynamic Pill System (Ref 1) */
html[data-surface-mode="aura-island"] .ambient-glow {
  background:
    radial-gradient(ellipse 48% 42% at 14% 18%, rgba(251, 146, 60, 0.34) 0%, transparent 68%),
    radial-gradient(ellipse 46% 44% at 45% 22%, rgba(244, 114, 182, 0.26) 0%, transparent 70%),
    radial-gradient(ellipse 52% 46% at 86% 20%, rgba(56, 189, 248, 0.3) 0%, transparent 70%),
    radial-gradient(rgba(148, 163, 184, 0.22) 1px, transparent 1px);
  background-size: 100% 100%, 100% 100%, 100% 100%, 18px 18px;
}

html[data-surface-mode="aura-island"] .navbar {
  max-width: min(94vw, var(--container-max));
  margin: 0.75rem auto 0;
  top: 0.75rem;
  border-radius: 999px;
  background: #060709;
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
  padding: 0.65rem 1.25rem;
  color: #f8fafc;
}

html[data-surface-mode="aura-island"] .navbar .brand,
html[data-surface-mode="aura-island"] .navbar .nav-list a {
  color: rgba(248, 250, 252, 0.8);
}

html[data-surface-mode="aura-island"] .navbar .nav-list a:hover,
html[data-surface-mode="aura-island"] .navbar .nav-list a.active-link {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.22);
}

html[data-card-style="dynamic-pill"] .project-card,
html[data-card-style="dynamic-pill"] .figma-tile-card,
html[data-card-style="dynamic-pill"] .metrics-strip,
html[data-card-style="dynamic-pill"] .figma-showcase-banner,
html[data-card-style="dynamic-pill"] .contact-panel,
html[data-card-style="dynamic-pill"] .process-step,
html[data-card-style="dynamic-pill"] .bento-card,
html[data-card-style="dynamic-pill"] .timeline-item,
html[data-card-style="dynamic-pill"] .spotlight-card,
html[data-card-style="dynamic-pill"] .contact-settings-card,
html[data-card-style="dynamic-pill"] .changelog-release-card,
html[data-card-style="dynamic-pill"] .stat-card,
html[data-card-style="dynamic-pill"] .analytics-kpi-card,
html[data-card-style="dynamic-pill"] .vault-auth-card,
html[data-card-style="dynamic-pill"] .vault-panel {
  border-radius: 1.85rem !important;
  backdrop-filter: blur(18px) saturate(165%) !important;
  -webkit-backdrop-filter: blur(18px) saturate(165%) !important;
  box-shadow: var(--shadow-card), inset 0 1px 0 rgba(255, 255, 255, 0.35) !important;
}

html[data-card-style="dynamic-pill"] .project-badge,
html[data-card-style="dynamic-pill"] .step-num,
html[data-card-style="dynamic-pill"] .changelog-version-pill {
  background: #060709 !important;
  color: #f8fafc !important;
  border: 1.5px solid var(--accent-primary) !important;
  box-shadow: 0 0 0 2px var(--accent-glow) !important;
  border-radius: 999px !important;
}

/* 2. Telemetry Dark Bento System (Ref 2) */
html[data-surface-mode="telemetry"] .ambient-glow {
  background:
    radial-gradient(ellipse 65% 50% at 75% 15%, rgba(255, 255, 255, 0.045) 0%, transparent 70%),
    radial-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 100% 100%, 24px 24px;
}

html[data-surface-mode="telemetry"] .navbar {
  background: rgba(11, 13, 16, 0.9);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

html[data-surface-mode="telemetry"] .stat-value,
html[data-surface-mode="telemetry"] .metric-item h3,
html[data-surface-mode="telemetry"] .analytics-kpi-card h2 {
  font-variant-numeric: tabular-nums;
}

html[data-card-style="telemetry-bento"] .project-card,
html[data-card-style="telemetry-bento"] .figma-tile-card,
html[data-card-style="telemetry-bento"] .metrics-strip,
html[data-card-style="telemetry-bento"] .figma-showcase-banner,
html[data-card-style="telemetry-bento"] .contact-panel,
html[data-card-style="telemetry-bento"] .process-step,
html[data-card-style="telemetry-bento"] .bento-card,
html[data-card-style="telemetry-bento"] .timeline-item,
html[data-card-style="telemetry-bento"] .spotlight-card,
html[data-card-style="telemetry-bento"] .contact-settings-card,
html[data-card-style="telemetry-bento"] .changelog-release-card,
html[data-card-style="telemetry-bento"] .stat-card,
html[data-card-style="telemetry-bento"] .analytics-kpi-card,
html[data-card-style="telemetry-bento"] .vault-auth-card,
html[data-card-style="telemetry-bento"] .vault-panel {
  background: linear-gradient(170deg, rgba(25, 28, 34, 0.96), rgba(17, 20, 24, 0.98)) !important;
  border: 1px solid rgba(255, 255, 255, 0.085) !important;
  border-radius: 0.9rem !important;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.48), inset 0 1px 0 rgba(255, 255, 255, 0.05) !important;
}

html[data-theme="light"][data-card-style="telemetry-bento"] .project-card,
html[data-theme="light"][data-card-style="telemetry-bento"] .figma-tile-card,
html[data-theme="light"][data-card-style="telemetry-bento"] .contact-panel,
html[data-theme="light"][data-card-style="telemetry-bento"] .spotlight-card,
html[data-theme="light"][data-card-style="telemetry-bento"] .contact-settings-card,
html[data-theme="light"][data-card-style="telemetry-bento"] .stat-card,
html[data-theme="light"][data-card-style="telemetry-bento"] .analytics-kpi-card {
  background: linear-gradient(170deg, #f8fafc, #eef2f6) !important;
  border: 1px solid rgba(15, 23, 42, 0.12) !important;
}

html[data-card-style="telemetry-bento"] .project-card:hover,
html[data-card-style="telemetry-bento"] .figma-tile-card:hover {
  border-color: rgba(255, 255, 255, 0.24) !important;
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.6), 0 0 0 1px var(--accent-glow) !important;
}

/* 3. Tactical Amber HUD Cockpit System (Ref 3) */
html[data-surface-mode="tactical-hud"] .ambient-glow {
  background:
    radial-gradient(ellipse 55% 45% at 22% 14%, rgba(255, 107, 44, 0.14) 0%, transparent 72%),
    linear-gradient(rgba(255, 107, 44, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 107, 44, 0.035) 1px, transparent 1px);
  background-size: 100% 100%, 48px 48px, 48px 48px;
}

html[data-surface-mode="tactical-hud"] .navbar {
  border-bottom: 1px solid rgba(255, 107, 44, 0.32);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.55);
}

html[data-surface-mode="tactical-hud"] .eyebrow,
html[data-surface-mode="tactical-hud"] .stat-label {
  letter-spacing: 0.18em;
}

html[data-card-style="hud-frame"] .project-card,
html[data-card-style="hud-frame"] .figma-tile-card,
html[data-card-style="hud-frame"] .metrics-strip,
html[data-card-style="hud-frame"] .figma-showcase-banner,
html[data-card-style="hud-frame"] .contact-panel,
html[data-card-style="hud-frame"] .process-step,
html[data-card-style="hud-frame"] .bento-card,
html[data-card-style="hud-frame"] .timeline-item,
html[data-card-style="hud-frame"] .spotlight-card,
html[data-card-style="hud-frame"] .contact-settings-card,
html[data-card-style="hud-frame"] .changelog-release-card,
html[data-card-style="hud-frame"] .stat-card,
html[data-card-style="hud-frame"] .analytics-kpi-card,
html[data-card-style="hud-frame"] .vault-auth-card,
html[data-card-style="hud-frame"] .vault-panel {
  border-radius: 3px !important;
  background-color: var(--bg-card) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  border-left: 3px solid var(--accent-primary) !important;
  border-top: 1px solid var(--border-hover) !important;
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.55) !important;
}

html[data-card-style="hud-frame"] .btn,
html[data-card-style="hud-frame"] .btn-glow,
html[data-card-style="hud-frame"] .contact-badge,
html[data-card-style="hud-frame"] .filter-pill {
  border-radius: 3px !important;
}

/* 4. Retro 1984 CRT Terminal System (Ref 4) */
html[data-surface-mode="retro-crt"] .ambient-glow {
  background:
    repeating-linear-gradient(
      to bottom,
      rgba(94, 224, 126, 0.03) 0px,
      rgba(94, 224, 126, 0.03) 1px,
      transparent 1px,
      transparent 4px
    ),
    radial-gradient(ellipse 65% 50% at 50% 25%, rgba(94, 224, 126, 0.14) 0%, transparent 74%);
}

html[data-surface-mode="retro-crt"] .navbar {
  border-bottom: 2px solid transparent;
  border-image: linear-gradient(90deg, #ef4444, #f59e0b, #eab308, #22c55e, #38bdf8) 1;
}

html[data-card-style="retro-terminal"] .project-card,
html[data-card-style="retro-terminal"] .figma-tile-card,
html[data-card-style="retro-terminal"] .metrics-strip,
html[data-card-style="retro-terminal"] .figma-showcase-banner,
html[data-card-style="retro-terminal"] .contact-panel,
html[data-card-style="retro-terminal"] .process-step,
html[data-card-style="retro-terminal"] .bento-card,
html[data-card-style="retro-terminal"] .timeline-item,
html[data-card-style="retro-terminal"] .spotlight-card,
html[data-card-style="retro-terminal"] .contact-settings-card,
html[data-card-style="retro-terminal"] .changelog-release-card,
html[data-card-style="retro-terminal"] .stat-card,
html[data-card-style="retro-terminal"] .analytics-kpi-card,
html[data-card-style="retro-terminal"] .vault-auth-card,
html[data-card-style="retro-terminal"] .vault-panel {
  border-radius: 4px !important;
  background-color: var(--bg-card) !important;
  border: 1.5px solid rgba(94, 224, 126, 0.34) !important;
  border-top: 3px solid var(--accent-primary) !important;
  box-shadow: 0 0 22px rgba(94, 224, 126, 0.08), inset 0 0 18px rgba(94, 224, 126, 0.04) !important;
}

html[data-card-style="retro-terminal"] .btn,
html[data-card-style="retro-terminal"] .btn-glow,
html[data-card-style="retro-terminal"] .social-pill,
html[data-card-style="retro-terminal"] .contact-row {
  border-radius: 4px !important;
}

/* ==========================================================================
   GPU Scroll-Reveal & Smooth 60fps Interactive Transitions
   ========================================================================== */
.project-card,
.figma-tile-card,
.process-step,
.bento-card,
.spotlight-card,
.stat-card,
.analytics-kpi-card,
.filter-pill,
.hire-me-btn,
.drawer-cta,
.theme-btn,
.btn-glow,
.social-pill {
  transition: transform 0.34s cubic-bezier(0.22, 1, 0.36, 1),
              border-color 0.24s ease,
              box-shadow 0.32s ease,
              background-color 0.24s ease,
              color 0.24s ease,
              filter 0.24s ease;
}

.reveal-on-scroll {
  opacity: 0;
  transform: translate3d(0, 18px, 0);
  transition: opacity 0.55s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.58s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}

.reveal-on-scroll.is-revealed {
  opacity: 1;
  transform: translate3d(0, 0, 0);
  will-change: auto;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .reveal-on-scroll,
  .reveal-on-scroll.is-revealed {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  *, *::before, *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}

/* ==========================================================================
   Theme-Matched Buttons, Typography & Hero/Metrics Layout Systems
   ========================================================================== */

/* Glassmorphism Buttons & Hero Framing */
html[data-surface-mode="glass"] .btn,
html[data-surface-mode="glass"] .btn-glow,
html[data-surface-mode="glass"] .hire-me-btn,
html[data-surface-mode="glass"] .drawer-cta,
html[data-surface-mode="glass"] .theme-btn,
html[data-surface-mode="glass"] .mobile-toggle,
html[data-surface-mode="glass"] .back-to-top,
html[data-surface-mode="glass"] .drawer-close,
html[data-surface-mode="glass"] .filter-pill,
html[data-surface-mode="glass"] .nav-list a,
html[data-surface-mode="glass"] .nav-figma-special {
  border-radius: 999px !important;
}

html[data-surface-mode="glass"] .btn-primary,
html[data-surface-mode="glass"] .btn-glow {
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: 0 10px 28px var(--accent-glow), inset 0 1px 0 rgba(255, 255, 255, 0.28);
}

html[data-surface-mode="glass"] .btn-outline,
html[data-surface-mode="glass"] .theme-btn,
html[data-surface-mode="glass"] .mobile-toggle,
html[data-surface-mode="glass"] .back-to-top,
html[data-surface-mode="glass"] .drawer-close,
html[data-surface-mode="glass"] .filter-pill,
html[data-surface-mode="glass"] .nav-list a.active-link {
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14);
}

html[data-surface-mode="glass"] .hire-me-btn,
html[data-surface-mode="glass"] .drawer-cta {
  background: rgba(16, 185, 129, 0.18);
  color: #6ee7b7 !important;
  border: 1px solid rgba(52, 211, 153, 0.42);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

html[data-surface-mode="glass"] .hire-me-btn:hover,
html[data-surface-mode="glass"] .drawer-cta:hover {
  background: #10b981;
  color: #042f1e !important;
}

/* Fluid Aura & Dynamic Pill Buttons & Capsule Layout */
html[data-surface-mode="aura-island"] .btn,
html[data-surface-mode="aura-island"] .btn-glow,
html[data-surface-mode="aura-island"] .hire-me-btn,
html[data-surface-mode="aura-island"] .drawer-cta,
html[data-surface-mode="aura-island"] .theme-btn,
html[data-surface-mode="aura-island"] .mobile-toggle,
html[data-surface-mode="aura-island"] .back-to-top,
html[data-surface-mode="aura-island"] .drawer-close,
html[data-surface-mode="aura-island"] .filter-pill,
html[data-surface-mode="aura-island"] .nav-list a,
html[data-surface-mode="aura-island"] .nav-figma-special,
html[data-surface-mode="aura-island"] .social-pill {
  border-radius: 999px !important;
}

html[data-surface-mode="aura-island"] .btn-primary,
html[data-surface-mode="aura-island"] .btn-glow {
  background: linear-gradient(135deg, var(--accent-primary), #fb923c);
  box-shadow: 0 10px 30px var(--accent-glow), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

html[data-surface-mode="aura-island"] .hire-me-btn,
html[data-surface-mode="aura-island"] .drawer-cta {
  background: #0d1016;
  color: #f8fafc !important;
  border: 1px solid rgba(249, 115, 22, 0.48);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.42), inset 0 1px 0 rgba(255, 255, 255, 0.16);
}

html[data-surface-mode="aura-island"] .hire-me-btn:hover,
html[data-surface-mode="aura-island"] .drawer-cta:hover {
  background: var(--accent-primary);
  color: #ffffff !important;
  border-color: var(--accent-primary);
}

html[data-surface-mode="aura-island"] .availability-tag {
  background: rgba(9, 10, 14, 0.88);
  border-color: rgba(249, 115, 22, 0.4);
  color: #fed7aa;
}

html[data-surface-mode="aura-island"] .hero-visual {
  border-radius: 28px !important;
  padding: 0.75rem;
  border: 1px solid rgba(249, 115, 22, 0.32) !important;
  box-shadow: 0 26px 56px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.08) !important;
}

html[data-surface-mode="aura-island"] .hero-visual img {
  border-radius: 20px;
}

/* Telemetry Dark Bento Buttons & Command Layout */
html[data-surface-mode="telemetry"] .btn,
html[data-surface-mode="telemetry"] .btn-glow,
html[data-surface-mode="telemetry"] .hire-me-btn,
html[data-surface-mode="telemetry"] .drawer-cta,
html[data-surface-mode="telemetry"] .theme-btn,
html[data-surface-mode="telemetry"] .mobile-toggle,
html[data-surface-mode="telemetry"] .back-to-top,
html[data-surface-mode="telemetry"] .drawer-close,
html[data-surface-mode="telemetry"] .filter-pill,
html[data-surface-mode="telemetry"] .compact-pill-btn,
html[data-surface-mode="telemetry"] .nav-list a,
html[data-surface-mode="telemetry"] .nav-figma-special,
html[data-surface-mode="telemetry"] .drawer-list a,
html[data-surface-mode="telemetry"] .availability-tag,
html[data-surface-mode="telemetry"] .studio-compact-switch,
html[data-surface-mode="telemetry"] .studio-compact-tab,
html[data-surface-mode="telemetry"] .preset-chip,
html[data-surface-mode="telemetry"] .social-pill {
  border-radius: 6px !important;
}

html[data-surface-mode="telemetry"] .theme-btn,
html[data-surface-mode="telemetry"] .mobile-toggle,
html[data-surface-mode="telemetry"] .back-to-top,
html[data-surface-mode="telemetry"] .btn-outline,
html[data-surface-mode="telemetry"] .nav-list a.active-link {
  border: 1px solid rgba(255, 255, 255, 0.16);
}

html[data-surface-mode="telemetry"] .hire-me-btn,
html[data-surface-mode="telemetry"] .drawer-cta {
  background: rgba(34, 197, 94, 0.14);
  color: #4ade80 !important;
  border: 1px solid rgba(34, 197, 94, 0.45);
  box-shadow: none;
}

html[data-surface-mode="telemetry"] .hire-me-btn:hover,
html[data-surface-mode="telemetry"] .drawer-cta:hover {
  background: #22c55e;
  color: #052e16 !important;
  box-shadow: 0 6px 20px rgba(34, 197, 94, 0.25);
}

html[data-surface-mode="telemetry"] .hero-visual {
  border-radius: 8px !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  border-top: 2px solid var(--accent-primary) !important;
}

html[data-surface-mode="telemetry"] .hero-visual img {
  border-radius: 4px;
}

html[data-surface-mode="telemetry"] .metrics-strip {
  border-top: 2px solid var(--accent-primary) !important;
  border-radius: 8px !important;
}

/* Tactical Amber HUD Buttons, Typography & Cockpit Layout */
html[data-surface-mode="tactical-hud"] .hero h1,
html[data-surface-mode="tactical-hud"] .section-heading,
html[data-surface-mode="tactical-hud"] .page-title {
  font-weight: 700;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}

html[data-surface-mode="tactical-hud"] .btn,
html[data-surface-mode="tactical-hud"] .btn-glow,
html[data-surface-mode="tactical-hud"] .hire-me-btn,
html[data-surface-mode="tactical-hud"] .drawer-cta,
html[data-surface-mode="tactical-hud"] .theme-btn,
html[data-surface-mode="tactical-hud"] .mobile-toggle,
html[data-surface-mode="tactical-hud"] .back-to-top,
html[data-surface-mode="tactical-hud"] .drawer-close,
html[data-surface-mode="tactical-hud"] .filter-pill,
html[data-surface-mode="tactical-hud"] .compact-pill-btn,
html[data-surface-mode="tactical-hud"] .nav-list a,
html[data-surface-mode="tactical-hud"] .nav-figma-special,
html[data-surface-mode="tactical-hud"] .drawer-list a,
html[data-surface-mode="tactical-hud"] .availability-tag,
html[data-surface-mode="tactical-hud"] .studio-compact-switch,
html[data-surface-mode="tactical-hud"] .studio-compact-tab,
html[data-surface-mode="tactical-hud"] .preset-chip,
html[data-surface-mode="tactical-hud"] .social-pill {
  border-radius: 2px !important;
  font-family: var(--font-mono);
  letter-spacing: 0.04em;
}

html[data-surface-mode="tactical-hud"] .btn,
html[data-surface-mode="tactical-hud"] .btn-glow,
html[data-surface-mode="tactical-hud"] .hire-me-btn,
html[data-surface-mode="tactical-hud"] .drawer-cta,
html[data-surface-mode="tactical-hud"] .filter-pill {
  font-size: 0.84rem;
}

html[data-surface-mode="tactical-hud"] .theme-btn,
html[data-surface-mode="tactical-hud"] .mobile-toggle,
html[data-surface-mode="tactical-hud"] .back-to-top,
html[data-surface-mode="tactical-hud"] .btn-outline,
html[data-surface-mode="tactical-hud"] .nav-list a.active-link {
  border: 1px solid rgba(255, 107, 44, 0.45);
}

html[data-surface-mode="tactical-hud"] .btn-primary,
html[data-surface-mode="tactical-hud"] .btn-glow {
  border: 1px solid rgba(255, 180, 120, 0.45);
  box-shadow: 0 6px 22px rgba(255, 107, 44, 0.3);
}

html[data-surface-mode="tactical-hud"] .hire-me-btn,
html[data-surface-mode="tactical-hud"] .drawer-cta {
  background: rgba(255, 107, 44, 0.14);
  color: #ffb88c !important;
  border: 1px solid var(--accent-primary);
  border-left: 3px solid var(--accent-primary);
  box-shadow: none;
}

html[data-surface-mode="tactical-hud"] .hire-me-btn:hover,
html[data-surface-mode="tactical-hud"] .drawer-cta:hover {
  background: var(--accent-primary);
  color: #0b0e14 !important;
}

html[data-surface-mode="tactical-hud"] .hero-visual {
  border-radius: 2px !important;
  border: 1px solid rgba(255, 107, 44, 0.35) !important;
  border-left: 3px solid var(--accent-primary) !important;
}

html[data-surface-mode="tactical-hud"] .hero-visual img {
  border-radius: 1px;
}

html[data-surface-mode="tactical-hud"] .metrics-strip {
  border-radius: 2px !important;
  border-left: 3px solid var(--accent-primary) !important;
  border-top: 1px solid var(--border-hover) !important;
}

/* Retro 1984 CRT Terminal Buttons, Typography & Monitor Layout */
html[data-surface-mode="retro-crt"] .hero h1,
html[data-surface-mode="retro-crt"] .section-heading,
html[data-surface-mode="retro-crt"] .page-title {
  font-weight: 400;
  letter-spacing: 0.01em;
  line-height: 1.18;
}

html[data-surface-mode="retro-crt"] .btn,
html[data-surface-mode="retro-crt"] .btn-glow,
html[data-surface-mode="retro-crt"] .hire-me-btn,
html[data-surface-mode="retro-crt"] .drawer-cta,
html[data-surface-mode="retro-crt"] .theme-btn,
html[data-surface-mode="retro-crt"] .mobile-toggle,
html[data-surface-mode="retro-crt"] .back-to-top,
html[data-surface-mode="retro-crt"] .drawer-close,
html[data-surface-mode="retro-crt"] .filter-pill,
html[data-surface-mode="retro-crt"] .compact-pill-btn,
html[data-surface-mode="retro-crt"] .nav-list a,
html[data-surface-mode="retro-crt"] .nav-figma-special,
html[data-surface-mode="retro-crt"] .drawer-list a,
html[data-surface-mode="retro-crt"] .availability-tag,
html[data-surface-mode="retro-crt"] .studio-compact-switch,
html[data-surface-mode="retro-crt"] .studio-compact-tab,
html[data-surface-mode="retro-crt"] .preset-chip,
html[data-surface-mode="retro-crt"] .social-pill {
  border-radius: 3px !important;
  font-family: var(--font-mono);
}

html[data-surface-mode="retro-crt"] .btn,
html[data-surface-mode="retro-crt"] .btn-glow,
html[data-surface-mode="retro-crt"] .hire-me-btn,
html[data-surface-mode="retro-crt"] .drawer-cta,
html[data-surface-mode="retro-crt"] .filter-pill {
  font-size: 0.84rem;
}

html[data-surface-mode="retro-crt"] .btn-outline,
html[data-surface-mode="retro-crt"] .theme-btn,
html[data-surface-mode="retro-crt"] .mobile-toggle,
html[data-surface-mode="retro-crt"] .back-to-top,
html[data-surface-mode="retro-crt"] .drawer-close,
html[data-surface-mode="retro-crt"] .nav-list a.active-link {
  border: 1.5px solid rgba(94, 224, 126, 0.45);
  color: #dcfce7;
  background: rgba(94, 224, 126, 0.08);
  box-shadow: 2px 2px 0 rgba(74, 222, 128, 0.16);
}

html[data-surface-mode="retro-crt"] .btn-primary,
html[data-surface-mode="retro-crt"] .btn-glow,
html[data-surface-mode="retro-crt"] .hire-me-btn,
html[data-surface-mode="retro-crt"] .drawer-cta {
  background: var(--accent-primary);
  color: #051609 !important;
  border: 1.5px solid #86efac;
  box-shadow: 2px 2px 0 rgba(74, 222, 128, 0.28);
}

html[data-surface-mode="retro-crt"] .btn-outline:hover,
html[data-surface-mode="retro-crt"] .theme-btn:hover,
html[data-surface-mode="retro-crt"] .mobile-toggle:hover,
html[data-surface-mode="retro-crt"] .back-to-top:hover {
  border-color: var(--accent-primary);
  background: rgba(94, 224, 126, 0.16);
  color: #ffffff;
}

html[data-surface-mode="retro-crt"] .hero-visual {
  border-radius: 4px !important;
  border: 2px solid rgba(94, 224, 126, 0.42) !important;
  border-top: 3px solid var(--accent-primary) !important;
  box-shadow: 0 0 24px rgba(74, 222, 128, 0.14), inset 0 0 22px rgba(0, 0, 0, 0.6) !important;
}

html[data-surface-mode="retro-crt"] .hero-visual img {
  border-radius: 2px;
}

html[data-surface-mode="retro-crt"] .metrics-strip {
  border-radius: 4px !important;
  border: 1.5px solid rgba(94, 224, 126, 0.36) !important;
  border-top: 3px solid var(--accent-primary) !important;
}




