/* ==========================================================================
   Kaddu Glory Bot — Cloud Management Dashboard Styles (dashboard.css)
   Clean, Modern Light Theme matching Kadduyt Brand (style.css)
   Page BG: #fafaf9 | Surfaces: #ffffff | Primary: #ff6b00 | Text: #18181b
   ========================================================================== */

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

:root {
  --dash-bg: #fafaf9;
  --dash-sidebar: #ffffff;
  --dash-card: #ffffff;
  --dash-card-hover: #ffffff;
  --dash-border: #e4e4e7;
  --dash-border-strong: #d4d4d8;
  --dash-border-glow: rgba(255, 107, 0, 0.2);
  --dash-text: #18181b;
  --dash-text-body: #3f3f46;
  --dash-muted: #71717a;
  --dash-primary: #ff6b00;
  --dash-primary-hover: #ea580c;
  --dash-primary-glow: rgba(255, 107, 0, 0.2);
  --dash-primary-subtle: #fff7ed;
  --dash-primary-border: #fed7aa;
  --dash-accent: #ff6b00;
  --dash-green: #10b981;
  --dash-green-bg: #ecfdf5;
  --dash-green-border: #a7f3d0;
  --dash-green-text: #047857;
  --dash-gold: #f59e0b;
  --dash-danger: #ef4444;
  --dash-radius: 12px;
  --dash-radius-sm: 8px;
}

*, *::before, *::after {
  box-sizing: border-box;
}

html, body.dashboard-body {
  margin: 0;
  padding: 0;
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden;
  background-color: var(--dash-bg);
  color: var(--dash-text-body);
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* --------------------------------------------------------------------------
   Top Navbar
   -------------------------------------------------------------------------- */
.dash-navbar {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--dash-border);
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 100000;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.04);
}

.dash-brand-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 800;
  font-size: 19px;
  letter-spacing: -0.02em;
  color: #18181b;
}

.dash-brand-img {
  width: 34px;
  height: 34px;
  object-fit: contain;
  filter: drop-shadow(0 0 10px rgba(255, 107, 0, 0.55));
  flex-shrink: 0;
}

.dash-brand-text {
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #18181b;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.dash-brand-text b,
.dash-brand-text strong,
.dash-brand-wrap b,
.dash-brand-wrap strong {
  color: var(--dash-primary, #ff6b00);
  font-weight: 800;
}

.dash-brand-icon {
  width: 34px;
  height: 34px;
  background: linear-gradient(135deg, var(--dash-primary) 0%, #ea580c 100%);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: #ffffff;
  box-shadow: 0 2px 8px var(--dash-primary-glow);
}

.dash-brand-title {
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.3px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #18181b;
}

.dash-live-badge {
  background: var(--dash-green-bg);
  color: var(--dash-green-text);
  border: 1px solid var(--dash-green-border);
  font-size: 10px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 20px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.dash-live-badge::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--dash-green);
  border-radius: 50%;
  animation: dashPulse 2s infinite ease-in-out;
}

@keyframes dashPulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.4); opacity: 0.5; }
}

.dash-nav-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.dash-credit-pill {
  background: var(--dash-primary-subtle);
  border: 1px solid var(--dash-primary-border);
  color: #ea580c;
  font-size: 13px;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 30px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}
.dash-credit-pill:hover {
  background: #ffedd5;
  border-color: #ff6b00;
  transform: translateY(-1px);
  box-shadow: 0 3px 10px rgba(255, 107, 0, 0.15);
}

.dash-credit-pill .btn-add-credit {
  background: linear-gradient(135deg, #ff6b00 0%, #ea580c 100%);
  color: #ffffff;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 800;
}

.dash-btn-icon {
  background: #f4f4f5;
  border: 1px solid var(--dash-border);
  color: #52525b;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}
.dash-btn-icon:hover {
  background: #e4e4e7;
  color: #18181b;
}

.dash-user-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 5px 12px 5px 5px;
  background: #ffffff;
  border: 1px solid var(--dash-border);
  border-radius: 30px;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}
.dash-user-badge:hover {
  background: #fafaf9;
  border-color: #d4d4d8;
  transform: translateY(-1px);
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.08);
}

.dash-user-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ff6b00 0%, #ea580c 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 800;
  color: #ffffff;
  box-shadow: 0 2px 6px rgba(255, 107, 0, 0.3);
}

.dash-user-name {
  font-size: 12px;
  font-weight: 700;
  color: #18181b;
}

.dash-user-role {
  font-size: 10px;
  color: #ea580c;
  font-weight: 600;
  display: block;
}

.dash-user-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 230px;
  background: #ffffff;
  border: 1px solid var(--dash-border);
  border-radius: var(--dash-radius-sm);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12), 0 4px 8px rgba(0, 0, 0, 0.05);
  padding: 8px;
  z-index: 1200;
  display: none;
}
.dash-user-dropdown.show {
  display: block;
  animation: dropFade 0.2s ease;
}

.dash-user-dropdown-header {
  padding: 10px 12px;
  background: var(--dash-primary-subtle);
  border-radius: 6px;
  margin-bottom: 6px;
}

.dash-role-badge {
  display: inline-block;
  background: #fed7aa;
  color: #c2410c;
  border: 1px solid #fdba74;
  font-size: 10px;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 4px;
  margin-top: 4px;
}

.dash-dropdown-divider {
  height: 1px;
  background: var(--dash-border);
  margin: 4px 0;
}

