:root {
  --primary: #4071f4;
  --primary-dark: #3461e8;
  --primary-light: #6b94f7;
  --secondary: #64748b;
  --success: #059669;
  --danger: #dc2626;
  --warning: #d97706;
  --bg: #fafbff;
  --white: #ffffff;
  --gray-50: #f8fafc;
  --gray-100: #f1f5f9;
  --gray-200: #e2e8f0;
  --gray-300: #cbd5e1;
  --gray-400: #94a3b8;
  --gray-500: #64748b;
  --gray-600: #475569;
  --gray-700: #334155;
  --gray-800: #1e293b;
  --gray-900: #0f172a;
  --border: #e2e8f0;
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--gray-900);
  line-height: 1.6;
}

.container {
  display: flex;
  min-height: 100vh;
  overflow: hidden;
}

.sidebar {
  width: 420px;
  background: var(--white);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  height: 100vh;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.sidebar-header {
  padding: 1rem 2.5rem;
  border-bottom: 1px solid rgba(64, 113, 244, 0.08);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 250, 252, 0.95) 100%);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  color: var(--gray-800);
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(64, 113, 244, 0.06);
}

.header-content {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  position: relative;
  z-index: 2;
}

.header-logo {
  width: 100px;
  height: 100px;
  object-fit: contain;
  flex-shrink: 0;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(64, 113, 244, 0.05) 0%, rgba(107, 148, 247, 0.03) 100%);
  padding: 1px;
  box-shadow: 0 8px 32px rgba(64, 113, 244, 0.12);
  border: 1px solid rgba(64, 113, 244, 0.08);
  transition: all 0.3s ease;
}

.header-logo:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(64, 113, 244, 0.18);
}

.header-content::after {
  content: "";
  position: absolute;
  bottom: -1rem;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(64, 113, 244, 0.2) 20%, rgba(64, 113, 244, 0.4) 50%, rgba(64, 113, 244, 0.2) 80%, transparent 100%);
}

.header-text {
  flex: 1;
  min-width: 0;
  animation: fadeInUp 0.8s ease-out;
  line-height: 1.2;
}

/* Save/Load Controls Styles */
.save-load-btn {
  padding: 0.5rem 0.75rem;
  border: none;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: var(--shadow-sm);
  font-family: inherit;
  outline: none;
}

.save-btn {
  background: linear-gradient(135deg, var(--success) 0%, #047857 100%);
  color: white;
}

.save-btn:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
  background: linear-gradient(135deg, #047857 0%, #065f46 100%);
}

.load-btn {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: white;
}

.load-btn:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
  background: linear-gradient(135deg, var(--primary-dark) 0%, #2563eb 100%);
}

.save-load-btn:active {
  transform: translateY(0);
  box-shadow: var(--shadow-sm);
}

.save-load-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.auto-save-status {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  opacity: 0.8;
}

.auto-save-status.saving {
  color: var(--warning);
}

.auto-save-status.saved {
  color: var(--success);
}

.auto-save-status.error {
  color: var(--danger);
}

/* Loading Spinner for Save/Load */
.spinner {
  width: 12px;
  height: 12px;
  border: 2px solid transparent;
  border-top: 2px solid currentColor;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

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

/* Unified Actions Section */
.unified-actions-section {
  flex-shrink: 0;
}

.action-btn {
  flex: 1;
  padding: 0.75rem 1rem;
  border: none;
  border-radius: 0.5rem;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  box-shadow: var(--shadow-sm);
  font-family: inherit;
  outline: none;
}

.action-btn:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.action-btn:active {
  transform: translateY(0);
  box-shadow: var(--shadow-sm);
}

.reset-btn {
  background: linear-gradient(135deg, var(--gray-200) 0%, var(--gray-300) 100%);
  color: var(--gray-700);
}

.reset-btn:hover {
  background: linear-gradient(135deg, var(--gray-300) 0%, var(--gray-400) 100%);
  color: var(--gray-800);
}

.download-btn {
  background: linear-gradient(135deg, var(--success) 0%, #16a34a 100%);
  color: white;
  font-weight: 600;
}

.download-btn:hover {
  background: linear-gradient(135deg, #16a34a 0%, #15803d 100%);
  box-shadow: 0 8px 25px rgba(34, 197, 94, 0.3);
}

.download-btn-large {
  background: linear-gradient(135deg, var(--success) 0%, #16a34a 100%);
  color: white;
  font-weight: 600;
  font-size: 1.05rem;
  padding: 1rem 1.5rem;
  box-shadow: 0 4px 15px rgba(34, 197, 94, 0.2);
}

.download-btn-large:hover {
  background: linear-gradient(135deg, #16a34a 0%, #15803d 100%);
  box-shadow: 0 8px 25px rgba(34, 197, 94, 0.4);
  transform: translateY(-2px);
}

.download-btn-large i {
  opacity: 0.9;
}

.auto-save-status-unified {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
}

@media (max-width: 768px) {
  .unified-actions-section {
    padding: 1rem !important;
  }
  .actions-row {
    gap: 0.5rem !important;
    margin-bottom: 0.5rem !important;
  }
  .action-btn {
    padding: 0.6rem 0.5rem;
    font-size: 0.8rem;
  }
  .action-btn span {
    display: none;
  }
  .action-btn i {
    margin: 0;
    font-size: 1rem;
  }
  .download-btn-large {
    font-size: 0.8rem !important;
    padding: 0.6rem 0.5rem !important;
  }
  .download-btn-large i {
    font-size: 1.2rem !important;
  }
  .auto-save-status-unified {
    font-size: 0.7rem !important;
    padding: 0.6rem !important;
    min-height: 40px;
  }
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.sidebar-header::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 30% 60%, rgba(64, 113, 244, 0.03) 0%, transparent 50%),
              radial-gradient(circle at 70% 20%, rgba(107, 148, 247, 0.02) 0%, transparent 50%);
  animation: float 30s ease-in-out infinite;
}

.sidebar-header::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 1rem;
  right: 1rem;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(64, 113, 244, 0.15), transparent);
  border-radius: 1px;
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
}

.sidebar-header h1 {
  font-size: 2.25rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  letter-spacing: 0em;
  position: relative;
  z-index: 1;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 70%, #2563eb 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.1;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
}

.sidebar-content {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 0.75rem;
  background: var(--gray-50);
}

/* Accordion Styles */
.accordion-section {
  background: var(--white);
  border-radius: 0.75rem;
  margin-bottom: 0.75rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: all 0.3s ease;
}

.accordion-section:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}

.accordion-section:last-child {
  margin-bottom: 0;
}

.accordion-header {
  padding: 1.125rem 1.5rem;
  background: var(--white);
  border: none;
  width: 100%;
  text-align: left;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  font-weight: 600;
  overflow: hidden;
}

.accordion-number {
  position: absolute;
  left: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 4rem;
  font-weight: 900;
  line-height: 1;
  opacity: 0.3;
  color: var(--primary);
  z-index: 0;
  pointer-events: none;
  user-select: none;
  width: auto;
  height: auto;
  font-family: system-ui, -apple-system, sans-serif;
}

.accordion-header.active .accordion-number {
  opacity: 0.4;
  color: white;
}

.accordion-content-wrapper {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  margin-left: 2.75rem;
}

.accordion-header::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  transform: scaleY(0);
  transition: transform 0.3s ease;
  border-radius: 0 2px 2px 0;
}

.accordion-header:hover {
  background: linear-gradient(135deg, var(--gray-50) 0%, rgba(64, 113, 244, 0.05) 100%);
}

.accordion-header:hover::before {
  transform: scaleY(1);
}

.accordion-header.active {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: white;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.accordion-header.active::before {
  transform: scaleY(1);
  background: rgba(255, 255, 255, 0.3);
}

.accordion-title {
  font-size: 1rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.accordion-title i {
  font-size: 1.1rem;
  width: 20px;
  text-align: center;
  opacity: 0.8;
}

.accordion-header.active .accordion-title i {
  opacity: 1;
}

.accordion-arrow {
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  font-size: 0.875rem;
  opacity: 0.7;
}

.accordion-header.active .accordion-arrow {
  transform: rotate(180deg);
  opacity: 1;
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.accordion-content.active {
  max-height: 2800px;
}

.accordion-body {
  padding: 1.25rem;
  background: linear-gradient(135deg, var(--gray-50) 0%, rgba(64, 113, 244, 0.02) 100%);
  border-top: 1px solid var(--gray-200);
  position: relative;
}

.accordion-body::before {
  content: "";
  position: absolute;
  top: 0;
  left: 2rem;
  right: 2rem;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--primary-light), transparent);
  opacity: 0.3;
}

.form-group {
  margin-bottom: 1rem;
}

.form-group:last-child {
  margin-bottom: 0;
}

.form-label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--gray-700);
  opacity: 0.9;
  margin-bottom: 0.5rem;
  letter-spacing: 0.01em;
  line-height: 1.4;
}

.form-input,
.form-textarea {
  width: 100%;
  padding: 0.875rem 1rem;
  border: 2px solid var(--gray-200);
  border-radius: 0.75rem;
  font-size: 1.125rem;
  font-weight: 500;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  background: var(--white);
  box-shadow: var(--shadow-sm);
  color: var(--gray-900);
  line-height: 1.5;
}

.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(64, 113, 244, 0.1), var(--shadow-md);
  transform: translateY(-1px);
}

.form-input:hover:not(:focus),
.form-textarea:hover:not(:focus) {
  border-color: var(--gray-300);
  box-shadow: var(--shadow-md);
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--gray-400);
  font-weight: 400;
  font-size: 1rem;
  font-style: italic;
}

.form-select {
  width: 100%;
  padding: 0.875rem 2.5rem 0.875rem 1rem;
  border: 2px solid var(--gray-200);
  border-radius: 0.75rem;
  font-size: 1.125rem;
  font-weight: 500;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  background: var(--white);
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
  background-position: right 0.875rem center;
  background-repeat: no-repeat;
  background-size: 1.25em 1.25em;
  box-shadow: var(--shadow-sm);
  color: var(--gray-900);
}

.form-select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(64, 113, 244, 0.1), var(--shadow-md);
  transform: translateY(-1px);
}

.form-select:hover:not(:focus) {
  border-color: var(--gray-300);
  box-shadow: var(--shadow-md);
}

.form-textarea {
  resize: vertical;
  min-height: 80px;
  line-height: 1.6;
}

/* Social Links Styles */
.social-links-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  padding: 0.75rem;
  border: 1px solid var(--gray-300);
  border-radius: 0.5rem;
  background: var(--gray-50);
  transition: all 0.2s ease;
  margin-bottom: 0.5rem;
}

.social-links-header:hover {
  background: var(--gray-100);
  border-color: var(--gray-400);
}

.social-links-header .form-label {
  margin-bottom: 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.social-links-header .form-label small {
  font-weight: 400;
  color: var(--gray-500);
  text-transform: none;
  font-size: 0.75rem;
}

.social-links-arrow {
  transition: transform 0.2s ease;
  color: var(--gray-500);
}

.social-links-arrow.rotated {
  transform: rotate(180deg);
}

.social-links-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.social-links-content.expanded {
  max-height: 2000px;
}

.social-icons-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
  padding: 1rem;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 0.5rem;
  margin-bottom: 1rem;
}

.social-icon-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.social-icon-btn {
  width: 3rem;
  height: 3rem;
  border: 2px solid var(--gray-300);
  border-radius: 0.75rem;
  background: var(--white);
  color: var(--gray-600);
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
}

.social-icon-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(52, 97, 232, 0.15);
}

.social-icon-btn.active {
  border-color: var(--primary);
  background: var(--primary);
  color: white;
  box-shadow: 0 4px 12px rgba(52, 97, 232, 0.25);
}

.social-icon-item span {
  font-size: 0.75rem;
  color: var(--gray-600);
  text-align: center;
  font-weight: 500;
}

.social-link-inputs {
  padding-top: 0.5rem;
}

.social-input-group {
  margin-bottom: 1rem;
  padding: 1rem;
  background: var(--gray-50);
  border-radius: 0.5rem;
  border: 1px solid var(--gray-200);
}

.social-input-group .form-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  margin-bottom: 0.5rem;
}

/* Superhost Checkbox Styles */
.checkbox-wrapper {
  margin-top: 0.5rem;
}

.superhost-checkbox {
  display: none;
}

.superhost-label {
  display: flex;
  align-items: center;
  gap: 1rem;
  cursor: pointer;
  padding: 1rem;
  border: 2px solid var(--gray-200);
  border-radius: 12px;
  background: var(--white);
  transition: all 0.3s ease;
}

.superhost-label:hover {
  border-color: var(--primary);
  background: var(--gray-50);
}

.superhost-checkbox:checked + .superhost-label {
  border-color: var(--primary);
  background: linear-gradient(135deg, rgba(52, 97, 232, 0.05), rgba(147, 51, 234, 0.05));
}

.checkbox-indicator {
  width: 24px;
  height: 24px;
  border: 2px solid var(--gray-300);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--white);
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.superhost-checkbox:checked + .superhost-label .checkbox-indicator {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
}

.checkbox-indicator i {
  font-size: 12px;
  opacity: 0;
  transform: scale(0);
  transition: all 0.2s ease;
}

.superhost-checkbox:checked + .superhost-label .checkbox-indicator i {
  opacity: 1;
  transform: scale(1);
}

.superhost-text {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.superhost-title {
  font-weight: 600;
  color: var(--gray-800);
  font-size: 0.875rem;
}

.superhost-description {
  font-size: 0.75rem;
  color: var(--gray-600);
  font-weight: 400;
}

.color-input-group {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

.color-input {
  width: 3.5rem;
  height: 3rem;
  border: 2px solid var(--gray-300);
  border-radius: 0.5rem;
  cursor: pointer;
  padding: 0;
  box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.05);
  transition: all 0.2s ease;
}

.color-input:hover {
  border-color: var(--primary);
  transform: scale(1.05);
}

.color-preview {
  flex: 1;
  padding: 0.75rem 1rem;
  background: var(--white);
  border: 2px solid var(--gray-300);
  border-radius: 0.5rem;
  font-family: "Courier New", monospace;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--gray-700);
  text-align: center;
  box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.05);
}

/* Color Presets Styles */
.color-presets {
  margin-top: 1rem;
}

