/* ==========================================================================
   FF GLORY NEPAL - Design System
   Theme: Void Black, Guild Gold & Cyber Cyan (no red/crimson)
   ========================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Outfit:wght@400;500;600;700;800;900&family=Roboto+Mono:wght@400;500;600&display=swap');

:root {
  /* Core surface */
  --ng-bg-dark: #05070a;
  --ng-bg-card: rgba(13, 17, 23, 0.86);
  --ng-bg-card-hover: rgba(18, 23, 31, 0.92);
  --ng-bg-sunken: #090c11;

  --ng-border: rgba(148, 163, 184, 0.14);
  --ng-border-strong: rgba(148, 163, 184, 0.28);

  /* Accents */
  --ng-gold: #ffb703;
  --ng-gold-soft: #fbbf24;
  --ng-cyan: #22d3ee;
  --ng-cyan-deep: #06b6d4;
  --ng-emerald: #10b981;
  --ng-danger: #ef4444;

  --ng-text-primary: #f4f6fb;
  --ng-text-muted: #a3adc2;
  --ng-text-subtle: #6b7690;

  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'Roboto Mono', monospace;
}

/* Global Reset & Ambient Background */
body {
  font-family: var(--font-body);
  background-color: var(--ng-bg-dark);
  color: var(--ng-text-primary);
  background-image:
    radial-gradient(at 12% 0%, rgba(255, 183, 3, 0.08) 0px, transparent 45%),
    radial-gradient(at 88% 8%, rgba(34, 211, 238, 0.08) 0px, transparent 45%),
    radial-gradient(at 50% 100%, rgba(16, 185, 129, 0.05) 0px, transparent 50%);
  background-attachment: fixed;
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
}

.heading {
  font-family: var(--font-heading);
}

.font-mono {
  font-family: var(--font-mono);
}

/* Glassmorphism Card Styling */
.ng-card {
  background: var(--ng-bg-card);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid var(--ng-border);
  border-radius: 1.25rem;
  box-shadow: 0 12px 36px -10px rgba(0, 0, 0, 0.7), inset 0 1px 0 0 rgba(255, 255, 255, 0.04);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.ng-card:hover {
  border-color: var(--ng-border-strong);
  box-shadow: 0 15px 40px -10px rgba(0, 0, 0, 0.8), inset 0 1px 0 0 rgba(255, 255, 255, 0.08);
}

/* Elevated Inputs */
.ng-input {
  width: 100%;
  background: rgba(6, 8, 11, 0.85);
  border: 1px solid var(--ng-border);
  border-radius: 0.75rem;
  padding: 0.75rem 1rem;
  color: #ffffff;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  outline: none;
  transition: all 0.2s ease;
}

.ng-input:focus {
  border-color: var(--ng-cyan);
  box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.18);
  background: rgba(13, 17, 23, 0.95);
}

.ng-input::placeholder {
  color: var(--ng-text-subtle);
}

