@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800;900&family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=JetBrains+Mono:wght@400;500;600;700&display=swap');

:root {
  --primary-red: #E50914;
  --accent-red: #FF2E3B;
  --dark-red: #8B0000;
  --glow-red: rgba(229, 9, 20, 0.4);
}

body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  -webkit-tap-highlight-color: transparent;
}

.font-heading {
  font-family: 'Outfit', sans-serif;
}

.font-mono-iban {
  font-family: 'JetBrains Mono', monospace;
  letter-spacing: 0.06em;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-track {
  background: #0d0e12;
}
::-webkit-scrollbar-thumb {
  background: #2a2d37;
  border-radius: 9999px;
}
::-webkit-scrollbar-thumb:hover {
  background: #dc2626;
}

/* Ambient glow orbs */
.ambient-glow-1 {
  position: absolute;
  width: 450px;
  height: 450px;
  background: radial-gradient(circle, rgba(220, 38, 38, 0.25) 0%, rgba(185, 28, 28, 0.08) 50%, transparent 70%);
  filter: blur(60px);
  border-radius: 50%;
  pointer-events: none;
  animation: floatOrb 12s ease-in-out infinite alternate;
}

.ambient-glow-2 {
  position: absolute;
  width: 380px;
  height: 380px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.12) 0%, rgba(220, 38, 38, 0.08) 50%, transparent 70%);
  filter: blur(65px);
  border-radius: 50%;
  pointer-events: none;
  animation: floatOrb 16s ease-in-out infinite alternate-reverse;
}

@keyframes floatOrb {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(30px, -20px) scale(1.08); }
  100% { transform: translate(-20px, 30px) scale(0.95); }
}

/* Glassmorphism Card */
.glass-panel {
  background: rgba(18, 20, 26, 0.78);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.glass-panel-light {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(220, 38, 38, 0.15);
  box-shadow: 0 20px 40px -10px rgba(220, 38, 38, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

/* Interactive Card Hover Glow */
.card-hover-effect {
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}

.card-hover-effect:hover {
  transform: translateY(-3px);
  border-color: rgba(239, 68, 68, 0.5);
  box-shadow: 0 12px 30px -10px rgba(220, 38, 38, 0.35);
}

/* Credit Card IBAN Visuals */
.bank-card-yapikredi {
  background: linear-gradient(135deg, #071529 0%, #0d274c 45%, #050d1a 100%);
  border: 1px solid rgba(59, 130, 246, 0.4);
  position: relative;
  overflow: hidden;
}

.bank-card-enpara {
  background: linear-gradient(135deg, #140926 0%, #281145 45%, #0d0519 100%);
  border: 1px solid rgba(168, 85, 247, 0.4);
  position: relative;
  overflow: hidden;
}

.bank-card-vakif {
  background: linear-gradient(135deg, #1f1604 0%, #362607 45%, #130e02 100%);
  border: 1px solid rgba(245, 158, 11, 0.4);
  position: relative;
  overflow: hidden;
}

.bank-card-garanti {
  background: linear-gradient(135deg, #1b0d0f 0%, #2f0d12 45%, #130507 100%);
  border: 1px solid rgba(239, 68, 68, 0.35);
  position: relative;
  overflow: hidden;
}

.bank-card-ziraat {
  background: linear-gradient(135deg, #240b0e 0%, #3e0e14 45%, #180507 100%);
  border: 1px solid rgba(248, 113, 113, 0.35);
  position: relative;
  overflow: hidden;
}

.bank-card-qnb {
  background: linear-gradient(135deg, #0e111b 0%, #1c152e 50%, #0d0f17 100%);
  border: 1px solid rgba(168, 85, 247, 0.3);
  position: relative;
  overflow: hidden;
}

/* Card Chip Effect */
.card-chip {
  width: 42px;
  height: 32px;
  background: linear-gradient(135deg, #d4af37 0%, #f3e5ab 50%, #aa7c11 100%);
  border-radius: 6px;
  position: relative;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

.card-chip::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background: rgba(0, 0, 0, 0.25);
}

.card-chip::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 1px;
  background: rgba(0, 0, 0, 0.25);
}

/* Shimmer Light Reflection on Bank Card */
.card-shimmer {
  position: relative;
  overflow: hidden;
}

.card-shimmer::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    60deg,
    transparent 35%,
    rgba(255, 255, 255, 0.08) 50%,
    transparent 65%
  );
  transform: rotate(30deg);
  pointer-events: none;
  transition: transform 0.8s;
}

.card-shimmer:hover::after {
  transform: rotate(30deg) translate(20%, 20%);
}

/* Animated Ring for Avatar */
@keyframes pulseGlow {
  0% {
    box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7);
  }
  70% {
    box-shadow: 0 0 0 14px rgba(239, 68, 68, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(239, 68, 68, 0);
  }
}

.avatar-pulse {
  animation: pulseGlow 2.5s infinite;
}

/* Toast Animation */
@keyframes toastSlideIn {
  from {
    transform: translateY(20px) scale(0.95);
    opacity: 0;
  }
  to {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
}

@keyframes toastSlideOut {
  from {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
  to {
    transform: translateY(20px) scale(0.95);
    opacity: 0;
  }
}

.toast-enter {
  animation: toastSlideIn 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.toast-exit {
  animation: toastSlideOut 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Active Tab indicator transition */
.tab-btn.active {
  background: linear-gradient(135deg, #dc2626 0%, #991b1b 100%);
  color: #ffffff;
  border-color: #ef4444;
  box-shadow: 0 4px 18px rgba(220, 38, 38, 0.45);
}

/* Glowing dot */
.live-dot {
  position: relative;
}
.live-dot::before {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  background: #22c55e;
  opacity: 0.75;
  animation: livePing 1.8s cubic-bezier(0, 0, 0.2, 1) infinite;
}

@keyframes livePing {
  75%, 100% {
    transform: scale(2.2);
    opacity: 0;
  }
}