.color-preset-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0.15rem;
  margin-top: 0.25rem;
}

.color-preset {
  cursor: pointer;
  transition: all 0.2s ease;
  border-radius: 0.5rem;
  overflow: hidden;
  position: relative;
}

.color-preset:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.color-swatch {
  width: 100%;
  height: 1.5rem;
  border: 2px solid var(--gray-200);
  border-radius: 0.5rem;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.color-preset:hover .color-swatch {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(52, 97, 232, 0.25), 0 2px 12px rgba(0, 0, 0, 0.18);
  transform: scale(1.08);
  z-index: 2;
}

.color-preset::after {
  content: attr(title);
  position: absolute;
  bottom: -2rem;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gray-800);
  color: white;
  padding: 0.25rem 0.5rem;
  border-radius: 0.25rem;
  font-size: 0.75rem;
  font-weight: 500;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: all 0.2s ease;
  z-index: 10;
}

.color-preset:hover::after {
  opacity: 1;
  bottom: -1.5rem;
}

.color-preset.selected .color-swatch {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(52, 97, 232, 0.2);
}

.color-preset.selected::before {
  content: "✓";
  position: absolute;
  top: 0.25rem;
  right: 0.25rem;
  background: var(--primary);
  color: white;
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: bold;
  z-index: 2;
}

/* Overlay Style Selector Styles */
.overlay-style-selector {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.overlay-style-option {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 1rem;
  padding: 1rem;
  background: var(--white);
  border: 2px solid var(--gray-200);
  border-radius: 0.75rem;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.overlay-style-option:hover {
  border-color: var(--primary);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.overlay-style-option.active {
  border-color: var(--primary);
  background: linear-gradient(135deg, rgba(52, 97, 232, 0.05) 0%, rgba(64, 113, 244, 0.02) 100%);
  box-shadow: 0 4px 16px rgba(52, 97, 232, 0.15);
}

.overlay-style-preview {
  flex-shrink: 0;
  width: 80px;
  height: 60px;
  border-radius: 0.5rem;
  overflow: hidden;
  position: relative;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.overlay-style-bg {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.transparent-bg {
  background: linear-gradient(135deg, rgba(52, 97, 232, 0.15) 0%, rgba(99, 102, 241, 0.08) 100%);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border: 1px solid rgba(52, 97, 232, 0.25);
}

.solid-bg {
  background: linear-gradient(135deg, rgba(30, 30, 35, 0.95) 0%, rgba(20, 20, 25, 0.98) 100%);
  color: white;
}

.overlay-style-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.75rem;
  font-weight: 500;
  text-align: center;
}

.overlay-style-content i {
  font-size: 1rem;
  opacity: 0.8;
}

.overlay-style-content span {
  font-size: 0.625rem;
  line-height: 1.2;
}

.overlay-style-info {
  flex: 1;
  min-width: 0;
}

.overlay-style-info h4 {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--gray-800);
  margin: 0 0 0.25rem 0;
  line-height: 1.3;
}

.overlay-style-info p {
  font-size: 0.75rem;
  color: var(--gray-600);
  margin: 0;
  line-height: 1.4;
}

.overlay-style-check {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--gray-200);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.overlay-style-check i {
  font-size: 0.75rem;
  color: var(--gray-400);
  opacity: 0;
  transition: all 0.2s ease;
}

.overlay-style-option.active .overlay-style-check {
  background: var(--primary);
  box-shadow: 0 2px 8px rgba(52, 97, 232, 0.3);
}

.overlay-style-option.active .overlay-style-check i {
  color: white;
  opacity: 1;
}

.overlay-style-option.active .overlay-style-info h4 {
  color: var(--primary);
}

.overlay-style-note {
  display: none;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.75rem;
  padding: 0.75rem;
  background: rgba(255, 193, 7, 0.1);
  border: 1px solid rgba(255, 193, 7, 0.3);
  border-radius: 0.5rem;
  font-size: 0.75rem;
  color: #856404;
  width: 100%;
  grid-column: 1 / -1;
}

.overlay-style-note i {
  color: #ffc107;
  font-size: 0.875rem;
  flex-shrink: 0;
}

.overlay-style-option.active .overlay-style-note {
  display: flex;
}

.grid-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 0.75rem;
  margin-bottom: 0.75rem;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.05);
  transition: all 0.2s ease;
  cursor: pointer;
}

.grid-item:hover {
  border-color: var(--primary);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transform: translateY(-1px);
}

.grid-item-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex: 1;
  pointer-events: none;
}

.grid-item-icon {
  width: 2.5rem;
  height: 2.5rem;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: white;
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.grid-item-label {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--gray-700);
  flex: 1;
}

.grid-item-controls {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  pointer-events: auto;
}

.edit-btn {
  padding: 0.25rem 0.5rem;
  background: var(--gray-100);
  border: none;
  border-radius: 0.25rem;
  font-size: 0.75rem;
  cursor: pointer;
  transition: all 0.2s ease;
  pointer-events: auto;
}

.edit-btn:hover {
  background: var(--gray-200);
}

.toggle-switch {
  position: relative;
  width: 3rem;
  height: 1.5rem;
  background: var(--gray-300);
  border-radius: 0.75rem;
  cursor: pointer;
  transition: background-color 0.2s ease;
  pointer-events: auto;
}

.toggle-switch.active {
  background: var(--primary);
}

.toggle-switch::after {
  content: "";
  position: absolute;
  top: 0.125rem;
  left: 0.125rem;
  width: 1.25rem;
  height: 1.25rem;
  background: white;
  border-radius: 50%;
  transition: transform 0.2s ease;
}

.toggle-switch.active::after {
  transform: translateX(1.5rem);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 0.875rem 1.5rem;
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: 1rem;
  border: none;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: var(--shadow-sm);
  text-transform: none;
  letter-spacing: 0.01em;
  line-height: 1.4;
  min-height: 44px;
  flex: 1;
}

.btn-secondary {
  background: var(--white);
  color: var(--gray-700);
  border: 2px solid var(--gray-300);
  box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
  background: var(--gray-50);
  border-color: var(--gray-400);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  color: var(--gray-800);
}

.btn-success {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: white;
  border: 2px solid var(--primary);
  box-shadow: 0 4px 14px 0 rgba(99, 102, 241, 0.25);
  position: relative;
  overflow: hidden;
}

.btn-success::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s;
}

.btn-success:hover::before {
  left: 100%;
}

.btn-success:hover {
  background: linear-gradient(135deg, var(--primary-dark) 0%, #3730a3 100%);
  border-color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(99, 102, 241, 0.4);
}

.action-buttons {
  padding: 1.25rem;
  border-top: 1px solid var(--border);
  background: linear-gradient(135deg, var(--white) 0%, var(--gray-50) 100%);
  display: flex;
  gap: 0.75rem;
  flex-shrink: 0;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05);
}

.preview-section {
  flex: 1;
  background: var(--gray-100);
  position: relative;
  overflow: hidden;
  height: 100vh;
}

.preview-header {
  padding: 0.8rem 2rem;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.05);
}

.preview-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--gray-900);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.preview-title::before {
  content: "";
  width: 4px;
  height: 1.5rem;
  background: var(--primary);
  border-radius: 2px;
}

.device-toggle {
  display: flex;
  background: var(--gray-100);
  border-radius: 0.75rem;
  padding: 0.25rem;
  margin-right: 1rem;
  box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.05);
}

.device-btn {
  padding: 0.625rem 1.25rem;
  font-size: 0.8rem;
  font-weight: 600;
  border: none;
  background: transparent;
  color: var(--gray-600);
  border-radius: 0.5rem;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 0.375rem;
}

.device-btn:hover {
  color: var(--gray-800);
  background: var(--gray-200);
}

.device-btn.active {
  background: var(--white);
  color: var(--gray-900);
  box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.1);
  transform: translateY(-1px);
}

.device-btn i {
  font-size: 0.875rem;
}

.preview-container {
  padding: 2rem;
  height: calc(100vh - 90px);
  overflow: hidden !important;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--gray-50) 0%, var(--gray-100) 100%);
}

.preview-frame {
  background: var(--white);
  border-radius: 1.5rem;
  box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 10px 10px -5px rgb(0 0 0 / 0.04);
  overflow: hidden;
  transition: all 0.3s ease;
  position: relative;
  border: 1px solid var(--gray-200);
}

.preview-frame.desktop {
  width: 100%;
  max-width: 1200px;
  height: 78vh;
}

.preview-frame.mobile {
  width: 375px;
  height: 667px;
}

.preview-iframe {
  width: 100%;
  height: 80%;
  border: none;
  border-radius: 1.5rem;
}

.loading-overlay {
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 1rem;
  transition: opacity 0.3s ease;
}

.loading-overlay.hidden {
  opacity: 0;
  pointer-events: none;
}

/* Modal Styles */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1000;
  justify-content: center;
  align-items: center;
  backdrop-filter: blur(4px);
}

.modal.active {
  display: flex;
}

.modal-content {
  background: var(--white);
  border-radius: 1.25rem;
  width: 90%;
  max-width: 600px;
  box-shadow: 0 25px 50px -12px rgb(0 0 0 / 0.25);
  border: 1px solid var(--border);
}

.rich-editor-modal {
  max-width: 800px;
  width: 95%;
  display: flex;
  flex-direction: column;
  max-height: 90vh;
}

.rich-editor-modal .modal-body {
  padding: 2rem;
  overflow-y: auto;
  flex: 1;
  min-height: 0;
}

.modal-header {
  padding: 1.75rem 2rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--gray-50);
  border-radius: 1.25rem 1.25rem 0 0;
}

.modal-title {
  font-size: 1.375rem;
  font-weight: 600;
  color: var(--gray-900);
}

.close-btn {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--gray-400);
  padding: 0.5rem;
  border-radius: 0.5rem;
  transition: all 0.2s ease;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.close-btn:hover {
  color: var(--gray-600);
  background: var(--gray-100);
}

.modal-body {
  padding: 2rem;
  overflow-y: auto;
}

.modal-body::-webkit-scrollbar {
  width: 8px;
}

.modal-body::-webkit-scrollbar-track {
  background: var(--gray-100);
  border-radius: 8px;
}

.modal-body::-webkit-scrollbar-thumb {
  background-color: var(--gray-400);
  border-radius: 8px;
  border: 2px solid var(--gray-100);
}

.modal-body::-webkit-scrollbar-thumb:hover {
  background-color: var(--gray-500);
}

.rich-editor-modal .modal-footer {
  padding: 1.5rem 2rem;
  border-top: 1px solid var(--border);
  display: flex;
  gap: 1rem;
  justify-content: flex-end;
  background: var(--gray-50);
  border-radius: 0 0 1.25rem 1.25rem;
  flex-shrink: 0;
}

.modal-footer {
  padding: 1.5rem 2rem;
  border-top: 1px solid var(--border);
  display: flex;
  gap: 1rem;
  justify-content: flex-end;
  background: var(--gray-50);
  border-radius: 0 0 1.25rem 1.25rem;
}

/* Rich Editor Styles */
.rich-editor-toolbar {
  display: flex;
  gap: 0.75rem;
  padding: 1.25rem;
  background: var(--gray-50);
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.toolbar-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--gray-700);
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.toolbar-btn:hover {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(52, 97, 232, 0.2);
}

.toolbar-btn i {
  font-size: 0.875rem;
}

.rich-editor-content {
  min-height: 300px;
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  padding: 1.5rem;
  background: var(--white);
  position: relative;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.rich-editor-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 300px;
  color: var(--gray-400);
  text-align: center;
  background: var(--gray-50);
  border-radius: 0.75rem;
  border: 2px dashed var(--gray-300);
}

.rich-editor-placeholder i {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: var(--gray-300);
}

.rich-editor-placeholder p {
  font-size: 1rem;
  font-weight: 500;
}

.rich-editor-placeholder.hidden {
  display: none;
}

/* Enhanced Placeholder Styles */
.placeholder-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.placeholder-add-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  max-width: 600px;
}

.placeholder-add-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--gray-700);
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.placeholder-add-btn:hover {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(52, 97, 232, 0.2);
}

.placeholder-add-btn i {
  font-size: 0.875rem;
}

/* Block Add Buttons */
.block-add-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
  padding: 1rem;
  background: var(--gray-50);
  border-radius: 0.75rem;
  border: 1px dashed var(--gray-300);
  opacity: 0;
  transform: translateY(-10px);
  transition: all 0.3s ease;
}

.content-block:hover .block-add-buttons {
  opacity: 1;
  transform: translateY(0);
}

.block-add-btn {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.5rem 0.75rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--gray-600);
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.block-add-btn:hover {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(52, 97, 232, 0.15);
}

.block-add-btn i {
  font-size: 0.75rem;
}

/* Block Add Container */
.block-add-container {
  margin: 1rem 0;
  padding: 0.5rem;
  border-radius: 0.75rem;
  transition: all 0.2s ease;
}

.block-add-container:hover {
  background: var(--gray-50);
}

/* Compact Add Block Button */
.block-add-trigger {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  background: var(--white);
  border: 1px dashed var(--gray-300);
  border-radius: 0.75rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--gray-600);
  cursor: pointer;
  transition: all 0.2s ease;
  width: 100%;
  justify-content: center;
}

.block-add-trigger:hover {
  background: var(--gray-50);
  border-color: var(--primary);
  color: var(--primary);
}

.block-add-trigger i {
  font-size: 0.875rem;
  transition: transform 0.2s ease;
}

.block-add-trigger.expanded i {
  transform: rotate(45deg);
}

.block-add-options {
  display: none;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.75rem;
  padding: 0.75rem;
  background: var(--gray-50);
  border-radius: 0.5rem;
  border: 1px solid var(--gray-200);
}

.block-add-options.show {
  display: flex;
}

.block-add-option {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.5rem 0.75rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--gray-600);
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.block-add-option:hover {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(52, 97, 232, 0.15);
}

.block-add-option i {
  font-size: 0.75rem;
}

/* Floating Add Button */
.floating-add-btn {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 60px;
  height: 60px;
  background: var(--primary);
  border: none;
  border-radius: 50%;
  color: var(--white);
  font-size: 1.5rem;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(52, 97, 232, 0.3);
  transition: all 0.3s ease;
  z-index: 1000;
  display: none;
}

