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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: #f5f5f5;
  color: #333;
  padding: 16px;
}

.container {
  max-width: 600px;
  margin: 0 auto;
  padding-bottom: 90px; /* Отступ под фиксированный футер */
}

.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.header h1 {
  font-size: 28px;
  font-weight: 700;
  flex: 1;
  order: 1;
}

.header .back-btn {
  order: 2;
}

.back-btn, .close-btn {
  background: #e8e8e8;
  border: none;
  padding: 10px 20px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 16px;
  transition: background 0.2s;
}

.back-btn:hover, .close-btn:hover {
  background: #d0d0d0;
}

.preview-section {
  margin-bottom: 24px;
}

.preview-container {
  background: #fff;
  border-radius: 16px;
  padding: 16px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 300px;
}

.weight-status {
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid #e0e0e0;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
  display: flex;
  align-items: center;
  gap: 12px;
}

.weight-status-info {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}

.weight-status-label {
  font-size: 13px;
  font-weight: 700;
  color: #2c3e50;
}

.weight-status-hint {
  font-size: 12px;
  color: #7f8c8d;
}

.weight-status-bar {
  position: relative;
  width: 100%;
  height: 8px;
  border-radius: 4px;
  background: #f0f2f5;
  overflow: hidden;
}

.weight-status-fill {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #3498db, #5dade2);
  transition: width 0.2s ease, background 0.2s ease;
}

.weight-status-value {
  font-size: 20px;
  font-weight: 700;
  color: #2c3e50;
  min-width: 72px;
  text-align: right;
}

.weight-status.weight-ok {
  border-color: #c7f4d4;
  background: #f6fff9;
}

.weight-status.weight-ok .weight-status-fill {
  background: #27ae60;
}

.weight-status.weight-warn {
  border-color: #ffe7c2;
  background: #fffaf2;
}

.weight-status.weight-warn .weight-status-fill {
  background: #f39c12;
}

.weight-status.weight-error {
  border-color: #ffd5d5;
  background: #fff7f7;
}

.weight-status.weight-error .weight-status-fill {
  background: #e74c3c;
}

.btn-instruction {
  width: 100%;
  margin-top: 12px;
  padding: 10px 16px;
  background: #f8f9fa;
  border: 1px solid #dee2e6;
  border-radius: 8px;
  color: #495057;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.btn-instruction:hover {
  background: #e9ecef;
  border-color: #ced4da;
}

.btn-instruction:active {
  transform: scale(0.98);
}

#wheel-preview {
  width: 100%;
  max-width: 400px;
  height: auto;
  aspect-ratio: 1;
}

/* Color Palette Selector */
.color-palette-selector {
  margin-top: 16px;
  padding: 16px;
  background: #f8f9fa;
  border-radius: 12px;
  border: 1px solid #e0e0e0;
}

.palette-title {
  font-size: 14px;
  font-weight: 600;
  color: #2c3e50;
  margin-bottom: 12px;
  text-align: center;
}

.palette-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(50px, 1fr));
  gap: 8px;
  max-width: 100%;
}

.palette-item {
  width: 100%;
  max-width: 60px;
  aspect-ratio: 6/5;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
  position: relative;
  border: 2px solid transparent;
  overflow: hidden;
  justify-self: center;
}

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

.palette-item.active {
  border-color: #0088cc;
  box-shadow: 0 0 0 3px rgba(0, 136, 204, 0.2);
}

.palette-item-preview {
  width: 100%;
  height: 100%;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(2, 1fr);
}

.palette-color-block {
  width: 100%;
  height: 100%;
}

.palette-check {
  position: absolute;
  bottom: 2px;
  right: 2px;
  width: 16px;
  height: 16px;
  background: #0088cc;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 10px;
  font-weight: bold;
  opacity: 0;
  transition: opacity 0.2s;
}

.palette-item.active .palette-check {
  opacity: 1;
}

.section-title {
  font-size: 12px;
  font-weight: 600;
  color: #7f8c8d;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 12px;
  padding-left: 4px;
}

