/* FaeCursor Admin Dashboard Styles */

/* Hide or relocate WordPress admin notices on FaeCursor page */
.toplevel_page_fae_cursor .notice,
.toplevel_page_fae_cursor .update-nag,
.toplevel_page_fae_cursor .error,
.toplevel_page_fae_cursor .updated,
.toplevel_page_fae_cursor .is-dismissible {
  margin: 20px 0 20px 0 !important;
  position: relative;
  z-index: 1;
}

/* Move notices below the header */
.toplevel_page_fae_cursor .wrap {
  position: relative;
}

.toplevel_page_fae_cursor .fae-cursor-dashboard {
  position: relative;
  z-index: 2;
}

/* Ensure notices don't appear above header */
.toplevel_page_fae_cursor .notice:not(.fae-notice) {
  margin-top: 0 !important;
  margin-bottom: 20px !important;
}

/* Admin Menu Icon */
#toplevel_page_fae_cursor img {
  width: 100%;
  object-fit: contain;
  opacity: 1 !important;
  height: 30px;
  padding: 0 !important;
}

/* Main Dashboard Container */
.fae-cursor-dashboard {
  max-width: 1200px;
  margin: 20px auto;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* Header Section */
.fae-dashboard-header {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 30px;
  border-radius: 12px;
  margin-bottom: 30px;
  box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
}

.fae-dashboard-title {
  color: rgb(255, 255, 255);
}

.fae-header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  position: relative;
  z-index: 2;
}

.fae-header-main {
  flex: 1;
}

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

.fae-dashboard-header h1 {
  margin: 0;
  font-size: 2.5em;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 12px;
}

.fae-dashboard-header .fae-icon {
  width: 40px;
  height: 40px;
  fill: currentColor;
}

.fae-title-group {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.fae-title-name {
  display: flex;
  align-items: center;
  gap: 10px;
  position: relative;
}

.fae-tagline {
  font-size: 0.30em;
  font-weight: 400;
  opacity: 0.85;
  letter-spacing: 1px;
}

.fae-version-badge {
  font-size: 0.45em;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.2);
  padding: 3px 8px;
  border-radius: 20px;
  vertical-align: middle;
  letter-spacing: 0.5px;
}

/* Stats Cards */
.fae-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 30px;
}

@media (max-width: 900px) {
  .fae-stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .fae-stats-grid {
    grid-template-columns: 1fr;
  }
}

/* Review Request Card */
.fae-review-request-card {
  background: #fff;
  border-radius: 12px;
  padding: 20px 25px;
  margin-bottom: 30px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  border: 1px solid #e5e7eb;
  transition: all 0.3s ease;
}

.fae-review-request-card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
  border-color: #667eea;
}

.fae-review-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.fae-review-left {
  display: flex;
  align-items: center;
  gap: 20px;
  flex: 1;
  min-width: 0;
}

.fae-review-stars {
  display: flex;
  gap: 4px;
  flex-shrink: 0;
}

.fae-review-stars svg {
  width: 20px;
  height: 20px;
  color: #fbbf24;
  fill: #fbbf24;
  filter: drop-shadow(0 1px 2px rgba(251, 191, 36, 0.3));
}

.fae-review-text {
  flex: 1;
  min-width: 0;
}

.fae-review-text h3 {
  margin: 0 0 4px 0;
  color: #1f2937;
  font-size: 1.05em;
  font-weight: 600;
  line-height: 1.3;
}

.fae-review-text p {
  margin: 0;
  color: #6b7280;
  font-size: 0.9em;
  line-height: 1.4;
}

.fae-review-actions {
  flex-shrink: 0;
  display: flex;
  gap: 10px;
  align-items: center;
}

.fae-review-btn {
  padding: 10px 20px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s ease;
  cursor: pointer;
  border: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  white-space: nowrap;
  line-height: 1;
}

.fae-review-btn-primary {
  background: #667eea;
  color: #fff;
  padding: 10px 24px;
}

.fae-review-btn-primary:hover {
  background: #5568d3;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.fae-review-btn-dismiss {
  background: transparent;
  color: #9ca3af;
  padding: 8px;
  border: 1px solid transparent;
}

.fae-review-btn-dismiss svg {
  width: 18px;
  height: 18px;
}

.fae-review-btn-dismiss:hover {
  background: #f3f4f6;
  color: #6b7280;
  border-color: #e5e7eb;
}

.fae-review-request-card.fae-review-hidden {
  display: none;
}

/* Responsive adjustments for review card */
@media (max-width: 900px) {
  .fae-review-content {
    flex-wrap: wrap;
  }
  
  .fae-review-actions {
    width: 100%;
    justify-content: flex-end;
  }
}

