/* Global/Reset */
.jorgecastro-wrap {
  margin: 0;
  padding: 0 20px 0 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

/* Utility Classes - WordPress compliant (no inline styles) */
.jorgecastro-hidden {
  display: none !important;
}

.jorgecastro-flex-center {
  display: flex;
  align-items: center;
  gap: 8px;
}

.jorgecastro-inline-flex-center {
  margin-right: 4px;
  display: inline-flex;
  align-items: center;
}

.jorgecastro-badge-icon {
  font-size: 16px;
  margin-left: 4px;
}

.jorgecastro-icon-18 {
  font-size: 18px;
  width: 18px;
  height: 18px;
}

/* Header Styles */
.jorgecastro-header-new {
  background: #ffffff;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 20px 24px 24px;
  border-bottom: 1px solid #e0e0e0;
  margin: 0 0 32px 0;
  margin-left:-24px;
}

/* Dashboard: transparent header in Content Dashboard area */
.jorgecastro-page-dashboard .jorgecastro-header-new {
  background: transparent;
  border-bottom-color: transparent;
}

.jorgecastro-title-row {
  display: flex;
  align-items: center;
  gap: 12px;  
}

.jorgecastro-main-title {
  font-size: 23px;
  font-weight: 600 !important;
  padding-top: 0px !important;
  color: #1e1e2f;
  margin: 0;
  padding: 0;
  line-height: 1.3;
}

.jorgecastro-status-badge {
  display: flex;
  align-items: center;
  gap: 5px;
  background: linear-gradient(to right, #00C950, #00BC7D);
  color: #fff;
  font-size: 10px;
  font-weight: 500;
  text-transform: uppercase;
  padding: 5px 8px;
  border-radius: 12px;
  letter-spacing: 0.5px;
  line-height: 1.5;
}

.jorgecastro-sub-title {
  font-size: 14px;
  color: #6b7280;
  margin: 0;
  font-weight: 400;
}

.jorgecastro-body {
  max-width: 100%;
  padding-right: 20px;
}

/* Main Container */
.ml-main-container {
  width: 100%;
  max-width: 100%;
  animation: ml-fade-in 0.5s ease-out;
}

@keyframes ml-fade-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Main Status Card (Purple) */
.ml-status-card-new {
  background-color: #9827fc;
  border-radius: 16px;
  color: #ffffff;
  padding: 0;
  overflow: hidden;
  margin-bottom: 30px;
  box-shadow: 0 10px 25px rgba(152, 39, 252, 0.25);
  position: relative;
}

.ml-status-card-content {
  padding: 36px 40px;
  display: flex;
  align-items: flex-start;
  gap: 24px;
}

.ml-status-icon-wrapper {
  background: #ffffff;
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.ml-icon-status {
  font-size: 28px;
  font-weight: bold;
  color: #9827fc;
}

.ml-status-text {
  flex: 1;
}

.ml-status-heading {
  font-size: 26px;
  font-weight: 700;
  margin: 0 0 10px 0;
  color: #ffffff;
}

.ml-status-subtext {
  font-size: 15px;
  margin: 0 0 28px 0;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.6;
  max-width: 800px;
}

.ml-status-action-row {
  margin-top: 4px;
}

/* Pill Button */
.ml-btn-pill {
  background: #ffffff;
  color: #9827fc;
  padding: 12px 28px;
  border-radius: 50px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: all 0.2s ease;
  border: 1px solid transparent;
}

.ml-btn-pill:hover,
.ml-btn-pill:focus {
  background: #f0f0f1;
  color: #8200db;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  text-decoration: none;
}

.ml-btn-icon-globe {
  font-size: 18px;
  display: inline-flex;
  align-items: center;
}

.ml-btn-icon-globe .dashicons {
  font-size: 18px;
  width: 18px;
  height: 18px;
}

.ml-btn-arrow {
  margin-left: 4px;
  font-size: 16px;
}

/* SEO HR Divider */
.ml-seo-hr-divider {
  padding: 0 40px;
}

.ml-seo-hr {
  margin: 0;
  border: none;
  border-top: 1px solid rgba(255, 255, 255, 0.3);
  height: 0;
}

/* SEO Status Bar */
.ml-seo-status-bar {
  padding: 20px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.ml-seo-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.ml-seo-icon-box {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ml-seo-icon-box .dashicons {
  font-size: 28px;
  width: 28px;
  height: 28px;
}

.ml-seo-img-status-error {
  color: #ef4444;
  font-weight: bold;
  font-size: 24px;
}

.ml-seo-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.ml-seo-label {
  font-size: 14px;
  font-weight: 500;
  color: #ffffff;
}

.ml-seo-desc {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1;
}

.ml-seo-label-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.ml-seo-plugin-icons {
  display: flex;
  align-items: center;
  gap: 8px;
}

.ml-seo-plugin-icon-wrapper {
  position: relative;
  display: inline-block;
}

.ml-seo-plugin-icon {
  height: 40px;
  object-fit: contain;
  display: block;
  background: #ffffff;
  border-radius: 8px;
  padding: 4px;
  box-sizing: border-box;
  width: 45px;
  transition: opacity 0.3s ease;
}



.ml-seo-plugin-icon-wrapper.ml-seo-plugin-active .ml-seo-plugin-icon {
  opacity: 1;
  box-shadow: 0 0 0 2px rgba(0, 201, 80, 0.3);
}

.ml-seo-checkmark {
  position: absolute;
  top: -4px;
  right: -4px;
  width: 18px;
  height: 18px;
  background: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  z-index: 10;
}

.ml-seo-checkmark svg {
  width: 14px;
  height: 14px;
  display: block;
}

.ml-seo-exclamation-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
  font-size: 12px;
  font-weight: bold;
  line-height: 1;
  margin-left: 0px;
}

.ml-btn-glass {
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
  text-decoration: none;
  padding: 8px 18px;
  border-radius: 24px;
  font-size: 13px;
  font-weight: 600;
  transition: all 0.2s;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.ml-btn-glass:hover {
  background: rgba(255, 255, 255, 0.3);
  color: #ffffff;
  text-decoration: none;
  border-color: rgba(255, 255, 255, 0.3);
}

/* Quick Actions Section */
.ml-quick-actions-section {
  margin-top: 40px;
}

.ml-section-heading {
  font-size: 19px;
  font-weight: 600;
  color: #1d2327;
  margin: 0 0 24px 0;
}

.ml-quick-actions-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.ml-action-card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
}

.ml-action-card:hover {
  border-color: #9827fc;
  box-shadow: 0 6px 20px rgba(152, 39, 252, 0.12);
  transform: translateY(-4px);
}

/* Disabled Quick Action cards – blur and not clickable */
.ml-action-card.ml-action-disabled {
  pointer-events: none;
  cursor: default;
  opacity: 0.6;
  filter: blur(2px);
}

.ml-action-card.ml-action-disabled:hover {
  transform: none;
  border-color: inherit;
  box-shadow: none;
}

.ml-action-icon-box {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}

.ml-icon-purple {
  background: #9827FC;
  color: #ffffff !important;
  box-shadow: 0 6px 14px rgba(137, 49, 244, 0.35),
              0 10px 20px rgba(137, 49, 244, 0.25);
}

.ml-icon-blue {
  background: #2270fd;
  color: #ffffff;
  box-shadow: 0 6px 14px rgba(34, 112, 253, 0.35),
              0 10px 20px rgba(34, 112, 253, 0.25);
}

.ml-icon-green {
  background: #10b981;
  color: #ffffff;
  box-shadow: 0 6px 14px rgba(16, 185, 129, 0.35),
              0 10px 20px rgba(16, 185, 129, 0.25);
}

.ml-icon-orange {
  background: #f97316;
  color: #ffffff;
  box-shadow: 0 6px 14px rgba(249, 115, 22, 0.35),
              0 10px 20px rgba(249, 115, 22, 0.25);
}

.ml-action-icon-box .dashicons {
  font-size: 32px;
  width: 32px;
  height: 32px;
  color: inherit;
}

.ml-action-title {
  color: #111827;
  font-size: 17px;
  font-weight: 600;
  margin: 0 0 8px 0;
}

.ml-action-desc {
  color: #6b7280;
  font-size: 14px;
  margin: 0;
  line-height: 1.5;
}


.ml-action-card:nth-child(1) {
  border-color: #FFE4D6; /* orange - Create Content */
}

.ml-action-card:nth-child(2) {
  border-color: #E9D4FF; /* purple - Connection */
}

.ml-action-card:nth-child(3) {
  border-color: #BEDBFF; /* blue - Settings */
}

.ml-action-card:nth-child(4) {
  border-color: #B9F8CF; /* green - Visit Application */
}



/* Responsive */
@media (max-width: 1200px) {
  .ml-quick-actions-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 782px) {
  .jorgecastro-header-new {
    padding: 20px 0;
    margin-bottom: 24px;
  }

  .jorgecastro-main-title {
    font-size: 20px;
  }

  .ml-status-card-content {
    flex-direction: column;
    padding: 28px 24px;
    text-align: center;
    align-items: center;
  }

  .ml-status-heading {
    font-size: 22px;
  }

  .ml-status-subtext {
    font-size: 14px;
    margin-bottom: 24px;
  }

  .ml-seo-status-bar {
    flex-direction: column;
    gap: 16px;
    padding: 16px 24px;
    text-align: center;
  }

  .ml-seo-left {
    flex-direction: column;
    gap: 10px;
  }

  .ml-quick-actions-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .ml-action-card {
    padding: 24px 20px;
  }

  .ml-section-heading {
    font-size: 17px;
    margin-bottom: 16px;
  }
}

@media (max-width: 600px) {
  .jorgecastro-title-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
}

/* Messages */
.jorgecastro_msg {
  margin: 0 0 20px 0;
  padding: 0;
}

.jorgecastro_msg .notice {
  margin: 0 0 16px 0;
  border-radius: 6px;
}

/* Toast Notifications */
.ml-toast-container {
  position: fixed;
  top: 32px;
  right: 20px;
  z-index: 999999;
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 400px;
  pointer-events: none;
}

.ml-toast {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 320px;
  max-width: 400px;
  pointer-events: auto;
  animation: ml-toast-slide-in 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  border-left: 4px solid;
  position: relative;
  overflow: hidden;
}

.ml-toast::before {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  height: 4px;
  background: currentColor;
  width: 100%;
  animation: ml-toast-progress 5s linear;
}

.ml-toast-success {
  border-color: #46b450;
  color: #1e1e1e;
}

.ml-toast-success .ml-toast-icon {
  background: #46b450;
  color: #fff;
}

.ml-toast-error {
  border-color: #dc3232;
  color: #1e1e1e;
}

.ml-toast-error .ml-toast-icon {
  background: #dc3232;
  color: #fff;
}

.ml-toast-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: bold;
  flex-shrink: 0;
}

.ml-toast-content {
  flex: 1;
  min-width: 0;
}

.ml-toast-title {
  font-size: 15px;
  font-weight: 600;
  margin: 0 0 4px 0;
  color: #1e1e1e;
  line-height: 1.4;
}

.ml-toast-message {
  font-size: 13px;
  margin: 0;
  color: #646970;
  line-height: 1.5;
}

.ml-toast-close {
  background: transparent;
  border: none;
  color: #787c82;
  cursor: pointer;
  font-size: 20px;
  line-height: 1;
  padding: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  transition: all 0.2s;
  flex-shrink: 0;
  margin-left: 8px;
}

.ml-toast-close:hover {
  background: #f0f0f1;
  color: #1e1e1e;
}

.ml-toast.hiding {
  animation: ml-toast-slide-out 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes ml-toast-slide-in {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes ml-toast-slide-out {
  from {
    transform: translateX(0);
    opacity: 1;
  }
  to {
    transform: translateX(100%);
    opacity: 0;
  }
}

@keyframes ml-toast-progress {
  from {
    width: 100%;
  }
  to {
    width: 0%;
  }
}

@media (max-width: 782px) {
  .ml-toast-container {
    right: 10px;
    left: 10px;
    max-width: none;
  }

  .ml-toast {
    min-width: auto;
    max-width: none;
  }
}

/* --- New Popup Styles --- */

.cg-popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(2px);
  z-index: 99999; /* High z-index to overlay everything including admin menu */
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
}

.cg-popup-enhanced {
  max-width: 600px;

  width: 90%;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
  overflow: hidden;
  font-family: "Inter", sans-serif;
  background: #fff;
  animation: ml-popup-slide-in 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative; /* Default context */
  box-sizing: border-box;
}

.cg-popup-enhanced * {
  box-sizing: border-box;
}

@keyframes ml-popup-slide-in {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.cg-popup-header-new {
  padding: 24px 32px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  border-bottom: none;
  background: #fefcff;
  border-bottom: 1px solid #e9d5ff;
}

.cg-popup-title-new {
  font-size: 20px;
  font-weight: 700;
  color: #111827;
  margin: 0 0 6px 0;
}

.cg-popup-subtitle-new {
  font-size: 14px;
  color: #6b7280;
  margin: 0;
}

.cg-popup-close-x {
  background: none;
  border: none;
  font-size: 20px;
  color: #9ca3af;
  cursor: pointer;
  padding: 4px;
  line-height: 1;
  transition: color 0.2s;
}

.cg-popup-close-x:hover {
  color: #4b5563;
}

.cg-popup-body-new {
  padding: 0px 32px 32px 32px;
}

/* Instructions Box */
.cg-instructions-box {
  background: #fdfbff; /* Very light purple */
  border: 1px solid #e9d5ff; /* Light purple border */
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 24px;
  margin-top: 24px;
}

.cg-instructions-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  color: #7e22ce; /* Purple text */
}

.cg-icon-info-circle {
  font-weight: bold;
  font-size: 16px;
}

.cg-instructions-header h4 {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  color: #111827;
}

.cg-steps-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.cg-steps-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 12px;
  font-size: 14px;
  color: #374151;
  line-height: 1.5;
}

.cg-steps-list li:last-child {
  margin-bottom: 0;
}

.cg-step-number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  background: #9333ea; /* Purple circle */
  color: #fff;
  border-radius: 50%;
  font-size: 11px;
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 1px;
}

/* Warning Box */
.cg-warning-box {
  background: #fffbef; /* Light Yellow */
  border: 1px solid #fde68a; /* Yellow border */
  border-radius: 12px;
  padding: 16px;
  display: flex;
  gap: 14px;
  margin-bottom: 24px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
}

.cg-warning-icon {
  width: 34px;
  height: 34px;
  background: linear-gradient(135deg, #F0B100 0%, #FF6900 100%);
  color: #fff;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 16px;
  flex-shrink: 0;

  box-shadow:
    0 4px 8px rgba(255, 105, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.25);
}


.cg-warning-content strong {
  display: block;
  color: #111827;
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 2px;
}

.cg-warning-content p {
  margin: 0;
  color: #4b5563;
  font-size: 13px;
}

/* Input Styles */
.cg-input-group {
  margin-bottom: 20px;
}

.cg-input-label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: #374151;
  margin-top:5px;
  margin-bottom: 5px;
}

.cg-modern-input {
  width: 100%;
  border-radius: 20px  !important;
  padding: 6px 10px !important;
  border: 1px solid #d1d5db;
  font-size: 14px;
  color: #111827;
  outline: none;
  transition: all 0.2s;
  background: #fff;
}

.cg-modern-input:focus {
  border-color: #9333ea;
  box-shadow: 0 0 0 3px rgba(147, 51, 234, 0.1);
}

/* Footer */
.cg-popup-footer-new {
  padding: 24px 32px;
  border-top: 1px solid #f3f4f6;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #fafafd;
}

.cg-btn-text {
  background: none;
  border: none;
  font-weight: 600;
  color: #4b5563;
  cursor: pointer;
  font-size: 14px;
  padding: 8px 16px;
  border-radius: 6px;
  transition: background 0.2s;
}

.cg-btn-text:hover {
  background: #f3f4f6;
  color: #111827;
}

.cg-btn-purple-pill {
  background: #c4b5fd;
  color: #fff;
  border: none;
  padding: 12px 28px;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 600;
  cursor: not-allowed;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(124, 58, 237, 0.15);
}

.cg-btn-purple-pill:disabled {
  background: #c4b5fd;
  opacity: 0.6;
  box-shadow: 0 2px 8px rgba(124, 58, 237, 0.15);
}

.cg-btn-purple-pill:not(:disabled) {
  background: linear-gradient(135deg, #9827FC 0%, #7C3AED 100%);
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(124, 58, 237, 0.35);
}

.cg-btn-purple-pill:not(:disabled):hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(147, 51, 234, 0.4);
}

.cg-btn-arrow {
  font-size: 16px;
}

/* Error Message */
.cg-error-message {
  margin-top: 10px;
  padding: 10px;
  background: #fef2f2;
  color: #ef4444;
  border-radius: 8px;
  font-size: 13px;
  border: 1px solid #fee2e2;
}

/* --- Connected State Support --- */

/* Connected Green Card */
.ml-status-card-new.connected-green {
  background: #00c853; /* Vibrant Green */
  background: linear-gradient(
    135deg,
    #00c853 0%,
    #00acc1 100%
  ); /* Green gradient */
  color: #fff;
}

.ml-icon-check-circle-green {
  color: #00c853;
  font-size: 24px;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-weight: bold;
}

.ml-btn-glass-green {
  display: inline-flex;
  align-items: center;
  padding: 10px 24px;
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  border-radius: 50px;
  font-size: 13px;
  transition: all 0.2s ease;
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.ml-btn-glass-green:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: translateY(-1px);
  color: #fff;
}

/* Quick Actions White Box Wrapper */
.ml-quick-actions-section.box-white {
  background: #fff;
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05),
    0 2px 4px -1px rgba(0, 0, 0, 0.03);
  margin-top: 32px;
}

.ml-quick-actions-section.box-white .ml-section-heading {
  margin-top: 0;
  margin-bottom: 24px;
  padding-left: 0;
  color: #111827;
}

/* Header Connected Button */
.jorgecastro-connected-badge-btn {
  display: inline-flex;
  align-items: center;
  padding: 8px 16px;
  background: #fff;
  border: 1px solid #B9F8CF;
  border-radius: 13px;
  font-size: 13px;
  color: #059669;
  font-weight: 600;
  cursor: default;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.jorgecastro-dot-indicator {
  width: 8px;
  box-shadow: 0 6px 12px rgba(8, 92, 64, 0.5), 0 10px 20px rgba(8, 92, 64, 0.35);
  height: 8px;
  background: #10b981;
  border-radius: 50%;
  margin-right: 8px;
  display: inline-block;
}

.jorgecastro-header-actions {
  display: flex;
  align-items: center;
}

/* --- Manage Connection Popup Styles --- */

/* Success Box */
.cg-success-box {
  background: #ecfdf5; /* Light green */
  border: 1px solid #a7f3d0;
  border-radius: 12px;
  padding: 16px;
  display: flex;
  gap: 14px;
  margin-bottom: 24px;
  margin-top: 24px;
  align-items: flex-start;
}

.cg-success-icon-wrapper {
  background: linear-gradient(to right, #00C950, #009966);
  color: #fff;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.cg-success-icon-wrapper .dashicons {
  font-size: 18px;
  width: 18px;
  height: 18px;
}

.cg-success-content strong {
  display: block;
  color: #065f46;
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 2px;
}

.cg-success-content p {
  margin: 0;
  color: #047857;
  font-size: 13px;
}

/* Input Fields for Manage Popup */
.cg-label-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.cg-show-key-toggle {
  background: none;
  border: none;
  color: #9333ea;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 0;
}

.cg-show-key-toggle:hover {
  text-decoration: underline;
}

.cg-input-wrapper-pill {
  position: relative;
  width: 100%;
}

.cg-modern-input-readonly {
  width: 100%;
  padding: 12px 40px 12px 16px; /* Space for copy button */
  border: 1px solid #e5e7eb;
  border-radius: 50px;
  font-size: 14px;
  color: #374151;
  background: #f9fafb;
  outline: none;
  font-family: monospace;
  letter-spacing: 1px;
}

.cg-copy-btn {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: #9ca3af;
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s;
}

.cg-copy-btn:hover {
  color: #4b5563;
}

.cg-input-hint {
  font-size: 11px;
  color: #9ca3af;
  margin: 6px 0 20px 0;
}

/* Action Stack Buttons */
.cg-action-stack {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cg-stack-btn {
  display: flex;
  align-items: center;
  width: 100%;
  padding: 16px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  cursor: pointer;
  text-align: left;
  transition: all 0.2s;
  gap: 16px;
}

.cg-stack-btn:hover {
  border-color: #d1d5db;
  background: #f9fafb;
  transform: translateY(-1px);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.cg-stack-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.cg-stack-icon.blue {
  background: linear-gradient(to right, #2B7FFF, #155DFC);
  box-shadow: 0 6px 10px 0 rgba(21, 93, 252, 0.5); /* bottom spread resembles gradient end color */

  color: white;
}

.cg-stack-icon.red {
  background: linear-gradient(to right, #FB2C36, #E7000B);
  color: white;
  box-shadow: 0 6px 10px 0 rgba(231, 0, 11, 0.5); /* bottom spread resembles gradient end color */

}

.cg-stack-icon .dashicons {
  font-size: 20px;
  width: 20px;
  height: 20px;
}

.cg-stack-text {
  flex: 1;
}

.cg-stack-text strong {
  display: block;
  font-size: 14px;
  color: #111827;
  margin-bottom: 2px;
}

.cg-stack-text p {
  margin: 0;
  font-size: 12px;
  color: #6b7280;
}

.cg-stack-arrow {
  color: #9ca3af;
  font-size: 18px;
}

.cg-stack-btn.danger:hover .cg-stack-text strong {
  color: #ef4444;
}

/* --- Inline Update Key Styles --- */

.cg-inline-update-box {
  background: #fff;
  border: 1px solid #3b82f6; /* Blue border when active */
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.1);
  animation: ml-fade-in 0.3s ease-out;
  margin-bottom: 12px;
}

.cg-update-header {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 16px;
}

.cg-stack-icon.small {
  width: 32px;
  height: 32px;
}

.cg-stack-icon.small .dashicons {
  font-size: 18px;
  width: 18px;
  height: 18px;
}

.cg-update-title strong {
  display: block;
  font-size: 14px;
  color: #111827;
  margin-bottom: 2px;
}

.cg-update-title p {
  margin: 0;
  font-size: 12px;
  color: #6b7280;
}

.cg-input-group.no-margin {
  margin-bottom: 16px;
}

.cg-update-actions {
  display: flex;
  gap: 10px;
}

.cg-btn-blue-pill {
  background: #3b82f6;
  color: #fff;
  border: none;
  width: 80%;
  padding: 10px 24px;
  border-radius: 50px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s;
  flex: 2;
  justify-content: center;
}

.cg-btn-blue-pill:hover {
  background: #2563eb;
  transform: translateY(-1px);
}

.cg-btn-blue-pill:disabled,
.cg-btn-blue-pill.cg-btn-disabled {
  background: #85aefe;
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.cg-btn-blue-pill:disabled:hover,
.cg-btn-blue-pill.cg-btn-disabled:hover {
  background: #85aefe;
  transform: none;
}

.cg-btn-text-cancel {
  background: #f3f4f6;
  width: 20%;
  color: #4b5563;
  border: 1px solid #e5e7eb;
  padding: 10px 0px;
  border-radius: 50px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  flex: 1;
}

.cg-btn-text-cancel:hover {
  background: #e5e7eb;
  color: #1f2937;
}

.ml-action-card:nth-child(1) .dashicons-edit {
  color: white !important; /* orange - Create Content */
}

.ml-action-card:nth-child(2) .dashicons-admin-site-alt3 {
  color: white !important; /* purple - Connection */
}

.ml-action-card:nth-child(3) .dashicons-admin-settings {
  color: white !important; /* blue - Settings */
}

.ml-action-card:nth-child(4) .dashicons-external {
  color: white !important; /* green - Visit Application */
}
#cg_current_api_key{
  border-radius: 25px;
    padding: 6px 11px;
    padding-right: 50px;
    background: white;
}
#cg-update-key-btn{
  border-color: #BEDBFF !important;
}
#cg-disconnect-btn{
  border-color: #FFC9C9 !important;
}

/* Admin Menu Icon Styles */
#adminmenu #toplevel_page_jorgecastro-setting .wp-menu-image img {
    filter: brightness(0) invert(1);
    opacity: 0.8 !important; /* Slight transparency like standard icons */
}
/* Hover/Active/Current state: Restore color or adjust */
#adminmenu #toplevel_page_jorgecastro-setting:hover .wp-menu-image img,
#adminmenu #toplevel_page_jorgecastro-setting.wp-has-current-submenu .wp-menu-image img {
    filter: none; /* Show original colorful brand icon */
    opacity: 1 !important;
}

/* Create Content Page Styles - Sidebar Layout */
.ml-create-content-layout {
    display: flex;
    gap: 24px;
    margin-top: 20px;
}

/* Left Sidebar */
.ml-content-sidebar {
    width: 300px;
    flex-shrink: 0;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 20px;
    height: fit-content;
    position: sticky;
    top: 32px;
}

.ml-sidebar-title {
    font-size: 16px;
    font-weight: 600;
    color: #111827;
    margin: 0 0 16px 0;
    padding-bottom: 12px;
    border-bottom: 1px solid #e5e7eb;
}

.ml-content-types-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.ml-content-type-item {
    margin-bottom: 8px;
}

.ml-content-type-nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border-radius: 8px;
    text-decoration: none;
    color: #374151;
    transition: all 0.2s;
}

.ml-content-type-nav-link:hover {
    background: #f9fafb;
    color: #111827;
    text-decoration: none;
}

.ml-content-type-item.active .ml-content-type-nav-link {
    background: #f3f4f6;
    color: #9827FC;
    font-weight: 600;
}

.ml-content-type-nav-icon {
    flex-shrink: 0;
}

.ml-content-icon-bg-small {
    width: 40px;
    height: 40px;
    background: #9827FC;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    box-shadow: 0 2px 6px rgba(137, 49, 244, 0.25);
    padding: 8px;
    box-sizing: border-box;
}

.ml-content-icon-symbol-small {
    font-size: 18px;
    font-weight: 700;
    color: #ffffff;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ml-content-icon-symbol-small.dashicons {
    font-size: 18px;
    width: 18px;
    height: 18px;
    color: #ffffff;
}

.ml-content-icon-doc-small {
    position: absolute;
    top: -4px;
    right: -4px;
    width: 18px;
    height: 18px;
    background: #ffffff;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    font-size: 10px;
    color: #9827FC;
}

.ml-content-icon-svg-small {
    width: 20px;
    height: 20px;
    display: block;
}

.ml-content-icon-svg {
    width: 36px;
    height: 36px;
    display: block;
}

.ml-content-type-nav-title {
    font-size: 14px;
    line-height: 1.4;
}

/* Right Main Content Area */
.ml-content-main {
    flex: 1;
    min-width: 0;
}

.ml-content-type-form-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 32px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.ml-content-type-header {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 24px;
}

.ml-content-type-icon-large {
    flex-shrink: 0;
}

.ml-content-type-header-text {
    flex: 1;
}

.ml-content-type-form-title {
    font-size: 24px;
    font-weight: 700;
    color: #111827;
    margin: 0 0 8px 0;
}

.ml-content-type-form-desc {
    font-size: 15px;
    color: #6b7280;
    margin: 0;
    line-height: 1.6;
}

.ml-content-divider {
    border: none;
    border-top: 1px solid #e5e7eb;
    margin: 24px 0;
}

.ml-content-form-placeholder {
    padding: 40px 20px;
    text-align: center;
    color: #9ca3af;
    font-size: 14px;
}

/* Old Grid Layout (keeping for reference but not used) */
.ml-content-types-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-top: 20px;
}