.dash-dropdown-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  color: #3f3f46;
  cursor: pointer;
  transition: all 0.15s ease;
}
.dash-dropdown-link:hover {
  background: var(--dash-primary-subtle);
  color: var(--dash-primary);
  transform: translateX(2px);
}
.dash-dropdown-link.logout:hover {
  background: #fef2f2;
  color: #dc2626;
}

/* --------------------------------------------------------------------------
   Layout (Sidebar + Main Content)
   -------------------------------------------------------------------------- */
.dash-app-layout {
  display: flex !important;
  flex: 1;
  min-height: calc(100vh - 61px);
}

.dash-sidebar {
  width: 240px;
  background: #ffffff;
  border-right: 1px solid var(--dash-border);
  padding: 20px 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex-shrink: 0;
}

.dash-menu-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 14px;
  border-radius: var(--dash-radius-sm);
  color: #52525b;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  background: transparent;
  border: 1px solid transparent;
  width: 100%;
  cursor: pointer;
  text-align: left;
  transition: all 0.18s ease;
}

.dash-menu-item-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.dash-menu-item:hover {
  background: #f4f4f5;
  color: #18181b;
}

.dash-menu-item.active {
  background: var(--dash-primary-subtle);
  color: var(--dash-primary);
  border: 1px solid var(--dash-primary-border);
  font-weight: 700;
}

.dash-menu-badge {
  background: #f4f4f5;
  color: #71717a;
  border: 1px solid var(--dash-border);
  font-size: 10px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 12px;
}

.dash-main-area {
  flex: 1;
  padding: 24px 32px;
  max-width: 1120px;
  margin: 0 auto;
  width: 100%;
  box-sizing: border-box;
}

/* --------------------------------------------------------------------------
   Cards & Panels
   -------------------------------------------------------------------------- */
.dash-card {
  background: #ffffff;
  border: 1px solid var(--dash-border);
  border-radius: var(--dash-radius);
  padding: 22px;
  margin-bottom: 24px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04), 0 1px 2px rgba(0, 0, 0, 0.02);
}

.dash-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.dash-card-title {
  font-size: 16px;
  font-weight: 800;
  color: #18181b;
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
}

/* Launch Group Form */
.dash-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-bottom: 14px;
}

.dash-field-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  position: relative;
}

.dash-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #52525b;
}

.dash-input, .dash-select-btn {
  background: #ffffff;
  border: 1px solid var(--dash-border-strong);
  border-radius: var(--dash-radius-sm);
  padding: 12px 14px;
  color: #18181b;
  font-size: 13px;
  width: 100%;
  box-sizing: border-box;
  outline: none;
  transition: all 0.2s ease;
  font-family: inherit;
}

.dash-select-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  text-align: left;
}

.dash-input:focus, .dash-select-btn:focus, .dash-select-btn.active {
  border-color: var(--dash-primary);
  box-shadow: 0 0 0 3px rgba(255, 107, 0, 0.15);
}

.dash-helper-text {
  font-size: 11px;
  color: var(--dash-muted);
  margin-top: 4px;
}

/* Custom Region Search Dropdown & Stacking Isolation */
#launch-new-group-card {
  position: relative !important;
  z-index: 30 !important;
}

.dash-card:has(.region-dropdown-modal.open),
#launch-new-group-card.region-open {
  position: relative !important;
  z-index: 1000 !important;
}

#region-field-group:has(.region-dropdown-modal.open),
#region-field-group.region-open {
  position: relative !important;
  z-index: 1001 !important;
}

.region-dropdown-modal {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background: #ffffff;
  border: 1px solid var(--dash-primary-border);
  border-radius: var(--dash-radius-sm);
  margin-top: 6px;
  z-index: 1005 !important;
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.35), 0 4px 16px rgba(0, 0, 0, 0.12);
  padding: 8px;
  box-sizing: border-box;
  display: none;
}

.active-groups-header-bar,
.active-groups-list {
  position: relative !important;
  z-index: 2 !important;
}

/* User Profile Dropdown Menu in Navbar */
.header-user-area {
  position: relative;
  z-index: 100001 !important;
}

.header-user-area .user-dropdown-menu,
.user-dropdown-menu.udm,
.user-dropdown-menu {
  z-index: 100002 !important;
}

.region-dropdown-modal.open {
  display: block;
  animation: dropFade 0.2s ease;
}

@keyframes dropFade {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}

.region-search-input {
  width: 100%;
  background: #f4f4f5;
  border: 1px solid var(--dash-border);
  border-radius: 6px;
  padding: 8px 12px;
  color: #18181b;
  font-size: 12px;
  box-sizing: border-box;
  outline: none;
  margin-bottom: 8px;
  font-family: inherit;
}
.region-search-input:focus {
  border-color: var(--dash-primary);
  background: #ffffff;
}

.region-list-box {
  max-height: 220px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.region-option-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 12px;
  border-radius: 6px;
  font-size: 13px;
  color: #3f3f46;
  cursor: pointer;
  transition: all 0.15s ease;
}

.region-option-item:hover {
  background: #f4f4f5;
  color: #18181b;
}

.region-option-item.selected {
  background: var(--dash-primary-subtle);
  color: var(--dash-primary);
  font-weight: 700;
}

