/* Upload Page - New Design */
.yoo-upload-wrap {
  max-width: 1400px;
  margin: 20px auto;
  padding: 0 20px;
  box-sizing: border-box;
  overflow-x: hidden;
  /* Replace-confirm version strip (hub / admin themes can override for dark). */
  --yoo-upload-version-strip-bg: #f0f2f4;
  --yoo-upload-version-strip-border: rgba(0, 0, 0, 0.08);
}

/* Update Notice Bar (same as plugins-page.php) */
.yoo-update-notice-bar {
  padding: 12px 16px;
  margin-bottom: 16px;
  border-radius: 6px;
  border: 1px solid #ffe9c1;
  font-size: 14px;
  background: #fffdf8;
  display: flex;
  align-items: center;
  gap: 12px;
  position: relative;
}

.yoo-update-notice-bar .yoo-notice-icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.yoo-update-notice-bar .yoo-notice-icon .dashicons {
  font-size: 20px;
  width: 20px;
  height: 20px;
}

.yoo-update-notice-bar .yoo-notice-content {
  flex: 1;
}

.yoo-update-notice-bar .yoo-notice-content p {
  margin: 0;
  color: var(--yp-text);
}

.yoo-update-notice-bar.yoo-notice-success {
  background: #fffdf8;
  border-color: #ffe9c1;
  color: var(--yp-text);
}

.yoo-update-notice-bar.yoo-notice-success .yoo-notice-icon .dashicons {
  color: var(--_yp-primary);
}

.yoo-update-notice-bar.yoo-notice-error {
  background: #fffdf8;
  border-color: #ffe9c1;
  color: var(--yp-text);
}

.yoo-update-notice-bar.yoo-notice-error .yoo-notice-icon .dashicons {
  color: #d63638;
}

.yoo-update-notice-bar.yoo-notice-info {
  background: #fffdf8;
  border-color: #ffe9c1;
  color: var(--yp-text);
}

.yoo-update-notice-bar.yoo-notice-info .yoo-notice-icon .dashicons {
  color: var(--_yp-primary);
}

.yoo-notice-close {
  position: absolute;
  top: 8px;
  right: 8px;
  background: none;
  border: none;
  font-size: 20px;
  line-height: 1;
  color: var(--yp-text);
  cursor: pointer;
  padding: 4px;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  transition: all 0.2s ease;
}

.yoo-notice-close:hover {
  background: rgba(0, 0, 0, 0.05);
  color: var(--yp-text);
}

/* Header */
.yoo-upload-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 32px;
  padding-bottom: 20px;
  border-bottom: 1px solid #dcdcde;
}

.yoo-upload-header-content {
  flex: 1;
}

.yoo-upload-header-actions {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

/* Check for updates — layout; chrome: yooadmin-yoo-buttons (yp-yoo-btn--soft) */
.yoo-check-updates-btn {
  display: inline-flex;
  align-items: center;
  gap: var(--yp-yoo-btn-gap, 8px);
  cursor: pointer;
}

.yoo-check-updates-btn:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

.yoo-check-updates-btn .dashicons {
  width: 18px;
  height: 18px;
  font-size: 18px;
}

.yoo-upload-title {
  font-size: 24px;
  font-weight: 600;
  margin: 0 0 8px 0;
  color: var(--yp-text);
}

.yoo-upload-subtitle {
  font-size: 13px;
  color: var(--yp-text);
  margin: 0;
}

.yoo-upload-toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: var(--yp-yoo-btn-gap, 8px);
  cursor: pointer;
}

.yoo-upload-toggle-btn .dashicons {
  font-size: 18px;
  width: 18px;
  height: 18px;
}

.yoo-toggle-icon {
  margin-left: 4px;
  transition: transform 0.3s;
}

/* Upload Section */
.yoo-upload-section {
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 24px;
  margin-bottom: 32px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  position: relative;
  z-index: 1;
  box-sizing: border-box;
}

.yoo-upload-container {
  background: #fff;
  border-radius: 8px;
  padding: 24px;
  margin-bottom: 16px;
}

/* Type Selector */
.yoo-type-selector {
  display: flex;
  gap: 16px;
  margin-bottom: 24px;
  justify-content: center;
}

.yoo-type-selector label {
  cursor: pointer;
  flex: 1;
  max-width: 180px;
}

.yoo-type-selector input[type="radio"] {
  display: none;
}

.yoo-type-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 16px;
  border: 2px solid #dcdcde;
  border-radius: 6px;
  transition: all 0.2s;
  background: #fff;
}

.yoo-type-card .dashicons {
  font-size: 36px;
  width: 36px;
  height: 36px;
  color: var(--yp-text);
}

.yoo-type-card strong {
  font-size: 16px;
  color: var(--yp-text);
}