.floating-add-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(52, 97, 232, 0.4);
}

.floating-add-btn.show {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Add Block Dropdown */
.add-block-dropdown {
  position: absolute;
  bottom: 100%;
  right: 0;
  margin-bottom: 0.5rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  padding: 0.75rem;
  display: none;
  flex-direction: column;
  gap: 0.25rem;
  min-width: 200px;
  z-index: 1001;
}

.add-block-dropdown.show {
  display: flex;
}

.add-block-option {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem;
  border: none;
  background: none;
  border-radius: 0.5rem;
  cursor: pointer;
  font-size: 0.875rem;
  color: var(--gray-700);
  transition: all 0.2s ease;
  text-align: left;
}

.add-block-option:hover {
  background: var(--gray-50);
  color: var(--primary);
}

.add-block-option i {
  font-size: 0.875rem;
  width: 16px;
  text-align: center;
}

/* Content Block Styles */
.content-block {
  position: relative;
  margin-bottom: 0.75rem;
  padding: 0.75rem;
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  background: var(--white);
  transition: all 0.3s ease;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.content-block:hover {
  border-color: var(--primary);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.07);
  transform: translateY(-1px);
}

.content-block.selected {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(52, 97, 232, 0.1);
}

.block-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.5rem;
  padding-bottom: 0.375rem;
  border-bottom: 1px solid var(--gray-100);
  opacity: 0.7;
  transition: opacity 0.2s ease;
}

.content-block:hover .block-header {
  opacity: 1;
}

.block-type {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--gray-500);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.2rem 0.5rem;
  background: var(--gray-50);
  border-radius: 0.375rem;
}

.block-actions {
  display: flex;
  gap: 0.25rem;
}

.block-btn {
  width: 24px;
  height: 24px;
  border: none;
  background: var(--gray-100);
  border-radius: 0.375rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  color: var(--gray-600);
  transition: all 0.2s ease;
}

.block-btn:hover {
  background: var(--gray-200);
  color: var(--gray-800);
  transform: scale(1.05);
}

.block-btn.delete:hover {
  background: #fee2e2;
  color: #dc2626;
}

.block-btn.move-up:hover,
.block-btn.move-down:hover {
  background: var(--primary);
  color: var(--white);
}

/* Text Block */
.text-block textarea {
  width: 100%;
  min-height: 80px;
  padding: 0.75rem;
  border: 1px solid var(--gray-300);
  border-radius: 0.5rem;
  font-family: inherit;
  font-size: 0.875rem;
  line-height: 1.6;
  resize: vertical;
  transition: all 0.2s ease;
  background: var(--gray-50);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.05);
}

.text-block textarea:focus {
  outline: none;
  border-color: var(--primary);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(52, 97, 232, 0.1);
}

/* Icon Box Block */
.icon-box-block {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.icon-box-content {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.icon-selector {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex-shrink: 0;
  width: 80px;
}

.icon-preview {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1.25rem;
  box-shadow: 0 2px 8px rgba(52, 97, 232, 0.2);
  transition: all 0.2s ease;
  margin: 0 auto;
  cursor: pointer;
}

.icon-preview:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(52, 97, 232, 0.3);
}

.icon-picker-btn {
  width: 100%;
  padding: 0.5rem 0.75rem;
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: 0.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  color: var(--gray-600);
  font-size: 0.75rem;
  font-weight: 500;
  transition: all 0.2s ease;
}

.icon-picker-btn:hover {
  background: var(--gray-100);
  color: var(--gray-800);
  border-color: var(--gray-300);
}

.icon-fields {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex: 1;
}

.icon-fields .form-group {
  margin-bottom: 0;
}

.icon-fields input,
.icon-fields textarea {
  width: 100%;
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--gray-300);
  border-radius: 0.5rem;
  font-size: 0.875rem;
  transition: all 0.2s ease;
  background: var(--gray-50);
  font-family: inherit;
  resize: vertical;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.05);
}

.icon-fields input:focus,
.icon-fields textarea:focus {
  outline: none;
  border-color: var(--primary);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(52, 97, 232, 0.1);
}

.icon-fields input::placeholder,
.icon-fields textarea::placeholder {
  color: var(--gray-400);
}

.icon-fields .form-label {
  font-size: 0.75rem;
  margin-bottom: 0.25rem;
}

/* Compact icon box improvements */
.icon-box-block .block-header {
  margin-bottom: 0.5rem;
  padding-bottom: 0.25rem;
}

.icon-box-block .icon-preview {
  position: relative;
  overflow: hidden;
}

.icon-box-block .icon-preview::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.1);
  opacity: 0;
  transition: opacity 0.2s ease;
}

.icon-box-block .icon-preview:hover::after {
  opacity: 1;
}

.icon-box-block .icon-picker-btn {
  min-height: 32px;
}

.icon-box-block .icon-fields textarea {
  min-height: 60px;
  max-height: 120px;
}

/* Feature Block */
.feature-block {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

/* Feature Editor Styles */
.feature-editor {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin: 0.75rem 0;
}

.feature-editor-item {
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: 0.5rem;
  padding: 0.75rem;
  transition: all 0.2s ease;
}

.feature-editor-item:hover {
  border-color: var(--gray-300);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.feature-editor-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--gray-200);
}

.feature-number {
  font-weight: 600;
  color: var(--white);
  font-size: 0.8rem;
  background: var(--primary);
  padding: 0.25rem 0.5rem;
  border-radius: 0.375rem;
  min-width: 1.75rem;
  text-align: center;
}

.feature-remove-btn {
  background: #dc3545;
  color: white;
  border: none;
  border-radius: 0.375rem;
  padding: 0.25rem;
  font-size: 0.7rem;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
}

.feature-remove-btn:hover {
  background: #c82333;
  transform: scale(1.05);
}

.feature-editor-content {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
}

.feature-icon-selector {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex-shrink: 0;
  width: 80px;
}

.feature-icon-preview {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1.25rem;
  box-shadow: 0 2px 8px rgba(52, 97, 232, 0.2);
  transition: all 0.2s ease;
  margin: 0 auto;
  cursor: pointer;
}

.feature-icon-preview:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(52, 97, 232, 0.3);
}

.feature-icon-picker-btn {
  width: 100%;
  padding: 0.5rem 0.75rem;
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: 0.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  color: var(--gray-600);
  font-size: 0.75rem;
  font-weight: 500;
  transition: all 0.2s ease;
}

.feature-icon-picker-btn:hover {
  background: var(--gray-100);
  color: var(--gray-800);
  border-color: var(--gray-300);
}

.feature-editor-fields {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex: 1;
}

.feature-editor-field {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.feature-editor-field label {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--gray-700);
  text-transform: uppercase;
  letter-spacing: 0.025em;
}

.feature-editor-field input,
.feature-editor-field textarea {
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--gray-300);
  border-radius: 0.5rem;
  font-size: 0.875rem;
  font-family: inherit;
  background: var(--white);
  transition: all 0.2s ease;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.05);
}

.feature-editor-field input:focus,
.feature-editor-field textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(52, 97, 232, 0.1);
}

.feature-editor-field input::placeholder,
.feature-editor-field textarea::placeholder {
  color: var(--gray-400);
}

.feature-editor-field textarea {
  min-height: 50px;
  max-height: 100px;
  resize: vertical;
}

.add-feature-btn {
  background: var(--primary);
  color: var(--white);
  border: none;
  border-radius: 0.75rem;
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-top: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  box-shadow: 0 2px 4px rgba(52, 97, 232, 0.2);
}

.add-feature-btn:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(52, 97, 232, 0.3);
}

.add-feature-btn:active {
  transform: translateY(0);
}

/* Feature Style Toggle */
.feature-style-toggle {
  margin: 0.75rem 0;
  padding: 0.75rem;
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: 0.5rem;
}

.toggle-label {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  cursor: pointer;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--gray-700);
}

.toggle-label input[type="checkbox"] {
  width: 1.25rem;
  height: 1.25rem;
  accent-color: var(--primary);
  cursor: pointer;
}

.toggle-text {
  user-select: none;
}

/* Compact Image Block */
.image-block-compact {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.image-block-content {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.image-preview-compact {
  position: relative;
  width: 100px;
  height: 70px;
  border: 2px dashed var(--gray-300);
  border-radius: 0.5rem;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--gray-50);
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.image-preview-compact:hover {
  border-color: var(--primary);
  background: var(--gray-100);
}

.image-preview-compact img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.image-preview-compact.empty {
  color: var(--gray-400);
  font-size: 0.75rem;
  text-align: center;
}

.image-preview-compact.empty i {
  font-size: 1.5rem;
  margin-bottom: 0.25rem;
  display: block;
}

.image-preview-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.image-preview-compact:hover .image-preview-overlay {
  opacity: 1;
}

.image-preview-actions {
  display: flex;
  gap: 0.25rem;
}

.image-action-btn {
  width: 28px;
  height: 28px;
  border: none;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  color: var(--primary);
  transition: all 0.2s ease;
}

.image-action-btn:hover {
  background: white;
  transform: scale(1.1);
}

.image-block-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

/* Legacy Image Block (keeping for backward compatibility) */
.image-block {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.image-preview {
  width: 100%;
  max-width: 240px;
  height: 140px;
  border: 2px dashed var(--gray-300);
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gray-50);
  overflow: hidden;
  transition: all 0.2s ease;
}

.image-preview:hover {
  border-color: var(--primary);
  background: var(--gray-100);
}

.image-preview img {
  max-width: 100%;
  max-height: 100%;
  object-fit: cover;
  border-radius: 0.5rem;
}

.image-preview.empty {
  color: var(--gray-400);
  font-size: 0.875rem;
}

/* Cover Image Block */
.cover-image-block {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  border: 2px solid var(--primary);
  border-radius: 0.75rem;
  padding: 0.75rem;
  background: linear-gradient(135deg, rgba(52, 97, 232, 0.05) 0%, rgba(52, 97, 232, 0.02) 100%);
}

.cover-image-preview {
  width: 100%;
  max-width: 300px;
  height: 160px;
  border: 2px dashed var(--primary);
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(52, 97, 232, 0.05);
  overflow: hidden;
  transition: all 0.2s ease;
}

.cover-image-preview:hover {
  border-color: var(--primary-dark);
  background: rgba(52, 97, 232, 0.1);
}

.cover-image-preview img {
  max-width: 100%;
  max-height: 100%;
  object-fit: cover;
  border-radius: 0.5rem;
}

.cover-image-preview.empty {
  color: var(--primary);
  font-size: 0.875rem;
  font-weight: 500;
}

/* Compact Cover Image Editor in Modal */
.cover-image-editor-compact {
  border: 2px solid var(--primary);
  border-radius: 0.75rem;
  padding: 1rem;
  background: linear-gradient(135deg, rgba(52, 97, 232, 0.05) 0%, rgba(52, 97, 232, 0.02) 100%);
}

.cover-preview-section {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.cover-image-preview-compact {
  position: relative;
  width: 120px;
  height: 80px;
  border: 2px dashed var(--primary);
  border-radius: 0.5rem;
  overflow: hidden;
  flex-shrink: 0;
  background: rgba(52, 97, 232, 0.05);
  transition: all 0.2s ease;
}

.cover-image-preview-compact:hover {
  border-color: var(--primary-dark);
  background: rgba(52, 97, 232, 0.1);
}

.cover-image-preview-compact img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.cover-preview-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.cover-image-preview-compact:hover .cover-preview-overlay {
  opacity: 1;
}

.cover-preview-actions {
  display: flex;
  gap: 0.5rem;
}

.cover-action-btn {
  width: 32px;
  height: 32px;
  border: none;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  color: var(--primary);
  transition: all 0.2s ease;
}

.cover-action-btn:hover {
  background: white;
  transform: scale(1.1);
}

.upload-status {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(52, 97, 232, 0.9);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 0.75rem;
  font-weight: 500;
}

.upload-spinner {
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top: 2px solid white;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-bottom: 0.25rem;
}

.cover-image-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.image-input-compact {
  width: 100%;
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--gray-300);
  border-radius: 0.5rem;
  font-size: 0.875rem;
  transition: all 0.2s ease;
  background: var(--gray-50);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.05);
}

.image-input-compact:focus {
  outline: none;
  border-color: var(--primary);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(52, 97, 232, 0.1);
}

/* Legacy Cover Image Editor (keeping for backward compatibility) */
.cover-image-editor {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  border: 2px solid var(--primary);
  border-radius: 0.75rem;
  padding: 0.75rem;
  background: linear-gradient(135deg, rgba(52, 97, 232, 0.05) 0%, rgba(52, 97, 232, 0.02) 100%);
}

.cover-image-editor .cover-image-preview {
  width: 100%;
  max-width: 300px;
  height: 160px;
  border: 2px dashed var(--primary);
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(52, 97, 232, 0.05);
  overflow: hidden;
  transition: all 0.2s ease;
}

.cover-image-editor .cover-image-preview:hover {
  border-color: var(--primary-dark);
  background: rgba(52, 97, 232, 0.1);
}

.cover-image-editor .cover-image-preview img {
  max-width: 100%;
  max-height: 100%;
  object-fit: cover;
  border-radius: 0.5rem;
}

.cover-image-editor .cover-preview-container {
  position: relative;
  width: 100%;
  height: 100%;
}

.cover-image-editor .cover-preview-title-overlay {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  padding: 0.5rem 1rem;
  border-radius: 8px 8px 0 0;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-bottom: none;
  margin-bottom: -1px;
  width: 90%;
}

.cover-image-editor .cover-preview-title {
  margin: 0;
  font-size: 0.875rem;
  font-weight: 600;
  color: #1a202c;
  font-family: var(--primary-font);
  text-align: center;
  line-height: 1.2;
  letter-spacing: 0.01em;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.image-input {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--gray-300);
  border-radius: 0.5rem;
  font-size: 0.875rem;
  transition: all 0.2s ease;
  background: var(--gray-50);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.05);
}

.image-input:focus {
  outline: none;
  border-color: var(--primary);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(52, 97, 232, 0.1);
}

