/**
 * Orbify Pass — Estilos do Dashboard, Layout Master-Detail (2 Colunas) e Modal
 * Segue estritamente o padrão visual Orbify (pesos 400/500, zero hover scale/translateY).
 */

.pass-workspace {
  flex: 1;
  min-width: 0;
  min-height: calc(100dvh - 56px);
  display: flex;
  flex-direction: column;
  background: var(--bg-deep, #0c0c0c);
}

@media (max-width: 900px) {
  .app-sidebar {
    top: 0 !important;
    bottom: 0 !important;
    height: 100vh !important;
    height: 100dvh !important;
    max-height: 100dvh !important;
    padding-bottom: calc(2.5rem + env(safe-area-inset-bottom, 0px)) !important;
  }
}

body.dashboard-theme-white {
  --text-primary: #0f172a;
  --text-muted: #475569;
  --bg-surface: #ffffff;
  --bg-deep: #f1f5f9;
}

body.dashboard-theme-white .pass-workspace {
  background: #f1f5f9;
}

body.dashboard-theme-white .pass-view-title,
body.dashboard-theme-white .pass-card-title,
body.dashboard-theme-white .pass-ring-score,
body.dashboard-theme-white .pass-sec-stat-val,
body.dashboard-theme-white .pass-fav-title,
body.dashboard-theme-white .pass-list-title,
body.dashboard-theme-white .pass-cred-title,
body.dashboard-theme-white .pass-cred-field-val,
body.dashboard-theme-white .pass-master-title,
body.dashboard-theme-white .pass-detail-login-title,
body.dashboard-theme-white .pass-detail-field-value {
  color: #0f172a !important;
}

body.dashboard-theme-white .pass-view-subtitle,
body.dashboard-theme-white .pass-ring-label,
body.dashboard-theme-white .pass-sec-stat-top,
body.dashboard-theme-white .pass-fav-sub,
body.dashboard-theme-white .pass-cred-cat-line,
body.dashboard-theme-white .pass-cred-field-label,
body.dashboard-theme-white .pass-master-sub,
body.dashboard-theme-white .pass-detail-field-label,
body.dashboard-theme-white .pass-items-count-label {
  color: #475569 !important;
}

body.dashboard-theme-white .pass-card,
body.dashboard-theme-white .pass-cred-card,
body.dashboard-theme-white .pass-detail-field-box,
body.dashboard-theme-white .pass-detail-login-hero {
  background: #ffffff !important;
  border-color: #cbd5e1 !important;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.04) !important;
}

body.dashboard-theme-white .pass-fav-item,
body.dashboard-theme-white .pass-cred-field-row,
body.dashboard-theme-white .pass-sec-stat,
body.dashboard-theme-white .pass-master-item {
  background: #f8fafc !important;
  border-color: #cbd5e1 !important;
}

body.dashboard-theme-white .pass-master-item.active {
  background: rgba(2, 132, 199, 0.1) !important;
  border-color: #0284c7 !important;
}

.pass-open-site-link {
  color: #00fcff;
  text-decoration: none;
  font-weight: 500;
}

.pass-open-site-link:hover {
  text-decoration: underline;
}

body.dashboard-theme-white .pass-open-site-link {
  color: #0284c7 !important;
}

/* Botão "+ Adicionar Senha" no topo da Sidebar */
.pass-sidebar-cta-wrap {
  padding: 0.25rem 0.35rem 0.85rem;
}

.btn-pass-sidebar-add {
  width: 100%;
  height: 40px;
  border-radius: 10px;
  border: none;
  background: #00fcff;
  color: #051014;
  font-size: 0.84rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  transition: opacity 0.15s ease;
}

.btn-pass-sidebar-add:hover {
  opacity: 0.92;
}

body.dashboard-theme-white .btn-pass-sidebar-add {
  background: #0284c7;
  color: #ffffff;
}

/* Sidebar Counters & Dynamic Hashtags */
.pass-sidebar-count {
  margin-left: auto;
  font-size: 0.72rem;
  font-weight: 400;
  color: var(--text-muted, #9da3b4);
  background: rgba(255, 255, 255, 0.06);
  padding: 2px 8px;
  border-radius: 999px;
}

body.dashboard-theme-white .pass-sidebar-count {
  background: rgba(15, 23, 42, 0.06);
  color: #64748b;
}

.app-sidebar-item-btn.active {
  background: rgba(0, 252, 255, 0.1) !important;
  border: 1px solid rgba(0, 252, 255, 0.24) !important;
  color: #ffffff !important;
}

body.dashboard-theme-white .app-sidebar-item-btn.active {
  background: rgba(2, 132, 199, 0.1) !important;
  border: 1px solid rgba(2, 132, 199, 0.25) !important;
  color: #0284c7 !important;
}

.app-sidebar-item-btn.active .pass-sidebar-count {
  color: #051014;
  background: #00fcff;
  font-weight: 500;
}

body.dashboard-theme-white .app-sidebar-item-btn.active .pass-sidebar-count {
  color: #ffffff;
  background: #0284c7;
}

.pass-sidebar-tags-empty {
  padding: 0.5rem 0.85rem;
  font-size: 0.75rem;
  color: var(--text-muted, #9da3b4);
  opacity: 0.75;
}

.pass-tag-hash {
  color: #00fcff;
  font-family: 'JetBrains Mono', monospace;
  font-weight: 500;
  font-size: 0.81rem;
}

body.dashboard-theme-white .pass-tag-hash {
  color: #0284c7;
}

/* =========================================================================
   MODO 1: DASHBOARD CONTAINER
   ========================================================================= */
.pass-dashboard-container {
  flex: 1;
  padding: 1.5rem 2rem 3rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.pass-dashboard-container.hidden {
  display: none !important;
}

@media (max-width: 768px) {
  .pass-dashboard-container {
    padding: 1rem 1rem 2.5rem;
  }
}

.pass-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.pass-topbar-title-group {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.pass-view-title {
  font-size: 1.35rem;
  font-weight: 500;
  color: var(--text-primary, #f3f4f8);
  margin: 0;
}

.pass-view-subtitle {
  font-size: 0.82rem;
  color: var(--text-muted, #9da3b4);
  margin: 0;
}

.pass-topbar-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: nowrap;
}

.pass-search-box.pass-dashboard-search {
  width: 280px;
  flex-shrink: 0;
}

@media (max-width: 640px) {
  .pass-topbar-actions {
    width: 100%;
    flex-wrap: nowrap;
    gap: 0.5rem;
  }
  .pass-search-box.pass-dashboard-search {
    width: auto;
    flex: 1;
    min-width: 0;
  }
  .btn-pass-new {
    padding: 0 12px;
    font-size: 0.78rem;
    gap: 6px;
  }
}

.btn-pass-new {
  height: 38px;
  padding: 0 16px;
  border-radius: 10px;
  border: none;
  background: #00fcff;
  color: #061014;
  font-size: 0.84rem;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  flex-shrink: 0;
  cursor: pointer;
}

body.dashboard-theme-white .btn-pass-new {
  background: #0284c7;
  color: #ffffff;
}

/* Dashboard Top Grid: Security Score Chart + Favorites Widget */
.pass-dashboard-grid {
  display: grid;
  grid-template-columns: 1.05fr 1.25fr;
  gap: 1.25rem;
}

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

.pass-card {
  background: var(--bg-surface, #121212);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  padding: 1.25rem 1.35rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

body.dashboard-theme-white .pass-card {
  background: #ffffff;
  border-color: #e2e8f0;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.04);
}

.pass-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.pass-card-title {
  font-size: 0.94rem;
  font-weight: 500;
  color: var(--text-primary, #f3f4f8);
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.pass-card-title i {
  color: #00fcff;
  font-size: 0.88rem;
}

body.dashboard-theme-white .pass-card-title i {
  color: #0284c7;
}

.pass-card-badge {
  font-size: 0.72rem;
  font-weight: 400;
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(0, 252, 255, 0.1);
  color: #00fcff;
  border: 1px solid rgba(0, 252, 255, 0.25);
}

body.dashboard-theme-white .pass-card-badge {
  background: rgba(2, 132, 199, 0.1);
  color: #0284c7;
  border-color: rgba(2, 132, 199, 0.25);
}

/* Security Chart Layout */
.pass-security-body {
  display: flex;
  align-items: center;
  gap: 1.35rem;
}

@media (max-width: 520px) {
  .pass-security-body {
    flex-direction: column;
    align-items: flex-start;
  }
}

.pass-ring-wrap {
  position: relative;
  width: 112px;
  height: 112px;
  flex-shrink: 0;
}

.pass-ring-svg {
  width: 112px;
  height: 112px;
  transform: rotate(-90deg);
}

.pass-ring-bg {
  fill: none;
  stroke: rgba(255, 255, 255, 0.08);
  stroke-width: 9;
}

body.dashboard-theme-white .pass-ring-bg {
  stroke: #e2e8f0;
}

.pass-ring-fill {
  fill: none;
  stroke: #00fcff;
  stroke-width: 9;
  stroke-linecap: round;
  transition: stroke-dashoffset 0.5s ease, stroke 0.3s ease;
}

.pass-ring-center {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.pass-ring-score {
  font-size: 1.35rem;
  font-weight: 500;
  color: var(--text-primary, #f3f4f8);
  line-height: 1.1;
}

.pass-ring-label {
  font-size: 0.68rem;
  color: var(--text-muted, #9da3b4);
  margin-top: 2px;
}

.pass-security-metrics {
  flex: 1;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.pass-sec-bar-track {
  width: 100%;
  height: 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  overflow: hidden;
  display: flex;
  gap: 2px;
}

body.dashboard-theme-white .pass-sec-bar-track {
  background: #e2e8f0;
}

.pass-sec-seg {
  height: 100%;
  border-radius: 999px;
  cursor: pointer;
  transition: width 0.35s ease, opacity 0.15s ease;
}

.pass-sec-seg:hover {
  opacity: 0.85;
}

.pass-sec-seg.strong { background: #10b981; }
.pass-sec-seg.medium { background: #f59e0b; }
.pass-sec-seg.weak   { background: #ef4444; }

.pass-sec-legend-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
}

.pass-sec-stat {
  width: 100%;
  text-align: left;
  font-family: inherit;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  padding: 0.5rem 0.65rem;
  display: flex;
  flex-direction: column;
  gap: 2px;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.pass-sec-stat:hover {
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.05);
}

.pass-sec-stat[data-strength-filter="strong"].active {
  border-color: rgba(16, 185, 129, 0.65);
  background: rgba(16, 185, 129, 0.12);
}

.pass-sec-stat[data-strength-filter="medium"].active {
  border-color: rgba(245, 158, 11, 0.65);
  background: rgba(245, 158, 11, 0.12);
}

.pass-sec-stat[data-strength-filter="weak"].active {
  border-color: rgba(239, 68, 68, 0.65);
  background: rgba(239, 68, 68, 0.12);
}

body.dashboard-theme-white .pass-sec-stat {
  background: #f8fafc;
  border-color: #e2e8f0;
}

body.dashboard-theme-white .pass-sec-stat:hover {
  border-color: #cbd5e1;
  background: #f1f5f9;
}

.btn-clear-strength-filter {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text-muted, #9da3b4);
  font-size: 0.74rem;
  font-weight: 400;
  padding: 4px 10px;
  border-radius: 999px;
  cursor: pointer;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.btn-clear-strength-filter:hover {
  color: #00fcff;
  border-color: rgba(0, 252, 255, 0.35);
}

.btn-clear-strength-filter.hidden {
  display: none !important;
}

body.dashboard-theme-white .btn-clear-strength-filter {
  background: #f1f5f9;
  border-color: #cbd5e1;
  color: #475569;
}

.pass-sec-stat-top {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.72rem;
  color: var(--text-muted, #9da3b4);
}

.pass-sec-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
}

.pass-sec-stat-val {
  font-size: 0.98rem;
  font-weight: 500;
  color: var(--text-primary, #f3f4f8);
}

/* Favorite Passwords Widget */
.pass-favorites-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(215px, 1fr));
  gap: 0.65rem;
}

.pass-fav-item {
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 12px;
  padding: 0.68rem 0.8rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.pass-fav-item:hover {
  border-color: rgba(0, 252, 255, 0.32);
  background: rgba(0, 252, 255, 0.04);
}

body.dashboard-theme-white .pass-fav-item {
  background: #f8fafc;
  border-color: #e2e8f0;
}

.pass-fav-left {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-width: 0;
}

.pass-fav-icon {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: rgba(0, 252, 255, 0.1);
  border: 1px solid rgba(0, 252, 255, 0.22);
  color: #00fcff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  flex-shrink: 0;
}

body.dashboard-theme-white .pass-fav-icon {
  background: rgba(2, 132, 199, 0.1);
  border-color: rgba(2, 132, 199, 0.22);
  color: #0284c7;
}

.pass-fav-meta {
  min-width: 0;
}

.pass-fav-title {
  font-size: 0.84rem;
  font-weight: 500;
  color: var(--text-primary, #f3f4f8);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pass-fav-sub {
  font-size: 0.73rem;
  color: var(--text-muted, #9da3b4);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pass-fav-actions {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}

.pass-mini-icon-btn {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-muted, #9da3b4);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  cursor: pointer;
  transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

.pass-mini-icon-btn:hover {
  color: #00fcff;
  border-color: rgba(0, 252, 255, 0.35);
  background: rgba(0, 252, 255, 0.08);
}

body.dashboard-theme-white .pass-mini-icon-btn {
  background: #ffffff;
  border-color: #cbd5e1;
  color: #475569;
}

body.dashboard-theme-white .pass-mini-icon-btn:hover {
  color: #0284c7;
  border-color: #0284c7;
}

.pass-mini-icon-btn.fav-active {
  color: #facc15;
  border-color: rgba(250, 204, 21, 0.35);
}

/* Dashboard — Lista de Todas as Senhas (Grid abaixo dos Widgets) */
.pass-list-section {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.pass-list-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.pass-list-title {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-primary, #f3f4f8);
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.pass-cred-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
  gap: 1rem;
}

.pass-cred-card {
  background: var(--bg-surface, #121212);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 1.15rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  transition: border-color 0.15s ease;
}

.pass-cred-card:hover {
  border-color: rgba(0, 252, 255, 0.25);
}

body.dashboard-theme-white .pass-cred-card {
  background: #ffffff;
  border-color: #e2e8f0;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.03);
}

.pass-cred-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
}

.pass-cred-id {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
  cursor: pointer;
}

.pass-cred-avatar {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  background: rgba(0, 252, 255, 0.08);
  border: 1px solid rgba(0, 252, 255, 0.2);
  color: #00fcff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.98rem;
  flex-shrink: 0;
}

body.dashboard-theme-white .pass-cred-avatar {
  background: rgba(2, 132, 199, 0.09);
  border-color: rgba(2, 132, 199, 0.22);
  color: #0284c7;
}

.pass-cred-info {
  min-width: 0;
}

.pass-cred-title {
  font-size: 0.93rem;
  font-weight: 500;
  color: var(--text-primary, #f3f4f8);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pass-cred-cat-line {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.73rem;
  color: var(--text-muted, #9da3b4);
  margin-top: 2px;
}

.pass-cred-field-row {
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  padding: 0.52rem 0.72rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

body.dashboard-theme-white .pass-cred-field-row {
  background: #f8fafc;
  border-color: #e2e8f0;
}

.pass-cred-field-meta {
  min-width: 0;
  flex: 1;
}

.pass-cred-field-label {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted, #9da3b4);
  display: block;
}

.pass-cred-field-val {
  font-size: 0.81rem;
  color: var(--text-primary, #f3f4f8);
  font-family: 'JetBrains Mono', monospace;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pass-cred-tags-row {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-wrap: wrap;
}

.pass-tag-chip {
  font-size: 0.7rem;
  font-family: 'JetBrains Mono', monospace;
  padding: 2px 8px;
  border-radius: 6px;
  background: rgba(0, 252, 255, 0.08);
  border: 1px solid rgba(0, 252, 255, 0.2);
  color: #00fcff;
  cursor: pointer;
}

body.dashboard-theme-white .pass-tag-chip {
  background: rgba(2, 132, 199, 0.09);
  border-color: rgba(2, 132, 199, 0.22);
  color: #0284c7;
}

/* =========================================================================
   MODO 2: LAYOUT DE 2 COLUNAS (MASTER-DETAIL COMO NA IMAGEM DE REFERÊNCIA)
   ========================================================================= */
.pass-split-layout {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: 340px 1fr;
  height: calc(100dvh - 55px);
  overflow: hidden;
}

.pass-split-layout.hidden {
  display: none !important;
}

@media (max-width: 920px) {
  .pass-split-layout {
    grid-template-columns: 1fr;
    height: auto !important;
    overflow: visible !important;
  }
  .pass-list-column,
  .pass-master-list,
  .pass-detail-column {
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
  }
  .pass-list-column {
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }
}

/* 2ª Coluna: Lista de Itens da Categoria / Tag */
.pass-list-column {
  border-right: 1px solid rgba(255, 255, 255, 0.07);
  background: #0d0e10;
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
}

body.dashboard-theme-white .pass-list-column {
  background: #ffffff;
  border-right-color: #e2e8f0;
}

.pass-list-col-top {
  padding: 1rem 1rem 0.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

body.dashboard-theme-white .pass-list-col-top {
  border-bottom-color: #e2e8f0;
}

.pass-search-box {
  position: relative;
  width: 100%;
}

.pass-search-box i {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #64748b;
  font-size: 0.82rem;
  pointer-events: none;
}

.pass-search-input {
  width: 100%;
  height: 38px;
  padding: 0 12px 0 34px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: #141518;
  color: var(--text-primary, #f3f4f8);
  font-size: 0.83rem;
  outline: none;
  box-sizing: border-box;
}

.pass-search-input:focus {
  border-color: rgba(0, 252, 255, 0.45);
}

body.dashboard-theme-white .pass-search-input {
  background: #f8fafc;
  border-color: #cbd5e1;
  color: #0f172a;
}

.pass-list-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.pass-items-count-label {
  font-size: 0.68rem;
  letter-spacing: 0.04em;
  color: #64748b;
  text-transform: uppercase;
}

.pass-items-count-label strong {
  color: #cbd5e1;
  font-weight: 500;
  text-transform: none;
  margin-left: 3px;
}

body.dashboard-theme-white .pass-items-count-label strong {
  color: #334155;
}

.pass-sort-select {
  background: #141518;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 7px;
  color: #9da3b4;
  font-size: 0.72rem;
  padding: 4px 8px;
  outline: none;
  cursor: pointer;
}

body.dashboard-theme-white .pass-sort-select {
  background: #f8fafc;
  border-color: #cbd5e1;
  color: #475569;
}

/* Lista vertical de cartões/credenciais na 2ª coluna */
.pass-master-list {
  flex: 1;
  overflow-y: auto;
  padding: 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.pass-master-item {
  width: 100%;
  text-align: left;
  background: #131518;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 13px;
  padding: 0.82rem 0.9rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  cursor: pointer;
  color: inherit;
  box-sizing: border-box;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.pass-master-item:hover {
  border-color: rgba(0, 252, 255, 0.3);
}

.pass-master-item.active {
  background: rgba(0, 252, 255, 0.08);
  border-color: rgba(0, 252, 255, 0.65);
  box-shadow: 0 0 18px rgba(0, 252, 255, 0.06);
}

body.dashboard-theme-white .pass-master-item {
  background: #f8fafc;
  border-color: #e2e8f0;
}

body.dashboard-theme-white .pass-master-item.active {
  background: rgba(2, 132, 199, 0.08);
  border-color: #0284c7;
}

.pass-master-item-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
}

.pass-master-avatar {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #00fcff;
  font-size: 0.95rem;
}

body.dashboard-theme-white .pass-master-avatar {
  background: #ffffff;
  border-color: #cbd5e1;
  color: #0284c7;
}

.pass-site-favicon {
  width: 22px;
  height: 22px;
  object-fit: contain;
  border-radius: 5px;
  display: block;
}

.pass-detail-login-avatar .pass-site-favicon {
  width: 28px;
  height: 28px;
  border-radius: 6px;
}

.pass-master-info {
  min-width: 0;
}

.pass-master-title {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-primary, #f3f4f8);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 2px;
}

.pass-master-sub {
  font-size: 0.74rem;
  color: #9da3b4;
  font-family: 'JetBrains Mono', monospace;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pass-master-badge {
  font-size: 0.63rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 3px 7px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.06);
  color: #9da3b4;
  flex-shrink: 0;
}

body.dashboard-theme-white .pass-master-badge {
  background: #e2e8f0;
  color: #475569;
}

/* 3ª Coluna: Painel de Detalhes da Direita */
.pass-detail-column {
  flex: 1;
  height: 100%;
  overflow-y: auto;
  padding: 2rem 2.5rem 3.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

@media (max-width: 768px) {
  .pass-detail-column {
    padding: 1.25rem 1rem 2.5rem;
  }
}

.pass-detail-inner {
  width: 100%;
  max-width: 620px;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.pass-detail-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.25rem;
}

.pass-detail-tags-row {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.pass-detail-cat-tag {
  font-size: 0.68rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 4px 10px;
  border-radius: 6px;
  background: rgba(0, 252, 255, 0.12);
  color: #00fcff;
  border: 1px solid rgba(0, 252, 255, 0.28);
}

body.dashboard-theme-white .pass-detail-cat-tag {
  background: rgba(2, 132, 199, 0.12);
  color: #0284c7;
  border-color: rgba(2, 132, 199, 0.28);
}

.pass-detail-hash-tag {
  font-size: 0.72rem;
  font-family: 'JetBrains Mono', monospace;
  padding: 3px 9px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.05);
  color: #cbd5e1;
  border: 1px solid rgba(255, 255, 255, 0.1);
  cursor: pointer;
}

body.dashboard-theme-white .pass-detail-hash-tag {
  background: #f1f5f9;
  color: #334155;
  border-color: #cbd5e1;
}

/* Cartão de Crédito Realista (Igual à imagem enviada) */
.pass-credit-card-showcase {
  display: flex;
  justify-content: center;
  margin: 0.25rem 0 0.85rem;
}

.pass-credit-card-visual {
  width: 100%;
  max-width: 390px;
  min-height: 222px;
  border-radius: 18px;
  padding: 1.5rem 1.65rem;
  background: radial-gradient(circle at 85% 20%, rgba(30, 41, 59, 0.65) 0%, #0d1017 65%, #08090c 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 22px 48px rgba(0, 0, 0, 0.65);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: #f8fafc;
  box-sizing: border-box;
}

.pass-cc-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.pass-cc-chip {
  width: 44px;
  height: 33px;
  border-radius: 7px;
  background: linear-gradient(135deg, #facc15 0%, #eab308 55%, #ca8a04 100%);
  border: 1px solid rgba(0, 0, 0, 0.25);
  position: relative;
  overflow: hidden;
}

.pass-cc-chip::before,
.pass-cc-chip::after {
  content: '';
  position: absolute;
  background: rgba(0, 0, 0, 0.22);
}

.pass-cc-chip::before {
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
}

.pass-cc-chip::after {
  left: 50%;
  top: 0;
  bottom: 0;
  width: 1px;
}

.pass-cc-brand-circles {
  display: inline-flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.05);
  padding: 6px 10px;
  border-radius: 8px;
}

.pass-cc-circle-red {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #ef4444;
}

.pass-cc-circle-orange {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #f59e0b;
  margin-left: -7px;
  opacity: 0.9;
}

.pass-cc-number {
  font-family: 'JetBrains Mono', monospace;
  font-size: 1.22rem;
  letter-spacing: 0.16em;
  color: #ffffff;
  text-align: center;
  margin: 1.2rem 0;
}

.pass-cc-bottom {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
}

.pass-cc-meta-label {
  display: block;
  font-size: 0.58rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #64748b;
  margin-bottom: 3px;
}

.pass-cc-meta-val {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.78rem;
  font-weight: 500;
  color: #f1f5f9;
  text-transform: uppercase;
}

/* Cabeçalho para Credencial de Login / Senha no Painel de Detalhes */
.pass-detail-login-hero {
  background: #121518;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 16px;
  padding: 1.25rem 1.35rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

body.dashboard-theme-white .pass-detail-login-hero {
  background: #ffffff;
  border-color: #e2e8f0;
}

.pass-detail-login-id {
  display: flex;
  align-items: center;
  gap: 0.95rem;
  min-width: 0;
}

.pass-detail-login-avatar {
  width: 48px;
  height: 48px;
  border-radius: 13px;
  background: rgba(0, 252, 255, 0.1);
  border: 1px solid rgba(0, 252, 255, 0.25);
  color: #00fcff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

body.dashboard-theme-white .pass-detail-login-avatar {
  background: rgba(2, 132, 199, 0.1);
  border-color: rgba(2, 132, 199, 0.25);
  color: #0284c7;
}

.pass-detail-login-title {
  font-size: 1.18rem;
  font-weight: 500;
  color: var(--text-primary, #f3f4f8);
  margin: 0 0 3px;
}

/* Caixas Empilhadas de Campos (Fiel à imagem de referência) */
.pass-detail-field-box {
  background: #111517;
  border: 1px solid rgba(0, 252, 255, 0.09);
  border-radius: 13px;
  padding: 0.95rem 1.15rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

body.dashboard-theme-white .pass-detail-field-box {
  background: #ffffff;
  border-color: #e2e8f0;
}

.pass-detail-field-content {
  min-width: 0;
  flex: 1;
}

.pass-detail-field-label {
  display: block;
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #64748b;
  margin-bottom: 5px;
}

.pass-detail-field-value {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.92rem;
  color: var(--text-primary, #f3f4f8);
  word-break: break-all;
}

.pass-detail-field-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.pass-detail-action-btn {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  color: #9da3b4;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.84rem;
  cursor: pointer;
  transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

.pass-detail-action-btn:hover {
  color: #00fcff;
  border-color: rgba(0, 252, 255, 0.35);
  background: rgba(0, 252, 255, 0.08);
}

body.dashboard-theme-white .pass-detail-action-btn {
  background: #f8fafc;
  border-color: #cbd5e1;
  color: #475569;
}

body.dashboard-theme-white .pass-detail-action-btn:hover {
  color: #0284c7;
  border-color: #0284c7;
}

.pass-empty-state {
  background: var(--bg-surface, #121212);
  border: 1px dashed rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  padding: 2.5rem 1.5rem;
  text-align: center;
  color: var(--text-muted, #9da3b4);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.65rem;
}

body.dashboard-theme-white .pass-empty-state {
  background: #ffffff;
  border-color: #cbd5e1;
}

/* =========================================================================
   MODAL: ADICIONAR / EDITAR CREDENCIAL (LAYOUT FIEL ÀS REFERÊNCIAS)
   ========================================================================= */
.pass-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 9500;
  background: rgba(6, 8, 12, 0.78);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.pass-modal-backdrop.hidden {
  display: none !important;
}

.pass-modal-dialog {
  width: 100%;
  max-width: 540px;
  max-height: 92vh;
  background: #141517;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 18px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.7);
  color: #f3f4f8;
}

body.dashboard-theme-white .pass-modal-dialog {
  background: #ffffff;
  border-color: #e2e8f0;
  color: #0f172a;
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.15);
}

.pass-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

body.dashboard-theme-white .pass-modal-header {
  border-bottom-color: #e2e8f0;
}

.pass-modal-title {
  font-size: 1.12rem;
  font-weight: 500;
  margin: 0;
}

.pass-modal-close {
  background: none;
  border: none;
  color: #9da3b4;
  font-size: 1.15rem;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 8px;
}

.pass-modal-close:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.06);
}

body.dashboard-theme-white .pass-modal-close:hover {
  color: #0f172a;
  background: #f1f5f9;
}

.pass-modal-body {
  padding: 1.35rem 1.5rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 1.05rem;
}

.pass-form-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.9rem;
}

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

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

.pass-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.pass-form-label {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #9da3b4;
}

body.dashboard-theme-white .pass-form-label {
  color: #64748b;
}

.pass-label-hint {
  font-size: 0.72rem;
  color: #64748b;
}

.btn-pass-generate-pwd {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.69rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: #00fcff;
  background: rgba(0, 252, 255, 0.08);
  border: 1px solid rgba(0, 252, 255, 0.35);
  border-radius: 7px;
  padding: 4px 10px;
  cursor: pointer;
}

.btn-pass-generate-pwd:hover {
  background: rgba(0, 252, 255, 0.16);
}

body.dashboard-theme-white .btn-pass-generate-pwd {
  color: #0284c7;
  background: rgba(2, 132, 199, 0.08);
  border-color: rgba(2, 132, 199, 0.35);
}

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

.pass-input-left-icon {
  position: absolute;
  left: 13px;
  color: #64748b;
  font-size: 0.85rem;
  pointer-events: none;
}

.pass-input,
.pass-select,
.pass-textarea {
  width: 100%;
  background: #1a1c1f;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 10px;
  padding: 0.7rem 0.9rem;
  color: #f3f4f8;
  font-size: 0.88rem;
  font-family: inherit;
  outline: none;
  box-sizing: border-box;
  transition: border-color 0.15s ease;
}

.pass-input.has-left-icon {
  padding-left: 2.3rem;
}

.pass-input.has-right-icon {
  padding-right: 2.4rem;
}

.pass-input:focus,
.pass-select:focus,
.pass-textarea:focus {
  border-color: #00fcff;
}

body.dashboard-theme-white .pass-input,
body.dashboard-theme-white .pass-select,
body.dashboard-theme-white .pass-textarea {
  background: #f8fafc;
  border-color: #cbd5e1;
  color: #0f172a;
}

body.dashboard-theme-white .pass-input:focus,
body.dashboard-theme-white .pass-select:focus,
body.dashboard-theme-white .pass-textarea:focus {
  border-color: #0284c7;
}

.pass-input-eye-btn {
  position: absolute;
  right: 10px;
  background: none;
  border: none;
  color: #64748b;
  cursor: pointer;
  padding: 4px 6px;
  font-size: 0.88rem;
}

.pass-input-eye-btn:hover {
  color: #00fcff;
}

.pass-dashed-divider {
  border: none;
  border-top: 1px dashed rgba(255, 255, 255, 0.1);
  margin: 0.15rem 0;
}

body.dashboard-theme-white .pass-dashed-divider {
  border-top-color: #cbd5e1;
}

.pass-existing-tags-box {
  background: #1a1c1f;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 0.55rem 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

body.dashboard-theme-white .pass-existing-tags-box {
  background: #f8fafc;
  border-color: #e2e8f0;
}

.pass-existing-tags-label {
  font-size: 0.68rem;
  font-weight: 500;
  text-transform: uppercase;
  color: #64748b;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.pass-existing-tag-chip {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 7px;
  padding: 3px 9px;
  font-size: 0.73rem;
  font-family: 'JetBrains Mono', monospace;
  color: #cbd5e1;
  cursor: pointer;
}

.pass-existing-tag-chip:hover {
  border-color: #00fcff;
  color: #00fcff;
  background: rgba(0, 252, 255, 0.08);
}

body.dashboard-theme-white .pass-existing-tag-chip {
  background: #ffffff;
  border-color: #cbd5e1;
  color: #334155;
}

body.dashboard-theme-white .pass-existing-tag-chip:hover {
  border-color: #0284c7;
  color: #0284c7;
}

.pass-textarea {
  min-height: 82px;
  resize: vertical;
}

.pass-modal-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.75rem;
  padding: 1rem 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(0, 0, 0, 0.2);
}

body.dashboard-theme-white .pass-modal-footer {
  border-top-color: #e2e8f0;
  background: #f8fafc;
}

.btn-pass-modal-cancel {
  height: 40px;
  padding: 0 18px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: #cbd5e1;
  font-size: 0.86rem;
  font-weight: 400;
  cursor: pointer;
}

.btn-pass-modal-cancel:hover {
  background: rgba(255, 255, 255, 0.08);
}

body.dashboard-theme-white .btn-pass-modal-cancel {
  background: #ffffff;
  border-color: #cbd5e1;
  color: #334155;
}

.btn-pass-modal-save {
  height: 40px;
  padding: 0 22px;
  border-radius: 10px;
  border: none;
  background: #00fcff;
  color: #061014;
  font-size: 0.86rem;
  font-weight: 500;
  cursor: pointer;
}

.btn-pass-modal-save:hover {
  opacity: 0.92;
}

body.dashboard-theme-white .btn-pass-modal-save {
  background: #0284c7;
  color: #ffffff;
}
