/* ==========================================================================
   PasswordDiary - Modern AMOLED Security Theme & Design System
   Matches NeriQuest Studio Aesthetic & Flutter Midnight Slate / B&W Themes
   ========================================================================== */

:root {
  --bg-amoled: #07090e;
  --bg-surface: #0f1420;
  --bg-card: #151c2c;
  --bg-card-hover: #1c253b;
  --bg-glass: rgba(21, 28, 44, 0.72);
  --border-color: rgba(255, 255, 255, 0.08);
  --border-glow: rgba(255, 255, 255, 0.14);

  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;

  /* PasswordDiary Signature Security Palette (Indigo / Violet / Mint) */
  --accent-indigo: #818cf8;
  --accent-indigo-bright: #a5b4fc;
  --accent-violet: #6366f1;
  --accent-mint: #34d399;
  --accent-cyan: #38bdf8;
  --accent-amber: #fbbf24;
  --accent-danger: #f87171;

  --primary-gradient: linear-gradient(135deg, #818cf8 0%, #6366f1 100%);
  --glow-indigo: rgba(129, 140, 248, 0.35);

  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 26px;
  --radius-pill: 9999px;

  --transition-fast: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);

  --font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent !important;
}

html {
  overflow-x: hidden;
  max-width: 100%;
  width: 100%;
  scroll-behavior: smooth;
  font-family: var(--font-family);
  background-color: var(--bg-amoled);
  color: var(--text-main);
  line-height: 1.6;
  -webkit-text-size-adjust: 100%;
}

body {
  max-width: 100%;
  width: 100%;
  position: relative;
  overflow-x: hidden;
  min-height: 100vh;
  background-color: var(--bg-amoled);
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ==========================================================================
   Ambient Aurora Glow System
   ========================================================================== */
.ambient-glow-wrapper {
  position: fixed;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.ambient-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.22;
  transition: transform 1.2s ease, opacity 1s ease;
}

.glow-1 {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, #6366f1 0%, transparent 70%);
  top: -150px;
  left: -100px;
}

.glow-2 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, #38bdf8 0%, transparent 70%);
  top: 30%;
  right: -100px;
}

.glow-3 {
  width: 550px;
  height: 550px;
  background: radial-gradient(circle, #818cf8 0%, transparent 70%);
  bottom: 10%;
  left: 20%;
}

.glow-4 {
  width: 450px;
  height: 450px;
  background: radial-gradient(circle, #34d399 0%, transparent 70%);
  bottom: -100px;
  right: 15%;
}

.ambient-frosted-diffuser {
  position: absolute;
  inset: 0;
  background: rgba(7, 9, 14, 0.45);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

/* ==========================================================================
   Navigation Bar
   ========================================================================== */
.navbar {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  background: rgba(7, 9, 14, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-color);
  padding: 14px 0;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 600;
  padding: 7px 14px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-color);
  transition: var(--transition-fast);
}

.back-link:hover {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text-main);
}

.nav-logo-box {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  overflow: hidden;
  background: rgba(129, 140, 248, 0.15);
  border: 1px solid rgba(129, 140, 248, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-logo {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.brand-name {
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.brand-version {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--accent-indigo);
  background: rgba(129, 140, 248, 0.12);
  border: 1px solid rgba(129, 140, 248, 0.3);
  padding: 2px 7px;
  border-radius: var(--radius-pill);
  margin-left: 6px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
}

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 600;
  transition: var(--transition-fast);
}

.nav-links a:hover {
  color: var(--accent-indigo);
}

.btn-topbar-cta {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #141b29;
  color: var(--text-main);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(129, 140, 248, 0.35);
  transition: var(--transition-fast);
  overflow: hidden;
}

.btn-topbar-cta:hover {
  background: #1a2436;
  border-color: var(--accent-indigo);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(129, 140, 248, 0.25);
}

.topbar-cta-icon {
  width: 16px;
  height: 16px;
}

.btn-cta-glow {
  position: relative;
}

.btn-cta-glow::after {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: var(--radius-pill);
  background: linear-gradient(135deg, rgba(129, 140, 248, 0.6), rgba(99, 102, 241, 0.6));
  z-index: -1;
  filter: blur(8px);
  opacity: 0.5;
  transition: opacity 0.3s ease;
}

.btn-cta-glow:hover::after {
  opacity: 0.9;
  filter: blur(12px);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero-section {
  position: relative;
  padding: 70px 0 50px;
  text-align: center;
  z-index: 1;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(129, 140, 248, 0.08);
  border: 1px solid rgba(129, 140, 248, 0.25);
  padding: 6px 18px;
  border-radius: var(--radius-pill);
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--accent-indigo-bright);
  margin-bottom: 24px;
}

.badge-dot {
  width: 8px;
  height: 8px;
  background: var(--accent-mint);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--accent-mint);
}

.hero-title {
  font-size: clamp(2.4rem, 5.2vw, 4.2rem);
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -0.035em;
  max-width: 900px;
  margin: 0 auto 22px;
}

.gradient-text {
  background: linear-gradient(135deg, #c7d2fe 0%, #818cf8 35%, #6366f1 70%, #38bdf8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.22rem);
  color: var(--text-muted);
  max-width: 760px;
  margin: 0 auto 36px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 38px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 13px 28px;
  border-radius: var(--radius-pill);
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: var(--transition-fast);
}

.btn-primary {
  background: linear-gradient(135deg, #818cf8 0%, #6366f1 100%);
  color: #ffffff;
  box-shadow: 0 4px 22px rgba(99, 102, 241, 0.4);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(99, 102, 241, 0.55);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-main);
  border: 1px solid var(--border-color);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.22);
}

.btn-store-hero {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 13px 26px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--text-main);
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
  transition: var(--transition-fast);
}

.btn-store-hero:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--accent-indigo);
}