.ml-content-type-card {
    background: #ffffff;
    cursor: pointer;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 32px 24px;
    display: flex;
    flex-direction: column;
    align-items: start;
    text-align: start;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.ml-content-type-card:hover {
    border-color: #9827fc;
    box-shadow: 0 6px 20px rgba(152, 39, 252, 0.12);
    transform: translateY(-4px);
}

.ml-content-type-icon {
    margin-bottom: 20px;
    position: relative;
}

.ml-content-icon-bg {
    width: 50px;
    height: 50px;
    background: #9827FC;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 14px rgba(137, 49, 244, 0.35),
                0 10px 20px rgba(137, 49, 244, 0.25);
    padding: 11px;
    box-sizing: border-box;
}

.ml-content-icon-svg {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
}

.ml-content-type-title {
    color: #111827;
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 3px 0;
    line-height: 1.3;
}

.ml-content-type-desc {
    color: #6b7280;
    font-size: 14px;
    margin: 0 0 20px 0;
    line-height: 1.6;
    flex-grow: 1;
}

.ml-content-type-link {
    color: #9827FC;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    align-self: flex-start;
    margin-top: auto;
}

.ml-content-type-link:hover {
    color: #7C3AED;
    text-decoration: none;
}

/* Responsive for Create Content Page */
@media (max-width: 1200px) {
    .ml-content-types-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 782px) {
    .ml-content-types-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .ml-content-type-card {
        padding: 24px 20px;
    }

    .ml-content-icon-bg {
        width: 64px;
        height: 64px;
        padding: 16px;
    }

    .ml-content-type-title {
        font-size: 18px;
    }

    .ml-content-type-card {
        padding: 24px 20px;
    }

    .ml-content-icon-bg {
        width: 64px;
        height: 64px;
    }

    .ml-content-icon-symbol {
        font-size: 28px;
    }

    .ml-content-icon-symbol.dashicons {
        font-size: 28px;
        width: 28px;
        height: 28px;
    }

    .ml-content-icon-doc {
        width: 24px;
        height: 24px;
        font-size: 14px;
        top: -6px;
        right: -6px;
    }

    .ml-content-type-title {
        font-size: 18px;
    }
}

/* Dashboard Page Styles */
.ml-btn-create-content {
    background: #9827FC;
    color: #ffffff;
    padding: 12px 24px;
    border-radius: 50px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s;
    box-shadow: 0 2px 8px rgba(152, 39, 252, 0.25);
}

.ml-btn-create-content:hover {
    background: #7C3AED;
    color: #ffffff;
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(152, 39, 252, 0.35);
}

.ml-btn-create-content .dashicons {
    font-size: 18px;
    width: 18px;
    height: 18px;
}

/* Dashboard Stats Row */
.ml-dashboard-stats-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.ml-stat-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    align-items: start;
    gap: 16px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.ml-stat-icon {
    width: 50px;
    height: 50px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.ml-stat-icon-purple {
  background: linear-gradient(135deg, #AD46FF, #8200DB);
  color: #ffffff;
}

.ml-stat-icon-green {
    background: #05DF72;
    color: #ffffff;
}

.ml-stat-icon-blue {
    background: #51A2FF;
    color: #ffffff;
}

.ml-stat-icon .dashicons,
.ml-stat-icon .ml-stat-icon-img {
    font-size: 28px;
    width: 28px;
    height: 28px;
    display: block;
    object-fit: contain;
}

.ml-stat-content {
    flex: 1;
}

.ml-stat-number {
    font-size: 25px;
    font-weight: 700;
    color: #111827;
    line-height: 1;
    margin-bottom: 4px;
}

.ml-stat-label {
    font-size: 14px;
    color: #6b7280;
    font-weight: 400;
}

/* Content by Type Section */
.ml-content-by-type-section {
    margin-top: 30px;
}

.ml-content-type-dashboard-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 20px;
    transition: all 0.2s;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.ml-content-type-dashboard-card:hover {
    border-color: #9827fc;
    box-shadow: 0 4px 12px rgba(152, 39, 252, 0.1);
}

.ml-content-type-dashboard-header {
    display: flex;
    /* align-items: center; */
    gap: 12px;
    margin-bottom: 10px;
}

.ml-content-type-dashboard-icon {
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, #9827FC, #7C3AED);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
    box-sizing: border-box;
    flex-shrink: 0;
    box-shadow: 0 2px 4px rgba(152, 39, 252, 0.2);
}

.ml-content-icon-svg-dashboard {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
}

.ml-content-type-dashboard-title {
    font-size: 15px;
    font-weight: 600;
    color: #111827;
    flex: 1;
    line-height: 1.4;
}

.ml-content-type-dashboard-total {
    font-size: 13px;
    color: #6b7280;
    margin-bottom: 10px;
    font-weight: 400;
}

.ml-content-type-dashboard-progress {
    margin-top: 8px;
}

.ml-progress-bar {
    width: 100%;
    height: 8px;
    background: #f3f4f6;
    border-radius: 6px;
    display: flex;
    overflow: hidden;
    margin-bottom: 8px;
}

.ml-progress-bar.ml-progress-empty {
    align-items: center;
    justify-content: center;
    height: 32px;
}

.ml-progress-segment {
    height: 100%;
    transition: width 0.3s ease;
}

.ml-progress-published {
    background: #05DF72;
}

.ml-progress-draft {
    background: #51A2FF;
}

.ml-progress-labels {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    font-weight: 500;
}

.ml-progress-label-published {
    color: #05DF72;
    font-size: 15px;
}

.ml-progress-label-draft {
    color: #51A2FF;
    font-size: 15px;
}

.ml-progress-empty .ml-progress-label-empty {
    color: #9ca3af;
    font-size: 12px;
}

/* Responsive for Dashboard */
@media (max-width: 1200px) {
    .ml-dashboard-stats-row {
        grid-template-columns: repeat(2, 1fr);
    }

    .ml-content-types-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 782px) {
    .jorgecastro-header-new {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .jorgecastro-header-actions {
        width: 100%;
    }

    .ml-btn-create-content {
        width: 100%;
        justify-content: center;
    }

    .ml-dashboard-stats-row {
        grid-template-columns: 1fr;
    }

    .ml-content-types-grid {
        grid-template-columns: 1fr;
    }

    .ml-stat-card {
        padding: 20px;
    }

    .ml-stat-number {
        font-size: 28px;
    }
}

/* --- Create Content Popup: two-column (purple left, dark right) --- */
.jorgecastro-cc-popup-wrap {
    display: flex;
    max-width: 700px;
    width: 100%;
    /* min-height: 480px; */
    max-height: 90vh;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    animation: ml-popup-slide-in 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.jorgecastro-cc-popup-left {
    width: 340px;
    min-width: 280px;
    background: linear-gradient(160deg, #7c3aed 0%, #5b21b6 100%);
    color: #fff;
    padding: 32px 0px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    display: none;
    justify-content: space-between;
}

.jorgecastro-cc-how-title {
    font-size: 22px;
    font-weight: 700;
    margin: 0 0 12px 0;
    color: #fff;
}

.jorgecastro-cc-how-text {
    font-size: 14px;
    opacity: 0.95;
    margin: 0 0 24px 0;
    line-height: 1.5;
}

.jorgecastro-cc-video-wrap.jorgecastro-cc-video-title-desc {
    width: 100%;
    margin-bottom: 0px;
}

.jorgecastro-cc-video-wrap .jorgecastro-cc-video-el {
    width: 100%;
    max-width: 100%;
    border-radius: 0px;
    background: rgba(0, 0, 0, 0.2);
    display: block;
}

.jorgecastro-cc-video-placeholder {
    flex: 1;
    width: 100%;
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 12px;
    margin-bottom: 24px;
}

.jorgecastro-cc-video-inner {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.jorgecastro-cc-play-icon {
    font-size: 32px;
    color: #fff;
    margin-left: 4px;
}

.jorgecastro-cc-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #fff;
}

.jorgecastro-cc-logo-img {
    height: 24px;
    width: auto;
}

.jorgecastro-cc-popup-right {
    flex: 1;
    background: #374151;
    color: #e5e7eb;
    padding: 28px 15px 32px;
    position: relative;
    overflow-y: auto;
}

.jorgecastro-cc-close-x {
    position: absolute;
    top: 16px;
    right: 16px;
    background: none;
    border: none;
    color: #9ca3af;
    font-size: 24px;
    cursor: pointer;
    padding: 4px;
    line-height: 1;
}

.jorgecastro-cc-close-x:hover {
    color: #fff;
}

.jorgecastro-cc-form-title-row {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 4px;
    margin-bottom: 12px;
    padding-right: 32px;
}

.jorgecastro-cc-form-title {
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    margin: 0;
}

.jorgecastro-cc-form-title-for {
    font-size: 18px;
    font-weight: 700;
    color: #fbbf24;
    margin: 0;
}

.jorgecastro-cc-steps-text {
    font-size: 14px;
    color: #9ca3af;
    margin: 0 0 20px 0;
}

/* Product Text: 2-step stepper (active = purple + glow, completed = green + check, inactive = gray) */
.jorgecastro-cc-stepper {
    display: flex;
    align-items: center;
    gap: 0;
    margin-bottom: 24px;
}

.jorgecastro-cc-stepper-step {
    display: flex;
    align-items: center;
    justify-content: center;
}

.jorgecastro-cc-stepper-circle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 16px;
    font-weight: 700;
    transition: background-color 0.25s ease, color 0.25s ease, box-shadow 0.25s ease;
}

.jorgecastro-cc-stepper-check {
    display: none;
}

/* Step 1: active (purple, glow) */
.jorgecastro-cc-stepper-step--active .jorgecastro-cc-stepper-circle {
    background: #9827fc;
    color: #fff;
}

.jorgecastro-cc-stepper-step--active .jorgecastro-cc-stepper-number {
    display: inline;
}

.jorgecastro-cc-stepper-step--active .jorgecastro-cc-stepper-check {
    display: none;
}

/* Step 1: completed (green, checkmark, glow) */
.jorgecastro-cc-stepper-step--completed .jorgecastro-cc-stepper-circle {
    background: #05DF72;
    color: #fff;
    box-shadow: 0 2px 4px rgba(5, 223, 114, 0.35);
}

.jorgecastro-cc-stepper-step--completed .jorgecastro-cc-stepper-number {
    display: none;
}

.jorgecastro-cc-stepper-step--completed .jorgecastro-cc-stepper-check {
    display: inline;
    font-size: 18px;
    line-height: 1;
}

/* Step 2: inactive (dark gray) */
.jorgecastro-cc-stepper-step--inactive .jorgecastro-cc-stepper-circle {
    background: #4b5563;
    color: #9ca3af;
    box-shadow: none;
}

.jorgecastro-cc-stepper-step--inactive .jorgecastro-cc-stepper-number {
    display: inline;
}

.jorgecastro-cc-stepper-step--inactive .jorgecastro-cc-stepper-check {
    display: none;
}

/* Connecting line */
.jorgecastro-cc-stepper-line {
    flex: 1;
    min-width: 24px;
    height: 3px;
    background: #4b5563;
    margin: 0 4px;
    border-radius: 2px;
    transition: background 0.25s ease, box-shadow 0.25s ease;
}

.jorgecastro-cc-stepper-line.jorgecastro-cc-stepper-line--filled {
    background: #05DF72;
    box-shadow: 0 2px 4px rgba(5, 223, 114, 0.5);
}

.jorgecastro-cc-product-step-actions {
    margin-top: 20px;
}

.jorgecastro-cc-btn-next {
    background: #9827fc;
    color: #fff;
    border-radius: 20px;
}

.jorgecastro-cc-btn-next:hover:not(:disabled) {
    background: #7c3aed;
}

.jorgecastro-cc-btn-next:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.jorgecastro-cc-btn-prev {
    background: #4b5563;
    color: #e5e7eb;
    border-radius: 20px;
}

.jorgecastro-cc-btn-prev:hover {
    background: #6b7280;
    color: #fff;
}

.jorgecastro-cc-credits {
    font-size: 13px;
    color: #9ca3af;
   margin-top: 0px;
    text-align: end;
    margin-bottom: 0px;
}

.jorgecastro-cc-actions {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-top: 24px;
    padding-top: 0px;
}

.jorgecastro-cc-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 18px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    border: none;
}

.jorgecastro-cc-btn-close {
    background: #4b5563;
    color: #e5e7eb;
    border-radius: 20px;
}

.jorgecastro-cc-btn-close:hover {
    background: #6b7280;
    color: #fff;
}

.jorgecastro-cc-btn-create {
    background: #7c3aed;
    color: #fff;
    border-radius: 20px;
}

.jorgecastro-cc-btn-create:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

.jorgecastro-cc-btn-create:hover:not(:disabled) {
    background: #6d28d9;
}

/* Create Content popup: dynamic fields (dark theme) */
.jorgecastro-cc-popup-right .jorgecastro-field-group {
    display: none;
}

.jorgecastro-cc-popup-right .jorgecastro-field-group:not(.jorgecastro-hidden) {
    display: block;
}

.jorgecastro-cc-popup-right .jorgecastro-field-row {
    margin-bottom: 16px;
}

.jorgecastro-cc-popup-right .jorgecastro-field-row:last-child {
    margin-bottom: 0;
}

.jorgecastro-cc-popup-right label {
    display: block;
    font-weight: 600;
    margin-bottom: 6px;
    color: #e5e7eb;
    font-size: 14px;
}

.jorgecastro-cc-popup-right label .required {
    color: #f87171;
}

.jorgecastro-cc-input,
.jorgecastro-cc-textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #4b5563;
    border-radius: 20px;
    font-size: 14px;
    min-height: 110px;
    background: #1f2937 !important;
    color: #ffffff !important;
}

.jorgecastro-cc-popup-right .jorgecastro-cc-input::placeholder,
.jorgecastro-cc-popup-right .jorgecastro-cc-textarea::placeholder {
    color: #9ca3af;
}

.jorgecastro-cc-input:focus,
.jorgecastro-cc-textarea:focus {
    outline: none;
    border-color: #7c3aed;
}

.jorgecastro-cc-textarea {
    resize: vertical;
    min-height: 80px;
}

.jorgecastro-cc-input-small {
    width: 90px;
}

.jorgecastro-cc-popup-right select.jorgecastro-cc-input {
    cursor: pointer;
}

.jorgecastro-cc-label-info {
    margin-left: 4px;
    color: #9ca3af;
    font-size: 14px;
    cursor: help;
}

.jorgecastro-cc-input-with-icon {
    position: relative;
    display: flex;
    align-items: center;
    /* border: 1px solid #4b5563; */
    /* border-radius: 8px; */
    /* background: #1f2937; */
}

.jorgecastro-cc-input-with-icon .dashicons {
    position: absolute;
    left: 12px;
    color: #9ca3af;
    font-size: 18px;
    width: 18px;
    height: 18px;
    pointer-events: none;
}

.jorgecastro-cc-input-with-icon .jorgecastro-cc-input {
    padding-left: 38px;
}

.jorgecastro-cc-keywords-wrap ,
#jorgecastro-cc-key-points{
    position: relative;
    border: 1px solid #4b5563;
    border-radius: 20px;
    background: #1f2937;
    min-height: 110px;
    padding: 8px 40px 8px 12px;
}

.jorgecastro-cc-keywords-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 6px;
}

.jorgecastro-cc-keywords-tags:empty {
    margin-bottom: 0;
}

.jorgecastro-cc-keyword-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #7c3aed;
    color: #fff;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 13px;
}