.dash-warning-box {
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: var(--dash-radius-sm);
  padding: 10px 14px;
  font-size: 12px;
  color: #b45309;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
}
.dash-warning-box a {
  color: #b45309 !important;
}

.btn-start-group {
  width: 100%;
  background: linear-gradient(135deg, var(--dash-primary) 0%, #ea580c 100%);
  color: #ffffff;
  border: none;
  border-radius: var(--dash-radius-sm);
  padding: 14px 20px;
  font-size: 14px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(255, 107, 0, 0.25);
  transition: all 0.2s ease;
  font-family: inherit;
}
.btn-start-group:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 107, 0, 0.35);
  background: #ea580c;
}

/* --------------------------------------------------------------------------
   BRAND NEW CUSTOM UI: My Active Groups
   -------------------------------------------------------------------------- */
.active-group-custom-card {
  background: #ffffff;
  border: 1px solid var(--dash-border);
  border-radius: var(--dash-radius);
  overflow: hidden;
  box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.06);
  position: relative;
}

.active-group-custom-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #10b981 0%, var(--dash-primary) 50%, #f59e0b 100%);
}

.custom-card-topbar {
  padding: 18px 22px;
  border-bottom: 1px solid #f4f4f5;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.custom-clan-profile {
  display: flex;
  align-items: center;
  gap: 14px;
}

