/* 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: rgba(99, 102, 241, 0.14);
  border: 1px solid rgba(99, 102, 241, 0.35);
  color: var(--accent-primary);
  border-radius: 8px;
  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: #6c63ff;
  color: #ffffff !important;
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: 12px;
  box-shadow: 0 0 28px rgba(108, 99, 255, 0.45);
  transition: var(--transition);
}

.btn-glow:hover {
  background: #5b52f5;
  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 {
  height: 40px;
  padding: 0 2rem 0 0.85rem;
  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.84rem;
  outline: none;
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  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);
}

/* 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);
}