.jorgecastro-cc-tag-remove {
    background: none;
    border: none;
    color: #fff;
    cursor: pointer;
    padding: 0;
    margin: 0;
    font-size: 16px;
    line-height: 1;
    opacity: 0.9;
}

.jorgecastro-cc-tag-remove:hover {
    opacity: 1;
}

.jorgecastro-cc-keyword-input {
    border: none !important;
    background: transparent !important;
    padding: 4px 6px !important;
    min-width: 120px;
    color: #ffffff !important;
}

.jorgecastro-cc-keyword-input::placeholder {
    color: #9ca3af;
}

.jorgecastro-cc-keyword-input:focus {
    box-shadow: none !important;
}

.jorgecastro-cc-counter {
    position: absolute;
    bottom: 10px;
    right: 12px;
    font-size: 12px;
    color: #e5e7eb;
}

.jorgecastro-cc-counter-left {
    right: auto;
    left: 12px;
}

/* When counter is on the left, don't reserve right padding – gives input more room so placeholder isn't cut off */
.jorgecastro-cc-keywords-wrap-counter-left {
    padding-right: 12px;
}

.jorgecastro-cc-keywords-wrap .jorgecastro-cc-keyword-input {
    text-align: left;
    width: 100%;
    box-sizing: border-box;
}

