/* ════════════════════════════════════════════════════
   VAULT — Premium Dark UI
   ════════════════════════════════════════════════════ */

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

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:          #07070f;
  --bg2:         #0e0e1a;
  --glass:       rgba(255,255,255,0.04);
  --glass-hover: rgba(255,255,255,0.07);
  --border:      rgba(255,255,255,0.08);
  --border-hover:rgba(255,255,255,0.15);
  --accent:      #6366f1;
  --accent2:     #8b5cf6;
  --text:        #f1f5f9;
  --text-muted:  #94a3b8;
  --text-dim:    #475569;
  --success:     #10b981;
  --warning:     #f59e0b;
  --danger:      #ef4444;
  --cyan:        #06b6d4;
  --sidebar-w:   240px;
  --radius:      14px;
  --radius-sm:   8px;
  --shadow:      0 8px 32px rgba(0,0,0,0.4);
  --shadow-lg:   0 20px 60px rgba(0,0,0,0.6);
}

html, body {
  height: 100%;
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ── UTILITIES ───────────────────────────── */
.hidden { display: none !important; }
.screen { position: fixed; inset: 0; }

/* ══════════════════════════════════════════
   AUTH SCREENS (Login + Setup)
══════════════════════════════════════════ */
.auth-bg {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 30% 20%, rgba(99,102,241,0.18) 0%, transparent 60%),
              radial-gradient(ellipse at 80% 80%, rgba(139,92,246,0.15) 0%, transparent 50%),
              radial-gradient(ellipse at 60% 50%, rgba(6,182,212,0.08) 0%, transparent 40%),
              #07070f;
  overflow: hidden;
}

.auth-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  animation: orbFloat 8s ease-in-out infinite;
}
.orb1 { width:500px; height:500px; background:rgba(99,102,241,0.12); top:-200px; left:-100px; animation-delay:0s; }
.orb2 { width:400px; height:400px; background:rgba(139,92,246,0.10); bottom:-150px; right:-100px; animation-delay:-3s; }
.orb3 { width:300px; height:300px; background:rgba(6,182,212,0.07); top:50%; left:50%; transform:translate(-50%,-50%); animation-delay:-6s; }

@keyframes orbFloat {
  0%,100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-30px) scale(1.05); }
}