.sectors-grid {
  display: grid;
  gap: 12px;
  margin-bottom: 24px;
}

    .sector-card {
      background: white;
      border-radius: 12px;
      padding: 12px;
      box-shadow: 0 2px 8px rgba(0,0,0,0.08);
      display: grid;
      gap: 8px;
      margin-bottom: 10px;
    }

    .sector-card.disabled .sector-header {
      opacity: 0.5;
    }
    
    .sector-card.disabled .sector-header > *:not(.wheel-toggle) {
      pointer-events: none;
    }
    
    .sector-card.disabled .control-row:not(.toggle-row) {
      opacity: 0.5;
      pointer-events: none;
    }

    .sector-card--exhausted {
      background: #fff5f5;
      border: 1.5px solid #ffcdd2;
    }

    .sector-card--exhausted .sector-header {
      opacity: 0.7;
    }

    .sector-card--exhausted .control-row {
      opacity: 0.5;
      pointer-events: none;
    }

.sector-header {
  display: flex;
  align-items: center;
  gap: 12px;
}

.sector-icon {
  font-size: 24px;
}

.sector-name {
  font-size: 16px;
  font-weight: 600;
  flex: 1;
}

.sector-badge {
  background: #e3f2fd;
  color: #1976d2;
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 600;
}

.sector-controls {
  display: grid;
  gap: 8px;
}

.control-row {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: space-between;
}

.control-label {
  font-size: 12px;
  font-weight: 500;
  color: #555;
  min-width: 50px;
}

.weight-badge {
  background: #e3f2fd;
  color: #1976d2;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
}

.weight-input {
  background: white;
  border: 1px solid #ddd;
  border-radius: 6px;
  padding: 6px 12px;
  font-size: 14px;
  font-weight: 600;
  flex: 1;
  min-width: 60px;
  text-align: center;
  font-family: inherit;
}

/* Скрываем спины из input */
.weight-input::-webkit-outer-spin-button,
.weight-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.weight-input[type=number] {
  appearance: textfield;
  -moz-appearance: textfield;
}

.weight-input:focus {
  outline: none;
  border-color: #3498db;
  box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.1);
}

.weight-unit {
  font-size: 14px;
  color: #1976d2;
  font-weight: 600;
}

.sector-count-control {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
}

.sector-count-label {
  font-size: 12px;
  color: #888;
  white-space: nowrap;
  margin-right: 2px;
}

.count-btn {
  background: #e8e8e8;
  border: none;
  width: 28px;
  height: 28px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 16px;
  font-weight: 600;
  color: #555;
  transition: background 0.2s;
}

.count-btn:hover:not(:disabled) {
  background: #d0d0d0;
}

.count-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.count-display {
  text-align: center;
  min-width: 50px;
  font-size: 13px;
  color: #555;
}

.wheel-toggle {
  position: relative;
  display: inline-block;
  width: 40px;
  height: 24px;
  margin-left: auto;
}

.wheel-toggle input {
  opacity: 0;
  width: 0;
  height: 0;
}

.wheel-toggle-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  transition: 0.3s;
  border-radius: 24px;
}

.wheel-toggle-slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: 0.3s;
  border-radius: 50%;
}

input:checked + .wheel-toggle-slider {
  background-color: #27ae60;
}

input:checked + .wheel-toggle-slider:before {
  transform: translateX(16px);
}

.delete-btn {
  background: #ffebee;
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 16px;
  transition: background 0.2s;
}

.delete-btn:hover {
  background: #ffcdd2;
}

.settings-btn {
  background: #e8e8e8;
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 16px;
  transition: background 0.2s;
}

.settings-btn:hover {
  background: #d0d0d0;
}

.add-group-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-bottom: 24px;
}

.add-group-btn {
  width: 100%;
  background: white;
  border: 2px dashed #27ae60;
  border-radius: 12px;
  padding: 16px;
  cursor: pointer;
  text-align: center;
  font-size: 14px;
  font-weight: 600;
  color: #27ae60;
  transition: background 0.2s;
  margin-bottom: 0;
}