/* Video topic: textarea so long placeholder and typed text wrap instead of moving/scrolling */
.jorgecastro-cc-keyword-textarea {
    display: block;
    resize: none;
    overflow-wrap: break-word;
    overflow-y: auto;
    overflow-x: hidden;
    min-height: 60px;
    line-height: 1.4;
}
.jorgecastro-cc-keyword-textarea::placeholder {
    white-space: normal;
}

@media (max-width: 700px) {
    .jorgecastro-cc-popup-wrap {
        flex-direction: column;
        max-height: 95vh;
    }
    .jorgecastro-cc-popup-left {
        width: 100%;
        min-height: 200px;
    }
}

/* Button styled as Create Content link on cards */
button.ml-content-type-link {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    font-family: inherit;
}

.ml-content-type-link {
  position: relative;
  cursor: pointer;
}

.ml-content-type-link::after {
  content: " →";
  display: inline-block;
  color: #000;
  transition: transform 0.25s ease, color 0.25s ease;
}

.ml-content-type-card:hover .ml-content-type-link::after {
  transform: translateX(6px);
  color: #9827FC;
}
.jorgecastro-cc-popup-right{
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
#jorgecastro-cc-target-url,
#jorgecastro-cc-product-name,
#jorgecastro-cc-article-topic,
#jorgecastro-cc-headline, 
#jorgecastro-cc-video-topic,
#jorgecastro-cc-blog-topic,
#jorgecastro-cc-article-target-url{
  position: relative;
  /* border: 1px solid #4b5563; */
  border-radius: 20px;
  background: #1f2937;
  /* min-height: 110px; */
  color: #fff !important;
  padding: 8px 40px 8px 12px;
}
#jorgecastro-cc-article-words{

  position: relative;
color: #fff;
  border-radius: 20px;
  background: #1f2937;
}
.jorgecastro-cc-video-placeholder{
  border-radius: 0px !important;
}
#jorgecastro-cc-article-tone , .jorgecastro-field-row .wp-core-ui select{
color: #fff;
border-radius: 16px !important;
min-height: 30px;
width: 23%;
  background: #1f2937;
}
#jorgecastro-cc-blog-tone #jorgecastro-cc-blog-words #jorgecastro-cc-duration{
  color: #fff;
  background: #1f2937;
  border-radius: 16px !important;
}

#jorgecastro-cc-video-topic{
  min-height: 120px !important;
}

.ml-progress-label-published span,
.ml-progress-label-draft span {
  /* styles for "Published" / "Draft" text only */
  font-size: 12px;
  font-weight: 400;
  color: #6b7280;
}