/* ============================================================
   OnePass Design System
   Premium dark-mode UI with glassmorphism
   ============================================================ */

/* Google Fonts - Inter */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

/* ============================================================
   1. CSS CUSTOM PROPERTIES
   ============================================================ */
:root {
  /* Colors */
  --bg-primary: #0d0d0d;
  --bg-secondary: #141414;
  --bg-card: #1a1a1a;
  --surface-glass: rgba(255, 255, 255, 0.05);
  --surface-hover: rgba(255, 255, 255, 0.08);
  --border-default: rgba(255, 255, 255, 0.1);
  --border-subtle: rgba(255, 255, 255, 0.06);
  --text-primary: #ffffff;
  --text-secondary: rgba(255, 255, 255, 0.6);
  --text-tertiary: rgba(255, 255, 255, 0.4);
  --text-placeholder: rgba(255, 255, 255, 0.3);
  --accent: #6c5ce7;
  --accent-light: #a29bfe;
  --accent-bg: rgba(108, 92, 231, 0.2);
  --accent-border: rgba(108, 92, 231, 0.3);
  --accent-shadow: rgba(108, 92, 231, 0.5);
  --success: #00b894;
  --success-bg: rgba(0, 184, 148, 0.15);
  --warning: #fdcb6e;
  --warning-bg: rgba(253, 203, 110, 0.15);
  --danger: #e17055;
  --danger-bg: rgba(225, 112, 85, 0.12);
  --danger-border: rgba(225, 112, 85, 0.25);
  --info: #74b9ff;
  --info-bg: rgba(116, 185, 255, 0.15);
  --gradient: linear-gradient(135deg, #6c5ce7, #a29bfe);

  /* Spacing */
  --spacing-xs: 4px;
  --spacing-sm: 8px;
  --spacing-md: 16px;
  --spacing-lg: 24px;
  --spacing-xl: 32px;
  --spacing-2xl: 40px;
  --spacing-3xl: 48px;

  /* Border Radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.2);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.4);
  --shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.5);
  --shadow-accent: 0 4px 20px rgba(108, 92, 231, 0.5);
  --shadow-accent-lg: 0 8px 32px rgba(108, 92, 231, 0.4);

  /* Transitions */
  --transition-fast: 0.15s ease;
  --transition-normal: 0.3s ease;
  --transition-slow: 0.5s ease;
  --transition-bounce: 0.35s cubic-bezier(0.16, 1, 0.3, 1);

  /* Typography */
  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.5rem;
  --text-3xl: 2rem;
  --text-4xl: 2.5rem;

  /* Z-Index Scale */
  --z-sticky: 50;
  --z-fab: 60;
  --z-nav: 100;
  --z-overlay: 900;
  --z-modal: 1000;
  --z-toast: 1100;
  --z-confirm: 1200;
}

/* ============================================================
   2. CSS RESET
   ============================================================ */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  -ms-text-size-adjust: 100%;
  height: 100%;
}

body {
  font-family: var(--font-family);
  font-size: var(--text-base);
  color: var(--text-primary);
  background-color: var(--bg-primary);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  min-height: 100%;
  overflow-x: hidden;
}

img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
}

input,
button,
textarea,
select {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  border: none;
  background: transparent;
}

a {
  color: inherit;
  text-decoration: none;
}

ul,
ol {
  list-style: none;
}

h1, h2, h3, h4, h5, h6 {
  overflow-wrap: break-word;
  font-weight: 700;
}

p {
  overflow-wrap: break-word;
}

/* ============================================================
   3. CUSTOM SCROLLBAR
   ============================================================ */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.2);
}

* {
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.12) transparent;
}

/* ============================================================
   4. UTILITY CLASSES
   ============================================================ */
