/* JB Membership Plugin Styles */

.jb-form {
  max-width: 400px;
  margin: 20px 0;
  padding: 20px;
  border: 1px solid #ddd;
  border-radius: 8px;
  background: #f9f9f9;
}

.jb-form-group {
  margin-bottom: 15px;
}

.jb-form-group label {
  display: block;
  margin-bottom: 5px;
  font-weight: bold;
  color: #333;
}

.jb-form-group input[type="text"],
.jb-form-group input[type="email"],
.jb-form-group input[type="password"],
.jb-form-group input[type="number"] {
  width: 100%;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 14px;
  box-sizing: border-box;
}

.jb-button {
  padding: 12px 24px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  text-decoration: none;
  display: inline-block;
  text-align: center;
  transition: background-color 0.3s;
}

.jb-button-primary {
  background-color: #0073aa;
  color: white;
}

.jb-button-primary:hover {
  background-color: #005a87;
}

.jb-button-secondary {
  background-color: #666;
  color: white;
}

.jb-button-secondary:hover {
  background-color: #555;
}

/* Messages */
.jb-message {
  padding: 10px;
  margin: 10px 0;
  border-radius: 4px;
}

.jb-success {
  background-color: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.jb-error {
  background-color: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

/* Plans Grid */
.jb-plans-container {
  margin: 20px 0;
}

.jb-plans-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  margin: 20px 0;
}

.jb-plan-card {
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 20px;
  background: white;
  text-align: center;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s, box-shadow 0.3s;
}

.jb-plan-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.jb-plan-header h4 {
  margin: 0 0 15px 0;
  color: #333;
  font-size: 24px;
}

.jb-plan-pricing {
  margin: 15px 0;
}

.jb-actual-price {
  text-decoration: line-through;
  color: #999;
  font-size: 18px;
}

.jb-offer-price {
  font-size: 32px;
  font-weight: bold;
  color: #0073aa;
  margin: 5px 0;
}

/* Download QR button spacing in popup */
#jb-download-qr {
  max-width: 260px;
}

.jb-plan-validity {
  margin: 15px 0;
  color: #666;
}

.jb-plan-action {
  margin-top: 20px;
}

/* Modal Styles */
.jb-modal {
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
}

.jb-modal-content {
  background-color: white;
  margin: 5% auto;
  padding: 20px;
  border-radius: 8px;
  width: 90%;
  max-width: 500px;
  position: relative;
}

.jb-close {
  color: #aaa;
  float: right;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
  position: absolute;
  right: 15px;
  top: 10px;
}

.jb-close:hover {
  color: black;
}

.jb-qr-image {
  max-width: 200px;
  height: auto;
  margin: 20px 0;
}

.jb-payment-details {
  background: #f9f9f9;
  padding: 15px;
  border-radius: 4px;
  margin: 15px 0;
}

.jb-qr-section {
  text-align: center;
  margin: 20px 0;
  padding: 16px;
  background: #f8fafc;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
}

.jb-qr-section h4 {
  margin: 0 0 16px 0;
  color: #1f2937;
  font-size: 18px;
  font-weight: 600;
}

#jb-qr-code-container {
  position: relative;
  min-height: 240px;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  gap: 12px;
  background: white;
  border-radius: 8px;
  padding: 16px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  margin: 16px 0;
}

#jb-transaction-id-label {
  display: none;
  text-align: center;
  font-weight: 500;
  color: #374151;
  font-size: 12px;
  background: #f3f4f6;
  padding: 6px 12px;
  border-radius: 16px;
  border: 1px solid #d1d5db;
}

.jb-qr-image {
  width: 200px;
  height: 200px;
  max-width: 200px;
  margin: 0;
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  border: 2px solid white;
}

#jb-download-qr {
  max-width: 220px;
  margin-top: 12px;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 500;
  background: #6b7280;
  border: none;
  border-radius: 6px;
  color: white;
  transition: all 0.3s ease;
  cursor: pointer;
}