.yoo-type-selector input[type="radio"]:checked + .yoo-type-card {
  border-color: var(--_yp-primary, #eda934);
  background: color-mix(in srgb, var(--_yp-primary, #eda934) 5%, #fff);
}

.yoo-type-selector input[type="radio"]:checked + .yoo-type-card .dashicons {
  color: var(--_yp-primary, #eda934);
}

/* Upload Area */
.yoo-upload-area {
  border: 2px dashed #dcdcde;
  border-radius: 8px;
  padding: 32px 24px;
  text-align: center;
  transition: all 0.2s;
  cursor: pointer;
}

.yoo-upload-area:hover,
.yoo-upload-area.dragover {
  border-color: var(--_yp-primary, #eda934);
  background: color-mix(in srgb, var(--_yp-primary, #eda934) 3%, #fff);
}

.yoo-upload-icon {
  margin-bottom: 16px;
}

.yoo-upload-icon .dashicons {
  font-size: 48px;
  width: 48px;
  height: 48px;
  color: var(--yp-text);
}

.yoo-upload-area:hover .yoo-upload-icon .dashicons {
  color: var(--_yp-primary, #eda934);
}

.yoo-upload-area h3 {
  font-size: 20px;
  font-weight: 600;
  margin: 0 0 8px 0;
  color: var(--yp-text);
}

.yoo-upload-area p {
  color: var(--yp-text);
  margin: 0 0 16px 0;
}

.yoo-browse-btn {
  padding: 10px 24px;
  background: var(--_yp-primary, #eda934);
  color: #fff;
  border: none;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s;
}

.yoo-browse-btn:hover {
  background: color-mix(in srgb, var(--_yp-primary, #eda934) 88%, #000);
}

/* Progress */
.yoo-upload-progress {
  text-align: center;
  padding: 32px;
}

.yoo-progress-bar {
  width: 100%;
  height: 8px;
  background: #f0f0f1;
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 16px;
}

.yoo-progress-fill {
  height: 100%;
  background: var(--_yp-primary, #eda934);
  transition: width 0.3s;
  width: 0%;
}

.yoo-progress-text {
  color: var(--yp-text);
  font-size: 14px;
  margin: 0;
}

.yoo-upload-wrap .yoo-upload-result {
  text-align: center;
  padding: 24px 16px;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
}

.yoo-result-icon {
  margin-bottom: 12px;
}

.yoo-result-icon .dashicons {
  font-size: 48px;
  width: 48px;
  height: 48px;
}

.yoo-upload-wrap .yoo-upload-result--success .yoo-result-icon .dashicons {
  color: #22c55e;
}

.yoo-upload-wrap .yoo-upload-result--error .yoo-result-icon .dashicons {
  color: #d63638;
  font-size: 40px;
  width: 40px;
  height: 40px;
}

.yoo-upload-wrap .yoo-upload-result--warning .yoo-result-icon .dashicons {
  color: #dba617;
  font-size: 40px;
  width: 40px;
  height: 40px;
}

.yoo-upload-wrap .yoo-upload-result--error .yoo-result-message {
  max-width: 36rem;
  width: 100%;
  margin: 0 auto;
  line-height: 1.55;
  font-size: 14px;
  color: var(--yp-text, #50575e);
  text-align: center;
}

.yoo-upload-wrap .yoo-upload-result--error .yoo-result-title {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--yp-text, #1d2327);
  text-align: center;
  width: 100%;
}

.yoo-upload-wrap .yoo-upload-error-inline-wrap {
  display: inline-block;
  margin-top: 10px;
}

.yoo-upload-wrap .yoo-upload-error-link {
  font-weight: 600;
  color: var(--_yp-primary, #eda934);
  text-decoration: underline;
}

.yoo-upload-wrap .yoo-upload-error-link:hover {
  color: color-mix(in srgb, var(--_yp-primary, #eda934) 85%, #000);
}

.yoo-upload-wrap .yoo-activate-status.yoo-activate-status--bad {
  color: #d63638;
  font-size: 13px;
}

/* Batch Upload Styles */
.yoo-batch-upload-container {
  padding: 20px;
}

.yoo-batch-upload-container h4 {
  margin: 0 0 20px 0;
  font-size: 16px;
  font-weight: 600;
  color: var(--yp-text);
}

.yoo-batch-progress-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.yoo-batch-progress-item {
  padding: 12px;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
}

.yoo-batch-file-name {
  font-size: 14px;
  font-weight: 500;
  color: var(--yp-text);
  margin-bottom: 8px;
  word-break: break-all;
}

.yoo-batch-progress-bar {
  width: 100%;
  height: 6px;
  background: #f0f0f1;
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 6px;
}

.yoo-batch-progress-fill {
  height: 100%;
  background: var(--_yp-primary, #eda934);
  transition: width 0.3s;
  width: 0%;
}

.yoo-batch-status {
  font-size: 12px;
  color: var(--yp-text);
}

.yoo-batch-results {
  text-align: left;
  max-width: 600px;
  margin: 0 auto;
}

.yoo-batch-results p {
  margin: 0 0 10px 0;
  font-size: 14px;
}

.yoo-batch-results ul {
  margin: 0 0 15px 0;
  padding-left: 20px;
  list-style: none;
}

.yoo-batch-results li {
  padding: 4px 0;
  font-size: 13px;
  color: var(--yp-text);
}

.yoo-batch-success-list li {
  color: #00a32a;
}

.yoo-batch-error-list li {
  color: #d63638;
}

/* Batch Confirmation Dialog */
.yoo-batch-confirmation {
  text-align: left;
  max-width: 700px;
  margin: 0 auto;
}

.yoo-batch-confirmation p {
  margin: 0 0 15px 0;
  font-size: 14px;
}

.yoo-batch-confirmation-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-height: 400px;
  overflow-y: auto;
  padding-right: 8px;
}

.yoo-batch-confirmation-item {
  padding: 16px;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
}

.yoo-batch-confirmation-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.yoo-batch-confirmation-header strong {
  font-size: 14px;
  color: var(--yp-text);
}

.yoo-batch-replace-checkbox {
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  font-size: 13px;
  color: var(--yp-text);
}

.yoo-batch-replace-checkbox input[type="checkbox"] {
  width: 16px;
  height: 16px;
  cursor: pointer;
  accent-color: var(--_yp-primary, #eda934);
}

.yoo-version-comparison-small {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 12px;
  background: var(--yoo-upload-version-strip-bg, #f0f2f4);
  border: 1px solid var(--yoo-upload-version-strip-border, rgba(0, 0, 0, 0.08));
  border-radius: 4px;
  box-sizing: border-box;
}

.yoo-version-item-small {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.yoo-version-label-small {
  font-size: 11px;
  color: var(--yp-text);
  text-transform: uppercase;
  font-weight: 500;
}

.yoo-version-value-small {
  font-size: 14px;
  font-weight: 600;
  color: var(--yp-text);
}

.yoo-version-arrow-small {
  font-size: 18px;
  color: var(--yp-text);
}

.yoo-warning-text-small {
  margin: 8px 0 0 0;
  font-size: 12px;
  color: #d63638;
  font-weight: 500;
}

.yoo-version-comparison {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 14px 16px;
  background: var(--yoo-upload-version-strip-bg, #f0f2f4);
  border: 1px solid var(--yoo-upload-version-strip-border, rgba(0, 0, 0, 0.08));
  border-radius: 6px;
  box-sizing: border-box;
}

.yoo-version-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.yoo-version-label {
  font-size: 12px;
  color: var(--yp-text);
  text-transform: uppercase;
  font-weight: 500;
}

.yoo-version-value {
  font-size: 18px;
  font-weight: 600;
  color: var(--yp-text);
  font-family: monospace;
}

.yoo-version-arrow {
  font-size: 24px;
  color: var(--_yp-primary, #eda934);
  font-weight: bold;
}

.yoo-warning-text {
  color: #ef4444;
  display: inline-block;
  margin-top: 8px;
}

.yoo-result-title {
  font-size: 20px;
  font-weight: 600;
  margin: 0 0 8px 0;
  color: var(--yp-text);
}

.yoo-result-message {
  color: var(--yp-text);
  margin: 0 0 24px 0;
  line-height: 1.6;
  text-align: center;
}

.yoo-version-info {
  display: inline-block;
  margin-top: 8px;
  padding: 6px 12px;
  background: #fef3e7;
  border: 1px solid #fde8cc;
  border-radius: 4px;
  color: var(--_yp-primary, #eda934);
  font-size: 13px;
  font-weight: 600;
  font-family: monospace;
}

.yoo-result-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.yoo-btn {
  padding: 10px 20px;
  border: none;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

.yoo-btn:focus,
.yoo-btn:focus-visible,
.yoo-btn:active {
  outline: none !important;
  box-shadow: none !important;
  border: none !important;
}

.yoo-btn-primary {
  background: var(--_yp-primary, #eda934);
  color: #fff;
}

.yoo-btn-primary:hover {
  background: color-mix(in srgb, var(--_yp-primary, #eda934) 88%, #000);
}

/* yoo-btn-secondary — chrome: yooadmin-yoo-buttons */

.yoo-btn-text {
  background: none;
  color: var(--yp-text);
}

.yoo-btn-text:hover {
  color: var(--yp-text);
}

/* Upload Actions */
.yoo-upload-actions {
  text-align: center;
  padding-top: 16px;
  border-top: 1px solid #e5e7eb;
}

.yoo-upload-actions .yoo-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.yoo-upload-actions .dashicons {
  font-size: 16px;
  width: 16px;
  height: 16px;
}

/* WordPress.org Content */
.yoo-wordpress-content {
  margin-top: 32px;
}

/* Filters Bar */
.yoo-filters-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.yoo-filters-left {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.yoo-category-btn {
  padding: 8px 14px;
  background: #fff;
  border: 1px solid #dcdcde;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 500;
  color: var(--_yp-primary, #eda934);
  cursor: pointer;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.yoo-category-btn .dashicons {
  font-size: 16px;
  width: 16px;
  height: 16px;
}

.yoo-category-btn:hover {
  border-color: var(--_yp-primary, #eda934);
  color: var(--_yp-primary, #eda934);
}

.yoo-category-btn.active {
  background: var(--_yp-primary, #eda934);
  border-color: var(--_yp-primary, #eda934);
  color: #fff;
}

.yoo-filters-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.yoo-search-box {
  position: relative;
  width: 300px;
  flex-shrink: 0;
}

.yoo-search-box input {
  width: 100%;
  padding: 10px 38px 10px 14px;
  border: 1px solid #dcdcde;
  border-radius: 4px;
  font-size: 13px;
  height: 40px;
  transition: border-color 0.2s;
}

.yoo-search-box input:focus {
  border-color: var(--_yp-primary, #eda934);
  outline: none;
  box-shadow: 0 0 0 1px var(--_yp-primary, #eda934);
}

.yoo-search-box .dashicons {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--yp-text);
  pointer-events: none;
}

/* Override white card ONLY for upload page */
/* Installed View Controls */
/* View Mode Toggle */
.yoo-installed-view-controls {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-right: 12px;
}

.yoo-view-mode-toggle-wrapper {
    display: flex;
    align-items: center;
}

.yoo-view-mode-toggle {
    display: inline-flex;
    gap: 4px;
    background: transparent;
    border: none;
    border-radius: 4px;
    padding: 2px;
}

.yoo-view-mode-btn {
    background: transparent;
    border: none;
    padding: 6px 10px;
    cursor: pointer;
    border-radius: 3px;
    color: #50575e;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.yoo-view-mode-btn:hover {
    background: #f0f0f1;
    color: var(--_yp-primary, #eda934);
}

.yoo-view-mode-btn.active {
    background: var(--_yp-primary, #eda934);
    color: #fff;
}

.yoo-view-mode-btn .dashicons {
    font-size: 18px;
    width: 18px;
    height: 18px;
}

/* Bulk Actions Bar (from plugins-page.css) */
.yoo-bulk-actions-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: #f0f0f1;
    border: 1px solid #dcdcde;
    border-radius: 4px;
    margin-bottom: 20px;
}

.yoo-bulk-actions-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.yoo-bulk-actions-left label {
    margin: 0;
    font-weight: 500;
    cursor: pointer;
}

.yoo-selected-count {
    color: #50575e;
    font-size: 14px;
}

.yoo-bulk-actions-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

.yoo-bulk-select {
    min-width: 150px;
    padding: 6px 28px 6px 10px;
    border: 1px solid #dcdcde;
    border-radius: 4px;
    background: #fff;
}

.yoo-bulk-apply-btn {
    padding: 6px 16px;
    background: var(--_yp-primary, #eda934);
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.2s;
}

.yoo-bulk-apply-btn:hover:not(:disabled) {
    background: var(--_yp-primary, #eda934);
    opacity: 0.9;
}

.yoo-bulk-apply-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Click feedback animation - bulk Apply button (especially for Delete) */
.yoo-bulk-apply-btn.yoo-click-feedback {
    animation: yoo-btn-click-pulse 0.35s ease;
}

@keyframes yoo-btn-click-pulse {
    0% { transform: scale(1); }
    40% { transform: scale(0.94); }
    70% { transform: scale(1.02); }
    100% { transform: scale(1); }
}

/* Plugin Card Styles from plugins-page.css - ONLY for list view */
.yoo-wordpress-results.yoo-list-view-mode {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 16px;
    margin-top: 20px;
    align-items: stretch;
}

.yoo-wordpress-results.yoo-list-view-mode .yoo-plugin-card {
    background: #fff;
    border: 1px solid #dcdcde;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    position: relative;
    height: auto;
}

.yoo-wordpress-results.yoo-list-view-mode .yoo-plugin-card:hover {
    border-color: #999;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.yoo-wordpress-results.yoo-list-view-mode .yoo-plugin-card.has-update {
    border-left: 4px solid var(--_yp-primary, #eda934);
}

.yoo-wordpress-results.yoo-list-view-mode .yoo-plugin-card.selected {
    border-color: var(--_yp-primary, #eda934);
    box-shadow: 0 0 0 2px rgba(238, 180, 78, 0.2);
}

/* Card Header - Exact match from plugins-page.css */
.yoo-wordpress-results.yoo-list-view-mode .yoo-plugin-header {
    padding: 2px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border-bottom: 1px solid #f0f0f1;
    min-height: 56px;
    position: relative;
}

.yoo-wordpress-results.yoo-list-view-mode .yoo-plugin-header-left {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
}

.yoo-wordpress-results.yoo-list-view-mode .yoo-plugin-icon {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f6f7f7;
    border-radius: 6px;
    overflow: hidden;
}

.yoo-wordpress-results.yoo-list-view-mode .yoo-plugin-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.yoo-wordpress-results.yoo-list-view-mode .yoo-plugin-icon .dashicons {
    font-size: 24px;
    width: 24px;
    height: 24px;
    color: var(--yp-text);
}

.yoo-wordpress-results.yoo-list-view-mode .yoo-plugin-checkbox-label {
    display: none;
}

.yoo-wordpress-results.yoo-list-view-mode .yoo-plugin-checkbox:has(input:checked) {
    opacity: 1;
}

.yoo-wordpress-results.yoo-list-view-mode .yoo-plugin-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    margin: 0;
}

.yoo-wordpress-results.yoo-list-view-mode .yoo-plugin-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--yp-text);
    flex: 1;
    line-height: 1.4;
    min-height: 44px;
    max-height: 44px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Card Body - Exact match from plugins-page.css */
.yoo-wordpress-results.yoo-list-view-mode .yoo-plugin-body {
    padding: 12px 16px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.yoo-wordpress-results.yoo-list-view-mode .yoo-plugin-meta-line1 {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    font-size: 12px;
    color: var(--yp-text);
}

.yoo-wordpress-results.yoo-list-view-mode .yoo-plugin-version {
    color: var(--yp-text);
    font-weight: 400;
}

.yoo-wordpress-results.yoo-list-view-mode .yoo-plugin-status {
    padding: 3px 8px;
    border-radius: 3px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    white-space: nowrap;
}

.yoo-wordpress-results.yoo-list-view-mode .yoo-plugin-status.active {
    background: #fff6e6;
    color: #eda934;
}

.yoo-wordpress-results.yoo-list-view-mode .yoo-plugin-status.inactive {
    background: #f0f0f1;
    color: var(--yp-text);
}

.yoo-wordpress-results.yoo-list-view-mode .yoo-plugin-meta-line2 {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--yp-text);
    position: relative;
}

.yoo-wordpress-results.yoo-list-view-mode .yoo-plugin-author {
    color: var(--yp-text);
    flex: 1;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.yoo-wordpress-results.yoo-list-view-mode .yoo-plugin-author a {
    color: var(--_yp-primary);
    text-decoration: none;
    font-weight: 500;
}

.yoo-wordpress-results.yoo-list-view-mode .yoo-plugin-author a:hover {
    text-decoration: underline;
}

.yoo-wordpress-results.yoo-list-view-mode .yoo-plugin-link-icon {
    display: inline-flex;
    align-items: center;
    color: var(--_yp-primary);
    text-decoration: none;
    margin-left: 4px;
    flex-shrink: 0;
}

.yoo-wordpress-results.yoo-list-view-mode .yoo-plugin-link-icon:hover {
    opacity: 0.8;
}

.yoo-wordpress-results.yoo-list-view-mode .yoo-meta-toggle {
    background: none;
    border: none;
    padding: 0;
    margin: 0;
    cursor: pointer;
    color: var(--yp-text);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.yoo-wordpress-results.yoo-list-view-mode .yoo-meta-toggle .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
}

.yoo-wordpress-results.yoo-list-view-mode .yoo-meta-toggle:hover {
    color: var(--_yp-primary);
}

.yoo-wordpress-results.yoo-list-view-mode .yoo-plugin-meta-expanded {
    display: none;
}

.yoo-wordpress-results.yoo-list-view-mode .yoo-plugin-meta-expanded.expanded {
    display: block;
    margin-bottom: 8px;
}

.yoo-wordpress-results.yoo-list-view-mode .yoo-update-badge {
    display: inline-block;
    padding: 3px 8px;
    background: #fff6e6;
    color: #eda934;
    border-radius: 3px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.yoo-wordpress-results.yoo-list-view-mode .yoo-plugin-description-wrapper {
    position: relative;
    margin: 0;
    padding: 0;
    min-height: 0;
}

.yoo-status-filter-wrapper {
    display: flex;
    align-items: center;
}

.yoo-status-filter-wrapper .yp-ui-select {
    width: auto;
    min-width: 120px;
    --yp-settings-select-width: 240px;
}

.yoo-status-filter-wrapper .yp-ui-select .yp-custom-select__trigger {
    min-height: 44px;
    padding: 12px 14px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 400;
}

.yoo-bulk-actions-right .yp-ui-select {
    min-width: 160px;
    --yp-settings-select-width: 220px;
}

.yoo-bulk-actions-right .yp-ui-select .yp-custom-select__trigger {
    min-height: 40px;
    font-weight: 400;
}

/* Override WordPress Core blue colors for status filter */
.wp-core-ui select.yoo-status-filter:focus,
.wp-core-ui select.yoo-status-filter:focus-visible {
    border-color: #dcdcde !important;
    color: var(--yp-text) !important;
    box-shadow: none !important;
}

body.wp-admin select.yoo-status-filter,
body.wp-admin select.yoo-status-filter:focus,
body.wp-admin select.yoo-status-filter:focus-visible,
body.wp-admin select.yoo-status-filter:active,
body.wp-admin select.yoo-status-filter[open] {
    border: 1px solid #dcdcde !important;
    border-color: #dcdcde !important;
    outline: none !important;
    box-shadow: none !important;
    color: var(--yp-text) !important;
}

.yoo-status-filter {
    padding: 12px 40px 12px 16px;
    border: 1px solid #dcdcde !important;
    border-color: #dcdcde !important;
    border-radius: 4px;
    font-size: 14px;
    background: #fff !important;
    background-color: #fff !important;
    color: var(--yp-text);
    cursor: pointer;
    height: 44px;
    min-width: 120px;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23646970' d='M6 9L1 4h10z'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 12px center !important;
    background-size: 12px !important;
    transition: border-color 0.2s;
    box-sizing: border-box;
}

.yoo-status-filter:hover {
    border-color: var(--yp-brand, var(--_yp-primary, #eda934)) !important;
}

/* Keep gray border ALWAYS - override all WordPress Core blue focus states */
.wp-core-ui select.yoo-status-filter:focus,
.wp-core-ui select.yoo-status-filter:focus-visible,
.wp-core-ui select.yoo-status-filter:active,
body.wp-admin select.yoo-status-filter:focus,
body.wp-admin select.yoo-status-filter:focus-visible,
body.wp-admin select.yoo-status-filter:active,
body.wp-admin select.yoo-status-filter[open],
select.yoo-status-filter:focus,
select.yoo-status-filter:focus-visible,
select.yoo-status-filter:active,
select.yoo-status-filter[open] {
    border: 1px solid #dcdcde !important;
    border-color: #dcdcde !important;
    outline: none !important;
    outline-offset: 0 !important;
    box-shadow: none !important;
    -webkit-box-shadow: none !important;
    -moz-box-shadow: none !important;
    color: var(--yp-text) !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23646970' d='M6 9L1 4h10z'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 12px center !important;
    background-size: 12px !important;
}

/* Dropdown Options - Remove WordPress blue (#2271b1) */
select.yoo-status-filter option {
    padding: 8px 12px;
    font-size: 14px;
    color: var(--yp-text) !important;
    background: #fff !important;
    background-color: #fff !important;
    line-height: 1.5;
}

/* Selected option - Force white background (remove WordPress blue) */
select.yoo-status-filter option:checked,
select.yoo-status-filter option[selected],
select.yoo-status-filter option[selected="selected"] {
    background: #fff !important;
    background-color: #fff !important;
    color: var(--yp-text) !important;
}

/* Override WordPress Core blue highlight in dropdown */
.wp-core-ui select.yoo-status-filter option:checked,
.wp-core-ui select.yoo-status-filter option[selected] {
    background: #fff !important;
    background-color: #fff !important;
    color: var(--yp-text) !important;
}

/* Hover state - Use brand color instead of blue */
select.yoo-status-filter option:hover,
select.yoo-status-filter option:focus {
    background: var(--yp-brand, var(--_yp-primary, #eda934)) !important;
    background-color: var(--yp-brand, var(--_yp-primary, #eda934)) !important;
    color: #fff !important;
}

.wp-core-ui select.yoo-status-filter option:hover,
.wp-core-ui select.yoo-status-filter option:focus {
    background: var(--yp-brand, var(--_yp-primary, #eda934)) !important;
    background-color: var(--yp-brand, var(--_yp-primary, #eda934)) !important;
    color: #fff !important;
}

/* For Firefox */
select.yoo-status-filter option:-moz-selected,
select.yoo-status-filter option:-moz-focusring {
    background: var(--yp-brand, var(--_yp-primary, #eda934)) !important;
    background-color: var(--yp-brand, var(--_yp-primary, #eda934)) !important;
    color: #fff !important;
}

/* Override WordPress default blue - Multiple approaches */
select.yoo-status-filter option:checked:not(:disabled) {
    background: #fff !important;
    background-color: #fff !important;
    color: var(--yp-text) !important;
}

select.yoo-status-filter option:checked {
    background-color: #fff !important;
    background: #fff !important;
    color: var(--yp-text) !important;
}

/* Force brand color for hover/focus (replace WordPress blue) */
select.yoo-status-filter option:focus,
select.yoo-status-filter option:active {
    background: var(--yp-brand, var(--_yp-primary, #eda934)) !important;
    background-color: var(--yp-brand, var(--_yp-primary, #eda934)) !important;
    color: #fff !important;
}

/* Dark mode — Studio Hub (html attr from active admin theme) */
html[data-yooadmin-studio-color-mode-effective="dark"] select.yoo-status-filter,
html[data-yooadmin-studio-color-mode-effective="dark"] select#yoo-status-filter,
html[data-yooadmin-studio-color-mode-effective="dark"] body.wp-admin select.yoo-status-filter,
html[data-yooadmin-studio-color-mode-effective="dark"] body.wp-admin select.yoo-status-filter:focus,
html[data-yooadmin-studio-color-mode-effective="dark"] body.wp-admin select.yoo-status-filter:focus-visible,
html[data-yooadmin-studio-color-mode-effective="dark"] body.wp-admin select.yoo-status-filter:active,
html[data-yooadmin-studio-color-mode-effective="dark"] body.wp-admin select.yoo-status-filter:hover,
html[data-yooadmin-studio-color-mode-effective="dark"] .wp-core-ui select.yoo-status-filter:focus,
html[data-yooadmin-studio-color-mode-effective="dark"] .wp-core-ui select.yoo-status-filter:focus-visible,
html[data-yooadmin-studio-color-mode-effective="dark"] .wp-core-ui select.yoo-status-filter:active,
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective="dark"] select.yoo-status-filter,
html.yooadmin-studio-hub-html[data-yooadmin-studio-color-mode-effective="dark"] select#yoo-status-filter {
    color-scheme: dark !important;
    -webkit-appearance: none !important;
    appearance: none !important;
    background: #22262e !important;
    background-color: #22262e !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%239aa5b1' d='M6 9L1 4h10z'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 12px center !important;
    background-size: 12px !important;
    color: #cfd6e0 !important;
    border: 1px solid rgba(255, 255, 255, 0.14) !important;
    border-color: rgba(255, 255, 255, 0.14) !important;
    box-shadow: none !important;
    outline: none !important;
}

html[data-yooadmin-studio-color-mode-effective="dark"] select.yoo-status-filter option,
html[data-yooadmin-studio-color-mode-effective="dark"] select.yoo-status-filter option:checked,
html[data-yooadmin-studio-color-mode-effective="dark"] select.yoo-status-filter option[selected] {
    background: #22262e !important;
    background-color: #22262e !important;
    color: #cfd6e0 !important;
}

.yoo-wordpress-results.yoo-list-view-mode .yoo-plugin-description {
    color: var(--_yp-text-500);
    font-size: 13px;
    line-height: 1.6;
    margin: 0;
    position: relative;
}

.yoo-wordpress-results.yoo-list-view-mode .yoo-plugin-description:not(.expanded) {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    max-height: calc(1.6em * 3);
}

.yoo-wordpress-results.yoo-list-view-mode .yoo-plugin-description.expanded {
    display: block !important;
    max-height: none !important;
    overflow: visible !important;
    -webkit-line-clamp: unset !important;
    line-clamp: unset !important;
    -webkit-box-orient: unset !important;
}

.yoo-wordpress-results.yoo-list-view-mode .yoo-description-toggle {
    color: var(--_yp-primary);
    background: none;
    border: none;
    padding: 0;
    margin: 0;
    margin-left: 4px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    display: inline;
    vertical-align: middle;
    white-space: nowrap;
    z-index: 10;
    position: relative;
    line-height: 1.6;
}

.yoo-wordpress-results.yoo-list-view-mode .yoo-plugin-description:not(.expanded) .yoo-description-toggle {
    position: absolute;
    right: 0;
    bottom: 0;
    background: linear-gradient(to right, rgba(255, 255, 255, 0) 0%, #fff 15px, #fff 100%);
    padding-left: 20px;
    margin-left: 0;
    vertical-align: middle;
    transform: translateY(0);
}

html[data-yooadmin-studio-color-mode-effective="dark"] .yoo-wordpress-results.yoo-list-view-mode .yoo-plugin-description:not(.expanded) .yoo-description-toggle {
    background: linear-gradient(to right, rgba(26, 29, 35, 0) 0%, #1a1d23 15px, #1a1d23 100%) !important;
    color: var(--_yp-primary, #eda934) !important;
}

.yoo-wordpress-results.yoo-list-view-mode .yoo-plugin-description.expanded .yoo-description-toggle {
    position: relative;
    right: auto;
    bottom: auto;
    background: none;
    padding-left: 0;
    margin-left: 4px;
}

.yoo-wordpress-results.yoo-list-view-mode .yoo-description-toggle:hover {
    text-decoration: underline;
}

/* Update Info */
.yoo-wordpress-results.yoo-list-view-mode .yoo-plugin-update-info {
    max-height: 0;
    overflow: hidden;
    padding: 0 16px;
    background: #fff9f0;
    border-top: 1px solid #f9f0e2;
    border-bottom: 1px solid #f9f0e2;
    opacity: 0;
    transition: max-height 0.3s ease, opacity 0.3s ease, padding 0.3s ease;
    margin-top: 0;
}

.yoo-wordpress-results.yoo-list-view-mode .yoo-plugin-card:hover .yoo-plugin-update-info {
    max-height: 500px;
    opacity: 1;
    padding: 12px 16px;
}

.yoo-wordpress-results.yoo-list-view-mode .yoo-update-notice {
    background: #fff8e5;
    border-left: 3px solid #f59e0b;
    padding: 10px 12px;
    margin-bottom: 10px;
    margin-top: 0;
    border-radius: 4px;
    font-size: 13px;
    line-height: 1.5;
}

.yoo-wordpress-results.yoo-list-view-mode .yoo-update-notice strong {
    color: #92400e;
}

.yoo-wordpress-results.yoo-list-view-mode .yoo-update-details {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    font-size: 12px;
    margin: 0;
    padding: 0;
}

.yoo-wordpress-results.yoo-list-view-mode .yoo-update-version {
    color: var(--yp-text);
    margin: 0;
    padding: 0;
}

.yoo-wordpress-results.yoo-list-view-mode .yoo-update-version strong {
    color: #0369a1;
}

.yoo-wordpress-results.yoo-list-view-mode .yoo-update-link {
    color: var(--_yp-primary);
    text-decoration: none;
    font-weight: 500;
    margin: 0;
    padding: 0;
}

.yoo-wordpress-results.yoo-list-view-mode .yoo-update-link:hover {
    text-decoration: underline;
}

.yoo-wordpress-results.yoo-list-view-mode .yoo-update-package,
.yoo-wordpress-results.yoo-list-view-mode .yoo-update-no-package {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-weight: 500;
    margin: 0;
    padding: 0;
}

.yoo-wordpress-results.yoo-list-view-mode .yoo-update-package {
    color: #059669;
}

.yoo-wordpress-results.yoo-list-view-mode .yoo-update-package .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
}

.yoo-wordpress-results.yoo-list-view-mode .yoo-update-no-package {
    color: #d63638;
}

.yoo-wordpress-results.yoo-list-view-mode .yoo-update-no-package .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
}

/* Actions */
.yoo-wordpress-results.yoo-list-view-mode .yoo-plugin-actions {
    padding: 12px 9px;
    border-top: 1px solid #f0f0f1;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    background: #f6f7f7;
    border-radius: 0 0 8px 8px;
    margin: 0;
    align-items: center;
}

.yoo-wordpress-results.yoo-list-view-mode .yoo-action-btn {
    color: var(--_yp-primary);
    text-decoration: none;
    font-weight: 500;
    font-size: 13px;
    padding: 6px 8px;
    border-radius: 4px;
    transition: background 0.15s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
}

.yoo-wordpress-results.yoo-list-view-mode .yoo-action-btn .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
}

.yoo-wordpress-results.yoo-list-view-mode .yoo-action-btn:hover {
    background: color-mix(in srgb, var(--_yp-primary) 10%, transparent);
    color: var(--_yp-primary);
    text-decoration: none !important;
}

.yoo-wordpress-results.yoo-list-view-mode .yoo-action-btn:hover .dashicons {
    text-decoration: none !important;
}

.yoo-wordpress-results.yoo-list-view-mode .yoo-action-btn.danger {
    color: #d63638;
}

.yoo-wordpress-results.yoo-list-view-mode .yoo-action-btn.danger:hover {
    background: #fef0f0;
    color: #d63638;
    text-decoration: none !important;
}

.yoo-wordpress-results.yoo-list-view-mode .yoo-auto-update-toggle.enabled {
    color: #2a6e2d !important;
    background: transparent !important;
}

.yoo-wordpress-results.yoo-list-view-mode .yoo-auto-update-toggle.enabled .dashicons {
    color: #2a6e2d !important;
}

.yoo-wordpress-results.yoo-list-view-mode .yoo-auto-update-toggle.enabled:hover {
    background: color-mix(in srgb, #4caf50 10%, transparent) !important;
    color: #2a6e2d !important;
}

.yoo-wordpress-results.yoo-list-view-mode .yoo-action-btn.update {
    background: var(--_yp-primary) !important;
    color: #fff !important;
    font-weight: 600;
    order: -1;
    cursor: pointer;
}

.yoo-wordpress-results.yoo-list-view-mode .yoo-action-btn.update .dashicons {
    color: #fff !important;
}

.yoo-wordpress-results.yoo-list-view-mode .yoo-action-btn.update:hover {
    background: color-mix(in srgb, var(--_yp-primary) 88%, #000) !important;
    color: #fff !important;
    text-decoration: none !important;
}


body.wp-admin.plugins_page_yooadmin-plugins:not(.woocommerce_page_wc-admin) #wpbody-content > .wrap {
  background: transparent !important;
  border: none !important;
  border-radius: 0 !important;
  padding: 20px !important;
  margin: 0 !important;
  box-shadow: none !important;
  overflow: visible !important;
}

/*
 * Plugins Manager only (page=yooadmin-plugins, data-type=plugin) — smaller type & controls.
 * Does not affect Theme upload / Theme Manager (data-type=theme).
 */
body.wp-admin.plugins_page_yooadmin-plugins .yoo-upload-wrap[data-type="plugin"] .yoo-upload-header,
body.wp-admin.admin_page_yooadmin-plugins .yoo-upload-wrap[data-type="plugin"] .yoo-upload-header {
  margin-bottom: 22px;
  padding-bottom: 14px;
}

body.wp-admin.plugins_page_yooadmin-plugins .yoo-upload-wrap[data-type="plugin"] .yoo-upload-title,
body.wp-admin.admin_page_yooadmin-plugins .yoo-upload-wrap[data-type="plugin"] .yoo-upload-title {
  font-size: 19px;
  margin: 0 0 5px;
  line-height: 1.25;
}

body.wp-admin.plugins_page_yooadmin-plugins .yoo-upload-wrap[data-type="plugin"] .yoo-upload-title-dashicon,
body.wp-admin.admin_page_yooadmin-plugins .yoo-upload-wrap[data-type="plugin"] .yoo-upload-title-dashicon {
  vertical-align: middle;
  margin-right: 6px;
  font-size: 22px;
  width: 22px;
  height: 22px;
}

body.wp-admin.plugins_page_yooadmin-plugins .yoo-upload-wrap[data-type="plugin"] .yoo-upload-subtitle,
body.wp-admin.admin_page_yooadmin-plugins .yoo-upload-wrap[data-type="plugin"] .yoo-upload-subtitle {
  font-size: 14px;
  line-height: 1.5;
}

body.wp-admin.plugins_page_yooadmin-plugins .yoo-upload-wrap[data-type="plugin"] .yoo-upload-header-actions,
body.wp-admin.admin_page_yooadmin-plugins .yoo-upload-wrap[data-type="plugin"] .yoo-upload-header-actions {
  gap: 8px;
}

body.wp-admin.plugins_page_yooadmin-plugins .yoo-upload-wrap[data-type="plugin"] .yoo-check-updates-btn,
body.wp-admin.admin_page_yooadmin-plugins .yoo-upload-wrap[data-type="plugin"] .yoo-check-updates-btn {
  padding: 6px 11px;
  font-size: 12px;
  gap: 5px;
}

body.wp-admin.plugins_page_yooadmin-plugins .yoo-upload-wrap[data-type="plugin"] .yoo-check-updates-btn .dashicons,
body.wp-admin.admin_page_yooadmin-plugins .yoo-upload-wrap[data-type="plugin"] .yoo-check-updates-btn .dashicons {
  width: 15px;
  height: 15px;
  font-size: 15px;
}

body.wp-admin.plugins_page_yooadmin-plugins .yoo-upload-wrap[data-type="plugin"] .yoo-upload-toggle-btn,
body.wp-admin.admin_page_yooadmin-plugins .yoo-upload-wrap[data-type="plugin"] .yoo-upload-toggle-btn {
  padding: 6px 12px;
  font-size: 12px;
  gap: 6px;
}

body.wp-admin.plugins_page_yooadmin-plugins .yoo-upload-wrap[data-type="plugin"] .yoo-upload-toggle-btn .dashicons,
body.wp-admin.admin_page_yooadmin-plugins .yoo-upload-wrap[data-type="plugin"] .yoo-upload-toggle-btn .dashicons {
  font-size: 15px;
  width: 15px;
  height: 15px;
}

/* Theme Manager — same header / title scale as Plugins Manager */
.yoo-theme-manager-wrap.yoo-upload-wrap .yoo-upload-header {
  margin-bottom: 22px;
  padding-bottom: 14px;
}

.yoo-theme-manager-wrap.yoo-upload-wrap .yoo-upload-title {
  font-size: 19px;
  margin: 0 0 5px;
  line-height: 1.25;
}

.yoo-theme-manager-wrap.yoo-upload-wrap .yoo-upload-title .yoo-upload-title-dashicon {
  vertical-align: middle;
  margin-right: 6px;
  font-size: 22px;
  width: 22px;
  height: 22px;
}

.yoo-theme-manager-wrap.yoo-upload-wrap .yoo-upload-subtitle {
  font-size: 12px;
  line-height: 1.45;
}

.yoo-theme-manager-wrap.yoo-upload-wrap .yoo-upload-header-actions {
  gap: 8px;
}

.yoo-theme-manager-wrap.yoo-upload-wrap .yoo-check-updates-btn {
  padding: 6px 11px;
  font-size: 12px;
  gap: 5px;
}

.yoo-theme-manager-wrap.yoo-upload-wrap .yoo-check-updates-btn .dashicons {
  width: 15px;
  height: 15px;
  font-size: 15px;
}

.yoo-theme-manager-wrap.yoo-upload-wrap .yoo-upload-toggle-btn {
  padding: 6px 12px;
  font-size: 12px;
  gap: 6px;
}

.yoo-theme-manager-wrap.yoo-upload-wrap .yoo-upload-toggle-btn .dashicons {
  font-size: 15px;
  width: 15px;
  height: 15px;
}

/* Theme Manager — upload dropzone (Plugin Manager scale) */
.yoo-theme-manager-wrap.yoo-upload-wrap .yoo-upload-section {
  padding: 16px;
  margin-bottom: 22px;
}

.yoo-theme-manager-wrap.yoo-upload-wrap .yoo-upload-container {
  padding: 16px;
}

.yoo-theme-manager-wrap.yoo-upload-wrap .yoo-upload-area {
  padding: 20px 16px;
}

.yoo-theme-manager-wrap.yoo-upload-wrap .yoo-upload-icon {
  margin-bottom: 10px;
}

.yoo-theme-manager-wrap.yoo-upload-wrap .yoo-upload-icon .dashicons {
  font-size: 36px;
  width: 36px;
  height: 36px;
}

.yoo-theme-manager-wrap.yoo-upload-wrap .yoo-upload-area h3 {
  font-size: 16px;
  margin: 0 0 5px;
}

.yoo-theme-manager-wrap.yoo-upload-wrap .yoo-upload-area p {
  font-size: 12px;
  margin: 0 0 12px;
}

body.wp-admin.plugins_page_yooadmin-plugins .yoo-upload-wrap[data-type="plugin"] .yoo-update-notice-bar,
body.wp-admin.admin_page_yooadmin-plugins .yoo-upload-wrap[data-type="plugin"] .yoo-update-notice-bar {
  padding: 9px 12px;
  margin-bottom: 12px;
  font-size: 12px;
  gap: 10px;
}

body.wp-admin.plugins_page_yooadmin-plugins .yoo-upload-wrap[data-type="plugin"] .yoo-update-notice-bar .yoo-notice-icon .dashicons,
body.wp-admin.admin_page_yooadmin-plugins .yoo-upload-wrap[data-type="plugin"] .yoo-update-notice-bar .yoo-notice-icon .dashicons {
  font-size: 17px;
  width: 17px;
  height: 17px;
}

body.wp-admin.plugins_page_yooadmin-plugins .yoo-upload-wrap[data-type="plugin"] .yoo-upload-section,
body.wp-admin.admin_page_yooadmin-plugins .yoo-upload-wrap[data-type="plugin"] .yoo-upload-section {
  padding: 16px;
  margin-bottom: 22px;
}

body.wp-admin.plugins_page_yooadmin-plugins .yoo-upload-wrap[data-type="plugin"] .yoo-upload-container,
body.wp-admin.admin_page_yooadmin-plugins .yoo-upload-wrap[data-type="plugin"] .yoo-upload-container {
  padding: 16px;
}

body.wp-admin.plugins_page_yooadmin-plugins .yoo-upload-wrap[data-type="plugin"] .yoo-upload-area,
body.wp-admin.admin_page_yooadmin-plugins .yoo-upload-wrap[data-type="plugin"] .yoo-upload-area {
  padding: 20px 16px;
}

body.wp-admin.plugins_page_yooadmin-plugins .yoo-upload-wrap[data-type="plugin"] .yoo-upload-icon,
body.wp-admin.admin_page_yooadmin-plugins .yoo-upload-wrap[data-type="plugin"] .yoo-upload-icon {
  margin-bottom: 10px;
}

body.wp-admin.plugins_page_yooadmin-plugins .yoo-upload-wrap[data-type="plugin"] .yoo-upload-icon .dashicons,
body.wp-admin.admin_page_yooadmin-plugins .yoo-upload-wrap[data-type="plugin"] .yoo-upload-icon .dashicons {
  font-size: 36px;
  width: 36px;
  height: 36px;
}

body.wp-admin.plugins_page_yooadmin-plugins .yoo-upload-wrap[data-type="plugin"] .yoo-upload-area h3,
body.wp-admin.admin_page_yooadmin-plugins .yoo-upload-wrap[data-type="plugin"] .yoo-upload-area h3 {
  font-size: 16px;
  margin: 0 0 5px;
}

body.wp-admin.plugins_page_yooadmin-plugins .yoo-upload-wrap[data-type="plugin"] .yoo-upload-area p,
body.wp-admin.admin_page_yooadmin-plugins .yoo-upload-wrap[data-type="plugin"] .yoo-upload-area p {
  font-size: 12px;
  margin: 0 0 12px;
}

body.wp-admin.plugins_page_yooadmin-plugins .yoo-upload-wrap[data-type="plugin"] .yoo-browse-btn,
body.wp-admin.admin_page_yooadmin-plugins .yoo-upload-wrap[data-type="plugin"] .yoo-browse-btn {
  padding: 7px 16px;
  font-size: 12px;
}

body.wp-admin.plugins_page_yooadmin-plugins .yoo-upload-wrap[data-type="plugin"] .yoo-upload-result,
body.wp-admin.admin_page_yooadmin-plugins .yoo-upload-wrap[data-type="plugin"] .yoo-upload-result {
  padding: 16px 12px;
}

body.wp-admin.plugins_page_yooadmin-plugins .yoo-upload-wrap[data-type="plugin"] .yoo-result-icon,
body.wp-admin.admin_page_yooadmin-plugins .yoo-upload-wrap[data-type="plugin"] .yoo-result-icon {
  margin-bottom: 8px;
}

body.wp-admin.plugins_page_yooadmin-plugins .yoo-upload-wrap[data-type="plugin"] .yoo-result-icon .dashicons,
body.wp-admin.admin_page_yooadmin-plugins .yoo-upload-wrap[data-type="plugin"] .yoo-result-icon .dashicons {
  font-size: 36px;
  width: 36px;
  height: 36px;
}

body.wp-admin.plugins_page_yooadmin-plugins .yoo-upload-wrap[data-type="plugin"] .yoo-upload-result--success .yoo-result-icon .dashicons,
body.wp-admin.plugins_page_yooadmin-plugins .yoo-upload-wrap[data-type="plugin"] .yoo-upload-result--error .yoo-result-icon .dashicons,
body.wp-admin.plugins_page_yooadmin-plugins .yoo-upload-wrap[data-type="plugin"] .yoo-upload-result--warning .yoo-result-icon .dashicons,
body.wp-admin.admin_page_yooadmin-plugins .yoo-upload-wrap[data-type="plugin"] .yoo-upload-result--success .yoo-result-icon .dashicons,
body.wp-admin.admin_page_yooadmin-plugins .yoo-upload-wrap[data-type="plugin"] .yoo-upload-result--error .yoo-result-icon .dashicons,
body.wp-admin.admin_page_yooadmin-plugins .yoo-upload-wrap[data-type="plugin"] .yoo-upload-result--warning .yoo-result-icon .dashicons {
  font-size: 34px;
  width: 34px;
  height: 34px;
}

body.wp-admin.plugins_page_yooadmin-plugins .yoo-upload-wrap[data-type="plugin"] .yoo-result-title,
body.wp-admin.admin_page_yooadmin-plugins .yoo-upload-wrap[data-type="plugin"] .yoo-result-title {
  font-size: 16px;
  margin: 0 0 5px;
}

body.wp-admin.plugins_page_yooadmin-plugins .yoo-upload-wrap[data-type="plugin"] .yoo-result-message,
body.wp-admin.admin_page_yooadmin-plugins .yoo-upload-wrap[data-type="plugin"] .yoo-result-message {
  font-size: 12px;
  margin: 0 0 14px;
  line-height: 1.5;
}

body.wp-admin.plugins_page_yooadmin-plugins .yoo-upload-wrap[data-type="plugin"] .yoo-upload-result--error .yoo-result-title,
body.wp-admin.admin_page_yooadmin-plugins .yoo-upload-wrap[data-type="plugin"] .yoo-upload-result--error .yoo-result-title {
  font-size: 15px;
}

body.wp-admin.plugins_page_yooadmin-plugins .yoo-upload-wrap[data-type="plugin"] .yoo-upload-result--error .yoo-result-message,
body.wp-admin.admin_page_yooadmin-plugins .yoo-upload-wrap[data-type="plugin"] .yoo-upload-result--error .yoo-result-message {
  font-size: 12px;
  color: #50575e;
}

body.wp-admin.plugins_page_yooadmin-plugins .yoo-upload-wrap[data-type="plugin"] .yoo-upload-container--has-result,
body.wp-admin.admin_page_yooadmin-plugins .yoo-upload-wrap[data-type="plugin"] .yoo-upload-container--has-result {
  min-height: 140px;
}

body.wp-admin.plugins_page_yooadmin-plugins .yoo-upload-wrap[data-type="plugin"] #upload-result.yoo-upload-result--error,
body.wp-admin.admin_page_yooadmin-plugins .yoo-upload-wrap[data-type="plugin"] #upload-result.yoo-upload-result--error,
body.wp-admin.plugins_page_yooadmin-plugins .yoo-upload-wrap[data-type="plugin"] #upload-result.yoo-upload-result--warning,
body.wp-admin.admin_page_yooadmin-plugins .yoo-upload-wrap[data-type="plugin"] #upload-result.yoo-upload-result--warning,
body.wp-admin.plugins_page_yooadmin-plugins .yoo-upload-wrap[data-type="plugin"] #upload-result.yoo-upload-result--success,
body.wp-admin.admin_page_yooadmin-plugins .yoo-upload-wrap[data-type="plugin"] #upload-result.yoo-upload-result--success {
  display: flex !important;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  box-sizing: border-box;
  text-align: center;
}

body.wp-admin.plugins_page_yooadmin-plugins .yoo-upload-wrap[data-type="plugin"] #upload-result.yoo-upload-result--error > *,
body.wp-admin.admin_page_yooadmin-plugins .yoo-upload-wrap[data-type="plugin"] #upload-result.yoo-upload-result--error > *,
body.wp-admin.plugins_page_yooadmin-plugins .yoo-upload-wrap[data-type="plugin"] #upload-result.yoo-upload-result--warning > *,
body.wp-admin.admin_page_yooadmin-plugins .yoo-upload-wrap[data-type="plugin"] #upload-result.yoo-upload-result--warning > *,
body.wp-admin.plugins_page_yooadmin-plugins .yoo-upload-wrap[data-type="plugin"] #upload-result.yoo-upload-result--success > *,
body.wp-admin.admin_page_yooadmin-plugins .yoo-upload-wrap[data-type="plugin"] #upload-result.yoo-upload-result--success > * {
  width: 100%;
  max-width: 36rem;
  margin-inline: auto;
  float: none !important;
  clear: both !important;
  text-align: center !important;
}

body.wp-admin.plugins_page_yooadmin-plugins .yoo-upload-wrap[data-type="plugin"] .yoo-upload-result--error .yoo-result-title,
body.wp-admin.admin_page_yooadmin-plugins .yoo-upload-wrap[data-type="plugin"] .yoo-upload-result--error .yoo-result-title {
  color: #1d2327;
  display: block !important;
}

body.wp-admin.plugins_page_yooadmin-plugins .yoo-upload-wrap[data-type="plugin"] .yoo-upload-result--error .yoo-result-message,
body.wp-admin.admin_page_yooadmin-plugins .yoo-upload-wrap[data-type="plugin"] .yoo-upload-result--error .yoo-result-message {
  display: block !important;
  width: 100% !important;
  max-width: 36rem !important;
  margin: 0 auto 14px !important;
  text-align: center !important;
}

body.wp-admin.plugins_page_yooadmin-plugins .yoo-upload-wrap[data-type="plugin"] .yoo-upload-result--error .yoo-upload-error-detail,
body.wp-admin.admin_page_yooadmin-plugins .yoo-upload-wrap[data-type="plugin"] .yoo-upload-result--error .yoo-upload-error-detail {
  display: block;
  width: 100%;
  text-align: center !important;
}

html[dir="rtl"] body.wp-admin.plugins_page_yooadmin-plugins .yoo-upload-wrap[data-type="plugin"] .yoo-upload-result--error .yoo-result-message,
html[dir="rtl"] body.wp-admin.admin_page_yooadmin-plugins .yoo-upload-wrap[data-type="plugin"] .yoo-upload-result--error .yoo-result-message,
html[dir="rtl"] body.wp-admin.plugins_page_yooadmin-plugins .yoo-upload-wrap[data-type="plugin"] .yoo-upload-result--error .yoo-upload-error-detail,
html[dir="rtl"] body.wp-admin.admin_page_yooadmin-plugins .yoo-upload-wrap[data-type="plugin"] .yoo-upload-result--error .yoo-upload-error-detail {
  text-align: center !important;
}

body.wp-admin.plugins_page_yooadmin-plugins .yoo-upload-wrap[data-type="plugin"] .yoo-result-actions,
body.wp-admin.admin_page_yooadmin-plugins .yoo-upload-wrap[data-type="plugin"] .yoo-result-actions {
  gap: 8px;
}

body.wp-admin.plugins_page_yooadmin-plugins .yoo-upload-wrap[data-type="plugin"] .yoo-result-actions .yoo-btn,
body.wp-admin.admin_page_yooadmin-plugins .yoo-upload-wrap[data-type="plugin"] .yoo-result-actions .yoo-btn {
  padding: 7px 14px;
  font-size: 12px;
}

body.wp-admin.plugins_page_yooadmin-plugins .yoo-upload-wrap[data-type="plugin"] .yoo-view-mode-btn,
body.wp-admin.admin_page_yooadmin-plugins .yoo-upload-wrap[data-type="plugin"] .yoo-view-mode-btn {
  padding: 4px 7px;
}

body.wp-admin.plugins_page_yooadmin-plugins .yoo-upload-wrap[data-type="plugin"] .yoo-view-mode-btn .dashicons,
body.wp-admin.admin_page_yooadmin-plugins .yoo-upload-wrap[data-type="plugin"] .yoo-view-mode-btn .dashicons {
  font-size: 15px;
  width: 15px;
  height: 15px;
}

body.wp-admin.plugins_page_yooadmin-plugins .yoo-upload-wrap[data-type="plugin"] .yoo-installed-view-controls,
body.wp-admin.admin_page_yooadmin-plugins .yoo-upload-wrap[data-type="plugin"] .yoo-installed-view-controls {
  gap: 8px;
  margin-right: 8px;
}

body.wp-admin.plugins_page_yooadmin-plugins .yoo-upload-wrap[data-type="plugin"] .yoo-wordpress-results:not(.yoo-list-view-mode) .yoo-plugin-actions .yoo-install-btn,
body.wp-admin.plugins_page_yooadmin-plugins .yoo-upload-wrap[data-type="plugin"] .yoo-wordpress-results:not(.yoo-list-view-mode) .yoo-plugin-actions .yoo-delete-btn,
body.wp-admin.plugins_page_yooadmin-plugins .yoo-upload-wrap[data-type="plugin"] .yoo-wordpress-results:not(.yoo-list-view-mode) .yoo-plugin-actions .yoo-more-info,
body.wp-admin.admin_page_yooadmin-plugins .yoo-upload-wrap[data-type="plugin"] .yoo-wordpress-results:not(.yoo-list-view-mode) .yoo-plugin-actions .yoo-install-btn,
body.wp-admin.admin_page_yooadmin-plugins .yoo-upload-wrap[data-type="plugin"] .yoo-wordpress-results:not(.yoo-list-view-mode) .yoo-plugin-actions .yoo-delete-btn,
body.wp-admin.admin_page_yooadmin-plugins .yoo-upload-wrap[data-type="plugin"] .yoo-wordpress-results:not(.yoo-list-view-mode) .yoo-plugin-actions .yoo-more-info {
  min-height: 34px;
  padding: 6px 10px;
  font-size: 12px;
  line-height: 1.35;
  box-sizing: border-box;
  gap: 4px;
}

body.wp-admin.plugins_page_yooadmin-plugins .yoo-upload-wrap[data-type="plugin"] .yoo-wordpress-results:not(.yoo-list-view-mode) .yoo-plugin-actions .yoo-install-btn .dashicons,
body.wp-admin.plugins_page_yooadmin-plugins .yoo-upload-wrap[data-type="plugin"] .yoo-wordpress-results:not(.yoo-list-view-mode) .yoo-plugin-actions .yoo-delete-btn .dashicons,
body.wp-admin.admin_page_yooadmin-plugins .yoo-upload-wrap[data-type="plugin"] .yoo-wordpress-results:not(.yoo-list-view-mode) .yoo-plugin-actions .yoo-install-btn .dashicons,
body.wp-admin.admin_page_yooadmin-plugins .yoo-upload-wrap[data-type="plugin"] .yoo-wordpress-results:not(.yoo-list-view-mode) .yoo-plugin-actions .yoo-delete-btn .dashicons {
  font-size: 14px;
  width: 14px;
  height: 14px;
}

body.wp-admin.plugins_page_yooadmin-plugins .yoo-upload-wrap[data-type="plugin"] .yoo-wordpress-results.yoo-list-view-mode .yoo-action-btn,
body.wp-admin.admin_page_yooadmin-plugins .yoo-upload-wrap[data-type="plugin"] .yoo-wordpress-results.yoo-list-view-mode .yoo-action-btn {
  font-size: 12px;
  padding: 5px 7px;
  gap: 5px;
}

body.wp-admin.plugins_page_yooadmin-plugins .yoo-upload-wrap[data-type="plugin"] .yoo-wordpress-results.yoo-list-view-mode .yoo-action-btn .dashicons,
body.wp-admin.admin_page_yooadmin-plugins .yoo-upload-wrap[data-type="plugin"] .yoo-wordpress-results.yoo-list-view-mode .yoo-action-btn .dashicons {
  font-size: 14px;
  width: 14px;
  height: 14px;
}

/* Results Grid - Smart responsive */
.yoo-wordpress-results {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 16px;
}

/* Remove yoo-plugins-grid class from normal view - only use for list view */
.yoo-wordpress-results:not(.yoo-list-view-mode) {
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
}

.yoo-loading,
.yoo-loading-more {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 64px 20px;
  color: var(--yp-text);
  font-size: 14px;
  text-align: center;
}

.yoo-loading-more {
  padding: 20px;
  margin: 20px 0;
}

/* Skeleton Loading */
.yoo-skeleton-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 16px;
  min-height: 300px;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.yoo-skeleton-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.8),
    transparent
  );
  animation: skeleton-loading 1.5s infinite;
  z-index: 1;
}

.yoo-skeleton-card::after {
  content: '';
  position: absolute;
  top: 16px;
  left: 16px;
  width: 96px;
  height: 96px;
  background: #f3f4f6;
  border-radius: 8px;
}

@keyframes skeleton-loading {
  0% {
    left: -100%;
  }
  100% {
    left: 100%;
  }
}

.yoo-skeleton-header {
  display: flex;
  gap: 16px;
  margin-bottom: 12px;
}

.yoo-skeleton-icon {
  width: 96px;
  height: 96px;
  background: #f3f4f6;
  border-radius: 8px;
  flex-shrink: 0;
}

.yoo-skeleton-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 8px;
}

.yoo-skeleton-title {
  width: 70%;
  height: 20px;
  background: #f3f4f6;
  border-radius: 4px;
}

.yoo-skeleton-author {
  width: 40%;
  height: 14px;
  background: #f3f4f6;
  border-radius: 4px;
}

.yoo-skeleton-description {
  width: 100%;
  height: 60px;
  background: #f3f4f6;
  border-radius: 4px;
  margin: 12px 0;
}

.yoo-skeleton-meta {
  display: flex;
  gap: 12px;
  margin-top: auto;
}

.yoo-skeleton-stat {
  width: 30%;
  height: 16px;
  background: #f3f4f6;
  border-radius: 4px;
}

.yoo-skeleton-buttons {
  display: flex;
  gap: 8px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid #e5e7eb;
}

.yoo-skeleton-button {
  flex: 1;
  height: 40px;
  background: #f3f4f6;
  border-radius: 4px;
}

.yoo-loading .dashicons,
.yoo-loading-more .dashicons {
  display: none; /* Hide dashicons, use spinner circle instead */
}

/* Spinner circle (like notifications) */
.yoo-loading .yoo-spinner-circle,
.yoo-loading-more .yoo-spinner-circle {
  width: 40px;
  height: 40px;
  border: 3px solid rgba(0, 0, 0, 0.1);
  border-top-color: var(--yp-brand, #eda934);
  border-radius: 50%;
  animation: yp-spin 0.8s linear infinite;
  margin-bottom: 16px;
}

.yoo-loading .yoo-loading-text,
.yoo-loading-more .yoo-loading-text {
  font-size: 14px;
  color: var(--yp-text-secondary, #666);
  font-weight: 500;
  text-transform: lowercase;
  letter-spacing: 0.5px;
}

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

.dashicons.spin {
  animation: spin 1s linear infinite;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.yoo-no-results {
  grid-column: 1 / -1;
  text-align: center;
  padding: 64px 20px;
  color: var(--yp-text);
  font-size: 16px;
  margin: 0;
}

.yoo-no-favorites-message {
  grid-column: 1 / -1;
  max-width: 600px;
  margin: 40px auto;
  padding: 32px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  text-align: center;
}

.yoo-no-favorites-message .dashicons {
  font-size: 48px;
  width: 48px;
  height: 48px;
  color: #f59e0b;
  margin-bottom: 16px;
}

.yoo-no-favorites-message h3 {
  margin: 0 0 16px 0;
  color: var(--yp-text);
  font-size: 20px;
}

.yoo-no-favorites-message p {
  margin: 0 0 12px 0;
  color: var(--yp-text);
  line-height: 1.6;
}

.yoo-favorites-help {
  margin-top: 24px;
  padding: 20px;
  background: #f9fafb;
  border-radius: 6px;
  text-align: left;
}

.yoo-favorites-help p {
  margin: 0 0 12px 0;
  font-weight: 600;
  color: var(--yp-text);
}

.yoo-favorites-help ol {
  margin: 0;
  padding-left: 20px;
  color: var(--yp-text);
}

.yoo-favorites-help li {
  margin-bottom: 8px;
  line-height: 1.6;
}

.yoo-favorites-help a {
  color: #f59e0b;
  text-decoration: none;
}

.yoo-favorites-help a:hover {
  text-decoration: underline;
}

/* Plugin Card */
/* Grid view cards - only for non-list view */
.yoo-wordpress-results:not(.yoo-list-view-mode) .yoo-plugin-card {
  background: #fff;
  border: 1px solid #dcdcde;
  border-radius: 8px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 3px;
  transition: all 0.2s;
  position: relative;
}

.yoo-wordpress-results:not(.yoo-list-view-mode) .yoo-plugin-card:hover {
  border-color: #999;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.yoo-wordpress-results:not(.yoo-list-view-mode) .yoo-plugin-header {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding-bottom: 12px;
}

/* Grid View Icon (normal view) - different from list view */
.yoo-wordpress-results:not(.yoo-list-view-mode) .yoo-plugin-icon {
  width: 96px;
  height: 96px;
  min-width: 96px;
  border-radius: 8px;
  overflow: hidden;
  background: #f6f7f7;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.yoo-wordpress-results:not(.yoo-list-view-mode) .yoo-plugin-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.yoo-wordpress-results:not(.yoo-list-view-mode) .yoo-plugin-icon .dashicons {
  font-size: 48px;
  width: 48px;
  height: 48px;
  color: var(--_yp-primary, #eda934);
}

.yoo-plugin-icon.yoo-icon-primary,
.yoo-wordpress-results .yoo-plugin-icon.yoo-icon-primary {
  background: var(--yp-primary, var(--_yp-primary, #eda934)) !important;
  -webkit-mask-image: var(--icon-url);
  mask-image: var(--icon-url);
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
}

/* Checkbox for grid view local plugins */
.yoo-wordpress-results:not(.yoo-list-view-mode) .yoo-plugin-card {
  position: relative;
}

.yoo-wordpress-results:not(.yoo-list-view-mode) .yoo-plugin-checkbox {
  position: absolute;
  top: 12px;
  left: 12px;
  width: 18px;
  height: 18px;
  cursor: pointer;
  accent-color: var(--_yp-primary);
  z-index: 11;
  opacity: 0;
  transition: opacity 0.2s;
  display: none !important; /* Always hide input checkbox in grid view - use label instead */
  visibility: hidden;
}

.yoo-wordpress-results:not(.yoo-list-view-mode) .yoo-plugin-checkbox-label {
  position: absolute;
  top: 12px;
  left: 12px;
  width: 18px;
  height: 18px;
  border: 2px solid #dcdcde;
  border-radius: 3px;
  background: #fff;
  cursor: pointer;
  z-index: 10;
  transition: all 0.2s;
  opacity: 0;
  display: none; /* Hide by default */
  visibility: hidden;
}

.yoo-wordpress-results:not(.yoo-list-view-mode) .yoo-plugin-card:hover .yoo-plugin-checkbox-label,
.yoo-wordpress-results:not(.yoo-list-view-mode) .yoo-plugin-checkbox:checked + .yoo-plugin-checkbox-label {
  opacity: 1;
  display: block; /* Show on hover or when checked */
  visibility: visible;
}

.yoo-wordpress-results:not(.yoo-list-view-mode) .yoo-plugin-checkbox:checked + .yoo-plugin-checkbox-label {
  background: var(--_yp-primary);
  border-color: var(--_yp-primary);
}

.yoo-wordpress-results:not(.yoo-list-view-mode) .yoo-plugin-checkbox:checked + .yoo-plugin-checkbox-label::after {
  content: '';
  position: absolute;
  left: 4px;
  top: 1px;
  width: 5px;
  height: 10px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

/* Update info for grid view */
.yoo-wordpress-results:not(.yoo-list-view-mode) .yoo-plugin-update-info {
  max-height: 0;
  overflow: hidden;
  padding: 0 16px;
  background: #fff9f0;
  border-top: 0;
  border-bottom: 0;
  opacity: 0;
  transition: max-height 0.3s ease, opacity 0.3s ease, padding 0.3s ease;
  margin: 0;
}

.yoo-wordpress-results:not(.yoo-list-view-mode) .yoo-plugin-card.has-update:hover .yoo-plugin-update-info {
  max-height: 500px;
  opacity: 1;
  padding: 12px 16px;
  border-top: 1px solid #f9f0e2;
  border-bottom: 1px solid #f9f0e2;
}

.yoo-wordpress-results:not(.yoo-list-view-mode) .yoo-update-notice {
  background: #fff8e5;
  border-left: 3px solid #f59e0b;
  padding: 10px 12px;
  margin-bottom: 10px;
  margin-top: 0;
  border-radius: 4px;
  font-size: 13px;
  line-height: 1.5;
}

.yoo-wordpress-results:not(.yoo-list-view-mode) .yoo-update-details {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  font-size: 12px;
  margin: 0;
  padding: 0;
}

.yoo-wordpress-results:not(.yoo-list-view-mode) .yoo-update-version {
  color: var(--yp-text);
  margin: 0;
  padding: 0;
}

.yoo-wordpress-results:not(.yoo-list-view-mode) .yoo-update-version strong {
  color: #0369a1;
}

.yoo-wordpress-results:not(.yoo-list-view-mode) .yoo-update-link {
  color: var(--_yp-primary);
  text-decoration: none;
  font-weight: 500;
  margin: 0;
  padding: 0;
}

.yoo-wordpress-results:not(.yoo-list-view-mode) .yoo-update-link:hover {
  text-decoration: underline;
}

.yoo-wordpress-results:not(.yoo-list-view-mode) .yoo-update-package,
.yoo-wordpress-results:not(.yoo-list-view-mode) .yoo-update-no-package {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-weight: 500;
  margin: 0;
  padding: 0;
}

.yoo-wordpress-results:not(.yoo-list-view-mode) .yoo-update-package {
  color: #059669;
}

.yoo-wordpress-results:not(.yoo-list-view-mode) .yoo-update-package .dashicons {
  font-size: 16px;
  width: 16px;
  height: 16px;
}

.yoo-wordpress-results:not(.yoo-list-view-mode) .yoo-update-no-package {
  color: #d63638;
}

.yoo-wordpress-results:not(.yoo-list-view-mode) .yoo-update-no-package .dashicons {
  font-size: 16px;
  width: 16px;
  height: 16px;
}

/* Update button for grid view */
.yoo-wordpress-results:not(.yoo-list-view-mode) .yoo-action-btn.update {
  background: var(--_yp-primary) !important;
  color: #fff !important;
  font-weight: 600;
  order: -1;
  border: none !important;
  padding: 6px 8px !important;
  border-radius: 4px !important;
  font-size: 13px !important;
  display: inline-flex !important;
  align-items: center !important;
  cursor: pointer;
  gap: 6px !important;
  text-decoration: none !important;
}

.yoo-wordpress-results:not(.yoo-list-view-mode) .yoo-action-btn.update .dashicons {
  color: #fff !important;
}

.yoo-wordpress-results:not(.yoo-list-view-mode) .yoo-action-btn.update:hover {
  background: color-mix(in srgb, var(--_yp-primary) 88%, #000) !important;
  color: #fff !important;
  text-decoration: none !important;
}

.yoo-wordpress-results:not(.yoo-list-view-mode) .yoo-action-btn.update:hover .dashicons {
  color: #fff !important;
}

.yoo-plugin-info {
  flex: 1;
  min-width: 0;
}

.yoo-plugin-title {
  font-size: 14px;
  font-weight: 600;
  margin: 0 0 4px 0;
  color: var(--yp-text);
  line-height: 1.4;
  text-align: left;
}

.yoo-plugin-author-link {
  font-size: 12px;
  color: var(--yp-text);
  margin: 0;
  text-align: left;
  display: flex;
  align-items: center;
  gap: 6px;
  justify-content: space-between;
}

.yoo-plugin-author-link a {
  color: #f59e0b;
  text-decoration: none;
  transition: color 0.2s;
}

.yoo-plugin-author-link a:hover {
  color: #f59e0b;
  text-decoration: underline;
}

.yoo-more-info-icon {
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  cursor: pointer;
  color: var(--_yp-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  opacity: 0.7;
  transition: opacity 0.2s;
  margin-left: auto;
}

.yoo-more-info-icon:hover {
  opacity: 1;
}

.yoo-more-info-icon .dashicons {
  font-size: 20px;
  width: 20px;
  height: 20px;
}

.yoo-plugin-description {
  font-size: 13px;
  color: var(--yp-text);
  margin: 0;
  text-align: left;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.yoo-plugin-meta {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 12px -16px 0 -16px;
  padding: 12px 16px 0 16px;
  border-top: 1px solid #e5e7eb;
}

.yoo-plugin-rating {
  display: flex;
  align-items: center;
  gap: 8px;
}

.yoo-stars {
  color: #f59e0b;
  font-size: 22px;
  letter-spacing: 2px;
  line-height: 1;
}

.yoo-rating-count {
  font-size: 12px;
  color: var(--yp-text);
}

.yoo-plugin-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 12px;
  color: var(--yp-text);
  text-align: left;
}

.yoo-stat {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.yoo-stat .dashicons {
  font-size: 16px;
  width: 16px;
  height: 16px;
}

/* Plugin Status for grid view - same as list view */
.yoo-wordpress-results:not(.yoo-list-view-mode) .yoo-plugin-status {
  padding: 3px 8px;
  border-radius: 3px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  white-space: nowrap;
  display: inline-block;
}

.yoo-wordpress-results:not(.yoo-list-view-mode) .yoo-plugin-status.active {
  background: #fff6e6;
  color: #eda934;
}

.yoo-wordpress-results:not(.yoo-list-view-mode) .yoo-plugin-status.inactive {
  background: #f0f0f1;
  color: var(--yp-text);
}

.yoo-plugin-author {
  font-size: 12px;
  color: var(--yp-text);
  font-style: italic;
  text-align: left;
}

.yoo-wordpress-results:not(.yoo-list-view-mode) .yoo-plugin-actions {
  display: flex;
  gap: 8px;
  margin: 16px -16px -16px -16px;
  padding: 16px;
  background: #f9fafb;
  border-top: 1px solid #e5e7eb;
}

.yoo-install-btn {
  flex: 1;
  padding: 8px 14px;
  background: var(--_yp-primary, #eda934);
  color: #fff;
  border: none;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.yoo-install-btn:hover:not(:disabled) {
  background: color-mix(in srgb, var(--_yp-primary, #eda934) 88%, #000);
}

.yoo-install-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.yoo-install-btn.yoo-dep-locked,
.yoo-install-btn.yoo-dep-locked:hover {
  opacity: 0.5;
  cursor: not-allowed;
  background: #999 !important;
  border-color: #999 !important;
}

.yoo-action-btn.yoo-dep-locked,
.yoo-action-btn.yoo-dep-locked:hover {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
  background: #999 !important;
  border-color: #999 !important;
  color: #fff !important;
}

.yoo-dep-info-icon {
  display: inline-flex;
  align-items: center;
  cursor: help;
  color: var(--_yp-primary, #eda934);
  margin-left: 4px;
  vertical-align: middle;
}

.yoo-dep-info-icon .dashicons {
  font-size: 18px;
  width: 18px;
  height: 18px;
}

.yoo-dep-tooltip {
  display: none;
  position: fixed;
  background: #fff;
  border: 1px solid #dcdcde;
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
  padding: 14px 18px;
  width: 340px;
  font-size: 13px;
  line-height: 1.6;
  color: #1d2327;
  z-index: 999999;
  pointer-events: none;
  white-space: normal;
}

.yoo-dep-tooltip strong {
  color: #1d2327;
  font-weight: 600;
}

.yoo-dep-tooltip em {
  color: #646970;
  font-style: normal;
  font-size: 12px;
}

.yoo-dep-info-icon:hover .yoo-dep-tooltip {
  display: block;
}

.yoo-plugin-requires-line {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  color: #646970;
  margin-top: 2px;
}

.yoo-plugin-requires-line .dashicons {
  font-size: 14px;
  width: 14px;
  height: 14px;
  color: var(--_yp-primary, #eda934);
}

.yoo-auto-update-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 8px;
  border: none;
  border-radius: 4px;
  background: transparent;
  color: #50575e;
  cursor: pointer;
  transition: all 0.15s ease;
  text-decoration: none;
  font-weight: 500;
  font-size: 13px;
}

.yoo-auto-update-toggle:hover {
  background: color-mix(in srgb, var(--_yp-primary) 10%, transparent);
  color: var(--_yp-primary);
}

.yoo-auto-update-toggle.enabled {
  color: #2a6e2d !important;
}

.yoo-auto-update-toggle.enabled .dashicons {
  color: #2a6e2d !important;
}

.yoo-auto-update-toggle.enabled:hover {
  background: color-mix(in srgb, #4caf50 10%, transparent);
  color: #2a6e2d !important;
}

.yoo-auto-update-toggle .dashicons {
  font-size: 16px;
  width: 16px;
  height: 16px;
}

.yoo-auto-update-toggle.yoo-loading-spin .dashicons {
  animation: yoo-spin 1s linear infinite;
}

@keyframes yoo-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.yoo-install-btn .dashicons {
  font-size: 16px;
  width: 16px;
  height: 16px;
}

.yoo-install-btn.yoo-btn-activate,
.yoo-btn-activate,
.yoo-activate-btn {
  background: var(--_yp-primary, #eda934) !important;
  color: #fff !important;
  border-color: var(--_yp-primary, #eda934) !important;
}

.yoo-btn-activate:hover,
.yoo-activate-btn:hover {
  background: color-mix(in srgb, var(--_yp-primary, #eda934) 85%, #000) !important;
  border-color: color-mix(in srgb, var(--_yp-primary, #eda934) 85%, #000) !important;
}

.yoo-btn-danger,
.yoo-delete-btn {
  background: white !important;
  color: var(--yp-text) !important;
  border: 1px solid #ddd !important;
  padding: 10px 16px;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.yoo-delete-btn:hover {
  background: #f9fafb;
  border-color: #999;
  color: var(--yp-text);
}

/* Click feedback animation - delete buttons */
.yoo-delete-btn.yoo-click-feedback,
.yoo-action-btn.yoo-delete-plugin-btn.yoo-click-feedback {
  animation: yoo-btn-click-pulse 0.35s ease;
}

.yoo-action-btn.yoo-delete-plugin-btn.yoo-click-feedback {
  display: inline-flex;
}

.yoo-install-btn.yoo-btn-active {
  background: #6b7280;
  border-color: #6b7280;
  cursor: default;
  opacity: 0.7;
}

.yoo-install-btn.yoo-btn-active:hover {
  background: #6b7280;
}

.yoo-more-info {
  padding: 10px 16px;
  background: #fff;
  color: var(--_yp-primary, #eda934);
  border: 1px solid var(--_yp-primary, #eda934);
  border-radius: 4px;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.yoo-more-info:hover {
  background: color-mix(in srgb, var(--_yp-primary, #eda934) 10%, #fff);
  color: var(--_yp-primary, #eda934);
}

/*
 * Grid card footer: Activate / Deactivate (.yoo-install-btn) shared one size; Delete & More details
 * used larger padding/font — unify min-height + padding so all actions align like Deactivate.
 */
.yoo-wordpress-results:not(.yoo-list-view-mode) .yoo-plugin-actions .yoo-install-btn,
.yoo-wordpress-results:not(.yoo-list-view-mode) .yoo-plugin-actions .yoo-delete-btn,
.yoo-wordpress-results:not(.yoo-list-view-mode) .yoo-plugin-actions .yoo-more-info {
  min-height: 40px;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.35;
  box-sizing: border-box;
}

/* Unified Card Heights - Only for grid view, not list view */
.yoo-wordpress-results:not(.yoo-list-view-mode) .yoo-plugin-card {
  display: grid;
  grid-template-rows: auto 1fr auto;
}

.yoo-wordpress-results:not(.yoo-list-view-mode) .yoo-plugin-header {
  min-height: 120px;
}

.yoo-wordpress-results:not(.yoo-list-view-mode) .yoo-plugin-title {
  min-height: 48px;
  display: flex;
  align-items: center;
}

/* Description wrapper for grid view */
.yoo-wordpress-results:not(.yoo-list-view-mode) .yoo-plugin-description-wrapper {
  position: relative;
  margin: 0;
  padding: 0;
  min-height: 0;
}

.yoo-wordpress-results:not(.yoo-list-view-mode) .yoo-plugin-description {
  font-size: 13px;
  color: var(--yp-text);
  margin: 0;
  text-align: left;
  line-height: 1.5;
  position: relative;
  min-height: 0;
}

.yoo-wordpress-results:not(.yoo-list-view-mode) .yoo-plugin-description:not(.expanded) {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  max-height: calc(1.5em * 3);
}

.yoo-wordpress-results:not(.yoo-list-view-mode) .yoo-plugin-description.expanded {
  display: block !important;
  max-height: none !important;
  overflow: visible !important;
  -webkit-line-clamp: unset !important;
  line-clamp: unset !important;
}

.yoo-wordpress-results:not(.yoo-list-view-mode) .yoo-description-toggle {
  color: var(--_yp-primary);
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  margin-left: 4px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  display: none; /* Hidden by default, shown by JS */
  vertical-align: middle;
  white-space: nowrap;
  z-index: 10;
  position: relative;
  line-height: 1.5;
}

.yoo-wordpress-results:not(.yoo-list-view-mode) .yoo-plugin-description:not(.expanded) .yoo-description-toggle {
  position: absolute;
  right: 0;
  bottom: 0;
  background: linear-gradient(to right, rgba(255, 255, 255, 0) 0%, #fff 15px, #fff 100%);
  padding-left: 20px;
  margin-left: 0;
  vertical-align: middle;
  transform: translateY(0);
}

.yoo-wordpress-results:not(.yoo-list-view-mode) .yoo-plugin-description.expanded .yoo-description-toggle {
  position: relative;
  right: auto;
  bottom: auto;
  background: none;
  padding-left: 0;
  margin-left: 4px;
}

.yoo-wordpress-results:not(.yoo-list-view-mode) .yoo-description-toggle:hover {
  text-decoration: underline;
}

/* Favorite Button */
.yoo-favorite-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: #fff;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  z-index: 10;
}

body.wp-admin .yoo-favorite-btn .dashicons,
.yoo-favorite-btn .dashicons {
  font-size: 20px !important;
  width: 20px !important;
  height: 20px !important;
  color: #d1d5db !important; /* default gray */
  -webkit-text-fill-color: #d1d5db !important;
  transition: color 0.2s;
}

.yoo-favorite-btn .dashicons::before {
  content: "\f487"; /* heart outline */
}

.yoo-favorite-btn:hover {
  background: #f9fafb;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

body.wp-admin .yoo-favorite-btn:hover .dashicons,
.yoo-favorite-btn:hover .dashicons {
  color: #ef4444 !important; /* red on hover */
  -webkit-text-fill-color: #ef4444 !important;
}

body.wp-admin .yoo-favorite-btn.is-favorite .dashicons,
.yoo-favorite-btn.is-favorite .dashicons {
  color: #eda934 !important; /* orange when favorited */
  -webkit-text-fill-color: #eda934 !important;
}

/* Ensure favorite button positioning works in favorites results */
.yoo-favorites-results .yoo-plugin-card {
  position: relative !important;
}

.yoo-favorites-results .yoo-favorite-btn {
  position: absolute !important;
  top: 12px !important;
  right: 12px !important;
  z-index: 10 !important;
}

/* Ensure favorites results use same grid layout as wp-results */
.yoo-favorites-results.yoo-wordpress-results,
#local-favorites-results.yoo-wordpress-results,
#wporg-favorites-results.yoo-wordpress-results {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr)) !important;
  gap: 16px !important;
  margin: 0 !important;
  padding: 0 24px 24px 24px !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

/* Force grid even if class is added later */
#local-favorites-results,
#wporg-favorites-results {
  display: block !important;
}

#local-favorites-results.yoo-wordpress-results,
#wporg-favorites-results.yoo-wordpress-results {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr)) !important;
  gap: 16px !important;
}

/* Remove margin-bottom from plugin cards in grid layout */
.yoo-favorites-results.yoo-wordpress-results .yoo-plugin-card,
#local-favorites-results.yoo-wordpress-results .yoo-plugin-card,
#wporg-favorites-results.yoo-wordpress-results .yoo-plugin-card {
  margin-bottom: 0 !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

/* Locked favorite button (requires upgrade) */
.yoo-favorite-btn-locked,
.yoo-favorites-btn-locked {
  opacity: 0.6;
  cursor: not-allowed;
}

.yoo-favorite-btn-locked:hover,
.yoo-favorites-btn-locked:hover {
  opacity: 0.8;
}

/* Upgrade tooltip */
.yoo-favorites-upgrade-tooltip {
  position: fixed;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 4px;
  padding: 12px 16px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  z-index: 999999;
  max-width: 300px;
}

.yoo-favorites-upgrade-tooltip p {
  margin: 0;
  color: #333;
  font-size: 14px;
  line-height: 1.4;
}

body.wp-admin .yoo-favorite-btn.is-favorite:hover .dashicons,
.yoo-favorite-btn.is-favorite:hover .dashicons {
  color: #d9a03e !important; /* darker orange on hover */
  -webkit-text-fill-color: #d9a03e !important;
}

.yoo-favorite-btn.is-favorite .dashicons::before {
  content: "\f487"; /* heart filled - same icon but orange */
}

/* Notification */
.yoo-notification {
  position: fixed;
  top: 32px;
  right: -300px;
  background: #10b981;
  color: white;
  padding: 12px 20px;
  border-radius: 4px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  display: flex;
  align-items: center;
  gap: 8px;
  z-index: 999999;
  transition: right 0.3s ease;
  font-size: 14px;
  font-weight: 500;
}

.yoo-notification.show {
  right: 20px;
}

.yoo-notification .dashicons {
  font-size: 20px;
  width: 20px;
  height: 20px;
}

body.wp-admin .yp-toast-message {
  position: fixed;
  top: 20px;
  right: 20px;
  background: #fff;
  border-left: 4px solid var(--yp-brand, #eda934);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  padding: 12px 16px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 280px;
  max-width: min(500px, calc(100vw - 40px));
  z-index: 100050;
  opacity: 0;
  transform: translateX(400px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  box-sizing: border-box;
}

body.wp-admin .yp-toast-message.yp-toast-show {
  opacity: 1;
  transform: translateX(0);
}

body.wp-admin .yp-toast-message.yp-toast-success {
  border-left-color: var(--yp-brand, #eda934);
}

body.wp-admin .yp-toast-message.yp-toast-error {
  border-left-color: #d63638;
}

body.wp-admin .yp-toast-message.yp-toast-info {
  border-left-color: var(--yp-brand, #eda934);
}

body.wp-admin .yp-toast-message .yp-toast-icon {
  font-size: 14px;
  font-weight: bold;
  flex-shrink: 0;
  line-height: 1;
}

body.wp-admin .yp-toast-message.yp-toast-success .yp-toast-icon {
  color: var(--yp-brand, #eda934);
}

body.wp-admin .yp-toast-message.yp-toast-error .yp-toast-icon {
  color: #d63638;
}

body.wp-admin .yp-toast-message.yp-toast-info .yp-toast-icon {
  color: var(--yp-brand, #eda934);
}

body.wp-admin .yp-toast-message .yp-toast-text {
  flex: 1;
  font-size: 12px;
  line-height: 1.45;
  color: #333;
}

/* Favorites Input Section */
.yoo-favorites-input {
  background: #fef8f0;
  border: 1px solid #fde8cc;
  border-radius: 8px;
  padding: 0;
  margin-bottom: 24px;
  overflow: hidden;
}

.yoo-favorites-tabs {
  display: flex;
  border-bottom: 1px solid #fde8cc;
  background: #fef8f0;
}

.yoo-fav-tab {
  flex: 1;
  padding: 16px 24px;
  background: transparent;
  border: none;
  border-bottom: 3px solid transparent;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  color: var(--_yp-primary, #eda934);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s;
}

.yoo-fav-tab:hover {
  background: #fef3e7;
}

.yoo-fav-tab.active {
  background: #fff;
  border-bottom-color: var(--_yp-primary, #eda934);
  color: var(--yp-text);
}

.yoo-fav-tab.active .dashicons {
  color: var(--_yp-primary, #eda934);
}

.yoo-fav-tab .dashicons {
  font-size: 18px;
  width: 18px;
  height: 18px;
}

/* Locked favorites tab (requires extension/license) */
.yoo-fav-tab-locked {
  opacity: 0.5;
  cursor: not-allowed !important;
  position: relative;
}

.yoo-fav-tab-locked:hover {
  opacity: 0.7;
}

.yoo-fav-tab-locked::after {
  content: '\f160';
  font-family: 'dashicons';
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 14px;
  color: #d63638;
  line-height: 1;
}

.yoo-fav-tab-content {
  display: none;
  padding: 0;
}

.yoo-fav-tab-content.active {
  display: block;
  width: 100%;
}

.yoo-fav-tab-content p {
  color: var(--yp-text);
  margin: 0 0 16px 0;
  padding: 0 24px;
}

.yoo-fav-tab-content .yoo-favorites-text {
  padding: 24px 24px 16px 24px;
}

.yoo-fav-tab-content .yoo-favorites-form {
  padding: 0 24px 16px 24px;
}

.yoo-favorites-container {
  max-width: 100%;
  margin: 0;
  width: 100%;
}

.yoo-favorites-text {
  color: var(--yp-text);
  margin: 0 0 16px 0;
  text-align: center;
  font-size: 14px;
  line-height: 1.6;
}

.yoo-favorites-form label {
  display: block;
  font-weight: 500;
  margin-bottom: 8px;
  color: var(--yp-text);
}

.yoo-favorites-input-group {
  display: flex;
  gap: 12px;
  align-items: flex-end;
}

.yoo-username-input-wrapper {
  flex: 1;
  position: relative;
  display: flex;
  align-items: center;
}

.yoo-username-input-wrapper input {
  flex: 1;
  padding: 10px 40px 10px 14px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 14px;
  width: 100%;
}

.yoo-clear-username {
  position: absolute;
  right: 8px;
  background: none;
  border: none;
  padding: 4px;
  cursor: pointer;
  color: var(--yp-text);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 3px;
  transition: all 0.2s;
}

.yoo-clear-username:hover {
  color: #ef4444;
  background: #fee;
}

.yoo-clear-username .dashicons {
  font-size: 18px;
  width: 18px;
  height: 18px;
}

.yoo-favorites-input-group input {
  flex: 1;
  padding: 10px 14px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 14px;
}

.yoo-favorites-input-group input:focus {
  border-color: var(--_yp-primary, #eda934);
  outline: none;
  box-shadow: 0 0 0 1px var(--_yp-primary, #eda934);
}

.yoo-favorites-input-group .yoo-btn {
  white-space: nowrap;
}

/* ========== Mobile Responsive ========== */
@media (max-width: 782px) {
  /* Wrap container */
  .yoo-upload-wrap {
    padding: 0 16px;
    margin: 16px auto;
  }
  
  /* Header: full-width title block, then actions — Check updates + Upload stacked (theme & plugin manager) */
  .yoo-upload-header {
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
    margin-bottom: 20px;
    padding-bottom: 16px;
  }

  .yoo-upload-header-content {
    flex: none;
    width: 100%;
    min-width: 0;
  }

  .yoo-upload-header-actions {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    max-width: 100%;
    gap: 10px;
  }

  .yoo-upload-header-actions .yoo-check-updates-btn,
  .yoo-upload-header-actions .yoo-upload-toggle-btn {
    width: 100%;
    justify-content: center;
    box-sizing: border-box;
  }

  .yoo-upload-title {
    font-size: 20px;
    white-space: normal;
    margin: 0;
  }

  .yoo-upload-subtitle {
    font-size: 13px;
  }
  
  /* Upload Section */
  .yoo-upload-section {
    padding: 16px;
  }
  
  .yoo-upload-container {
    padding: 16px;
  }
  
  /* Upload Area */
  .yoo-upload-area {
    padding: 24px 16px;
  }
  
  .yoo-upload-area h3 {
    font-size: 18px;
  }
  
  .yoo-upload-area p {
    font-size: 13px;
  }
  
  /* Tabs */
  .yoo-tabs {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }
  
  .yoo-tabs::-webkit-scrollbar {
    display: none;
  }
  
  .yoo-tabs-nav {
    flex-wrap: nowrap;
    min-width: min-content;
  }
  
  .yoo-tab-btn {
    flex-shrink: 0;
    white-space: nowrap;
    padding: 10px 16px;
    font-size: 13px;
  }
  
  /* Filters bar */
  .yoo-filters-bar {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .yoo-filters-left {
    width: 100%;
    max-width: 100%;
    display: flex;
    flex-direction: column;
    gap: 6px;
  }

  .yoo-category-btn {
    width: 100%;
    justify-content: flex-start;
    padding: 10px 14px;
    font-size: 13px;
    box-sizing: border-box;
  }

  .yoo-filters-right {
    width: 100%;
    max-width: 100%;
    flex-direction: column;
    gap: 8px;
  }

  .yoo-installed-view-controls {
    width: 100%;
    margin-right: 0;
    justify-content: space-between;
  }

  .yoo-status-filter {
    width: 100%;
    padding: 10px 32px 10px 12px;
    font-size: 13px;
    box-sizing: border-box;
  }

  .yoo-search-box {
    width: 100%;
  }

  .yoo-search-box input {
    width: 100%;
    height: 40px;
    padding: 10px 36px 10px 14px;
    box-sizing: border-box;
  }

  /* WordPress Results - Grid View */
  .yoo-wordpress-results,
  .yoo-favorites-results.yoo-wordpress-results,
  #local-favorites-results.yoo-wordpress-results,
  #wporg-favorites-results.yoo-wordpress-results {
    grid-template-columns: 1fr !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  .yoo-wordpress-results:not(.yoo-list-view-mode) .yoo-plugin-card {
    padding: 14px;
    max-width: 100%;
    overflow: hidden;
    box-sizing: border-box;
  }

  .yoo-wordpress-results:not(.yoo-list-view-mode) .yoo-plugin-header {
    gap: 12px;
  }

  .yoo-wordpress-results:not(.yoo-list-view-mode) .yoo-plugin-icon {
    width: 64px;
    height: 64px;
    min-width: 64px;
  }

  .yoo-wordpress-results:not(.yoo-list-view-mode) .yoo-plugin-info {
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
  }

  .yoo-wordpress-results:not(.yoo-list-view-mode) .yoo-plugin-title {
    word-break: break-word;
    overflow-wrap: break-word;
  }

  .yoo-wordpress-results:not(.yoo-list-view-mode) .yoo-plugin-description {
    word-break: break-word;
    overflow-wrap: break-word;
  }

  .yoo-plugin-actions {
    flex-wrap: wrap;
    gap: 6px;
  }

  /* Plugin Card - List View */
  .yoo-wordpress-results.yoo-list-view-mode {
    grid-template-columns: 1fr !important;
  }

  .yoo-wordpress-results.yoo-list-view-mode .yoo-plugin-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    padding: 12px;
  }

  .yoo-wordpress-results.yoo-list-view-mode .yoo-plugin-header-left {
    width: 100%;
    min-width: 0;
  }

  .yoo-wordpress-results.yoo-list-view-mode .yoo-plugin-header-right {
    width: 100%;
    justify-content: flex-start;
  }

  .yoo-wordpress-results.yoo-list-view-mode .yoo-plugin-meta {
    flex-wrap: wrap;
    gap: 6px;
  }

  .yoo-wordpress-results.yoo-list-view-mode .yoo-plugin-actions {
    flex-wrap: wrap;
    padding: 10px 12px;
  }

  .yoo-wordpress-results.yoo-list-view-mode .yoo-action-btn {
    font-size: 12px;
    padding: 5px 6px;
  }

  .yoo-wordpress-results.yoo-list-view-mode .yoo-plugin-name {
    word-break: break-word;
    overflow-wrap: break-word;
  }

  .yoo-wordpress-results.yoo-list-view-mode .yoo-plugin-description {
    word-break: break-word;
    overflow-wrap: break-word;
  }
  
  /* Upload Actions */
  .yoo-upload-actions {
    padding-top: 12px;
  }
  
  .yoo-upload-actions .yoo-btn {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .yoo-upload-header {
    gap: 10px;
  }
  
  .yoo-upload-title {
    font-size: 17px;
    white-space: nowrap;
  }
  
  .yoo-tab-btn {
    padding: 8px 12px;
    font-size: 12px;
  }
  
  .yoo-filters-bar {
    gap: 8px;
  }
  
  .yoo-wordpress-results:not(.yoo-list-view-mode) .yoo-plugin-header {
    gap: 10px;
  }
  
  .yoo-wordpress-results:not(.yoo-list-view-mode) .yoo-plugin-icon {
    width: 48px;
    height: 48px;
    min-width: 48px;
  }
  
  .yoo-wordpress-results.yoo-list-view-mode .yoo-plugin-icon {
    width: 32px;
    height: 32px;
    min-width: 32px;
  }
  
  .yoo-wordpress-results.yoo-list-view-mode .yoo-plugin-actions {
    gap: 4px;
  }

  .yoo-category-btn {
    padding: 8px 12px;
    font-size: 12px;
  }
}

/* Delete Confirmation Popup (same as plugins page) — above .yp-header-wrapper (100000) */
.yoo-delete-popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 110000;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.yoo-delete-popup-overlay.visible {
  opacity: 1;
}

.yoo-delete-popup {
  background: #fff;
  border-radius: 12px;
  padding: 32px;
  max-width: 480px;
  width: 90%;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
  transform: scale(0.9) translateY(-20px);
  opacity: 0;
  transition: all 0.3s ease;
}

.yoo-delete-popup-overlay.visible .yoo-delete-popup {
  transform: scale(1) translateY(0);
  opacity: 1;
}

.yoo-delete-popup-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 20px;
  background: #fff8e5;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.yoo-delete-popup-icon .dashicons {
  font-size: 32px;
  width: 32px;
  height: 32px;
  color: var(--_yp-primary);
}

.yoo-delete-popup h3 {
  margin: 0 0 12px 0;
  font-size: 20px;
  font-weight: 600;
  color: var(--yp-text);
  text-align: center;
}

.yoo-delete-popup p {
  margin: 0 0 24px 0;
  font-size: 14px;
  line-height: 1.6;
  color: var(--yp-text);
  text-align: center;
}

.yoo-delete-popup p strong {
  color: var(--yp-text);
  font-weight: 600;
}

.yoo-delete-popup-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
}

.yoo-popup-btn {
  padding: 10px 24px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  border: none;
}

.yoo-popup-cancel {
  background: #f6f7f7;
  color: var(--yp-text);
}

.yoo-popup-cancel:hover {
  background: #e5e7eb;
}

.yoo-popup-delete {
  background: #d63638;
  color: #fff;
}

.yoo-popup-delete:hover {
  background: #b32d2e;
}

.yoo-popup-delete:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.yoo-popup-primary-action {
  background: var(--_yp-primary, #eda934);
  color: #fff;
}

.yoo-popup-primary-action:hover:not(:disabled) {
  filter: brightness(0.92);
}

.yoo-popup-primary-action:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.yoo-delete-popup--bulk-progress .yoo-bulk-progress-summary {
  font-weight: 600;
  margin-bottom: 8px !important;
}

.yoo-delete-popup--bulk-progress .yoo-bulk-progress-detail {
  font-size: 13px !important;
  color: #646970 !important;
  margin-bottom: 0 !important;
}

/* Bulk repo install — summary modal (order matches install sequence) */
.yoo-bulk-install-summary-overlay {
  position: fixed;
  inset: 0;
  z-index: 100050;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  box-sizing: border-box;
  background: rgba(0, 0, 0, 0.45);
  opacity: 0;
  transition: opacity 0.2s ease;
}

.yoo-bulk-install-summary-overlay.visible {
  opacity: 1;
}

.yoo-bulk-install-summary {
  position: relative;
  width: 100%;
  max-width: 720px;
  max-height: min(90vh, 640px);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.18);
  border: 1px solid #dcdcde;
}

.yoo-bulk-install-summary__close {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  width: 36px;
  height: 36px;
  padding: 0;
  border: none;
  border-radius: 6px;
  background: transparent;
  color: #50575e;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.yoo-bulk-install-summary__close:hover {
  background: #f0f0f1;
  color: #1d2327;
}

.yoo-bulk-install-summary__title {
  margin: 0;
  padding: 20px 48px 8px 20px;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.3;
  color: #1d2327;
}

.yoo-bulk-install-summary__sub {
  margin: 0;
  padding: 0 20px 12px;
  font-size: 13px;
  color: #646970;
}

.yoo-bulk-install-summary__grid {
  padding: 0 16px 16px;
  overflow-y: auto;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 12px;
}

.yoo-bulk-install-summary__item {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.yoo-bulk-install-summary__thumb {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 8px;
  background: #e8eaed center / cover no-repeat;
  border: 1px solid #dcdcde;
  overflow: hidden;
}

.yoo-bulk-install-summary__thumb--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f0f0f1;
  color: #8c8f94;
}

.yoo-bulk-install-summary__thumb--placeholder .dashicons {
  font-size: 32px;
  width: 32px;
  height: 32px;
}

.yoo-bulk-install-summary__name {
  font-size: 12px;
  font-weight: 600;
  line-height: 1.35;
  color: #1d2327;
  word-break: break-word;
}

.yoo-bulk-install-summary__actions {
  padding: 12px 16px 16px;
  border-top: 1px solid #f0f0f1;
  display: flex;
  justify-content: flex-end;
}

/* Click feedback animation - delete confirmation popup */
.yoo-popup-delete.yoo-click-feedback {
  animation: yoo-btn-click-pulse 0.35s ease;
}

.yoo-theme-manager-wrap .yoo-wordpress-content .yoo-wordpress-container {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.yoo-theme-manager-wrap .yoo-filters-bar {
  width: 100%;
  box-sizing: border-box;
}

.yoo-theme-manager-wrap .yoo-filters-bar .yoo-filters-left.yoo-theme-repo-tabs {
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.yoo-theme-manager-wrap #yoo-theme-feature-filter-open.active {
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--_yp-primary, #eda934) 45%, transparent);
}

.yoo-theme-repo-results-summary {
  display: inline-flex;
  align-items: center;
  max-width: min(100%, 420px);
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--yp-text, #50575e);
  background: #f0f0f1;
  border: 1px solid #dcdcde;
  flex: 0 1 auto;
  min-width: 0;
}

.yoo-theme-repo-results-summary[hidden] {
  display: none !important;
}

.yoo-theme-repo-load-more {
  grid-column: 1 / -1;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px;
  box-sizing: border-box;
}

.yoo-theme-repo-load-more__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  min-width: 36px;
}

.yoo-theme-repo-load-more .yoo-spinner-circle {
  display: none;
  box-sizing: border-box;
  width: 28px;
  height: 28px;
  border: 2px solid rgba(0, 0, 0, 0.1);
  border-top-color: var(--yp-brand, #eda934);
  border-radius: 50%;
  animation: yp-spin 0.8s linear infinite;
  margin: 0;
  flex-shrink: 0;
}

.yoo-theme-repo-load-more.is-loading .yoo-spinner-circle {
  display: block;
}

/* Repo first fetch: spinner only, less padding */
.yoo-theme-manager-wrap #wp-results > .yoo-loading.yoo-loading--compact {
  padding: 48px 20px;
  min-height: 140px;
}

.yoo-theme-manager-wrap #wp-results > .yoo-loading.yoo-loading--compact .yoo-spinner-circle {
  margin-bottom: 0;
}

.yoo-theme-feature-filter-modal .yoo-theme-feature-filter-modal__body {
  max-height: min(62vh, 560px);
  overflow-y: auto;
  padding-right: 4px;
}

.yoo-theme-feature-filter-modal .yoo-theme-feature-filter-modal__hint {
  margin: 0 0 12px;
  font-size: 13px;
  color: var(--yp-text, #646970);
  line-height: 1.45;
}

.yoo-theme-feature-filter-loading {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 0;
  font-size: 13px;
  color: var(--yp-text, #646970);
}

.yoo-theme-feature-group {
  margin-bottom: 18px;
}

.yoo-theme-feature-group__title {
  margin: 0 0 8px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--yp-text-secondary, #666);
}

.yoo-theme-feature-chips {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(148px, 1fr));
  gap: 8px;
}

.yoo-theme-feature-chip {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
  background: #fafafa;
  font-size: 12px;
  line-height: 1.35;
  cursor: pointer;
  user-select: none;
  margin: 0;
  min-height: 44px;
  box-sizing: border-box;
}

.yoo-theme-feature-chip span {
  flex: 1;
  min-width: 0;
}

.yoo-theme-feature-chip:hover {
  border-color: color-mix(in srgb, var(--_yp-primary, #eda934) 40%, #e5e7eb);
}

.yoo-theme-feature-chip input {
  margin: 0;
  accent-color: var(--_yp-primary, #eda934);
}

.yoo-theme-feature-filter-modal__footer {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  /* Same horizontal inset as .yoo-modal-body (footer sits outside the padded body). */
  padding: 14px 24px 20px;
  margin-top: 0;
  border-top: 1px solid #e5e7eb;
  flex-shrink: 0;
  box-sizing: border-box;
}

.yoo-theme-feature-filter-modal__footer-spacer {
  flex: 1 1 12px;
  min-width: 8px;
}

.yoo-theme-manager-wrap #wp-results.yoo-wordpress-results:not(.yoo-list-view-mode) {
  width: 100%;
  box-sizing: border-box;
  align-items: start;
}

.yoo-theme-manager-wrap #wp-results.yoo-wordpress-results:not(.yoo-installed-split-layout):not(.yoo-list-view-mode) {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 16px;
}

.yoo-theme-manager-wrap #wp-results.yoo-wordpress-results.yoo-installed-split-layout {
  display: block;
}

.yoo-theme-manager-wrap .yoo-installed-split {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
  box-sizing: border-box;
  --yoo-installed-sidebar-gap: 20px;
  --yoo-installed-overflow-gap: 29px;
  --yoo-installed-hero-col-gap: var(--yoo-installed-sidebar-gap);
  padding-right: var(--yoo-installed-sidebar-gap);
}

.yoo-theme-manager-wrap .yoo-installed-hero-row {
  display: grid;
  grid-template-columns: minmax(320px, min(620px, 58vw)) minmax(0, 1fr);
  column-gap: var(--yoo-installed-hero-col-gap, 20px);
  row-gap: 0;
  align-items: start;
  width: 100%;
  box-sizing: border-box;
}

.yoo-theme-manager-wrap .yoo-installed-sidebar-col:empty {
  display: none;
}

.yoo-theme-manager-wrap .yoo-installed-hero-row:has(.yoo-installed-sidebar-col:empty) {
  grid-template-columns: minmax(320px, min(620px, 58vw));
}

.yoo-theme-manager-wrap .yoo-installed-active-col,
.yoo-theme-manager-wrap .yoo-installed-sidebar-col {
  min-width: 0;
}

.yoo-theme-manager-wrap .yoo-installed-active-col {
  max-width: min(620px, 100%);
  width: 100%;
  justify-self: start;
  align-self: start;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  min-height: 0;
  height: var(--yoo-installed-sidebar-block-px, auto);
  max-height: var(--yoo-installed-sidebar-block-px, min(62vh, 480px));
}

.yoo-theme-manager-wrap .yoo-installed-sidebar-col {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--yoo-installed-sidebar-gap);
  align-content: start;
  align-self: stretch;
  width: 100%;
  min-height: 0;
  box-sizing: border-box;
}

.yoo-theme-manager-wrap .yoo-installed-overflow-row {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: var(--yoo-installed-overflow-gap);
  align-content: start;
  width: 100%;
  box-sizing: border-box;
}

@media (max-width: 1100px) {
  .yoo-theme-manager-wrap .yoo-installed-sidebar-col {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .yoo-theme-manager-wrap .yoo-installed-overflow-row {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .yoo-theme-manager-wrap .yoo-installed-sidebar-col,
  .yoo-theme-manager-wrap .yoo-installed-overflow-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.yoo-theme-manager-wrap .yoo-installed-overflow-row:empty {
  display: none;
}

/* Active hero: fill the column height set to match sidebar; cover + clip = no corner gaps. */
.yoo-theme-manager-wrap #wp-results.yoo-installed-split-layout .yoo-theme-card--installed-hero {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.yoo-theme-manager-wrap #wp-results.yoo-installed-split-layout .yoo-theme-card--installed-hero .yoo-theme-card-media-wrap {
  flex: 1 1 auto;
  min-height: 0;
  width: 100%;
  position: relative;
}

.yoo-theme-manager-wrap #wp-results.yoo-installed-split-layout .yoo-theme-card--installed-hero .yoo-theme-card-media-wrap .yoo-theme-card-media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  min-height: 0;
  max-height: none;
  aspect-ratio: unset;
  background-size: cover;
  background-position: center center;
  background-color: #e8eaed;
}

/* Compact cards: sidebar + overflow row. */
.yoo-theme-manager-wrap #wp-results.yoo-installed-split-layout .yoo-theme-card--installed-compact .yoo-theme-card-media-wrap .yoo-theme-card-media {
  min-height: 128px;
  height: auto;
  aspect-ratio: 4 / 3;
  max-height: min(34vh, 260px);
  background-size: cover;
  background-position: center top;
  background-color: #e8eaed;
}

@media (max-width: 782px) {
  .yoo-theme-manager-wrap .yoo-installed-hero-row {
    grid-template-columns: 1fr;
  }

  /* Stacked layout: do not lock hero height to sidebar (sidebar is below). */
  .yoo-theme-manager-wrap .yoo-installed-active-col {
    height: auto;
    max-height: none;
  }

  .yoo-theme-manager-wrap #wp-results.yoo-installed-split-layout .yoo-theme-card--installed-hero {
    flex: 0 0 auto;
  }

  .yoo-theme-manager-wrap #wp-results.yoo-installed-split-layout .yoo-theme-card--installed-hero .yoo-theme-card-media-wrap {
    flex: 0 0 auto;
    aspect-ratio: 4 / 3;
    width: 100%;
    max-height: min(70vh, 520px);
    min-height: 220px;
  }
}

/* Installed split only: dim inactive, highlight active */
.yoo-theme-manager-wrap #wp-results.yoo-installed-split-layout.yoo-wordpress-results:not(.yoo-list-view-mode) .yoo-plugin-card.yoo-theme-card {
  padding: 0;
  overflow: hidden;
  gap: 0;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  border-radius: 8px;
  transition:
    opacity 0.2s ease,
    box-shadow 0.2s ease,
    filter 0.2s ease,
    border-color 0.2s ease;
}

.yoo-theme-manager-wrap #wp-results.yoo-installed-split-layout.yoo-wordpress-results:not(.yoo-list-view-mode) .yoo-plugin-card.yoo-theme-card:not(.active) {
  opacity: 0.88;
  filter: saturate(0.88);
  background: #fff;
}

.yoo-theme-manager-wrap #wp-results.yoo-installed-split-layout.yoo-wordpress-results:not(.yoo-list-view-mode) .yoo-plugin-card.yoo-theme-card:not(.active):hover {
  opacity: 0.92;
  filter: saturate(0.92);
}

.yoo-theme-manager-wrap #wp-results.yoo-installed-split-layout.yoo-wordpress-results:not(.yoo-list-view-mode) .yoo-plugin-card.yoo-theme-card.active {
  z-index: 2;
  opacity: 1;
  filter: none;
  background: #fff;
  border-radius: 8px;
  /* Ring via box-shadow avoids inner gap vs rounded screenshot. */
  border: none;
  box-shadow:
    0 0 0 2px var(--_yp-primary, #eda934),
    0 8px 26px rgba(0, 0, 0, 0.08);
  outline: none;
}

.yoo-theme-manager-wrap #wp-results.yoo-installed-split-layout.yoo-wordpress-results:not(.yoo-list-view-mode) .yoo-plugin-card.yoo-theme-card.active > .yoo-theme-card-media-wrap {
  background: #e8eaed;
}

/* Browse / Featured / repo grid: same card shell as before (no Installed-only dimming) */
.yoo-theme-manager-wrap #wp-results.yoo-wordpress-results:not(.yoo-installed-split-layout):not(.yoo-list-view-mode) .yoo-plugin-card.yoo-theme-card {
  padding: 0;
  overflow: hidden;
  gap: 0;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  opacity: 1;
  filter: none;
  background: #fff;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.yoo-theme-manager-wrap .yoo-wordpress-results.yoo-list-view-mode .yoo-plugin-card:not(.active) {
  opacity: 0.9;
}

.yoo-theme-manager-wrap .yoo-wordpress-results.yoo-list-view-mode .yoo-plugin-card.active {
  opacity: 1;
  background: #fff;
  border: 2px solid var(--_yp-primary, #eda934);
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.07);
}

/* Installed split: rounded media wrap, cover clip. */
.yoo-theme-manager-wrap #wp-results.yoo-installed-split-layout.yoo-wordpress-results:not(.yoo-list-view-mode) .yoo-theme-card > .yoo-theme-card-media-wrap {
  position: relative;
  width: 100%;
  flex-shrink: 0;
  overflow: hidden;
  border-radius: 8px;
  background: #e8eaed;
  isolation: isolate;
}

/* Browse/repo: previous flat-top shell. */
.yoo-theme-manager-wrap #wp-results.yoo-wordpress-results:not(.yoo-installed-split-layout):not(.yoo-list-view-mode) .yoo-theme-card > .yoo-theme-card-media-wrap {
  position: relative;
  width: 100%;
  flex-shrink: 0;
  overflow: hidden;
  border-radius: 0;
  background: #f3f4f6;
  isolation: isolate;
}

/* Browse/repo: classic tall screenshot (cover) — restored behavior */
.yoo-theme-manager-wrap #wp-results.yoo-wordpress-results:not(.yoo-installed-split-layout):not(.yoo-list-view-mode) .yoo-theme-card-media-wrap .yoo-theme-card-media {
  width: 100%;
  min-height: 220px;
  height: 260px;
  max-height: min(44vh, 400px);
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
  border-radius: 0;
}

.yoo-theme-manager-wrap #wp-results.yoo-wordpress-results:not(.yoo-installed-split-layout):not(.yoo-list-view-mode) .yoo-theme-card-media--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f6f7f7;
}

.yoo-theme-manager-wrap #wp-results.yoo-wordpress-results:not(.yoo-installed-split-layout):not(.yoo-list-view-mode) .yoo-theme-card-media--placeholder .dashicons {
  font-size: 48px;
  width: 48px;
  height: 48px;
  color: var(--_yp-primary, #eda934);
}

/* Installed split: clipping from parent wrap. */
.yoo-theme-manager-wrap #wp-results.yoo-installed-split-layout.yoo-wordpress-results:not(.yoo-list-view-mode) .yoo-theme-card-media-wrap .yoo-theme-card-media {
  width: 100%;
  background-repeat: no-repeat;
  border-radius: 0;
}

.yoo-theme-manager-wrap #wp-results.yoo-installed-split-layout.yoo-wordpress-results:not(.yoo-list-view-mode) .yoo-theme-card-media--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f6f7f7;
  min-height: 140px;
  aspect-ratio: 4 / 3;
}

/* Active hero placeholder: same fill as screenshot layer. */
.yoo-theme-manager-wrap #wp-results.yoo-installed-split-layout .yoo-theme-card--installed-hero .yoo-theme-card-media-wrap .yoo-theme-card-media--placeholder {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  min-height: 0;
  aspect-ratio: unset;
  border-radius: 0;
}

.yoo-theme-manager-wrap #wp-results.yoo-installed-split-layout.yoo-wordpress-results:not(.yoo-list-view-mode) .yoo-theme-card-media--placeholder .dashicons {
  font-size: 48px;
  width: 48px;
  height: 48px;
  color: var(--_yp-primary, #eda934);
}

/* Full-card hover: glass clipped by media-wrap */
.yoo-theme-manager-wrap .yoo-theme-card-hover-glass {
  position: absolute;
  inset: 0;
  z-index: 2;
  border-radius: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease;
}

.yoo-theme-manager-wrap #wp-results.yoo-installed-split-layout .yoo-theme-card-hover-glass,
.yoo-theme-manager-wrap #wp-results.yoo-installed-split-layout .yoo-theme-card-hover-text {
  border-radius: 8px;
}

.yoo-theme-manager-wrap .yoo-theme-card-hover-text {
  position: absolute;
  inset: 0;
  z-index: 4;
  border-radius: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 44px 16px 88px;
  box-sizing: border-box;
  text-align: center;
  pointer-events: none;
  opacity: 0;
  transform: scale(0.98);
  transition:
    opacity 0.24s ease,
    transform 0.24s ease;
}

.yoo-theme-manager-wrap .yoo-theme-card-hover-title {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.35;
  color: #fff;
  letter-spacing: 0.01em;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.55);
  max-width: 100%;
}

.yoo-theme-manager-wrap .yoo-theme-card-hover-author {
  font-size: 13px;
  font-weight: 500;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.88);
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.45);
  max-width: 100%;
}

.yoo-theme-manager-wrap .yoo-theme-card-media-wrap:hover .yoo-theme-card-hover-glass,
.yoo-theme-manager-wrap .yoo-theme-card-media-wrap:focus-within .yoo-theme-card-hover-glass {
  opacity: 1;
}

.yoo-theme-manager-wrap .yoo-theme-card-media-wrap:hover .yoo-theme-card-hover-text,
.yoo-theme-manager-wrap .yoo-theme-card-media-wrap:focus-within .yoo-theme-card-hover-text {
  opacity: 1;
  transform: scale(1);
}


/* Top tags: dark glass, subtle radius — single row (version + status + update) */
.yoo-theme-manager-wrap .yoo-theme-card-media-wrap .yoo-theme-card-top-tags {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 5;
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  max-width: calc(100% - 16px);
  pointer-events: auto;
}

.yoo-theme-manager-wrap .yoo-wordpress-results.yoo-list-view-mode .yoo-theme-card-media-wrap .yoo-theme-card-top-tags {
  flex-wrap: wrap;
  gap: 6px;
}

/* Inactive installed themes: show version + status on hover / focus only (active card has no this class). */
.yoo-theme-manager-wrap .yoo-theme-card-media-wrap .yoo-theme-card-top-tags--inactive-hover-only {
  opacity: 0;
  transition: opacity 0.18s ease;
  pointer-events: none;
}

.yoo-theme-manager-wrap .yoo-theme-card-media-wrap:hover .yoo-theme-card-top-tags--inactive-hover-only,
.yoo-theme-manager-wrap .yoo-theme-card-media-wrap:focus-within .yoo-theme-card-top-tags--inactive-hover-only {
  opacity: 1;
  pointer-events: auto;
}

.yoo-theme-manager-wrap .yoo-theme-card-media-wrap .yoo-theme-status-tag {
  margin: 0;
  padding: 0;
  background: transparent;
  border: none;
  box-shadow: none;
  pointer-events: none;
}

.yoo-theme-manager-wrap .yoo-theme-version-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 10px;
  box-sizing: border-box;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
  color: rgba(255, 255, 255, 0.95);
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  pointer-events: none;
  flex-shrink: 0;
}

.yoo-theme-manager-wrap
  .yoo-wordpress-results:not(.yoo-list-view-mode)
  .yoo-theme-card-media-wrap
  .yoo-theme-version-tag {
  min-height: 28px;
  padding: 0 7px;
  font-size: 11px;
  border-radius: 6px;
}

.yoo-theme-manager-wrap .yoo-theme-rating-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-height: 34px;
  padding: 0 10px;
  box-sizing: border-box;
  border-radius: 8px;
  font-size: 12px;
  line-height: 1.2;
  cursor: default;
  color: rgba(255, 255, 255, 0.95);
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.yoo-theme-manager-wrap .yoo-theme-rating-tag .yoo-stars {
  color: var(--_yp-primary, #eda934);
  letter-spacing: 1px;
}

.yoo-theme-manager-wrap .yoo-theme-rating-tag .yoo-rating-count-hover {
  display: inline-block;
  vertical-align: middle;
  max-width: 0;
  opacity: 0;
  overflow: hidden;
  font-size: 11px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.92);
  white-space: nowrap;
  transition: max-width 0.22s ease, opacity 0.15s ease;
  margin: 0;
}

.yoo-theme-manager-wrap .yoo-theme-rating-tag:hover .yoo-rating-count-hover {
  max-width: 7rem;
  opacity: 1;
  margin-left: 4px;
}

.yoo-theme-manager-wrap .yoo-theme-status-tag__pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 10px;
  box-sizing: border-box;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  line-height: 1.2;
  white-space: nowrap;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
  flex-shrink: 0;
}

.yoo-theme-manager-wrap
  .yoo-wordpress-results:not(.yoo-list-view-mode)
  .yoo-theme-card-media-wrap
  .yoo-theme-status-tag__pill {
  min-height: 28px;
  padding: 0 7px;
  font-size: 9px;
  letter-spacing: 0.04em;
  border-radius: 6px;
}

.yoo-theme-manager-wrap .yoo-theme-status-tag__pill--active {
  background: var(--_yp-primary, #eda934);
  color: #fff;
}

.yoo-theme-manager-wrap .yoo-theme-status-tag__pill--inactive {
  background: #374151;
  color: #f9fafb;
}

/* Pending theme update: alert tag + emphasis */
.yoo-theme-manager-wrap .yoo-theme-update-available-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 10px;
  box-sizing: border-box;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
  color: #fff;
  background: #d63638;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 2px 12px rgba(214, 54, 56, 0.4);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  pointer-events: none;
  flex-shrink: 0;
}

.yoo-theme-manager-wrap
  .yoo-wordpress-results:not(.yoo-list-view-mode)
  .yoo-theme-card-media-wrap
  .yoo-theme-update-available-tag {
  min-height: 28px;
  padding: 0 6px;
  font-size: 9px;
  border-radius: 6px;
}

.yoo-theme-manager-wrap .yoo-plugin-card.yoo-theme-card.active.has-update .yoo-theme-status-tag__pill--active {
  background: #d63638;
  color: #fff;
  box-shadow: 0 2px 12px rgba(214, 54, 56, 0.4);
}

.yoo-theme-manager-wrap
  #wp-results.yoo-wordpress-results:not(.yoo-list-view-mode)
  .yoo-plugin-card.yoo-theme-card.has-update:not(.active) {
  box-shadow: 0 0 0 2px #d63638, 0 6px 18px rgba(214, 54, 56, 0.14);
}

.yoo-theme-manager-wrap
  #wp-results.yoo-installed-split-layout.yoo-wordpress-results:not(.yoo-list-view-mode)
  .yoo-plugin-card.yoo-theme-card.has-update:not(.active) {
  opacity: 1;
  filter: saturate(1);
}

.yoo-theme-manager-wrap .yoo-wordpress-results.yoo-list-view-mode
  .yoo-plugin-card.yoo-theme-card.has-update:not(.active) {
  border: 2px solid #d63638;
  box-shadow: 0 2px 10px rgba(214, 54, 56, 0.12);
}

/* Repo body: active installs only — no top border */
.yoo-theme-manager-wrap .yoo-theme-repo-meta--bottom {
  margin: 10px 0 0;
  padding: 0;
  border: none;
  font-size: 13px;
  color: var(--yp-text, #646970);
}

/* Author line — separate from description */
.yoo-theme-manager-wrap .yoo-theme-card-author-line {
  margin: 0 0 10px;
  padding: 0;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
  text-align: left;
}

.yoo-theme-manager-wrap .yoo-theme-card-author-prefix {
  color: #6b7280;
  font-weight: 500;
}

.yoo-theme-manager-wrap .yoo-theme-card-author-name {
  color: var(--yp-text, #1d2327);
}

.yoo-theme-manager-wrap .yoo-theme-card-author-line--list {
  margin-bottom: 0;
  font-size: 12px;
}

/* Repo “current theme” — glass pill inside image overlay (replaces footer strip) */
.yoo-theme-manager-wrap .yoo-theme-repo-current-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 12px;
  box-sizing: border-box;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  color: rgba(255, 255, 255, 0.95);
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  pointer-events: none;
}

.yoo-theme-manager-wrap .yoo-theme-installed-bulk-bar[hidden],
.yoo-theme-manager-wrap .yoo-theme-repo-bulk-bar[hidden] {
  display: none !important;
}

.yoo-theme-manager-wrap .yoo-theme-installed-bulk-bar .yoo-bulk-actions-left,
.yoo-theme-manager-wrap .yoo-theme-repo-bulk-bar .yoo-bulk-actions-left {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.yoo-theme-manager-wrap .yoo-theme-installed-bulk-bar .yoo-media-bulk-select-all,
.yoo-theme-manager-wrap .yoo-theme-repo-bulk-bar .yoo-media-bulk-select-all {
  font-size: 13px;
  font-weight: 500;
  padding: 4px 8px;
  margin: 0;
  color: var(--_yp-primary, #c99730);
}

.yoo-theme-manager-wrap .yoo-theme-installed-bulk-bar .yoo-media-bulk-select-all:hover,
.yoo-theme-manager-wrap .yoo-theme-repo-bulk-bar .yoo-media-bulk-select-all:hover {
  color: var(--_yp-primary, #eda934);
  text-decoration: underline;
}

.yoo-theme-manager-wrap .yoo-theme-installed-bulk-bar .yoo-media-bulk-select-all[hidden],
.yoo-theme-manager-wrap .yoo-theme-repo-bulk-bar .yoo-media-bulk-select-all[hidden] {
  display: none !important;
}

.yoo-theme-manager-wrap .yoo-theme-installed-bulk-bar .yoo-theme-installed-bulk-update-btn[hidden] {
  display: none !important;
}

.yoo-theme-manager-wrap .yoo-plugin-card.yoo-theme-card.is-selected {
  border-color: var(--_yp-primary, #eda934);
  box-shadow: 0 0 0 2px rgba(238, 180, 78, 0.2);
}

.yoo-theme-manager-wrap .yoo-theme-card-media-wrap {
  position: relative;
}

.yoo-theme-manager-wrap .yoo-theme-card-media-wrap .yoo-media-card__select {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 7;
  display: block;
  margin: 0;
  padding: 0;
  line-height: 0;
  background: none;
  border: none;
  box-shadow: none;
  border-radius: 0;
  cursor: pointer;
  transition: opacity 0.2s ease;
  opacity: 0;
  pointer-events: none;
}

.yoo-theme-manager-wrap .yoo-theme-card-media-wrap:hover .yoo-media-card__select,
.yoo-theme-manager-wrap .yoo-theme-card-media-wrap:focus-within .yoo-media-card__select,
.yoo-theme-manager-wrap .yoo-plugin-card.yoo-theme-card.is-selected .yoo-media-card__select {
  opacity: 1;
  pointer-events: auto;
}

@media (hover: none), (pointer: coarse) {
  .yoo-theme-manager-wrap .yoo-theme-card-media-wrap .yoo-media-card__select {
    opacity: 1;
    pointer-events: auto;
  }
}

.yoo-theme-manager-wrap .yoo-theme-card__select input.yoo-media-card__cb[type='checkbox'] {
  width: 18px;
  height: 18px;
  margin: 0;
  cursor: pointer;
  flex-shrink: 0;
  vertical-align: top;
  accent-color: var(--_yp-primary, #eda934);
  background-color: #fff;
  border: 1px solid #c3c4c7;
  border-radius: 2px;
  box-sizing: border-box;
}

.yoo-theme-manager-wrap .yoo-theme-card__select input.yoo-media-card__cb[type='checkbox']:focus-visible {
  outline: 2px solid var(--_yp-primary, #eda934);
  outline-offset: 2px;
}

/* List-mode bulk checkbox: stay top-left over the square (relative broke layout vs aspect-ratio media) */
.yoo-theme-manager-wrap .yoo-wordpress-results.yoo-list-view-mode .yoo-plugin-card.yoo-theme-card .yoo-theme-card__select.yoo-theme-card__select--list {
  position: absolute;
  top: 10px;
  left: 10px;
  right: auto;
  z-index: 8;
  opacity: 1;
  pointer-events: auto;
}

[dir='rtl'] .yoo-theme-manager-wrap .yoo-wordpress-results.yoo-list-view-mode .yoo-plugin-card.yoo-theme-card .yoo-theme-card__select.yoo-theme-card__select--list {
  left: auto;
  right: 10px;
}

/* Bottom actions: dark glass pill like media lightbox preview toolbar */
.yoo-theme-manager-wrap .yoo-theme-card-media-wrap .yoo-theme-card__actions-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 6;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  padding: 12px 14px 16px;
  box-sizing: border-box;
  background: none;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease;
}

.yoo-theme-manager-wrap .yoo-theme-card-media-wrap:hover .yoo-theme-card__actions-overlay,
.yoo-theme-manager-wrap .yoo-theme-card-media-wrap:focus-within .yoo-theme-card__actions-overlay {
  opacity: 1;
  /*
   * With pointer-events:none on the overlay, some browsers hit-test “through” the flex padding
   * to .yoo-theme-card-media beneath — Activate / icon buttons look visible but clicks never reach
   * .yoo-theme-card__actions-bar. Re-enable hit-testing whenever the bar is shown.
   */
  pointer-events: auto;
}

/* During install/activate: keep glass + actions visible like hover even if pointer leaves */
.yoo-theme-manager-wrap .yoo-theme-card-media-wrap.yoo-theme-card-media-wrap--hold-hover .yoo-theme-card-hover-glass,
.yoo-theme-manager-wrap .yoo-theme-card-media-wrap.yoo-theme-card-media-wrap--hold-hover .yoo-theme-card-hover-text {
  opacity: 1;
  transform: scale(1);
}

.yoo-theme-manager-wrap .yoo-theme-card-media-wrap.yoo-theme-card-media-wrap--hold-hover .yoo-theme-card__actions-overlay {
  opacity: 1;
  pointer-events: auto;
}

@media (hover: none), (pointer: coarse) {
  .yoo-theme-manager-wrap .yoo-theme-card-media-wrap .yoo-theme-card__actions-overlay {
    opacity: 1;
    pointer-events: auto;
  }
}

.yoo-theme-manager-wrap .yoo-theme-card__actions-bar {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: center;
  gap: 5px;
  max-width: calc(100% - 4px);
  padding: 5px 7px;
  box-sizing: border-box;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  pointer-events: auto;
}

/* Icon buttons: dark glass circles (override global .yoo-action-btn #fff from shared stylesheets) */
.yoo-theme-manager-wrap .yoo-theme-card__actions-bar button.yoo-media-float-btn,
.yoo-theme-manager-wrap .yoo-theme-card__actions-bar .yoo-media-float-btn {
  width: 30px !important;
  height: 30px !important;
  min-width: 30px !important;
  min-height: 30px !important;
  padding: 0 !important;
  margin: 0;
  border-radius: 50% !important;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.28) !important;
  background: rgba(0, 0, 0, 0.58) !important;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.4) !important;
  color: #fff !important;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  font-size: 0 !important;
  line-height: 0 !important;
  appearance: none;
  pointer-events: auto;
  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease,
    background 0.15s ease,
    border-color 0.15s ease;
}

.yoo-theme-manager-wrap .yoo-theme-card__actions-bar button.yoo-media-float-btn:hover,
.yoo-theme-manager-wrap .yoo-theme-card__actions-bar .yoo-media-float-btn:hover {
  transform: translateY(-1px);
  background: rgba(0, 0, 0, 0.75) !important;
  border-color: rgba(255, 255, 255, 0.42) !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.45) !important;
  color: #fff !important;
}

.yoo-theme-manager-wrap .yoo-theme-card__actions-bar button.yoo-media-float-btn:active,
.yoo-theme-manager-wrap .yoo-theme-card__actions-bar .yoo-media-float-btn:active {
  transform: translateY(0);
}

.yoo-theme-manager-wrap .yoo-theme-card__actions-bar button.yoo-media-float-btn .dashicons,
.yoo-theme-manager-wrap .yoo-theme-card__actions-bar .yoo-media-float-btn .dashicons {
  font-size: 15px !important;
  width: 15px !important;
  height: 15px !important;
  color: #fff !important;
}

body.yoo-focus .yoo-theme-manager-wrap .yoo-theme-card__actions-bar .yoo-media-float-btn:focus,
body.yoo-focus .yoo-theme-manager-wrap .yoo-theme-card__actions-bar .yoo-media-float-btn:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.85);
  outline-offset: 2px;
}

/* Update: block plugin-grid orange pill rule — keep round dark glass */
.yoo-theme-manager-wrap .yoo-theme-card__actions-bar .yoo-media-float-btn.update.yoo-theme-update {
  order: 0 !important;
  border-radius: 50% !important;
  background: rgba(0, 0, 0, 0.58) !important;
  border: 1px solid rgba(255, 255, 255, 0.28) !important;
}

.yoo-theme-manager-wrap .yoo-theme-card__actions-bar .yoo-media-float-btn.update.yoo-theme-update:hover {
  background: rgba(0, 0, 0, 0.75) !important;
}

.yoo-theme-manager-wrap .yoo-theme-card__actions-bar .yoo-media-float-btn.yoo-theme-update.is-updating {
  cursor: wait !important;
  pointer-events: none;
  animation: yoo-theme-update-btn-pulse 0.9s ease-in-out infinite;
}

.yoo-theme-manager-wrap .yoo-theme-card__actions-bar .yoo-media-float-btn.yoo-theme-update.is-updating .dashicons.yoo-btn-spin {
  animation: spin 0.85s linear infinite;
}

@keyframes yoo-theme-update-btn-pulse {
  0%,
  100% {
    transform: scale(1);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.4);
  }
  50% {
    transform: scale(0.94);
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.25);
  }
}

@media (prefers-reduced-motion: reduce) {
  .yoo-theme-manager-wrap .yoo-theme-card__actions-bar .yoo-media-float-btn.yoo-theme-update.is-updating {
    animation: none;
  }

  .yoo-theme-manager-wrap .yoo-theme-card__actions-bar .yoo-media-float-btn.yoo-theme-update.is-updating .dashicons.yoo-btn-spin {
    animation: none;
  }
}

.yoo-theme-manager-wrap .yoo-theme-card__actions-bar .yoo-install-btn.yoo-media-float-btn {
  flex: 0 0 auto !important;
}

/* Repo install: keep dark glass (not theme orange); spinner centered in circle */
.yoo-theme-manager-wrap .yoo-theme-card__actions-bar .yoo-media-float-btn.yoo-repo-install.is-busy,
.yoo-theme-manager-wrap .yoo-theme-card__actions-bar .yoo-media-float-btn.yoo-repo-install.is-installing,
.yoo-theme-manager-wrap .yoo-theme-card__actions-bar .yoo-media-float-btn.yoo-repo-install:disabled {
  background: rgba(0, 0, 0, 0.75) !important;
  border-color: rgba(255, 255, 255, 0.42) !important;
  color: #fff !important;
  opacity: 1 !important;
  cursor: wait;
  pointer-events: none;
  justify-content: center !important;
}

.yoo-theme-manager-wrap .yoo-theme-card__actions-bar .yoo-media-float-btn.yoo-repo-install.is-busy .dashicons.yoo-btn-spin,
.yoo-theme-manager-wrap .yoo-theme-card__actions-bar .yoo-media-float-btn.yoo-repo-install.is-installing .dashicons.yoo-btn-spin {
  margin: 0 !important;
  vertical-align: middle;
}

/* Activate + Download (repo install): idle = same dark glass as other overlay icons; success = Media Library copy-check (green + pulse + icon pop). */
.yoo-theme-manager-wrap .yoo-theme-card__actions-bar .yoo-media-float-btn.yoo-repo-install.is-activated {
  pointer-events: none;
  background: #00a32a !important;
  border-color: #00a32a !important;
  color: #fff !important;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.35);
  animation: yoo-media-copy-btn-pulse 0.65s ease-out;
}

.yoo-theme-manager-wrap .yoo-theme-card__actions-bar .yoo-media-float-btn.yoo-repo-install.is-activated .dashicons {
  color: #fff !important;
  animation: yoo-media-copy-icon-pop 0.65s cubic-bezier(0.34, 1.45, 0.64, 1);
}

/* Activate: no spinner — brief dim while waiting; success pulse like media copy */
.yoo-theme-manager-wrap .yoo-theme-card__actions-bar .yoo-media-float-btn.yoo-theme-activate.is-activating,
.yoo-theme-manager-wrap .yoo-theme-card__actions-bar .yoo-media-float-btn.yoo-theme-activate-repo.is-activating {
  opacity: 0.72;
  pointer-events: none;
}

.yoo-theme-manager-wrap .yoo-theme-card__actions-bar .yoo-media-float-btn.yoo-theme-activate.is-activated,
.yoo-theme-manager-wrap .yoo-theme-card__actions-bar .yoo-media-float-btn.yoo-theme-activate-repo.is-activated {
  background: #00a32a !important;
  border-color: #00a32a !important;
  color: #fff !important;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.35);
  animation: yoo-media-copy-btn-pulse 0.65s ease-out;
}

.yoo-theme-manager-wrap .yoo-theme-card__actions-bar .yoo-media-float-btn.yoo-theme-activate.is-activated .dashicons,
.yoo-theme-manager-wrap .yoo-theme-card__actions-bar .yoo-media-float-btn.yoo-theme-activate-repo.is-activated .dashicons {
  color: #fff !important;
  animation: yoo-media-copy-icon-pop 0.65s cubic-bezier(0.34, 1.45, 0.64, 1);
}

@keyframes yoo-media-copy-btn-pulse {
  0% {
    transform: scale(1);
    box-shadow:
      0 2px 10px rgba(0, 0, 0, 0.35),
      0 0 0 0 rgba(0, 163, 42, 0.45);
  }
  55% {
    transform: scale(1.08);
    box-shadow:
      0 4px 16px rgba(0, 0, 0, 0.35),
      0 0 0 6px rgba(0, 163, 42, 0.15);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.35);
  }
}

@keyframes yoo-media-copy-icon-pop {
  0% {
    transform: scale(1) rotate(0deg);
  }
  35% {
    transform: scale(1.35) rotate(-8deg);
  }
  65% {
    transform: scale(1.12) rotate(4deg);
  }
  100% {
    transform: scale(1) rotate(0deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .yoo-theme-manager-wrap .yoo-theme-card__actions-bar .yoo-media-float-btn.yoo-theme-activate.is-activated,
  .yoo-theme-manager-wrap .yoo-theme-card__actions-bar .yoo-media-float-btn.yoo-theme-activate-repo.is-activated,
  .yoo-theme-manager-wrap .yoo-theme-card__actions-bar .yoo-media-float-btn.yoo-repo-install.is-activated,
  .yoo-theme-manager-wrap .yoo-wordpress-results.yoo-list-view-mode .yoo-install-btn.yoo-theme-activate.is-activated {
    animation: none;
  }

  .yoo-theme-manager-wrap .yoo-theme-card__actions-bar .yoo-media-float-btn.yoo-theme-activate.is-activated .dashicons,
  .yoo-theme-manager-wrap .yoo-theme-card__actions-bar .yoo-media-float-btn.yoo-theme-activate-repo.is-activated .dashicons,
  .yoo-theme-manager-wrap .yoo-theme-card__actions-bar .yoo-media-float-btn.yoo-repo-install.is-activated .dashicons,
  .yoo-theme-manager-wrap .yoo-wordpress-results.yoo-list-view-mode .yoo-install-btn.yoo-theme-activate.is-activated .dashicons {
    animation: none;
  }
}

/* Active (installed from directory): same footprint as Install — full-width primary strip */
.yoo-theme-manager-wrap .yoo-plugin-actions .yoo-install-btn--theme-active-state {
  flex: 1 1 100%;
  width: 100%;
  min-height: 44px;
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 16px;
  margin: 0;
  border: none;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
  text-transform: none;
  letter-spacing: 0;
  background: var(--_yp-primary, #eda934) !important;
  color: #fff !important;
  cursor: default;
  pointer-events: none;
  box-shadow: none;
}

.yoo-theme-manager-wrap .yoo-plugin-actions .yoo-install-btn--theme-active-state .dashicons {
  color: #fff !important;
  font-size: 18px;
  width: 18px;
  height: 18px;
}

/* Grid theme cards: screenshot only (no body strip) */
.yoo-theme-manager-wrap #wp-results.yoo-wordpress-results:not(.yoo-list-view-mode) .yoo-theme-card > .yoo-plugin-body {
  display: none;
}

/* Theme Manager modals: frosted glass backdrop (focus on content), same idea as media library dialogs */
.yoo-theme-manager-wrap .yoo-plugin-details-modal > .yoo-modal-overlay {
  background: rgba(10, 12, 16, 0.42);
  backdrop-filter: blur(7px) saturate(1.02);
  -webkit-backdrop-filter: blur(7px) saturate(1.02);
}

@media (prefers-reduced-motion: reduce) {
  .yoo-theme-manager-wrap .yoo-plugin-details-modal > .yoo-modal-overlay {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: rgba(0, 0, 0, 0.62);
  }
}

/* Repo / details modals: larger surface + compact chrome */
.yoo-theme-manager-wrap #theme-details-modal.yoo-theme-details-modal {
  padding: 16px;
  align-items: center;
  justify-content: center;
  z-index: 100140;
}

.yoo-theme-manager-wrap #theme-details-modal .yoo-theme-details-modal__box {
  width: min(96vw, 1100px) !important;
  max-width: min(96vw, 1100px) !important;
  min-width: 0 !important;
  height: min(92vh, 900px) !important;
  max-height: min(92vh, 900px) !important;
  min-height: min(420px, 92vh) !important;
  border-radius: 10px;
}

.yoo-theme-manager-wrap #theme-details-modal .yoo-theme-details-modal__header {
  position: relative;
  padding: 10px 48px 10px 18px;
  min-height: 0;
}

.yoo-theme-manager-wrap #theme-details-modal .yoo-theme-details-modal__title {
  font-size: 17px;
  font-weight: 600;
  line-height: 1.3;
  margin: 0;
}

.yoo-theme-manager-wrap #theme-details-modal .yoo-theme-details-modal__close {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 5;
  width: 40px;
  height: 40px;
  padding: 0;
  margin: 0;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-sizing: border-box;
  background: rgba(0, 0, 0, 0.42);
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 2px 14px rgba(0, 0, 0, 0.4);
  transition:
    background 0.2s ease,
    border-color 0.2s ease,
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.yoo-theme-manager-wrap #theme-details-modal .yoo-theme-details-modal__close:hover {
  background: rgba(0, 0, 0, 0.62);
  border-color: rgba(255, 255, 255, 0.35);
  transform: rotate(90deg);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.45);
}

.yoo-theme-manager-wrap #theme-details-modal .yoo-theme-details-modal__close .dashicons {
  color: #fff;
  font-size: 22px;
  width: 22px;
  height: 22px;
}

[dir='rtl'] .yoo-theme-manager-wrap #theme-details-modal .yoo-theme-details-modal__close {
  right: auto;
  left: 8px;
}

[dir='rtl'] .yoo-theme-manager-wrap #theme-details-modal .yoo-theme-details-modal__header {
  padding: 10px 18px 10px 48px;
}

.yoo-theme-manager-wrap .yoo-theme-feature-filter-modal.yoo-plugin-details-modal {
  padding: 16px;
  z-index: 100135;
}

.yoo-theme-manager-wrap .yoo-theme-feature-filter-modal .yoo-theme-feature-filter-modal__box {
  width: min(96vw, 800px) !important;
  max-width: min(96vw, 800px) !important;
  min-width: 0 !important;
  min-height: min(420px, 80vh) !important;
  max-height: min(90vh, 880px) !important;
  height: auto !important;
  border-radius: 10px;
}

.yoo-theme-manager-wrap .yoo-theme-feature-filter-modal .yoo-theme-repo-modal__header {
  position: relative;
  padding: 10px 48px 10px 18px;
  min-height: 0;
}

.yoo-theme-manager-wrap .yoo-theme-feature-filter-modal .yoo-theme-repo-modal__title {
  font-size: 17px;
  font-weight: 600;
  margin: 0;
  line-height: 1.3;
}

.yoo-theme-manager-wrap .yoo-theme-feature-filter-modal .yoo-theme-repo-modal__close {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 5;
  width: 40px;
  height: 40px;
  padding: 0;
  margin: 0;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-sizing: border-box;
  background: rgba(0, 0, 0, 0.42);
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 2px 14px rgba(0, 0, 0, 0.4);
  transition:
    background 0.2s ease,
    border-color 0.2s ease,
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.yoo-theme-manager-wrap .yoo-theme-feature-filter-modal .yoo-theme-repo-modal__close:hover {
  background: rgba(0, 0, 0, 0.62);
  border-color: rgba(255, 255, 255, 0.35);
  transform: rotate(90deg);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.45);
}

.yoo-theme-manager-wrap .yoo-theme-feature-filter-modal .yoo-theme-repo-modal__close .dashicons {
  color: #fff;
  font-size: 22px;
  width: 22px;
  height: 22px;
}

[dir='rtl'] .yoo-theme-manager-wrap .yoo-theme-feature-filter-modal .yoo-theme-repo-modal__close {
  right: auto;
  left: 8px;
}

[dir='rtl'] .yoo-theme-manager-wrap .yoo-theme-feature-filter-modal .yoo-theme-repo-modal__header {
  padding: 10px 18px 10px 48px;
}

/* Live preview: edge-to-edge iframe + slim title strip (installed + directory tabs) */
.yoo-theme-manager-wrap .yoo-theme-preview-modal.yoo-plugin-details-modal {
  padding: 0;
  align-items: stretch;
  justify-content: stretch;
  z-index: 100150;
}

.yoo-theme-manager-wrap .yoo-theme-preview-modal .yoo-theme-preview-modal__box {
  width: 100vw !important;
  max-width: 100vw !important;
  min-width: 0 !important;
  height: 100vh !important;
  max-height: 100vh !important;
  min-height: 100vh !important;
  margin: 0 !important;
  padding: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: #0f1216;
}

.yoo-theme-manager-wrap .yoo-theme-preview-modal .yoo-theme-preview-modal__shell {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  position: relative;
  height: 100%;
}

.yoo-theme-manager-wrap .yoo-theme-preview-modal .yoo-theme-preview-modal__titlebar {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  min-height: 40px;
  padding: 6px 52px 6px 14px;
  border-bottom: 1px solid #e2e4e7;
  background: #fff;
  box-sizing: border-box;
}

.yoo-theme-manager-wrap .yoo-theme-preview-modal .yoo-theme-preview-modal__heading {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.25;
  color: #1d2327;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.yoo-theme-manager-wrap .yoo-theme-preview-modal .yoo-theme-preview-modal__close {
  position: absolute;
  top: 8px;
  inset-inline-end: 10px;
  inset-inline-start: auto;
  z-index: 55;
  width: 30px;
  height: 30px;
  padding: 0;
  margin: 0;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-sizing: border-box;
  background: rgba(0, 0, 0, 0.42);
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 2px 14px rgba(0, 0, 0, 0.28);
  opacity: 1;
  pointer-events: auto;
  transition:
    background 0.2s ease,
    border-color 0.2s ease,
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.yoo-theme-manager-wrap .yoo-theme-preview-modal .yoo-theme-preview-modal__close:hover,
.yoo-theme-manager-wrap .yoo-theme-preview-modal .yoo-theme-preview-modal__close:focus {
  background: rgba(0, 0, 0, 0.62);
  border-color: rgba(255, 255, 255, 0.35);
  transform: rotate(90deg);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.4);
}

.yoo-theme-manager-wrap .yoo-theme-preview-modal .yoo-theme-preview-modal__close .dashicons {
  color: #fff;
  font-size: 18px;
  width: 18px;
  height: 18px;
}

[dir='rtl'] .yoo-theme-manager-wrap .yoo-theme-preview-modal .yoo-theme-preview-modal__titlebar {
  padding: 6px 14px 6px 52px;
}

.yoo-theme-manager-wrap .yoo-theme-preview-modal .yoo-theme-preview-modal__body {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  padding: 0;
  margin: 0;
  background: #1d2327;
  overflow: hidden;
}

.yoo-theme-manager-wrap .yoo-theme-preview-modal .yoo-theme-preview-iframe {
  display: block;
  flex: 1;
  width: 100%;
  min-height: 0;
  height: 100%;
  border: 0;
  background: #fff;
}

/* Installed themes — list toggle: 5 per row; each card is a true square (width === height) */
.yoo-theme-manager-wrap #wp-results.yoo-wordpress-results.yoo-list-view-mode {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
  align-items: start;
}

.yoo-theme-manager-wrap .yoo-wordpress-results.yoo-list-view-mode .yoo-plugin-card.yoo-theme-card.yoo-theme-card--installed-list-row {
  display: block;
  position: relative;
  padding: 0;
  overflow: hidden;
  min-height: 0;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  aspect-ratio: 1 / 1;
  height: auto;
}

.yoo-theme-manager-wrap .yoo-theme-card--installed-list-row > .yoo-theme-card-media-wrap {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  min-height: 0;
  max-height: none;
  overflow: hidden;
  border-radius: 0;
  background: #f3f4f6;
  isolation: isolate;
}

.yoo-theme-manager-wrap .yoo-theme-card--installed-list-row > .yoo-theme-card-media-wrap .yoo-theme-card-media {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  min-height: 0;
  max-height: none;
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
  border-radius: 0;
}

.yoo-theme-manager-wrap .yoo-theme-card--installed-list-row > .yoo-theme-card-media-wrap .yoo-theme-card-media--placeholder {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 0;
  background: #f6f7f7;
}

.yoo-theme-manager-wrap .yoo-theme-card--installed-list-row > .yoo-theme-card-media-wrap .yoo-theme-card-media--placeholder .dashicons {
  font-size: 48px;
  width: 48px;
  height: 48px;
  color: var(--_yp-primary, #eda934);
}

.yoo-theme-manager-wrap .yoo-wordpress-results.yoo-list-view-mode .yoo-install-btn.yoo-theme-activate.is-activating {
  pointer-events: none;
  opacity: 0.72;
}

.yoo-theme-manager-wrap .yoo-wordpress-results.yoo-list-view-mode .yoo-install-btn.yoo-theme-activate.is-activated {
  background: #00a32a !important;
  border: 1px solid #00a32a !important;
  color: #fff !important;
  animation: yoo-media-copy-btn-pulse 0.65s ease-out;
}

.yoo-theme-manager-wrap .yoo-wordpress-results.yoo-list-view-mode .yoo-install-btn.yoo-theme-activate.is-activated .dashicons {
  color: #fff !important;
  animation: yoo-media-copy-icon-pop 0.65s cubic-bezier(0.34, 1.45, 0.64, 1);
}

.yoo-theme-manager-wrap .yoo-install-btn .dashicons.yoo-btn-spin {
  display: inline-block;
  animation: yoo-theme-btn-spin 0.72s linear infinite;
  vertical-align: -3px;
  margin-right: 6px;
}

@keyframes yoo-theme-btn-spin {
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 782px) {
  .yoo-theme-manager-wrap #wp-results.yoo-wordpress-results:not(.yoo-installed-split-layout):not(.yoo-list-view-mode) .yoo-theme-card-media-wrap .yoo-theme-card-media {
    height: 220px;
    min-height: 200px;
  }

  .yoo-theme-manager-wrap #wp-results.yoo-wordpress-results.yoo-list-view-mode {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
  }
}

@media (max-width: 480px) {
  .yoo-theme-manager-wrap #wp-results.yoo-wordpress-results:not(.yoo-installed-split-layout):not(.yoo-list-view-mode) .yoo-theme-card-media-wrap .yoo-theme-card-media {
    height: 200px;
    min-height: 180px;
  }

  .yoo-theme-manager-wrap #wp-results.yoo-wordpress-results.yoo-list-view-mode {
    grid-template-columns: 1fr;
    gap: 10px;
  }
}
