.bb-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 24px;
}

.bb-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 12px;
}

.bb-header-left h2 {
  font-size: 16px;
  font-weight: 700;
  color: #111827;
  display: inline-block;
  margin-right: 8px;
}

.bb-breadcrumb {
  font-size: 11px;
  color: #6b7280;
  display: inline-block;
}

.bb-breadcrumb a {
  color: #6b7280;
  text-decoration: none;
}

.bb-breadcrumb a:hover {
  text-decoration: underline;
}

.bb-btn-outline {
  border: 1px solid #e5e7eb;
  background: #fff;
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
  color: #374151;
  cursor: pointer;
  transition: 0.2s;
}

.bb-btn-outline:hover {
  background: #f9fafb;
}

.bb-btn-primary {
  background: #3b82f6;
  border: none;
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
  color: #fff;
  cursor: pointer;
  transition: 0.2s;
}

.bb-btn-primary:hover {
  background: #2563eb;
}

.bb-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 24px;
}

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

/* Cards */
.bb-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 24px;
}

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

.bb-card-title {
  font-size: 14px;
  font-weight: 700;
  color: #111827;
}

.bb-card-subtitle {
  font-size: 12px;
  color: #6b7280;
}

.bb-badge {
  background: #dcfce7;
  color: #166534;
  font-size: 10px;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 4px;
  margin-left: 8px;
  text-transform: capitalize;
}

.bb-badge-pending {
  background: #fef9c3;
  color: #854d0e;
}

.bb-badge-canceled {
  background: #f3f4f6;
  color: #374151;
}

/* Plan Card */
.bb-plan-stats {
  display: flex;
  gap: 40px;
  margin: 24px 0;
  flex-wrap: wrap;
}

.bb-stat-item {
  display: flex;
  flex-direction: column;
}

.bb-stat-value {
  font-size: 14px;
  font-weight: 700;
  color: #111827;
  margin-bottom: 4px;
}

.bb-stat-label {
  font-size: 11px;
  color: #6b7280;
}

.bb-progress-container {
  margin-top: 24px;
}

.bb-progress-label {
  font-size: 11px;
  color: #6b7280;
  margin-bottom: 8px;
}

.bb-progress-bar {
  width: 100%;
  height: 4px;
  background: #e5e7eb;
  border-radius: 2px;
  overflow: hidden;
}

.bb-progress-fill {
  height: 100%;
  background: #3b82f6;
  width: 80%;
  border-radius: 2px;
}

/* Payment Methods */
.bb-payment-method {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  margin-bottom: 12px;
}

.bb-payment-method:last-child {
  margin-bottom: 0;
}

.bb-pm-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.bb-pm-icon {
  width: 40px;
  height: 28px;
  background: #f9fafb;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #e5e7eb;
}

.bb-pm-info h4 {
  font-size: 12px;
  font-weight: 600;
  color: #111827;
  margin-bottom: 2px;
}

.bb-pm-info p {
  font-size: 11px;
  color: #6b7280;
}

.bb-pm-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.bb-pm-btn {
  color: #9ca3af;
  cursor: pointer;
  transition: 0.15s;
}

.bb-pm-btn:hover {
  color: #374151;
}

/* Billing Details */
.bb-detail-row {
  display: flex;
  margin-bottom: 12px;
}

.bb-detail-row:last-child {
  margin-bottom: 0;
}

.bb-detail-label {
  width: 150px;
  font-size: 12px;
  font-weight: 600;
  color: #374151;
}

.bb-detail-value {
  flex: 1;
  font-size: 12px;
  color: #111827;
}

/* Table */
.bb-table-wrapper {
  overflow-x: auto;
}

.bb-table {
  width: 100%;
  border-collapse: collapse;
}

.bb-table th {
  text-align: left;
  font-size: 11px;
  font-weight: 600;
  color: #6b7280;
  padding: 12px 16px;
  border-bottom: 1px dashed #e5e7eb;
}

.bb-table td {
  padding: 16px;
  font-size: 12px;
  color: #111827;
  border-bottom: 1px dashed #e5e7eb;
}

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

.bb-table-link {
  color: #3b82f6;
  text-decoration: none;
  font-weight: 600;
}

.bb-table-link:hover {
  text-decoration: underline;
}

.bb-view-all {
  text-align: center;
  margin-top: 16px;
}

.bb-view-all a {
  font-size: 12px;
  font-weight: 600;
  color: #3b82f6;
  text-decoration: none;
}

.bb-view-all a:hover {
  text-decoration: underline;
}

/* Right Sidebar Cards */
.bb-sidebar-card {
  margin-bottom: 30px;
}

.bb-sb-icon {
  width: 40px;
  height: 40px;
  background: #eff6ff;
  color: #3b82f6;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  margin-bottom: 16px;
}

.bb-sb-title {
  font-size: 13px;
  font-weight: 700;
  color: #111827;
  margin-bottom: 8px;
  line-height: 1.4;
}

.bb-sb-desc {
  font-size: 11px;
  color: #6b7280;
  margin-bottom: 12px;
  line-height: 1.5;
}

.bb-sb-link {
  font-size: 10px;
  font-weight: 700;
  color: #3b82f6;
  text-transform: uppercase;
  text-decoration: none;
  letter-spacing: 0.5px;
}

.bb-sb-link:hover {
  text-decoration: underline;
}
