/* 
  Premium Fintech Design System
  Theme: Dark Graphite, Electric Accents, Glassmorphism
*/

:root {
  /* Brand Colors */
  --color-primary: #38bdf8;
  --color-primary-dark: #0284c7;
  --color-accent: #a78bfa;
  --color-success: #34d399;
  --color-danger: #fb7185;
  
  /* Backgrounds */
  --bg-body: #06080f;
  --bg-gradient-start: #10131f;
  --bg-gradient-end: #05070d;
  
  /* Glassmorphism */
  --glass-bg: rgba(15, 18, 30, 0.84);
  --glass-border: rgba(203, 213, 225, 0.18);
  --glass-shadow: 0 24px 80px rgba(0, 0, 0, 0.36);
  --glass-blur: 16px;

  /* Text */
  --text-main: #f8fafc;
  --text-muted: #dbe4ef;
  --text-light: #a8b3c5;

  /* Spacing & Radius */
  --radius-lg: 16px;
  --radius-xl: 24px;
}

/* Base */
body {
  font-family: 'Outfit', sans-serif;
  background:
    radial-gradient(circle at top left, rgba(56, 189, 248, 0.18), transparent 34rem),
    radial-gradient(circle at 85% 12%, rgba(167, 139, 250, 0.16), transparent 30rem),
    linear-gradient(135deg, var(--bg-gradient-start), var(--bg-gradient-end));
  color: var(--text-main);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

/* Glass Card */
.glass-card {
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--glass-shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.glass-card:hover {
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.46);
}

/* Custom Input */
.custom-input {
  background: rgba(3, 7, 18, 0.58);
  border: 1px solid rgba(203, 213, 225, 0.24);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  font-weight: 500;
  color: var(--text-main);
}

.custom-input:focus {
  background: rgba(2, 6, 23, 0.78);
  border-color: var(--service-color, var(--color-primary));
  box-shadow: 0 0 0 4px var(--service-shadow, rgba(56, 189, 248, 0.16));
  outline: none;
}

.custom-input::placeholder {
  color: #94a3b8;
}

.custom-input option {
  background: #0f172a;
  color: #f8fafc;
}

/* Buttons */
.btn-primary {
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
  color: white;
  font-weight: 600;
  border-radius: var(--radius-lg);
  transition: all 0.3s ease;
  box-shadow: 0 10px 15px -3px rgba(37, 99, 235, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 25px -5px rgba(37, 99, 235, 0.4);
}

.btn-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background 0.2s;
}

.btn-icon:hover {
  background: rgba(255, 255, 255, 0.08);
}

/* Service Selection */
.service-card {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  background: rgba(2, 6, 23, 0.58) !important;
  border: 1px solid rgba(203, 213, 225, 0.18) !important;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.12), rgba(255,255,255,0));
  opacity: 0;
  transition: opacity 0.3s;
}

.service-card:hover {
  transform: translateY(-4px);
  border-color: rgba(226, 232, 240, 0.28) !important;
  box-shadow: 0 20px 35px -12px rgba(0, 0, 0, 0.55);
}

.service-card.selected {
  background: var(--brand-bg) !important;
  border-color: transparent;
  color: white;
}

.service-card.selected .icon-wrapper {
  background: rgba(255,255,255,0.2) !important;
  color: white !important;
}

.service-card.selected span {
  color: white;
}

.service-card span {
  color: #e2e8f0 !important;
}

.dark-surface {
  background: rgba(2, 6, 23, 0.48);
  border-color: rgba(203, 213, 225, 0.18);
}

.dark-choice {
  background: rgba(2, 6, 23, 0.62);
  border-color: rgba(203, 213, 225, 0.2);
  color: #dbe4ef;
}

.dark-choice:hover {
  border-color: rgba(226, 232, 240, 0.28);
}

.preview-frame {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 320px;
  max-height: 420px;
  overflow: hidden;
  border: 1px solid rgba(203, 213, 225, 0.18);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(180deg, rgba(15, 23, 42, 0.82), rgba(2, 6, 23, 0.92)),
    radial-gradient(circle at 50% 0, var(--service-shadow, rgba(56, 189, 248, 0.16)), transparent 18rem);
}

.preview-frame::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04), inset 0 -60px 90px rgba(2, 6, 23, 0.34);
}

.preview-frame img {
  width: 100%;
  height: 100%;
  max-height: 420px;
  object-fit: contain;
  padding: 16px;
  filter: drop-shadow(0 22px 34px rgba(0, 0, 0, 0.38));
}

@media (max-width: 1023px) {
  .preview-frame {
    min-height: 280px;
  }
}

@media (max-width: 640px) {
  .preview-frame {
    min-height: 240px;
  }

  .preview-frame img {
    padding: 12px;
  }
}

/* Animations */
@keyframes slideUpFade {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-enter {
  animation: slideUpFade 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.stagger-1 { animation-delay: 0.1s; }
.stagger-2 { animation-delay: 0.2s; }
.stagger-3 { animation-delay: 0.3s; }

/* Loader */
.loader-ring {
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top: 3px solid white;
  width: 20px;
  height: 20px;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Utilities */
.text-gradient {
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-image: linear-gradient(to right, #e0f2fe, var(--color-primary), var(--color-accent));
  filter: drop-shadow(0 10px 30px rgba(56, 189, 248, 0.18));
}

.blob {
  position: absolute;
  filter: blur(40px);
  z-index: -1;
  opacity: 0.6;
}