.clan-emblem-badge {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: linear-gradient(135deg, #fff7ed 0%, #ffedd5 100%);
  border: 1.5px solid #fed7aa;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(255, 107, 0, 0.15);
  position: relative;
  flex-shrink: 0;
}

.clan-emblem-img {
  width: 36px;
  height: 36px;
  object-fit: contain;
  filter: drop-shadow(0 2px 4px rgba(234, 88, 12, 0.25));
}

.clan-emblem-badge .clan-lvl-tag {
  position: absolute;
  bottom: -4px;
  background: #ffffff;
  border: 1px solid #fed7aa;
  color: #ea580c;
  font-size: 9px;
  font-weight: 800;
  padding: 1px 5px;
  border-radius: 4px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.clan-text-info h3 {
  font-size: 17px;
  font-weight: 800;
  color: #18181b;
  margin: 0 0 4px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.clan-sub-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 11px;
  color: var(--dash-muted);
}

.clan-sub-meta span strong {
  color: #18181b;
}

.custom-status-indicators {
  display: flex;
  align-items: center;
  gap: 12px;
}

.custom-status-tag {
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  letter-spacing: 0.5px;
}

.custom-status-tag.running {
  background: #ecfdf5;
  color: #047857;
  border: 1px solid #a7f3d0;
}

.custom-status-tag.stopped {
  background: #fef2f2;
  color: #b91c1c;
  border: 1px solid #fecaca;
}

.live-indicator-dot {
  width: 7px;
  height: 7px;
  background: #10b981;
  border-radius: 50%;
  display: inline-block;
  animation: liveDotPulse 1.6s infinite ease-in-out;
}

@keyframes liveDotPulse {
  0% { transform: scale(0.9); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { transform: scale(1.15); box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
  100% { transform: scale(0.9); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.custom-uptime-tag {
  font-size: 11px;
  color: #52525b;
  background: #f4f4f5;
  padding: 5px 10px;
  border-radius: 6px;
  border: 1px solid var(--dash-border);
}

/* Custom Glory Progress Section */
.custom-glory-section {
  padding: 20px 22px;
  border-bottom: 1px solid var(--dash-border);
  background: #fafaf9;
}

.glory-target-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
  font-size: 13px;
}

.glory-target-left {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  color: #18181b;
}

.glory-target-left .trophy-icon {
  color: #f59e0b;
}

.glory-target-score {
  font-size: 15px;
  font-weight: 800;
  color: #047857;
}

.custom-progress-track {
  width: 100%;
  height: 10px;
  background: #e4e4e7;
  border-radius: 6px;
  overflow: hidden;
  position: relative;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.06);
}

.custom-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #10b981 0%, #f59e0b 60%, var(--dash-primary) 100%);
  border-radius: 6px;
  box-shadow: 0 0 10px rgba(255, 107, 0, 0.3);
  transition: width 0.5s ease;
}

.glory-mini-notes {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 8px;
  font-size: 11px;
  color: var(--dash-muted);
}

/* 4-Bot Worker Squad Grid */
.bot-squad-section {
  padding: 20px 22px;
  border-bottom: 1px solid var(--dash-border);
  background: #ffffff;
}

.bot-squad-title {
  font-size: 12px;
  font-weight: 800;
  color: #18181b;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin: 0 0 12px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.bot-squad-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 12px;
}

.bot-slot-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: var(--dash-radius-sm);
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: all 0.2s ease;
}
.bot-slot-card:hover {
  background: #f1f5f9;
  border-color: var(--dash-primary-border);
}

.bot-slot-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.bot-name {
  font-size: 12px;
  font-weight: 800;
  color: #18181b;
}

.bot-ping {
  font-size: 10px;
  color: #059669;
  font-weight: 700;
}

.bot-action-status {
  font-size: 11px;
  color: #64748b;
  display: flex;
  align-items: center;
  gap: 5px;
}

.bot-action-status::before {
  content: '';
  width: 5px;
  height: 5px;
  background: #10b981;
  border-radius: 50%;
}

.bot-glory-contribution {
  font-size: 11px;
  color: #d97706;
  font-weight: 700;
  margin-top: 2px;
}

/* Control Buttons Bar */
.custom-card-actions-bar {
  padding: 16px 22px;
  background: #f8fafc;
  border-top: 1px solid var(--dash-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
}

.card-actions-meta {
  font-size: 12px;
  color: var(--dash-muted);
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
}

.panel-action-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

@media (max-width: 768px) {
  .custom-card-actions-bar {
    flex-direction: column;
    align-items: stretch;
  }
  .card-actions-meta {
    justify-content: center;
  }
  .panel-action-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    width: 100%;
    gap: 8px;
  }
  .panel-pill-btn {
    width: 100%;
  }
}

.panel-pill-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 18px;
  border-radius: 9999px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  user-select: none;
  text-decoration: none;
}

.panel-pill-btn.dark {
  background: #1c1f1d;
  color: #f4f4f5;
  border-color: #27272a;
}
.panel-pill-btn.dark:hover {
  background: #272c29;
  border-color: #3f3f46;
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.panel-pill-btn.light {
  background: #ffffff;
  color: #18181b;
  border-color: #e4e4e7;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}
.panel-pill-btn.light:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
  transform: translateY(-1px);
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.08);
}

.panel-pill-btn.danger {
  background: #1c1f1d;
  color: #f87171;
  border-color: #27272a;
}
.panel-pill-btn.danger:hover {
  background: #2d1818;
  color: #ef4444;
  border-color: rgba(239, 68, 68, 0.4);
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(239, 68, 68, 0.25);
}

.btn-ctrl {
  background: #ffffff;
  border: 1px solid var(--dash-border-strong);
  color: #18181b;
  font-size: 12px;
  font-weight: 700;
  padding: 8px 14px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: all 0.15s ease;
  font-family: inherit;
}
.btn-ctrl:hover {
  background: #f4f4f5;
  transform: translateY(-1px);
}

.btn-ctrl.primary {
  background: linear-gradient(135deg, var(--dash-primary) 0%, #ea580c 100%);
  border-color: var(--dash-primary);
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(255, 107, 0, 0.25);
}
.btn-ctrl.primary:hover {
  background: linear-gradient(135deg, #ea580c 0%, #c2410c 100%);
  border-color: #ea580c;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(255, 107, 0, 0.35);
}

.btn-ctrl.success {
  background: #059669;
  border-color: #059669;
  color: #ffffff;
}
.btn-ctrl.success:hover {
  background: #047857;
}

.btn-ctrl.danger {
  color: #dc2626;
  background: #fef2f2;
  border-color: #fecaca;
}
.btn-ctrl.danger:hover {
  background: #fee2e2;
}

/* Live Terminal Log Box */
.terminal-feed-wrap {
  margin-top: 14px;
  background: #0f172a;
  border: 1px solid #1e293b;
  border-radius: 6px;
  padding: 10px 14px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 11px;
  color: #94a3b8;
  max-height: 85px;
  overflow-y: auto;
  line-height: 1.6;
}

.terminal-line {
  display: flex;
  gap: 8px;
}

.terminal-line .t-time {
  color: #64748b;
}

.terminal-line .t-msg {
  color: #38bdf8;
}

/* --------------------------------------------------------------------------
   GIFT COUPONS PANEL
   -------------------------------------------------------------------------- */
.coupons-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.coupon-box {
  background: #ffffff;
  border: 1px solid var(--dash-border);
  border-radius: var(--dash-radius);
  padding: 24px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.coupon-box-header {
  margin-bottom: 16px;
}

.coupon-box-title {
  font-size: 15px;
  font-weight: 800;
  color: #18181b;
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 4px;
}

.coupon-box-desc {
  font-size: 12px;
  color: var(--dash-muted);
  margin: 0;
}

.coupon-redeem-row {
  display: flex;
  gap: 10px;
  margin-top: 16px;
}

.btn-redeem-coupon {
  background: #0d9488;
  color: #ffffff;
  border: none;
  border-radius: var(--dash-radius-sm);
  padding: 12px 20px;
  font-size: 13px;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
  font-family: inherit;
}
.btn-redeem-coupon:hover {
  background: #0f766e;
  transform: translateY(-1px);
}

.coupon-counter-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 16px 0;
}

.btn-counter {
  width: 38px;
  height: 38px;
  background: #f4f4f5;
  border: 1px solid var(--dash-border-strong);
  color: #18181b;
  font-size: 18px;
  font-weight: 800;
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease;
  font-family: inherit;
}
.btn-counter:hover {
  background: #e4e4e7;
}

.counter-value-box {
  flex: 1;
  background: #ffffff;
  border: 1px solid var(--dash-border-strong);
  border-radius: 6px;
  padding: 10px;
  text-align: center;
  font-size: 16px;
  font-weight: 800;
  color: #18181b;
}

.btn-generate-coupon {
  width: 100%;
  background: #e4e4e7;
  color: #71717a;
  border: none;
  border-radius: var(--dash-radius-sm);
  padding: 13px;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.2s ease;
  font-family: inherit;
}
.btn-generate-coupon.active {
  background: linear-gradient(135deg, var(--dash-primary) 0%, #ea580c 100%);
  color: #ffffff;
  box-shadow: 0 4px 14px var(--dash-primary-glow);
}

/* Toast Message */
.dash-toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: #18181b;
  border: 1px solid #10b981;
  color: #ffffff;
  padding: 12px 20px;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  font-size: 13px;
  font-weight: 700;
  display: none;
  align-items: center;
  gap: 8px;
  z-index: 10000;
  animation: toastFade 0.25s ease;
}

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

/* --------------------------------------------------------------------------
   Native Mobile App Bottom Dock Navigation
   -------------------------------------------------------------------------- */
.dash-bottom-dock {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid var(--dash-border);
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05);
  z-index: 1500;
  padding: 6px 8px;
  padding-bottom: max(6px, env(safe-area-inset-bottom));
  justify-content: space-around;
  align-items: center;
}

.dash-dock-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  color: var(--dash-muted);
  text-decoration: none;
  font-size: 10px;
  font-weight: 600;
  padding: 5px 8px;
  border-radius: var(--dash-radius-sm);
  background: transparent;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  min-width: 52px;
  -webkit-tap-highlight-color: transparent;
  font-family: inherit;
}

.dash-dock-icon {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  stroke-width: 2.2;
  transition: transform 0.2s ease, stroke 0.2s ease;
}

.dash-dock-item:hover,
.dash-dock-item:active {
  color: var(--dash-primary);
  transform: scale(0.96);
}

.dash-dock-item.active {
  color: var(--dash-primary);
  font-weight: 800;
}

.dash-dock-item.active .dash-dock-icon {
  stroke: var(--dash-primary);
  filter: drop-shadow(0 1px 3px rgba(255, 107, 0, 0.4));
}

/* --------------------------------------------------------------------------
   Responsive Breakpoints
   -------------------------------------------------------------------------- */
@media (max-width: 860px) {
  body.dashboard-body {
    padding-bottom: 74px !important;
  }
  .dash-app-layout {
    flex-direction: column !important;
  }
  .dash-sidebar {
    display: none !important; /* Bottom dock active */
  }
  .dash-bottom-dock {
    display: flex !important;
  }
  .dash-form-row {
    grid-template-columns: 1fr !important;
    gap: 10px !important;
  }
  .coupons-grid {
    grid-template-columns: 1fr !important;
  }
  .dash-main-area {
    padding: 14px 10px !important;
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: hidden !important;
  }
  .dash-card {
    padding: 14px !important;
    margin-bottom: 16px !important;
  }
  .bot-squad-grid {
    grid-template-columns: 1fr !important;
  }
  .card-actions-row {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 8px !important;
  }
  .card-actions-left {
    flex-direction: column !important;
    width: 100% !important;
  }
  .card-actions-left .btn-ctrl,
  .card-actions-row > .btn-ctrl {
    width: 100% !important;
    justify-content: center !important;
  }
}

/* --------------------------------------------------------------------------
   DASHBOARD HEADER BARS (PREVENTS UGLY TEXT WRAPPING & BUTTON STRETCHING)
   -------------------------------------------------------------------------- */
.active-groups-header-bar {
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

.active-groups-header-left {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: nowrap;
  flex-shrink: 0;
}

.active-groups-header-title {
  font-size: 18px;
  font-weight: 800;
  color: #18181b;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.active-groups-header-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-left: auto;
}

.live-sync-badge {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  background: #ecfdf5 !important;
  border: 1px solid #a7f3d0 !important;
  color: #047857 !important;
  padding: 4px 10px !important;
  border-radius: 20px !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  white-space: nowrap !important;
  flex-shrink: 0 !important;
}

.live-clock-badge {
  white-space: nowrap !important;
  flex-shrink: 0 !important;
  color: var(--dash-muted) !important;
  font-size: 11px !important;
  font-weight: 600 !important;
  display: inline-flex !important;
  align-items: center !important;
}

.dash-view-header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  gap: 12px;
  flex-wrap: wrap;
}

.dash-view-header-title {
  font-size: 20px;
  font-weight: 800;
  color: #18181b;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  flex-shrink: 0;
}

.btn-ctrl.refresh-btn {
  width: auto !important;
  min-width: fit-content !important;
  flex: 0 0 auto !important;
  white-space: nowrap !important;
  padding: 6px 14px !important;
  font-size: 12px !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
}

@media (max-width: 600px) {
  .dash-navbar {
    padding: 8px 10px !important;
    gap: 6px !important;
  }
  .dash-brand-img {
    width: 28px !important;
    height: 28px !important;
  }
  .dash-brand-text {
    font-size: 16px !important;
  }
  .dash-brand-icon {
    width: 28px !important;
    height: 28px !important;
    font-size: 14px !important;
  }
  .dash-brand-title {
    font-size: 14px !important;
    gap: 4px !important;
  }
  .dash-live-badge {
    display: none !important;
  }
  .dash-nav-right {
    gap: 6px !important;
  }
  .dash-credit-pill {
    padding: 4px 8px !important;
    font-size: 11px !important;
    gap: 4px !important;
  }
  .dash-user-badge {
    padding: 3px 8px 3px 3px !important;
    gap: 5px !important;
  }
  .dash-user-avatar {
    width: 24px !important;
    height: 24px !important;
    font-size: 11px !important;
  }
  .dash-user-role {
    display: none !important;
  }
  .dash-user-name {
    font-size: 11px !important;
    max-width: 75px !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
  }
  .dash-user-dropdown {
    right: 0 !important;
    width: 210px !important;
  }
}

/* --------------------------------------------------------------------------
   Reseller API Integration & Modal Styles
   -------------------------------------------------------------------------- */
.dash-api-pill {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  color: #15803d;
  font-size: 12px;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 20px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
}
.dash-api-pill:hover {
  background: #dcfce7;
  border-color: #86efac;
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(34, 197, 94, 0.15);
}

.api-dot-online {
  width: 7px;
  height: 7px;
  background: #22c55e;
  border-radius: 50%;
  display: inline-block;
  animation: apiDotPulse 2s infinite ease-in-out;
}

@keyframes apiDotPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(1.3); }
}