.hidden { display: none !important; }
.invisible { visibility: hidden; }
.flex { display: flex; }
.flex-col { display: flex; flex-direction: column; }
.flex-row { display: flex; flex-direction: row; }
.flex-wrap { flex-wrap: wrap; }
.flex-1 { flex: 1; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.items-end { align-items: flex-end; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.justify-around { justify-content: space-around; }
.gap-xs { gap: var(--spacing-xs); }
.gap-sm { gap: var(--spacing-sm); }
.gap-md { gap: var(--spacing-md); }
.gap-lg { gap: var(--spacing-lg); }
.gap-xl { gap: var(--spacing-xl); }
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.text-secondary { color: var(--text-secondary) !important; }
.text-tertiary { color: var(--text-tertiary) !important; }
.text-accent { color: var(--accent-light) !important; }
.text-danger { color: var(--danger) !important; }
.text-success { color: var(--success) !important; }
.font-bold { font-weight: 700; }
.font-semibold { font-weight: 600; }
.font-medium { font-weight: 500; }
.mt-xs { margin-top: var(--spacing-xs); }
.mt-sm { margin-top: var(--spacing-sm); }
.mt-md { margin-top: var(--spacing-md); }
.mt-lg { margin-top: var(--spacing-lg); }
.mt-xl { margin-top: var(--spacing-xl); }
.mb-sm { margin-bottom: var(--spacing-sm); }
.mb-md { margin-bottom: var(--spacing-md); }
.mb-lg { margin-bottom: var(--spacing-lg); }
.w-full { width: 100%; }
.truncate { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border-width: 0; }

/* ============================================================
   5. APP CONTAINER
   ============================================================ */
.app-container {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  background-color: var(--bg-primary);
  display: flex;
  flex-direction: column;
  max-width: 100%;
  overflow-x: hidden;
}

/* ============================================================
   6. SCREENS
   ============================================================ */
.screen {
  display: none;
  opacity: 0;
  padding: 20px;
  flex-direction: column;
  gap: 20px;
  flex: 1;
}

.screen.active {
  display: flex;
  opacity: 1;
  animation: fadeIn 0.3s ease forwards;
}

/* ============================================================
   7. HEADER
   ============================================================ */
.header {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  padding: 16px 4px;
  position: sticky;
  top: 0;
  z-index: var(--z-sticky);
  background-color: var(--bg-primary);
}

.header .logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: var(--text-xl);
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

.header .logo .material-icons-round {
  color: var(--accent);
  font-size: 28px;
}

.header-actions {
  display: flex;
  gap: 4px;
  align-items: center;
}

/* ============================================================
   8. HERO TEXT
   ============================================================ */
.hero-text {
  font-size: 2.25rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 4px;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

.hero-text .accent-text {
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  color: var(--text-secondary);
  font-size: var(--text-sm);
  line-height: 1.5;
  margin-bottom: 8px;
}

/* ============================================================
   9. SEARCH BAR
   ============================================================ */
.search-bar {
  position: relative;
  width: 100%;
}

.search-bar input {
  width: 100%;
  padding: 14px 16px 14px 48px;
  background: var(--surface-glass);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-xl);
  color: var(--text-primary);
  font-size: 0.95rem;
  font-family: var(--font-family);
  transition: all var(--transition-normal);
  outline: none;
}

.search-bar input::placeholder {
  color: var(--text-placeholder);
}

.search-bar input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(108, 92, 231, 0.2);
}

.search-bar .search-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-tertiary);
  font-size: 22px;
  pointer-events: none;
}

.search-bar .filter-btn {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  padding: 6px 14px;
  background: var(--surface-hover);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  color: var(--text-secondary);
  font-size: 0.8rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: all var(--transition-fast);
  font-family: var(--font-family);
}

.search-bar .filter-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  color: var(--text-primary);
}

.search-bar .filter-btn .material-icons-round {
  font-size: 16px;
}

/* ============================================================
   10. BANNER CARD
   ============================================================ */
.banner-card {
  background: var(--surface-glass);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 14px;
  cursor: pointer;
  transition: all var(--transition-normal);
}

.banner-card:hover {
  transform: scale(1.02);
  background: rgba(255, 255, 255, 0.07);
  border-color: var(--border-default);
}

.banner-card:active {
  transform: scale(0.99);
}

.banner-icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: var(--gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.banner-icon .material-icons-round {
  color: white;
  font-size: 22px;
}

.banner-text {
  flex: 1;
  min-width: 0;
}

.banner-text h4 {
  color: var(--text-primary);
  font-weight: 600;
  font-size: 0.95rem;
  margin: 0 0 2px 0;
}

.banner-text p {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.8rem;
  margin: 0;
}

.banner-arrow {
  color: rgba(255, 255, 255, 0.3);
  margin-left: auto;
  flex-shrink: 0;
}

/* ============================================================
   11. CATEGORY PILLS
   ============================================================ */
.category-pills {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 4px 0;
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.category-pills::-webkit-scrollbar {
  display: none;
}

.category-pill {
  padding: 8px 20px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-size: 0.85rem;
  cursor: pointer;
  transition: all var(--transition-normal);
  white-space: nowrap;
  flex-shrink: 0;
  font-weight: 500;
  font-family: var(--font-family);
  -webkit-tap-highlight-color: transparent;
}

.category-pill:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
}

.category-pill.active {
  background: var(--gradient);
  color: white;
  font-weight: 600;
  border-color: transparent;
  box-shadow: 0 2px 12px rgba(108, 92, 231, 0.3);
}

/* ============================================================
   12. SECTION HEADER
   ============================================================ */
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 4px;
}