.store-svg {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}

.hero-chips {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  max-width: 900px;
  margin: 0 auto;
}

.hero-chip-item {
  font-size: 0.82rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #cbd5e1;
}

/* ==========================================================================
   Section Headers
   ========================================================================== */
.section-header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 46px;
  position: relative;
  z-index: 1;
}

.section-tag {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent-indigo);
  background: rgba(129, 140, 248, 0.1);
  border: 1px solid rgba(129, 140, 248, 0.25);
  padding: 4px 14px;
  border-radius: var(--radius-pill);
  margin-bottom: 14px;
}

.section-header h2 {
  font-size: clamp(2rem, 3.8vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 14px;
}

.section-header p {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* ==========================================================================
   Interactive Simulator Section
   ========================================================================== */

.simulator-section {
  position: relative;
  padding: 60px 0;
  z-index: 1;
  overflow-x: hidden;
}

.simulator-wrapper {
  max-width: 820px;
  width: 100%;
  margin: 0 auto;
  background: linear-gradient(160deg, #101524 0%, #080b12 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 32px;
  padding: 28px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8), 0 0 50px -10px var(--glow-indigo);
  box-sizing: border-box;
  overflow-x: hidden;
}

.simulator-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  padding-bottom: 22px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 24px;
}

.toolbar-theme-toggle {
  display: flex;
  align-items: center;
  gap: 10px;
}

.theme-label {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-muted);
}

.theme-toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text-muted);
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition-fast);
}

.theme-toggle-btn:hover {
  color: var(--text-main);
  border-color: rgba(255, 255, 255, 0.25);
}

.theme-toggle-btn.active {
  background: rgba(129, 140, 248, 0.15);
  border-color: var(--accent-indigo);
  color: #ffffff;
}

.theme-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.midnight-dot {
  background: #141A22;
  border: 1px solid #34d399;
}

.bw-dot {
  background: #000000;
  border: 1px solid #ffffff;
}

.toolbar-lock-status {
  display: flex;
  align-items: center;
  gap: 12px;
}

.lock-indicator {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--accent-mint);
  background: rgba(52, 211, 153, 0.1);
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(52, 211, 153, 0.25);
}

.btn-lock-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--text-main);
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition-fast);
}

.btn-lock-toggle:hover {
  background: rgba(239, 68, 68, 0.15);
  border-color: rgba(239, 68, 68, 0.4);
  color: #fca5a5;
}

/* Phone Mockup Frame */
.phone-stage {
  display: flex;
  justify-content: center;
}

.phone-frame {
  width: 100%;
  max-width: 440px;
  border-radius: 34px;
  overflow: hidden;
  position: relative;
  transition: background-color 0.35s ease, border-color 0.35s ease;
  min-height: 580px;
  display: flex;
  flex-direction: column;
}

