/* ==========================================================
   ZMG BRAND DEVELOPER API PLATFORM STYLES
   Exact UI design system from official Zaventra console specs
   ========================================================== */

.zmg-bdev-wrap {
  max-width: 1360px;
  margin: 0 auto;
  padding: 24px 32px 64px;
  font-family: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: #0f172a;
}

/* Header */
.zmg-bdev-top-header {
  margin-bottom: 24px;
}
.zmg-bdev-title-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}
.zmg-bdev-title {
  font-size: 26px;
  font-weight: 800;
  color: #0f172a;
  margin: 0;
  letter-spacing: -0.02em;
}
.zmg-bdev-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #ecfdf5;
  color: #059669;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 9999px;
  border: 1px solid #a7f3d0;
}
.zmg-bdev-status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #10b981;
}

/* Nav Tabs */
.zmg-bdev-tabs {
  display: flex;
  gap: 32px;
  border-bottom: 1px solid #e2e8f0;
  margin-bottom: 28px;
}
.zmg-bdev-tab-btn {
  background: none;
  border: none;
  padding: 10px 0 14px;
  font-size: 14.5px;
  font-weight: 600;
  color: #64748b;
  cursor: pointer;
  position: relative;
  transition: color 0.15s;
}
.zmg-bdev-tab-btn:hover {
  color: #0f172a;
}
.zmg-bdev-tab-btn.active {
  color: #2563eb;
  font-weight: 700;
}
.zmg-bdev-tab-btn.active::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 2.5px;
  background: #2563eb;
  border-radius: 2px 2px 0 0;
}

/* 4 Metric Summary Cards */
.zmg-bdev-metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-bottom: 26px;
}
.zmg-bdev-metric-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 18px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: all 0.15s ease;
  cursor: pointer;
}
.zmg-bdev-metric-card:hover {
  border-color: #cbd5e1;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04);
  transform: translateY(-1px);
}
.zmg-bdev-metric-left {
  display: flex;
  align-items: center;
  gap: 16px;
}
.zmg-bdev-metric-icon {
  width: 44px;
  height: 44px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  font-size: 20px;
}
.zmg-bdev-metric-icon.blue { background: #eff6ff; color: #2563eb; }
.zmg-bdev-metric-icon.green { background: #f0fdf4; color: #16a34a; }
.zmg-bdev-metric-icon.purple { background: #faf5ff; color: #9333ea; }
.zmg-bdev-metric-icon.amber { background: #fffbeb; color: #d97706; }
.zmg-bdev-metric-val {
  font-size: 22px;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.1;
}
.zmg-bdev-metric-lbl {
  font-size: 13px;
  color: #64748b;
  font-weight: 500;
  margin-top: 2px;
}
.zmg-bdev-metric-arrow {
  color: #94a3b8;
  font-size: 15px;
}

/* Two Columns Main Layout */
.zmg-bdev-layout-2col {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 24px;
  align-items: flex-start;
}
@media (max-width: 1080px) {
  .zmg-bdev-metrics-grid { grid-template-columns: repeat(2, 1fr); }
  .zmg-bdev-layout-2col { grid-template-columns: 1fr; }
}

/* Cards */
.zmg-bdev-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 24px;
  margin-bottom: 24px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
}
.zmg-bdev-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}
.zmg-bdev-card-title {
  font-size: 17px;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 4px 0;
}
.zmg-bdev-card-desc {
  font-size: 13px;
  color: #64748b;
  margin: 0;
}

/* Primary Button */
.zmg-bdev-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #2563eb;
  color: #fff;
  font-size: 13.5px;
  font-weight: 600;
  padding: 9px 18px;
  border-radius: 9px;
  border: none;
  cursor: pointer;
  transition: all 0.15s;
}
.zmg-bdev-btn-primary:hover {
  background: #1d4ed8;
}

/* Table */
.zmg-bdev-table-wrap {
  overflow-x: auto;
}
.zmg-bdev-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 13.5px;
}
.zmg-bdev-table th {
  text-align: left;
  padding: 10px 14px;
  font-size: 12px;
  font-weight: 600;
  color: #64748b;
  border-bottom: 1px solid #e2e8f0;
  background: #f8fafc;
  first-child { border-top-left-radius: 8px; }
  last-child { border-top-right-radius: 8px; }
}
.zmg-bdev-table td {
  padding: 14px;
  border-bottom: 1px solid #f1f5f9;
  vertical-align: middle;
}
.zmg-bdev-table tr:last-child td {
  border-bottom: none;
}
.zmg-bdev-app-name {
  font-weight: 700;
  color: #0f172a;
  font-size: 14px;
}
.zmg-bdev-app-sub {
  font-size: 12px;
  color: #64748b;
  margin-top: 2px;
}