#jb-download-qr:hover {
  background: #4b5563;
  transform: translateY(-1px);
  box-shadow: 0 3px 8px rgba(107, 114, 128, 0.3);
}

.jb-loader {
  display: none;
  color: #6b7280;
  font-size: 14px;
  font-weight: 500;
  position: relative;
  padding-right: 30px;
}

.jb-loader::after {
  content: '';
  position: absolute;
  width: 16px;
  height: 16px;
  margin-left: 8px;
  border: 2px solid #e5e7eb;
  border-top: 2px solid #0073aa;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  top: 50%;
  transform: translateY(-50%);
}

/* User Status */
.jb-active-membership,
.jb-no-membership {
  padding: 20px;
  border: 1px solid #ddd;
  border-radius: 8px;
  background: white;
  margin: 20px 0;
}

.jb-membership-details {
  background: #f0f8ff;
  padding: 15px;
  border-radius: 4px;
  margin: 15px 0;
}

.jb-status-active {
  color: #28a745;
  font-weight: bold;
}

.jb-upgrade-option {
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid #eee;
}

/* Welcome Message */
.jb-welcome-message {
  padding: 15px;
  background: #e7f3ff;
  border: 1px solid #b3d9ff;
  border-radius: 4px;
  margin: 15px 0;
}

.jb-active-plan {
  margin-top: 15px;
  padding: 15px;
  background: white;
  border-radius: 4px;
}

/* Premium Status Styles */
.jb-premium-status {
  text-align: center;
  padding: 30px 20px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border-radius: 12px;
  margin: 20px 0;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.jb-premium-badge {
  display: inline-block;
  background: rgba(255, 255, 255, 0.2);
  padding: 8px 20px;
  border-radius: 25px;
  font-weight: bold;
  font-size: 16px;
  margin-bottom: 15px;
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.jb-premium-status p {
  margin: 8px 0;
  font-size: 16px;
}

.jb-premium-status p:first-of-type {
  font-size: 20px;
  font-weight: bold;
  margin-bottom: 15px;
}

/* Admin Styles */
.jb-admin-dashboard {
  margin: 20px 0;
}

.jb-admin-card {
  background: white;
  padding: 20px;
  border: 1px solid #ccd0d4;
  border-radius: 4px;
  max-width: 100%;
}

.jb-plan-item {
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  padding: 20px;
  margin: 20px 0;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04);
}

/* Admin Plans page polish */
.jb-plan-title {
  margin: 0 0 14px 0;
  padding: 10px 14px;
  background: #eef2ff;
  border-radius: 8px;
  font-weight: 700;
  color: #1f2937;
  display: flex;
  align-items: center;
  gap: 8px;
}

.jb-plan-fields {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.jb-plan-fields .jb-form-group label {
  font-weight: 600;
  color: #111827;
}

/* Improve buttons in plans editor */
.jb-plan-actions .button {
  margin-top: 8px;
}

/* Responsive Design */
@media (max-width: 768px) {
  .jb-plans-grid {
    grid-template-columns: 1fr;
  }

  .jb-form {
    max-width: 100%;
  }

  .jb-modal-content {
    width: 95%;
    margin: 10% auto;
  }

  .jb-auth-tabs {
    flex-direction: column;
  }

  .jb-tab-btn {
    border-bottom: 1px solid #ddd;
    border-right: none;
  }

  .jb-tab-btn.active {
    border-bottom-color: #0073aa;
  }

  .jb-premium-status {
    padding: 20px 15px;
  }
}

/* Form Footer */
.jb-form-footer {
  text-align: center;
  margin-top: 15px;
  padding-top: 15px;
  border-top: 1px solid #eee;
}

.jb-form-footer a {
  color: #0073aa;
  text-decoration: none;
}

.jb-form-footer a:hover {
  text-decoration: underline;
}

/* Upgrade Button Styles */
.jb-upgrade-container {
  text-align: center;
  margin: 20px 0;
}

.jb-upgrade-main-btn {
  font-size: 18px;
  padding: 15px 30px;
  background: linear-gradient(45deg, #0073aa, #005a87);
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 115, 170, 0.3);
}

.jb-upgrade-main-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 115, 170, 0.4);
}

