* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Tahoma, Arial, sans-serif;
  background: #081120;
  color: #e5eefc;
  min-height: 100vh;
  position: relative;
}

.page-bg {
  position: fixed;
  inset: 0;
  background:
    radial-gradient(circle at top right, rgba(59,130,246,0.25), transparent 25%),
    radial-gradient(circle at bottom left, rgba(168,85,247,0.18), transparent 25%),
    linear-gradient(135deg, #081120 0%, #0b1730 45%, #111827 100%);
  z-index: -1;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px;
}

.hero-card,
.panel {
  background: rgba(15, 23, 42, 0.82);
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 22px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(10px);
}

.hero-card {
  margin-top: 90px;
  padding: 40px;
  text-align: center;
}

.logo,
.brand {
  font-weight: bold;
  letter-spacing: 2px;
  color: #93c5fd;
}

h1, h2, h3 {
  margin-top: 0;
}

.subtitle,
.muted {
  color: #b6c2d9;
}

.hero-actions {
  margin-top: 24px;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  margin-top: 8px;
}

.grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 24px;
}

.panel {
  padding: 24px;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.field-full {
  grid-column: 1 / -1;
}

label {
  font-size: 14px;
  color: #cbd5e1;
}

input,
select,
textarea,
button {
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: rgba(30, 41, 59, 0.9);
  color: white;
  border-radius: 14px;
  padding: 12px 14px;
  font-size: 15px;
  outline: none;
}

textarea {
  min-height: 110px;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: #60a5fa;
  box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.15);
}

.btn {
  border: none;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: 0.2s ease;
  font-weight: bold;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: linear-gradient(135deg, #2563eb, #3b82f6);
  color: white;
}

.btn-secondary {
  background: rgba(51, 65, 85, 0.95);
  color: white;
}

.full {
  width: 100%;
}

.list-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.customer-list {
  display: grid;
  gap: 16px;
}

.customer-card {
  background: rgba(30, 41, 59, 0.85);
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 18px;
  padding: 18px;
}

.customer-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: start;
  margin-bottom: 10px;
}

.customer-name {
  font-size: 20px;
  font-weight: bold;
}

.badge {
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: bold;
}

.badge-active {
  background: rgba(34, 197, 94, 0.18);
  color: #86efac;
}

.badge-inactive {
  background: rgba(239, 68, 68, 0.18);
  color: #fca5a5;
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 14px 0;
}

.stat-box {
  background: rgba(15, 23, 42, 0.85);
  border-radius: 14px;
  padding: 12px;
  text-align: center;
}

.stat-label {
  font-size: 13px;
  color: #94a3b8;
}

.stat-value {
  margin-top: 6px;
  font-size: 18px;
  font-weight: bold;
}

.progress-wrap {
  margin-top: 12px;
}

.progress-head {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
  color: #cbd5e1;
  font-size: 14px;
}

.progress {
  width: 100%;
  height: 16px;
  background: #334155;
  border-radius: 999px;
  overflow: hidden;
}

.progress-bar {
  height: 100%;
  background: linear-gradient(90deg, #22c55e, #16a34a);
}

.link-box {
  margin-top: 14px;
  background: rgba(15, 23, 42, 0.8);
  border-radius: 12px;
  padding: 10px;
  word-break: break-all;
  font-size: 13px;
  color: #bfdbfe;
}

.action-row {
  display: flex;
  gap: 10px;
  margin-top: 14px;
}

.btn-danger {
  background: linear-gradient(135deg, #dc2626, #ef4444);
  color: white;
}

.empty-box {
  padding: 24px;
  text-align: center;
  color: #94a3b8;
  border: 1px dashed rgba(148, 163, 184, 0.2);
  border-radius: 16px;
}

@media (max-width: 900px) {
  .grid {
    grid-template-columns: 1fr;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .stats {
    grid-template-columns: 1fr;
  }

  .customer-top,
  .list-header {
    flex-direction: column;
    align-items: stretch;
  }
}