/* API Management Modal */
.api-modal-card {
  background: #ffffff;
  border: 1px solid var(--dash-border);
  border-radius: 14px;
  max-width: 680px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 24px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.api-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--dash-border);
  padding-bottom: 12px;
}

.api-modal-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  font-weight: 800;
  color: #18181b;
  margin: 0;
}

.api-nav-tabs {
  display: flex;
  gap: 8px;
  background: #f4f4f5;
  padding: 4px;
  border-radius: 8px;
}

.api-nav-tab {
  flex: 1;
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 700;
  color: #71717a;
  background: none;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  text-align: center;
  transition: all 0.15s ease;
}
.api-nav-tab.active {
  background: #ffffff;
  color: #18181b;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.api-form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 12px;
}

.api-form-label {
  font-size: 12px;
  font-weight: 700;
  color: #27272a;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.api-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.api-input {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--dash-border);
  border-radius: 8px;
  font-family: monospace;
  font-size: 13px;
  color: #18181b;
  background: #fafaf9;
  transition: all 0.2s ease;
}
.api-input:focus {
  outline: none;
  border-color: var(--dash-primary);
  background: #ffffff;
  box-shadow: 0 0 0 3px var(--dash-primary-glow);
}

.api-endpoint-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 800;
  font-family: monospace;
}
.api-endpoint-badge.post {
  background: #eff6ff;
  color: #1d4ed8;
  border: 1px solid #bfdbfe;
}
.api-endpoint-badge.get {
  background: #ecfdf5;
  color: #047857;
  border: 1px solid #a7f3d0;
}

