/* ============================================================
   General Bots Cloud · Components
   Design: Monochrome — black & white
   ============================================================ */

/* ----------------------------------------------------------
   1. SPLIT LAYOUT (Login / Signup)
   ---------------------------------------------------------- */

.mgmt-split {
  display: grid;
  grid-template-columns: 420px 1fr;
  min-height: 100vh;
}

.mgmt-split-left {
  position: relative;
  background: #08080a;
  color: #ededf0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 48px 40px;
  overflow: hidden;
}

/* Subtle dot-grid pattern */
.mgmt-split-left::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 24px 24px;
  pointer-events: none;
}

.mgmt-split-right {
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 40px;
}

/* --- Pitch content --- */

.split-pitch-tag {
  display: inline-flex;
  align-items: center;
  padding: 4px 14px;
  border-radius: 99px;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #fff;
  background: #08080a;
  border: 1px solid transparent;
  background-clip: padding-box;
  position: relative;
  z-index: 1;
}

.split-pitch-tag::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: #ffffff;
  z-index: -1;
}

.split-pitch-title {
  font-size: 2rem;
  font-weight: 900;
  color: #fff;
  line-height: 1.2;
  margin-top: 20px;
  letter-spacing: -0.02em;
}

.split-pitch-title span {
  background: #ffffff;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.split-pitch-body {
  color: #a0a0aa;
  font-size: 1rem;
  line-height: 1.7;
  margin-top: 16px;
  max-width: 340px;
}

.split-pitch-bullets {
  list-style: none;
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.split-pitch-bullets li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.92rem;
  color: #c8c8d0;
  position: relative;
  padding-left: 20px;
}

.split-pitch-bullets li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ffffff;
}

/* --- Trust bar --- */

.split-trust {
  display: flex;
  gap: 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: 32px;
  padding-top: 24px;
  position: relative;
  z-index: 1;
}

.split-trust-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.split-trust-num {
  font-size: 1.5rem;
  font-weight: 800;
  background: #ffffff;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.split-trust-label {
  font-size: 0.75rem;
  color: #7e7e8a;
  letter-spacing: 0.02em;
}

/* ----------------------------------------------------------
   2. SECTION HEADERS
   ---------------------------------------------------------- */

.mgmt-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.mgmt-section-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.01em;
}

.mgmt-section-subtitle {
  font-size: 0.88rem;
  color: var(--muted);
  margin-top: 4px;
}

.mgmt-section-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ----------------------------------------------------------
   3. GUIDE CARDS
   ---------------------------------------------------------- */

.mgmt-guide-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
  margin-bottom: 28px;
}

.mgmt-guide-card {
  position: relative;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 20px 20px 28px;
  overflow: hidden;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.mgmt-guide-card::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--accent);
  border-radius: var(--radius) 0 0 var(--radius);
}

.mgmt-guide-card:hover {
  border-color: var(--border-hover);
  box-shadow: var(--shadow);
}

.mgmt-guide-card-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 6px;
}

.mgmt-guide-card-body {
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.5;
}

.mgmt-guide-card-icon {
  width: 22px;
  height: 22px;
  color: var(--accent);
  margin-bottom: 10px;
}

/* ----------------------------------------------------------
   4. TABS
   ---------------------------------------------------------- */

.mgmt-tabs {
  display: flex;
  gap: 0;
  border-bottom: 1px solid var(--border);
  margin-bottom: 24px;
}

.mgmt-tab {
  position: relative;
  padding: 10px 18px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--muted);
  cursor: pointer;
  border: none;
  background: none;
  transition: color 0.15s ease;
}

.mgmt-tab:hover {
  color: var(--text);
}

.mgmt-tab.active {
  color: var(--accent);
  font-weight: 600;
}

.mgmt-tab.active::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: var(--accent);
  border-radius: 2px 2px 0 0;
}

.mgmt-tab-content {
  display: none;
}

.mgmt-tab-content.active {
  display: block;
}

/* ----------------------------------------------------------
   5. PLAN CARDS
   ---------------------------------------------------------- */

.mgmt-plan-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}

.mgmt-plan-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  display: flex;
  flex-direction: column;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.mgmt-plan-card:hover {
  border-color: var(--border-hover);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.mgmt-plan-card.featured {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent), var(--shadow-accent);
}

.mgmt-plan-name {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
}

.mgmt-plan-price {
  font-size: 2rem;
  font-weight: 900;
  color: var(--text);
  margin-top: 8px;
  letter-spacing: -0.03em;
}

.mgmt-plan-price span {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--muted);
}

.mgmt-plan-desc {
  font-size: 0.88rem;
  color: var(--muted);
  margin-top: 8px;
  line-height: 1.5;
}

.mgmt-plan-features {
  list-style: none;
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.mgmt-plan-features li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  color: var(--text);
}

.mgmt-plan-features li::before {
  content: '✓';
  color: #555;
  font-weight: 700;
  font-size: 0.85rem;
  flex-shrink: 0;
}

.mgmt-plan-action {
  margin-top: 24px;
}

/* ----------------------------------------------------------
   6. STORE / BOT CARDS
   ---------------------------------------------------------- */

.mgmt-store-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}

.mgmt-store-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.mgmt-store-card:hover {
  border-color: var(--border-hover);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.mgmt-store-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
}

