/* Custom Design System & Color Theme for FFGlory Panel */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;500;600;700;800&family=Roboto+Mono:wght@400;500&display=swap');

:root {
  --ng-bg-dark: #070a14;
  --ng-bg-card: rgba(15, 23, 42, 0.75);
  --ng-bg-card-hover: rgba(26, 38, 66, 0.85);
  --ng-border: rgba(56, 189, 248, 0.15);
  --ng-border-glow: rgba(0, 242, 254, 0.4);
  
  --ng-cyan: #00f2fe;
  --ng-blue: #4facfe;
  --ng-emerald: #10b981;
  --ng-purple: #8b5cf6;
  --ng-pink: #ec4899;
  --ng-amber: #f59e0b;

  --ng-text-primary: #f8fafc;
  --ng-text-muted: #94a3b8;
  --ng-text-subtle: #64748b;
  
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'Roboto Mono', monospace;
}

/* Global Reset & Styling */
body {
  font-family: var(--font-body);
  background-color: var(--ng-bg-dark);
  color: var(--ng-text-primary);
  background-image: 
    radial-gradient(at 0% 0%, rgba(0, 242, 254, 0.08) 0px, transparent 50%),
    radial-gradient(at 100% 0%, rgba(139, 92, 246, 0.08) 0px, transparent 50%),
    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);
}

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

.ng-card:hover {
  border-color: rgba(56, 189, 248, 0.3);
}

/* Input Fields */
.ng-input {
  width: 100%;
  background: rgba(10, 15, 30, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.1);
  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(0, 242, 254, 0.15);
  background: rgba(15, 23, 42, 0.95);
}

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

/* Select Dropdown */
.modern-select {
  width: 100%;
  background: rgba(10, 15, 30, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.1);
  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-cyan);
  box-shadow: 0 0 0 3px rgba(0, 242, 254, 0.15);
}

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

/* Buttons */
.ng-btn-primary {
  background: linear-gradient(135deg, var(--ng-cyan) 0%, var(--ng-blue) 100%);
  color: #070a14;
  font-weight: 700;
  border-radius: 0.75rem;
  transition: all 0.25s ease;
  box-shadow: 0 4px 15px rgba(0, 242, 254, 0.25);
  border: none;
  cursor: pointer;
}

.ng-btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(0, 242, 254, 0.4);
  opacity: 0.95;
}

.ng-btn-success {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #ffffff;
  font-weight: 700;
  border-radius: 0.75rem;
  transition: all 0.25s ease;
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.25);
  border: none;
  cursor: pointer;
}

.ng-btn-success:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
}

.ng-btn-outline {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--ng-text-primary);
  border-radius: 0.75rem;
  transition: all 0.2s ease;
  cursor: pointer;
}

.ng-btn-outline:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.25);
  color: #ffffff;
}

/* Icon Buttons */
.ng-icon-btn {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 0.625rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--ng-text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  cursor: pointer;
}

.ng-icon-btn:hover {
  background: rgba(0, 242, 254, 0.15);
  border-color: var(--ng-cyan);
  color: var(--ng-cyan);
}

/* Badges */
.ng-badge-default {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #e2e8f0;
  padding: 0.25rem 0.625rem;
  border-radius: 9999px;
  font-weight: 600;
}

.ng-badge-primary {
  background: rgba(0, 242, 254, 0.12);
  border: 1px solid rgba(0, 242, 254, 0.3);
  color: #38bdf8;
  padding: 0.25rem 0.625rem;
  border-radius: 9999px;
  font-weight: 600;
}

.ng-badge-success {
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: #34d399;
  padding: 0.25rem 0.625rem;
  border-radius: 9999px;
  font-weight: 600;
}

.ng-badge-warning {
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.3);
  color: #fbbf24;
  padding: 0.25rem 0.625rem;
  border-radius: 9999px;
  font-weight: 600;
}

.ng-badge-pink {
  background: rgba(236, 72, 153, 0.12);
  border: 1px solid rgba(236, 72, 153, 0.3);
  color: #f472b6;
  padding: 0.25rem 0.625rem;
  border-radius: 9999px;
  font-weight: 600;
}