.api-code-block {
  background: #0f172a;
  color: #e2e8f0;
  border-radius: 8px;
  padding: 14px;
  font-family: 'Consolas', 'Courier New', monospace;
  font-size: 12px;
  line-height: 1.5;
  overflow-x: auto;
  position: relative;
}

.api-code-copy-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  font-size: 10px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.15s ease;
}
.api-code-copy-btn:hover {
  background: rgba(255, 255, 255, 0.3);
}

/* Multi-group spacing */
.active-groups-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* ==========================================================================
   HIGH-TECH CLOUD SERVER LOADING SYMBOL & ANIMATIONS
   ========================================================================== */

/* Server Loading Symbol (Large / Medium / Small) */
.server-loader-symbol {
  position: relative;
  width: 90px;
  height: 90px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.server-loader-symbol.sm {
  width: 22px;
  height: 22px;
}

.server-loader-symbol.md {
  width: 48px;
  height: 48px;
}

/* Outer Cybernetic Ring */
.server-ring-outer {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2.5px dashed rgba(2, 132, 199, 0.4);
  border-top-color: #0284c7;
  border-bottom-color: #38bdf8;
  animation: serverSpinClockwise 3.5s linear infinite;
}

/* Inner High-Speed Ring */
.server-ring-inner {
  position: absolute;
  inset: 10px;
  border-radius: 50%;
  border: 2px solid transparent;
  border-left-color: #06b6d4;
  border-right-color: #10b981;
  animation: serverSpinCounter 1.8s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

/* Radar Ping Waves */
.server-ping-wave {
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 1.5px solid rgba(16, 185, 129, 0.5);
  animation: serverPingPulse 2s cubic-bezier(0, 0, 0.2, 1) infinite;
  opacity: 0;
}

/* Server Rack Core Hub Icon */
.server-core-hub {
  position: relative;
  z-index: 2;
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  box-shadow: 0 4px 15px rgba(2, 132, 199, 0.35), inset 0 0 0 1px rgba(255, 255, 255, 0.1);
}

.server-loader-symbol.md .server-core-hub {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  gap: 2px;
}

/* Server Tray Lines inside Core */
.server-tray-line {
  width: 24px;
  height: 4px;
  background: #334155;
  border-radius: 2px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 3px;
}

.server-loader-symbol.md .server-tray-line {
  width: 16px;
  height: 3px;
  padding: 0 2px;
}

.server-tray-line::before {
  content: '';
  width: 10px;
  height: 1.5px;
  background: #64748b;
  border-radius: 1px;
}

/* Blinking Datacenter LED Indicators */
.server-led {
  width: 3.5px;
  height: 3.5px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 6px #10b981;
  animation: ledBlink 1.2s infinite ease-in-out;
}

.server-led.amber {
  background: #f59e0b;
  box-shadow: 0 0 6px #f59e0b;
  animation-delay: 0.3s;
}

.server-led.blue {
  background: #38bdf8;
  box-shadow: 0 0 6px #38bdf8;
  animation-delay: 0.6s;
}

/* Mini Inline Server Spinner (For buttons and pills) */
.server-mini-spin {
  display: inline-block;
  width: 14px;
  height: 14px;
  border: 2px solid rgba(255, 255, 255, 0.25);
  border-top-color: #ffffff;
  border-right-color: #38bdf8;
  border-radius: 50%;
  animation: serverSpinClockwise 0.8s linear infinite;
  vertical-align: middle;
}

.server-mini-spin.dark {
  border-color: rgba(2, 132, 199, 0.2);
  border-top-color: #0284c7;
  border-right-color: #06b6d4;
}

/* Keyframes */
@keyframes serverSpinClockwise {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes serverSpinCounter {
  from { transform: rotate(360deg); }
  to { transform: rotate(0deg); }
}

@keyframes serverPingPulse {
  0% { transform: scale(0.85); opacity: 0.8; }
  50% { opacity: 0.4; }
  100% { transform: scale(1.45); opacity: 0; }
}

@keyframes ledBlink {
  0%, 100% { opacity: 0.3; transform: scale(0.8); }
  50% { opacity: 1; transform: scale(1.2); }
}

/* Global Server Loading Modal Overlay */
.server-loader-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 100001;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: fadeInModal 0.2s ease-out;
}

.server-loader-card {
  background: #ffffff;
  border: 1px solid rgba(2, 132, 199, 0.25);
  border-radius: 18px;
  max-width: 440px;
  width: 100%;
  padding: 30px 24px;
  text-align: center;
  box-shadow: 0 25px 60px -15px rgba(2, 132, 199, 0.3), 0 0 0 1px rgba(2, 132, 199, 0.1);
  position: relative;
  overflow: hidden;
}

.server-loader-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #0284c7, #06b6d4, #10b981, #0284c7);
  background-size: 200% 100%;
  animation: serverGradBar 2s linear infinite;
}

@keyframes serverGradBar {
  0% { background-position: 0% 0%; }
  100% { background-position: 200% 0%; }
}

.server-log-box {
  background: #0f172a;
  border-radius: 10px;
  padding: 12px 14px;
  margin-top: 18px;
  font-family: 'Consolas', 'Courier New', monospace;
  font-size: 11px;
  color: #94a3b8;
  text-align: left;
  line-height: 1.6;
  border: 1px solid #1e293b;
  min-height: 85px;
}

.server-log-step {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}
.server-log-step.done {
  color: #4ade80;
}
.server-log-step.active {
  color: #38bdf8;
  font-weight: 700;
}

/* Server Loader Header Bar & Timer */
.server-loader-header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid #f1f5f9;
}