/* Theme 1: Midnight Slate (Flutter Style) */
.phone-frame.theme-midnight {
  background: #141a22;
  border: 4px solid #263242;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.85), 0 0 35px rgba(52, 211, 153, 0.15);
  color: #f8fafc;
}

.phone-frame.theme-midnight .sim-chip-btn.active {
  background: #34d399;
  color: #0c1913;
  border-color: #34d399;
}

.phone-frame.theme-midnight .sim-chip-btn {
  background: #1d2532;
  color: #94a3b8;
  border: 1px solid #2c394a;
}

.phone-frame.theme-midnight .sim-vault-card {
  background: #19212c;
  border: 1px solid #283547;
}

.phone-frame.theme-midnight .phone-fab-btn {
  background: #34d399;
  color: #0c1913;
}

/* Theme 2: Black & White (Pure AMOLED Flutter Style) */
.phone-frame.theme-bw {
  background: #000000;
  border: 4px solid #ffffff;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.95), 0 0 35px rgba(255, 255, 255, 0.15);
  color: #ffffff;
}

.phone-frame.theme-bw .sim-chip-btn.active {
  background: #ffffff;
  color: #000000;
  border-color: #ffffff;
}

.phone-frame.theme-bw .sim-chip-btn {
  background: #000000;
  color: #ffffff;
  border: 1px solid #ffffff;
}

.phone-frame.theme-bw .sim-vault-card {
  background: #000000;
  border: 1px solid #ffffff;
}

.phone-frame.theme-bw .phone-fab-btn {
  background: #ffffff;
  color: #000000;
}

/* Phone Status Bar */
.phone-status-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px 6px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.status-icons {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Phone App Bar */
.phone-app-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  gap: 8px;
  min-width: 0;
}

.phone-app-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  flex: 1;
  overflow: hidden;
}

.app-mini-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.15);
  flex-shrink: 0;
}

.app-mini-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.app-display-title {
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1.2;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.app-meta-row {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.app-vault-count {
  font-size: 0.72rem;
  font-weight: 600;
  opacity: 0.65;
}

.sim-audit-pill {
  font-size: 0.72rem;
  font-weight: 700;
  color: #f87171;
  background: rgba(248, 113, 113, 0.15);
  border: 1px solid rgba(248, 113, 113, 0.3);
  padding: 1px 7px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease;
  user-select: none;
}

.sim-audit-pill:hover {
  transform: scale(1.05);
  background: rgba(248, 113, 113, 0.25);
}

.app-bar-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.app-bar-icon-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: inherit;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
  user-select: none;
}

.app-bar-icon-btn:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(129, 140, 248, 0.4);
}

.app-bar-icon-btn:active {
  transform: scale(0.9);
  background: rgba(129, 140, 248, 0.3);
}

.app-bar-icon-btn.active {
  background: rgba(129, 140, 248, 0.25);
  border-color: #818cf8;
  color: #a5b4fc;
}

/* Phone Inline Search Bar */
.phone-search-bar {
  padding: 0 16px 10px;
  animation: slideDownSearch 0.2s ease forwards;
}

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

.phone-search-inner {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(129, 140, 248, 0.35);
  border-radius: var(--radius-pill);
  padding: 5px 12px;
}

.search-bar-icon {
  color: #818cf8;
  flex-shrink: 0;
}

.phone-search-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: inherit;
  font-size: 0.82rem;
  font-family: inherit;
  min-width: 0;
}

.phone-search-input::placeholder {
  color: rgba(255, 255, 255, 0.45);
}

.btn-search-clear {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 1.15rem;
  line-height: 1;
  padding: 0 4px;
  transition: color 0.2s ease;
}

.btn-search-clear:hover {
  color: #ffffff;
}

/* Phone Dialog / Bottom Sheet Overlay */
.phone-dialog-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 25;
  display: flex;
  align-items: flex-end;
  animation: fadeInModal 0.2s ease forwards;
}

@keyframes fadeInModal {
  from { opacity: 0; }
  to { opacity: 1; }
}

.phone-dialog-card {
  width: 100%;
  background: #141c2b;
  border-top: 1px solid rgba(129, 140, 248, 0.3);
  border-radius: 20px 20px 0 0;
  padding: 18px 16px 22px;
  box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.6);
  animation: slideUpModal 0.22s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  max-height: 85%;
  overflow-y: auto;
  box-sizing: border-box;
}