/* Popup Modal Styles */
.jb-upgrade-modal-content {
  max-width: 650px;
  max-height: 90vh;
  overflow-y: auto;
  border-radius: 12px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.25);
}

.jb-popup-step {
  min-height: 400px;
  padding: 6px 0;
}

.jb-popup-header {
  text-align: center;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid #f3f4f6;
  position: relative;
}

.jb-popup-header::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 2px;
  background: #0073aa;
}

.jb-popup-header h3 {
  margin: 0 0 8px 0;
  color: #1f2937;
  font-size: 24px;
  font-weight: 600;
}

.jb-popup-header p {
  margin: 0;
  color: #6b7280;
  font-size: 15px;
  font-weight: 500;
}

#jb-membership-status {
  margin-top: 12px;
}

.jb-current-membership {
  background: #eff6ff;
  padding: 16px;
  border-radius: 8px;
  border: 1px solid #bfdbfe;
  text-align: left;
  margin: 12px 0;
}

.jb-current-membership p {
  margin: 6px 0;
  color: #1e40af;
  font-weight: 500;
  font-size: 14px;
}

.jb-current-membership .jb-upgrade-note {
  color: #0073aa;
  font-weight: 600;
  margin-top: 12px;
  font-style: italic;
}

.jb-no-membership {
  color: #6b7280;
  font-style: italic;
  font-weight: 500;
  margin: 12px 0;
  font-size: 14px;
}

/* Enhanced Premium Status */
.jb-already-premium-content {
  text-align: center;
}

.jb-already-premium-content .jb-premium-badge {
  display: inline-block;
  background: linear-gradient(135deg, #10b981, #059669);
  color: white;
  padding: 12px 24px;
  border-radius: 25px;
  font-weight: bold;
  font-size: 16px;
  margin-bottom: 20px;
  border: 2px solid rgba(16, 185, 129, 0.3);
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.jb-already-premium-content p {
  font-size: 18px;
  color: #374151;
  margin: 16px 0;
  font-weight: 500;
}

#jb-current-membership-details {
  background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
  padding: 20px;
  border-radius: 12px;
  border: 2px solid #bbf7d0;
  margin: 20px 0;
  text-align: left;
}

#jb-current-membership-details .jb-membership-info p {
  margin: 8px 0;
  color: #166534;
  font-weight: 600;
}

#jb-current-membership-details .jb-membership-info strong {
  color: #15803d;
}

/* Auth Tabs */
.jb-auth-tabs {
  display: flex;
  margin-bottom: 20px;
  border-bottom: 1px solid #ddd;
}

.jb-tab-btn {
  flex: 1;
  padding: 12px 20px;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 16px;
  color: #666;
  border-bottom: 2px solid transparent;
  transition: all 0.3s ease;
}

.jb-tab-btn.active {
  color: #0073aa;
  border-bottom-color: #0073aa;
}

.jb-tab-btn:hover {
  color: #0073aa;
}

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

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

/* Popup Forms */
.jb-popup-form {
  max-width: none;
  margin: 0;
  padding: 0;
  border: none;
  background: none;
}

.jb-full-width {
  width: 100%;
  margin-bottom: 10px;
}

/* Popup Plans Grid */
.jb-popup-plans-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
  margin: 20px 0;
}

.jb-popup-plan-card {
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 18px 16px;
  background: white;
  text-align: center;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.jb-plan-card-top-border {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #0073aa, #005a87);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.jb-popup-plan-card:hover .jb-plan-card-top-border {
  transform: scaleX(1);
}

.jb-popup-plan-card .jb-plan-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.jb-discount-badge {
  background: #10b981;
  color: white;
  border: none;
  font-size: 10px;
  font-weight: 600;
  padding: 4px 8px;
  border-radius: 12px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.jb-popup-plan-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 115, 170, 0.12);
  border-color: #0073aa;
}