/* List Block */
.list-block {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.list-items {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.list-item {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  padding: 0.5rem;
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: 0.75rem;
  transition: all 0.2s ease;
}

.list-item:hover {
  background: var(--gray-100);
  border-color: var(--gray-300);
}

.list-item input {
  flex: 1;
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--gray-300);
  border-radius: 0.5rem;
  font-size: 0.875rem;
  background: var(--gray-50);
  transition: all 0.2s ease;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.05);
}

.list-item input:focus {
  outline: none;
  border-color: var(--primary);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(52, 97, 232, 0.1);
}

.list-item-btn {
  width: 32px;
  height: 32px;
  border: none;
  background: var(--gray-200);
  border-radius: 0.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  color: var(--gray-600);
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.list-item-btn:hover {
  background: #fee2e2;
  color: #dc2626;
  transform: scale(1.05);
}

/* Wi-Fi QR Block */
.wifi-qr-block {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.wifi-qr-content {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.wifi-qr-preview {
  margin-top: 0.5rem;
  min-height: 80px;
  border: 1px solid var(--gray-200);
  border-radius: 0.5rem;
  background: var(--gray-50);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transition: all 0.2s ease;
}

.wifi-qr-preview:hover {
  border-color: var(--primary);
  background: var(--gray-100);
}

.wifi-qr-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: var(--gray-400);
  font-size: 0.875rem;
  padding: 1rem;
  text-align: center;
}

.wifi-qr-placeholder i {
  font-size: 1.5rem;
  opacity: 0.7;
}

.wifi-qr-preview-container {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  transition: all 0.2s ease;
}

.wifi-qr-preview-container:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transform: translateY(-1px);
}

.wifi-qr-preview-container canvas {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 6px;
}

/* Export HTML QR code styling */
.qr-code {
  width: 240px;
  height: 240px;
  background: #ffffff;
  margin: 0 auto;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #f0f0f0;
  overflow: hidden;
}

.qr-code canvas {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.qr-code img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.wifi-qr-content .form-group {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.wifi-qr-content .form-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--gray-700);
  margin-bottom: 0.25rem;
}

.wifi-qr-content .form-input {
  width: 100%;
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--gray-300);
  border-radius: 0.5rem;
  font-size: 0.875rem;
  transition: all 0.2s ease;
  background: var(--gray-50);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.05);
}

.wifi-qr-content .form-input:focus {
  outline: none;
  border-color: var(--primary);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(52, 97, 232, 0.1);
}

.wifi-qr-content .form-input::placeholder {
  color: var(--gray-400);
}

.wifi-qr-content .checkbox-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--gray-700);
  cursor: pointer;
  user-select: none;
  padding: 0.25rem;
  margin-top: 0.25rem;
}

.wifi-qr-content .checkbox-label input[type="checkbox"] {
  width: 1rem;
  height: 1rem;
  accent-color: var(--primary);
  cursor: pointer;
  margin: 0;
}

.wifi-qr-content .checkbox-label:hover {
  color: var(--gray-800);
}

.add-list-item-btn {
  padding: 0.875rem 1rem;
  background: var(--gray-50);
  border: 2px dashed var(--gray-300);
  border-radius: 0.75rem;
  color: var(--gray-500);
  cursor: pointer;
  text-align: center;
  font-size: 0.875rem;
  font-weight: 500;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.add-list-item-btn:hover {
  background: var(--gray-100);
  color: var(--gray-700);
  border-color: var(--gray-400);
}

/* Section Block */
.section-block {
  padding: 0.5rem;
}

.section-block input {
  width: 100%;
  padding: 0.5rem;
  border: 1px solid var(--gray-300);
  border-radius: 0.5rem;
  font-size: 1.125rem;
  font-weight: 600;
  transition: all 0.2s ease;
  background: var(--gray-50);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.05);
}

.section-block input:focus {
  outline: none;
  border-color: var(--primary);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(52, 97, 232, 0.1);
}

/* Heading Block */
.heading-block {
  padding: 0.5rem;
}

.heading-type-selector {
  display: flex;
  gap: 0.25rem;
  margin-bottom: 0.75rem;
  flex-wrap: wrap;
}

.heading-type-btn {
  padding: 0.25rem 0.5rem;
  border: 1px solid var(--gray-200);
  background: var(--gray-50);
  border-radius: 0.375rem;
  font-size: 0.7rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  color: var(--gray-600);
}

.heading-type-btn:hover {
  background: var(--gray-100);
  border-color: var(--gray-300);
}

.heading-type-btn.active {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}

.heading-alignment-selector {
  display: flex;
  gap: 0.25rem;
  margin-bottom: 0.75rem;
  flex-wrap: wrap;
}

.alignment-btn {
  padding: 0.25rem 0.5rem;
  border: 1px solid var(--gray-200);
  background: var(--gray-50);
  border-radius: 0.375rem;
  font-size: 0.7rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  color: var(--gray-600);
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
}

.alignment-btn:hover {
  background: var(--gray-100);
  border-color: var(--gray-300);
}

.alignment-btn.active {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}

.heading-input {
  width: 100%;
  padding: 0.5rem;
  border: 1px solid var(--gray-300);
  border-radius: 0.5rem;
  font-size: 1rem;
  font-weight: 600;
  transition: all 0.2s ease;
  background: var(--gray-50);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.05);
}

.heading-input:focus {
  outline: none;
  border-color: var(--primary);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(52, 97, 232, 0.1);
}

/* Accordion Block */
.accordion-block {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.accordion-items {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.accordion-item {
  border: 1px solid var(--gray-200);
  border-radius: 0.75rem;
  overflow: hidden;
  background: var(--white);
  transition: all 0.2s ease;
}

.accordion-item:hover {
  border-color: var(--gray-300);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.accordion-item-header {
  background: var(--gray-50);
  padding: 0.75rem;
  border-bottom: 1px solid var(--gray-200);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.accordion-item-title {
  flex: 1;
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--gray-300);
  border-radius: 0.5rem;
  font-size: 0.875rem;
  background: var(--gray-50);
  transition: all 0.2s ease;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.05);
}

.accordion-item-title:focus {
  outline: none;
  border-color: var(--primary);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(52, 97, 232, 0.1);
}

.accordion-item-actions {
  display: flex;
  gap: 0.375rem;
}

.accordion-item-btn {
  width: 32px;
  height: 32px;
  border: none;
  background: var(--gray-200);
  border-radius: 0.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  color: var(--gray-600);
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.accordion-item-btn:hover {
  background: #fee2e2;
  color: #dc2626;
  transform: scale(1.05);
}

.accordion-item-content {
  padding: 1rem;
  background: var(--white);
}

.accordion-item-textarea {
  width: 100%;
  min-height: 100px;
  padding: 0.875rem 1rem;
  border: 1px solid var(--gray-300);
  border-radius: 0.5rem;
  font-family: inherit;
  font-size: 0.875rem;
  line-height: 1.6;
  resize: vertical;
  background: var(--gray-50);
  transition: all 0.2s ease;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.05);
}

.accordion-item-textarea:focus {
  outline: none;
  border-color: var(--primary);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(52, 97, 232, 0.1);
}

.add-accordion-item-btn {
  padding: 0.875rem 1rem;
  background: var(--gray-50);
  border: 2px dashed var(--gray-300);
  border-radius: 0.75rem;
  color: var(--gray-500);
  cursor: pointer;
  text-align: center;
  font-size: 0.875rem;
  font-weight: 500;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.add-accordion-item-btn:hover {
  background: var(--gray-100);
  color: var(--gray-700);
  border-color: var(--gray-400);
}

/* HTML Block */
.html-block {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.html-toggle {
  display: flex;
  gap: 0.5rem;
  padding: 0.75rem;
  background: var(--gray-50);
  border-radius: 0.75rem;
}

.html-toggle-btn {
  padding: 0.625rem 1rem;
  border: 1px solid var(--gray-200);
  border-radius: 0.5rem;
  background: var(--white);
  cursor: pointer;
  font-size: 0.875rem;
  font-weight: 500;
  transition: all 0.2s ease;
  min-width: 80px;
  text-align: center;
}

.html-toggle-btn.active {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
  box-shadow: 0 2px 4px rgba(52, 97, 232, 0.2);
}

.html-toggle-btn:hover {
  background: var(--gray-100);
  transform: translateY(-1px);
}

.html-toggle-btn.active:hover {
  background: var(--primary);
}

.html-textarea {
  width: 100%;
  min-height: 200px;
  padding: 1rem 1.25rem;
  border: 1px solid var(--gray-300);
  border-radius: 0.75rem;
  font-family: "Courier New", monospace;
  font-size: 0.875rem;
  line-height: 1.6;
  resize: vertical;
  background: var(--gray-50);
  transition: all 0.2s ease;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.05);
}

.html-textarea:focus {
  outline: none;
  border-color: var(--primary);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(52, 97, 232, 0.1);
}

.html-preview {
  width: 100%;
  min-height: 200px;
  padding: 1rem 1.25rem;
  border: 1px solid var(--gray-300);
  border-radius: 0.75rem;
  background: var(--white);
  overflow: auto;
}

.html-preview.empty {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-400);
  font-style: italic;
  background: var(--gray-50);
}

/* Icon Picker Styles */
.icon-picker-btn {
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: 0.375rem;
  padding: 0.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-600);
  font-size: 0.875rem;
  transition: all 0.2s ease;
}

.icon-picker-btn:hover {
  background: var(--gray-100);
  color: var(--gray-800);
}

.icon-picker-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 2000;
  justify-content: center;
  align-items: center;
  backdrop-filter: blur(4px);
}

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

.icon-picker-content {
  background: var(--white);
  border-radius: 1.25rem;
  width: 90%;
  max-width: 600px;
  max-height: 80vh;
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgb(0 0 0 / 0.25);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
}

.icon-picker-header {
  padding: 1rem 1.5rem 0.75rem 1.5rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--gray-50);
  border-radius: 1.25rem 1.25rem 0 0;
}

.icon-picker-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--gray-900);
}

.icon-picker-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--gray-400);
  padding: 0.5rem;
  border-radius: 0.5rem;
  transition: all 0.2s ease;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.icon-picker-close:hover {
  color: var(--gray-600);
  background: var(--gray-100);
}

.icon-picker-search {
  padding: 0.75rem 1.5rem;
  border-bottom: 1px solid var(--border);
  background: var(--white);
}

.icon-picker-search input {
  width: 100%;
  padding: 0.625rem 0.875rem;
  border: 1px solid var(--gray-200);
  border-radius: 0.5rem;
  font-size: 0.875rem;
  background: var(--gray-50);
  transition: all 0.2s ease;
}

.icon-picker-search input:focus {
  outline: none;
  border-color: var(--primary);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(52, 97, 232, 0.1);
}

.icon-picker-search-row {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  margin-bottom: 0.5rem;
}

.icon-picker-search-row input {
  flex: 1;
  margin: 0;
}

.browse-more-icons-btn {
  background: var(--primary);
  color: white;
  border: none;
  padding: 0.625rem 0.875rem;
  border-radius: 0.5rem;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 0.375rem;
  white-space: nowrap;
  box-shadow: 0 2px 4px rgba(52, 97, 232, 0.2);
}

.browse-more-icons-btn:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(52, 97, 232, 0.3);
}

.browse-more-icons-btn:active {
  transform: translateY(0);
}

.icon-browse-help {
  color: var(--gray-600);
  font-size: 0.75rem;
  text-align: center;
  padding: 0.375rem;
  background: var(--gray-50);
  border-radius: 0.375rem;
  border: 1px solid var(--gray-200);
}

.icon-browse-help strong {
  color: var(--primary);
  font-weight: 600;
}

.custom-icon-section {
  margin-top: 0.75rem;
  padding: 0.75rem;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 0.5rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.custom-icon-input-row {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  margin-bottom: 0.5rem;
}

.custom-icon-input-row input {
  flex: 1;
  padding: 0.875rem 1rem;
  border: 1px solid var(--gray-200);
  border-radius: 0.5rem;
  font-size: 0.875rem;
  font-family: "Courier New", monospace;
  background: var(--gray-50);
  transition: all 0.2s ease;
}

.custom-icon-input-row input:focus {
  outline: none;
  border-color: var(--primary);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(52, 97, 232, 0.1);
}

.add-custom-icon-btn {
  background: var(--primary);
  color: white;
  border: none;
  padding: 0.875rem 1rem;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  white-space: nowrap;
  box-shadow: 0 2px 4px rgba(52, 97, 232, 0.2);
}

.add-custom-icon-btn:disabled {
  background: var(--gray-300);
  cursor: not-allowed;
  box-shadow: none;
}

.add-custom-icon-btn:not(:disabled):hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(52, 97, 232, 0.3);
}

.custom-icon-preview {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem;
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: 0.5rem;
  font-size: 0.875rem;
  color: var(--gray-600);
}

.custom-icon-preview i {
  font-size: 1.25rem;
  color: var(--primary);
  width: 20px;
  text-align: center;
}

.custom-icon-preview.valid {
  background: rgba(34, 197, 94, 0.1);
  border-color: #22c55e;
  color: #166534;
}

.custom-icon-preview.invalid {
  background: rgba(239, 68, 68, 0.1);
  border-color: #ef4444;
  color: #991b1b;
}

.icon-picker-body {
  flex: 1;
  overflow-y: auto;
  padding: 0.75rem 1.5rem 1rem 1.5rem;
  background: var(--white);
}

.icon-categories {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
  flex-wrap: wrap;
}

.icon-category {
  padding: 0.5rem 0.875rem;
  background: var(--gray-100);
  border: 1px solid var(--gray-200);
  border-radius: 0.5rem;
  cursor: pointer;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--gray-700);
  transition: all 0.2s ease;
}

.icon-category.active {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
  box-shadow: 0 2px 4px rgba(52, 97, 232, 0.2);
}

.icon-category:hover {
  background: var(--gray-200);
  transform: translateY(-1px);
}

.icon-category.active:hover {
  background: var(--primary);
}

.icon-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(85px, 1fr));
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.icon-option {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1rem 0.5rem;
  border: 1px solid var(--gray-200);
  border-radius: 0.5rem;
  cursor: pointer;
  transition: all 0.2s ease;
  background: var(--white);
}