.phone-frame.theme-bw .phone-dialog-card {
  background: #000000;
  border-top: 1px solid #ffffff;
}

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

.phone-dialog-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.phone-dialog-title-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.phone-dialog-icon {
  font-size: 1.25rem;
}

.phone-dialog-header h4 {
  margin: 0;
  font-size: 0.98rem;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.phone-dialog-close {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  color: inherit;
  font-size: 1.15rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  transition: var(--transition-fast);
}

.phone-dialog-close:hover {
  background: rgba(255, 255, 255, 0.2);
}

.phone-dialog-body {
  font-size: 0.84rem;
  line-height: 1.5;
  color: var(--text-muted);
}

.dialog-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.dialog-row span:last-child {
  font-weight: 600;
  color: var(--text-main);
  text-align: right;
}

.dialog-action-btn {
  width: 100%;
  margin-top: 14px;
  padding: 10px;
  border-radius: var(--radius-pill);
  background: linear-gradient(135deg, #818cf8 0%, #6366f1 100%);
  color: #ffffff;
  border: none;
  font-size: 0.84rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition-fast);
}

.dialog-action-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(99, 102, 241, 0.4);
}

/* Phone Filter Track (Clean multi-row flex to eliminate sideways scroll) */
.phone-filter-track {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  padding: 8px 14px 12px;
}

.sim-chip-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  font-size: 0.78rem;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
  transition: var(--transition-fast);
}

/* Vault List */
.phone-vault-list {
  padding: 8px 16px 80px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  max-height: 400px;
  overscroll-behavior-y: contain;
}

.sim-vault-card {
  border-radius: 18px;
  padding: 16px;
  transition: transform 0.2s ease;
}

.sim-vault-card:hover {
  transform: translateY(-2px);
}

.sim-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.sim-card-category-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  opacity: 0.75;
}

.sim-card-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.02rem;
  font-weight: 800;
  margin-bottom: 8px;
}

.sim-brand-favicon {
  width: 17px;
  height: 17px;
  border-radius: 4px;
  object-fit: contain;
  flex-shrink: 0;
}

.sim-brand-badge {
  display: inline-flex;
  align-items: center;
  padding: 1px 6px;
  border-radius: 4px;
  background: rgba(129, 140, 248, 0.18);
  border: 1px solid rgba(129, 140, 248, 0.3);
  color: #c7d2fe;
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-left: auto;
}

.btn-sim-qr {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 8px;
  border-radius: 6px;
  background: rgba(56, 189, 248, 0.15);
  border: 1px solid rgba(56, 189, 248, 0.35);
  color: #38bdf8;
  font-size: 0.72rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition-fast);
}

.btn-sim-qr:hover {
  background: rgba(56, 189, 248, 0.28);
  transform: translateY(-1px);
}

.sim-card-secret-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(0, 0, 0, 0.35);
  border-radius: 10px;
  padding: 8px 12px;
  font-family: var(--font-mono);
  font-size: 0.88rem;
  margin-bottom: 10px;
  max-width: 100%;
  overflow: hidden;
  box-sizing: border-box;
}

.secret-text {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 180px;
}

.sim-card-fields {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.sim-field-chip {
  font-size: 0.72rem;
  padding: 3px 8px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.06);
  opacity: 0.85;
}

.btn-card-reveal {
  background: none;
  border: none;
  color: inherit;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.2s ease;
  display: flex;
  align-items: center;
}

.btn-card-reveal:hover {
  opacity: 1;
}

/* Phone FAB */
.phone-fab-wrap {
  position: absolute;
  bottom: 20px;
  right: 20px;
  z-index: 5;
}

.phone-fab-btn {
  width: 52px;
  height: 52px;
  border-radius: 18px;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  transition: transform 0.2s ease;
}

.phone-fab-btn:hover {
  transform: scale(1.08);
}

/* Phone Auto-Lock Overlay */
.phone-lock-overlay {
  position: absolute;
  inset: 0;
  background: rgba(7, 9, 14, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 30px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

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

.lock-overlay-content {
  text-align: center;
  max-width: 300px;
}

.lock-shield-icon {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.35);
  color: #f87171;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 18px;
}

.lock-overlay-content h4 {
  font-size: 1.35rem;
  font-weight: 800;
  margin-bottom: 8px;
}

.lock-overlay-content p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 24px;
}