.section-header h3 {
  font-weight: 600;
  font-size: var(--text-base);
  color: var(--text-primary);
  margin: 0;
}

.section-header a,
.section-header span.section-count {
  color: var(--text-secondary);
  font-size: var(--text-sm);
  text-decoration: none;
  transition: color var(--transition-normal);
}

.section-header a:hover {
  color: var(--accent-light);
}

/* ============================================================
   13. VAULT LIST & ITEMS
   ============================================================ */
.vault-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding-bottom: 100px;
}

.date-group-label {
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 1px;
  color: rgba(255, 255, 255, 0.35);
  font-weight: 600;
  padding: 16px 4px 8px;
}

.vault-item {
  display: flex;
  padding: 14px 12px;
  align-items: center;
  gap: 14px;
  border-radius: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}

.vault-item:hover {
  background: var(--surface-glass);
}

.vault-item:active {
  background: var(--surface-hover);
  transform: scale(0.99);
}

.vault-favicon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--surface-hover);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
}

.vault-favicon img {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.vault-favicon .material-icons-round {
  color: var(--text-tertiary);
  font-size: 22px;
}

.vault-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.vault-title {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.vault-subtitle {
  color: rgba(255, 255, 255, 0.45);
  font-size: 0.8rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

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

.vault-copy-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  color: rgba(255, 255, 255, 0.5);
  -webkit-tap-highlight-color: transparent;
}

.vault-copy-btn:hover {
  background: var(--accent-bg);
  color: var(--accent-light);
  border-color: var(--accent-border);
}

.vault-copy-btn:active {
  transform: scale(0.9);
}

.vault-copy-btn .material-icons-round {
  font-size: 18px;
}

/* ============================================================
   14. FAB (Floating Action Button)
   ============================================================ */
.fab {
  position: fixed;
  bottom: 90px;
  right: 20px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-accent);
  cursor: pointer;
  z-index: var(--z-fab);
  transition: all var(--transition-normal);
  border: none;
  -webkit-tap-highlight-color: transparent;
}

.fab:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 28px rgba(108, 92, 231, 0.6);
}

.fab:active {
  transform: scale(0.95);
}

.fab .material-icons-round {
  color: white;
  font-size: 28px;
}

/* ============================================================
   15. BOTTOM NAVIGATION
   ============================================================ */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(13, 13, 13, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid var(--border-subtle);
  display: flex;
  justify-content: space-around;
  padding: 8px 0;
  padding-bottom: max(8px, env(safe-area-inset-bottom));
  z-index: var(--z-nav);
}

.bottom-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 6px 16px;
  cursor: pointer;
  transition: all var(--transition-normal);
  color: var(--text-tertiary);
  font-size: 0.65rem;
  font-weight: 500;
  position: relative;
  -webkit-tap-highlight-color: transparent;
  border: none;
  background: transparent;
}

.bottom-nav-item:hover {
  color: var(--text-secondary);
}

.bottom-nav-item.active {
  color: var(--accent);
}

.bottom-nav-item.active::after {
  content: '';
  position: absolute;
  top: -8px;
  width: 20px;
  height: 3px;
  background: var(--gradient);
  border-radius: 0 0 4px 4px;
}

.bottom-nav-item .material-icons-round {
  font-size: 24px;
}

/* ============================================================
   16. MODAL OVERLAY & MODAL
   ============================================================ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: var(--z-overlay);
  display: none;
  align-items: flex-end;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--transition-normal);
}

.modal-overlay.active {
  display: flex;
  opacity: 1;
}

.modal {
  width: 100%;
  max-width: 520px;
  max-height: 92vh;
  background: var(--bg-card);
  border-top-left-radius: var(--radius-xl);
  border-top-right-radius: var(--radius-xl);
  padding: 24px;
  padding-top: 16px;
  overflow-y: auto;
  transform: translateY(100%);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  border-top: 1px solid var(--border-subtle);
}

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

.modal-handle {
  width: 36px;
  height: 4px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 2px;
  margin: 0 auto 16px;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.modal-header h2 {
  font-weight: 700;
  font-size: var(--text-xl);
  color: var(--text-primary);
  margin: 0;
}

.modal-close {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--surface-hover);
  border: none;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.modal-close:hover {
  background: rgba(255, 255, 255, 0.15);
  color: var(--text-primary);
}

/* ============================================================
   17. FORM ELEMENTS
   ============================================================ */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
}

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

