/* === CABINET PROFILE CUSTOMIZATION CONTROLS === */
.cab-profile-custom { margin-bottom: 24px; }

.cab-profile-custom__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(220px, 0.7fr);
  gap: 16px;
  align-items: center;
  margin-top: 16px;
}

.cab-theme-select {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.cab-theme-option {
  width: 28px;
  height: 28px;
  min-height: 28px;
  min-width: 28px;
  max-width: 28px;
  max-height: 28px;
  padding: 0 !important;
  border-radius: 50%;
  aspect-ratio: 1 / 1;
  flex: 0 0 28px;
  border: 2px solid transparent;
  font-size: 0;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
  flex-shrink: 0;
  box-sizing: border-box;
  line-height: 0;
  overflow: hidden;
}

.cab-theme-option:hover {
  transform: scale(1.08);
}

#cabThemeSelect .cab-theme-option.is-active {
  box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--primary) !important;
}

#cabThemeSelect .cab-theme-option.is-active.cab-theme-option--purple { background: #6c47ff !important; border-color: #6c47ff !important; }
#cabThemeSelect .cab-theme-option.is-active.cab-theme-option--pink { background: #ec4899 !important; border-color: #ec4899 !important; }
#cabThemeSelect .cab-theme-option.is-active.cab-theme-option--light { background: #f1f5f9 !important; border-color: #94a3b8 !important; }
#cabThemeSelect .cab-theme-option.is-active.cab-theme-option--dark { background: #181926 !important; border-color: #181926 !important; }

.cab-theme-option--purple { background: #6c47ff !important; border-color: #6c47ff !important; }
.cab-theme-option--pink { background: #ec4899 !important; border-color: #ec4899 !important; }
.cab-theme-option--light { background: #f1f5f9 !important; border-color: #94a3b8 !important; }
.cab-theme-option--dark { background: #181926 !important; border-color: #181926 !important; }

.cab-avatar-upload {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.cab-avatar-upload__input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.cab-avatar-upload__btn,
.cab-avatar-upload__remove {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
}

.cab-avatar-upload__btn {
  background: var(--primary);
  color: #fff;
}

.cab-avatar-upload__remove {
  border: 1px solid var(--border-color);
  color: var(--text-muted);
}

@media (max-width: 760px) {
  .cab-profile-custom__grid { grid-template-columns: 1fr; }
  .cab-avatar-upload { justify-content: flex-start; }
  .cab-theme-option {
    width: 26px !important;
    height: 26px !important;
    min-width: 26px !important;
    min-height: 26px !important;
    max-width: 26px !important;
    max-height: 26px !important;
    flex: 0 0 26px;
  }
}