.btn-unlock-sim {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #818cf8 0%, #6366f1 100%);
  color: #ffffff;
  border: none;
  padding: 12px 22px;
  border-radius: var(--radius-pill);
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 18px rgba(99, 102, 241, 0.4);
  transition: var(--transition-fast);
}

.btn-unlock-sim:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(99, 102, 241, 0.55);
}

/* ==========================================================================
   Password Generator Section
   ========================================================================== */
.generator-section {
  position: relative;
  padding: 70px 0;
  z-index: 1;
}

.generator-card {
  max-width: 820px;
  margin: 0 auto;
  background: linear-gradient(160deg, #101524 0%, #090c13 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 28px;
  padding: 36px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7);
}

.gen-output-box {
  display: flex;
  flex-direction: column;
  background: #090d16;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  padding: 20px 22px;
  margin-bottom: 18px;
  gap: 14px;
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.4);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.gen-output-box:hover {
  border-color: rgba(129, 140, 248, 0.35);
}

.gen-password-display {
  width: 100%;
  box-sizing: border-box;
  font-family: var(--font-mono);
  font-size: clamp(1.05rem, 2.5vw, 1.4rem);
  font-weight: 700;
  letter-spacing: 0.05em;
  line-height: 1.5;
  color: #f1f5f9;
  word-break: break-all;
  overflow-wrap: anywhere;
  user-select: all;
  cursor: pointer;
  padding: 4px 2px;
  min-height: 2.2em;
  display: flex;
  align-items: center;
  transition: color var(--transition-fast);
}

.gen-password-display:hover {
  color: #ffffff;
}

.gen-output-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  flex-wrap: wrap;
}

.gen-hint-text {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  color: var(--text-dim);
}

.gen-hint-text svg {
  color: var(--accent-indigo);
  flex-shrink: 0;
}

.gen-action-btns {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.btn-gen-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 10px 18px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--text-main);
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition-fast);
}

.btn-gen-action:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.3);
}

.btn-copy {
  background: linear-gradient(135deg, #818cf8 0%, #6366f1 100%);
  border-color: transparent;
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(99, 102, 241, 0.3);
}

.btn-copy:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(99, 102, 241, 0.45);
}

/* Strength Meter */
.strength-meter-wrap {
  margin-bottom: 30px;
}

.strength-bars {
  display: flex;
  gap: 8px;
  margin-bottom: 8px;
}

.strength-bar-seg {
  height: 6px;
  flex: 1;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.08);
  transition: background-color 0.3s ease;
}

.strength-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.84rem;
  color: var(--text-muted);
}

.strength-meta strong {
  color: var(--text-main);
}

/* Generator Controls */
.generator-controls-grid {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.slider-control-row {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 18px;
  padding: 20px;
}

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

.control-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-main);
}

.slider-val-badge {
  font-family: var(--font-mono);
  font-size: 0.92rem;
  font-weight: 800;
  color: var(--accent-indigo);
  background: rgba(129, 140, 248, 0.12);
  padding: 3px 10px;
  border-radius: var(--radius-pill);
}

.modern-range {
  width: 100%;
  height: 8px;
  border-radius: var(--radius-pill);
  background: #1e2638;
  outline: none;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
}

.modern-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--accent-indigo);
  box-shadow: 0 0 12px var(--glow-indigo);
  cursor: pointer;
  transition: transform 0.15s ease;
}

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

.slider-marks {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--text-dim);
  margin-top: 8px;
  font-family: var(--font-mono);
}

/* Toggles Grid */
.toggles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}

.toggle-pill {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 12px 16px;
  cursor: pointer;
  transition: var(--transition-fast);
  user-select: none;
}

.toggle-pill:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.15);
}

.toggle-pill input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.toggle-track {
  width: 40px;
  height: 22px;
  border-radius: var(--radius-pill);
  background: #1e293b;
  position: relative;
  transition: background-color 0.25s ease;
  flex-shrink: 0;
}

.toggle-track::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #ffffff;
  transition: transform 0.25s ease;
}

.toggle-pill input:checked + .toggle-track {
  background: var(--accent-indigo);
}

.toggle-pill input:checked + .toggle-track::after {
  transform: translateX(18px);
}

.toggle-name {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-main);
}

/* ==========================================================================
   9 Categories Section
   ========================================================================== */
.categories-section {
  position: relative;
  padding: 70px 0;
  z-index: 1;
}