/* Modern Select Dropdowns */
.modern-select {
  width: 100%;
  background: rgba(6, 8, 11, 0.9);
  border: 1px solid var(--ng-border);
  border-radius: 0.75rem;
  padding: 0.75rem 1rem;
  color: #ffffff;
  font-family: var(--font-body);
  outline: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.modern-select:focus {
  border-color: var(--ng-gold);
  box-shadow: 0 0 0 3px rgba(255, 183, 3, 0.18);
}

.modern-select option {
  background: #0d1117;
  color: #ffffff;
}

/* Primary Action Buttons */
.btn-primary {
  background: linear-gradient(135deg, #22d3ee 0%, #06b6d4 100%);
  color: #041017;
  font-family: var(--font-heading);
  font-weight: 700;
  border: none;
  border-radius: 0.75rem;
  padding: 0.75rem 1.5rem;
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: 0 4px 15px rgba(34, 211, 238, 0.3);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(34, 211, 238, 0.5);
  filter: brightness(1.08);
}

.btn-primary:active {
  transform: translateY(0);
}

/* Gold Accent Buttons */
.btn-gold {
  background: linear-gradient(135deg, #ffb703 0%, #f59e0b 100%);
  color: #150d02;
  font-family: var(--font-heading);
  font-weight: 800;
  border: none;
  border-radius: 0.75rem;
  padding: 0.75rem 1.5rem;
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: 0 4px 15px rgba(255, 183, 3, 0.28);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(255, 183, 3, 0.45);
  filter: brightness(1.06);
}

/* Cyan Buttons (alias, kept for compatibility) */
.btn-cyan {
  background: linear-gradient(135deg, #06b6d4 0%, #38bdf8 100%);
  color: #041017;
  font-family: var(--font-heading);
  font-weight: 700;
  border: none;
  border-radius: 0.75rem;
  padding: 0.75rem 1.5rem;
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: 0 4px 15px rgba(6, 182, 212, 0.3);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.btn-cyan:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(6, 182, 212, 0.5);
}

/* Secondary Buttons */
.btn-secondary {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--ng-border);
  color: #ffffff;
  font-family: var(--font-heading);
  font-weight: 600;
  border-radius: 0.75rem;
  padding: 0.75rem 1.25rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--ng-border-strong);
}

/* Status Badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.badge-active {
  background: rgba(16, 185, 129, 0.12);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.28);
}

.badge-cyan {
  background: rgba(34, 211, 238, 0.12);
  color: #22d3ee;
  border: 1px solid rgba(34, 211, 238, 0.28);
}

.badge-gold {
  background: rgba(255, 183, 3, 0.12);
  color: #ffc107;
  border: 1px solid rgba(255, 183, 3, 0.28);
}

/* NPR Currency Badge */
.npr-badge {
  background: linear-gradient(135deg, rgba(255, 183, 3, 0.16) 0%, rgba(34, 211, 238, 0.1) 100%);
  border: 1px solid rgba(255, 183, 3, 0.35);
  color: #ffc107;
  padding: 0.35rem 0.85rem;
  border-radius: 0.75rem;
  font-weight: 800;
  font-family: var(--font-heading);
}

/* Pulse Animation for Live Squads */
.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--ng-emerald);
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  animation: pulse-green 2s infinite;
}

@keyframes pulse-green {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  }

  70% {
    transform: scale(1);
    box-shadow: 0 0 0 8px rgba(16, 185, 129, 0);
  }

  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
  }
}

/* Accent bar (gold -> cyan, no red) */
.nepal-accent-bar {
  height: 3px;
  background: linear-gradient(90deg, #ffb703 0%, #22d3ee 100%);
  width: 100%;
}

/* Progress Bar */
.progress-container {
  width: 100%;
  height: 10px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 9999px;
  overflow: hidden;
  position: relative;
}

.progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #22d3ee 0%, #ffb703 100%);
  border-radius: 9999px;
  transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: #05070a;
}

::-webkit-scrollbar-thumb {
  background: rgba(148, 163, 184, 0.25);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(148, 163, 184, 0.4);
}

/* Modal Animations */
.modal-enter {
  animation: modalFadeIn 0.25s ease-out forwards;
}

@keyframes modalFadeIn {
  from {
    opacity: 0;
    transform: scale(0.95) translateY(10px);
  }

  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

/* ==========================================================================
   Squad Card Component Styles
   ========================================================================== */

.squad-card {
  position: relative;
  background: linear-gradient(145deg, rgba(15, 19, 27, 0.75), rgba(8, 11, 16, 0.9));
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--ng-border);
  border-radius: 1.25rem;
  padding: 1.25rem;
  overflow: hidden;
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.85);
  transition: all 0.3s ease;
}

.squad-card:hover {
  border-color: rgba(34, 211, 238, 0.4);
  box-shadow: 0 12px 40px -10px rgba(34, 211, 238, 0.18), inset 0 1px 0 0 rgba(34, 211, 238, 0.1);
  transform: translateY(-4px);
}