.icon-option:hover {
  border-color: var(--primary);
  background: var(--gray-50);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.icon-option.selected {
  border-color: var(--primary);
  background: var(--primary);
  color: var(--white);
  box-shadow: 0 4px 12px rgba(52, 97, 232, 0.3);
}

.icon-option i {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.icon-option span {
  font-size: 0.75rem;
  text-align: center;
  line-height: 1.2;
  word-break: break-word;
  font-weight: 500;
}

.icon-picker-footer {
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--border);
  display: flex;
  gap: 0.75rem;
  justify-content: flex-end;
  background: var(--gray-50);
  border-radius: 0 0 1.25rem 1.25rem;
}

@media (max-width: 768px) {
  .icon-picker-content {
    width: 95%;
    max-height: 90vh;
  }
  .icon-picker-search-row {
    flex-direction: column;
    gap: 0.75rem;
  }
  .browse-more-icons-btn {
    width: 100%;
    justify-content: center;
    padding: 1rem 1.25rem;
    font-size: 0.9rem;
  }
  .icon-browse-help {
    font-size: 0.75rem;
    padding: 0.75rem;
  }
  .icon-grid {
    grid-template-columns: repeat(auto-fill, minmax(70px, 1fr));
    gap: 0.25rem;
  }
  .icon-option {
    padding: 0.75rem 0.25rem;
  }
  .icon-option i {
    font-size: 1.25rem;
  }
  .icon-option span {
    font-size: 0.7rem;
  }
  .custom-icon-input-row {
    flex-direction: column;
    gap: 0.75rem;
  }
  .add-custom-icon-btn {
    width: 100%;
    justify-content: center;
  }
  .custom-icon-preview {
    font-size: 0.8rem;
    padding: 0.875rem;
  }
}

@media (max-width: 1400px) and (min-width: 1281px) {
  .sidebar { width: 380px; }
  .sidebar-header { padding: 0.875rem 2rem; }
}

@media (max-width: 1280px) and (max-height: 626px) and (min-width: 769px) {
  .sidebar { width: 320px; }
  .sidebar-header { padding: 0.75rem 1.5rem; }
  .sidebar-header h1 { font-size: 1.75rem; margin-bottom: 0.25rem; }
  .header-logo { width: 70px; height: 70px; }
  .header-content { gap: 1rem; }
  .accordion-header { padding: 0.875rem 1rem; }
  .accordion-title { font-size: 0.9rem; }
  .form-input, .form-textarea { padding: 0.6rem 0.75rem; font-size: 0.85rem; }
  .form-group { margin-bottom: 1rem; }
  .image-upload-preview { height: 100px; }
  .sidebar-content { padding: 0.5rem; }
  .accordion-section { margin-bottom: 0.5rem; }
  .btn { padding: 0.5rem 1rem; font-size: 0.85rem; }
  .device-btn { padding: 0.5rem 0.875rem; font-size: 0.75rem; }
  .form-label { font-size: 0.85rem; margin-bottom: 0.375rem; }
  .form-help { font-size: 0.8rem; }
  .grid-item { padding: 0.75rem; margin-bottom: 0.5rem; }
  .grid-item-icon { width: 2rem; height: 2rem; font-size: 0.875rem; }
  .accordion-content { padding: 1rem; }
  .accordion-number { width: 2rem; height: 2rem; font-size: 0.75rem; }
  .action-buttons { padding: 1rem; gap: 0.75rem; }
  .action-buttons .btn { flex: 1; }
}

@media (max-width: 768px) {
  .container { flex-direction: row; }
  .sidebar { width: 100%; height: 100vh; border-right: none; }
  .preview-section { display: none !important; }
  .mobile-preview-toggle { display: block !important; }
  .sidebar-content { padding-right: 1rem; padding-left: 1rem; padding-top: 1rem; padding-bottom: 1rem; }
  .action-buttons { padding: 1rem !important; gap: 0.75rem !important; margin-bottom: 0 !important; }
  .action-buttons .btn { flex: 1; padding: 0.875rem 1rem; font-size: 0.9rem; }
  .accordion-content { padding: 1rem !important; }
  .mobile-preview-toggle { top: 1rem; right: 1rem; z-index: 1600; }
  .form-group { margin-bottom: 1rem !important; }
  .accordion-section { margin-bottom: 0.5rem !important; }
  .sidebar { overflow-y: auto; }
}

.mobile-preview-notice {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
  color: white;
  padding: 1.25rem 1.5rem;
  text-align: center;
  font-size: 0.9rem;
  font-weight: 500;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
  z-index: 1000;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  animation: slideUpNotice 0.5s ease-out;
  display: none;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.mobile-preview-notice.dismissed {
  transform: translateY(100%);
  opacity: 0;
}

.notice-content { margin-bottom: 1rem; }

.notice-dismiss-btn {
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: white;
  padding: 0.625rem 1.5rem;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.notice-dismiss-btn:hover {
  background: rgba(255, 255, 255, 0.25);
  border-color: rgba(255, 255, 255, 0.5);
  transform: translateY(-1px);
}

.notice-dismiss-btn:active { transform: translateY(0); }

@media (max-width: 768px) {
  .mobile-preview-notice { display: block; }
}

@keyframes slideUpNotice {
  from { transform: translateY(100%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.mobile-preview-notice .notice-icon { display: inline-block; margin-right: 0.5rem; font-size: 1.1rem; }
.mobile-preview-notice .notice-title { font-weight: 600; margin-bottom: 0.25rem; display: block; }
.mobile-preview-notice .notice-text { opacity: 0.9; line-height: 1.4; }

/* Overlay Preview System for Tablets */
.preview-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.8);
  z-index: 2000;
  display: none;
  justify-content: center;
  align-items: center;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  animation: fadeIn 0.3s ease;
}

.preview-overlay.active { display: flex; }

.preview-overlay-content {
  width: 95%;
  height: 95%;
  background: var(--white);
  border-radius: 1rem;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  position: relative;
  overflow: hidden;
}

.preview-overlay-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  background: var(--gray-50);
  border-bottom: 1px solid var(--border);
}

.preview-overlay-title { font-size: 1.125rem; font-weight: 600; color: var(--gray-900); }

.preview-overlay-close {
  background: var(--gray-200);
  border: none;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.preview-overlay-close:hover {
  background: var(--gray-300);
  transform: scale(1.05);
}

.preview-overlay-iframe {
  width: 100%;
  height: calc(100% - 70px);
  border: none;
}

.tablet-preview-toggle {
  position: fixed;
  top: 1rem;
  right: 1rem;
  background: var(--primary);
  color: white;
  border: none;
  padding: 0.75rem 1rem;
  border-radius: 0.75rem;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  z-index: 1500;
  transition: all 0.2s ease;
  display: none;
}

.tablet-preview-toggle:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

/* Mobile Preview Toggle */
.mobile-preview-toggle {
  position: fixed;
  top: 1rem;
  right: 1rem;
  background: var(--primary);
  color: white;
  border: none;
  padding: 0.625rem 0.875rem;
  border-radius: 0.75rem;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  z-index: 1500;
  transition: all 0.2s ease;
  display: none;
}

.mobile-preview-toggle:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

/* Mobile Preview Overlay */
.mobile-preview-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.9);
  z-index: 2000;
  display: none;
  justify-content: center;
  align-items: center;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  animation: fadeIn 0.3s ease;
}

.mobile-preview-overlay.active { display: flex; }

.mobile-preview-overlay-content {
  width: 375px;
  height: 90%;
  background: var(--white);
  border-radius: 1.5rem;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  position: relative;
  overflow: hidden;
  border: 8px solid var(--gray-800);
}

.mobile-preview-overlay-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  background: var(--gray-50);
  border-bottom: 1px solid var(--border);
}

.mobile-preview-overlay-title { font-size: 1rem; font-weight: 600; color: var(--gray-900); }

.mobile-preview-overlay-close {
  background: var(--gray-200);
  border: none;
  width: 2rem;
  height: 2rem;
  border-radius: 0.375rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.mobile-preview-overlay-close:hover { background: var(--gray-300); transform: scale(1.05); }

.mobile-preview-overlay-iframe { width: 100%; height: calc(100% - 60px); border: none; }

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@media (max-width: 1024px) and (min-width: 769px) {
  .container { flex-direction: row; }
  .sidebar { width: 100%; height: 100vh; border-right: none; border-bottom: none; }
  .preview-section { display: none !important; }
  .tablet-preview-toggle { display: block; }
  .sidebar-content { padding-right: 7rem; }
  @media (max-width: 900px) {
    .tablet-preview-toggle { top: 0.75rem; right: 0.75rem; padding: 0.625rem 0.875rem; font-size: 0.8rem; }
    .sidebar-content { padding-right: 6rem; }
  }
}

.form-help { color: var(--gray-500); font-size: 0.875rem; margin-top: 0.25rem; }

/* Image Upload Styles */
.image-upload-container { position: relative; width: 100%; }
.image-upload-input { position: absolute; top: 0; left: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; z-index: 2; }
.image-upload-preview {
  width: 100%; height: 140px; border: 2px dashed var(--gray-300); border-radius: 0.75rem;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: var(--gray-50); color: var(--gray-500); font-size: 0.875rem;
  transition: all 0.2s ease; cursor: pointer; position: relative; overflow: hidden;
}
.image-upload-preview::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.1) 50%, transparent 70%);
  transform: translateX(-100%); transition: transform 0.6s ease;
}
.image-upload-preview:hover::before { transform: translateX(100%); }
.image-upload-preview:hover {
  border-color: var(--primary); background: var(--gray-100); color: var(--primary);
  transform: translateY(-2px); box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}
.image-upload-preview.has-image {
  border-style: solid; border-color: var(--primary); background: var(--white);
  padding: 0.5rem; box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}
.image-upload-preview i { font-size: 2rem; margin-bottom: 0.75rem; opacity: 0.7; }

/* Enhanced Font Select */
.font-select-display {
  width: 100%; padding: 0.875rem 1rem; border: 2px solid var(--gray-300); border-radius: 0.75rem;
  font-size: 0.875rem; transition: all 0.2s ease; background: var(--white); cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.05);
}
.font-select-display:hover { border-color: var(--primary); transform: translateY(-1px); box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); }
.font-select-display:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgb(79 70 229 / 0.1), 0 4px 8px rgba(0, 0, 0, 0.1); }
.font-select-container:has(.font-dropdown.active) .font-select-display {
  border-color: var(--primary); background: var(--gray-50); box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.sidebar-content::-webkit-scrollbar { width: 6px; }
.sidebar-content::-webkit-scrollbar-track { background: var(--gray-100); }
.sidebar-content::-webkit-scrollbar-thumb { background: var(--gray-300); border-radius: 3px; }
.sidebar-content::-webkit-scrollbar-thumb:hover { background: var(--gray-400); }

.form-input::placeholder, .form-textarea::placeholder { color: var(--gray-400); font-style: italic; }

.grid-item {
  display: flex; align-items: center; justify-content: space-between; padding: 1rem;
  background: var(--white); border: 1px solid var(--gray-200); border-radius: 0.75rem;
  margin-bottom: 0.75rem; box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.05); transition: all 0.2s ease;
}
.grid-item:hover { border-color: var(--primary); box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1); transform: translateY(-1px); }
.grid-item-icon {
  width: 2.5rem; height: 2.5rem; background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: white; border-radius: 0.5rem; display: flex; align-items: center; justify-content: center;
  font-size: 1rem; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.font-select-container { position: relative; width: 100%; z-index: 100; }
.font-preview { font-weight: 500; color: var(--gray-900); }
.font-dropdown {
  position: static; background: var(--white); border: 1px solid var(--gray-300); border-radius: 0.5rem;
  box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -1px rgb(0 0 0 / 0.06); z-index: 1000;
  max-height: 0; overflow: hidden; transition: max-height 0.3s ease, opacity 0.3s ease, margin 0.3s ease;
  margin-top: 0; opacity: 0; border: none; box-shadow: none;
}
.font-dropdown.active {
  display: block; max-height: 400px; margin-top: 0.5rem; opacity: 1;
  border: 1px solid var(--gray-300); box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -1px rgb(0 0 0 / 0.06); overflow-y: auto;
}
.font-dropdown::-webkit-scrollbar { width: 6px; }
.font-dropdown::-webkit-scrollbar-track { background: var(--gray-100); border-radius: 3px; }
.font-dropdown::-webkit-scrollbar-thumb { background: var(--gray-300); border-radius: 3px; }
.font-dropdown::-webkit-scrollbar-thumb:hover { background: var(--gray-400); }
.font-option { padding: 0.75rem 1rem; cursor: pointer; transition: all 0.15s ease; border-bottom: 1px solid var(--gray-100); display: flex; align-items: center; }
.font-option:last-child { border-bottom: none; }
.font-option:hover { background-color: var(--primary); color: var(--white); transform: translateX(4px); }
.font-option:active { background-color: var(--primary-dark); transform: translateX(4px); }
.font-sample { font-size: 0.875rem; font-weight: 500; color: inherit; display: block; transition: color 0.15s ease; }

.image-upload-preview img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 0.25rem; }
.image-upload-preview span { text-align: center; line-height: 1.4; }
.image-upload-preview.has-image span { display: none; }

.add-font-btn {
  background: var(--primary); color: white; border: none; padding: 0.5rem 0.875rem;
  border-radius: 0.5rem; font-size: 0.75rem; font-weight: 500; cursor: pointer; transition: all 0.2s ease;
  display: flex; align-items: center; gap: 0.375rem; margin-left: auto;
}
.add-font-btn:hover { background: var(--primary-dark); transform: translateY(-1px); box-shadow: 0 4px 8px rgba(64, 113, 244, 0.3); }
.add-font-btn:active { transform: translateY(0); }