/* ==========================================================================
   9 Specialized Vault Modules Grid
   ========================================================================== */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 36px;
}

.module-card {
  background: linear-gradient(160deg, #101626 0%, #080c14 100%);
  border: 1px solid rgba(129, 140, 248, 0.18);
  border-radius: 20px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
  position: relative;
  overflow: hidden;
}

.module-card:hover {
  transform: translateY(-3px);
  border-color: rgba(129, 140, 248, 0.45);
  box-shadow: 0 14px 35px rgba(0, 0, 0, 0.6), 0 0 25px -8px var(--glow-indigo);
}

.module-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.module-card-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(129, 140, 248, 0.12);
  border: 1px solid rgba(129, 140, 248, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  flex-shrink: 0;
}

.module-card-title {
  font-size: 1.12rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 2px;
  letter-spacing: -0.01em;
}

.module-card-hint {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.35;
}

.module-secret-box {
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 10px 14px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.module-secret-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}

.module-secret-value {
  font-family: var(--font-mono);
  font-size: 0.84rem;
  color: #a5b4fc;
  word-break: break-all;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 170px;
}

.module-secret-toggle {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  padding: 4px;
  transition: color 0.2s ease;
  flex-shrink: 0;
}

.module-secret-toggle:hover {
  color: #ffffff;
}

.module-fields-title {
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #94a3b8;
  font-weight: 700;
  margin-bottom: 8px;
}

.module-field-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 16px;
  flex-grow: 1;
}

.module-field-chip {
  font-size: 0.74rem;
  font-weight: 500;
  padding: 3px 8px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #cbd5e1;
}

.module-field-chip.custom {
  background: rgba(129, 140, 248, 0.08);
  border-color: rgba(129, 140, 248, 0.2);
  color: #c7d2fe;
}

.module-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  margin-top: auto;
}

.btn-filter-simulator {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--accent-indigo);
  background: rgba(129, 140, 248, 0.1);
  border: 1px solid rgba(129, 140, 248, 0.25);
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  text-decoration: none;
  cursor: pointer;
  transition: var(--transition-fast);
}

.btn-filter-simulator:hover {
  background: rgba(129, 140, 248, 0.2);
  border-color: var(--accent-indigo);
  color: #ffffff;
}

/* ==========================================================================
   Security Architecture Grid
   ========================================================================== */
.security-section {
  position: relative;
  padding: 70px 0;
  z-index: 1;
}