/* Key with copy */
.zmg-bdev-key-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'DM Mono', monospace;
  font-size: 12.5px;
  background: #f8fafc;
  padding: 4px 10px;
  border-radius: 6px;
  border: 1px solid #e2e8f0;
  color: #334155;
}
.zmg-bdev-copy-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: #64748b;
  display: inline-flex;
  align-items: center;
  padding: 2px;
  transition: color 0.15s;
}
.zmg-bdev-copy-btn:hover {
  color: #2563eb;
}

/* Badges */
.zmg-bdev-scope-pill {
  display: inline-flex;
  align-items: center;
  background: #eff6ff;
  color: #2563eb;
  border: 1px solid #dbeafe;
  font-size: 12px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 9999px;
}
.zmg-bdev-action-btn {
  width: 32px;
  height: 32px;
  border-radius: 7px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  color: #64748b;
  cursor: pointer;
  display: grid;
  place-items: center;
  font-size: 14px;
  transition: all 0.15s;
}
.zmg-bdev-action-btn:hover {
  background: #f1f5f9;
  color: #0f172a;
}

/* Quick Start */
.zmg-bdev-qs-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  position: relative;
  margin-top: 10px;
}
.zmg-bdev-qs-step {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.zmg-bdev-qs-num {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: #eff6ff;
  color: #2563eb;
  font-weight: 700;
  font-size: 13px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.zmg-bdev-qs-title {
  font-size: 13.5px;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 2px;
}
.zmg-bdev-qs-sub {
  font-size: 12px;
  color: #64748b;
  line-height: 1.4;
}

/* Quota Card */
.zmg-bdev-quota-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid #f1f5f9;
  font-size: 13px;
}
.zmg-bdev-quota-item:last-child {
  border-bottom: none;
}
.zmg-bdev-quota-lbl {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #475569;
}
.zmg-bdev-quota-val {
  font-weight: 700;
  color: #0f172a;
  font-family: 'DM Mono', monospace;
  font-size: 13px;
}
.zmg-bdev-prog-wrap {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid #e2e8f0;
}
.zmg-bdev-prog-bar {
  height: 7px;
  background: #e2e8f0;
  border-radius: 999px;
  overflow: hidden;
  margin-top: 8px;
}
.zmg-bdev-prog-fill {
  height: 100%;
  background: #2563eb;
  border-radius: 999px;
}

/* Authentication snippet box */
.zmg-bdev-auth-tabs {
  display: flex;
  gap: 16px;
  border-bottom: 1px solid #e2e8f0;
  margin-bottom: 12px;
}
.zmg-bdev-auth-tab {
  background: none;
  border: none;
  padding: 6px 0 10px;
  font-size: 12.5px;
  font-weight: 600;
  color: #64748b;
  cursor: pointer;
}
.zmg-bdev-auth-tab.active {
  color: #2563eb;
  border-bottom: 2px solid #2563eb;
}
.zmg-bdev-codebox {
  background: #0f172a;
  border-radius: 10px;
  padding: 14px 16px;
  color: #f8fafc;
  font-family: 'DM Mono', monospace;
  font-size: 12px;
  line-height: 1.6;
  position: relative;
  overflow-x: auto;
}
.zmg-bdev-codebox-copy {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  border-radius: 6px;
  padding: 5px 8px;
  color: #fff;
  cursor: pointer;
  font-size: 11px;
}

/* ==========================================================
   ENDPOINTS TAB STYLES
   ========================================================== */
.zmg-bdev-endpoints-banner {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}
.zmg-bdev-endpoints-layout {
  display: grid;
  grid-template-columns: 240px 1fr 420px;
  gap: 20px;
  align-items: flex-start;
}
@media (max-width: 1200px) {
  .zmg-bdev-endpoints-layout { grid-template-columns: 220px 1fr; }
  .zmg-bdev-ep-details-col { grid-column: 1 / -1; }
}

.zmg-bdev-ep-sidebar {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 16px;
}
.zmg-bdev-search-input {
  width: 100%;
  padding: 9px 12px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  font-size: 13px;
  outline: none;
  box-sizing: border-box;
  margin-bottom: 12px;
}
.zmg-bdev-search-input:focus {
  border-color: #2563eb;
}
.zmg-bdev-cat-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 12px;
  background: none;
  border: none;
  border-radius: 8px;
  font-size: 13.5px;
  font-weight: 600;
  color: #475569;
  cursor: pointer;
  margin-bottom: 3px;
  transition: all 0.15s;
}
.zmg-bdev-cat-btn:hover {
  background: #f8fafc;
  color: #0f172a;
}
.zmg-bdev-cat-btn.active {
  background: #eff6ff;
  color: #2563eb;
  font-weight: 700;
}
.zmg-bdev-cat-count {
  font-size: 11.5px;
  background: #f1f5f9;
  color: #64748b;
  padding: 2px 7px;
  border-radius: 999px;
  font-weight: 600;
}
.zmg-bdev-cat-btn.active .zmg-bdev-cat-count {
  background: #dbeafe;
  color: #2563eb;
}