@media (max-width: 600px) {
  .fae-review-request-card {
    padding: 18px 20px;
  }
  
  .fae-review-left {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  
  .fae-review-content {
    flex-direction: column;
    align-items: stretch;
  }
  
  .fae-review-actions {
    width: 100%;
    justify-content: space-between;
    margin-top: 8px;
  }
  
  .fae-review-btn-primary {
    flex: 1;
  }
}

.fae-stat-card {
  background: white;
  padding: 25px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  border-left: 4px solid #667eea;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.fae-stat-card-content {
  position: relative;
  z-index: 1;
}

.fae-stat-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.fae-stat-card h3 {
  margin: 0 0 10px 0;
  color: #333;
  font-size: 0.9em;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.fae-stat-card .fae-stat-value {
  font-size: 2.5em;
  font-weight: 700;
  color: #667eea;
  margin: 0;
}

/* Inactive state - dull/muted styling */
.fae-stat-card-inactive {
  border-left-color: #9ca3af;
  opacity: 0.75;
}

.fae-stat-card-inactive .fae-stat-value {
  color: #9ca3af;
}

.fae-stat-card-inactive:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

/* Multiple effects - smaller text */
.fae-stat-value-small {
  font-size: 2em;
}

/* Detail text for multiple effects */
.fae-stat-detail {
  margin: 8px 0 0 0;
  font-size: 0.85em;
  color: #6b7280;
  font-weight: 500;
  line-height: 1.4;
}

/* Review Notification - Slide in from Right */
.fae-review-notification {
  position: fixed;
  right: 20px;
  bottom: 20px;
  width: 360px;
  max-width: calc(100vw - 40px);
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(0, 0, 0, 0.05);
  transform: translateX(120%);
  opacity: 0;
  transition: transform 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55), opacity 0.5s ease;
  z-index: 99999;
  overflow: hidden;
}

.fae-review-notification.fae-show {
  transform: translateX(0);
  opacity: 1;
}

.fae-review-notification-bar {
  height: 4px;
  background: linear-gradient(90deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
  background-size: 200% 100%;
  animation: fae-gradient-shift 3s ease infinite;
}

@keyframes fae-gradient-shift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.fae-review-notification-content {
  padding: 20px;
  display: flex;
  gap: 16px;
}

.fae-review-notification-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.fae-review-notification-icon svg {
  width: 24px;
  height: 24px;
  color: #fbbf24;
  fill: #fbbf24;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
  animation: fae-icon-bounce 2s ease-in-out infinite;
}

@keyframes fae-icon-bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

.fae-review-notification-body {
  flex: 1;
  min-width: 0;
}

.fae-review-notification-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 6px;
}

.fae-review-notification-header h4 {
  margin: 0;
  font-size: 1.05em;
  font-weight: 600;
  color: #1f2937;
  line-height: 1.3;
}

.fae-review-notification-dismiss {
  flex-shrink: 0;
  background: transparent;
  border: none;
  color: #9ca3af;
  padding: 2px;
  cursor: pointer;
  transition: all 0.2s ease;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.fae-review-notification-dismiss svg {
  width: 18px;
  height: 18px;
}

.fae-review-notification-dismiss:hover {
  color: #ef4444;
  background: #fee2e2;
  transform: rotate(90deg);
}

.fae-review-notification-text {
  margin: 0 0 10px 0;
  font-size: 0.9em;
  color: #6b7280;
  line-height: 1.4;
}

.fae-review-notification-stars {
  display: flex;
  gap: 4px;
  margin-bottom: 12px;
}

.fae-review-notification-stars svg {
  width: 18px;
  height: 18px;
  color: #fbbf24;
  fill: #fbbf24;
  transition: transform 0.2s ease;
  cursor: pointer;
}

.fae-review-notification-stars svg:hover {
  transform: scale(1.2) rotate(-10deg);
}

.fae-review-notification-actions {
  display: flex;
  gap: 8px;
  align-items: stretch;
  flex-wrap: nowrap;
}

.fae-review-notification-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 0.85em;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
  white-space: nowrap;
  flex-shrink: 0;
}

.fae-review-notification-btn:visited {
  color: #fff;
}

.fae-review-notification-btn:focus {
  color: #fff;
  outline: 2px solid #667eea;
  outline-offset: 2px;
}

.fae-review-notification-btn:active {
  color: #fff;
}

.fae-review-notification-btn svg {
  width: 14px;
  height: 14px;
  transition: transform 0.3s ease;
  flex-shrink: 0;
}

.fae-review-notification-btn:hover {
  background: linear-gradient(135deg, #5568d3 0%, #6941a5 100%);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.fae-review-notification-btn:hover svg {
  transform: translateX(4px);
}

.fae-review-notification-later {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  color: #6b7280;
  border: 1px solid #e5e7eb;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 0.85em;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
  flex-shrink: 0;
}

.fae-review-notification-later:hover {
  background: #f3f4f6;
  color: #374151;
  border-color: #d1d5db;
}

/* Responsive for mobile */
@media (max-width: 480px) {
  .fae-review-notification {
    left: 10px;
    right: 10px;
    bottom: 10px;
    width: auto;
    max-width: none;
  }
  
  .fae-review-notification-content {
    padding: 16px;
  }
  
  .fae-review-notification-icon {
    width: 40px;
    height: 40px;
  }
  
  .fae-review-notification-icon svg {
    width: 20px;
    height: 20px;
  }
}

/* Main Content */
.fae-main-content {
  margin-bottom: 30px;
}

/* Settings Panel */
.fae-settings-panel {
  background: white;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}


.fae-settings-panel .fae-icon {
  width: 24px;
  height: 24px;
  fill: #667eea;
}

/* Effect Selection */
.fae-effect-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 170px));
  gap: 12px;
  margin-bottom: 25px;
}

.fae-effect-option {
  position: relative;
  cursor: pointer;
  border: 2px solid #e1e5e9;
  border-radius: 8px;
  padding: 12px 10px;
  text-align: center;
  transition: all 0.3s ease;
  background: white;
  height: 75px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.fae-effect-option:hover {
  border-color: #667eea;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(102, 126, 234, 0.2);
}

.fae-effect-option input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
/* Visual "selected" state for effect card (minimal styling) */
.fae-effect-option.fae-effect-selected {
  border-color: #667eea;
  background: #ffffff;
  color: #667eea;
}

.fae-effect-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  position: relative;
  width: 100%;
}

.fae-effect-icon {
  width: 32px;
  height: 32px;
  fill: currentColor;
}

.fae-effect-name {
  font-weight: 600;
  font-size: 0.9em;
}

/* Letter Avatar - Clean Subtle Design */
.fae-effect-letter {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: #f1f5f9;
  color: #64748b;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  flex-shrink: 0;
  transition: all 0.2s ease;
  border: 1px solid #e2e8f0;
}

.fae-effect-option:hover .fae-effect-letter {
  background: #e2e8f0;
  color: #475569;
  border-color: #cbd5e1;
}
/* Letter style when card is selected */
.fae-effect-option.fae-effect-selected .fae-effect-letter {
  background: #667eea;
  color: #ffffff;
  border-color: #667eea;
}

/* Active Effect Badge */
.fae-effect-active-badge {
  position: absolute;
  top: 6px;
  right: 6px;
  background: linear-gradient(135deg, #4caf50 0%, #45a049 100%);
  color: white;
  font-size: 9px;
  font-weight: 700;
  padding: 3px 6px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 6px rgba(76, 175, 80, 0.3);
  z-index: 10;
  pointer-events: none;
  line-height: 1.2;
}

.fae-effect-active {
  border-color: #4caf50 !important;
  box-shadow: 0 0 0 1px rgba(76, 175, 80, 0.2);
}

.fae-effect-active:hover {
  border-color: #4caf50 !important;
  box-shadow: 0 5px 15px rgba(76, 175, 80, 0.25);
}

/* Effect Settings */
.fae-effect-settings {
  margin-top: 25px;
}

/* ═══════════════════════════════════════════════════════════════ */
/* NEW GROUPED SETTINGS LAYOUT */
/* ═══════════════════════════════════════════════════════════════ */

.fae-settings-group-container {
  background: #ffffff;
  border-radius: 16px;
  margin-bottom: 24px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  border: 1px solid #e8eaed;
  overflow: hidden;
}

.fae-settings-group-header {
  background: linear-gradient(135deg, #f8f9ff 0%, #f3f4f8 100%);
  padding: 18px 24px;
  border-bottom: 1px solid #e8eaed;
  display: flex;
  align-items: center;
}

.fae-settings-group-text {
  flex: 1;
}

.fae-settings-group-title {
  margin: 0 0 2px 0;
  font-size: 1.1em;
  font-weight: 700;
  color: #1a1a2e;
}

.fae-settings-group-description {
  margin: 0;
  font-size: 0.85em;
  color: #6b7280;
}

.fae-settings-group-content {
  padding: 24px;
}

/* Settings Row - Horizontal layout for related fields */
.fae-settings-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-bottom: 0;
}

.fae-setting-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.fae-setting-item-wide {
  grid-column: span 2;
}

.fae-setting-label {
  font-size: 14px;
  font-weight: 600;
  color: #374151;
}

.fae-setting-hint {
  font-size: 12px;
  color: #6b7280;
  margin: 4px 0 0 0;
}

/* Settings Divider */
.fae-settings-divider {
  display: flex;
  align-items: center;
  margin: 24px 0 20px 0;
  gap: 12px;
}

.fae-settings-divider::before,
.fae-settings-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: #e5e7eb;
}