.server-badge-live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #0f172a;
  border: 1px solid rgba(2, 132, 199, 0.4);
  color: #38bdf8;
  font-size: 10px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 999px;
  letter-spacing: 0.5px;
}

.server-timer-pill {
  background: #f8fafc;
  color: #475569;
  border: 1px solid #e2e8f0;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  font-family: 'Consolas', monospace;
}

/* 4-Stage Visual Pipeline HUD */
.cloud-pipeline-track {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 16px 0 10px;
  position: relative;
}

.pipeline-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  z-index: 2;
  position: relative;
}

.pipeline-node .node-dot {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #f1f5f9;
  border: 2px solid #cbd5e1;
  color: #64748b;
  font-size: 11px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.pipeline-node.active .node-dot {
  background: #0284c7;
  border-color: #38bdf8;
  color: #ffffff;
  box-shadow: 0 0 12px rgba(2, 132, 199, 0.6);
  animation: pulseNodeDot 1.4s infinite;
}

.pipeline-node.done .node-dot {
  background: #10b981;
  border-color: #34d399;
  color: #ffffff;
}

.pipeline-node .node-lbl {
  font-size: 10px;
  font-weight: 700;
  color: #64748b;
  white-space: nowrap;
}

.pipeline-node.active .node-lbl {
  color: #0284c7;
  font-weight: 800;
}

.pipeline-node.done .node-lbl {
  color: #059669;
}

.pipeline-connector {
  flex: 1;
  height: 2px;
  background: #e2e8f0;
  margin: 0 4px;
  margin-bottom: 16px;
  transition: background 0.3s ease;
}

.pipeline-connector.active {
  background: linear-gradient(90deg, #10b981, #0284c7);
}

.pipeline-connector.done {
  background: #10b981;
}

@keyframes pulseNodeDot {
  0%, 100% { transform: scale(1); box-shadow: 0 0 0 rgba(2, 132, 199, 0.4); }
  50% { transform: scale(1.08); box-shadow: 0 0 14px rgba(2, 132, 199, 0.7); }
}

.server-success-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #ecfdf5;
  border: 2px solid #a7f3d0;
  color: #10b981;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  margin: 0 auto 12px;
  box-shadow: 0 0 25px rgba(16, 185, 129, 0.35);
  animation: popIn 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.server-error-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #fef2f2;
  border: 2px solid #fecaca;
  color: #ef4444;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  margin: 0 auto 12px;
  box-shadow: 0 0 25px rgba(239, 68, 68, 0.25);
  animation: popIn 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes popIn {
  from { transform: scale(0.6); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

/* Smooth Refresh Button Circular Spinning Animation */
.refresh-btn.spinning svg,
.btn-ctrl.spinning svg,
.spin-anim {
  animation: serverSpinClockwise 0.75s linear infinite !important;
  transform-origin: center center;
}

/* ==========================================================================
   Locked Launch Group Button State (When Balance < 1)
   ========================================================================== */
.btn-start-group.is-locked {
  background: linear-gradient(135deg, #475569, #334155) !important;
  border: 1px solid #64748b !important;
  color: #e2e8f0 !important;
  box-shadow: 0 4px 14px rgba(51, 65, 85, 0.25) !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
}

.btn-start-group.is-locked:hover {
  background: linear-gradient(135deg, #334155, #1e293b) !important;
  border-color: #94a3b8 !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 6px 18px rgba(30, 41, 59, 0.35) !important;
}

/* ==========================================================================
   FamPay Dynamic Payment Gateway Modal Styles
   ========================================================================== */
.fampay-pack-card {
  padding: 13px 15px;
  background: #ffffff;
  border: 1.5px solid var(--dash-border);
  border-radius: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  transition: all 0.2s ease;
}
.fampay-pack-card:hover {
  border-color: #0284c7;
  background: #f0f9ff;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.12);
}
.fampay-pack-card.popular {
  background: #fff7ed;
  border-color: #fdba74;
}
.fampay-pack-card.popular:hover {
  border-color: #ea580c;
  background: #ffedd5;
  box-shadow: 0 4px 14px rgba(234, 88, 12, 0.14);
}

.fampay-qr-wrapper {
  background: #ffffff;
  border: 2px solid #e2e8f0;
  border-radius: 14px;
  padding: 12px;
  display: inline-block;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
  margin-bottom: 12px;
  position: relative;
}

.fampay-qr-img {
  width: 200px;
  height: 200px;
  display: block;
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
  border-radius: 8px;
}

.fampay-live-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  color: #166534;
  padding: 6px 14px;
  border-radius: 9999px;
  font-size: 11px;
  font-weight: 700;
  margin-bottom: 12px;
}

.fampay-live-status.waiting {
  background: #eff6ff;
  border-color: #bfdbfe;
  color: #1e40af;
}

.fampay-radar-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #0284c7;
  position: relative;
}
.fampay-radar-dot::after {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  border: 2px solid #38bdf8;
  animation: fampayRadarPing 1.4s cubic-bezier(0, 0, 0.2, 1) infinite;
}

@keyframes fampayRadarPing {
  0% { transform: scale(0.9); opacity: 1; }
  100% { transform: scale(2.4); opacity: 0; }
}

.fampay-upi-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 8px;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  font-size: 10px;
  font-weight: 700;
  color: #475569;
}

/* 3 Quick-Pack Columns & Manual Amount Input */
.fampay-col-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 14px;
}

.fampay-col-card {
  background: #ffffff;
  border: 2px solid var(--dash-border);
  border-radius: 12px;
  padding: 12px 8px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
}

.fampay-col-card:hover {
  border-color: #38bdf8;
  background: #f8fafc;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.1);
}

.fampay-col-card.active {
  border-color: #0284c7;
  background: #f0f9ff;
  box-shadow: 0 0 0 1px #0284c7, 0 4px 14px rgba(2, 132, 199, 0.15);
}

.fampay-col-badge {
  position: absolute;
  top: -8px;
  right: 6px;
  background: #ea580c;
  color: #ffffff;
  font-size: 9px;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 9999px;
  text-transform: uppercase;
}

.fampay-manual-box {
  background: #f8fafc;
  border: 1.5px solid var(--dash-border);
  border-radius: 12px;
  padding: 14px;
  margin-bottom: 14px;
  text-align: left;
}

.fampay-stepper-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 8px 0;
}

.fampay-step-btn {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  border: 1px solid var(--dash-border);
  background: #ffffff;
  font-size: 18px;
  font-weight: 800;
  color: #18181b;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
  user-select: none;
}
.fampay-step-btn:hover {
  background: #f1f5f9;
  border-color: #94a3b8;
}
.fampay-step-btn:active {
  transform: scale(0.95);
}

.fampay-manual-input {
  flex: 1;
  height: 38px;
  text-align: center;
  font-size: 16px;
  font-weight: 800;
  color: #18181b;
  border: 1.5px solid var(--dash-border);
  border-radius: 8px;
  background: #ffffff;
  outline: none;
  transition: border-color 0.15s;
}
.fampay-manual-input:focus {
  border-color: #0284c7;
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.15);
}