.font-size-controls { display: flex; flex-direction: column; gap: 1.5rem; margin-top: 0.5rem; }
.font-size-control { display: flex; flex-direction: column; gap: 0.75rem; }
.font-size-label { font-size: 0.875rem; font-weight: 500; color: var(--gray-700); margin: 0; }
.font-size-slider-container {
  display: flex; align-items: center; gap: 1rem; background: var(--gray-50);
  padding: 0.875rem 1rem; border-radius: 0.75rem; border: 1px solid var(--gray-200);
}
.font-size-slider { flex: 1; height: 6px; -webkit-appearance: none; appearance: none; background: var(--gray-300); border-radius: 3px; outline: none; cursor: pointer; }
.font-size-slider::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 20px; height: 20px; background: var(--primary); border-radius: 50%; cursor: pointer; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2); transition: all 0.2s ease; }
.font-size-slider::-webkit-slider-thumb:hover { background: var(--primary-dark); transform: scale(1.1); }
.font-size-slider::-moz-range-thumb { width: 20px; height: 20px; background: var(--primary); border-radius: 50%; cursor: pointer; border: none; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2); transition: all 0.2s ease; }
.font-size-slider::-moz-range-thumb:hover { background: var(--primary-dark); transform: scale(1.1); }
.font-size-value {
  font-size: 0.875rem; font-weight: 600; color: var(--primary); min-width: 3rem; text-align: center;
  background: white; padding: 0.375rem 0.75rem; border-radius: 0.5rem; border: 1px solid var(--gray-300);
}

.add-font-modal { display: none; position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0, 0, 0, 0.5); z-index: 2000; justify-content: center; align-items: center; }
.add-font-modal.active { display: flex; }
.add-font-modal-content { background: white; border-radius: 0.75rem; width: 90%; max-width: 500px; max-height: 90vh; overflow-y: auto; box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04); }
.add-font-modal-header { padding: 1.5rem; border-bottom: 1px solid var(--gray-200); display: flex; align-items: center; justify-content: space-between; }
.add-font-modal-header h3 { margin: 0; font-size: 1.25rem; font-weight: 600; color: var(--gray-900); }
.add-font-modal-close { background: none; border: none; font-size: 1.5rem; color: var(--gray-500); cursor: pointer; padding: 0.25rem; border-radius: 0.25rem; transition: all 0.2s ease; }
.add-font-modal-close:hover { background: var(--gray-100); color: var(--gray-700); }
.add-font-modal-body { padding: 1.5rem; }
.font-input-group { margin-bottom: 1rem; }
.font-input-group label { display: block; margin-bottom: 0.5rem; font-weight: 500; color: var(--gray-700); }
.font-input-group input { width: 100%; padding: 0.75rem; border: 2px solid var(--gray-300); border-radius: 0.5rem; font-size: 0.875rem; transition: all 0.2s ease; }
.font-input-group input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(64, 113, 244, 0.1); }
.font-help-text { font-size: 0.75rem; color: var(--gray-500); margin-top: 0.25rem; line-height: 1.4; }
.font-preview-box { margin: 1rem 0; padding: 1rem; border: 2px solid var(--gray-200); border-radius: 0.5rem; background: var(--gray-50); min-height: 60px; display: flex; align-items: center; justify-content: center; }
.font-preview-text { font-size: 1.125rem; color: var(--gray-700); text-align: center; }
.font-modal-actions { display: flex; gap: 0.75rem; justify-content: flex-end; margin-top: 1.5rem; }
.font-modal-btn { padding: 0.625rem 1.25rem; border-radius: 0.5rem; font-size: 0.875rem; font-weight: 500; cursor: pointer; transition: all 0.2s ease; border: none; }
.font-modal-btn.secondary { background: var(--gray-100); color: var(--gray-700); }
.font-modal-btn.secondary:hover { background: var(--gray-200); }
.font-modal-btn.primary { background: var(--primary); color: white; }
.font-modal-btn.primary:hover { background: var(--primary-dark); }
.font-modal-btn:disabled { opacity: 0.5; cursor: not-allowed; }

@keyframes slideInRight { from { transform: translateX(100%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }
@keyframes slideOutRight { from { transform: translateX(0); opacity: 1; } to { transform: translateX(100%); opacity: 0; } }

.image-upload-preview.has-image i { display: none; }

.logo-type-selector { display: flex; gap: 0.5rem; margin-bottom: 1.5rem; }
.logo-type-btn {
  flex: 1; padding: 0.875rem 1rem; border: 2px solid var(--gray-300); border-radius: 0.75rem;
  background: var(--white); color: var(--gray-700); cursor: pointer; transition: all 0.2s ease;
  display: flex; align-items: center; justify-content: center; gap: 0.5rem; font-weight: 600; font-size: 0.875rem;
  box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.05);
}
.logo-type-btn.active { border-color: var(--primary); background: var(--primary); color: var(--white); transform: translateY(-1px); box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); }
.logo-type-btn:hover:not(.active) { background: var(--gray-50); border-color: var(--gray-400); transform: translateY(-1px); }
.logo-type-btn i { font-size: 1rem; }

.logo-section { display: none; margin-bottom: 1.5rem; }
.logo-section.active { display: block; }

.profile-preview {
  border-radius: 50% !important; overflow: hidden; width: 140px !important; height: 140px !important;
  display: flex; align-items: center; justify-content: center;
}
.profile-preview img { border-radius: 50%; object-fit: cover; width: 100%; height: 100%; }
.profile-preview i { font-size: 2.5rem; }

.logo-size-control { margin-top: 1.5rem; padding-top: 1.5rem; border-top: 1px solid var(--gray-200); }
.size-slider-container { display: flex; align-items: center; gap: 1rem; margin-bottom: 0.5rem; }
.size-slider { flex: 1; height: 8px; background: var(--gray-200); border-radius: 4px; appearance: none; cursor: pointer; outline: none; transition: all 0.2s ease; }
.size-slider::-webkit-slider-thumb { appearance: none; width: 20px; height: 20px; background: var(--primary); border-radius: 50%; cursor: pointer; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2); transition: all 0.2s ease; }
.size-slider::-webkit-slider-thumb:hover { background: var(--primary-dark); transform: scale(1.1); box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3); }
.size-slider::-moz-range-thumb { width: 20px; height: 20px; background: var(--primary); border-radius: 50%; cursor: pointer; border: none; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2); }
.size-display { min-width: 60px; padding: 0.5rem 0.75rem; background: var(--gray-100); border: 1px solid var(--gray-300); border-radius: 0.5rem; text-align: center; font-weight: 600; color: var(--gray-700); font-size: 0.875rem; }

.customization-section {
  margin-bottom: 2rem; padding: 1.5rem; background: var(--white); border-radius: 0.75rem;
  border: 1px solid var(--gray-200); box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05); position: relative;
}
.customization-section:last-child { margin-bottom: 0; }
.customization-section::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: linear-gradient(90deg, var(--primary) 0%, var(--primary-dark) 100%); border-radius: 0.75rem 0.75rem 0 0;
}
.section-header { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 1.5rem; padding-bottom: 1rem; border-bottom: 2px solid var(--gray-100); }
.section-header i { font-size: 1.25rem; color: var(--primary); width: 24px; text-align: center; }
.section-header h4 { font-size: 1.1rem; font-weight: 700; color: var(--gray-900); margin: 0; text-transform: uppercase; letter-spacing: 0.025em; }

.customization-section .form-group { margin-bottom: 1.5rem; }
.customization-section .form-group:last-child { margin-bottom: 0; }