.input {
  width: 100%;
  padding: 14px 16px;
  background: var(--surface-glass);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-size: 0.95rem;
  font-family: var(--font-family);
  transition: all var(--transition-normal);
  box-sizing: border-box;
  outline: none;
}

.input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(108, 92, 231, 0.2);
}

.input::placeholder {
  color: var(--text-placeholder);
}

.input:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

textarea.input {
  min-height: 80px;
  resize: vertical;
  line-height: 1.5;
}

select.input {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='rgba(255,255,255,0.4)'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 40px;
  cursor: pointer;
}

select.input option {
  background: var(--bg-card);
  color: var(--text-primary);
}

/* Password Input Wrapper */
.password-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.password-input-wrapper .input {
  padding-right: 120px;
}

.password-input-wrapper .toggle-visibility {
  position: absolute;
  right: 84px;
  background: none;
  border: none;
  color: var(--text-tertiary);
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color var(--transition-fast);
}

.password-input-wrapper .toggle-visibility:hover {
  color: var(--text-secondary);
}

.password-input-wrapper .generate-btn {
  position: absolute;
  right: 44px;
  background: none;
  border: none;
  color: var(--accent-light);
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color var(--transition-fast);
}

.password-input-wrapper .generate-btn:hover {
  color: var(--accent);
}

.password-input-wrapper .copy-btn {
  position: absolute;
  right: 8px;
  background: none;
  border: none;
  color: var(--text-tertiary);
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color var(--transition-fast);
}

.password-input-wrapper .copy-btn:hover {
  color: var(--text-secondary);
}

/* ============================================================
   18. BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 24px;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all var(--transition-normal);
  border: none;
  font-family: var(--font-family);
  -webkit-tap-highlight-color: transparent;
  line-height: 1;
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none !important;
}

.btn:active:not(:disabled) {
  transform: scale(0.98);
}

.btn-primary {
  background: var(--gradient);
  color: white;
  box-shadow: 0 4px 16px rgba(108, 92, 231, 0.3);
}

.btn-primary:hover:not(:disabled) {
  box-shadow: 0 6px 24px rgba(108, 92, 231, 0.4);
  filter: brightness(1.1);
}

.btn-secondary {
  background: var(--surface-hover);
  color: var(--text-primary);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.btn-secondary:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.12);
}

.btn-danger {
  background: var(--danger-bg);
  color: var(--danger);
  border: 1px solid var(--danger-border);
}

.btn-danger:hover:not(:disabled) {
  background: rgba(225, 112, 85, 0.2);
}

.btn-icon {
  width: 40px;
  height: 40px;
  padding: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--text-secondary);
  border: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-icon:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
}

.btn-sm {
  padding: 10px 16px;
  font-size: var(--text-sm);
}

.btn-block {
  width: 100%;
}

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  padding: 10px 16px;
}

.btn-ghost:hover {
  background: var(--surface-glass);
  color: var(--text-primary);
}

/* ============================================================
   19. PASSWORD STRENGTH BAR
   ============================================================ */
.password-strength-bar {
  height: 4px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
  margin-top: 4px;
}

.password-strength-fill {
  height: 100%;
  border-radius: var(--radius-full);
  transition: width 0.4s ease, background-color 0.4s ease;
  background: #666;
}

.strength-weak .password-strength-fill { background: var(--danger); }
.strength-fair .password-strength-fill { background: var(--warning); }
.strength-good .password-strength-fill { background: var(--info); }
.strength-strong .password-strength-fill { background: var(--success); }

.strength-label {
  font-size: 0.8rem;
  margin-top: 6px;
  font-weight: 500;
}

/* ============================================================
   20. TOGGLE SWITCH
   ============================================================ */
.toggle-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid var(--border-subtle);
}

.toggle-container:last-child {
  border-bottom: none;
}

.toggle-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.toggle-label {
  font-size: 0.95rem;
  color: var(--text-primary);
  font-weight: 500;
}

.toggle-sublabel {
  font-size: 0.8rem;
  color: var(--text-tertiary);
  margin-top: 2px;
}

.toggle-switch {
  position: relative;
  width: 48px;
  height: 28px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: background var(--transition-normal);
  flex-shrink: 0;
}

.toggle-switch.active {
  background: var(--accent);
}