.super-badge {
  position: absolute;
  top: 0;
  right: 0;
  background: linear-gradient(135deg, #ffb703 0%, #f59e0b 100%);
  color: #150d02;
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: 0.65rem;
  padding: 0.35rem 1rem;
  border-bottom-left-radius: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  box-shadow: -2px 2px 10px rgba(255, 183, 3, 0.35);
}

.squad-top {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.squad-logo {
  width: 56px;
  height: 56px;
  border-radius: 1rem;
  background: linear-gradient(135deg, rgba(34, 211, 238, 0.16), rgba(16, 185, 129, 0.14));
  border: 1px solid rgba(34, 211, 238, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  box-shadow: inset 0 0 20px rgba(34, 211, 238, 0.12);
}

.squad-info {
  flex: 1;
}

.squad-name {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 0.25rem;
}

.squad-meta {
  font-size: 0.75rem;
  color: var(--ng-text-subtle);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.squad-meta b {
  color: var(--ng-text-muted);
}

.squad-meta span {
  color: rgba(255, 255, 255, 0.1);
}

.level-badge {
  display: inline-block;
  background: rgba(34, 211, 238, 0.12);
  border: 1px solid rgba(34, 211, 238, 0.28);
  color: #22d3ee;
  font-size: 0.7rem;
  font-weight: 800;
  padding: 0.25rem 0.6rem;
  border-radius: 0.5rem;
  margin-bottom: 0.75rem;
}

.squad-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.08);
}

.stat {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.stat-label {
  font-size: 0.65rem;
  color: var(--ng-text-subtle);
  font-weight: 700;
  letter-spacing: 0.04em;
}

.stat-value {
  font-size: 0.9rem;
  font-weight: 700;
  font-family: var(--font-mono);
  color: #ffffff;
}

.stat-value.yellow {
  color: var(--ng-gold);
}

.stat-value.green {
  color: var(--ng-emerald);
}

.bot-card {
  background: rgba(8, 10, 14, 0.65);
  border-radius: 1rem;
  padding: 1rem;
  border: 1px solid var(--ng-border);
}

.bot-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 0.75rem;
}

.bot-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.bot-avatar {
  width: 40px;
  height: 40px;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.28);
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
}

.bot-id {
  font-size: 0.85rem;
  color: var(--ng-text-muted);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.bot-id strong {
  color: #ffffff;
  font-family: var(--font-mono);
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.28);
  color: #34d399;
  font-size: 0.7rem;
  font-weight: 800;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
}

.status-badge.stopped {
  background: rgba(239, 68, 68, 0.12);
  border-color: rgba(239, 68, 68, 0.28);
  color: #f87171;
}

.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 8px #10b981;
  animation: pulse-green 2s infinite;
}

.status-dot.stopped {
  background: #ef4444;
  box-shadow: none;
  animation: none;
}

.updated {
  font-size: 0.65rem;
  color: var(--ng-text-subtle);
  text-align: right;
  margin-top: 0.35rem;
}

.details-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.02);
  padding: 0.5rem 0.75rem;
  border-radius: 0.75rem;
  font-size: 0.75rem;
  color: var(--ng-text-muted);
  margin-bottom: 0.75rem;
}

.details-row strong {
  color: #ffffff;
}

.metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.metric {
  background: rgba(0, 0, 0, 0.35);
  padding: 0.5rem;
  border-radius: 0.75rem;
  font-size: 0.7rem;
  color: var(--ng-text-subtle);
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  border: 1px solid rgba(255, 255, 255, 0.02);
}

.metric strong {
  font-size: 1rem;
  font-family: var(--font-mono);
  color: #ffffff;
}

.metric strong.yellow {
  color: var(--ng-gold);
}

.metric strong.green {
  color: var(--ng-emerald);
}

.goal {
  margin-bottom: 1rem;
}

.goal-head {
  display: flex;
  justify-content: space-between;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--ng-text-muted);
  margin-bottom: 0.5rem;
}

.goal-percent {
  color: var(--ng-gold);
}

.progress {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #22d3ee 0%, #ffb703 100%);
  border-radius: 999px;
  transition: width 0.5s ease;
}

.btn-action.restart {
  background: linear-gradient(135deg, rgba(34, 211, 238, 0.12) 0%, rgba(255, 183, 3, 0.12) 100%);
  border: 1px solid rgba(255, 183, 3, 0.35);
  color: #ffc107;
  font-family: var(--font-heading);
  font-weight: 800;
  border-radius: 0.75rem;
  transition: all 0.2s ease;
}

.btn-action.restart:hover {
  background: linear-gradient(135deg, rgba(34, 211, 238, 0.2) 0%, rgba(255, 183, 3, 0.22) 100%);
  box-shadow: 0 4px 15px rgba(255, 183, 3, 0.22);
  transform: translateY(-2px);
}