/* RoboCuda Growth SEO & Auto-Blog Hub Styles */
.gb-wrap {
  padding: 20px 24px 48px;
  max-width: 1480px;
  margin: 0 auto;
  color: #0f172a;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
}
.gb-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 16px;
}
.gb-title-box h1 {
  font-size: 20px;
  font-weight: 700;
  color: #0f172a;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}
.gb-title-box p {
  font-size: 13px;
  color: #64748b;
  margin: 4px 0 0;
}
.gb-top-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  background: #f1f5f9;
  padding: 5px;
  border-radius: 12px;
  margin-bottom: 18px;
}
.gb-nav-tab {
  border: none;
  background: transparent;
  padding: 8px 14px;
  border-radius: 9px;
  font-size: 13px;
  font-weight: 600;
  color: #475569;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  transition: all 0.15s ease;
}
.gb-nav-tab:hover {
  color: #0f172a;
  background: rgba(255, 255, 255, 0.65);
}
.gb-nav-tab.active {
  background: #ffffff;
  color: #0284c7;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.08);
}
.gb-badge-cnt {
  font-size: 11px;
  padding: 1px 7px;
  border-radius: 999px;
  background: #e0f2fe;
  color: #0369a1;
  font-weight: 700;
}
.gb-kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}
.gb-kpi-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 14px 16px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03);
}
.gb-kpi-label {
  font-size: 12px;
  color: #64748b;
  font-weight: 500;
}
.gb-kpi-val {
  font-size: 24px;
  font-weight: 700;
  color: #0f172a;
  margin-top: 4px;
}
.gb-kpi-sub {
  font-size: 11.5px;
  color: #64748b;
  margin-top: 4px;
}
.gb-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 18px;
  margin-bottom: 16px;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.03);
}
.gb-card-hd {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
}
.gb-card-title {
  font-size: 15px;
  font-weight: 700;
  color: #0f172a;
  margin: 0;
}
.gb-btn {
  border: 1px solid #cbd5e1;
  background: #ffffff;
  color: #1e293b;
  border-radius: 8px;
  padding: 7px 13px;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  flex-shrink: 0;
}
.gb-btn:hover:not(:disabled) {
  background: #f8fafc;
  border-color: #94a3b8;
}
.gb-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}
.gb-btn-primary {
  background: #0284c7;
  border-color: #0284c7;
  color: #ffffff;
}
.gb-btn-primary:hover:not(:disabled) {
  background: #0369a1;
  border-color: #0369a1;
}
.gb-btn-emerald {
  background: #059669;
  border-color: #059669;
  color: #ffffff;
}
.gb-btn-emerald:hover:not(:disabled) {
  background: #047857;
}
.gb-input, .gb-select, .gb-textarea {
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  padding: 7px 11px;
  font-size: 13px;
  color: #0f172a;
  background: #ffffff;
  outline: none;
}
.gb-input:focus, .gb-select:focus, .gb-textarea:focus {
  border-color: #0284c7;
  box-shadow: 0 0 0 2px rgba(2, 132, 199, 0.14);
}
.gb-table-wrap {
  overflow-x: auto;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
}
.gb-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12.5px;
}
.gb-table th {
  background: #f8fafc;
  color: #475569;
  font-weight: 600;
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid #e2e8f0;
  white-space: nowrap;
}
.gb-table td {
  padding: 10px 12px;
  border-bottom: 1px solid #f1f5f9;
  vertical-align: middle;
}
.gb-table tr:hover td {
  background: #f8fafc;
}
.gb-table tr.gb-row-new td {
  background: #ecfdf5;
  border-bottom: 1px solid #d1fae5;
}
.gb-table tr.gb-row-new td:first-child {
  border-left: 4px solid #10b981;
}
.gb-table tr.gb-row-new:hover td {
  background: #d1fae5;
}
.gb-table tr.gb-row-update td {
  background: #eef2ff;
  border-bottom: 1px solid #e0e7ff;
}
.gb-table tr.gb-row-update td:first-child {
  border-left: 4px solid #4f46e5;
}
.gb-table tr.gb-row-update:hover td {
  background: #e0e7ff;
}
.gb-table tr.gb-row-failed td {
  background: #fef2f2;
  border-bottom: 1px solid #fee2e2;
}
.gb-table tr.gb-row-failed td:first-child {
  border-left: 4px solid #ef4444;
}
.gb-pill {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 600;
  white-space: nowrap;
}
.gb-pill-green { background: #dcfce7; color: #166534; }
.gb-pill-emerald-strong { background: #d1fae5; color: #065f46; border: 1px solid #6ee7b7; font-weight: 700; }
.gb-pill-indigo { background: #e0e7ff; color: #3730a3; border: 1px solid #a5b4fc; font-weight: 700; }
.gb-pill-blue { background: #e0f2fe; color: #075985; }
.gb-pill-amber { background: #fef3c7; color: #92400e; }
.gb-pill-red { background: #fee2e2; color: #991b1b; }
.gb-pill-slate { background: #f1f5f9; color: #475569; }
.gb-type-chip {
  border: 1px solid #cbd5e1;
  background: #ffffff;
  color: #334155;
  border-radius: 999px;
  padding: 4px 11px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.gb-type-chip.active {
  border-color: #0284c7;
  box-shadow: 0 0 0 2px rgba(2, 132, 199, 0.15);
  color: #0f172a;
}
.gb-type-dot {
  width: 10px;
  height: 10px;
  border-radius: 3px;
  display: inline-block;
}
.gb-craft-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 14px;
}
.gb-diff-box {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 10px 12px;
  margin-bottom: 8px;
  font-size: 12px;
}
.gb-bar-track {
  height: 8px;
  background: #e2e8f0;
  border-radius: 999px;
  overflow: hidden;
}
.gb-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #0284c7, #10b981);
  border-radius: 999px;
}
.gb-btn-sm {
  padding: 5px 10px;
  font-size: 12px;
  border-radius: 7px;
}
.gb-btn-ghost {
  border-color: transparent;
  background: transparent;
  color: #475569;
}
.gb-btn-ghost:hover:not(:disabled) {
  background: #f1f5f9;
  border-color: transparent;
  color: #0f172a;
}
.gb-btn-danger {
  border-color: #fecaca;
  background: #ffffff;
  color: #dc2626;
}
.gb-btn-danger:hover:not(:disabled) {
  background: #fef2f2;
  border-color: #fca5a5;
}
.gb-modal-mask {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(15, 23, 42, 0.5);
  backdrop-filter: blur(2px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.gb-modal {
  background: #ffffff;
  border-radius: 16px;
  border: 1px solid #cbd5e1;
  box-shadow: 0 24px 48px rgba(15, 23, 42, 0.2);
  width: 100%;
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.gb-modal-hd {
  padding: 16px 22px;
  border-bottom: 1px solid #e2e8f0;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.gb-modal-title {
  font-size: 16px;
  font-weight: 700;
  color: #0f172a;
  margin: 0;
}
.gb-modal-sub {
  font-size: 12.5px;
  color: #64748b;
  margin-top: 3px;
}
.gb-modal-bd {
  padding: 18px 22px;
  overflow-y: auto;
  flex: 1 1 auto;
}
.gb-modal-ft {
  padding: 12px 22px;
  border-top: 1px solid #e2e8f0;
  background: #f8fafc;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}
