/* Paze Punch Styles */
:root {
  --primary: #4f46e5;
  --primary-hover: #4338ca;
  --paze-blue: #002D72;
  --paze-teal: #00A3E0;
  --paze-gold: #FFB81C;
  --bg-dark: #090d16;
  --card-dark: #131d31;
}

html, body {
  background-color: #080c14 !important;
  color: #f8fafc;
  min-height: 100%;
  margin: 0;
  padding: 0;
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: rgba(9, 13, 22, 0.8);
}
::-webkit-scrollbar-thumb {
  background: #1e293b;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #334155;
}

/* Credit Card Styling */
.credit-card-container {
  perspective: 1000px;
}

.credit-card {
  aspect-ratio: 1.586 / 1;
  border-radius: 18px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.35), 0 10px 10px rgba(0, 0, 0, 0.22);
  transition: transform 0.25s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.25s ease;
  user-select: none;
}

.credit-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 35px rgba(0, 0, 0, 0.45), 0 12px 14px rgba(0, 0, 0, 0.28);
}

/* Card Themes */
.theme-sapphire {
  background: linear-gradient(135deg, #0b1e3d 0%, #173b70 50%, #0d2244 100%);
  border: 1px solid rgba(56, 189, 248, 0.2);
}

.theme-amex-gold {
  background: linear-gradient(135deg, #8a6f27 0%, #d4af37 45%, #f9e8a2 70%, #9e7b22 100%);
  border: 1px solid rgba(254, 240, 138, 0.4);
  color: #1c1917 !important;
}
.theme-amex-gold .text-white {
  color: #1c1917 !important;
}
.theme-amex-gold .text-slate-300 {
  color: #44403c !important;
}
.theme-amex-gold .text-slate-400 {
  color: #57534e !important;
}
.theme-amex-gold .chip-fill {
  fill: #78350f !important;
}

.theme-amex-plat {
  background: linear-gradient(135deg, #94a3b8 0%, #e2e8f0 40%, #cbd5e1 75%, #64748b 100%);
  border: 1px solid rgba(255, 255, 255, 0.6);
  color: #0f172a !important;
}
.theme-amex-plat .text-white {
  color: #0f172a !important;
}
.theme-amex-plat .text-slate-300 {
  color: #334155 !important;
}
.theme-amex-plat .text-slate-400 {
  color: #475569 !important;
}

.theme-capital-one {
  background: linear-gradient(135deg, #881337 0%, #be123c 50%, #4c0519 100%);
  border: 1px solid rgba(251, 113, 133, 0.25);
}

.theme-citi-double {
  background: linear-gradient(135deg, #083344 0%, #0e7490 50%, #155e75 100%);
  border: 1px solid rgba(34, 211, 238, 0.25);
}

.theme-apple-titanium {
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 50%, #e2e8f0 100%);
  border: 1px solid rgba(255, 255, 255, 0.9);
  color: #0f172a !important;
}
.theme-apple-titanium .text-white {
  color: #0f172a !important;
}
.theme-apple-titanium .text-slate-300 {
  color: #334155 !important;
}
.theme-apple-titanium .text-slate-400 {
  color: #64748b !important;
}

.theme-wells-fargo {
  background: linear-gradient(135deg, #991b1b 0%, #b91c1c 45%, #7f1d1d 100%);
  border: 1px solid rgba(252, 165, 165, 0.3);
}

.theme-emerald {
  background: linear-gradient(135deg, #064e3b 0%, #047857 50%, #022c22 100%);
  border: 1px solid rgba(52, 211, 153, 0.3);
}

.theme-purple-galaxy {
  background: linear-gradient(135deg, #3b0764 0%, #6b21a8 50%, #2e1065 100%);
  border: 1px solid rgba(192, 132, 252, 0.3);
}

.theme-midnight-black {
  background: linear-gradient(135deg, #18181b 0%, #27272a 50%, #09090b 100%);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.theme-paze-blue {
  background: linear-gradient(135deg, #001B44 0%, #002D72 50%, #004B98 100%);
  border: 1px solid rgba(0, 163, 224, 0.35);
}

/* Punch Stamp Styling */
.punch-stamp {
  transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
}

.punch-stamp:hover {
  transform: scale(1.08);
}

.punch-stamp.punched {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: white;
  box-shadow: 0 0 14px rgba(16, 185, 129, 0.5);
  animation: stamp-pop 0.3s ease-out;
}

.punch-stamp.empty {
  background: rgba(30, 41, 59, 0.75);
  border: 1.5px dashed rgba(148, 163, 184, 0.4);
  color: #94a3b8;
}

.punch-stamp.empty:hover {
  border-color: #38bdf8;
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.15);
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.3);
}

@keyframes stamp-pop {
  0% { transform: scale(0.6) rotate(-15deg); opacity: 0; }
  70% { transform: scale(1.18) rotate(4deg); }
  100% { transform: scale(1) rotate(0deg); opacity: 1; }
}

/* Modal and Drawer */
.modal-backdrop {
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.embossed-text {
  letter-spacing: 2px;
  text-shadow: 0 1px 2px rgba(0,0,0,0.6);
  font-family: 'Courier New', Courier, monospace;
  font-weight: 700;
}

/* Drag and Drop Card Reordering */
.card-item {
  transition: transform 0.2s ease, opacity 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.card-item.dragging {
  opacity: 0.45;
  transform: scale(0.97);
  box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.6);
}

.card-item.drag-over {
  border-color: #6366f1 !important;
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 0 25px rgba(99, 102, 241, 0.4);
  background-color: rgba(30, 27, 75, 0.6) !important;
}

.card-drag-handle {
  cursor: grab;
  user-select: none;
  touch-action: none;
}

.card-drag-handle:active {
  cursor: grabbing;
}
