/* Developer Master Portal - Ultra-Sleek Command Center Aesthetics */
:root {
  --bg-dark: #0b0f19;
  --bg-card: #151d30;
  --bg-card-hover: #1e2942;
  --primary: #6366f1; /* Indigo */
  --primary-hover: #4f46e5;
  --accent-cyan: #06b6d4;
  --accent-amber: #f59e0b;
  --accent-emerald: #10b981;
  --accent-rose: #f43f5e;
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --border: #222e48;
  --glass: rgba(21, 29, 48, 0.85);
  --radius: 16px;
  --shadow: 0 15px 35px -5px rgba(0, 0, 0, 0.6), 0 5px 15px -5px rgba(0, 0, 0, 0.4);
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  -webkit-tap-highlight-color: transparent;
}

body {
  background-color: var(--bg-dark);
  background-image: 
    radial-gradient(at 0% 0%, rgba(99, 102, 241, 0.08) 0px, transparent 50%),
    radial-gradient(at 100% 100%, rgba(6, 182, 212, 0.08) 0px, transparent 50%);
  color: var(--text-main);
  min-height: 100vh;
  padding-bottom: 4rem;
}

/* Header Navbar */
.dev-navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.2rem 2rem;
  background: var(--glass);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.dev-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-main);
  text-decoration: none;
}

.dev-logo span {
  color: var(--accent-cyan);
}

.badge-dev {
  background: rgba(6, 182, 212, 0.12);
  color: var(--accent-cyan);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.2rem 0.6rem;
  border-radius: 6px;
  border: 1px solid rgba(6, 182, 212, 0.3);
}

/* Container */
.dev-container {
  max-width: 1320px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
}

/* Global Summary Cards */
.summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
  margin-bottom: 2.25rem;
}

.summary-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.35rem;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  transition: transform 0.2s ease;
}

.summary-card:hover {
  transform: translateY(-2px);
}

.summary-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--primary);
}

.summary-card.amber::before { background: var(--accent-amber); }
.summary-card.emerald::before { background: var(--accent-emerald); }
.summary-card.cyan::before { background: var(--accent-cyan); }

.summary-label {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.4rem;
}

.summary-val {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--text-main);
}

.summary-sub {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 0.3rem;
}

/* Section Header */
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.35rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.section-header h2 {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.01em;
}

/* Client Cards Grid */
.clients-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
  gap: 1.5rem;
}

.client-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.4rem;
  box-shadow: var(--shadow);
  transition: all 0.25s ease;
  display: flex;
  flex-direction: column;
  position: relative;
}

.client-card:hover {
  border-color: var(--primary);
  box-shadow: 0 20px 40px -10px rgba(99, 102, 241, 0.2);
}

.client-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid var(--border);
}

.client-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 0.2rem;
}

.client-sub {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 0.4rem;
}

.client-domain {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.85rem;
  color: var(--accent-cyan);
  text-decoration: none;
  font-weight: 600;
  background: rgba(6, 182, 212, 0.1);
  padding: 0.2rem 0.6rem;
  border-radius: 6px;
  border: 1px solid rgba(6, 182, 212, 0.2);
}

.client-domain:hover {
  background: rgba(6, 182, 212, 0.2);
}

/* Status Badge Pulse */
.badge-status-pulse {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(16, 185, 129, 0.12);
  color: var(--accent-emerald);
  border: 1px solid rgba(16, 185, 129, 0.3);
  padding: 0.3rem 0.65rem;
  border-radius: 20px;
  font-size: 0.72rem;
  font-weight: 700;
  white-space: nowrap;
}

.status-dot {
  width: 7px;
  height: 7px;
  background-color: var(--accent-emerald);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--accent-emerald);
  animation: pulse-glow 2s infinite;
}

@keyframes pulse-glow {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { transform: scale(1.1); box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

/* Usage Progress Bars */
.usage-group {
  margin-bottom: 1rem;
}

.usage-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
  margin-bottom: 0.4rem;
}

.usage-title {
  color: var(--text-muted);
  font-weight: 600;
}

.usage-value {
  color: var(--text-main);
  font-weight: 700;
  font-size: 0.85rem;
}

.progress-bar-bg {
  width: 100%;
  height: 9px;
  background: rgba(11, 15, 25, 0.8);
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid var(--border);
}

.progress-bar-fill {
  height: 100%;
  border-radius: 6px;
  background: linear-gradient(90deg, var(--primary), var(--accent-cyan));
  transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.progress-bar-fill.warning {
  background: linear-gradient(90deg, var(--accent-amber), var(--accent-rose));
}

/* Server Spec Grid */
.server-spec-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  font-size: 0.78rem;
  margin-top: 0.85rem;
  background: rgba(11, 15, 25, 0.6);
  padding: 0.75rem;
  border-radius: 10px;
  border: 1px solid var(--border);
}

.server-spec-grid div {
  display: flex;
  flex-direction: column;
}

.server-spec-grid .lbl {
  color: var(--text-muted);
  font-size: 0.68rem;
  text-transform: uppercase;
}

.server-spec-grid .val {
  color: var(--text-main);
  font-weight: 600;
}

/* Renewal Billing Box */
.billing-box {
  background: rgba(11, 15, 25, 0.7);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.9rem 1.1rem;
  margin-top: 1.1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.billing-info {
  display: flex;
  flex-direction: column;
}

.billing-label {
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.billing-value {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--accent-amber);
}

.btn-renew-alert {
  background: rgba(245, 158, 11, 0.15);
  color: var(--accent-amber);
  border: 1px solid rgba(245, 158, 11, 0.3);
  padding: 0.35rem 0.75rem;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 700;
}

/* Config Modal Box */
.config-modal-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-bottom: 2rem;
  box-shadow: var(--shadow);
}

/* Mobile Responsive */
@media (max-width: 640px) {
  .dev-navbar {
    padding: 0.85rem 1rem;
    flex-wrap: wrap;
    gap: 0.5rem;
  }

  .dev-container {
    padding: 1.25rem 0.85rem;
  }

  .clients-grid {
    grid-template-columns: 1fr;
  }

  .client-card {
    padding: 1.1rem;
  }

  .billing-box {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
}