.jb-popup-plan-card h5 {
  margin: 0;
  color: #1f2937;
  font-size: 18px;
  font-weight: 600;
}

.jb-popup-plan-card .jb-plan-pricing {
  margin: 12px 0;
  padding: 12px 0;
}

.jb-popup-plan-card .jb-actual-price {
  text-decoration: line-through;
  color: #9ca3af;
  font-size: 14px;
  margin-bottom: 4px;
}

.jb-popup-plan-card .jb-offer-price {
  font-size: 28px;
  font-weight: 700;
  color: #0073aa;
  margin: 0;
  line-height: 1;
}

.jb-popup-plan-card .jb-plan-validity {
  margin: 12px 0 16px 0;
  color: #6b7280;
  font-size: 13px;
  font-weight: 500;
}

.jb-popup-plan-card .jb-plan-validity p {
  margin: 0;
  font-weight: 500;
}

.jb-popup-plan-card .jb-plan-action {
  margin-top: 0;
}

.jb-popup-plan-card .jb-button {
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 600;
  border-radius: 6px;
  transition: all 0.3s ease;
}

.jb-popup-plan-card .jb-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(0, 115, 170, 0.3);
}

/* Membership Status */
.jb-current-membership {
  background: #e7f3ff;
  padding: 15px;
  border-radius: 4px;
  margin: 15px 0;
}

.jb-no-membership {
  color: #666;
  font-style: italic;
}

.jb-upgrade-note {
  color: #0073aa;
  font-weight: bold;
  margin-top: 10px;
}

/* Payment Details */
.jb-payment-plan-details {
  background: #f0fdf4;
  padding: 14px;
  border-radius: 8px;
  margin: 16px 0;
  text-align: left;
  border: 1px solid #bbf7d0;
}

.jb-payment-plan-details p {
  margin: 6px 0;
  color: #166534;
  font-weight: 500;
  font-size: 14px;
}

.jb-payment-plan-details p:first-child {
  margin-top: 0;
}

.jb-payment-plan-details strong {
  color: #15803d;
  font-weight: 600;
}

/* Payment Info Styles */
.jb-payment-info {
  background: #eff6ff;
  padding: 16px;
  border-radius: 8px;
  margin: 16px 0;
  border: 1px solid #bfdbfe;
}

.jb-payment-info p:first-child {
  margin-top: 0;
  font-weight: 600;
  color: #1e40af;
  font-size: 15px;
}

.jb-payment-info ol {
  margin: 12px 0;
  padding-left: 20px;
  counter-reset: step-counter;
  list-style: none;
}

.jb-payment-info li {
  margin: 8px 0;
  color: #374151;
  font-weight: 500;
  position: relative;
  padding-left: 6px;
  counter-increment: step-counter;
  font-size: 14px;
}

.jb-payment-info li::before {
  content: counter(step-counter);
  position: absolute;
  left: -26px;
  top: 0;
  background: #3b82f6;
  color: white;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 600;
}

.jb-note {
  background: #fef3c7;
  color: #92400e;
  padding: 12px 16px;
  border-radius: 6px;
  border: 1px solid #f59e0b;
  margin-top: 16px;
  font-size: 13px;
  font-weight: 500;
}

.jb-note::before {
  content: '⚠️';
  margin-right: 6px;
  font-size: 14px;
}