.toggle-switch::after {
  content: '';
  position: absolute;
  width: 22px;
  height: 22px;
  background: white;
  border-radius: 50%;
  top: 3px;
  left: 3px;
  transition: transform var(--transition-normal);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.toggle-switch.active::after {
  transform: translateX(20px);
}

/* ============================================================
   21. BADGES
   ============================================================ */
.badge {
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: inline-flex;
  align-items: center;
}

.badge-login {
  background: rgba(108, 92, 231, 0.15);
  color: var(--accent-light);
}

.badge-card {
  background: var(--success-bg);
  color: var(--success);
}

.badge-note {
  background: var(--warning-bg);
  color: var(--warning);
}

.badge-identity {
  background: var(--info-bg);
  color: var(--info);
}

/* ============================================================
   22. EMPTY STATE
   ============================================================ */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  text-align: center;
}

.empty-state .material-icons-round {
  font-size: 64px;
  color: rgba(255, 255, 255, 0.15);
  margin-bottom: 16px;
}

.empty-state h3 {
  color: rgba(255, 255, 255, 0.5);
  font-weight: 600;
  margin: 0 0 8px;
  font-size: 1.1rem;
}

.empty-state p {
  color: rgba(255, 255, 255, 0.3);
  font-size: 0.9rem;
  margin: 0;
  max-width: 260px;
  line-height: 1.5;
}

/* ============================================================
   23. TOAST NOTIFICATIONS
   ============================================================ */
.toast-container {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: var(--z-toast);
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: calc(100% - 40px);
  max-width: 400px;
  pointer-events: none;
}

.toast {
  padding: 14px 20px;
  border-radius: 14px;
  background: rgba(26, 26, 26, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  gap: 12px;
  animation: slideDown 0.3s ease forwards;
  pointer-events: all;
  box-shadow: var(--shadow-lg);
}

.toast-success { border-left: 3px solid var(--success); }
.toast-error { border-left: 3px solid var(--danger); }
.toast-warning { border-left: 3px solid var(--warning); }
.toast-info { border-left: 3px solid var(--info); }

.toast .material-icons-round { font-size: 20px; }
.toast-success .material-icons-round { color: var(--success); }
.toast-error .material-icons-round { color: var(--danger); }
.toast-warning .material-icons-round { color: var(--warning); }
.toast-info .material-icons-round { color: var(--info); }

.toast-message {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--text-primary);
  flex: 1;
}

.toast-dismiss {
  background: none;
  border: none;
  color: var(--text-tertiary);
  cursor: pointer;
  padding: 2px;
  display: flex;
}

.toast-dismiss:hover {
  color: var(--text-secondary);
}

/* ============================================================
   24. SETTINGS
   ============================================================ */
.settings-group {
  margin-bottom: 28px;
}

.settings-group-title {
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: rgba(255, 255, 255, 0.3);
  margin-bottom: 12px;
  font-weight: 600;
  padding-left: 4px;
}

.settings-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  margin-bottom: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}

.settings-item:hover {
  background: rgba(255, 255, 255, 0.07);
}

.settings-item:active {
  background: var(--surface-hover);
}

.settings-item-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.settings-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.settings-icon .material-icons-round {
  font-size: 20px;
  color: var(--text-secondary);
}

.settings-icon.accent .material-icons-round {
  color: var(--accent-light);
}

.settings-icon.danger .material-icons-round {
  color: var(--danger);
}

.settings-info {
  display: flex;
  flex-direction: column;
}

.settings-label {
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--text-primary);
}

.settings-desc {
  font-size: 0.8rem;
  color: var(--text-tertiary);
  margin-top: 2px;
}

.settings-item-right {
  display: flex;
  align-items: center;
}

.settings-item-right .material-icons-round {
  color: rgba(255, 255, 255, 0.3);
  font-size: 20px;
}

.settings-version {
  text-align: center;
  padding: 24px 0;
  color: rgba(255, 255, 255, 0.2);
  font-size: 0.8rem;
}

/* ============================================================
   25. HEALTH SCORE
   ============================================================ */
.health-score-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  border-radius: 20px;
  padding: 32px 24px;
  text-align: center;
  margin-bottom: 24px;
}

.health-score-circle {
  width: 140px;
  height: 140px;
  margin: 0 auto 20px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}

.health-score-circle svg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.health-score-circle .score-text {
  font-size: var(--text-4xl);
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1;
}

.health-score-circle .score-label {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  margin-top: 4px;
}