.security-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.security-card {
  background: linear-gradient(160deg, #101524 0%, #090c13 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 22px;
  padding: 30px;
  transition: var(--transition-smooth);
}

.security-card:hover {
  transform: translateY(-4px);
  border-color: rgba(129, 140, 248, 0.3);
  box-shadow: 0 16px 45px rgba(0, 0, 0, 0.7);
}

.security-icon-box {
  font-size: 2.2rem;
  margin-bottom: 18px;
}

.security-card h3 {
  font-size: 1.25rem;
  font-weight: 800;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}

.security-card p {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* ==========================================================================
   Specs Table
   ========================================================================== */
.specs-section {
  position: relative;
  padding: 40px 0 70px;
  z-index: 1;
}

.specs-table-wrap {
  max-width: 820px;
  margin: 0 auto;
  background: linear-gradient(160deg, #101524 0%, #090c13 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  overflow: hidden;
}

.specs-table {
  width: 100%;
  border-collapse: collapse;
}

.specs-table th, .specs-table td {
  padding: 18px 24px;
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.94rem;
}

.specs-table tr:last-child th, .specs-table tr:last-child td {
  border-bottom: none;
}

.specs-table th {
  width: 35%;
  font-weight: 700;
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.02);
}

.specs-table td {
  color: var(--text-muted);
}

.specs-table code {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  background: rgba(129, 140, 248, 0.12);
  color: var(--accent-indigo);
  padding: 2px 6px;
  border-radius: 4px;
}

/* ==========================================================================
   FAQ Section
   ========================================================================== */
.faq-section {
  position: relative;
  padding: 70px 0;
  z-index: 1;
}

.faq-accordion {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.faq-item {
  background: linear-gradient(160deg, #101524 0%, #090c13 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  overflow: hidden;
  transition: var(--transition-fast);
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 26px;
  background: none;
  border: none;
  color: var(--text-main);
  font-family: inherit;
  font-size: 1.05rem;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
  gap: 16px;
}

.faq-icon {
  flex-shrink: 0;
  transition: transform 0.3s ease;
  color: var(--accent-indigo);
}

.faq-item.active .faq-icon {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
  padding: 0 26px;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.65;
}

.faq-item.active .faq-answer {
  max-height: 300px;
  padding: 0 26px 22px;
}

/* ==========================================================================
   Bottom CTA Section
   ========================================================================== */
.bottom-cta-section {
  position: relative;
  padding: 70px 0 90px;
  z-index: 1;
}

.bottom-cta-card {
  max-width: 900px;
  margin: 0 auto;
  background: linear-gradient(160deg, #151d33 0%, #0b0f1b 100%);
  border: 1px solid rgba(129, 140, 248, 0.3);
  border-radius: 32px;
  padding: 50px 36px;
  text-align: center;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8), 0 0 50px -10px var(--glow-indigo);
}

.cta-logo-wrap {
  width: 76px;
  height: 76px;
  border-radius: 22px;
  overflow: hidden;
  background: rgba(129, 140, 248, 0.15);
  border: 1px solid rgba(129, 140, 248, 0.3);
  margin: 0 auto 24px;
}

.cta-logo {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.bottom-cta-card h2 {
  font-size: clamp(2rem, 3.5vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 14px;
}

.bottom-cta-card p {
  font-size: 1.08rem;
  color: var(--text-muted);
  max-width: 620px;
  margin: 0 auto 32px;
  line-height: 1.65;
}

.cta-actions,
.cta-btn-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.btn-lg {
  padding: 16px 36px;
  font-size: 1.05rem;
}

/* ==========================================================================
   AES-256 Envelope Encryption & Cloud Sync Architecture
   ========================================================================== */
.encryption-section {
  padding: 90px 0;
  position: relative;
  z-index: 1;
}

.encryption-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
  margin-top: 40px;
}

.encryption-card {
  background: rgba(18, 24, 38, 0.7);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(129, 140, 248, 0.2);
  border-radius: 20px;
  padding: 32px 26px;
  display: flex;
  flex-direction: column;
  transition: var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.encryption-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(129, 140, 248, 0.5), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.encryption-card:hover {
  transform: translateY(-4px);
  border-color: rgba(129, 140, 248, 0.45);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5), 0 0 30px -10px var(--glow-indigo);
}

.encryption-card:hover::before {
  opacity: 1;
}

.enc-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.enc-num {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  color: rgba(129, 140, 248, 0.45);
  letter-spacing: -0.02em;
}

.enc-icon-wrap {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: rgba(129, 140, 248, 0.12);
  border: 1px solid rgba(129, 140, 248, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
}

.encryption-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text-main);
  letter-spacing: -0.01em;
}

.encryption-card p {
  font-size: 0.94rem;
  line-height: 1.65;
  color: var(--text-muted);
  margin-bottom: 22px;
  flex-grow: 1;
}

.encryption-card p code {
  color: #a5b4fc;
  background: rgba(129, 140, 248, 0.12);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.86rem;
  font-family: monospace;
}

.enc-perk-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
}

.enc-perk-pills span {
  font-size: 0.78rem;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #cbd5e1;
}

/* Simulator sync & weak indicators */
.sim-card-status-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.sim-badge-synced {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.72rem;
  font-weight: 600;
  color: #34d399;
  background: rgba(52, 211, 153, 0.12);
  border: 1px solid rgba(52, 211, 153, 0.25);
  padding: 2px 8px;
  border-radius: var(--radius-pill);
}

.sim-badge-local {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.72rem;
  font-weight: 600;
  color: #94a3b8;
  background: rgba(148, 163, 184, 0.1);
  border: 1px solid rgba(148, 163, 184, 0.2);
  padding: 2px 8px;
  border-radius: var(--radius-pill);
}

.sim-badge-weak {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.72rem;
  font-weight: 700;
  color: #f87171;
  background: rgba(248, 113, 113, 0.12);
  border: 1px solid rgba(248, 113, 113, 0.3);
  padding: 2px 8px;
  border-radius: var(--radius-pill);
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
  border-top: 1px solid var(--border-color);
  background: #040609;
  padding: 60px 0 30px;
  position: relative;
  z-index: 1;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 2fr;
  gap: 40px;
  margin-bottom: 50px;
}

.footer-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  max-width: 320px;
  margin-top: 14px;
  line-height: 1.6;
}

.footer-nav-col {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.footer-links-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-group-title {
  font-size: 0.85rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-main);
  margin-bottom: 4px;
}

.footer-links-group a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 500;
  transition: var(--transition-fast);
}

.footer-links-group a:hover {
  color: var(--accent-indigo);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.82rem;
  color: var(--text-dim);
  flex-wrap: wrap;
  gap: 12px;
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */
@media (max-width: 900px) {
  .categories-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
  }

  
  
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .nav-links {
    display: none;
  }
}

@media (max-width: 600px) {
  .categories-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .simulator-wrapper {
    padding: 14px 10px;
    border-radius: 20px;
    width: 100%;
    box-sizing: border-box;
    overflow-x: hidden;
  }

  .simulator-toolbar {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .toolbar-theme-toggle,
  .toolbar-lock-status {
    width: 100%;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
  }

  .phone-stage {
    width: 100%;
    overflow-x: hidden;
  }

  .phone-frame {
    border-radius: 22px;
    max-width: 100%;
    min-height: 520px;
  }

  .phone-app-bar {
    padding: 10px 12px;
  }

  .app-mini-icon {
    width: 30px;
    height: 30px;
  }

  .app-display-title {
    font-size: 0.94rem;
  }

  .app-vault-count {
    font-size: 0.68rem;
  }

  .sim-audit-pill {
    font-size: 0.68rem;
    padding: 1px 6px;
  }

  .app-bar-actions {
    gap: 4px;
  }

  .app-bar-icon-btn {
    width: 29px;
    height: 29px;
  }

  .phone-filter-track {
    gap: 5px;
    padding: 6px 10px 10px;
  }

  .sim-chip-btn {
    font-size: 0.72rem;
    padding: 4px 8px;
  }

  .secret-text {
    max-width: 130px;
  }

  .generator-card {
    padding: 20px 14px;
    border-radius: 20px;
  }

  .gen-output-box {
    padding: 16px 14px;
    gap: 12px;
  }

  .gen-password-display {
    font-size: 1.05rem;
    letter-spacing: 0.04em;
    line-height: 1.45;
  }

  .gen-output-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    padding-top: 12px;
  }

  .gen-hint-text {
    justify-content: center;
    font-size: 0.76rem;
  }

  .gen-action-btns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    width: 100%;
  }

  .btn-gen-action {
    width: 100%;
    padding: 11px 12px;
    font-size: 0.88rem;
  }

  .encryption-grid {
    grid-template-columns: 1fr;
  }

  .bottom-cta-card {
    padding: 36px 20px;
    border-radius: 24px;
  }

  .cta-actions,
  .cta-btn-wrap {
    flex-direction: column;
    align-items: center;
    width: 100%;
    gap: 12px;
  }

  .cta-actions .btn,
  .cta-btn-wrap .btn {
    width: 100%;
    max-width: 320px;
    margin: 0 auto;
    padding: 13px 20px;
    font-size: 0.95rem;
    box-sizing: border-box;
    justify-content: center;
  }

  .footer-nav-col {
    grid-template-columns: 1fr;
    gap: 30px;
  }
}

/* Responsive Top Navbar (Matches ExpenseMate) */
.back-link,
.brand,
.btn-topbar-cta {
  flex-shrink: 0;
}

@media (max-width: 768px) {
  .navbar {
    padding: 10px 0;
  }

  .nav-container {
    padding: 0 16px;
    gap: 10px;
  }

  .nav-links {
    display: none;
  }

  .back-link-text {
    display: none;
  }

  .back-link {
    padding: 7px 10px;
  }
}

@media (max-width: 420px) {
  .brand-version {
    display: none;
  }

  .nav-logo-box {
    width: 34px;
    height: 34px;
  }

  .brand-name {
    font-size: 1.05rem;
  }

  .btn-topbar-cta {
    padding: 7px 12px;
    font-size: 0.82rem;
  }

  .btn-topbar-cta .topbar-cta-icon {
    width: 14px;
    height: 14px;
  }

  .generator-card {
    padding: 16px 10px;
  }

  .gen-output-box {
    padding: 14px 10px;
  }

  .gen-password-display {
    font-size: 0.98rem;
    letter-spacing: 0.03em;
  }
}