/* Responsive Popup */
@media (max-width: 768px) {
  .jb-upgrade-modal-content {
    width: 95%;
    margin: 5% auto;
    max-height: 95vh;
    padding: 20px;
  }

  .jb-popup-plans-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .jb-popup-plan-card {
    padding: 20px 16px;
  }

  .jb-popup-plan-card .jb-plan-header {
    flex-direction: column;
    gap: 12px;
    align-items: center;
  }

  .jb-qr-section {
    margin: 20px 0;
    padding: 16px;
  }

  #jb-qr-code-container {
    min-height: 240px;
    padding: 16px;
  }

  .jb-qr-image {
    max-width: 200px;
  }

  #jb-download-qr {
    max-width: 240px;
    font-size: 13px;
    padding: 10px 20px;
  }

  .jb-payment-info {
    padding: 16px;
  }

  .jb-payment-info ol {
    padding-left: 20px;
  }

  .jb-payment-info li::before {
    left: -28px;
    width: 20px;
    height: 20px;
    font-size: 11px;
  }

  .jb-auth-tabs {
    flex-direction: column;
  }

  .jb-tab-btn {
    border-bottom: 1px solid #ddd;
    border-right: none;
  }

  .jb-tab-btn.active {
    border-bottom-color: #0073aa;
  }
}

/* Loading States */
.jb-button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  position: relative;
}