.health-score-title {
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.health-score-desc {
  font-size: var(--text-sm);
  color: var(--text-secondary);
}

.health-stat-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.health-stat-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 20px 12px;
  text-align: center;
}

.health-stat-card .stat-value {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.health-stat-card .stat-label {
  font-size: 0.7rem;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.health-stat-card.danger .stat-value { color: var(--danger); }
.health-stat-card.warning .stat-value { color: var(--warning); }
.health-stat-card.info .stat-value { color: var(--info); }

/* ============================================================
   26. SLIDER (Password Length)
   ============================================================ */
.slider-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 8px 0;
}

.slider-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.slider-label {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-primary);
}

.slider-value {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--accent-light);
  min-width: 40px;
  text-align: right;
}

.slider {
  width: 100%;
  height: 6px;
  -webkit-appearance: none;
  appearance: none;
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-full);
  outline: none;
  cursor: pointer;
}

.slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 22px;
  height: 22px;
  background: var(--accent);
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(108, 92, 231, 0.5);
  transition: transform var(--transition-fast);
}

.slider::-webkit-slider-thumb:hover {
  transform: scale(1.15);
}

.slider::-moz-range-thumb {
  width: 22px;
  height: 22px;
  background: var(--accent);
  border-radius: 50%;
  cursor: pointer;
  border: none;
  box-shadow: 0 2px 8px rgba(108, 92, 231, 0.5);
}

/* ============================================================
   27. GENERATED PASSWORD DISPLAY
   ============================================================ */
.generated-password-display {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-default);
  padding: 28px 20px;
  border-radius: var(--radius-lg);
  text-align: center;
  font-family: 'SF Mono', 'Fira Code', 'Cascadia Code', 'Consolas', monospace;
  font-size: 1.35rem;
  letter-spacing: 1.5px;
  word-break: break-all;
  margin-bottom: 20px;
  color: var(--text-primary);
  position: relative;
  line-height: 1.6;
  min-height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ============================================================
   28. FILE UPLOAD AREA
   ============================================================ */
.file-upload-area {
  border: 2px dashed rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-lg);
  padding: 40px 24px;
  text-align: center;
  cursor: pointer;
  transition: all var(--transition-normal);
}

.file-upload-area:hover {
  border-color: var(--accent);
  background: rgba(108, 92, 231, 0.05);
}

.file-upload-area.drag-over {
  border-color: var(--accent);
  background: rgba(108, 92, 231, 0.1);
}

.file-upload-area .material-icons-round {
  font-size: 48px;
  color: rgba(255, 255, 255, 0.2);
  margin-bottom: 12px;
}

.file-upload-area p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin: 0;
}

.file-upload-area .file-name {
  color: var(--accent-light);
  font-weight: 600;
  margin-top: 8px;
  font-size: 0.9rem;
}

.file-upload-area input[type="file"] {
  display: none;
}

/* ============================================================
   29. CONFIRM DIALOG
   ============================================================ */
.confirm-dialog {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: var(--bg-card);
  padding: 32px;
  border-radius: 20px;
  z-index: var(--z-confirm);
  max-width: 340px;
  width: calc(100% - 40px);
  text-align: center;
  border: 1px solid var(--border-default);
  box-shadow: var(--shadow-xl);
  animation: scaleIn 0.2s ease;
}

.confirm-dialog .material-icons-round {
  font-size: 48px;
  color: var(--danger);
  margin-bottom: 16px;
}

.confirm-dialog h3 {
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--text-primary);
  margin: 0 0 8px;
}

.confirm-dialog p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin: 0 0 24px;
  line-height: 1.5;
}

.confirm-actions {
  display: flex;
  gap: 12px;
}

.confirm-actions .btn {
  flex: 1;
}

/* ============================================================
   30. WELCOME SCREEN
   ============================================================ */
.welcome-screen {
  justify-content: center;
  min-height: 100vh;
  min-height: 100dvh;
  padding: 40px 24px;
  position: relative;
  overflow: hidden;
}

.welcome-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.welcome-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.15;
}

.welcome-blob-1 {
  width: 300px;
  height: 300px;
  background: var(--accent);
  top: -50px;
  right: -80px;
}

.welcome-blob-2 {
  width: 250px;
  height: 250px;
  background: var(--accent-light);
  bottom: 100px;
  left: -60px;
}

.welcome-blob-3 {
  width: 200px;
  height: 200px;
  background: var(--accent);
  bottom: -30px;
  right: 50px;
}

.welcome-content {
  position: relative;
  z-index: 1;
}