.add-group-btn:hover:not(:disabled) {
  background: #f0f8f0;
}

.add-group-btn--catalog {
  border-style: solid;
  background: #eef7ff;
  border-color: #8cc7f0;
  color: #1976d2;
}

.add-group-btn--catalog:hover:not(:disabled) {
  background: #e3f2fd;
}

.add-group-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  color: #bdc3c7;
  border-color: #bdc3c7;
}

.status-message {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  z-index: 999;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  animation: slideDown 0.3s ease;
  min-width: 300px;
  text-align: center;
}

.status-message.success {
  background: #d5f4e6;
  color: #27ae60;
}

.status-message.error {
  background: #fadbd8;
  color: #c0392b;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}

.footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  gap: 12px;
  padding: 16px;
  background: #fff;
  border-top: 1px solid #e0e0e0;
  box-shadow: 0 -2px 8px rgba(0,0,0,0.08);
  z-index: 100;
  max-width: 600px;
  margin: 0 auto;
}

.btn {
  flex: 1;
  padding: 12px 16px;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}

.btn-confirm {
  background: #27ae60;
  color: white;
}

.btn-confirm:hover {
  background: #229954;
}

.btn-cancel {
  background: #e8e8e8;
  color: #555;
}

.btn-cancel:hover {
  background: #d0d0d0;
}

/* Модальное окно */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  animation: fadeIn 0.2s ease;
}

.modal {
  background: white;
  border-radius: 16px;
  padding: 24px;
  max-width: 400px;
  width: 90%;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  animation: slideUp 0.3s ease;
}

.modal-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.modal-icon {
  font-size: 32px;
}

.modal-title {
  font-size: 18px;
  font-weight: 600;
  color: #2c3e50;
  flex: 1;
}

.modal-body {
  font-size: 14px;
  line-height: 1.6;
  color: #555;
  margin-bottom: 20px;
  overflow-y: auto;
  min-height: 0;
  flex: 1;
}

.sim-modal-body {
  overflow-y: auto;
  min-height: 0;
  flex: 1;
  margin-bottom: 0;
}

.modal-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-top: 20px;
  flex-shrink: 0;
}

.sim-again-btn {
  padding: 10px 16px;
  border: 2px solid #d4a8f0;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  background: transparent;
  color: #7b2d9e;
  transition: background 0.2s, border-color 0.2s;
  width: 100%;
}
.sim-again-btn:hover:not(:disabled) {
  background: #f3e5f5;
  border-color: #b97de0;
}
.sim-again-btn:disabled {
  opacity: 0.4;
  cursor: default;
}

.modal-btn {
  padding: 10px 20px;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  background: #3498db;
  color: white;
  transition: background 0.2s;
  width: 100%;
}

.modal-btn:hover {
  background: #2980b9;
}
.modal-btn:disabled {
  opacity: 0.4;
  cursor: default;
}

.catalog-prize-modal {
  max-width: 560px;
}

.catalog-prize-list {
  display: grid;
  gap: 10px;
}

.catalog-prize-item {
  width: 100%;
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 12px;
  align-items: center;
  border: 1px solid #e3e8ef;
  background: #fff;
  border-radius: 10px;
  padding: 10px;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s, transform 0.2s;
  font-family: inherit;
}

.catalog-prize-item:hover {
  border-color: #8cc7f0;
  background: #f7fbff;
  transform: translateY(-1px);
}

.catalog-prize-thumb {
  width: 54px;
  height: 54px;
  border-radius: 8px;
  background: #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  overflow: hidden;
}