.jb-button:disabled::after {
  content: "";
  position: absolute;
  width: 16px;
  height: 16px;
  margin: auto;
  border: 2px solid transparent;
  border-top-color: #ffffff;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

@keyframes spin {
  0% {
    transform: translate(-50%, -50%) rotate(0deg);
  }
  100% {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* Enhanced Admin Styles */
.jb-admin-wrap {
  background: #f1f1f1;
  margin: 20px 0 0 -20px;
  padding: 20px;
  min-height: calc(100vh - 32px);
}

.jb-admin-title {
  background: white;
  margin: 0 0 20px 0;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 24px;
  font-weight: 600;
  color: #23282d;
}

.jb-admin-title .dashicons {
  color: #0073aa;
  font-size: 28px;
}

/* Stats Grid */
.jb-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

.jb-stat-card {
  background: white;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  gap: 15px;
  transition: transform 0.2s, box-shadow 0.2s;
}

.jb-stat-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.jb-stat-icon {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: white;
}

.jb-stat-primary .jb-stat-icon {
  background: #0073aa;
}
.jb-stat-success .jb-stat-icon {
  background: #46b450;
}
.jb-stat-info .jb-stat-icon {
  background: #00a0d2;
}
.jb-stat-warning .jb-stat-icon {
  background: #ffb900;
}
.jb-stat-danger .jb-stat-icon {
  background: #dc3232;
}
.jb-stat-revenue .jb-stat-icon {
  background: #826eb4;
}

.jb-stat-content h3 {
  margin: 0;
  font-size: 28px;
  font-weight: bold;
  color: #23282d;
}

.jb-stat-content p {
  margin: 5px 0 0 0;
  color: #666;
  font-size: 14px;
}

/* Quick Actions */
.jb-quick-actions {
  background: white;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  margin-bottom: 30px;
}

.jb-quick-actions h2 {
  margin: 0 0 15px 0;
  color: #23282d;
}

.jb-action-buttons {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.jb-action-buttons .button {
  display: flex;
  align-items: center;
  gap: 5px;
}

/* Dashboard Columns */
.jb-dashboard-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 30px;
}

.jb-dashboard-column {
  display: flex;
  flex-direction: column;
}

.jb-admin-card {
  background: white;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  flex: 1;
}

.jb-admin-card h3 {
  margin: 0 0 15px 0;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #23282d;
  font-size: 18px;
}

.jb-admin-card h3 .dashicons {
  color: #0073aa;
}

/* Recent Activity */
.jb-recent-list,
.jb-expiring-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.jb-recent-item,
.jb-expiring-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: #f9f9f9;
  border-radius: 6px;
  border-left: 3px solid #0073aa;
}

.jb-recent-avatar,
.jb-expiring-avatar {
  flex-shrink: 0;
}

.jb-recent-avatar img,
.jb-expiring-avatar img {
  border-radius: 50%;
}

.jb-recent-details,
.jb-expiring-details {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.jb-recent-plan,
.jb-expiring-plan {
  color: #0073aa;
  font-size: 13px;
}

.jb-recent-date,
.jb-expiring-date {
  color: #666;
  font-size: 12px;
}

.jb-expiring-actions {
  flex-shrink: 0;
}

/* Filters */
.jb-filters {
  background: white;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  margin-bottom: 20px;
}

.jb-filter-form {
  display: flex;
  gap: 15px;
  align-items: end;
  flex-wrap: wrap;
}

.jb-filter-group {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.jb-filter-group label {
  font-weight: 600;
  color: #23282d;
  font-size: 13px;
}

/* Results Info */
/* Results Info Enhanced */
.jb-results-info {
  background: white;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  margin-bottom: 20px;
}

.jb-results-stats {
  display: flex;
  gap: 30px;
  align-items: center;
  flex-wrap: wrap;
}

.jb-result-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  min-width: 120px;
}

.jb-result-stat strong {
  font-size: 18px;
  color: #0073aa;
  margin-bottom: 4px;
}

.jb-result-stat span {
  color: #666;
  font-size: 13px;
}

/* Amount Column */
.jb-col-amount {
  width: 120px;
}

.jb-amount {
  color: #46b450;
  font-size: 16px;
}

.jb-results-info {
  background: white;
  padding: 15px 20px;
  border-radius: 8px 8px 0 0;
  border-bottom: 1px solid #ddd;
  margin-bottom: 0;
}

.jb-results-info p {
  margin: 0;
  color: #666;
  font-size: 14px;
}

/* Table Container */
.jb-table-container {
  background: white;
  border-radius: 0 0 8px 8px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.jb-members-table {
  margin: 0;
  border: none;
}

.jb-members-table th {
  background: #f8f9fa;
  font-weight: 600;
  color: #23282d;
  border-bottom: 2px solid #ddd;
}

.jb-member-row.jb-expired {
  background: #fff5f5;
}

.jb-user-cell {
  display: flex;
  align-items: center;
  gap: 12px;
}

.jb-user-cell img {
  border-radius: 50%;
}

.jb-user-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.jb-user-email {
  color: #666;
  font-size: 13px;
}

.jb-user-login {
  color: #999;
  font-size: 12px;
}

.jb-dates {
  font-size: 13px;
}

.jb-dates div {
  margin-bottom: 4px;
}

.jb-status {
  padding: 4px 8px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
}

.jb-status-active {
  background: #d4edda;
  color: #155724;
}

.jb-status-expired {
  background: #f8d7da;
  color: #721c24;
}

.jb-action-buttons {
  display: flex;
  gap: 5px;
}

/* Add Member Form */
.jb-add-member-form {
  max-width: 600px;
}

.jb-form-row {
  margin-bottom: 20px;
}

.jb-form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.jb-form-group label {
  font-weight: 600;
  color: #23282d;
}

.jb-form-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid #ddd;
}

/* User Search */
.jb-search-results {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: white;
  border: 1px solid #ddd;
  border-top: none;
  border-radius: 0 0 4px 4px;
  max-height: 200px;
  overflow-y: auto;
  z-index: 1000;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.jb-search-result-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  cursor: pointer;
  border-bottom: 1px solid #f0f0f0;
}

.jb-search-result-item:hover {
  background: #f8f9fa;
}

.jb-search-result-item:last-child {
  border-bottom: none;
}

.jb-user-avatar img {
  border-radius: 50%;
}

.jb-user-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.jb-user-info span {
  color: #666;
  font-size: 13px;
}

.jb-user-info small {
  color: #999;
  font-size: 12px;
}

.jb-selected-user-card {
  background: #e7f3ff;
  padding: 10px;
  border-radius: 4px;
  border: 1px solid #b3d9ff;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.jb-clear-selection {
  background: none;
  border: none;
  font-size: 18px;
  cursor: pointer;
  color: #666;
  padding: 0;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.jb-clear-selection:hover {
  color: #dc3232;
}

/* Modal Styles */
.jb-modal {
  position: fixed;
  z-index: 100000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
}

.jb-modal-content {
  background-color: white;
  margin: 5% auto;
  padding: 30px;
  border-radius: 8px;
  width: 90%;
  max-width: 500px;
  position: relative;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.jb-close {
  color: #aaa;
  float: right;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
  position: absolute;
  right: 15px;
  top: 15px;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.2s;
}

.jb-close:hover {
  background: #f0f0f0;
  color: #333;
}

/* Reports */
.jb-reports-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 20px;
}

.jb-report-card {
  background: white;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.jb-report-card h3 {
  background: #f8f9fa;
  margin: 0;
  padding: 15px 20px;
  border-bottom: 1px solid #ddd;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #23282d;
}

.jb-report-card h3 .dashicons {
  color: #0073aa;
}

.jb-report-content {
  padding: 20px;
}

.jb-retention-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}

.jb-retention-item {
  text-align: center;
  padding: 15px;
  background: #f8f9fa;
  border-radius: 6px;
}

.jb-retention-item strong {
  display: block;
  font-size: 24px;
  color: #0073aa;
  margin-bottom: 5px;
}

.jb-retention-item span {
  color: #666;
  font-size: 13px;
}

/* Pagination */
.jb-pagination {
  background: white;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  margin-top: 20px;
  text-align: center;
}

.jb-pagination .page-numbers {
  display: inline-block;
  padding: 8px 12px;
  margin: 0 2px;
  text-decoration: none;
  border: 1px solid #ddd;
  border-radius: 4px;
  color: #0073aa;
}

.jb-pagination .page-numbers:hover,
.jb-pagination .page-numbers.current {
  background: #0073aa;
  color: white;
  border-color: #0073aa;
}

/* No Results */
.jb-no-results {
  background: white;
  padding: 40px;
  text-align: center;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.jb-no-results p {
  color: #666;
  font-size: 16px;
  margin: 0;
}

/* Responsive Design */
@media (max-width: 1200px) {
  .jb-dashboard-columns {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .jb-admin-wrap {
    margin: 10px 0 0 -10px;
    padding: 10px;
  }

  .jb-stats-grid {
    grid-template-columns: 1fr;
  }

  .jb-filter-form {
    flex-direction: column;
    align-items: stretch;
  }

  .jb-action-buttons {
    flex-direction: column;
  }

  .jb-reports-grid {
    grid-template-columns: 1fr;
  }

  .jb-user-cell {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .jb-members-table .jb-col-actions {
    text-align: left;
  }

  .jb-modal-content {
    width: 95%;
    margin: 10% auto;
    padding: 20px;
  }
}

/* Loading States */
.jb-loading {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid #f3f3f3;
  border-top: 3px solid #0073aa;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* Success/Error Messages */
.jb-admin-notice {
  background: white;
  padding: 15px 20px;
  border-radius: 8px;
  margin-bottom: 20px;
  border-left: 4px solid #46b450;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.jb-admin-notice.error {
  border-left-color: #dc3232;
}

.jb-admin-notice p {
  margin: 0;
  color: #23282d;
}

/* Amount Column */
.jb-col-amount {
  width: 120px;
}

.jb-amount {
  color: #46b450;
  font-size: 16px;
}

/* Recent Activity Enhanced */
.jb-recent-amount,
.jb-expiring-amount {
  color: #46b450;
  font-weight: bold;
  font-size: 12px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .jb-results-stats {
    flex-direction: column;
    gap: 15px;
  }

  .jb-result-stat {
    min-width: auto;
    width: 100%;
  }
}

/* Special Offer Popup */
.jbp-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
}

.jbp-popup-content {
    background: #fff;
    padding: 20px;
    border-radius: 5px;
    position: relative;
    text-align: center;
}

.jbp-close-popup {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
}