.customization-section:nth-child(1)::before { background: linear-gradient(90deg, #3b82f6 0%, #1d4ed8 100%); }
.customization-section:nth-child(2)::before { background: linear-gradient(90deg, #10b981 0%, #059669 100%); }
.customization-section:nth-child(3)::before { background: linear-gradient(90deg, #f59e0b 0%, #d97706 100%); }
.customization-section:nth-child(4)::before { background: linear-gradient(90deg, #8b5cf6 0%, #7c3aed 100%); }
.customization-section:nth-child(1) .section-header i { color: #3b82f6; }
.customization-section:nth-child(2) .section-header i { color: #10b981; }
.customization-section:nth-child(3) .section-header i { color: #f59e0b; }
.customization-section:nth-child(4) .section-header i { color: #8b5cf6; }

.image-upload-container { display: flex; flex-direction: column; gap: 1rem; margin-bottom: 1rem; }
.image-upload-area {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 2rem 1.5rem; border: 2px dashed var(--gray-300); border-radius: 0.75rem;
  background: var(--gray-50); cursor: pointer; transition: all 0.3s ease; min-height: 120px; position: relative; overflow: hidden;
}
.image-upload-area:hover { border-color: var(--primary); background: var(--gray-100); transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1); }
.image-upload-area.drag-over { border-color: var(--primary); background: rgba(52, 97, 232, 0.05); transform: scale(1.02); box-shadow: 0 8px 24px rgba(52, 97, 232, 0.15); }
.image-upload-area i { font-size: 2rem; color: var(--gray-400); margin-bottom: 0.75rem; transition: all 0.3s ease; }
.image-upload-area:hover i { color: var(--primary); transform: scale(1.1); }
.image-upload-area p { margin: 0 0 0.5rem 0; font-size: 1rem; font-weight: 500; color: var(--gray-700); text-align: center; }
.upload-hint { font-size: 0.75rem; color: var(--gray-500); text-align: center; }

.image-url-fallback { position: relative; }
.image-url-fallback::before { content: "OR"; position: absolute; top: -0.5rem; left: 50%; transform: translateX(-50%); background: var(--white); padding: 0 0.75rem; font-size: 0.75rem; color: var(--gray-500); font-weight: 500; z-index: 1; }
.image-url-fallback .image-input { border-top: 1px solid var(--gray-200); border-radius: 0.75rem; background: var(--white); }

.image-preview {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 1.5rem; border: 1px solid var(--gray-200); border-radius: 0.75rem;
  background: var(--gray-50); min-height: 120px; margin-bottom: 1rem; transition: all 0.3s ease;
}
.image-preview.empty { color: var(--gray-400); font-size: 0.875rem; text-align: center; }
.image-preview.empty i { font-size: 2rem; margin-bottom: 0.5rem; opacity: 0.5; }
.image-preview.empty p { margin: 0; font-size: 0.875rem; color: var(--gray-500); }
.image-preview img { max-width: 100%; max-height: 200px; border-radius: 0.5rem; box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1); transition: all 0.3s ease; }
.image-preview img:hover { transform: scale(1.05); box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15); }

@media (max-width: 768px) {
  .icon-box-content { grid-template-columns: 1fr; gap: 1rem; }
  .icon-selector { align-items: center; }
}

.maps-status { display: flex; align-items: center; gap: 8px; padding: 12px; background: var(--gray-50); border-radius: 8px; border: 1px solid var(--border); font-size: 0.9rem; }
.maps-status i { font-size: 0.8rem; }
.maps-status .text-gray { color: var(--gray-500); }
.maps-status .text-success { color: var(--success); }

.maps-customizer-modal { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.8); z-index: 10000; display: none; align-items: center; justify-content: center; }
.maps-customizer-content { width: 95%; height: 95%; background: white; border-radius: 12px; position: relative; overflow: hidden; box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25); }
.maps-customizer-header { background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%); color: white; padding: 1rem 1.5rem; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid rgba(255, 255, 255, 0.1); }
.maps-customizer-header h3 { margin: 0; font-size: 1.1rem; font-weight: 600; display: flex; align-items: center; gap: 0.5rem; }
.maps-customizer-close { background: none; border: none; color: white; font-size: 1.5rem; cursor: pointer; padding: 0.25rem; border-radius: 4px; transition: background-color 0.2s; }
.maps-customizer-close:hover { background: rgba(255, 255, 255, 0.1); }
.maps-customizer-iframe { width: 100%; height: calc(100% - 60px); border: none; }

.info-block-editor { background: var(--white); border-radius: 12px; padding: 1.5rem; margin-bottom: 1rem; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1); }
.info-block-items { display: flex; flex-direction: column; gap: 1.5rem; }
.info-block-items .info-block-item { border: 1px solid var(--border); border-radius: 8px; padding: 1rem; background: var(--gray-50); max-height: 320px; min-height: 220px; display: flex; flex-direction: column; justify-content: center; }
.info-block-items .info-block-item-content { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; align-items: center; max-height: 320px; }
.info-block-items .info-block-image-section { display: flex; flex-direction: column; gap: 0.5rem; max-height: 320px; min-width: 180px; align-items: center; justify-content: center; }
.info-block-items .info-block-image-preview { position: relative; width: 100%; height: 150px; border: 2px dashed var(--border); border-radius: 8px; display: flex; flex-direction: column; align-items: center; justify-content: center; background: var(--white); overflow: hidden; cursor: pointer; transition: all 0.2s ease; max-height: 320px; }
.info-block-items .info-block-image-preview img { width: 100%; height: 100%; object-fit: cover; display: block; max-height: 320px; min-height: 180px; }
.info-block-items .info-block-text-section { display: flex; flex-direction: column; gap: 1rem; align-items: center; justify-content: center; text-align: center; max-height: 320px; overflow: auto; }
.info-block-items .info-block-field input, .info-block-items .info-block-field textarea { text-align: center; }

@media (max-width: 768px) {
  .info-block-items .info-block-item, .info-block-items .info-block-item-content { max-height: 420px; }
  .info-block-items .info-block-image-section { height: 200px; max-height: 200px; min-width: 0; }
  .info-block-items .info-block-image-preview img { max-height: 200px; min-height: 100px; }
  .info-block-items .info-block-text-section { max-height: 220px; }
}

.info-block-items .info-block-item { display: flex; flex-direction: row; align-items: stretch; background: #fff; border-radius: 16px; box-shadow: 0 4px 16px rgba(0, 0, 0, 0.07); border: 1.5px solid var(--border); padding: 0; overflow: hidden; transition: box-shadow 0.2s, border-color 0.2s; position: relative; min-height: 160px; margin-bottom: 0.5rem; }
.info-block-items .info-block-item:hover { box-shadow: 0 8px 32px rgba(52, 97, 232, 0.1); border-color: var(--primary); }
.info-block-items .info-block-item-header { position: absolute; top: 16px; left: 16px; display: flex; align-items: center; gap: 0.5rem; z-index: 2; }
.info-block-items .info-block-number { background: var(--primary); color: #fff; font-weight: 700; font-size: 1rem; border-radius: 50%; width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; box-shadow: 0 2px 8px rgba(52, 97, 232, 0.1); border: 2px solid #fff; }
.info-block-items .info-block-item-actions { display: flex; gap: 0.25rem; }
.info-block-items .info-block-reverse-btn, .info-block-items .info-block-remove-btn { background: var(--gray-100); border: none; border-radius: 6px; padding: 0.4rem 0.6rem; cursor: pointer; font-size: 1rem; color: var(--gray-700); transition: background 0.2s, color 0.2s; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04); }
.info-block-items .info-block-reverse-btn.active { background: var(--primary); color: #fff; }
.info-block-items .info-block-reverse-btn:hover, .info-block-items .info-block-remove-btn:hover { background: var(--primary); color: #fff; }
.info-block-items .info-block-item-content { display: flex; flex-direction: row; align-items: stretch; width: 100%; gap: 0; padding: 0; }
.info-block-items .info-block-image-section { flex: 0 0 180px; display: flex; flex-direction: column; align-items: center; justify-content: center; background: var(--gray-50); border-right: 1.5px solid var(--border); min-width: 140px; max-width: 220px; padding: 1.5rem 1rem; position: relative; }
.info-block-items .info-block-image-preview { width: 120px; height: 120px; border-radius: 12px; border: 2px dashed var(--primary); background: #f3f4f6; display: flex; align-items: center; justify-content: center; overflow: hidden; margin-bottom: 0.5rem; position: relative; transition: border-color 0.2s; cursor: pointer; }
.info-block-items .info-block-image-preview.empty { color: var(--gray-400); background: #f3f4f6; }
.info-block-items .info-block-image-preview img { width: 100%; height: 100%; object-fit: cover; display: block; }
.info-block-items .info-block-image-preview:hover { border-color: var(--primary-dark); }
.info-block-items .info-block-image-overlay { position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: rgba(52, 97, 232, 0.08); display: flex; align-items: center; justify-content: center; opacity: 0; transition: opacity 0.2s; }
.info-block-items .info-block-image-preview:hover .info-block-image-overlay { opacity: 1; }
.info-block-items .info-block-image-actions { display: flex; gap: 0.5rem; }
.info-block-items .info-block-image-action-btn { background: var(--primary); color: #fff; border: none; border-radius: 6px; padding: 0.4rem 0.6rem; cursor: pointer; font-size: 1rem; transition: background 0.2s; }
.info-block-items .info-block-image-action-btn:hover { background: var(--primary-dark); }
.info-block-items .info-block-upload-status { position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: rgba(255, 255, 255, 0.85); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.5rem; font-size: 0.9rem; color: var(--gray-600); z-index: 2; }
.info-block-items .info-block-image-info { width: 100%; display: flex; flex-direction: column; gap: 0.25rem; }
.info-block-items .info-block-image-input { padding: 0.4rem 0.6rem; border: 1px solid var(--border); border-radius: 6px; font-size: 0.85rem; background: #fff; margin-bottom: 0.25rem; transition: border-color 0.2s; }
.info-block-items .info-block-image-input:focus { outline: none; border-color: var(--primary); }
.info-block-items .info-block-text-section { flex: 1; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; padding: 1.5rem 2rem; gap: 1rem; min-width: 0; background: transparent; }
.info-block-items .info-block-field { width: 100%; display: flex; flex-direction: column; gap: 0.25rem; }
.info-block-items .info-block-field label { font-size: 0.85rem; font-weight: 600; color: var(--gray-700); margin-bottom: 0.15rem; text-transform: uppercase; letter-spacing: 0.02em; }
.info-block-items .info-block-field input, .info-block-items .info-block-field textarea { padding: 0.5rem 0.75rem; border: 1.5px solid var(--border); border-radius: 6px; font-size: 1rem; background: #fff; transition: border-color 0.2s; text-align: left; font-family: inherit; }
.info-block-items .info-block-field input:focus, .info-block-items .info-block-field textarea:focus { outline: none; border-color: var(--primary); }
.info-block-items .info-block-field textarea { min-height: 60px; resize: vertical; }
.info-block-items .add-info-block-btn { background: var(--primary); color: white; border: none; border-radius: 8px; padding: 0.75rem 1rem; cursor: pointer; transition: all 0.2s ease; display: flex; align-items: center; justify-content: center; gap: 0.5rem; font-weight: 500; margin-top: 1rem; font-size: 1rem; box-shadow: 0 2px 8px rgba(52, 97, 232, 0.08); }
.info-block-items .add-info-block-btn:hover { background: var(--primary-dark); }
@media (max-width: 900px) {
  .info-block-items .info-block-item-content { flex-direction: column; }
  .info-block-items .info-block-image-section { border-right: none; border-bottom: 1.5px solid var(--border); min-width: 0; max-width: 100%; padding: 1rem 0.5rem; }
  .info-block-items .info-block-text-section { padding: 1rem 1rem; }
}
.info-block-items .info-block-item-header { position: absolute; top: 0; left: 0; width: 100%; display: flex; align-items: flex-start; justify-content: center; z-index: 2; pointer-events: none; height: 48px; }
.info-block-items .info-block-reverse-btn { pointer-events: auto; position: relative; top: 8px; background: var(--primary); color: #fff; border: none; border-radius: 50%; width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; font-size: 1.25rem; box-shadow: 0 2px 8px rgba(52, 97, 232, 0.1); transition: background 0.2s, color 0.2s, box-shadow 0.2s; margin: 0 auto; cursor: pointer; }
.info-block-items .info-block-reverse-btn:hover, .info-block-items .info-block-reverse-btn.active { background: var(--primary-dark); color: #fff; box-shadow: 0 4px 16px rgba(52, 97, 232, 0.15); }
.info-block-items .info-block-reverse-btn:after { content: attr(title); position: absolute; left: 50%; top: 110%; transform: translateX(-50%); background: #222; color: #fff; font-size: 0.75rem; padding: 2px 8px; border-radius: 4px; opacity: 0; pointer-events: none; white-space: nowrap; transition: opacity 0.2s; }
.info-block-items .info-block-reverse-btn:hover:after { opacity: 1; }
.info-block-items .info-block-remove-btn { pointer-events: auto; position: absolute; top: 8px; right: 16px; background: var(--gray-100); color: var(--gray-700); border: none; border-radius: 6px; padding: 0.4rem 0.6rem; cursor: pointer; font-size: 1rem; transition: background 0.2s, color 0.2s; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04); }
.info-block-items .info-block-remove-btn:hover { background: var(--danger); color: #fff; }
.info-block-items .info-block-item-header .info-block-number { margin-right: auto; margin-left: 16px; }
.info-block-items .info-block-item-header .info-block-item-actions { display: none; }
@media (max-width: 900px) {
  .info-block-items .info-block-item-header { height: 40px; }
  .info-block-items .info-block-reverse-btn { width: 36px; height: 36px; font-size: 1.1rem; }
  .info-block-items .info-block-remove-btn { top: 4px; right: 8px; }
}

.tile-set-block { background: var(--white); border-radius: 16px; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.07); padding: 1rem; margin-bottom: 1rem; display: flex; flex-direction: column; gap: 0.5rem; }
.tile-set-header { display: flex; align-items: center; gap: 1rem; margin-bottom: 0.5rem; }
.tile-set-title-input { font-size: 1.1rem; font-weight: 600; border: 1px solid var(--gray-300); border-radius: 0.5rem; padding: 0.5rem 1rem; background: var(--gray-50); color: var(--gray-900); flex: 1; }
.tile-set-title-input:focus { outline: none; border-color: var(--primary); background: var(--white); box-shadow: 0 0 0 3px rgba(52, 97, 232, 0.1); }
.tile-set-alignment { display: flex; gap: 0.25rem; background: var(--gray-100); border-radius: 0.5rem; padding: 0.25rem; }
.alignment-btn { padding: 0.5rem; background: transparent; border: none; border-radius: 0.25rem; color: var(--gray-600); cursor: pointer; transition: all 0.2s; display: flex; align-items: center; justify-content: center; width: 32px; height: 32px; }
.alignment-btn:hover { background: var(--gray-200); color: var(--gray-800); }
.alignment-btn.active { background: var(--primary); color: var(--white); }
.tile-set-title { font-size: 1.2rem; font-weight: 700; margin: 0; color: var(--primary-dark); font-family: inherit; }
.tile-set-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 22px; margin-top: 0; }
.tile-set-tile { background: var(--gray-50); border-radius: 12px; box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04); padding: 1.1rem 0.5rem 0.9rem 0.5rem; text-align: center; display: flex; flex-direction: column; align-items: center; position: relative; min-height: 90px; }
.tile-icon-selector { position: relative; display: flex; flex-direction: column; align-items: center; margin-bottom: 0.5rem; }
.tile-set-icon { font-size: 2.1rem; display: block; cursor: pointer; transition: transform 0.15s; margin-bottom: 0.25rem; }
.tile-set-icon:hover { transform: scale(1.15); }
.tile-icon-change-btn { background: var(--primary); color: var(--white); border: none; border-radius: 0.25rem; padding: 0.25rem 0.5rem; font-size: 0.7rem; cursor: pointer; opacity: 0.8; transition: opacity 0.2s; }
.tile-icon-change-btn:hover { opacity: 1; }
.tile-set-label { font-size: 1rem; font-family: inherit; color: var(--gray-800); background: transparent; border: none; text-align: center; margin-bottom: 0.2rem; outline: none; width: 100%; }
.tile-set-label:focus { background: var(--white); border-bottom: 1.5px solid var(--primary); }
.tile-set-add-btn { grid-column: 1/-1; background: var(--primary); color: var(--white); border-radius: 8px; padding: 0.7rem 0; text-align: center; font-weight: 600; cursor: pointer; margin-top: 0.5rem; transition: background 0.2s; }
.tile-set-add-btn:hover { background: var(--primary-dark); }
.tile-set-remove-btn { position: absolute; top: 8px; right: 8px; background: var(--danger); color: var(--white); border: none; border-radius: 50%; width: 24px; height: 24px; display: flex; align-items: center; justify-content: center; font-size: 0.9rem; cursor: pointer; transition: background 0.2s; }
.tile-set-remove-btn:hover { background: #b91c1c; }

.tile-set-grid-editor { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 1rem; margin-top: 1rem; }
.tile-set-tile-editor { background: var(--gray-50); border: 1px solid var(--gray-200); border-radius: 0.75rem; padding: 1rem; transition: all 0.2s ease; position: relative; min-height: 140px; display: flex; flex-direction: column; }
.tile-set-tile-editor:hover { border-color: var(--gray-300); box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08); transform: translateY(-1px); }
.tile-set-tile-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 0.75rem; }
.tile-set-tile-number { font-weight: 600; color: var(--white); font-size: 0.7rem; background: var(--primary); padding: 0.25rem 0.4rem; border-radius: 0.375rem; min-width: 1.5rem; text-align: center; }
.tile-set-tile-remove-btn { background: #dc3545; color: white; border: none; border-radius: 50%; width: 20px; height: 20px; display: flex; align-items: center; justify-content: center; font-size: 0.7rem; cursor: pointer; transition: all 0.2s ease; }
.tile-set-tile-remove-btn:hover { background: #c82333; transform: scale(1.1); }
.tile-set-tile-content { display: flex; flex-direction: column; gap: 0.75rem; flex: 1; }
.tile-set-tile-icon-area { display: flex; flex-direction: column; align-items: center; gap: 0.5rem; }
.tile-set-tile-icon-preview { width: 52px; height: 52px; background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%); border-radius: 0.75rem; display: flex; align-items: center; justify-content: center; color: var(--white); font-size: 1.5rem; box-shadow: 0 2px 8px rgba(52, 97, 232, 0.2); transition: all 0.2s ease; cursor: pointer; }
.tile-set-tile-icon-preview:hover { transform: scale(1.1); box-shadow: 0 4px 16px rgba(52, 97, 232, 0.3); }
.tile-set-tile-icon-btn { background: var(--gray-200); color: var(--gray-600); border: none; border-radius: 0.375rem; padding: 0.25rem 0.5rem; font-size: 0.7rem; cursor: pointer; transition: all 0.2s ease; opacity: 0.8; }
.tile-set-tile-icon-btn:hover { background: var(--gray-300); color: var(--gray-800); opacity: 1; }
.tile-set-tile-label-area { flex: 1; display: flex; align-items: flex-end; }
.tile-set-tile-label-input { width: 100%; padding: 0.5rem 0.75rem; border: 1px solid var(--gray-300); border-radius: 0.5rem; font-size: 0.875rem; font-family: inherit; background: var(--white); transition: all 0.2s ease; text-align: center; font-weight: 500; }
.tile-set-tile-label-input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(52, 97, 232, 0.1); }
.tile-set-tile-label-input::placeholder { color: var(--gray-400); font-weight: normal; }
.tile-set-add-tile-btn { grid-column: 1 / -1; background: var(--primary); color: var(--white); border: none; border-radius: 0.75rem; padding: 1rem; font-size: 0.875rem; font-weight: 500; cursor: pointer; transition: all 0.2s ease; margin-top: 0.5rem; display: flex; align-items: center; justify-content: center; gap: 0.5rem; box-shadow: 0 2px 4px rgba(52, 97, 232, 0.2); min-height: 60px; border: 2px dashed transparent; }
.tile-set-add-tile-btn:hover { background: var(--primary-dark); transform: translateY(-1px); box-shadow: 0 4px 8px rgba(52, 97, 232, 0.3); }
.tile-set-add-tile-btn:active { transform: translateY(0); }

.show-custom-icon-btn { background: var(--primary); color: white; border: none; padding: 0.5rem 0.75rem; border-radius: 0.5rem; font-size: 0.8rem; font-weight: 600; cursor: pointer; transition: all 0.2s ease; display: inline-flex; align-items: center; gap: 0.375rem; margin-top: 0.5rem; box-shadow: 0 2px 4px rgba(52, 97, 232, 0.2); }
.show-custom-icon-btn:hover { background: var(--primary-dark); transform: translateY(-1px); box-shadow: 0 4px 8px rgba(52, 97, 232, 0.3); }
.custom-icon-actions { display: flex; justify-content: flex-end; margin-top: 0.75rem; padding-top: 0.75rem; border-top: 1px solid var(--gray-200); }
.cancel-custom-icon-btn { background: var(--gray-100); color: var(--gray-700); border: none; padding: 0.5rem 0.75rem; border-radius: 0.5rem; font-size: 0.8rem; font-weight: 500; cursor: pointer; transition: all 0.2s ease; display: flex; align-items: center; gap: 0.375rem; }
.cancel-custom-icon-btn:hover { background: var(--gray-200); color: var(--gray-800); }
.custom-icon-preview { font-size: 0.8rem; padding: 0.875rem; }
.show-custom-icon-btn { width: 100%; justify-content: center; margin-top: 0.75rem; padding: 0.75rem; }
.custom-icon-actions { justify-content: center; }
.cancel-custom-icon-btn { padding: 0.625rem 1rem; }

.rich-text-editor { display: flex; flex-direction: column; border: 1px solid var(--gray-300); border-radius: 0.5rem; overflow: hidden; background: var(--white); transition: all 0.2s ease; }
.rich-text-editor:focus-within { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(52, 97, 232, 0.1); }
.rich-text-toolbar { display: flex; flex-wrap: wrap; gap: 0.25rem; padding: 0.5rem; background: var(--gray-50); border-bottom: 1px solid var(--gray-200); align-items: center; }
.toolbar-btn { width: 32px; height: 32px; border: none; background: transparent; border-radius: 0.375rem; cursor: pointer; display: flex; align-items: center; justify-content: center; font-size: 0.875rem; color: var(--gray-600); transition: all 0.2s ease; position: relative; }
.toolbar-btn:hover { background: var(--gray-200); color: var(--gray-800); transform: scale(1.05); }
.toolbar-btn.active { background: var(--primary); color: var(--white); box-shadow: 0 2px 4px rgba(52, 97, 232, 0.2); }
.toolbar-btn.active:hover { background: var(--primary-dark); }
.toolbar-separator { width: 1px; height: 24px; background: var(--gray-300); margin: 0 0.25rem; }
.rich-text-content { min-height: 120px; max-height: 400px; padding: 0.75rem; font-family: inherit; font-size: calc(0.875rem * var(--secondary-font-scale)); line-height: 1.6; overflow-y: auto; outline: none; background: var(--white); color: var(--gray-900); resize: vertical; }
.rich-text-content:empty::before { content: attr(data-placeholder); color: var(--gray-400); pointer-events: none; font-style: italic; }
.rich-text-content:focus { outline: none; }
.rich-text-content strong, .rich-text-content b { font-weight: 700; }
.rich-text-content em, .rich-text-content i { font-style: italic; }
.rich-text-content u { text-decoration: underline; }
.rich-text-content strike { text-decoration: line-through; }
.rich-text-content a { color: var(--primary); text-decoration: underline; transition: color 0.2s ease; }
.rich-text-content a:hover { color: var(--primary-dark); }
.rich-text-content ul, .rich-text-content ol { margin: 0.5rem 0; padding-left: 1.5rem; }
.rich-text-content li { margin: 0.25rem 0; }
.rich-text-content p { margin: 0.5rem 0; }
.rich-text-content p:first-child { margin-top: 0; }
.rich-text-content p:last-child { margin-bottom: 0; }
.rich-text-content [style*="text-align: left"] { text-align: left; }
.rich-text-content [style*="text-align: center"] { text-align: center; }
.rich-text-content [style*="text-align: right"] { text-align: right; }
.rich-text-content [style*="background-color: rgb(255, 255, 0)"], .rich-text-content [style*="background-color: #ffff00"], .rich-text-content [style*="background-color: yellow"] { background-color: #fff3cd !important; padding: 0.125rem 0.25rem; border-radius: 0.25rem; color: #856404; }
@media (max-width: 768px) {
  .rich-text-toolbar { gap: 0.125rem; padding: 0.375rem; }
  .toolbar-btn { width: 28px; height: 28px; font-size: 0.8rem; }
  .toolbar-separator { height: 20px; }
}

.status-box-block .block-header-left { display: flex; align-items: center; gap: 0.5rem; }
.status-box-block .block-icon { color: var(--primary); font-size: 1rem; }
.status-box-main-controls { background: var(--gray-50); border-radius: 0.75rem; padding: 1rem; margin-bottom: 1rem; border: 1px solid var(--gray-200); }
.status-box-input-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; margin-bottom: 0.75rem; }
.status-box-input-group { display: flex; flex-direction: column; gap: 0.375rem; }
.compact-label { font-size: 0.8rem; font-weight: 600; color: var(--gray-700); letter-spacing: 0.01em; margin: 0; }
.compact-input { padding: 0.5rem 0.75rem; border: 1.5px solid var(--gray-300); border-radius: 0.5rem; font-size: 0.9rem; font-weight: 500; transition: all 0.2s ease; background: var(--white); color: var(--gray-900); }
.compact-input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(64, 113, 244, 0.1); }
.status-box-variant-section { display: flex; flex-direction: column; gap: 0.375rem; }
.variant-select { padding: 0.5rem 0.75rem; border: 1.5px solid var(--gray-300); border-radius: 0.5rem; font-size: 0.9rem; font-weight: 500; background: var(--white); color: var(--gray-900); cursor: pointer; transition: all 0.2s ease; }
.variant-select:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(64, 113, 244, 0.1); }
.status-box-customization { background: var(--white); border: 1px solid var(--gray-200); border-radius: 0.75rem; margin-bottom: 1rem; overflow: hidden; }
.customization-header, .preview-header { display: flex; align-items: center; gap: 0.5rem; padding: 0.75rem 1rem; background: var(--gray-50); border-bottom: 1px solid var(--gray-200); font-weight: 600; color: var(--gray-700); font-size: 0.875rem; }
.customization-header i, .preview-header i { color: var(--primary); font-size: 0.875rem; }
.status-box-custom-options { padding: 1rem; }
.color-controls-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }
.color-controls-single { display: flex; justify-content: center; }
.color-control { display: flex; flex-direction: column; gap: 0.375rem; align-items: center; }
.color-label { font-size: 0.8rem; font-weight: 600; color: var(--gray-600); text-align: center; margin: 0; }
.color-input-wrapper { display: flex; flex-direction: column; align-items: center; gap: 0.25rem; }
.color-picker { width: 3rem; height: 3rem; border: 2px solid var(--gray-300); border-radius: 0.5rem; cursor: pointer; transition: all 0.2s ease; padding: 0; background: none; }
.color-picker:hover { border-color: var(--primary); transform: scale(1.05); box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1); }
.color-hex { font-size: 0.7rem; font-family: "Courier New", monospace; color: var(--gray-500); background: var(--gray-100); padding: 0.25rem 0.5rem; border-radius: 0.25rem; border: 1px solid var(--gray-300); min-width: 4.5rem; text-align: center; }
.gradient-controls { margin-bottom: 1rem; }
.gradient-controls:last-child { margin-bottom: 0; }
.gradient-label { display: flex; align-items: center; gap: 0.5rem; font-size: 0.8rem; font-weight: 600; color: var(--gray-700); margin-bottom: 0.75rem; padding-bottom: 0.5rem; border-bottom: 1px solid var(--gray-200); }
.neon-controls { display: flex; flex-direction: column; gap: 1rem; }
.image-controls { display: flex; flex-direction: column; gap: 1rem; }
.url-control { display: flex; flex-direction: column; gap: 0.375rem; }
.url-input { padding: 0.5rem 0.75rem; border: 1.5px solid var(--gray-300); border-radius: 0.5rem; font-size: 0.9rem; transition: all 0.2s ease; background: var(--white); color: var(--gray-900); }
.url-input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(64, 113, 244, 0.1); }
.overlay-controls { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; align-items: end; }
.opacity-control { display: flex; flex-direction: column; gap: 0.375rem; }
.opacity-label { font-size: 0.8rem; font-weight: 600; color: var(--gray-600); margin: 0; }
.opacity-slider-wrapper { display: flex; flex-direction: column; align-items: center; gap: 0.25rem; }
.opacity-slider { width: 100%; height: 0.25rem; border-radius: 0.125rem; background: var(--gray-300); outline: none; cursor: pointer; transition: all 0.2s ease; }
.opacity-slider::-webkit-slider-thumb { appearance: none; width: 1rem; height: 1rem; border-radius: 50%; background: var(--primary); cursor: pointer; border: 2px solid var(--white); box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2); transition: all 0.2s ease; }
.opacity-slider::-webkit-slider-thumb:hover { transform: scale(1.1); box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3); }
.opacity-value { font-size: 0.7rem; font-weight: 600; color: var(--gray-600); background: var(--gray-100); padding: 0.25rem 0.5rem; border-radius: 0.25rem; border: 1px solid var(--gray-300); min-width: 2.5rem; text-align: center; }
.status-box-preview-section { background: var(--white); border: 1px solid var(--gray-200); border-radius: 0.75rem; overflow: hidden; }
.status-box-preview { padding: 1rem; background: var(--gray-50); min-height: 120px; display: flex; align-items: center; justify-content: center; }
.status-box-preview-wrapper { width: 100%; max-width: 300px; }
@media (max-width: 768px) {
  .status-box-input-row { grid-template-columns: 1fr; gap: 0.5rem; }
  .color-controls-grid { grid-template-columns: 1fr; gap: 0.5rem; }
  .overlay-controls { grid-template-columns: 1fr; gap: 0.5rem; }
  .color-picker { width: 2.5rem; height: 2.5rem; }
  .neon-controls { gap: 0.75rem; }
}

.status-box-content-compact { display: flex; flex-direction: column; gap: 1rem; }
.status-box-top-row { display: grid; gap: 1rem; align-items: start; }
.status-box-inputs-side { display: flex; flex-direction: column; gap: 0.75rem; }
.input-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }
.input-group-inline { display: flex; flex-direction: column; gap: 0.25rem; }
.inline-label { font-size: 0.75rem; font-weight: 600; color: var(--gray-600); margin: 0; text-transform: uppercase; letter-spacing: 0.5px; }
.inline-input { padding: 0.5rem 0.75rem; border: 1.5px solid var(--gray-300); border-radius: 0.5rem; font-size: 0.9rem; font-weight: 500; transition: all 0.2s ease; background: var(--white); color: var(--gray-900); }
.inline-input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(64, 113, 244, 0.1); }
.variant-group { display: flex; flex-direction: column; gap: 0.25rem; }
.variant-select-compact { padding: 0.5rem 0.75rem; border: 1.5px solid var(--gray-300); border-radius: 0.5rem; font-size: 0.85rem; font-weight: 500; background: var(--white); color: var(--gray-900); cursor: pointer; transition: all 0.2s ease; }
.variant-select-compact:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(64, 113, 244, 0.1); }
.status-box-preview-side { background: var(--gray-50); border: 1px solid var(--gray-200); border-radius: 0.75rem; overflow: hidden; }
.preview-label-inline { display: flex; align-items: center; gap: 0.5rem; padding: 0.5rem 0.75rem; background: var(--gray-100); border-bottom: 1px solid var(--gray-200); font-weight: 600; color: var(--gray-700); font-size: 0.8rem; }
.preview-label-inline i { color: var(--primary); font-size: 0.8rem; }
.status-box-preview-compact { padding: 1rem; min-height: 100px; display: flex; align-items: center; justify-content: center; background: var(--white); }
.status-box-custom-options-compact { background: var(--white); border: 1px solid var(--gray-200); border-radius: 0.75rem; padding: 1rem; }
.status-box-custom-options-compact:empty { display: none; }
.image-upload-controls { display: flex; flex-direction: column; gap: 0.75rem; }
.image-preview-area { position: relative; width: 100%; height: 120px; border: 2px dashed var(--gray-300); border-radius: 0.75rem; background: var(--gray-50); overflow: hidden; transition: all 0.2s ease; cursor: pointer; }
.image-preview-area:hover { border-color: var(--primary); background: var(--gray-100); }
.image-preview-area.has-image { border-style: solid; cursor: default; }
.preview-image { width: 100%; height: 100%; object-fit: cover; border-radius: 0.5rem; }
.image-overlay { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.5); display: flex; align-items: center; justify-content: center; gap: 0.5rem; opacity: 0; transition: opacity 0.2s ease; }
.image-preview-area:hover .image-overlay { opacity: 1; }
.image-action-btn { width: 2.5rem; height: 2.5rem; border: none; border-radius: 0.5rem; background: var(--white); color: var(--gray-700); cursor: pointer; display: flex; align-items: center; justify-content: center; transition: all 0.2s ease; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); }
.image-action-btn:hover { background: var(--primary); color: var(--white); transform: scale(1.05); }
.empty-image-placeholder { width: 100%; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; color: var(--gray-500); text-align: center; gap: 0.25rem; }
.empty-image-placeholder i { font-size: 1.5rem; margin-bottom: 0.25rem; }
.empty-image-placeholder span { font-weight: 600; font-size: 0.9rem; }
.empty-image-placeholder small { font-size: 0.75rem; color: var(--gray-400); }
.url-input-area { display: flex; flex-direction: column; gap: 0.25rem; }
.url-input-compact { padding: 0.5rem 0.75rem; border: 1.5px solid var(--gray-300); border-radius: 0.5rem; font-size: 0.85rem; transition: all 0.2s ease; background: var(--white); color: var(--gray-900); }
.url-input-compact:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(64, 113, 244, 0.1); }
.upload-status { position: absolute; inset: 0; background: rgba(255, 255, 255, 0.95); display: flex; align-items: center; justify-content: center; gap: 0.5rem; color: var(--primary); font-weight: 600; font-size: 0.9rem; }
.upload-spinner { width: 1.5rem; height: 1.5rem; border: 2px solid var(--gray-300); border-top: 2px solid var(--primary); border-radius: 50%; animation: spin 1s linear infinite; }
.no-customization { display: flex; justify-content: center; padding: 1rem; }
.no-custom-message { display: flex; align-items: center; gap: 0.5rem; color: var(--gray-500); font-size: 0.85rem; background: var(--gray-50); padding: 0.75rem 1rem; border-radius: 0.5rem; border: 1px solid var(--gray-200); }
.no-custom-message i { color: var(--primary); font-size: 1rem; }

@media (max-width: 768px) {
  .status-box-top-row { grid-template-columns: 1fr; gap: 0.75rem; }
  .input-pair { grid-template-columns: 1fr; gap: 0.5rem; }
  .preview-label-inline { padding: 0.5rem; font-size: 0.75rem; }
  .status-box-preview-compact { padding: 0.75rem; min-height: 80px; }
  .image-preview-area { height: 100px; }
  .image-action-btn { width: 2rem; height: 2rem; font-size: 0.8rem; }
}