.welcome-logo {
  width: 80px;
  height: 80px;
  border-radius: 24px;
  background: var(--gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 32px;
  box-shadow: var(--shadow-accent-lg);
}

.welcome-logo .material-icons-round {
  font-size: 40px;
  color: white;
}

.welcome-screen h1 {
  font-size: 2.75rem;
  font-weight: 800;
  line-height: 1.15;
  margin: 0 0 20px;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

.welcome-subtitle {
  color: rgba(255, 255, 255, 0.55);
  font-size: 1.05rem;
  line-height: 1.6;
  margin: 0 0 48px;
}

.welcome-features {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 40px;
}

.welcome-feature {
  display: flex;
  align-items: center;
  gap: 14px;
}

.welcome-feature-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--accent-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.welcome-feature-icon .material-icons-round {
  font-size: 20px;
  color: var(--accent-light);
}

.welcome-feature span {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

/* ============================================================
   31. UNLOCK SCREEN
   ============================================================ */
.unlock-screen {
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  min-height: 100dvh;
  padding: 40px 24px;
  text-align: center;
}

.lock-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-default);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 28px;
}

.lock-icon .material-icons-round {
  font-size: 36px;
  color: var(--accent-light);
}

.unlock-screen h2 {
  font-size: 1.75rem;
  font-weight: 700;
  margin: 0 0 8px;
  color: var(--text-primary);
}

.unlock-subtitle {
  color: var(--text-secondary);
  margin: 0 0 32px;
  font-size: 0.95rem;
}

.unlock-form {
  width: 100%;
  max-width: 340px;
}

.unlock-error {
  color: var(--danger);
  font-size: 0.85rem;
  margin-top: 12px;
  display: none;
  animation: fadeIn 0.2s ease;
}

.unlock-error.visible {
  display: block;
}

/* ============================================================
   32. SETUP SCREEN
   ============================================================ */
.setup-screen {
  padding: 40px 24px;
  min-height: 100vh;
  min-height: 100dvh;
}

.setup-screen h1 {
  font-size: 2rem;
  font-weight: 800;
  margin: 0 0 8px;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

.setup-subtitle {
  color: var(--text-secondary);
  margin: 0 0 36px;
  font-size: 0.95rem;
  line-height: 1.5;
}

.requirements-list {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
}

.requirements-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  font-size: 0.85rem;
  color: var(--text-tertiary);
  transition: color var(--transition-normal);
}

.requirements-list li.met {
  color: var(--success);
}

.requirements-list li .material-icons-round {
  font-size: 18px;
}

/* ============================================================
   33. GENERATOR SCREEN
   ============================================================ */
.generator-actions {
  display: flex;
  gap: 12px;
  margin-bottom: 20px;
}

.generator-mode-tabs {
  display: flex;
  background: var(--surface-glass);
  border-radius: var(--radius-md);
  padding: 4px;
  margin-bottom: 24px;
  border: 1px solid var(--border-subtle);
}

.generator-mode-tab {
  flex: 1;
  padding: 10px;
  text-align: center;
  border-radius: 10px;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: all var(--transition-normal);
  -webkit-tap-highlight-color: transparent;
}

.generator-mode-tab:hover {
  color: var(--text-primary);
}

.generator-mode-tab.active {
  background: var(--accent-bg);
  color: var(--accent-light);
}

.generator-options {
  display: flex;
  flex-direction: column;
}

.passphrase-options {
  display: none;
}

.passphrase-options.active {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* ============================================================
   34. LOADING & SKELETON STATES
   ============================================================ */
.spinner {
  width: 24px;
  height: 24px;
  border: 3px solid rgba(255, 255, 255, 0.1);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

.spinner-lg {
  width: 40px;
  height: 40px;
}

.skeleton {
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.04) 25%, rgba(255, 255, 255, 0.08) 50%, rgba(255, 255, 255, 0.04) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--radius-sm);
}

.skeleton-text {
  height: 14px;
  width: 60%;
  margin-bottom: 8px;
}

.skeleton-title {
  height: 18px;
  width: 40%;
}

.skeleton-avatar {
  width: 42px;
  height: 42px;
  border-radius: 12px;
}

.loading-screen {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  min-height: 100dvh;
  gap: 20px;
}

.loading-screen .spinner {
  width: 40px;
  height: 40px;
}

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

.loading-screen .logo-text {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

/* ============================================================
   35. KEYFRAME ANIMATIONS
   ============================================================ */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

@keyframes slideUp {
  from {
    transform: translateY(100%);
  }
  to {
    transform: translateY(0);
  }
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideOutUp {
  from {
    opacity: 1;
    transform: translateY(0);
  }
  to {
    opacity: 0;
    transform: translateY(-20px);
  }
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

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

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.9);
  }
  to {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
}

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

@keyframes ripple {
  0% {
    transform: scale(0);
    opacity: 0.5;
  }
  100% {
    transform: scale(4);
    opacity: 0;
  }
}

/* ============================================================
   36. RESPONSIVE BREAKPOINTS
   ============================================================ */
@media (min-width: 768px) {
  .app-container {
    max-width: 480px;
    margin: 0 auto;
    border-left: 1px solid var(--border-subtle);
    border-right: 1px solid var(--border-subtle);
    position: relative;
  }

  .bottom-nav {
    max-width: 480px;
    left: 50%;
    transform: translateX(-50%);
  }

  .toast-container {
    max-width: 380px;
  }

  .fab {
    right: calc(50% - 240px + 20px);
  }

  .confirm-dialog {
    max-width: 380px;
  }
}

@media (min-width: 1024px) {
  .app-container {
    max-width: 420px;
  }

  .bottom-nav {
    max-width: 420px;
  }

  .fab {
    right: calc(50% - 210px + 20px);
  }
}

/* ============================================================
   37. DARK OVERLAY FOR MODALS ON DESKTOP
   ============================================================ */
@media (min-width: 768px) {
  .modal {
    max-width: 480px;
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  }

  .modal-overlay.active {
    align-items: flex-end;
    justify-content: center;
  }
}

/* ============================================================
   38. ACCESSIBILITY & FOCUS STATES
   ============================================================ */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ============================================================
   39. SELECTION STYLES
   ============================================================ */
::selection {
  background: rgba(108, 92, 231, 0.4);
  color: white;
}

::-moz-selection {
  background: rgba(108, 92, 231, 0.4);
  color: white;
}

/* ============================================================
   40. ADDITIONAL UTILITY PATTERNS
   ============================================================ */
.glass-card {
  background: var(--surface-glass);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.gradient-text {
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.divider {
  height: 1px;
  background: var(--border-subtle);
  margin: var(--spacing-md) 0;
}

.entry-count-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: var(--radius-full);
  background: var(--accent-bg);
  color: var(--accent-light);
  font-size: 0.7rem;
  font-weight: 700;
}

/* Detail view password display */
.password-display {
  font-family: 'SF Mono', 'Fira Code', 'Cascadia Code', monospace;
  font-size: 0.95rem;
  letter-spacing: 1px;
  color: var(--text-primary);
  word-break: break-all;
}

.password-dots {
  letter-spacing: 3px;
  color: var(--text-tertiary);
}

/* Import format select */
.import-format-group {
  display: flex;
  gap: 12px;
  margin-bottom: 20px;
}

.import-format-option {
  flex: 1;
  padding: 14px;
  border-radius: var(--radius-md);
  background: var(--surface-glass);
  border: 1px solid var(--border-subtle);
  text-align: center;
  cursor: pointer;
  transition: all var(--transition-normal);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.import-format-option:hover {
  background: var(--surface-hover);
}

.import-format-option.active {
  border-color: var(--accent);
  color: var(--accent-light);
  background: var(--accent-bg);
}

/* Auto-lock time display */
.auto-lock-value {
  font-weight: 600;
  color: var(--accent-light);
  font-size: 0.9rem;
}

/* Health section items */
.health-items {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 20px;
}

.health-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
}

.health-item-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.health-item-icon.weak {
  background: rgba(225, 112, 85, 0.15);
  color: var(--danger);
}

.health-item-icon.reused {
  background: rgba(253, 203, 110, 0.15);
  color: var(--warning);
}

.health-item-info {
  flex: 1;
  min-width: 0;
}

.health-item-title {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.health-item-desc {
  font-size: 0.8rem;
  color: var(--text-tertiary);
  margin-top: 2px;
}

@media (max-height: 740px) {
  .welcome-screen {
    padding: 20px 24px;
    gap: 12px;
  }
  .welcome-logo {
    width: 60px;
    height: 60px;
    border-radius: 18px;
    margin-bottom: 16px;
  }
  .welcome-screen h1 {
    font-size: 2rem;
    margin-bottom: 12px;
  }
  .welcome-subtitle {
    margin-bottom: 24px;
    font-size: 0.95rem;
  }
  .welcome-features {
    margin-bottom: 24px;
    gap: 10px;
  }
  .welcome-feature span {
    font-size: 0.85rem;
  }
}