/* Endpoints List */
.zmg-bdev-ep-list-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  overflow: hidden;
}
.zmg-bdev-ep-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  border-bottom: 1px solid #f1f5f9;
  cursor: pointer;
  transition: background 0.15s;
}
.zmg-bdev-ep-item:hover {
  background: #f8fafc;
}
.zmg-bdev-ep-item.selected {
  background: #eff6ff;
  border-left: 3px solid #2563eb;
}
.zmg-bdev-ep-item:last-child {
  border-bottom: none;
}
.zmg-bdev-method {
  font-family: 'DM Mono', monospace;
  font-size: 11.5px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
  min-width: 52px;
  text-align: center;
  display: inline-block;
}
.zmg-bdev-method.GET { background: #ecfdf5; color: #059669; }
.zmg-bdev-method.POST { background: #fff7ed; color: #ea580c; }
.zmg-bdev-method.PUT { background: #fefce8; color: #ca8a04; }
.zmg-bdev-method.DELETE { background: #fef2f2; color: #dc2626; }
.zmg-bdev-method.PATCH { background: #faf5ff; color: #9333ea; }

.zmg-bdev-ep-path {
  font-family: 'DM Mono', monospace;
  font-size: 13px;
  font-weight: 600;
  color: #0f172a;
}
.zmg-bdev-ep-desc {
  font-size: 12.5px;
  color: #64748b;
  margin-top: 2px;
}

/* Endpoint Details Right Pane */
.zmg-bdev-ep-details-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 22px;
}
.zmg-bdev-ep-subtabs {
  display: flex;
  gap: 20px;
  border-bottom: 1px solid #e2e8f0;
  margin-bottom: 16px;
}
.zmg-bdev-ep-subtab {
  background: none;
  border: none;
  padding: 8px 0;
  font-size: 13px;
  font-weight: 600;
  color: #64748b;
  cursor: pointer;
}
.zmg-bdev-ep-subtab.active {
  color: #2563eb;
  border-bottom: 2px solid #2563eb;
}

/* ==========================================================
   FALLBACK TAB STYLES
   ========================================================== */
.zmg-bdev-fb-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 24px;
}
.zmg-bdev-action-pill {
  font-size: 12px;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 6px;
  display: inline-block;
}
.zmg-bdev-action-pill.cache { background: #eff6ff; color: #2563eb; }
.zmg-bdev-action-pill.retry { background: #faf5ff; color: #9333ea; }
.zmg-bdev-action-pill.default { background: #fff7ed; color: #ea580c; }
.zmg-bdev-action-pill.queue { background: #ecfdf5; color: #059669; }

/* Switch Toggle */
.zmg-bdev-switch {
  position: relative;
  display: inline-block;
  width: 36px;
  height: 20px;
}
.zmg-bdev-switch input { opacity: 0; width: 0; height: 0; }
.zmg-bdev-slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: #cbd5e1;
  transition: .2s;
  border-radius: 20px;
}
.zmg-bdev-slider:before {
  position: absolute;
  content: "";
  height: 14px;
  width: 14px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: .2s;
  border-radius: 50%;
}
input:checked + .zmg-bdev-slider {
  background-color: #10b981;
}
input:checked + .zmg-bdev-slider:before {
  transform: translateX(16px);
}

/* ==========================================================
   MODAL STYLES (Multi-step wizard)
   ========================================================== */
.zmg-bdev-modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(2px);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.zmg-bdev-modal-box {
  background: #fff;
  border-radius: 18px;
  width: 100%;
  max-width: 680px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
  overflow: hidden;
}
.zmg-bdev-modal-head {
  padding: 22px 28px 18px;
  border-bottom: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.zmg-bdev-modal-title {
  font-size: 18px;
  font-weight: 800;
  color: #0f172a;
  margin: 0;
}
.zmg-bdev-modal-close {
  background: none;
  border: none;
  font-size: 18px;
  color: #94a3b8;
  cursor: pointer;
  padding: 4px;
}
.zmg-bdev-modal-body {
  padding: 24px 28px;
  overflow-y: auto;
  flex: 1;
}
.zmg-bdev-modal-foot {
  padding: 16px 28px;
  border-top: 1px solid #e2e8f0;
  background: #f8fafc;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Stepper */
.zmg-bdev-stepper {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid #f1f5f9;
}
.zmg-bdev-step-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: #94a3b8;
}
.zmg-bdev-step-item.active {
  color: #2563eb;
}
.zmg-bdev-step-num {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #f1f5f9;
  display: grid;
  place-items: center;
  font-size: 11.5px;
  font-weight: 700;
}
.zmg-bdev-step-item.active .zmg-bdev-step-num {
  background: #2563eb;
  color: #fff;
}

/* Permission Groups */
.zmg-bdev-scope-group {
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  margin-bottom: 12px;
  overflow: hidden;
}
.zmg-bdev-scope-header {
  padding: 10px 14px;
  background: #f8fafc;
  font-weight: 700;
  font-size: 13px;
  color: #0f172a;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
}
.zmg-bdev-scope-items {
  padding: 10px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.zmg-bdev-scope-label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  cursor: pointer;
  color: #334155;
}
.zmg-bdev-scope-warn {
  font-size: 11px;
  color: #d97706;
  background: #fffbeb;
  padding: 2px 7px;
  border-radius: 4px;
  border: 1px solid #fde68a;
  margin-left: 6px;
}

/* Credentials Success Screen */
.zmg-bdev-success-check {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #ecfdf5;
  color: #059669;
  display: grid;
  place-items: center;
  font-size: 32px;
  margin: 12px auto 16px;
}
.zmg-bdev-cred-field {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 12px 14px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.zmg-bdev-cred-val {
  font-family: 'DM Mono', monospace;
  font-size: 13px;
  font-weight: 600;
  color: #0f172a;
  word-break: break-all;
}
.zmg-bdev-warning-box {
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 12.5px;
  color: #92400e;
  margin-top: 16px;
  line-height: 1.4;
}

/* ═══════════════════════════════════════════════════════════════════
   FULL-PAGE "CREATE API APPLICATION" WIZARD
   ═══════════════════════════════════════════════════════════════════ */
.zmg-bdev-create-page-wrap {
  min-height: 100vh;
  background: #f8fafc;
  padding-bottom: 110px;
  position: relative;
}

/* Top Sticky Header */
.zmg-bdev-page-topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  background: #ffffff;
  border-bottom: 1px solid #e2e8f0;
  padding: 14px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 1px 3px rgba(0,0,0,0.03);
}

.zmg-bdev-topbar-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.zmg-bdev-back-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  background: #fff;
  color: #0f172a;
  cursor: pointer;
  transition: all 0.15s;
}
.zmg-bdev-back-btn:hover {
  background: #f1f5f9;
  border-color: #cbd5e1;
}

.zmg-bdev-topbar-crumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  font-weight: 600;
  color: #64748b;
}
.zmg-bdev-topbar-crumbs span.active {
  color: #0f172a;
  font-weight: 700;
}

.zmg-bdev-topbar-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Centered Container */
.zmg-bdev-create-content {
  max-width: 1160px;
  margin: 0 auto;
  padding: 32px 24px;
}

.zmg-bdev-create-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid #e2e8f0;
}
.zmg-bdev-create-h1 {
  font-size: 26px;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.02em;
  margin: 0 0 6px;
}
.zmg-bdev-create-sub {
  font-size: 14px;
  color: #64748b;
  margin: 0;
}
.zmg-bdev-new-badge {
  display: inline-flex;
  align-items: center;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  background: #eff6ff;
  color: #2563eb;
  border: 1px solid #dbeafe;
}

/* Section Cards */
.zmg-bdev-section-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 28px;
  margin-bottom: 24px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.02);
}
.zmg-bdev-section-head {
  margin-bottom: 20px;
}
.zmg-bdev-section-title {
  font-size: 17px;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 4px;
}
.zmg-bdev-section-desc {
  font-size: 13.5px;
  color: #64748b;
  margin: 0;
}

/* Form Controls */
.zmg-bdev-field-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
@media (max-width: 800px) {
  .zmg-bdev-field-grid { grid-template-columns: 1fr; }
}

.zmg-bdev-field-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 18px;
}
.zmg-bdev-field-label {
  font-size: 13px;
  font-weight: 700;
  color: #1e293b;
}
.zmg-bdev-field-label span.req {
  color: #ef4444;
}

/* Segmented Control */
.zmg-bdev-segmented {
  display: inline-flex;
  background: #f1f5f9;
  border-radius: 10px;
  padding: 4px;
  gap: 4px;
  width: fit-content;
}
.zmg-bdev-seg-btn {
  border: none;
  background: transparent;
  padding: 8px 20px;
  font-size: 13px;
  font-weight: 600;
  color: #64748b;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.15s;
}
.zmg-bdev-seg-btn.active {
  background: #ffffff;
  color: #2563eb;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1), 0 1px 2px rgba(0,0,0,0.06);
  font-weight: 700;
}

/* 2-Column API Categories Grid */
.zmg-bdev-cat-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 16px;
}
@media (max-width: 850px) {
  .zmg-bdev-cat-grid { grid-template-columns: 1fr; }
}