.fae-settings-divider span {
  font-size: 12px;
  font-weight: 600;
  color: #9ca3af;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Subgroups within a group */
.fae-settings-subgroup {
  background: #f9fafb;
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 16px;
  border: 1px solid #f0f1f3;
}

.fae-settings-subgroup:last-child {
  margin-bottom: 0;
}

.fae-settings-subgroup-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid #e5e7eb;
}

.fae-subgroup-icon {
  width: 20px;
  height: 20px;
  fill: #667eea;
  stroke: #667eea;
  flex-shrink: 0;
}

.fae-subgroup-title {
  font-size: 14px;
  font-weight: 600;
  color: #374151;
}

.fae-settings-subgroup-content {
  padding: 16px 0;
}

/* Device Toggles */
.fae-device-toggles {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.fae-device-toggles .fae-toggle-switch {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  padding: 8px 16px;
  background: white;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
  transition: all 0.2s ease;
}

.fae-device-toggles .fae-toggle-switch:hover {
  border-color: #667eea;
  box-shadow: 0 2px 8px rgba(102, 126, 234, 0.1);
}

.fae-device-toggles .fae-toggle-label {
  font-size: 13px;
  font-weight: 500;
  color: #374151;
}

/* Radio Group */
.fae-radio-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 16px;
}

.fae-radio-item-disabled {
  opacity: 0.6;
  cursor: not-allowed;
  pointer-events: none;
}

.fae-radio-item-disabled .fae-radio-label {
  color: #9ca3af;
}

.fae-radio-item-disabled input[type="radio"] {
  cursor: not-allowed;
}

.fae-radio-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 16px;
  background: white;
  border-radius: 8px;
  border: 2px solid #e5e7eb;
  cursor: pointer;
  transition: all 0.2s ease;
}

.fae-radio-item:hover {
  border-color: #c7d2fe;
  background: #fafaff;
}

.fae-radio-item:has(input:checked) {
  border-color: #667eea;
  background: #f5f3ff;
}

.fae-radio-item input[type="radio"] {
  margin-top: 2px;
  accent-color: #667eea;
}

.fae-radio-label {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.fae-radio-label strong {
  font-size: 14px;
  color: #1f2937;
}

.fae-radio-label small {
  font-size: 12px;
  color: #6b7280;
}

/* Checkbox List */
.fae-checkbox-list {
  max-height: 200px;
  overflow-y: auto;
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 12px;
}

.fae-checkbox-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  cursor: pointer;
  border-radius: 6px;
  transition: background 0.15s ease;
}

.fae-checkbox-item:hover {
  background: #f3f4f6;
}

.fae-checkbox-item input[type="checkbox"] {
  accent-color: #667eea;
}

.fae-checkbox-item span {
  font-size: 14px;
  color: #374151;
}

/* Roles Checkbox Grid */
.fae-roles-checkbox-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 8px;
  margin-bottom: 16px;
}

.fae-checkbox-highlighted {
  background: #fef3c7;
  border: 1px solid #fcd34d;
  border-radius: 8px;
  margin-top: 12px;
  padding-top: 12px;
}

.fae-checkbox-highlighted:hover {
  background: #fef3c7;
}

/* Specific Roles Wrapper */
.fae-specific-roles-wrapper {
  background: #f9fafb;
  border-radius: 8px;
  padding: 16px;
  margin-top: 12px;
  border: 1px solid #e5e7eb;
}

/* Scope Pages Wrapper - matches roles wrapper styling */
.fae-scope-pages-wrapper {
  background: #f9fafb;
  border-radius: 8px;
  padding: 16px;
  margin-top: 12px;
  border: 1px solid #e5e7eb;
}

/* Pages Checkbox Grid - matches roles grid */
.fae-pages-checkbox-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 8px;
  max-height: 250px;
  overflow-y: auto;
  padding-right: 8px;
}

/* Scrollbar for pages grid */
.fae-pages-checkbox-grid::-webkit-scrollbar {
  width: 6px;
}

.fae-pages-checkbox-grid::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 3px;
}

.fae-pages-checkbox-grid::-webkit-scrollbar-thumb {
  background: #c1c1c1;
  border-radius: 3px;
}

.fae-pages-checkbox-grid::-webkit-scrollbar-thumb:hover {
  background: #a8a8a8;
}

/* CSS Selector Wrapper */
.fae-scope-selector-wrapper {
  background: #f9fafb;
  border-radius: 8px;
  padding: 16px;
  margin-top: 12px;
  border: 1px solid #e5e7eb;
}

.fae-scope-selector-wrapper input[type="text"] {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid #e5e7eb;
  border-radius: 8px;
  font-size: 14px;
  font-family: 'SF Mono', 'Monaco', 'Consolas', monospace;
  background: white;
  transition: all 0.2s ease;
}

.fae-scope-selector-wrapper input[type="text"]:focus {
  outline: none;
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.fae-scope-selector-wrapper input[type="text"]:hover {
  border-color: #c7d2fe;
}

/* Icon Settings Wrapper */
.fae-icon-settings-wrapper {
  margin-top: 0;
}

/* ═══════════════════════════════════════════════════════════════ */
/* LEGACY SUPPORT - Old section styles (for other tabs) */
/* ═══════════════════════════════════════════════════════════════ */

.fae-settings-section {
  background: #f8f9fa;
  border-radius: 12px;
  padding: 25px;
  margin-bottom: 20px;
  border: 1px solid #e1e5e9;
}

.fae-settings-section h3 {
  margin: 0 0 20px 0;
  color: #333;
  font-size: 1.3em;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
}

.fae-settings-section .fae-icon {
  width: 20px;
  height: 20px;
  fill: #667eea;
}

.fae-section-badge {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.7em;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-left: auto;
}

.fae-settings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.fae-icon-picker-group {
  grid-column: 1 / -1;
}

.fae-icon-settings-row {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 20px;
  align-items: end;
}

/* Responsive for grouped settings */
@media (max-width: 768px) {
  .fae-settings-group-header {
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
  }
  
  .fae-settings-row {
    grid-template-columns: 1fr;
  }
  
  .fae-setting-item-wide {
    grid-column: span 1;
  }
  
  .fae-device-toggles {
    flex-direction: column;
  }
  
  .fae-device-toggles .fae-toggle-switch {
    width: 100%;
  }
  
  .fae-roles-checkbox-grid {
    grid-template-columns: 1fr;
  }
}

.fae-info-card {
  background: white;
  border: 1px solid #e1e5e9;
  border-radius: 8px;
  padding: 20px;
  margin-top: 10px;
}

.fae-info-content {
  display: flex;
  align-items: flex-start;
  gap: 15px;
}

.fae-info-icon {
  width: 24px;
  height: 24px;
  fill: #17a2b8;
  flex-shrink: 0;
  margin-top: 2px;
}

.fae-info-text h4 {
  margin: 0 0 8px 0;
  color: #333;
  font-size: 1.1em;
  font-weight: 600;
}

.fae-info-text p {
  margin: 0;
  color: #666;
  line-height: 1.5;
}

.fae-setting-group {
  margin-bottom: 20px;
}

.fae-setting-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: #333;
}