/* ==========================================================================
   Google Translate Complete Banner & Offset Suppression
   ========================================================================== */
.goog-te-banner-frame.skiptranslate,
.goog-te-banner-frame,
iframe.goog-te-banner-frame,
iframe.VIpgJd-ZVi9od-ORHb-OEVmcd,
iframe.VIpgJd-ZVi9od-ORHb,
.VIpgJd-ZVi9od-aZ2wEe-wOHMyf,
.VIpgJd-ZVi9od-ORHb,
.VIpgJd-yAWNEb-hvhGLc,
iframe[id*=":1.container"],
iframe[id*=":2.container"],
body > .skiptranslate:not(#google_translate_element):not(.kaddu-lang-wrap) {
  display: none !important;
  visibility: hidden !important;
  height: 0 !important;
  width: 0 !important;
  opacity: 0 !important;
  pointer-events: none !important;
  position: absolute !important;
  left: -9999px !important;
  top: -9999px !important;
}

html, body {
  top: 0px !important;
  position: static !important;
  margin-top: 0px !important;
}

#goog-gt-tt,
.goog-te-balloon-frame,
.goog-te-menu-frame,
.VIpgJd-ZVi9od-xl07Ob-OEVmcd {
  display: none !important;
  visibility: hidden !important;
}

.goog-text-highlight {
  background: none !important;
  box-shadow: none !important;
}



