/*


 */

:root {
  --color-bg: #0a0a0f;
  --color-surface: #111118;
  --color-surface-raised: #1a1a24;
  --color-border: #2a2a3a;
  --color-border-bright: #3a3a50;
  --color-primary: #7c6dfa;
  --color-primary-glow: rgba(124, 109, 250, 0.15);
  --color-accent: #f97316;
  --color-success: #22c55e;
  --color-warning: #eab308;
  --color-text-primary: #f1f0ff;
  --color-text-secondary: #8b8aa8;
  --color-text-tertiary: #55546e;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; }
html, body { overflow-x: hidden; }
input:focus, select:focus, textarea:focus, button:focus { outline: none; }

/* Scrollbar */
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: var(--color-bg); }
::-webkit-scrollbar-thumb { background: var(--color-border-bright); border-radius: 3px; }

/* Lucide icon sizing helpers */
.icon-sm { width: 16px; height: 16px; }
.icon-md { width: 20px; height: 20px; }
.icon-lg { width: 24px; height: 24px; }

/* Card component */
.hd-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  transition: border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}
.hd-card-hover:hover {
  border-color: var(--color-border-bright);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(124, 109, 250, 0.08);
}

/* Input component */
.hd-input {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  color: var(--color-text-primary);
  width: 100%;
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  font-family: 'DM Sans', sans-serif;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.hd-input:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px var(--color-primary-glow);
}
.hd-input::placeholder { color: var(--color-text-tertiary); }
.hd-input::-webkit-calendar-picker-indicator { filter: invert(0.5); }
select.hd-input option { background: var(--color-surface-raised); color: var(--color-text-primary); }

/* Badge variants */
.badge { display: inline-flex; align-items: center; font-size: 11px; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; padding: 2px 10px; border-radius: 999px; }
.badge-open    { background: #052814; color: #22c55e; border: 1px solid #166534; }
.badge-matched { background: #0d0a2e; color: #7c6dfa; border: 1px solid #3730a3; }
.badge-transit { background: #1c0a00; color: #f97316; border: 1px solid #9a3412; }
.badge-done    { background: #1a1a24; color: #55546e; border: 1px solid #2a2a3a; }
.badge-warning { background: #1a1400; color: #eab308; border: 1px solid #713f12; }

/* Ticker animation */
@keyframes ticker {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.ticker-track {
  display: flex;
  width: max-content;
  animation: ticker 24s linear infinite;
}
.ticker-track:hover { animation-play-state: paused; }

/* Fade up */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}
.fade-up { animation: fadeUp 0.3s ease forwards; }

/* Pulse dot */
@keyframes pulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.4; transform: scale(0.8); }
}
.pulse-dot { animation: pulseDot 2s ease-in-out infinite; }

/* Progress step connector */
.step-line { flex: 1; height: 1px; background: var(--color-border); }
.step-line.done { background: var(--color-primary); }

/* Grid pattern for hero */
.grid-pattern {
  background-image:
    linear-gradient(var(--color-border) 1px, transparent 1px),
    linear-gradient(90deg, var(--color-border) 1px, transparent 1px);
  background-size: 40px 40px;
}

/* Primary glow button */
.btn-primary {
  background: var(--color-primary);
  color: #fff;
  border-radius: var(--radius-md);
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 0.01em;
  transition: filter 0.15s ease, transform 0.15s ease;
  cursor: pointer;
}
.btn-primary:hover  { filter: brightness(1.1); transform: translateY(-1px); }
.btn-primary:active { transform: scale(0.98); }

/* Secondary button */
.btn-secondary {
  background: transparent;
  border: 1px solid var(--color-border-bright);
  color: var(--color-text-primary);
  border-radius: var(--radius-md);
  font-weight: 500;
  font-size: 14px;
  transition: background 0.15s ease;
  cursor: pointer;
}
.btn-secondary:hover { background: var(--color-surface-raised); }

/* Razorpay pay button */
#pay-btn:hover { filter: brightness(1.1); transform: translateY(-1px); }