.ng-badge-purple {
  background: rgba(139, 92, 246, 0.12);
  border: 1px solid rgba(139, 92, 246, 0.3);
  color: #a78bfa;
  padding: 0.25rem 0.625rem;
  border-radius: 9999px;
  font-weight: 600;
}

.ng-badge-teal {
  background: rgba(20, 184, 166, 0.12);
  border: 1px solid rgba(20, 184, 166, 0.3);
  color: #2dd4bf;
  padding: 0.25rem 0.625rem;
  border-radius: 9999px;
  font-weight: 600;
}

/* Section Title Headers */
.ng-section-title {
  font-family: var(--font-heading);
  font-size: 1.125rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.ng-section-icon {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 0.75rem;
  background: rgba(0, 242, 254, 0.12);
  border: 1px solid rgba(0, 242, 254, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
}

.ng-section-icon-purple {
  background: rgba(139, 92, 246, 0.12);
  border: 1px solid rgba(139, 92, 246, 0.25);
}

/* Sidebar Nav Buttons */
.user-sidebar-btn {
  color: var(--ng-text-muted);
  background: transparent;
  border: none;
  cursor: pointer;
}

.user-sidebar-btn:hover {
  background: rgba(255, 255, 255, 0.05);
  color: #ffffff;
}

.user-sidebar-btn-active {
  background: linear-gradient(135deg, rgba(0, 242, 254, 0.15), rgba(79, 172, 254, 0.08)) !important;
  color: var(--ng-cyan) !important;
  border: 1px solid rgba(0, 242, 254, 0.3) !important;
  box-shadow: 0 4px 12px rgba(0, 242, 254, 0.1);
}

/* Mobile Tabs */
.mob-tab {
  color: var(--ng-text-subtle);
}

.mob-tab-active {
  color: var(--ng-cyan);
  background: rgba(0, 242, 254, 0.1);
}

/* Live Indicator Dot */
.live-indicator {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.2rem 0.5rem;
  border-radius: 9999px;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.live-dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background-color: #10b981;
  box-shadow: 0 0 8px #10b981;
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

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

/* Modal Animations */
.modal-slide-up {
  animation: slideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* Scrollbars */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: rgba(7, 10, 20, 0.5);
}
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 242, 254, 0.4);
}

/* ==========================================
   GOLDEN SQUAD CARD & BOT DETAILS STYLES
   ========================================== */
.squad-card {
    position: relative;
    background: linear-gradient(145deg, #24221c, #1c1a16);
    border: 1px solid #e3aa00;
    border-radius: 12px;
    padding: 16px 16px 18px;
    box-shadow: 0 0 18px rgba(255, 193, 7, .12), inset 0 0 20px rgba(255, 190, 0, .03);
    overflow: hidden;
    margin-bottom: 24px;
}

.squad-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, transparent, #ffc400, transparent);
}

.super-badge {
    position: absolute;
    top: 0;
    right: 0;
    background: linear-gradient(135deg, #ffe28a, #f6b300);
    color: #17120a;
    padding: 6px 14px;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .5px;
    border-radius: 0 8px 0 12px;
    box-shadow: 0 4px 12px rgba(255, 185, 0, .25);
}

.squad-top {
    display: flex;
    align-items: center;
    gap: 14px;
}

.squad-logo {
    width: 64px;
    height: 64px;
    border-radius: 9px;
    border: 2px solid #ffc400;
    background: #181612;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

.squad-info {
    min-width: 0;
}

.squad-name {
    color: #ffd000;
    font-size: 21px;
    font-weight: 900;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.squad-meta {
    margin-top: 5px;
    font-size: 10px;
    color: #a39e94;
}

.squad-meta span {
    margin-right: 8px;
}

.squad-meta b {
    color: #ffd000;
}

.level-badge {
    position: absolute;
    left: 57px;
    top: 65px;
    background: #ffd000;
    color: #111;
    font-size: 10px;
    font-weight: 900;
    padding: 3px 6px;
    border-radius: 5px 0 5px 0;
}

.squad-stats {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    margin-top: 20px;
    text-align: center;
}

.stat {
    position: relative;
}

.stat:not(:last-child)::after {
    content: "";
    position: absolute;
    right: 0;
    top: 8px;
    height: 30px;
    width: 1px;
    background: #35322c;
}

.stat-label {
    color: #858078;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
}

.stat-value {
    margin-top: 5px;
    color: #eee;
    font-size: 14px;
    font-weight: 900;
}

.stat-value.yellow {
    color: #ffd000;
}

.stat-value.green {
    color: #19e878;
    font-size: 21px;
}

/* BOT CARD */
.bot-card {
    margin-top: 18px;
    background: linear-gradient(145deg, #171513, #12110f);
    border: 1px solid #302b24;
    border-radius: 15px;
    padding: 17px 18px 15px;
}

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

.bot-left {
    display: flex;
    align-items: center;
    gap: 14px;
}

.bot-avatar {
    width: 62px;
    height: 62px;
    border-radius: 9px;
    background: linear-gradient(145deg, #302718, #211c13);
    border: 1px solid #684e1d;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #d4a421;
    font-size: 29px;
}

.bot-id {
    font-size: 11px;
    color: #8c877e;
}

.bot-id strong {
    color: #d0a52a;
    font-size: 12px;
    margin-left: 7px;
}

.dot {
    display: inline-block;
    width: 7px;
    height: 7px;
    background: #19d979;
    border-radius: 50%;
    margin-left: 6px;
}

.status-badge {
    padding: 7px 14px;
    border-radius: 20px;
    background: rgba(0, 220, 120, .07);
    border: 1px solid rgba(0, 220, 120, .28);
    color: #15dc79;
    font-size: 11px;
    font-weight: 800;
}

.status-badge.stopped {
    background: rgba(239, 68, 68, .07);
    border-color: rgba(239, 68, 68, .28);
    color: #ef4444;
}

.status-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    background: #19db7a;
    border-radius: 50%;
    margin-right: 6px;
}

.status-dot.stopped {
    background: #ef4444;
}

.updated {
    margin-top: 5px;
    text-align: right;
    font-size: 9px;
    color: #67635c;
}

.details-row {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 18px;
    color: #8f8b83;
    font-size: 11px;
}

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

.metrics {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    margin-top: 25px;
    gap: 8px;
}

.metric {
    color: #77736c;
    font-size: 11px;
}

.metric strong {
    color: #d9d4cc;
    font-size: 14px;
    margin-left: 4px;
}

.metric .yellow {
    color: #e8d6bd;
}

.metric .green {
    color: #14dca1;
}

.goal {
    margin-top: 20px;
}

.goal-head {
    display: flex;
    justify-content: space-between;
    color: #6e6961;
    font-size: 10px;
    margin-bottom: 7px;
}

.goal-percent {
    color: #ffd000;
    font-weight: 900;
}

.progress {
    height: 7px;
    background: #080807;
    border-radius: 20px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #eaa900, #ffc400);
    border-radius: 20px;
}

.actions-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    gap: 9px;
    margin-top: 15px;
}

.btn-action {
    height: 42px;
    border-radius: 25px;
    border: 1px solid;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: all .2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-action:hover {
    transform: translateY(-1px);
    filter: brightness(1.1);
}

.btn-action.restart {
    background: #e5a900;
    border-color: #e5a900;
    color: #111;
}

.btn-action.stop {
    background: transparent;
    border-color: #704b20;
    color: #f39a13;
}

.btn-action.details {
    background: linear-gradient(135deg, #eee4d2, #ddd0bb);
    border-color: #eee4d2;
    color: #292621;
}

.btn-action.delete {
    background: #d72e32;
    border-color: #d72e32;
    color: white;
}

.bots-title {
    margin-top: 18px;
    color: #aaa49a;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}

.bot-item {
    margin-top: 8px;
    padding: 12px;
    border: 1px solid #29251f;
    border-radius: 10px;
    background: #191714;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

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

.bot-number {
    width: 30px;
    height: 30px;
    border-radius: 7px;
    background: #2a2418;
    color: #e4af22;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: bold;
}

.bot-name {
    font-size: 12px;
    font-weight: bold;
    color: #ddd;
}

.bot-account {
    font-size: 9px;
    color: #777;
    margin-top: 3px;
}

.bot-glory {
    color: #ffd000;
    font-size: 12px;
    font-weight: 900;
}