.fae-setting-group input[type="text"],
.fae-setting-group input[type="number"],
.fae-setting-group select {
  width: 100%;
  padding: 10px 15px;
  border: 2px solid #e1e5e9;
  border-radius: 6px;
  font-size: 14px;
  transition: border-color 0.3s ease;
}

.fae-setting-group input:focus,
.fae-setting-group select:focus {
  outline: none;
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* New grouped layout input styles */
.fae-setting-item input[type="text"],
.fae-setting-item input[type="number"],
.fae-setting-item select {
  width: 100%;
  padding: 10px 15px;
  border: 2px solid #e1e5e9;
  border-radius: 8px;
  font-size: 14px;
  transition: all 0.2s ease;
  background: white;
}

.fae-setting-item input[type="text"]:focus,
.fae-setting-item input[type="number"]:focus,
.fae-setting-item select:focus {
  outline: none;
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.fae-setting-item input[type="text"]:hover,
.fae-setting-item input[type="number"]:hover,
.fae-setting-item select:hover {
  border-color: #c7d2fe;
}

.fae-color-input {
  display: flex;
  align-items: center;
  gap: 10px;
}

.fae-color-picker {
  width: 50px;
  height: 40px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
}

/* Icon Picker Styles */
.fae-icon-picker-container {
  position: relative;
}

.fae-icon-picker-trigger {
  width: 100%;
  padding: 10px 15px;
  border: 2px solid #e1e5e9;
  border-radius: 6px;
  background: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: border-color 0.3s ease;
  text-align: left;
}

.fae-icon-picker-trigger:hover {
  border-color: #667eea;
}

.fae-icon-picker-trigger:focus {
  outline: none;
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.fae-selected-icon {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.fae-selected-icon svg {
  width: 100%;
  height: 100%;
  fill: #667eea;
}

.fae-selected-icon svg path {
  fill: #667eea;
  stroke: #667eea;
}

.fae-icon-name {
  flex: 1;
  font-size: 14px;
  color: #333;
}

.fae-dropdown-arrow {
  width: 16px;
  height: 16px;
  fill: #666;
  transition: transform 0.3s ease;
}

.fae-icon-picker-trigger.active .fae-dropdown-arrow {
  transform: rotate(180deg);
}

/* Icon Picker Modal */
.fae-icon-picker-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.fae-icon-picker-modal.active {
  display: flex;
}

.fae-icon-picker-content {
  background: white;
  border-radius: 12px;
  width: 100%;
  max-width: 600px;
  max-height: 80vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  animation: fae-modal-slide-in 0.3s ease;
}

@keyframes fae-modal-slide-in {
  from {
    opacity: 0;
    transform: scale(0.9) translateY(-20px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.fae-icon-picker-header {
  padding: 20px 25px;
  border-bottom: 1px solid #e1e5e9;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.fae-icon-picker-header h3 {
  margin: 0;
  color: #333;
  font-size: 1.2em;
  font-weight: 600;
}

.fae-icon-picker-close {
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  border-radius: 6px;
  transition: background-color 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.fae-icon-picker-close:hover {
  background: #f8f9fa;
}

.fae-icon-picker-close svg {
  width: 20px;
  height: 20px;
  fill: #666;
}

.fae-icon-picker-search {
  padding: 20px 25px;
  border-bottom: 1px solid #e1e5e9;
}

.fae-icon-picker-search input {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid #e1e5e9;
  border-radius: 8px;
  font-size: 14px;
  transition: border-color 0.3s ease;
}

.fae-icon-picker-search input:focus {
  outline: none;
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.fae-icon-picker-grid {
  padding: 20px 25px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
  gap: 15px;
  max-height: 400px;
  overflow-y: auto;
  flex: 1;
}

.fae-icon-option {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 15px 10px;
  border: 2px solid #e1e5e9;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  background: white;
  text-align: center;
}

.fae-icon-option:hover {
  border-color: #667eea;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(102, 126, 234, 0.2);
}

.fae-icon-option.selected {
  border-color: #667eea;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
}

.fae-icon-preview {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
}

.fae-icon-preview svg {
  width: 100%;
  height: 100%;
  fill: currentColor;
}

.fae-icon-preview svg path {
  fill: currentColor;
  stroke: currentColor;
}

.fae-icon-option.selected .fae-icon-preview svg {
  fill: white;
}

.fae-icon-option.selected .fae-icon-preview svg path {
  fill: white;
  stroke: white;
}

.fae-icon-label {
  font-size: 11px;
  font-weight: 500;
  line-height: 1.2;
  word-break: break-word;
}

.fae-icon-option.selected .fae-icon-label {
  color: white;
}

/* Scrollbar styling for the grid */
.fae-icon-picker-grid::-webkit-scrollbar {
  width: 6px;
}

.fae-icon-picker-grid::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 3px;
}

.fae-icon-picker-grid::-webkit-scrollbar-thumb {
  background: #c1c1c1;
  border-radius: 3px;
}

.fae-icon-picker-grid::-webkit-scrollbar-thumb:hover {
  background: #a8a8a8;
}

/* Action Buttons */
.fae-action-buttons {
  display: flex;
  gap: 15px;
  margin-top: 30px;
}

.fae-btn {
  padding: 12px 24px;
  border: none;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.fae-btn-primary {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
}

.fae-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.fae-btn-secondary {
  background: #6c757d;
  color: white;
}

.fae-btn-secondary:hover {
  background: #5a6268;
  transform: translateY(-2px);
}

.fae-btn-danger {
  background: #dc3545;
  color: white;
}

.fae-btn-danger:hover {
  background: #c82333;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(220, 53, 69, 0.4);
}

.fae-btn-outline {
  background: transparent;
  color: #667eea;
  border: 2px solid #667eea;
}

.fae-btn-outline:hover {
  background: #667eea;
  color: white;
}

/* Notices */
.fae-notice {
  padding: 15px 20px;
  border-radius: 8px;
  margin: 20px 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.fae-notice-success {
  background: #d4edda;
  color: #155724;
  border-left: 4px solid #28a745;
}

.fae-notice-info {
  background: #d1ecf1;
  color: #0c5460;
  border-left: 4px solid #17a2b8;
}

.fae-notice-warning {
  background: #fff3cd;
  color: #856404;
  border-left: 4px solid #ffc107;
}

/* Responsive Design */
@media (max-width: 768px) {
  .fae-stats-grid {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  }

  .fae-effect-grid {
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  }

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

  .fae-header-content {
    flex-direction: column;
    gap: 15px;
  }

  .fae-settings-grid {
    grid-template-columns: 1fr;
  }

  .fae-settings-section {
    padding: 20px;
  }

  .fae-icon-settings-row {
    grid-template-columns: 1fr;
    gap: 15px;
  }
}

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

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


/* Info Button */
.fae-info-button {
  position: relative;
  background: none;
  border: none;
  padding: 4px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: auto;
  color: #667eea;
  transition: all 0.3s ease;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

.fae-info-button:hover {
  background: rgba(102, 126, 234, 0.1);
  color: #764ba2;
}

.fae-info-button .fae-icon {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

/* Inline Info Button (for settings) */
.fae-info-button-inline {
  margin-left: 4px;
  width: 18px;
  height: 18px;
  padding: 2px;
}

.fae-info-button-inline .fae-icon {
  width: 14px;
  height: 14px;
}

/* Tooltip */
.fae-tooltip {
  position: absolute;
  bottom: calc(100% + 10px);
  right: 0;
  background: white;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  padding: 0;
  min-width: 280px;
  max-width: 320px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(5px);
  transition: all 0.3s ease;
  z-index: 1000;
  pointer-events: none;
}

.fae-info-button:hover .fae-tooltip,
.fae-info-button:focus .fae-tooltip,
.fae-info-button.active .fae-tooltip {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

.fae-tooltip-content {
  padding: 15px;
  font-size: 13px;
  color: #666;
  line-height: 1.6;
}

.fae-tooltip-content strong {
  color: #333;
  display: block;
  margin-bottom: 8px;
  font-size: 14px;
}

.fae-tooltip-content p {
  margin: 0;
  color: #666;
}

/* Tooltip Arrow */
.fae-tooltip::after {
  content: '';
  position: absolute;
  top: 100%;
  right: 20px;
  width: 0;
  height: 0;
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-top: 8px solid white;
}



 /* Inline Tooltip (for settings) */
.fae-settings-header .fae-tooltip-inline {
  bottom: calc(100% + 8px);
  left: auto;
  right: 0;
  min-width: 250px;
  max-width: 300px;
}

.fae-settings-header .fae-tooltip-inline::after {
  top: 100%;
  left: auto;
  right: 20px;
}


 /* Inline Tooltip (for settings) */
.fae-settings-section .fae-tooltip-inline {
  bottom: calc(100% + 8px);
  left: 0;
  right: auto;
  min-width: 250px;
  max-width: 300px;
}

.fae-settings-section .fae-tooltip-inline::after {
  top: 100%;
  left: 20px;
  right: auto;
}






/* Hide Default Cursor Toggle Switch */
.fae-hide-cursor-toggle-wrapper {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
}

.fae-toggle-switch {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  user-select: none;
}

.fae-toggle-input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.fae-toggle-slider {
  position: relative;
  display: inline-block;
  width: 36px;
  height: 20px;
  background-color: #ccc;
  border-radius: 20px;
  transition: background-color 0.3s ease;
  flex-shrink: 0;
}

.fae-toggle-slider:before {
  content: "";
  position: absolute;
  height: 14px;
  width: 14px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  border-radius: 50%;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.fae-toggle-input:checked + .fae-toggle-slider {
  background-color: #667eea;
}

.fae-toggle-input:checked + .fae-toggle-slider:before {
  transform: translateX(16px);
  box-shadow: 0 1px 4px rgba(102, 126, 234, 0.4);
}

.fae-toggle-input:focus + .fae-toggle-slider {
  outline: 2px solid #667eea;
  outline-offset: 2px;
}

.fae-toggle-label {
  font-size: 14px;
  font-weight: 600;
  color: #333;
  white-space: nowrap;
}

.fae-toggle-input:checked ~ .fae-toggle-label {
  color: #667eea;
}

/* Responsive adjustments for toggle */
@media (max-width: 768px) {
  .fae-settings-header {
    flex-direction: column;
    align-items: flex-start !important;
  }
  
  .fae-hide-cursor-toggle-wrapper {
    margin-left: 0;
    width: 100%;
    justify-content: space-between;
  }

  .fae-tabs-nav {
    flex-direction: column;
    gap: 0;
  }

  .fae-tab-button {
    width: 100%;
    justify-content: center;
    border-bottom: 2px solid #e1e5e9;
    border-left: 3px solid transparent;
    margin-bottom: 0;
    padding: 12px 20px;
  }

  .fae-tab-button.active {
    border-bottom-color: #e1e5e9;
    border-left-color: #667eea;
  }
}

/* Tabs Wrapper */
.fae-tabs-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

/* Tabs Navigation */
.fae-tabs-nav {
  display: flex;
  gap: 10px;
  border-bottom: 2px solid #e1e5e9;
  padding-bottom: 0;
  flex: 1;
}

.fae-tabs-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.fae-tab-button {
  background: transparent;
  border: none;
  padding: 15px 25px;
  position: relative;
  font-size: 16px;
  font-weight: 600;
  color: #666;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  transition: all 0.3s ease;
  position: relative;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.fae-tab-button:hover {
  color: #667eea;
  background: rgba(102, 126, 234, 0.05);
}

.fae-tab-button.active {
  color: #667eea;
  border-bottom-color: #667eea;
  background: transparent;
}

.fae-tab-button .fae-icon {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

/* Tab Status Indicator */
.fae-tab-status {
  display: inline-flex;
  align-items: center;
  margin-left: 8px;
  vertical-align: middle;
}

.fae-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #dc3545;
  display: inline-block;
  transition: all 0.3s ease;
  box-shadow: 0 0 0 0 rgba(220, 53, 69, 0);
}

.fae-tab-status.active .fae-status-dot {
  background: #4caf50;
  box-shadow: 0 0 0 2px rgba(76, 175, 80, 0.2);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(76, 175, 80, 0.4);
  }
  50% {
    box-shadow: 0 0 0 4px rgba(76, 175, 80, 0);
  }
}

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

.fae-tab-content.active {
  display: block;
  animation: fae-tab-fade-in 0.3s ease;
}

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

/* Keyboard Effects Section */
.fae-keyboard-effects-panel {
  margin-top: 0;
}

.fae-keyboard-effect-grid {
  min-height: 200px;
}

.fae-keyboard-effect-placeholder {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  border: 2px dashed #e1e5e9;
  border-radius: 8px;
  background: #fafbfc;
  transition: all 0.3s ease;
}

.fae-keyboard-effect-placeholder:hover {
  border-color: #667eea;
  background: #f8f9ff;
}

.fae-placeholder-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.fae-placeholder-content .fae-icon {
  fill: #667eea;
}

.fae-keyboard-effect-settings {
  margin-top: 25px;
}

/* ═══════════════════════════════════════════════════════════════ */
/* STICKY SIDEBAR LAYOUT */
/* ═══════════════════════════════════════════════════════════════ */

.fae-split-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 24px;
  align-items: start;
}

@media (max-width: 1100px) {
  .fae-split-layout {
    grid-template-columns: 1fr;
  }
}

.fae-main-content {
  min-width: 0;
}

/* Sticky Sidebar */
.fae-sidebar-preview {
  position: sticky;
  top: 42px; /* Below WP admin bar */
  max-height: calc(100vh - 62px);
  overflow: visible;
}

@media (max-width: 1100px) {
  .fae-sidebar-preview {
    position: static;
    max-height: none;
  }
}

.fae-preview-card {
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  border: 1px solid #e8eaed;
  overflow: visible;
}

/* Preview Section */
.fae-preview-section {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
  border-radius: 16px 16px 0 0;
  overflow: hidden;
}

.fae-preview-header-inline {
  padding: 14px 18px;
  background: rgba(255,255,255,0.05);
  border-bottom: 1px solid rgba(255,255,255,0.1);
  font-size: 11px;
  font-weight: 700;
  color: rgba(255,255,255,0.6);
  text-transform: uppercase;
  letter-spacing: 1px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.fae-preview-header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.fae-preview-bg-toggle {
  position: relative;
  width: 44px;
  height: 24px;
  padding: 0;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  outline: none;
  overflow: hidden;
}

.fae-preview-bg-toggle:hover {
  background: rgba(255,255,255,0.2);
  border-color: rgba(255,255,255,0.3);
}

.fae-preview-bg-toggle:focus {
  border-color: #667eea;
  box-shadow: 0 0 0 2px rgba(102, 126, 234, 0.3);
}

/* .fae-preview-bg-toggle[data-bg="light"] {
  background: rgba(255, 193, 7, 0.3);
  border-color: rgba(255, 193, 7, 0.5);
} */

.fae-bg-toggle-icon {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  color: rgba(255,255,255,0.9);
}

.fae-bg-toggle-icon svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
}

.fae-bg-icon-moon {
  left: 3px;
  opacity: 1;
  transform: translateY(-50%) scale(1) rotate(0deg);
}

.fae-bg-icon-sun {
  right: 3px;
  opacity: 0;
  transform: translateY(-50%) scale(0.5) rotate(90deg);
}

 .fae-preview-bg-toggle[data-bg="light"] .fae-bg-icon-moon {
  opacity: 0;
  transform: translateY(-50%) scale(0.5) rotate(-90deg);
}

.fae-preview-bg-toggle[data-bg="light"] .fae-bg-icon-sun {
  opacity: 1;
  transform: translateY(-50%) scale(1) rotate(0deg);
  color: #ffc107;
} 

/* Expand Button */
.fae-expand-btn {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 5px 10px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 5px;
  color: rgba(255,255,255,0.7);
  font-size: 10px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.fae-expand-btn:hover {
  background: rgba(255,255,255,0.15);
  color: #fff;
}
.fae-expand-btn svg {
  width: 12px;
  height: 12px;
  fill: currentColor;
}

/* Fullscreen Preview Modal */
.fae-preview-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(10,10,20,0.95);
  z-index: 99999;
  padding: 20px;
}
.fae-preview-modal.active {
  display: flex;
  flex-direction: column;
}
.fae-preview-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 20px;
  background: rgba(255,255,255,0.05);
  border-radius: 12px 12px 0 0;
}
.fae-preview-modal-title {
  color: #fff;
  font-size: 14px;
  font-weight: 600;
}
.fae-preview-modal-close {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 6px;
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}
.fae-preview-modal-close:hover {
  background: rgba(239,68,68,0.3);
  border-color: rgba(239,68,68,0.5);
}
.fae-preview-modal-close svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
}
.fae-preview-modal-body {
  flex: 1;
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
  border-radius: 0 0 12px 12px;
  position: relative;
  min-height: 0;
}
.fae-preview-modal-iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  border-radius: 0 0 12px 12px;
}
.fae-preview-modal-hint {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  padding: 8px 16px;
  background: rgba(0,0,0,0.5);
  border-radius: 20px;
  color: rgba(255,255,255,0.5);
  font-size: 12px;
}

.fae-preview-iframe-wrapper {
  position: relative;
  height: 280px;
}

.fae-preview-iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  opacity: 0;
  transition: opacity 0.2s ease-in;
}

.fae-preview-iframe.loaded {
  opacity: 1;
}

/* Appearance Section */
.fae-appearance-section {
  background: #fafbff;
  border-radius: 0 0 16px 16px;
  overflow: visible;
}

.fae-appearance-section .fae-preview-header-inline {
  background: linear-gradient(135deg, #667eea10 0%, #764ba210 100%);
  color: #4b5563;
  border-bottom: 1px solid #e8eaed;
  border-top: 1px solid #e8eaed;
}

.fae-appearance-settings {
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  overflow: visible;
}

/* Hide old container styles */
.fae-preview-appearance-container {
  display: none !important;
}

.fae-inline-setting {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.fae-inline-setting label {
  font-size: 11px;
  font-weight: 600;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.fae-inline-setting select {
  padding: 8px 12px;
  border: 2px solid #e5e7eb;
  border-radius: 6px;
  font-size: 13px;
  background: white;
  cursor: pointer;
  transition: border-color 0.2s;
}

.fae-inline-setting select:hover {
  border-color: #c7d2fe;
}

.fae-inline-setting select:focus {
  outline: none;
  border-color: #667eea;
}

/* Color Input Inline */
.fae-color-input-inline {
  display: flex;
  gap: 8px;
}

.fae-color-picker-inline {
  width: 44px;
  height: 36px;
  border: 2px solid #e5e7eb;
  border-radius: 6px;
  cursor: pointer;
  padding: 2px;
}

.fae-color-input-inline input[type="text"] {
  flex: 1;
  padding: 8px 10px;
  border: 2px solid #e5e7eb;
  border-radius: 6px;
  font-size: 13px;
  font-family: 'SF Mono', monospace;
}

.fae-color-input-inline input[type="text"]:focus {
  outline: none;
  border-color: #667eea;
}

/* Icon Picker Inline */
.fae-icon-picker-inline {
  position: relative;
  z-index: 50;
}

.fae-icon-trigger {
  width: 100%;
  padding: 8px 12px;
  background: white;
  border: 2px solid #e5e7eb;
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: border-color 0.2s;
}

.fae-icon-trigger:hover {
  border-color: #c7d2fe;
}

.fae-icon-chevron {
  width: 12px;
  height: 12px;
  fill: #9ca3af;
  margin-left: auto;
  transition: transform 0.2s;
}

.fae-icon-dropdown.active + .fae-icon-trigger .fae-icon-chevron,
.fae-icon-picker-inline:has(.fae-icon-dropdown.active) .fae-icon-chevron {
  transform: rotate(180deg);
}

.fae-icon-preview-small {
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.fae-icon-preview-small svg {
  width: 18px;
  height: 18px;
  fill: #667eea;
}

.fae-icon-name-small {
  font-size: 13px;
  color: #374151;
}

/* Icon Dropdown - Opens UPWARD */
.fae-icon-dropdown {
  position: absolute;
  bottom: 100%;
  left: 0;
  right: 0;
  margin-bottom: 4px;
  background: white;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  box-shadow: 0 -10px 40px rgba(0,0,0,0.2);
  z-index: 9999;
  display: none;
  max-height: 240px;
  overflow-y: auto;
}

.fae-icon-dropdown.active {
  display: block;
}

/* Ensure parent doesn't clip dropdown */
.fae-appearance-settings {
      overflow: visible !important;
}

/* .fae-appearance-settings {
    overflow-y: scroll;
    height: 300px;
} */
.fae-appearance-section {
  overflow: visible !important;
}
.fae-icon-picker-inline {
  position: relative;
  z-index: 100;
}
.fae-sidebar-preview {
  overflow: visible !important;
}
.fae-preview-card {
  overflow: visible !important;
}

.fae-icon-dropdown-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 4px;
  padding: 8px;
}

.fae-icon-dropdown-item {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid transparent;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s;
}

.fae-icon-dropdown-item:hover {
  background: #f3f4f6;
  border-color: #e5e7eb;
}

.fae-icon-dropdown-item.selected {
  background: #667eea15;
  border-color: #667eea;
}

.fae-icon-dropdown-item svg {
  width: 20px;
  height: 20px;
  fill: #374151;
}

/* Flag Picker Styles */
.fae-flag-picker-inline {
  position: relative;
  z-index: 50;
}

.fae-flag-trigger {
  width: 100%;
  padding: 8px 12px;
  background: white;
  border: 2px solid #e5e7eb;
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: border-color 0.2s;
}

.fae-flag-trigger:hover {
  border-color: #c7d2fe;
}

.fae-flag-preview-small {
  width: 24px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.fae-flag-preview-small img {
  width: 24px;
  height: 18px;
  object-fit: cover;
  border-radius: 2px;
  border: 1px solid #e5e7eb;
}

.fae-flag-name-small {
  font-size: 13px;
  color: #374151;
  flex: 1;
  text-align: left;
}

/* Flag Dropdown */
.fae-flag-dropdown {
  position: absolute;
  bottom: 100%;
  left: 0;
  right: 0;
  margin-bottom: 4px;
  background: white;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  box-shadow: 0 -10px 40px rgba(0,0,0,0.2);
  z-index: 9999;
  display: none;
  max-height: 400px;
  overflow: hidden;
  flex-direction: column;
}

.fae-flag-dropdown.active {
  display: flex;
}

.fae-flag-dropdown-header {
  padding: 12px;
  border-bottom: 1px solid #e1e5e9;
}

.fae-flag-search {
  width: 100%;
  padding: 8px 12px;
  border: 2px solid #e1e5e9;
  border-radius: 6px;
  font-size: 14px;
  transition: border-color 0.3s ease;
}

.fae-flag-search:focus {
  outline: none;
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.fae-flag-dropdown-grid {
  padding: 12px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
  gap: 8px;
  max-height: 320px;
  overflow-y: auto;
}

.fae-flag-dropdown-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px 8px;
  border: 2px solid #e1e5e9;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
  background: white;
  text-align: center;
}

.fae-flag-dropdown-item:hover {
  border-color: #667eea;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.15);
}

.fae-flag-dropdown-item.selected {
  border-color: #667eea;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.fae-flag-preview-img {
  width: 48px;
  height: 36px;
  object-fit: cover;
  border-radius: 4px;
  border: 1px solid rgba(0,0,0,0.1);
  margin-bottom: 6px;
}

.fae-flag-dropdown-item.selected .fae-flag-preview-img {
  border-color: rgba(255,255,255,0.5);
}

.fae-flag-preview-placeholder {
  width: 48px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f3f4f6;
  border-radius: 4px;
  margin-bottom: 6px;
  border: 1px solid #e5e7eb;
}

.fae-flag-preview-placeholder svg {
  width: 24px;
  height: 24px;
  stroke: #9ca3af;
}

.fae-flag-dropdown-item.selected .fae-flag-preview-placeholder {
  background: rgba(255,255,255,0.2);
  border-color: rgba(255,255,255,0.3);
}

.fae-flag-dropdown-item.selected .fae-flag-preview-placeholder svg {
  stroke: white;
}

.fae-flag-label {
  display: none; /* Hide country code label - search uses country names */
  font-size: 10px;
  font-weight: 500;
  color: #374151;
  line-height: 1.2;
  word-break: break-word;
}

.fae-flag-dropdown-item.selected .fae-flag-label {
  color: white;
}

/* Scrollbar styling for flag grid */
.fae-flag-dropdown-grid::-webkit-scrollbar {
  width: 6px;
}

.fae-flag-dropdown-grid::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 3px;
}

.fae-flag-dropdown-grid::-webkit-scrollbar-thumb {
  background: #c1c1c1;
  border-radius: 3px;
}

.fae-flag-dropdown-grid::-webkit-scrollbar-thumb:hover {
  background: #a8a8a8;
}

/* Pro Badge Styles */
.fae-pro-badge {
  display: inline-block;
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  color: white;
  font-size: 9px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 3px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-left: 6px;
  vertical-align: middle;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.fae-effect-option .fae-pro-badge {
  position: static;
  font-size: 9px;
  font-weight: 700;
  padding: 3px 6px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 6px rgba(102, 126, 234, 0.3);
  z-index: 10;
  pointer-events: none;
  line-height: 1.2;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 4px;
  order: -1;
}

/* Match multi-color setting pro badge to disabled effects style */
.fae-multi-color-setting .fae-pro-badge {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  box-shadow: 0 2px 6px rgba(102, 126, 234, 0.3);
  padding: 3px 6px;
  border-radius: 4px;
}

/* Match interactive cursor setting pro badge to effect option style */
.fae-interactive-cursor-setting .fae-pro-badge {
  position: static;
  font-size: 9px;
  font-weight: 700;
  padding: 3px 6px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 6px rgba(102, 126, 234, 0.3);
  z-index: 10;
  pointer-events: none;
  line-height: 1.2;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: 6px;
  vertical-align: middle;
}

/* Pro Locked Effect Styles */
.fae-effect-pro-locked {
  position: relative;
  cursor: not-allowed !important;
  pointer-events: auto;
  border-color: #e1e5e9 !important;
  opacity: 0.7;
}

.fae-effect-pro-locked::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.06) 0%, rgba(118, 75, 162, 0.06) 100%);
  border-radius: 8px;
  z-index: 1;
  pointer-events: none;
  border: 1px dashed rgba(102, 126, 234, 0.25);
}

.fae-effect-pro-locked .fae-effect-content {
  position: relative;
  z-index: 0;
}

.fae-effect-pro-locked .fae-effect-letter {
  display: none;
  visibility: hidden;
}

.fae-effect-pro-locked .fae-effect-name {
  opacity: 0.6;
  color: #64748b;
  order: 1;
}

.fae-effect-pro-locked:hover {
  transform: none !important;
  box-shadow: none !important;
  border-color: #e1e5e9 !important;
}

.fae-effect-pro-locked:hover::before {
  border-color: rgba(102, 126, 234, 0.35);
}

.fae-effect-pro-locked .fae-pro-badge {
  z-index: 10;
  opacity: 1;
  filter: none;
}

/* Upgrade Notice Styles */
.fae-upgrade-notice {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 8px;
  padding: 16px;
  margin: 16px 0;
  color: white;
}

.fae-upgrade-notice-content {
  display: flex;
  align-items: center;
  gap: 16px;
}

.fae-upgrade-icon {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  stroke: white;
}

.fae-upgrade-text {
  flex: 1;
}

.fae-upgrade-text strong {
  display: block;
  font-size: 14px;
  margin-bottom: 4px;
}

.fae-upgrade-text p {
  margin: 0;
  font-size: 12px;
  opacity: 0.9;
}

.fae-upgrade-button {
  background: white;
  color: #667eea;
  padding: 8px 16px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  font-size: 13px;
  transition: transform 0.2s, box-shadow 0.2s;
  white-space: nowrap;
  flex-shrink: 0;
}

.fae-upgrade-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  color: #764ba2;
}

/* Effect Type Disabled Styles (Free Version Restriction) */
/* Effects appear normal but show upgrade modal when clicked */
.fae-effect-type-disabled {
  position: relative;
  cursor: pointer !important;
  pointer-events: auto;
  /* No visual dimming - keep completely normal appearance */
}

/* Upgrade Notice Modal */
.fae-upgrade-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.fae-upgrade-modal.active {
  opacity: 1;
  visibility: visible;
}

.fae-upgrade-modal-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
}

.fae-upgrade-modal-content {
  position: relative;
  background: white;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  max-width: 480px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  transform: scale(0.95);
  transition: transform 0.3s ease;
  z-index: 1;
}

.fae-upgrade-modal.active .fae-upgrade-modal-content {
  transform: scale(1);
}

.fae-upgrade-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: #f1f5f9;
  border: none;
  border-radius: 8px;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #64748b;
  transition: all 0.2s ease;
  z-index: 10;
}

.fae-upgrade-modal-close:hover {
  background: #e2e8f0;
  color: #475569;
  transform: rotate(90deg);
}

.fae-upgrade-modal-body {
  padding: 40px;
  text-align: center;
}

.fae-upgrade-modal-body .fae-upgrade-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 24px;
  stroke: #667eea;
  stroke-width: 2;
}

.fae-upgrade-modal-body h3 {
  font-size: 24px;
  font-weight: 700;
  color: #1e293b;
  margin: 0 0 12px;
}

.fae-upgrade-modal-body p {
  font-size: 15px;
  line-height: 1.6;
  color: #64748b;
  margin: 0 0 32px;
}

.fae-upgrade-modal-body .fae-upgrade-button {
  display: inline-block;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 12px 32px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  transition: transform 0.2s, box-shadow 0.2s;
}

.fae-upgrade-modal-body .fae-upgrade-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(102, 126, 234, 0.4);
  color: white;
}

@media (max-width: 640px) {
  .fae-upgrade-modal-content {
    width: 95%;
    margin: 20px;
  }
  
  .fae-upgrade-modal-body {
    padding: 32px 24px;
  }
  
  .fae-upgrade-modal-body h3 {
    font-size: 20px;
  }
  
  .fae-upgrade-modal-body p {
    font-size: 14px;
  }
}

/* ========================================
   LIMITED CUSTOMIZATION - LOCKED STYLES
   ======================================== */

/* Inline Pro badge for limited customization */
.fae-pro-badge-inline {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  font-size: 10px;
  font-weight: 700;
  border-radius: 4px;
  box-shadow: 0 2px 6px rgba(102, 126, 234, 0.3);
  line-height: 1.2;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  white-space: nowrap;
  margin-left: 6px;
  vertical-align: middle;
}

/* Locked color swatch for free users */
.fae-color-locked {
  display: flex;
  align-items: center;
  gap: 8px;
}

.fae-color-swatch-locked {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  border: 2px solid #e5e7eb;
  cursor: not-allowed;
  position: relative;
  flex-shrink: 0;
}

.fae-color-swatch-locked::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 16px;
  height: 16px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='11' width='18' height='11' rx='2' ry='2'%3E%3C/rect%3E%3Cpath d='M7 11V7a5 5 0 0 1 10 0v4'%3E%3C/path%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  opacity: 0.8;
}

.fae-color-locked-text {
  font-family: 'SF Mono', SFMono-Regular, ui-monospace, monospace;
  font-size: 12px;
  color: #9ca3af;
  text-transform: uppercase;
}

/* Locked speed select for free users */
.fae-speed-locked {
  background-color: #f9fafb;
  cursor: not-allowed;
}

.fae-speed-locked option:disabled {
  color: #9ca3af;
  font-style: italic;
}

/* Show Pro badge on color setting when customization is limited */
.fae-color-setting[data-limited-customization="1"] .fae-pro-badge-inline {
  display: inline-block;
}

/* Hide Pro badge when customization is not limited */
.fae-color-setting[data-limited-customization="0"] .fae-pro-badge-inline {
  display: none;
}

/* Plugin title + version below settings panel (bottom left) */
.fae-dashboard-footer-version {
  margin: 20px 0 0 0;
  padding: 0;
  font-size: 13px;
  color: #646970;
  text-align: left;
}