.auth-card {
  position: relative; z-index: 10;
  width: 420px; max-width: calc(100vw - 32px);
  background: rgba(255,255,255,0.04);
  backdrop-filter: blur(24px);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 40px;
  margin: 0 auto;
  top: 50%;
  transform: translateY(-50%);
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(255,255,255,0.04) inset;
  animation: cardIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes cardIn {
  from { opacity:0; transform:translateY(calc(-50% + 24px)) scale(0.97); }
  to   { opacity:1; transform:translateY(-50%) scale(1); }
}

.auth-icon {
  width: 60px; height: 60px;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 20px;
  box-shadow: 0 8px 24px rgba(99,102,241,0.4);
  animation: iconPulse 3s ease-in-out infinite;
}
.auth-icon.locked {
  background: linear-gradient(135deg, #374151, #1f2937);
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
}
.auth-icon svg { width:28px; height:28px; color:#fff; }

@keyframes iconPulse {
  0%,100% { box-shadow: 0 8px 24px rgba(99,102,241,0.4); }
  50% { box-shadow: 0 8px 32px rgba(99,102,241,0.7); }
}

.auth-title {
  font-size: 1.7rem; font-weight: 800;
  text-align: center; margin-bottom: 6px;
  background: linear-gradient(135deg, #fff, rgba(255,255,255,0.7));
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.auth-subtitle {
  text-align: center; color: var(--text-muted);
  font-size: 0.875rem; margin-bottom: 28px;
}
.auth-error {
  background: rgba(239,68,68,0.12);
  border: 1px solid rgba(239,68,68,0.25);
  color: #fca5a5;
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-size: 0.85rem;
  margin-bottom: 14px;
}
.auth-note {
  font-size: 0.78rem; color: var(--text-dim);
  text-align: center; margin-top: 16px; line-height: 1.5;
}
.auth-note strong { color: var(--warning); }

/* Strength bar */
.strength-wrap { display:flex; align-items:center; gap:10px; margin-bottom:16px; margin-top:-6px; }
.strength-bar { flex:1; height:4px; background:rgba(255,255,255,0.1); border-radius:2px; overflow:hidden; }
.strength-fill { height:100%; width:0%; border-radius:2px; transition: width 0.4s, background 0.4s; }
.strength-label { font-size:0.75rem; color:var(--text-muted); width:60px; text-align:right; }

/* ══════════════════════════════════════════
   FORM ELEMENTS
══════════════════════════════════════════ */
.form-group { margin-bottom: 16px; }
.form-label {
  display: block;
  font-size: 0.8rem; font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 6px; letter-spacing: 0.5px;
  text-transform: uppercase;
}
.input-wrap { position: relative; }
.form-input, .form-select, .form-textarea {
  width: 100%;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: inherit;
  font-size: 0.95rem;
  padding: 11px 14px;
  outline: none;
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--accent);
  background: rgba(99,102,241,0.08);
  box-shadow: 0 0 0 3px rgba(99,102,241,0.15);
}
.form-input::placeholder, .form-textarea::placeholder { color: var(--text-dim); }
.form-select { cursor: pointer; }
.form-select option { background: #1e1e2e; }
.form-textarea { resize: vertical; min-height: 80px; line-height: 1.6; }
.eye-btn {
  position: absolute; right: 10px; top: 50%; transform: translateY(-50%);
  background: none; border: none; color: var(--text-dim);
  cursor: pointer; padding: 4px; display:flex; align-items:center;
  transition: color 0.2s;
}
.eye-btn:hover { color: var(--text); }
.eye-btn svg { width: 18px; height: 18px; }
.form-input.has-eye { padding-right: 40px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

/* ── BUTTONS ─────────────────────────────── */
.btn-primary {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: #fff;
  border: none; border-radius: var(--radius-sm);
  padding: 12px 20px;
  font-family: inherit; font-size: 0.95rem; font-weight: 600;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s, opacity 0.2s;
  box-shadow: 0 4px 16px rgba(99,102,241,0.3);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(99,102,241,0.45); }
.btn-primary:active { transform: translateY(0); }
.btn-primary:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }
.btn-primary svg { width: 18px; height: 18px; }
.btn-full { width: 100%; }

.btn-ghost {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-muted);
  border-radius: var(--radius-sm);
  padding: 11px 20px;
  font-family: inherit; font-size: 0.9rem; font-weight: 500;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}
.btn-ghost:hover { border-color: var(--border-hover); color: var(--text); background: var(--glass); }
.btn-ghost.btn-full { width: 100%; margin-top: 8px; }

.btn-danger {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  background: rgba(239,68,68,0.15);
  border: 1px solid rgba(239,68,68,0.25);
  color: #f87171;
  border-radius: var(--radius-sm);
  padding: 11px 20px;
  font-family: inherit; font-size: 0.9rem; font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, box-shadow 0.2s;
}
.btn-danger:hover { background: rgba(239,68,68,0.25); box-shadow: 0 4px 16px rgba(239,68,68,0.2); }

/* ══════════════════════════════════════════
   DASHBOARD LAYOUT
══════════════════════════════════════════ */
#dashboard {
  display: flex;
  background: var(--bg);
}

/* ── SIDEBAR ─────────────────────────────── */
.sidebar {
  width: var(--sidebar-w);
  min-height: 100vh;
  background: rgba(255,255,255,0.02);
  border-right: 1px solid var(--border);
  display: flex; flex-direction: column;
  position: fixed; left: 0; top: 0; bottom: 0; z-index: 100;
  transition: transform 0.3s cubic-bezier(0.4,0,0.2,1);
}

.sidebar-header {
  display: flex; align-items: center; gap: 12px;
  padding: 24px 20px;
  border-bottom: 1px solid var(--border);
}
.vault-logo {
  width: 36px; height: 36px;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 12px rgba(99,102,241,0.35);
  flex-shrink: 0;
}
.vault-logo svg { width: 18px; height: 18px; color: #fff; }
.vault-name { font-weight: 700; font-size: 1rem; color: var(--text); }

.sidebar-nav { flex: 1; padding: 16px 12px; display: flex; flex-direction: column; gap: 4px; }

.nav-item {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 14px;
  border-radius: 10px;
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-family: inherit; font-size: 0.9rem; font-weight: 500;
  cursor: pointer;
  text-align: left; width: 100%;
  transition: background 0.15s, color 0.15s;
  position: relative;
}
.nav-item svg { width: 18px; height: 18px; flex-shrink: 0; }
.nav-item span:first-of-type { flex: 1; }
.nav-item:hover { background: var(--glass-hover); color: var(--text); }
.nav-item.active {
  background: linear-gradient(135deg, rgba(99,102,241,0.2), rgba(139,92,246,0.12));
  color: #a5b4fc;
  box-shadow: 0 0 0 1px rgba(99,102,241,0.2);
}

.nav-badge {
  background: rgba(255,255,255,0.1);
  color: var(--text-muted);
  font-size: 0.7rem; font-weight: 700;
  padding: 2px 7px; border-radius: 20px;
  min-width: 22px; text-align: center;
}
.nav-badge.urgent { background: rgba(239,68,68,0.2); color: #f87171; }

.sidebar-footer {
  padding: 16px 12px;
  border-top: 1px solid var(--border);
}
.btn-lock {
  display: flex; align-items: center; gap: 10px;
  width: 100%; padding: 10px 14px;
  background: transparent; border: 1px solid var(--border);
  border-radius: 10px; color: var(--text-muted);
  font-family: inherit; font-size: 0.88rem; font-weight: 500;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}
.btn-lock:hover { border-color: rgba(239,68,68,0.4); color: #f87171; background: rgba(239,68,68,0.05); }
.btn-lock svg { width: 16px; height: 16px; }

/* ── HAMBURGER ───────────────────────────── */
.hamburger {
  display: none;
  position: fixed; top: 16px; left: 16px; z-index: 200;
  background: var(--glass); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 10px;
  cursor: pointer; flex-direction: column; gap: 4px;
  backdrop-filter: blur(10px);
}
.hamburger span {
  display: block; width: 20px; height: 2px;
  background: var(--text); border-radius: 2px;
  transition: all 0.3s;
}

/* ── MAIN CONTENT ────────────────────────── */
.main-content {
  margin-left: var(--sidebar-w);
  min-height: 100vh;
  padding: 40px;
  overflow-y: auto;
  flex: 1;
}

.section { animation: fadeIn 0.3s ease; }
@keyframes fadeIn { from { opacity:0; transform:translateY(12px); } to { opacity:1; transform:translateY(0); } }

.section-header {
  display: flex; align-items: flex-start; justify-content: space-between;
  margin-bottom: 28px;
  gap: 16px;
}
.section-title {
  font-size: 1.8rem; font-weight: 800;
  background: linear-gradient(135deg, var(--text), rgba(241,245,249,0.7));
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 4px;
}
.section-sub { color: var(--text-muted); font-size: 0.875rem; }

.btn-add {
  display: flex; align-items: center; gap: 6px;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: #fff; border: none; border-radius: var(--radius-sm);
  padding: 10px 18px; font-family: inherit; font-size: 0.875rem; font-weight: 600;
  cursor: pointer; white-space: nowrap; flex-shrink: 0;
  transition: transform 0.15s, box-shadow 0.15s;
  box-shadow: 0 4px 14px rgba(99,102,241,0.3);
}
.btn-add:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(99,102,241,0.45); }
.btn-add svg { width: 16px; height: 16px; }

/* ── SEARCH ──────────────────────────────── */
.search-wrap {
  position: relative; margin-bottom: 24px;
}
.search-wrap svg {
  position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
  width: 17px; height: 17px; color: var(--text-dim);
}
.search-input {
  width: 100%; padding: 11px 14px 11px 42px;
  background: var(--glass); border: 1px solid var(--border);
  border-radius: var(--radius-sm); color: var(--text);
  font-family: inherit; font-size: 0.9rem; outline: none;
  transition: border-color 0.2s;
}
.search-input:focus { border-color: var(--accent); }
.search-input::placeholder { color: var(--text-dim); }

/* ═══════════════════════════════════════════
   NOTES
═══════════════════════════════════════════ */
.notes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}
.note-card {
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  cursor: pointer;
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
  position: relative;
  overflow: hidden;
}
.note-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: var(--note-color, var(--accent));
}
.note-card:hover {
  transform: translateY(-3px);
  border-color: var(--border-hover);
  box-shadow: 0 12px 32px rgba(0,0,0,0.35);
}
.note-title {
  font-size: 1rem; font-weight: 600;
  color: var(--text); margin-bottom: 10px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.note-content {
  font-size: 0.85rem; color: var(--text-muted);
  line-height: 1.6;
  overflow: hidden; display: -webkit-box;
  -webkit-line-clamp: 4; -webkit-box-orient: vertical;
}
.note-footer {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: 14px; padding-top: 12px;
  border-top: 1px solid var(--border);
}
.note-date { font-size: 0.75rem; color: var(--text-dim); }
.note-actions { display: flex; gap: 6px; }
.icon-btn {
  background: none; border: none; color: var(--text-dim);
  cursor: pointer; padding: 4px; border-radius: 6px;
  display: flex; align-items: center;
  transition: color 0.2s, background 0.2s;
}
.icon-btn:hover { color: var(--text); background: var(--glass-hover); }
.icon-btn.danger:hover { color: var(--danger); }
.icon-btn svg { width: 15px; height: 15px; }

/* ═══════════════════════════════════════════
   CREDIT CARDS
═══════════════════════════════════════════ */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 20px;
}

.credit-card {
  border-radius: 18px;
  padding: 28px;
  position: relative; overflow: hidden;
  cursor: pointer;
  transition: transform 0.25s, box-shadow 0.25s;
  min-height: 190px;
  display: flex; flex-direction: column; justify-content: space-between;
  box-shadow: 0 8px 32px rgba(0,0,0,0.4);
}
.credit-card::after {
  content: '';
  position: absolute;
  top: -50px; right: -30px;
  width: 200px; height: 200px;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
  pointer-events: none;
}
.credit-card::before {
  content: '';
  position: absolute;
  bottom: -60px; right: -20px;
  width: 250px; height: 250px;
  border-radius: 50%;
  background: rgba(255,255,255,0.04);
  pointer-events: none;
}
.credit-card:hover { transform: translateY(-4px) rotate(0.5deg); box-shadow: 0 20px 50px rgba(0,0,0,0.5); }

.gradient-purple  { background: linear-gradient(135deg, #4f46e5, #7c3aed); }
.gradient-dark    { background: linear-gradient(135deg, #0f172a, #1e293b); }
.gradient-green   { background: linear-gradient(135deg, #064e3b, #059669); }
.gradient-red     { background: linear-gradient(135deg, #7f1d1d, #dc2626); }
.gradient-blue    { background: linear-gradient(135deg, #0c4a6e, #0284c7); }
.gradient-gold    { background: linear-gradient(135deg, #78350f, #d97706); }

.cc-top { display: flex; justify-content: space-between; align-items: flex-start; }
.cc-bank { font-size: 0.85rem; font-weight: 700; color: rgba(255,255,255,0.9); letter-spacing: 0.5px; }
.cc-type {
  font-size: 0.8rem; font-weight: 800;
  color: rgba(255,255,255,0.8); text-transform: uppercase; letter-spacing: 1px;
}
.cc-number {
  font-size: 1.2rem; font-weight: 600; letter-spacing: 3px;
  color: rgba(255,255,255,0.95);
  font-family: 'Courier New', monospace;
  margin: 20px 0 16px;
}
.cc-bottom { display: flex; justify-content: space-between; align-items: flex-end; }
.cc-label { font-size: 0.65rem; color: rgba(255,255,255,0.55); text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 3px; }
.cc-value { font-size: 0.88rem; font-weight: 600; color: rgba(255,255,255,0.9); }
.cc-edit-overlay {
  position: absolute; top: 12px; right: 12px;
  display: flex; gap: 6px;
  opacity: 0; transition: opacity 0.2s;
}
.credit-card:hover .cc-edit-overlay { opacity: 1; }
.cc-btn {
  background: rgba(255,255,255,0.15); border: none;
  color: #fff; border-radius: 6px; padding: 5px 8px;
  font-size: 0.75rem; cursor: pointer;
  backdrop-filter: blur(8px);
  transition: background 0.2s;
}
.cc-btn:hover { background: rgba(255,255,255,0.25); }

/* Card preview in modal */
.card-preview-mini {
  border-radius: 14px;
  padding: 22px;
  background: linear-gradient(135deg, #4f46e5, #7c3aed);
  margin-bottom: 20px;
  position: relative; overflow: hidden;
  transition: background 0.3s;
}
.card-preview-mini::after {
  content: ''; position: absolute;
  top: -40px; right: -20px;
  width: 150px; height: 150px;
  border-radius: 50%; background: rgba(255,255,255,0.08);
}
.cp-bank { font-size: 0.8rem; font-weight: 700; color: rgba(255,255,255,0.85); margin-bottom: 16px; }
.cp-number { font-size: 1.1rem; font-weight: 600; letter-spacing: 2.5px; color: #fff; font-family: monospace; margin-bottom: 16px; }
.cp-row { display: flex; justify-content: space-between; }
.cp-lbl { font-size: 0.6rem; color: rgba(255,255,255,0.55); text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 3px; }
.cp-val { font-size: 0.82rem; font-weight: 600; color: rgba(255,255,255,0.9); }

/* ═══════════════════════════════════════════
   DOCUMENTS
═══════════════════════════════════════════ */
.docs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 16px;
}
.doc-card {
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}
.doc-card:hover { transform: translateY(-3px); border-color: var(--border-hover); box-shadow: 0 12px 32px rgba(0,0,0,0.35); }
.doc-thumb {
  width: 100%; aspect-ratio: 4/3;
  object-fit: cover;
  display: block;
}
.doc-thumb-placeholder {
  width: 100%; aspect-ratio: 4/3;
  background: rgba(99,102,241,0.1);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 8px; color: var(--accent);
}
.doc-thumb-placeholder svg { width: 36px; height: 36px; }
.doc-thumb-placeholder span { font-size: 0.7rem; font-weight: 600; text-transform: uppercase; }
.doc-info {
  padding: 12px;
  border-top: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
}
.doc-name { font-size: 0.82rem; font-weight: 600; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.doc-cat {
  font-size: 0.7rem; color: var(--text-dim);
  background: rgba(255,255,255,0.06);
  padding: 2px 7px; border-radius: 20px; margin-top: 3px;
}
.doc-del {
  background: none; border: none; color: var(--text-dim);
  cursor: pointer; padding: 4px; flex-shrink: 0;
  transition: color 0.2s;
}
.doc-del:hover { color: var(--danger); }
.doc-del svg { width: 15px; height: 15px; }

/* File drop zone */
.file-drop {
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  padding: 32px;
  text-align: center;
  cursor: pointer;
  color: var(--text-muted);
  transition: border-color 0.2s, background 0.2s;
}
.file-drop:hover { border-color: var(--accent); background: rgba(99,102,241,0.05); }
.file-drop svg { width: 36px; height: 36px; color: var(--text-dim); margin-bottom: 12px; display: block; margin: 0 auto 10px; }
.file-drop p { font-size: 0.9rem; font-weight: 500; margin-bottom: 4px; }
.file-drop span { font-size: 0.8rem; color: var(--text-dim); }
.doc-preview-thumb { max-width: 100%; max-height: 180px; border-radius: var(--radius-sm); margin-top: 12px; }
.doc-preview-name { font-size: 0.82rem; color: var(--text-muted); margin-top: 6px; }

/* ═══════════════════════════════════════════
   REMINDERS
═══════════════════════════════════════════ */
.reminders-list { display: flex; flex-direction: column; gap: 12px; }

.reminder-item {
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
  display: flex; align-items: center; gap: 16px;
  transition: border-color 0.2s, background 0.2s;
  position: relative;
}
.reminder-item.done { opacity: 0.45; }
.reminder-item.overdue { border-color: rgba(239,68,68,0.3); background: rgba(239,68,68,0.04); }
.reminder-item.upcoming { border-color: rgba(245,158,11,0.3); background: rgba(245,158,11,0.04); }

.reminder-check {
  width: 22px; height: 22px; flex-shrink: 0;
  border: 2px solid var(--border);
  border-radius: 50%; cursor: pointer;
  transition: all 0.2s;
  display: flex; align-items: center; justify-content: center;
  background: none;
}
.reminder-check.checked { background: var(--success); border-color: var(--success); }
.reminder-check svg { width: 12px; height: 12px; color: #fff; display: none; }
.reminder-check.checked svg { display: block; }

.reminder-body { flex: 1; min-width: 0; }
.reminder-title {
  font-size: 0.95rem; font-weight: 600; color: var(--text);
  margin-bottom: 4px;
}
.reminder-item.done .reminder-title { text-decoration: line-through; }
.reminder-note { font-size: 0.82rem; color: var(--text-muted); line-height: 1.5; }
.reminder-meta { display: flex; align-items: center; gap: 10px; margin-top: 8px; }
.reminder-date {
  font-size: 0.75rem; color: var(--text-dim);
  display: flex; align-items: center; gap: 4px;
}
.reminder-date svg { width: 12px; height: 12px; }
.priority-tag {
  font-size: 0.68rem; font-weight: 700; text-transform: uppercase;
  padding: 2px 8px; border-radius: 20px; letter-spacing: 0.5px;
}
.priority-normal { background: rgba(255,255,255,0.08); color: var(--text-dim); }
.priority-high    { background: rgba(245,158,11,0.15); color: var(--warning); }
.priority-urgent  { background: rgba(239,68,68,0.15); color: var(--danger); }

.reminder-actions { display: flex; gap: 6px; }

/* Priority picker */
.priority-picker { display: flex; gap: 8px; }
.priority-btn {
  flex: 1; padding: 8px;
  background: var(--glass); border: 1px solid var(--border);
  border-radius: var(--radius-sm); color: var(--text-muted);
  font-family: inherit; font-size: 0.85rem; font-weight: 500;
  cursor: pointer; transition: all 0.2s;
}
.priority-btn.active {
  background: rgba(99,102,241,0.2);
  border-color: rgba(99,102,241,0.4);
  color: #a5b4fc;
}

/* ═══════════════════════════════════════════
   MESSAGES
═══════════════════════════════════════════ */
.messages-list { display: flex; flex-direction: column; gap: 12px; }

.message-item {
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
  transition: border-color 0.2s;
  display: flex; gap: 14px; align-items: flex-start;
}
.message-item:hover { border-color: var(--border-hover); }
.message-icon {
  width: 36px; height: 36px; flex-shrink: 0;
  background: rgba(99,102,241,0.15);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  color: var(--accent);
}
.message-icon svg { width: 16px; height: 16px; }
.message-body { flex: 1; min-width: 0; }
.message-label {
  font-size: 0.75rem; font-weight: 700; text-transform: uppercase;
  color: var(--accent); letter-spacing: 0.5px; margin-bottom: 6px;
}
.message-content {
  font-size: 0.9rem; color: var(--text);
  word-break: break-all; line-height: 1.6;
}
.message-date { font-size: 0.75rem; color: var(--text-dim); margin-top: 8px; }
.message-actions { display: flex; gap: 6px; flex-shrink: 0; }

/* Copy button */
.copy-btn {
  background: none; border: 1px solid var(--border);
  color: var(--text-muted); border-radius: 6px;
  padding: 5px 10px; font-size: 0.75rem; font-weight: 500;
  cursor: pointer; font-family: inherit;
  transition: all 0.2s; display: flex; align-items: center; gap: 4px;
}
.copy-btn:hover { border-color: var(--accent); color: var(--accent); }
.copy-btn svg { width: 13px; height: 13px; }
.copy-btn.copied { border-color: var(--success); color: var(--success); }

/* ═══════════════════════════════════════════
   MODALS
═══════════════════════════════════════════ */
.modal-overlay {
  position: fixed; inset: 0; z-index: 1000;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
  animation: overlayIn 0.2s ease;
}
@keyframes overlayIn { from { opacity: 0; } to { opacity: 1; } }

.modal {
  background: #12121e;
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 28px;
  width: 100%; max-width: 520px;
  max-height: 90vh; overflow-y: auto;
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(255,255,255,0.04) inset;
  animation: modalIn 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.modal-sm { max-width: 380px; }
@keyframes modalIn {
  from { opacity: 0; transform: scale(0.92) translateY(20px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}

.modal-header {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 22px;
}
.modal-header h3 { font-size: 1.1rem; font-weight: 700; color: var(--text); }
.modal-close {
  background: rgba(255,255,255,0.06); border: none;
  color: var(--text-muted); width: 32px; height: 32px;
  border-radius: 8px; cursor: pointer; font-size: 1rem;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s, color 0.2s;
}
.modal-close:hover { background: rgba(239,68,68,0.15); color: var(--danger); }
.modal-actions {
  display: flex; justify-content: flex-end; gap: 10px;
  margin-top: 22px; padding-top: 18px;
  border-top: 1px solid var(--border);
}
.confirm-msg { color: var(--text-muted); font-size: 0.9rem; line-height: 1.6; margin-bottom: 16px; }

/* ── CARD DETAIL ─────────────────────────── */
.card-detail-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 12px; margin-top: 8px;
}
.cd-field { background: var(--glass); border-radius: var(--radius-sm); padding: 12px 14px; }
.cd-label { font-size: 0.72rem; color: var(--text-dim); text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 4px; }
.cd-value { font-size: 0.95rem; font-weight: 600; color: var(--text); font-family: monospace; word-break: break-all; }
.cd-reveal {
  background: none; border: none; color: var(--accent);
  font-size: 0.78rem; cursor: pointer; padding: 0; font-family: inherit;
  margin-top: 4px; display: block;
}

/* ═══════════════════════════════════════════
   DOCUMENT VIEWER
═══════════════════════════════════════════ */
.doc-viewer-inner {
  position: relative;
  max-width: 90vw; max-height: 90vh;
  display: flex; flex-direction: column; align-items: center;
}
.doc-viewer-img {
  max-width: 85vw; max-height: 80vh;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
}
.doc-viewer-name {
  color: rgba(255,255,255,0.8); font-size: 0.9rem;
  margin-top: 14px; text-align: center;
}
.doc-viewer-pdf { color: var(--text-muted); font-size: 0.9rem; }
.doc-viewer-pdf a { color: var(--accent); }
.doc-close {
  position: absolute; top: -12px; right: -12px;
  background: #1e1e2e !important;
  z-index: 10;
}

/* ═══════════════════════════════════════════
   COLOR PICKER
═══════════════════════════════════════════ */
.color-picker { display: flex; gap: 10px; flex-wrap: wrap; }
.color-dot {
  width: 28px; height: 28px; border-radius: 50%;
  border: 3px solid transparent;
  cursor: pointer; transition: transform 0.15s, box-shadow 0.15s;
}
.color-dot:hover { transform: scale(1.15); }
.color-dot.active { border-color: rgba(255,255,255,0.7); box-shadow: 0 0 0 2px rgba(255,255,255,0.15); }

/* ═══════════════════════════════════════════
   EMPTY STATE
═══════════════════════════════════════════ */
.empty-state {
  display: flex; flex-direction: column; align-items: center;
  padding: 60px 20px; color: var(--text-dim); text-align: center;
}
.empty-state svg { width: 56px; height: 56px; margin-bottom: 16px; opacity: 0.4; }
.empty-state h3 { font-size: 1rem; font-weight: 600; color: var(--text-muted); margin-bottom: 6px; }
.empty-state p { font-size: 0.85rem; max-width: 260px; line-height: 1.6; }

/* ═══════════════════════════════════════════
   TOAST
═══════════════════════════════════════════ */
.toast {
  position: fixed; bottom: 28px; right: 28px; z-index: 9999;
  background: #1e1e2e;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 20px;
  font-size: 0.9rem; font-weight: 500;
  box-shadow: 0 8px 32px rgba(0,0,0,0.5);
  animation: toastIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  max-width: 300px;
}
.toast.success { border-color: rgba(16,185,129,0.3); color: #6ee7b7; }
.toast.error   { border-color: rgba(239,68,68,0.3); color: #fca5a5; }
.toast.info    { border-color: rgba(99,102,241,0.3); color: #a5b4fc; }
@keyframes toastIn {
  from { opacity: 0; transform: translateX(20px) scale(0.95); }
  to   { opacity: 1; transform: translateX(0) scale(1); }
}

/* ═══════════════════════════════════════════
   SCROLLBAR
═══════════════════════════════════════════ */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.15); }

/* ═══════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════ */
@media (max-width: 768px) {
  .sidebar {
    transform: translateX(-100%);
    box-shadow: none;
  }
  .sidebar.open {
    transform: translateX(0);
    box-shadow: 4px 0 30px rgba(0,0,0,0.5);
  }
  .hamburger { display: flex; }
  .main-content { margin-left: 0; padding: 20px 16px; padding-top: 60px; }
  .section-header { flex-direction: column; }
  .notes-grid { grid-template-columns: 1fr; }
  .cards-grid { grid-template-columns: 1fr; }
  .docs-grid { grid-template-columns: repeat(2, 1fr); }
  .form-row { grid-template-columns: 1fr; }
  .modal { padding: 20px; }
  .auth-card { padding: 28px 22px; }
}
@media (max-width: 400px) {
  .docs-grid { grid-template-columns: 1fr; }
}

/* ═══════════════════════════════════════════
   MATRIX / HACKER LOGIN THEME
═══════════════════════════════════════════ */
.matrix-bg { background: #000 !important; overflow: hidden; }
.matrix-bg canvas { position:absolute; inset:0; width:100%; height:100%; display:block; }
.matrix-bg::after {
  content:''; position:absolute; inset:0; pointer-events:none; z-index:2;
  background: repeating-linear-gradient(0deg,rgba(0,0,0,0.04) 0px,rgba(0,0,0,0.04) 1px,transparent 1px,transparent 4px);
}
.matrix-card {
  background: rgba(0,6,0,0.88) !important;
  border-color: rgba(0,255,65,0.2) !important;
  box-shadow: 0 0 40px rgba(0,255,65,0.08),0 20px 60px rgba(0,0,0,0.9),inset 0 0 0 1px rgba(0,255,65,0.05) !important;
  position: relative; z-index: 10;
}
.matrix-card::before { content:''; position:absolute; top:-1px; left:-1px; width:28px; height:28px; border-top:2px solid rgba(0,255,65,0.5); border-left:2px solid rgba(0,255,65,0.5); border-radius:4px 0 0 0; pointer-events:none; }
.matrix-card::after  { content:''; position:absolute; bottom:-1px; right:-1px; width:28px; height:28px; border-bottom:2px solid rgba(0,255,65,0.5); border-right:2px solid rgba(0,255,65,0.5); border-radius:0 0 4px 0; pointer-events:none; }

.matrix-card .auth-title { background:linear-gradient(135deg,#00ff41,#00cc35,#fff) !important; -webkit-background-clip:text !important; background-clip:text !important; -webkit-text-fill-color:transparent !important; font-family:'Courier New',monospace !important; letter-spacing:3px !important; text-transform:uppercase !important; animation:matrixGlitch 5s infinite; }
@keyframes matrixGlitch { 0%,88%,100%{transform:none} 89%{transform:translate(-2px,0);text-shadow:2px 0 rgba(0,255,65,0.8),-2px 0 rgba(255,0,80,0.5)} 90%{transform:translate(2px,0);text-shadow:-2px 0 rgba(0,255,65,0.8),2px 0 rgba(255,0,80,0.5)} 91%{transform:none} }

.matrix-card .auth-subtitle { color:rgba(0,255,65,0.5) !important; font-family:'Courier New',monospace !important; font-size:0.78rem !important; letter-spacing:1px !important; }
.matrix-card .auth-subtitle::after { content:'_'; animation:blink 1s step-end infinite; }
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:0} }

.matrix-card .auth-icon.locked { background:rgba(0,255,65,0.08) !important; border:1px solid rgba(0,255,65,0.3) !important; box-shadow:0 0 20px rgba(0,255,65,0.2) !important; animation:lockGlow 2s ease-in-out infinite !important; }
.matrix-card .auth-icon.locked svg { color:#00ff41 !important; }
@keyframes lockGlow { 0%,100%{box-shadow:0 0 20px rgba(0,255,65,0.2)} 50%{box-shadow:0 0 40px rgba(0,255,65,0.5),0 0 60px rgba(0,255,65,0.15)} }

.matrix-card .form-input { background:rgba(0,255,65,0.03) !important; border-color:rgba(0,255,65,0.15) !important; color:#00ff41 !important; font-family:'Courier New',monospace !important; letter-spacing:1px !important; caret-color:#00ff41; }
.matrix-card .form-input::placeholder { color:rgba(0,255,65,0.25) !important; }
.matrix-card .form-input:focus { border-color:rgba(0,255,65,0.5) !important; background:rgba(0,255,65,0.06) !important; box-shadow:0 0 0 3px rgba(0,255,65,0.1),0 0 25px rgba(0,255,65,0.08) !important; }
.matrix-card .eye-btn { color:rgba(0,255,65,0.35) !important; }
.matrix-card .eye-btn:hover { color:#00ff41 !important; }

.matrix-card .btn-primary { background:linear-gradient(135deg,rgba(0,180,40,0.95),rgba(0,255,65,0.85)) !important; color:#000 !important; font-family:'Courier New',monospace !important; font-weight:700 !important; letter-spacing:2px !important; text-transform:uppercase !important; border:1px solid rgba(0,255,65,0.4) !important; box-shadow:0 4px 20px rgba(0,255,65,0.25) !important; }
.matrix-card .btn-primary:hover { box-shadow:0 6px 30px rgba(0,255,65,0.5),0 0 50px rgba(0,255,65,0.2) !important; transform:translateY(-1px) !important; }
.matrix-card .btn-primary svg { filter:invert(1); }

.matrix-card .btn-ghost { border-color:rgba(0,255,65,0.12) !important; color:rgba(0,255,65,0.35) !important; font-family:'Courier New',monospace !important; font-size:0.76rem !important; }
.matrix-card .btn-ghost:hover { border-color:rgba(0,255,65,0.3) !important; color:rgba(0,255,65,0.65) !important; background:rgba(0,255,65,0.04) !important; }

.matrix-card .auth-error { background:rgba(255,30,30,0.1) !important; border-color:rgba(255,30,30,0.3) !important; color:#ff7b7b !important; font-family:'Courier New',monospace !important; }
.matrix-card .auth-note { color:rgba(0,255,65,0.3) !important; font-family:'Courier New',monospace !important; font-size:0.72rem !important; }
.matrix-card .auth-note strong { color:rgba(255,200,0,0.8) !important; }

/* Storage mode badge */
.storage-badge { position:fixed; bottom:16px; left:50%; transform:translateX(-50%); z-index:9999; display:flex; align-items:center; gap:6px; padding:5px 14px; border-radius:20px; font-size:0.72rem; font-weight:600; backdrop-filter:blur(10px); white-space:nowrap; }
.storage-badge.server { background:rgba(16,185,129,0.1); border:1px solid rgba(16,185,129,0.25); color:#34d399; }
.storage-badge.local  { background:rgba(245,158,11,0.1);  border:1px solid rgba(245,158,11,0.25);  color:#fbbf24; }
.storage-badge .dot   { width:6px; height:6px; border-radius:50%; animation:dotPulse 2s infinite; }
.storage-badge.server .dot { background:#10b981; }
.storage-badge.local  .dot { background:#f59e0b; }
@keyframes dotPulse { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:0.4;transform:scale(0.7)} }

/* ═══ Z-INDEX + TRANSPARENCY FIX for Matrix canvas ═══ */
/* Canvas sits at z-index:0 (body level) */
/* Screens sit above canvas */
.screen { position: fixed; inset: 0; z-index: 1; }

/* Auth screens must be transparent so canvas shows through */
#setupScreen, #loginScreen { background: transparent !important; }

/* Matrix bg is just a transparent layer — canvas handles background */
.matrix-bg { background: transparent !important; }

/* Auth card must be above canvas and screen layers */
.matrix-card { z-index: 10 !important; position: relative; }

/* Center the auth card within the screen (above canvas) */
#setupScreen, #loginScreen {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ═══════════════════════════════════════════════════════
   3D FLIP CREDIT CARD SYSTEM
   ═══════════════════════════════════════════════════════ */

/* Grid for cards section */
#cardsList {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 4px;
}

/* Wrapper for each card + actions */
.flip-card-wrap {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* ── COLLAPSED STATE (just bank name bar) ─────────── */
.flip-card-collapsed {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-radius: 16px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: transform .2s, box-shadow .2s;
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
  min-height: 72px;
}
.flip-card-collapsed:hover { transform: translateY(-2px); box-shadow: 0 8px 30px rgba(0,0,0,0.4); }

.fcc-left { display: flex; align-items: center; gap: 14px; }
.fcc-chip {
  width: 32px; height: 24px;
  background: linear-gradient(135deg,#ffd700,#b8860b);
  border-radius: 5px;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.2);
  flex-shrink: 0;
}
.fcc-info { display: flex; flex-direction: column; gap: 2px; }
.fcc-bank { font-size: 16px; font-weight: 700; color: #fff; letter-spacing: .5px; }
.fcc-last4 { font-size: 13px; color: rgba(255,255,255,.65); font-family: monospace; letter-spacing: 2px; }
.fcc-right { display: flex; align-items: center; }
.fcc-hint {
  position: absolute; bottom: 6px; right: 14px;
  font-size: 10px; color: rgba(255,255,255,.4); letter-spacing: .5px;
}

/* ── 3D FLIP CONTAINER ───────────────────────────── */
.flip-card-3d {
  width: 100%;
  max-width: 420px;
  height: 240px;
  perspective: 1200px;
  cursor: pointer;
}

.flip-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform .65s cubic-bezier(.4,0,.2,1);
  border-radius: 18px;
}
.flip-card-inner.flipped { transform: rotateY(180deg); }

/* Shared front+back styles */
.flip-card-front,
.flip-card-back {
  position: absolute;
  inset: 0;
  border-radius: 18px;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,.5), 0 0 0 1px rgba(255,255,255,.1);
  padding: 22px 24px;
  display: flex;
  flex-direction: column;
}
.flip-card-back { transform: rotateY(180deg); }

/* Shimmer overlay */
.fc-shimmer {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,.08) 0%, transparent 60%, rgba(255,255,255,.04) 100%);
  pointer-events: none;
  border-radius: 18px;
}

/* Front layout */
.fc-top { display: flex; justify-content: space-between; align-items: flex-start; }
.fc-bank { font-size: 15px; font-weight: 700; color: rgba(255,255,255,.9); letter-spacing: .5px; }
.fc-type { display: flex; align-items: center; }

.fc-chip {
  width: 44px; height: 34px;
  background: linear-gradient(135deg, #ffd700 0%, #c8a000 50%, #ffd700 100%);
  border-radius: 6px;
  margin-top: 18px;
  position: relative;
  box-shadow: 0 2px 8px rgba(0,0,0,.3), inset 0 0 0 1px rgba(255,255,255,.2);
}
.fc-chip::before {
  content: '';
  position: absolute;
  inset: 8px 0;
  border-top: 1px solid rgba(0,0,0,.2);
  border-bottom: 1px solid rgba(0,0,0,.2);
}
.fc-chip::after {
  content: '';
  position: absolute;
  inset: 0 14px;
  border-left: 1px solid rgba(0,0,0,.2);
  border-right: 1px solid rgba(0,0,0,.2);
}

.fc-number {
  font-size: 20px;
  font-family: 'Courier New', monospace;
  letter-spacing: 3px;
  color: rgba(255,255,255,.95);
  margin-top: auto;
  text-shadow: 0 2px 4px rgba(0,0,0,.4);
}

.fc-bottom {
  display: flex;
  gap: 32px;
  margin-top: 12px;
}
.fc-lbl { font-size: 9px; color: rgba(255,255,255,.5); letter-spacing: 1.5px; text-transform: uppercase; }
.fc-val { font-size: 13px; font-weight: 600; color: rgba(255,255,255,.9); margin-top: 2px; letter-spacing: .5px; }

/* Back layout */
.fc-stripe {
  position: absolute;
  top: 40px; left: 0; right: 0;
  height: 50px;
  background: #111;
  box-shadow: 0 4px 12px rgba(0,0,0,.5);
}

.fc-sig-row { margin-top: 110px; display: flex; align-items: center; }
.fc-sig-strip {
  flex: 1;
  height: 44px;
  background: repeating-linear-gradient(
    90deg,
    #e8e0cc 0px, #f5f0e8 4px, #e8e0cc 8px
  );
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 0 8px;
  gap: 10px;
}
.fc-sig-lines { display: flex; flex-direction: column; gap: 3px; flex: 1; padding: 6px 8px; }
.fc-sig-lines span { display: block; height: 1px; background: rgba(0,0,0,.15); }
.fc-cvv-box {
  background: #fff;
  border: 1px solid rgba(0,0,0,.2);
  border-radius: 4px;
  padding: 4px 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.fc-cvv-lbl { font-size: 8px; color: #666; letter-spacing: 1px; }
.fc-cvv-val { font-size: 16px; font-weight: 700; color: #111; letter-spacing: 3px; font-family: monospace; }

.fc-back-footer {
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Tap hint on both sides */
.fc-tap-hint {
  position: absolute;
  bottom: 10px;
  right: 16px;
  font-size: 10px;
  color: rgba(255,255,255,.35);
  letter-spacing: .5px;
}

/* ── Action buttons (Edit / Delete) ──────────────── */
.flip-card-actions {
  display: flex;
  gap: 8px;
  padding: 0 4px;
}
.fca-btn {
  flex: 1;
  padding: 8px;
  border: 1px solid rgba(255,255,255,.1);
  background: rgba(255,255,255,.04);
  border-radius: 8px;
  color: var(--text-muted);
  font-size: 12px;
  cursor: pointer;
  transition: background .2s, color .2s;
}
.fca-btn:hover { background: rgba(255,255,255,.08); color: var(--text); }
.fca-del:hover { background: rgba(239,68,68,.15); color: #ef4444; border-color: rgba(239,68,68,.3); }

/* ── Modal card preview ──────────────────── */
.modal-card-preview-wrap {
  display: flex;
  justify-content: center;
  margin: 16px 0 20px;
}
.modal-card-preview {
  width: 100%;
  max-width: 360px;
  height: 200px;
  border-radius: 16px;
  background: linear-gradient(135deg,#6366f1,#7c3aed);
  padding: 18px 20px;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 16px 40px rgba(0,0,0,.4), 0 0 0 1px rgba(255,255,255,.1);
  transition: background .3s;
}
.modal-card-preview .fc-chip {
  width: 38px; height: 28px; margin-top: 12px;
}
.modal-card-preview .fc-number {
  font-size: 17px; letter-spacing: 2px; margin-top: auto;
}