.mgmt-store-card-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: var(--accent-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  flex-shrink: 0;
}

.mgmt-store-card-icon svg {
  width: 20px;
  height: 20px;
}

.mgmt-store-card-name {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
}

.mgmt-store-card-tag {
  font-size: 0.72rem;
  color: var(--muted);
}

.mgmt-store-card-body {
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.5;
  flex: 1;
}

.mgmt-store-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}

.mgmt-store-card-price {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
}

/* ----------------------------------------------------------
   7. SERVICES LIST
   ---------------------------------------------------------- */

.mgmt-services-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mgmt-service-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.mgmt-service-item:hover {
  border-color: var(--border-hover);
  box-shadow: var(--shadow);
}

.mgmt-service-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: var(--accent-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  flex-shrink: 0;
}

.mgmt-service-icon svg {
  width: 18px;
  height: 18px;
}

.mgmt-service-info {
  flex: 1;
  min-width: 0;
}

.mgmt-service-name {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text);
}

.mgmt-service-desc {
  font-size: 0.82rem;
  color: var(--muted);
  margin-top: 2px;
}

.mgmt-service-status {
  flex-shrink: 0;
}

/* ----------------------------------------------------------
   8. STATUS BADGES
   ---------------------------------------------------------- */

.mgmt-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 99px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.mgmt-status-badge--active,
.mgmt-status-badge--online,
.mgmt-status-badge--paid {
  background: rgba(0, 0, 0, 0.08);
  color: #2a2a2a;
}

.mgmt-status-badge--warning,
.mgmt-status-badge--pending {
  background: rgba(0, 0, 0, 0.08);
  color: #555;
}

.mgmt-status-badge--error,
.mgmt-status-badge--offline,
.mgmt-status-badge--overdue {
  background: rgba(0, 0, 0, 0.06);
  color: #777;
}

.mgmt-status-badge--neutral,
.mgmt-status-badge--inactive {
  background: var(--accent-dim);
  color: var(--muted);
}

.mgmt-status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

/* ----------------------------------------------------------
   9. INVOICE TABLE
   ---------------------------------------------------------- */

.mgmt-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card);
}

.mgmt-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.mgmt-table th {
  text-align: left;
  padding: 12px 16px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  border-bottom: 1px solid var(--border);
  background: var(--bg2);
}

.mgmt-table td {
  padding: 12px 16px;
  color: var(--text);
  border-bottom: 1px solid var(--border);
}

.mgmt-table tr:last-child td {
  border-bottom: none;
}

.mgmt-table tr:hover td {
  background: var(--accent-dim);
}

.mgmt-table-amount {
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

/* ----------------------------------------------------------
   10. PAYMENT CARDS
   ---------------------------------------------------------- */

.mgmt-payment-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}

.mgmt-payment-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 14px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.mgmt-payment-card:hover {
  border-color: var(--border-hover);
  box-shadow: var(--shadow);
}

.mgmt-payment-card-icon {
  width: 44px;
  height: 30px;
  border-radius: 6px;
  background: var(--bg3);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-weight: 800;
  font-size: 0.7rem;
  color: var(--muted);
}

.mgmt-payment-card-info {
  flex: 1;
  min-width: 0;
}

.mgmt-payment-card-label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
}

.mgmt-payment-card-detail {
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 2px;
}

.mgmt-payment-card-actions {
  display: flex;
  gap: 6px;
}

.mgmt-payment-card.default {
  border-color: var(--accent);
}

/* ----------------------------------------------------------
   11. MACHINES
   ---------------------------------------------------------- */

.mgmt-machines-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 16px;
}

.mgmt-machine-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.mgmt-machine-card:hover {
  border-color: var(--border-hover);
  box-shadow: var(--shadow);
}

.mgmt-machine-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.mgmt-machine-name {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
}

.mgmt-machine-specs {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.mgmt-machine-spec {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.mgmt-machine-spec-label {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.mgmt-machine-spec-value {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}

.mgmt-machine-meter {
  height: 4px;
  border-radius: 4px;
  background: var(--bg3);
  margin-top: 14px;
  overflow: hidden;
}

.mgmt-machine-meter-fill {
  height: 100%;
  border-radius: 4px;
  background: var(--accent);
  transition: width 0.3s ease;
}

.mgmt-machine-meter-fill.warning {
  background: #555;
}

.mgmt-machine-meter-fill.danger {
  background: #888;
}

/* ----------------------------------------------------------
   12. CONTENT AREA PADDING
   ---------------------------------------------------------- */

.mgmt-content {
  flex: 1;
  padding: 28px;
}

.mgmt-content-narrow {
  max-width: 720px;
}

.mgmt-content-wide {
  max-width: 1100px;
}

/* ----------------------------------------------------------
   13. RESPONSIVE — SPLIT
   ---------------------------------------------------------- */

@media (max-width: 900px) {
  .mgmt-split {
    grid-template-columns: 1fr;
  }

  .mgmt-split-left {
    display: none;
  }
}

@media (max-width: 600px) {
  .mgmt-plan-grid,
  .mgmt-store-grid,
  .mgmt-machines-grid,
  .mgmt-guide-grid,
  .mgmt-payment-grid {
    grid-template-columns: 1fr;
  }

  .mgmt-content {
    padding: 16px;
  }
}