.catalog-prize-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.catalog-prize-content {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.catalog-prize-name {
  font-size: 15px;
  font-weight: 700;
  color: #2c3e50;
  overflow-wrap: anywhere;
}

.catalog-prize-description {
  font-size: 12px;
  color: #6b7280;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.catalog-prize-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.catalog-prize-meta span {
  background: #e3f2fd;
  color: #1976d2;
  border-radius: 999px;
  padding: 3px 8px;
  font-size: 11px;
  font-weight: 700;
}

.catalog-prize-empty {
  border: 1px dashed #cbd5e1;
  border-radius: 10px;
  padding: 18px 14px;
  color: #64748b;
  text-align: center;
  line-height: 1.5;
}

.catalog-prize-empty--error {
  border-color: #ffcdd2;
  color: #c62828;
  background: #fff5f5;
}

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

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

/* Модальное окно настроек */
.settings-modal {
  background: white;
  border-radius: 16px;
  padding: 0;
  max-width: 500px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  animation: slideUp 0.3s ease;
}

.settings-modal-header {
  padding: 20px 24px;
  border-bottom: 1px solid #e0e0e0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  background: white;
  z-index: 1;
  border-radius: 16px 16px 0 0;
}

.settings-modal-title {
  font-size: 20px;
  font-weight: 600;
  color: #2c3e50;
}

.settings-modal-subtitle {
  font-size: 14px;
  color: #95a5a6;
  margin-top: 4px;
}

.settings-modal-close {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: #ecf0f1;
  color: #7f8c8d;
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

/* Mobile layout tweaks */
@media (max-width: 480px) {
  body {
    padding: 12px;
  }

  .container {
    width: 100%;
    max-width: none;
  }

  .header h1 {
    font-size: 24px;
  }

  .sector-card {
    padding: 14px;
  }

  .sector-header {
    flex-wrap: wrap;
    gap: 8px;
  }

  .sector-badge {
    margin-left: auto;
  }

  .control-row {
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 10px;
  }

  .weight-badge {
    width: 100%;
    justify-content: space-between;
  }

  .sector-count-control {
    width: 100%;
  }

  .toggle-row {
    width: 100%;
  }

  .add-group-btn {
    padding: 14px;
  }

  .footer {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }
}

.settings-modal-close:hover {
  background: #d5dbdb;
}

.settings-modal-body {
  padding: 24px;
}

.settings-field {
  margin-bottom: 24px;
}

.settings-field-label {
  font-size: 14px;
  color: #7f8c8d;
  margin-bottom: 8px;
  display: block;
}

.settings-field-hint {
  font-size: 12px;
  color: #95a5a6;
  margin-top: 4px;
}

.settings-field-explanation {
  font-size: 12px;
  color: #0088cc;
  margin-top: 6px;
  padding: 8px 12px;
  background: #e3f2fd;
  border-radius: 8px;
  line-height: 1.4;
}

.settings-info-block {
  padding: 14px 16px;
  background: #fff9e6;
  border-left: 3px solid #f39c12;
  border-radius: 8px;
  font-size: 13px;
  color: #7f8c8d;
  line-height: 1.5;
  margin-top: 24px;
}

.sector-limit-info {
  font-size: 12px;
  color: #7f8c8d;
  padding: 6px 12px;
  background: #f8f9fa;
  border-radius: 8px;
  margin-bottom: 8px;
  line-height: 1.4;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.prob-sim-box {
  margin-top: 8px;
  background: #f3e5f5;
  border-radius: 12px;
  overflow: hidden;
}

.probability-hint {
  font-size: 11px;
  color: #8e44ad;
  padding: 7px 12px 5px;
  line-height: 1.4;
  text-align: center;
}

.sim-btn {
  display: block;
  width: 100%;
  padding: 7px 12px;
  font-size: 12px;
  font-weight: 600;
  color: #7b2d9e;
  background: #e8d0f7;
  border: none;
  border-top: 1px solid #dbb8ef;
  cursor: pointer;
  transition: background 0.15s;
  text-align: center;
}
.sim-btn:hover {
  background: #dfc0f5;
}
.sim-btn:active {
  background: #d4a8f0;
}
.sim-btn:disabled {
  opacity: 0.5;
  cursor: default;
}

.sim-modal-stat {
  font-size: 14px;
  color: #4a235a;
  margin-bottom: 8px;
}
.sim-modal-hits {
  margin-top: 12px;
  padding: 10px 12px;
  background: #f7f0ff;
  border: 1px solid #dcc8f5;
  border-radius: 10px;
}
.sim-modal-hits-label {
  font-size: 12px;
  color: #7b2d9e;
  font-weight: 600;
  margin-bottom: 8px;
}
.sim-hits-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.sim-hit-badge {
  display: inline-block;
  padding: 3px 10px;
  background: #ede0ff;
  color: #5b2080;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}
.sim-hit-more {
  background: #f3f3f3;
  color: #999;
}
.sim-loader {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px 0;
  gap: 14px;
}
.sim-spinner {
  width: 36px;
  height: 36px;
  border: 4px solid #e0c8f5;
  border-top-color: #8e24aa;
  border-radius: 50%;
  animation: sim-spin 0.7s linear infinite;
}
@keyframes sim-spin {
  to { transform: rotate(360deg); }
}
.sim-loader-text {
  font-size: 13px;
  color: #7b2d9e;
  font-weight: 500;
}

.settings-input {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  font-size: 15px;
  color: #2c3e50;
  transition: border-color 0.2s;
  box-sizing: border-box;
}

.settings-input:focus {
  outline: none;
  border-color: #3498db;
}

.settings-select {
  background: #fff;
  cursor: pointer;
}

.settings-textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  font-size: 15px;
  color: #2c3e50;
  min-height: 80px;
  resize: vertical;
  font-family: inherit;
  transition: border-color 0.2s;
  box-sizing: border-box;
}

.settings-textarea:focus {
  outline: none;
  border-color: #3498db;
}

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

.settings-number-group {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
}

.settings-number-input {
  width: 80px;
  padding: 12px;
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  font-size: 15px;
  text-align: center;
  color: #2c3e50;
  appearance: textfield;
  -webkit-appearance: none;
  -moz-appearance: textfield;
}

.settings-number-input::-webkit-inner-spin-button,
.settings-number-input::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.settings-number-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: #e3f2fd;
  color: #2196f3;
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.settings-number-btn:hover {
  background: #bbdefb;
}

.settings-number-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.settings-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
}

.settings-toggle-label {
  font-size: 14px;
  color: #2c3e50;
}

.settings-image-upload {
  border: 2px dashed #e0e0e0;
  border-radius: 12px;
  padding: 32px;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}

.settings-image-upload:hover {
  border-color: #3498db;
  background: #f8f9fa;
}

.settings-image-upload-icon {
  font-size: 48px;
  color: #bdc3c7;
  margin-bottom: 12px;
}

.settings-image-upload-text {
  font-size: 14px;
  color: #2c3e50;
  margin-bottom: 4px;
}

.settings-image-upload-hint {
  font-size: 12px;
  color: #95a5a6;
}

.settings-image-preview {
  position: relative;
  margin-top: 12px;
}

.settings-image-preview img {
  display: block;
  max-width: 100%;
  max-height: 200px;
  border-radius: 8px;
  margin: 0 auto;
}

.settings-image-remove {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: rgba(0, 0, 0, 0.6);
  color: white;
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.settings-modal-footer {
  padding: 16px 24px;
  border-top: 1px solid #e0e0e0;
  display: flex;
  justify-content: center;
  position: sticky;
  bottom: 0;
  background: white;
  border-radius: 0 0 16px 16px;
}

.settings-save-btn {
  width: 100%;
  padding: 14px;
  border: none;
  border-radius: 12px;
  background: #27ae60;
  color: white;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}

.settings-save-btn:hover {
  background: #229954;
}

/* Preloader for wheel editor */
.wheel-editor-loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.95);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 10000;
}

.wheel-editor-spinner {
  width: 50px;
  height: 50px;
  border: 4px solid #e0e0e0;
  border-top: 4px solid #27ae60;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

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

.wheel-editor-loader-text {
  margin-top: 20px;
  font-size: 16px;
  color: #666;
  font-weight: 500;
}