.zmg-bdev-cat-card {
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: 14px;
  padding: 20px;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  cursor: pointer;
  transition: all 0.15s ease;
  user-select: none;
  position: relative;
}
.zmg-bdev-cat-card:hover {
  border-color: #cbd5e1;
  box-shadow: 0 4px 12px rgba(0,0,0,0.03);
}
.zmg-bdev-cat-card.active {
  border-color: #2563eb;
  background: #fafcff;
  box-shadow: 0 0 0 1px #2563eb;
}

.zmg-bdev-cat-checkbox {
  width: 20px;
  height: 20px;
  margin-top: 2px;
  accent-color: #2563eb;
  cursor: pointer;
}

.zmg-bdev-cat-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.zmg-bdev-cat-icon.web { background: #eff6ff; color: #2563eb; }
.zmg-bdev-cat-icon.release { background: #f0fdf4; color: #16a34a; }
.zmg-bdev-cat-icon.distribution { background: #fffbeb; color: #d97706; }
.zmg-bdev-cat-icon.playback { background: #faf5ff; color: #9333ea; }
.zmg-bdev-cat-icon.analytics { background: #ecfeff; color: #0891b2; }
.zmg-bdev-cat-icon.rights { background: #fdf2f8; color: #db2777; }
.zmg-bdev-cat-icon.webhooks { background: #f8fafc; color: #475569; }

.zmg-bdev-cat-content {
  flex: 1;
  min-width: 0;
}
.zmg-bdev-cat-name {
  font-size: 15px;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 4px;
}
.zmg-bdev-cat-desc {
  font-size: 13px;
  color: #64748b;
  margin: 0 0 10px;
  line-height: 1.4;
}
.zmg-bdev-cat-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
}
.zmg-bdev-cat-config-lbl {
  color: #2563eb;
  font-weight: 600;
}
.zmg-bdev-cat-count-badge {
  color: #64748b;
  background: #f1f5f9;
  padding: 2px 8px;
  border-radius: 999px;
  font-weight: 600;
}

/* Dynamic Permissions Panels */
.zmg-bdev-perm-group {
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  margin-bottom: 16px;
  background: #ffffff;
  overflow: hidden;
  transition: all 0.2s;
}
.zmg-bdev-perm-group.locked {
  background: #f8fafc;
  opacity: 0.7;
}

/* Clean Category-grouped Permissions (media_1790951169767.png style) */
.zmg-bdev-perm-categories-wrap {
  display: flex;
  flex-direction: column;
}
.zmg-bdev-perm-category-block {
  margin-bottom: 24px;
}
.zmg-bdev-perm-category-block:last-child {
  margin-bottom: 0;
}
.zmg-bdev-perm-category-header {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #334155;
  padding-bottom: 8px;
  border-bottom: 1px solid #e2e8f0;
  margin-bottom: 14px;
}
.zmg-bdev-perm-clean-list {
  display: flex;
  flex-direction: column;
  gap: 13px;
}
.zmg-bdev-clean-check-row {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  user-select: none;
  padding: 2px 0;
  transition: opacity 0.15s;
}
.zmg-bdev-clean-check-row:hover .zmg-bdev-clean-label {
  color: #2563eb;
}
.zmg-bdev-clean-checkbox {
  width: 17px;
  height: 17px;
  accent-color: #2563eb;
  cursor: pointer;
  margin: 0;
  border-radius: 4px;
  flex-shrink: 0;
}
.zmg-bdev-clean-label {
  font-size: 14px;
  font-weight: 600;
  color: #0f172a;
  line-height: 1.35;
}

/* Security & Webhook Events */
.zmg-bdev-security-grid {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.zmg-bdev-sec-option {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 16px;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  background: #fff;
}
.zmg-bdev-sec-option:hover {
  background: #f8fafc;
}
.zmg-bdev-sec-title {
  font-size: 13.5px;
  font-weight: 700;
  color: #0f172a;
}
.zmg-bdev-sec-sub {
  font-size: 12.5px;
  color: #64748b;
  margin-top: 2px;
}

.zmg-bdev-events-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 14px;
}
@media (max-width: 900px) {
  .zmg-bdev-events-grid { grid-template-columns: repeat(2, 1fr); }
}

/* Sticky Bottom Action Bar */
.zmg-bdev-sticky-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #ffffff;
  border-top: 1px solid #e2e8f0;
  padding: 16px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 50;
  box-shadow: 0 -4px 16px rgba(0,0,0,0.04);
}
.zmg-bdev-sticky-right {
  display: flex;
  align-items: center;
  gap: 14px;
}

/* Credentials Output Screen */
.zmg-bdev-creds-container {
  max-width: 820px;
  margin: 40px auto;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  padding: 40px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.04);
  text-align: center;
}
.zmg-bdev-creds-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: #ecfdf5;
  color: #059669;
  display: grid;
  place-items: center;
  margin: 0 auto 20px;
}
.zmg-bdev-creds-title {
  font-size: 24px;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 8px;
}
.zmg-bdev-creds-desc {
  font-size: 14px;
  color: #64748b;
  max-width: 520px;
  margin: 0 auto 32px;
  line-height: 1.5;
}

/* Integration & Credential Type Badges */
.zmg-bdev-type-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 700;
  padding: 2.5px 8px;
  border-radius: 6px;
  letter-spacing: 0.02em;
}
.zmg-bdev-type-badge.key {
  background: #eff6ff;
  color: #2563eb;
  border: 1px solid #bfdbfe;
}
.zmg-bdev-type-badge.oauth {
  background: #faf5ff;
  color: #7e22ce;
  border: 1px solid #e9d5ff;
}

/* Delete Icon Button */
.zmg-bdev-delete-icon-btn {
  background: #fff;
  border: 1px solid #fecaca;
  border-radius: 8px;
  padding: 5px 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #dc2626;
  transition: all 0.15s ease;
}
.zmg-bdev-delete-icon-btn:hover {
  background: #fef2f2;
  border-color: #ef4444;
  transform: translateY(-1px);
}

/* Type Selection Box in Create Modal */
.zmg-bdev-type-selector {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 6px;
}
@media (max-width: 768px) {
  .zmg-bdev-type-selector {
    grid-template-columns: 1fr;
  }
}
.zmg-bdev-type-box {
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: 12px;
  padding: 16px 18px;
  cursor: pointer;
  transition: all 0.15s ease;
  position: relative;
}
.zmg-bdev-type-box:hover {
  border-color: #94a3b8;
  background: #f8fafc;
}
.zmg-bdev-type-box.active,
.zmg-bdev-type-box.selected {
  border-color: #2563eb;
  background: #f8faff;
  box-shadow: 0 0 0 1px #2563eb;
}
.zmg-bdev-type-head {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 6px;
}
.zmg-bdev-type-head input[type="radio"] {
  accent-color: #2563eb;
  width: 17px;
  height: 17px;
  margin-top: 3px;
  cursor: pointer;
}
.zmg-bdev-type-title {
  font-size: 14.5px;
  font-weight: 700;
  color: #0f172a;
}
.zmg-bdev-type-sub {
  font-size: 12px;
  color: #64748b;
  margin-top: 2px;
}
.zmg-bdev-type-info {
  margin: 8px 0 0;
  font-size: 12.5px;
  color: #475569;
  line-height: 1.45;
}
.zmg-bdev-type-info code {
  background: #f1f5f9;
  padding: 2px 5px;
  border-radius: 4px;
  font-family: 'DM Mono', monospace;
  font-size: 11.5px;
  color: #0f172a;
}



