/* ====================================
   Settings Page - User Settings
   ==================================== */

.settings-page .page-wrapper {
  max-width: 1100px;
  margin: 0 auto;
  padding: 3rem 14px 4rem;
  box-sizing: border-box;
}

.settings-page .content-wrapper {
  width: 100%;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* Billing page - bredere card zoals andere admin pagina's */
body:not(.settings-page) .content-wrapper {
  max-width: 1400px;
  padding: 0;
}

/* Settings cards grid - desktop naast elkaar, mobiel onder elkaar */
.settings-cards-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

@media (max-width: 768px) {
  .settings-cards-grid {
    grid-template-columns: 1fr;
  }
}

.settings-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  align-items: stretch;
}

.settings-grid--single {
  grid-template-columns: repeat(2, minmax(320px, 1fr));
}

.settings-card {
  background: var(--theme-card, #ffffff);
  border-radius: 1.2rem;
  padding: 1.5rem 1.75rem;
  box-shadow: 0 4px 16px rgba(24,34,69,0.07);
  display: flex;
  flex-direction: column;
}

.settings-card-title {
  font-family: 'Fira Sans', sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--theme-gray-800, #1f2937);
  margin: 0 0 1.5rem 0;
}

.settings-card-subtitle {
  font-family: 'Fira Sans', sans-serif;
  font-size: 0.9rem;
  font-weight: 400;
  color: var(--theme-text-muted, var(--theme-gray-500, #6b7280));
  line-height: 1.5;
  margin: 0 0 1.25rem 0;
}

.settings-card-subtitle-email {
  font-weight: 600;
  color: var(--theme-text-secondary, var(--theme-gray-800, #1f2937));
}

.settings-card:has(.settings-card-subtitle) .settings-card-title {
  margin-bottom: 0.5rem;
}

.settings-card:has(.settings-card-divider):not(:has(.settings-card-subtitle)) .settings-card-title {
  margin-bottom: 0.75rem;
}

.settings-card-divider {
  height: 1px;
  background: var(--theme-border, var(--theme-gray-100, #f3f4f6));
  margin: 0 0 1.25rem 0;
}

.settings-card:has(.notifications-toggles) .settings-card-divider {
  margin-bottom: 2.25rem;
}

.settings-card--max-800 {
  width: 100%;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  box-sizing: border-box;
}

.settings-card--max-600 {
  width: 100%;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  box-sizing: border-box;
}

.location-card:has(.settings-card-divider) .card-title {
  margin-bottom: 0.75rem;
}

/* Meldingenpagina: toggle-rijen met titel + subtekst + divider tussen rijen */
.notifications-toggles {
  display: flex;
  flex-direction: column;
}

.notifications-toggle-row {
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--theme-border, var(--theme-gray-100, #f3f4f6));
}

.notifications-toggle-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.notifications-toggle-row:first-child {
  padding-top: 0;
}

.notifications-toggle-row-label {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  cursor: pointer;
  width: 100%;
  text-align: left;
}

.notifications-toggle-copy {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  min-width: 0;
  flex: 1;
}

.notifications-toggle-title {
  font-family: 'Fira Sans', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--theme-gray-800, #1f2937);
  line-height: 1.35;
}

.notifications-toggle-subtext {
  font-family: 'Fira Sans', sans-serif;
  font-size: 0.875rem;
  font-weight: 400;
  color: var(--theme-text-muted, var(--theme-gray-500, #6b7280));
  line-height: 1.45;
}

.notifications-toggle-control {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
  padding-top: 0.125rem;
}

.notifications-toggle-control .settings-toggle {
  position: relative;
  width: 44px;
  height: 24px;
  appearance: none;
  background: #d1d5db;
  border-radius: 12px;
  cursor: pointer;
  transition: background 0.2s;
  flex-shrink: 0;
}

.notifications-toggle-control .settings-toggle:checked {
  background: #2b2b2b;
}

.notifications-toggle-control .settings-toggle::before {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #ffffff;
  top: 2px;
  left: 2px;
  transition: transform 0.2s;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.notifications-toggle-control .settings-toggle:checked::before {
  transform: translateX(20px);
}

.settings-description {
  margin: 0 0 20px;
  color: var(--theme-gray-500, #6b7280);
  font-size: 0.95rem;
  line-height: 1.5;
}

.settings-info {
  margin: 0 0 1.5rem 0;
}

.settings-info p {
  margin: 0 0 0.75rem 0;
  color: var(--theme-gray-500, #6b7280);
  font-size: 0.95rem;
  line-height: 1.5;
}

.settings-info p:last-child {
  margin-bottom: 0;
}

/* Form styling */
.settings-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.settings-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

@media (max-width: 640px) {
  .settings-form-row {
    grid-template-columns: 1fr;
  }
}

.settings-form-field {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 20px;
}

/* Zorg dat gap correct werkt - label heeft margin-bottom voor spacing naar input */
.settings-form-field > label:not([for="change-password-toggle"]):not(.settings-toggle-label) {
  margin-bottom: 0.25rem;
}

/* Forceer correcte spacing voor billing email field - identiek aan andere velden */
#billing-email-field {
  gap: 0 !important;
}

#billing-email-field > label {
  margin-bottom: 0.25rem !important;
}

#billing-email-field .form-input-wrapper {
  margin-top: 0.75rem !important;
  margin-bottom: 0 !important;
}

#billing-email-field .settings-hint {
  margin-top: 0.5rem !important;
  margin-bottom: 0 !important;
}

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

/* Geen margin-bottom voor field direct voor actions */
.settings-form-field + .settings-form-actions {
  margin-top: 0;
}

.settings-form-field:has(+ .settings-form-actions) {
  margin-bottom: 0 !important;
}

/* Hints binnen settings-form-field krijgen geen extra margin-top omdat gap al spacing verzorgt */
.settings-form-field .settings-hint {
  margin-top: 0;
}

/* Extra spacing tussen hint en actions voor betere visuele scheiding */
.settings-form-field:has(+ .settings-form-actions) .settings-hint {
  margin-bottom: 1rem;
}

/* Password helper heeft extra spacing nodig omdat het niet binnen een field met gap staat */
#password-fields .settings-hint {
  margin-top: 0.5rem;
}

.settings-form-field > label:not([for="change-password-toggle"]) {
  font-family: 'Fira Sans', sans-serif;
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--theme-form-label-text, var(--theme-text-secondary, #262626));
  margin-bottom: 0.25rem;
}

/* Gebruik form-input styling uit users.css - settings-input is legacy */

/* Zorg dat form-input styling werkt op settings pagina */
.settings-page .form-input-wrapper,
#account-form .form-input-wrapper {
  position: relative;
  width: 100%;
}

.settings-page .form-input-icon,
#account-form .form-input-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  color: var(--theme-form-icon-color, var(--theme-text-muted, #9ca3af));
  pointer-events: none;
  z-index: 1;
}

.settings-page .form-input,
#account-form .form-input {
  width: 100%;
  padding: 10px 16px;
  font-size: 0.875rem;
  font-family: 'Fira Sans', sans-serif;
  background: var(--theme-form-input-bg, var(--theme-gray-50, #f9fafb));
  border: 1.5px solid var(--theme-form-input-border, var(--theme-gray-100, #f3f4f6));
  border-radius: 8px;
  color: var(--theme-form-input-text, var(--theme-text-secondary, #686868));
  transition: border-color 0.2s, box-shadow 0.2s;
  box-sizing: border-box;
  height: 42px;
  line-height: 1.5;
}

/* Override invalid state styling - only show red after form submission */
.settings-page .form-input:invalid:not(.error),
#account-form .form-input:invalid:not(.error) {
  border-color: var(--theme-gray-100, #f3f4f6) !important;
}

.settings-page .form-input.has-icon,
#account-form .form-input.has-icon {
  padding-left: 42px;
}

/* Password toggle (eye) rechts in veld */
.form-input-wrapper--password-toggle {
  position: relative;
}

.form-input-wrapper--password-toggle .form-input {
  padding-right: 40px;
}

.form-input-password-toggle {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  padding: 0;
  border: none;
  background: transparent;
  color: var(--theme-form-icon-color, var(--theme-text-muted, #9ca3af));
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  transition: color 0.2s, background 0.15s;
}

.form-input-password-toggle:hover {
  color: var(--theme-text-secondary, #525252);
  background: var(--theme-gray-100, #f3f4f6);
}

.form-input-password-toggle .icon-eye,
.form-input-password-toggle .icon-eye-off {
  position: absolute;
  transition: opacity 0.15s;
}

.form-input-password-toggle .icon-eye-off {
  display: none;
}

.form-input-password-toggle.is-visible .icon-eye {
  display: none;
}

.form-input-password-toggle.is-visible .icon-eye-off {
  display: block;
}

/* Password strength progress bar */
.password-strength {
  margin-top: 0.5rem;
  width: 100%;
}

.password-strength-track {
  width: 100%;
  height: 4px;
  background: var(--theme-gray-200, #e5e7eb);
  border-radius: 999px;
  overflow: hidden;
}

.password-strength-fill {
  height: 100%;
  width: 0%;
  border-radius: 999px;
  transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1), background-color 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.password-strength-fill[data-phase="0"] {
  width: 0%;
  background-color: var(--theme-gray-300, #d1d5db);
}

.password-strength-fill[data-phase="1"] {
  width: 33%;
  background-color: #ef4444;
}

.password-strength-fill[data-phase="2"] {
  width: 66%;
  background-color: #f97316;
}

.password-strength-fill[data-phase="3"] {
  width: 100%;
  background-color: #22c55e;
}

.password-strength-label {
  display: block;
  margin-top: 0.375rem;
  font-size: 0.8rem;
  font-family: 'Fira Sans', sans-serif;
  color: var(--theme-text-muted, var(--theme-gray-500, #6b7280));
  transition: color 0.3s ease;
  min-height: 1.2em;
}

.password-strength-label:empty {
  display: block;
}

.password-strength[data-phase="1"] .password-strength-label:not(:empty) {
  color: #ef4444;
}

.password-strength[data-phase="2"] .password-strength-label:not(:empty) {
  color: #f97316;
}

.password-strength[data-phase="3"] .password-strength-label:not(:empty) {
  color: #22c55e;
}

.settings-page .form-input:focus,
#account-form .form-input:focus {
  outline: none;
  border-width: 1.5px !important;
  border-color: var(--theme-accent, #c9c6e9);
  box-shadow: 0 0 0 1.5px var(--accent-shadow);
}

/* Zorg dat ical-input binnen input-with-copy geen border heeft - alleen wrapper heeft border */
.settings-page .input-with-copy .ical-input:focus,
#account-form .input-with-copy .ical-input:focus,
.settings-page .input-with-copy .form-input:focus,
#account-form .input-with-copy .form-input:focus {
  border: none !important;
  border-width: 0 !important;
  box-shadow: none !important;
  outline: none !important;
}

.settings-page .form-input.error,
#account-form .form-input.error {
  border-color: var(--theme-form-error-border, #ef4444);
}

/* Don't show invalid state before form submission - use normal border */
.settings-page .form-input:invalid:not(.error),
#account-form .form-input:invalid:not(.error) {
  border-color: var(--theme-gray-100, #f3f4f6) !important;
}

/* Only show invalid state when form has been submitted */
.settings-page .form-submitted .form-input:invalid:not(.error),
#account-form.form-submitted .form-input:invalid:not(.error) {
  border-color: var(--theme-form-error-border, #ef4444) !important;
}

/* Error class always shows red border (for programmatic errors) */
.settings-page .form-input.error,
#account-form .form-input.error {
  border-color: var(--theme-form-error-border, #ef4444) !important;
}

/* Focus state should use accent color, not red (unless form submitted or has error class) */
.settings-page .form-input:invalid:focus:not(.error),
#account-form .form-input:invalid:focus:not(.error) {
  border-color: var(--theme-accent, #c9c6e9) !important;
}

/* After form submission, invalid fields show red on focus */
.settings-page .form-submitted .form-input:invalid:focus:not(.error),
#account-form.form-submitted .form-input:invalid:focus:not(.error) {
  border-color: var(--theme-form-error-border, #ef4444) !important;
}

.settings-page .form-input.error:focus,
#account-form .form-input.error:focus,
.settings-page .form-input:invalid:focus,
#account-form .form-input:invalid:focus {
  border-color: var(--theme-form-error-border, #ef4444);
  box-shadow: 0 0 0 1.5px rgba(239, 68, 68, 0.3);
}

/* Zorg dat native HTML5 validatie styling consistent is */
.settings-page .form-input:invalid:not(:focus):not(:placeholder-shown),
#account-form .form-input:invalid:not(:focus):not(:placeholder-shown) {
  border-color: var(--theme-form-error-border, #ef4444);
}

.settings-page .form-input::placeholder,
#account-form .form-input::placeholder {
  color: var(--theme-form-placeholder-color, var(--theme-text-muted, #b9bfcb));
  opacity: 1;
}

.settings-page .form-input::-webkit-input-placeholder,
#account-form .form-input::-webkit-input-placeholder {
  color: var(--theme-form-placeholder-color, var(--theme-text-muted, #b9bfcb));
}

.settings-page .form-input::-moz-placeholder,
#account-form .form-input::-moz-placeholder {
  color: var(--theme-form-placeholder-color, var(--theme-text-muted, #b9bfcb));
  opacity: 1;
}

/* Phone input wrapper - geïntegreerd component */
.settings-page .phone-input-wrapper,
#account-form .phone-input-wrapper,
.user-modal .phone-input-wrapper,
.register-wizard .phone-input-wrapper,
.wizard-form .phone-input-wrapper,
.admin-detail-item .phone-input-wrapper {
  display: flex;
  width: 100%;
  background: var(--theme-gray-50, #f9fafb);
  border: 1.5px solid var(--theme-gray-100, #f3f4f6);
  border-radius: 8px;
  overflow: hidden;
  transition: border-color 0.2s, box-shadow 0.2s;
  height: 42px;
  align-items: stretch;
  position: relative;
}

/* Hide phone-input-wrapper when it has display: none inline style (view mode) */
.admin-detail-item .phone-input-wrapper[style*="display: none"] {
  display: none !important;
}

/* Show phone-input-wrapper when in edit mode */
.admin-detail-item .edit-mode.phone-input-wrapper[style*="display: block"],
.admin-detail-item .edit-mode.phone-input-wrapper:not([style*="display: none"]) {
  display: flex !important;
}

.settings-page .phone-input-wrapper:focus-within,
#account-form .phone-input-wrapper:focus-within,
.user-modal .phone-input-wrapper:focus-within,
.register-wizard .phone-input-wrapper:focus-within,
.wizard-form .phone-input-wrapper:focus-within,
.admin-detail-item .phone-input-wrapper:focus-within {
  border-color: var(--theme-accent, #c9c6e9);
  box-shadow: 0 0 0 1.5px var(--accent-shadow);
}

/* Zorg dat beide delen dezelfde achtergrond hebben bij focus */
.settings-page .phone-input-wrapper:focus-within .phone-country-code,
#account-form .phone-input-wrapper:focus-within .phone-country-code,
.user-modal .phone-input-wrapper:focus-within .phone-country-code,
.register-wizard .phone-input-wrapper:focus-within .phone-country-code,
.wizard-form .phone-input-wrapper:focus-within .phone-country-code,
.admin-detail-item .phone-input-wrapper:focus-within .phone-country-code,
.settings-page .phone-input-wrapper:focus-within .form-input-wrapper,
#account-form .phone-input-wrapper:focus-within .form-input-wrapper,
.user-modal .phone-input-wrapper:focus-within .form-input-wrapper,
.register-wizard .phone-input-wrapper:focus-within .form-input-wrapper,
.wizard-form .phone-input-wrapper:focus-within .form-input-wrapper,
.admin-detail-item .phone-input-wrapper:focus-within .form-input-wrapper {
  background: var(--theme-gray-50, #f9fafb);
}

.settings-page .phone-input-wrapper .phone-country-code,
#account-form .phone-input-wrapper .phone-country-code,
.user-modal .phone-input-wrapper .phone-country-code,
.register-wizard .phone-input-wrapper .phone-country-code,
.wizard-form .phone-input-wrapper .phone-country-code,
.admin-detail-item .phone-input-wrapper .phone-country-code {
  flex-shrink: 0;
  width: 100px;
  min-width: 100px;
  max-width: 100px;
  position: relative;
  border-right: 1.5px solid var(--theme-gray-100, #f3f4f6);
  background: var(--theme-gray-50, #f9fafb);
  display: flex;
  align-items: center;
  height: 100%;
  overflow: hidden;
  z-index: 1;
}

/* Verberg de scheidingsborder bij focus door de border volledig te verwijderen */
.settings-page .phone-input-wrapper:focus-within .phone-country-code,
#account-form .phone-input-wrapper:focus-within .phone-country-code,
.user-modal .phone-input-wrapper:focus-within .phone-country-code,
.register-wizard .phone-input-wrapper:focus-within .phone-country-code,
.wizard-form .phone-input-wrapper:focus-within .phone-country-code,
.admin-detail-item .phone-input-wrapper:focus-within .phone-country-code {
  border-right-width: 0 !important;
  border-right-style: none !important;
}

.settings-page .phone-input-wrapper .form-input-wrapper,
#account-form .phone-input-wrapper .form-input-wrapper,
.user-modal .phone-input-wrapper .form-input-wrapper,
.register-wizard .phone-input-wrapper .form-input-wrapper,
.wizard-form .phone-input-wrapper .form-input-wrapper,
.admin-detail-item .phone-input-wrapper .form-input-wrapper {
  flex: 1;
  border: none;
  background: transparent;
}

.settings-page .phone-input-wrapper .form-input-wrapper .form-input,
#account-form .phone-input-wrapper .form-input-wrapper .form-input,
.user-modal .phone-input-wrapper .form-input-wrapper .form-input,
.register-wizard .phone-input-wrapper .form-input-wrapper .form-input,
.wizard-form .phone-input-wrapper .form-input-wrapper .form-input,
.admin-detail-item .phone-input-wrapper .form-input-wrapper .form-input {
  border: none;
  background: transparent;
  border-radius: 0;
  padding: 0 16px;
  height: 42px;
  line-height: 42px;
  box-sizing: border-box;
  position: relative;
  z-index: 10;
  pointer-events: auto;
}

.settings-page .phone-input-wrapper .form-input-wrapper .form-input:focus,
#account-form .phone-input-wrapper .form-input-wrapper .form-input:focus,
.user-modal .phone-input-wrapper .form-input-wrapper .form-input:focus,
.register-wizard .phone-input-wrapper .form-input-wrapper .form-input:focus,
.wizard-form .phone-input-wrapper .form-input-wrapper .form-input:focus,
.admin-detail-item .phone-input-wrapper .form-input-wrapper .form-input:focus {
  box-shadow: none;
}

/* Country select - verberg native select, toon custom display */
.settings-page .phone-country-select,
#account-form .phone-country-select,
.user-modal .phone-country-select,
.register-wizard .phone-country-select,
.wizard-form .phone-country-select,
.admin-detail-item .phone-country-select {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
  z-index: 2;
  font-size: 0;
  pointer-events: auto;
  margin: 0;
  padding: 0;
}

/* Ensure phone-country-select only covers its container, not the input */
.settings-page .phone-country-code,
#account-form .phone-country-code,
.user-modal .phone-country-code,
.register-wizard .phone-country-code,
.wizard-form .phone-country-code,
.admin-detail-item .phone-country-code {
  position: relative;
  overflow: hidden;
  z-index: 1;
  isolation: isolate;
}

/* Input wrapper should be above country code */
.settings-page .phone-input-wrapper .form-input-wrapper,
#account-form .phone-input-wrapper .form-input-wrapper,
.user-modal .phone-input-wrapper .form-input-wrapper,
.register-wizard .phone-input-wrapper .form-input-wrapper,
.wizard-form .phone-input-wrapper .form-input-wrapper,
.admin-detail-item .phone-input-wrapper .form-input-wrapper {
  position: relative;
  z-index: 10;
  isolation: isolate;
  pointer-events: auto;
}

/* Custom display voor country select */
.settings-page .phone-country-display,
#account-form .phone-country-display,
.user-modal .phone-country-display,
.register-wizard .phone-country-display,
.wizard-form .phone-country-display,
.admin-detail-item .phone-country-display {
  position: absolute;
  top: 50%;
  left: 14px;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  gap: 6px;
  pointer-events: none;
  z-index: 1;
  font-size: 0.95rem;
  font-family: 'Fira Sans', sans-serif;
  color: var(--theme-gray-500, #6b7280);
}

.settings-page .phone-country-flag,
#account-form .phone-country-flag,
.user-modal .phone-country-flag,
.register-wizard .phone-country-flag,
.wizard-form .phone-country-flag,
.admin-detail-item .phone-country-flag {
  width: 20px;
  height: 20px;
  min-width: 20px;
  display: inline-block;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* Flag-icons library styling - zorg dat vlaggetjes correct worden weergegeven */
.settings-page .phone-country-flag.fi,
#account-form .phone-country-flag.fi,
.user-modal .phone-country-flag.fi,
.register-wizard .phone-country-flag.fi,
.wizard-form .phone-country-flag.fi {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.settings-page .phone-country-flag.fis,
#account-form .phone-country-flag.fis,
.user-modal .phone-country-flag.fis,
.register-wizard .phone-country-flag.fis,
.wizard-form .phone-country-flag.fis {
  background-size: cover;
}

.settings-page .phone-country-code-text,
#account-form .phone-country-code-text,
.user-modal .phone-country-code-text,
.register-wizard .phone-country-code-text,
.wizard-form .phone-country-code-text,
.admin-detail-item .phone-country-code-text {
  font-weight: 500;
  color: var(--theme-gray-600, #4b5563);
}

/* Select icon aanpassen voor phone country */
.settings-page .phone-country-code .form-select-wrapper,
#account-form .phone-country-code .form-select-wrapper,
.user-modal .phone-country-code .form-select-wrapper,
.register-wizard .phone-country-code .form-select-wrapper,
.wizard-form .phone-country-code .form-select-wrapper,
.admin-detail-item .phone-country-code .form-select-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
}

.settings-page .phone-country-code .form-select-icon,
#account-form .phone-country-code .form-select-icon,
.user-modal .phone-country-code .form-select-icon,
.register-wizard .phone-country-code .form-select-icon,
.wizard-form .phone-country-code .form-select-icon,
.admin-detail-item .phone-country-code .form-select-icon {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  color: var(--theme-gray-400, #9ca3af);
  pointer-events: none;
  z-index: 1;
  margin: 0;
  padding: 0;
  display: block;
}

/* Option styling in dropdown */
#account-form .phone-country-select option {
  padding: 8px 12px;
  font-size: 0.95rem;
}

#account-form .iti {
  width: 100%;
  position: relative;
}

#account-form .iti__flag-container {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  z-index: 2;
  pointer-events: none;
}

#account-form .iti__selected-flag {
  padding: 0 6px 0 14px;
  background: transparent;
  border: none;
  height: 100%;
  display: flex;
  align-items: center;
  min-width: 55px;
  pointer-events: auto;
}

#account-form .iti__selected-flag:hover {
  background: transparent;
}

#account-form .iti__arrow {
  border-top-color: #9ca3af;
  margin-left: 4px;
  border-width: 4px 3px 0 3px;
}

#account-form .iti__country-list {
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(24, 34, 69, 0.12);
  border: 1.5px solid var(--theme-gray-100, #f3f4f6);
  margin-top: 4px;
  max-height: 300px;
  overflow-y: auto;
  background: var(--theme-gray-50, #f9fafb);
  padding: 0;
}

#account-form .iti__country-list.iti__hide {
  display: none;
}

#account-form .iti__country {
  padding: 10px 16px;
  font-family: 'Fira Sans', sans-serif;
  font-size: 0.95rem;
  color: var(--theme-gray-500, #6b7280);
  transition: background-color 0.2s;
}

#account-form .iti__country:hover,
#account-form .iti__country.iti__highlight {
  background: var(--theme-gray-100, #f3f4f6);
}

#account-form .iti__country.iti__active {
  background: var(--theme-gray-100, #f3f4f6);
}

#account-form .iti__search-input {
  padding: 10px 16px;
  font-family: 'Fira Sans', sans-serif;
  font-size: 0.95rem;
  border: none;
  border-bottom: 1.5px solid var(--theme-gray-100, #f3f4f6);
  border-radius: 8px 8px 0 0;
  background: var(--theme-gray-50, #f9fafb);
  color: var(--theme-gray-500, #6b7280);
  width: 100%;
  box-sizing: border-box;
}

#account-form .iti__search-input:focus {
  outline: none;
  border-bottom-color: var(--theme-accent, #c9c6e9);
  box-shadow: 0 2px 0 0 rgba(201, 198, 233, 0.3);
}

#account-form .iti__search-input::placeholder {
  color: var(--placeholder-color, #b9bfcb);
}

#account-form .iti__dial-code {
  color: var(--theme-gray-500, #6b7280);
  font-family: 'Fira Sans', sans-serif;
  font-size: 0.95rem;
}

#account-form .form-input-wrapper.has-phone-input {
  padding-left: 0;
}

#account-form .form-input-wrapper.has-phone-input .form-input-icon {
  display: none;
}

#account-form .form-input-wrapper.has-phone-input .form-input.has-icon {
  padding-left: 80px;
}

/* Zorg dat het input veld dezelfde styling heeft als andere inputs */
#account-form .iti input.phone-input {
  padding-left: 120px !important;
  border-radius: 8px;
  background: var(--theme-gray-50, #f9fafb);
  border: 1.5px solid var(--theme-gray-100, #f3f4f6);
  font-family: 'Fira Sans', sans-serif;
  font-size: 0.95rem;
  color: var(--theme-gray-500, #6b7280);
  width: 100%;
  box-sizing: border-box;
  padding-right: 16px;
}

#account-form .iti__selected-dial-code {
  color: var(--theme-gray-500, #6b7280);
  font-family: 'Fira Sans', sans-serif;
  font-size: 0.95rem;
  margin-left: 4px;
  display: inline-block;
}

#account-form .iti input.phone-input:focus {
  outline: none;
  border-color: var(--theme-accent, #c9c6e9);
  box-shadow: 0 0 0 1.5px rgba(201, 198, 233, 0.3);
}

#account-form .iti:focus-within .iti__flag-container,
#account-form .iti:focus-within .iti__selected-dial-code {
  border-color: var(--theme-accent, #c9c6e9);
}

#account-form .iti:focus-within {
  box-shadow: 0 0 0 1.5px rgba(201, 198, 233, 0.3);
  border-radius: 8px;
}

#account-form .iti__dial-code {
  margin-right: 4px;
  color: var(--theme-gray-500, #6b7280);
  font-family: 'Fira Sans', sans-serif;
  font-size: 0.95rem;
}

.settings-select-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.settings-select {
  width: 100%;
  padding: 10px 42px 10px 16px;
  font-size: 0.875rem !important;
  font-family: 'Fira Sans', sans-serif;
  background: var(--theme-form-input-bg, var(--theme-gray-50, #f9fafb));
  border: 1.5px solid var(--theme-form-input-border, var(--theme-gray-100, #f3f4f6));
  border-radius: 8px;
  color: var(--theme-form-input-text, var(--theme-text-secondary, #686868));
  transition: border-color 0.2s, box-shadow 0.2s;
  box-sizing: border-box;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  cursor: pointer;
  height: 42px;
  line-height: 1.5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23686868' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
}

.settings-select:focus {
  outline: none;
  border-width: 1.5px !important;
  border-color: var(--accent-color);
  box-shadow: 0 0 0 1.5px var(--accent-shadow);
}

.settings-select-icon {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  color: var(--theme-form-icon-color, var(--theme-text-muted, #9ca3af));
  transition: color 0.2s;
}

.settings-hint,
.form-hint {
  display: block;
  font-size: 0.85rem;
  font-family: 'Fira Sans', sans-serif;
  color: var(--theme-form-hint-text, var(--theme-text-muted, #9ca3af));
  margin-top: 0.5rem;
}

/* Checkbox styling - custom zwarte checkbox */
.settings-checkbox {
  position: relative;
  width: 20px;
  height: 20px;
  margin-right: 0.75rem;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  border: 2px solid #d1d5db;
  border-radius: 4px;
  background: #ffffff;
  flex-shrink: 0;
  transition: background-color 0.2s, border-color 0.2s;
}

.settings-checkbox:hover,
.settings-checkbox:active {
  border-color: #d1d5db;
}

.settings-checkbox:checked {
  background: #2b2b2b;
  border-color: #2b2b2b;
}

.settings-checkbox:checked:hover,
.settings-checkbox:checked:active {
  border-color: #2b2b2b;
}

.settings-checkbox:checked::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  width: 5px;
  height: 9px;
  margin-left: -3px;
  margin-top: -5px;
  border: solid #ffffff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
  box-sizing: border-box;
}

.settings-checkbox:focus {
  outline: none;
  box-shadow: none;
}

.settings-form-field label[for="change-password-toggle"] {
  display: flex;
  align-items: center;
  cursor: pointer;
  font-weight: 400;
  font-size: 0.875rem;
  color: #374151;
}

/* Toggle switch styling */
.settings-toggle-label {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  cursor: pointer;
  user-select: none;
}

.settings-toggle {
  position: relative;
  width: 44px;
  height: 24px;
  appearance: none;
  background: #d1d5db;
  border-radius: 12px;
  cursor: pointer;
  transition: background 0.2s;
  flex-shrink: 0;
}

.settings-toggle:checked {
  background: #2b2b2b;
}

.settings-toggle::before {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #ffffff;
  top: 2px;
  left: 2px;
  transition: transform 0.2s;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.settings-toggle:checked::before {
  transform: translateX(20px);
}

.settings-toggle-slider {
  display: none; /* We gebruiken ::before voor de slider */
}

.settings-toggle-text {
  font-size: 0.95rem;
  font-family: 'Fira Sans', sans-serif;
  color: #686868;
  font-weight: 400;
  flex: 1;
  line-height: 1.5;
}

/* Avatar color display */
.avatar-color-display {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem;
  background: #f9fafb;
  border-radius: 8px;
  border: 2px solid #eceef4;
}

.avatar-color-circle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  flex-shrink: 0;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 16px;
  color: #444572;
}

.avatar-color-text {
  font-size: 0.875rem;
  color: #374151;
  font-weight: 500;
}

/* Avatar colors - gebruik dezelfde kleuren als badge-cleaner */
:root {
  --cleaner-color-1: #c9c6ec;
  --cleaner-color-2: #b6e7c3;
  --cleaner-color-3: #ffe4b8;
  --cleaner-color-4: #b8eaf5;
  --cleaner-color-5: #f7c6de;
  --cleaner-color-6: #f5e6b8;
  --cleaner-color-7: #d1ede1;
  --cleaner-color-8: #f7cec6;
  --cleaner-color-9: #d0e5f7;
  --cleaner-color-10: #e6d6f5;
  --cleaner-color-11: #ffd4e5;
  --cleaner-color-12: #c9e4de;
  --cleaner-color-13: #fff3cd;
  --cleaner-color-14: #d4e4ff;
  --cleaner-color-15: #f5d4ff;
}

.avatar-color-circle[data-color="1"] { background: var(--cleaner-color-1); color: #444572; }
.avatar-color-circle[data-color="2"] { background: var(--cleaner-color-2); color: #317443; }
.avatar-color-circle[data-color="3"] { background: var(--cleaner-color-3); color: #865b18; }
.avatar-color-circle[data-color="4"] { background: var(--cleaner-color-4); color: #1d5a69; }
.avatar-color-circle[data-color="5"] { background: var(--cleaner-color-5); color: #933b59; }
.avatar-color-circle[data-color="6"] { background: var(--cleaner-color-6); color: #8b791e; }
.avatar-color-circle[data-color="7"] { background: var(--cleaner-color-7); color: #196b1d; }
.avatar-color-circle[data-color="8"] { background: var(--cleaner-color-8); color: #a05a1f; }
.avatar-color-circle[data-color="9"] { background: var(--cleaner-color-9); color: #22546e; }
.avatar-color-circle[data-color="10"] { background: var(--cleaner-color-10); color: #66398b; }
.avatar-color-circle[data-color="11"] { background: var(--cleaner-color-11); color: #8b2952; }
.avatar-color-circle[data-color="12"] { background: var(--cleaner-color-12); color: #1a5c4e; }
.avatar-color-circle[data-color="13"] { background: var(--cleaner-color-13); color: #856404; }
.avatar-color-circle[data-color="14"] { background: var(--cleaner-color-14); color: #1d4a8b; }
.avatar-color-circle[data-color="15"] { background: var(--cleaner-color-15); color: #6b2d8f; }

.settings-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 0.5rem;
}

/* Opslaan knop - zelfde styling als dashboard .btn-save */
/* .settings-form-actions removed - buttons are now direct children */

.settings-btn-primary {
  padding: 0.8rem 1.1rem;
  border: none;
  margin-top: 20px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.2;
  cursor: pointer;
  transition: filter 0.15s, box-shadow 0.15s;
  min-width: 120px;
  box-sizing: border-box;
  background: #2b2b2b;
  color: #fff;
  font-family: 'Fira Sans', sans-serif;
  width: auto;
  display: inline-block;
  align-self: flex-start;
}

.settings-btn-primary:hover {
  filter: brightness(1.04);
}

/* Opslaan knop volle breedte (meldingenpagina, security) */
.settings-form-actions--full .settings-btn-primary {
  width: 100%;
  min-width: auto;
  display: block;
  align-self: stretch;
}

.settings-btn-primary svg {
  width: 18px;
  height: 18px;
}

.settings-status {
  margin-top: 12px;
  font-size: 0.9rem;
  color: #6b7280;
  min-height: 1.2em;
}

@media (max-width: 768px) {
  /* Buttons krijgen volledige breedte op mobiel */
  .settings-btn-primary,
  #profile-save-btn,
  #notifications-save-btn {
    width: 100% !important;
    min-width: auto !important;
    align-self: stretch;
    display: block !important;
    box-sizing: border-box;
  }
  
  /* Zorg ervoor dat de form ook de volledige breedte gebruikt */
  .settings-form {
    width: 100%;
  }
}

@media (max-width: 640px) {
  .settings-card {
    padding: 1.25rem;
  }

  /* Button krijgt volledige breedte op mobiel */
  .settings-card .settings-btn-primary,
  .settings-card #profile-save-btn,
  .settings-card #notifications-save-btn {
    width: 100% !important;
    min-width: auto !important;
  }
}

/* ====================================
   Menu Divider
   ==================================== */
.menu-divider {
  height: 1px;
  background: var(--theme-menu-divider, #eceef4);
  margin: 0.5rem 0;
}

/* ====================================
   Menu Account Switcher
   Gestyled zoals context-switcher-btn in kalender
   ==================================== */
.menu-account-switcher {
  position: relative;
  margin-bottom: 0.5rem;
}

.menu-account-switcher-btn {
  display: flex !important;
  align-items: center !important;
  gap: 0.75rem !important;
  padding: 0.625rem 1rem !important;
  border-radius: 999px !important;
  background: #f9fafb !important;
  color: #1f2937 !important;
  text-decoration: none !important;
  font-size: 0.875rem !important;
  font-family: 'Fira Sans', 'Inter', sans-serif !important;
  font-weight: 500 !important;
  transition: all 200ms cubic-bezier(0.4, 0, 0.2, 1) !important;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05) !important;
  border: 1px solid #e5e7eb !important;
  cursor: pointer !important;
  width: 100% !important;
  min-height: 40px !important;
  text-align: left !important;
  justify-content: flex-start !important;
  position: relative !important;
}

.menu-account-switcher-btn:hover {
  background: #ffffff;
  border-color: #d1d5db;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
}

.menu-account-switcher-btn:focus {
  outline: none;
  border-color: var(--accent-color, #c9c6e9);
  box-shadow: 0 0 0 3px rgba(201, 198, 233, 0.1), 0 2px 4px rgba(0, 0, 0, 0.08);
  background: #ffffff;
}

.menu-account-switcher-btn:active {
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.menu-account-switcher-btn svg:first-child {
  color: #6b7280;
  stroke: currentColor;
  transition: all 200ms cubic-bezier(0.4, 0, 0.2, 1);
  flex-shrink: 0;
  width: 16px;
  height: 16px;
}

.menu-account-switcher-btn:hover svg:first-child,
.menu-account-switcher-btn:focus svg:first-child {
  color: #6b7280;
  stroke: currentColor;
}

.menu-account-switcher-label {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #1f2937;
  font-weight: 500;
}

.menu-account-switcher-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.625rem;
  border-radius: 6px;
  background: #e5e7eb;
  color: #4b5563;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: capitalize;
  flex-shrink: 0;
  letter-spacing: 0.025em;
}

.menu-account-switcher-btn svg:last-child {
  color: #6b7280;
  transition: transform 200ms cubic-bezier(0.4, 0, 0.2, 1), color 200ms;
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  margin-left: auto;
}

.menu-account-switcher-btn[aria-expanded="true"] svg:last-child {
  transform: rotate(180deg);
  color: #6b7280;
}

.menu-account-switcher-btn[aria-expanded="true"] {
  background: #ffffff;
  border-color: var(--accent-color, #c9c6e9);
  box-shadow: 0 0 0 3px rgba(201, 198, 233, 0.1), 0 2px 4px rgba(0, 0, 0, 0.08);
}

.menu-account-switcher-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: #ffffff;
  border: none;
  border-radius: 16px;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  z-index: 10001;
  max-height: 400px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  animation: dropdownFadeIn 200ms cubic-bezier(0.4, 0, 0.2, 1);
  padding: 8px;
}

@keyframes dropdownFadeIn {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.menu-account-switcher-search {
  position: relative;
  padding: 0 0 8px 0;
  background: #ffffff;
}

.menu-account-switcher-search-input {
  width: 100%;
  padding: 10px 16px 10px 40px;
  border: 2px solid #e5e7eb;
  border-radius: 999px;
  font-size: 0.875rem;
  font-family: 'Fira Sans', sans-serif;
  color: #1f2937;
  background: #f9fafb;
  transition: all 200ms cubic-bezier(0.4, 0, 0.2, 1);
  line-height: 1.5;
}

.menu-account-switcher-search-input::placeholder {
  color: #9ca3af;
  font-weight: 400;
}

.menu-account-switcher-search-input:focus {
  outline: none;
  border-width: 1.5px !important;
  border-color: var(--accent-color, #c9c6e9);
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(201, 198, 233, 0.1);
}

.menu-account-switcher-search-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(calc(-50% - 2px));
  color: #9ca3af;
  pointer-events: none;
  width: 16px;
  height: 16px;
  transition: color 200ms;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  vertical-align: middle;
  margin-top: -2px;
}

.menu-account-switcher-search-input:focus ~ .menu-account-switcher-search-icon {
  color: var(--accent-color, #c9c6e9);
}

.menu-account-switcher-options {
  max-height: 300px;
  overflow-y: auto;
  padding: 4px 0;
}

.menu-account-switcher-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.625rem 0.875rem;
  border-radius: 8px;
  background: none;
  border: none;
  color: #374151;
  font-size: 0.875rem;
  font-family: 'Fira Sans', sans-serif;
  font-weight: 500;
  cursor: pointer;
  transition: all 150ms cubic-bezier(0.4, 0, 0.2, 1);
  width: 100%;
  text-align: left;
  margin: 0;
  box-sizing: border-box;
  position: relative;
}

.menu-account-switcher-option:hover {
  background: #f3f4f6;
  color: #1f2937;
}

.menu-account-switcher-option:focus {
  outline: none;
  background: #f3f4f6;
  color: #1f2937;
}

.menu-account-switcher-option.active {
  background: #1f2937;
  color: #ffffff;
  font-weight: 600;
}

.menu-account-switcher-option.active:hover {
  background: #111827;
  color: #ffffff;
}

.menu-account-switcher-option-name {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.menu-account-switcher-option-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.625rem;
  border-radius: 6px;
  background: #e5e7eb;
  color: #4b5563;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: capitalize;
  flex-shrink: 0;
  letter-spacing: 0.025em;
  transition: all 150ms cubic-bezier(0.4, 0, 0.2, 1);
}

.menu-account-switcher-option.active .menu-account-switcher-option-badge {
  background: rgba(255, 255, 255, 0.25);
  color: #ffffff;
}

.menu-account-switcher-no-results {
  padding: 2rem 1rem;
  text-align: center;
  color: #6b7280;
  font-size: 0.875rem;
  font-weight: 500;
  background: #f9fafb;
}

/* Scrollbar styling voor dropdown */
.menu-account-switcher-options::-webkit-scrollbar {
  width: 6px;
}

.menu-account-switcher-options::-webkit-scrollbar-track {
  background: transparent;
}

.menu-account-switcher-options::-webkit-scrollbar-thumb {
  background: #d1d5db;
  border-radius: 3px;
}

.menu-account-switcher-options::-webkit-scrollbar-thumb:hover {
  background: #9ca3af;
}

/* ====================================
   Account Switcher - Dark Mode
   ==================================== */
[data-theme="dark"] .menu-account-switcher-btn {
  background: var(--theme-surface, #2a2a2a) !important;
  color: var(--theme-text-primary, #ffffff) !important;
  border-color: var(--theme-border, #3a3a3a) !important;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2) !important;
}

[data-theme="dark"] .menu-account-switcher-btn:hover {
  background: var(--theme-surface-hover, #3a3a3a);
  border-color: var(--theme-border-light, #4a4a4a);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .menu-account-switcher-btn:focus {
  border-color: var(--theme-accent, #9d97e3);
  box-shadow: 0 0 0 3px rgba(157, 151, 227, 0.2), 0 2px 4px rgba(0, 0, 0, 0.3);
  background: var(--theme-surface-hover, #3a3a3a);
}

[data-theme="dark"] .menu-account-switcher-btn svg:first-child {
  color: var(--theme-text-muted, #888888);
}

[data-theme="dark"] .menu-account-switcher-label {
  color: var(--theme-text-primary, #ffffff);
}

[data-theme="dark"] .menu-account-switcher-badge {
  background: var(--theme-border, #3a3a3a);
  color: var(--theme-text-secondary, #b3b3b3);
}

[data-theme="dark"] .menu-account-switcher-btn svg:last-child {
  color: var(--theme-text-muted, #888888);
}

[data-theme="dark"] .menu-account-switcher-btn[aria-expanded="true"] {
  background: var(--theme-surface-hover, #3a3a3a);
  border-color: var(--theme-accent, #9d97e3);
}

[data-theme="dark"] .menu-account-switcher-dropdown {
  background: var(--theme-card, #1e1e1e);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.4), 0 10px 10px -5px rgba(0, 0, 0, 0.2);
}

[data-theme="dark"] .menu-account-switcher-search {
  background: var(--theme-card, #1e1e1e);
}

[data-theme="dark"] .menu-account-switcher-search-input {
  border-color: var(--theme-border, #3a3a3a);
  color: var(--theme-text-primary, #ffffff);
  background: var(--theme-surface, #2a2a2a);
}

[data-theme="dark"] .menu-account-switcher-search-input::placeholder {
  color: var(--theme-text-muted, #666666);
}

[data-theme="dark"] .menu-account-switcher-search-input:focus {
  border-color: var(--theme-accent, #9d97e3);
  background: var(--theme-surface-hover, #3a3a3a);
  box-shadow: 0 0 0 3px rgba(157, 151, 227, 0.15);
}

[data-theme="dark"] .menu-account-switcher-search-icon {
  color: var(--theme-text-muted, #666666);
}

[data-theme="dark"] .menu-account-switcher-search-input:focus ~ .menu-account-switcher-search-icon {
  color: var(--theme-accent, #9d97e3);
}

[data-theme="dark"] .menu-account-switcher-option {
  color: var(--theme-text-secondary, #b3b3b3);
}

[data-theme="dark"] .menu-account-switcher-option:hover {
  background: var(--theme-surface, #2a2a2a);
  color: var(--theme-text-primary, #ffffff);
}

[data-theme="dark"] .menu-account-switcher-option:focus {
  background: var(--theme-surface, #2a2a2a);
  color: var(--theme-text-primary, #ffffff);
}

[data-theme="dark"] .menu-account-switcher-option.active {
  background: var(--theme-text-primary, #ffffff);
  color: var(--theme-background, #121212);
}

[data-theme="dark"] .menu-account-switcher-option.active:hover {
  background: var(--theme-text-secondary, #e0e0e0);
  color: var(--theme-background, #121212);
}

[data-theme="dark"] .menu-account-switcher-option-badge {
  background: var(--theme-border, #3a3a3a);
  color: var(--theme-text-muted, #888888);
}

[data-theme="dark"] .menu-account-switcher-option.active .menu-account-switcher-option-badge {
  background: rgba(0, 0, 0, 0.2);
  color: var(--theme-background, #121212);
}

[data-theme="dark"] .menu-account-switcher-no-results {
  color: var(--theme-text-muted, #888888);
  background: var(--theme-surface, #2a2a2a);
}

[data-theme="dark"] .menu-account-switcher-options::-webkit-scrollbar-thumb {
  background: var(--theme-border, #3a3a3a);
}

[data-theme="dark"] .menu-account-switcher-options::-webkit-scrollbar-thumb:hover {
  background: var(--theme-border-light, #4a4a4a);
}

/* Sluitknop in menu overlay - zelfde styling als dashboard modals (user-modal-close) */
.user-modal-close {
  width: 32px;
  height: 32px;
  border: none;
  background: transparent;
  color: var(--theme-card-close-btn, #9ca3af);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  transition: background 0.2s, color 0.2s;
  padding: 0;
  flex-shrink: 0;
}

.user-modal-close svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
}

.user-modal-close:hover {
  background: var(--theme-card-close-btn-hover-bg, #f3f4f6);
  color: var(--theme-text-primary, #262626);
}

.user-modal-close:focus,
.user-modal-close:focus-visible,
.user-modal-close:active {
  outline: none !important;
  box-shadow: none !important;
  border: none !important;
}

/* Export button styling - zelfde als bookings/my-work */
.settings-card .btn-export {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: auto;
  height: 34px;
  padding: 0 12px;
  background: #2b2b2b;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
  text-decoration: none;
}

.settings-card .btn-export:hover {
  background: #000;
}

.settings-card .btn-export svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  stroke: currentColor;
}

.settings-card .btn-export .btn-text {
  font-size: 0.9rem;
  font-weight: 600;
}

/* iCal download button naast input - even hoog als input container (inclusief border) */
.settings-card .ical-download-btn {
  height: 45px;
  flex-shrink: 0;
  white-space: nowrap;
}

@media (max-width: 900px) {
  .settings-grid--single {
    grid-template-columns: 1fr;
  }
}

/* ====================================
   Location Card Styling (voor settings)
   ==================================== */
.location-card {
  background: var(--theme-card, #ffffff);
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.card-title {
  font-family: 'Fira Sans', sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--theme-gray-800, #1f2937);
  margin: 0 0 12px 0;
  line-height: 1.2;
}

.card-description {
  font-size: 0.9rem;
  color: var(--theme-gray-500, #6b7280);
  line-height: 1.5;
  margin: 0 0 24px 0;
}

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

.settings-field label {
  display: block;
  font-family: 'Fira Sans', sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--theme-gray-800, #262626);
  margin-bottom: 8px;
}

.settings-value {
  font-family: 'Fira Sans', sans-serif;
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--theme-gray-500, #6b7280);
  line-height: 1.5;
  word-break: break-word;
}

/* Address fields grid - 50/25/25 layout with proper gaps */
/* Straat moet dezelfde breedte hebben als Postcode (50%) zodat labels uitlijnen */
/* Huisnummer en Plaats moeten uitlijnen (beide 25%) */
/* Gebruik fr units voor automatische gap berekening */
.address-fields-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 12px;
  width: 100%;
  box-sizing: border-box;
}

.address-field-street,
.address-field-number,
.address-field-addition,
.address-field-postal-code,
.address-field-city {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  min-width: 0; /* Voorkomt overflow in grid items */
}

/* Plaats moet 50% breed zijn (2 kolommen) om rechts uit te lijnen met Toevoeging */
.address-field-city {
  grid-column: span 2;
}

.address-field-spacer {
  display: none; /* Lege ruimte voor uitlijning, niet zichtbaar */
}

.address-field-street label,
.address-field-number label,
.address-field-addition label,
.address-field-postal-code label,
.address-field-city label {
  margin-bottom: 0.25rem;
  font-family: 'Fira Sans', sans-serif;
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--theme-gray-800, #262626);
}

@media (max-width: 768px) {
  .address-fields-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  
  /* Reset grid-column op mobile zodat alle velden onder elkaar staan */
  .address-field-city {
    grid-column: auto;
  }
}

/* Billing recipient custom dropdown */
.billing-recipient-wrapper {
  position: relative;
}

.billing-recipient-select {
  position: absolute;
  opacity: 0;
  pointer-events: none;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.billing-recipient-display {
  position: relative;
  width: 100%;
  padding: 10px 16px 10px 42px;
  font-size: 0.875rem;
  font-family: 'Fira Sans', sans-serif;
  background: var(--theme-gray-50, #f9fafb);
  border: 1.5px solid var(--theme-gray-100, #f3f4f6);
  border-radius: 8px;
  color: var(--theme-gray-500, #6b7280);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 42px;
  box-sizing: border-box;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.billing-recipient-display:hover {
  border-color: var(--theme-gray-200, #e5e7eb);
}

.billing-recipient-display.open {
  border-color: var(--theme-accent, #c9c6e9);
  box-shadow: 0 0 0 1.5px rgba(201, 198, 233, 0.3);
}

.billing-recipient-text {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  overflow: hidden;
}

.billing-recipient-arrow {
  width: 16px;
  height: 16px;
  color: var(--theme-gray-400, #9ca3af);
  flex-shrink: 0;
  transition: transform 0.2s;
  margin-left: auto;
}

.billing-recipient-display.open .billing-recipient-arrow {
  transform: rotate(180deg);
}

.billing-recipient-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: #ffffff;
  border: 1.5px solid var(--theme-gray-100, #f3f4f6);
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  max-height: 300px;
  overflow-y: auto;
  margin-top: 4px;
}

.billing-recipient-option {
  padding: 12px 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  transition: background 0.15s;
  border-bottom: 1px solid var(--theme-gray-100, #f3f4f6);
}

.billing-recipient-option:last-child {
  border-bottom: none;
}

.billing-recipient-option:hover {
  background: var(--theme-gray-50, #f9fafb);
}

.billing-recipient-option-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.billing-recipient-option-name {
  color: var(--theme-gray-800, #262626);
  font-size: 0.875rem;
  font-weight: 500;
}

.billing-recipient-option-email {
  color: var(--theme-gray-500, #6b7280);
  font-size: 0.85rem;
}

.billing-recipient-option .role-badge {
  flex-shrink: 0;
}

.settings-select::placeholder,
.settings-field input::placeholder {
  color: var(--placeholder-color, #b9bfcb);
  opacity: 1;
}

.settings-select::-webkit-input-placeholder,
.settings-field input::-webkit-input-placeholder {
  color: var(--placeholder-color, #b9bfcb);
}

.settings-select::-moz-placeholder,
.settings-field input::-moz-placeholder {
  color: var(--placeholder-color, #b9bfcb);
  opacity: 1;
}

/* Form actions styling - side by side buttons, not full width */
.form-actions {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-top: 24px;
  justify-content: flex-start;
}

/* Knoppen zijn compact maar goed aanraakbaar - gebruik breedte van bewerken knop (150px) */
.form-actions .btn {
  flex: 0 0 auto;
  width: 150px;
  min-width: 150px;
  padding: 12px 24px;
}

/* Opslaan knop - exact zelfde styling als Teamlid toevoegen (user-modal-footer .btn) */
.settings-save-btn {
  width: 150px;
  height: 46px;
  border-radius: 28px;
  font-weight: 700;
  font-size: .95rem;
  line-height: 1;
  padding: 0 18px;
  border: 1px solid transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  transition: background .2s, box-shadow .2s;
  background: #2b2b2b;
  color: #fff;
  box-shadow: 0 3px 14px rgba(108,99,255,0.09);
  /* Geen font-family - erft van body (Fira Sans) zoals user-modal-footer .btn */
  font-family: inherit; /* Expliciet inherit om zeker te zijn */
  box-sizing: border-box;
  min-width: 150px;
}

/* Op desktop: vaste breedte (niet flexibel) - ALLEEN voor single button */
@media (min-width: 769px) {
  .location-card .form-actions:has(.settings-save-btn:only-child) .settings-save-btn {
    width: 150px !important;
    min-width: 150px !important;
    max-width: 150px !important;
  }
}

.settings-save-btn:hover:not(:disabled) {
  background: #000;
}

.settings-save-btn:disabled {
  background: #d1d5db;
  color: #9ca3af;
  cursor: not-allowed;
  opacity: 0.6;
  box-shadow: none;
}

.settings-save-btn .btn-label {
  display: inline-block;
}

.settings-save-btn .btn-ellipsis {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.settings-save-btn .btn-ellipsis span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.85;
  animation: btn-ellipsis-bounce 1s ease-in-out infinite;
}

.settings-save-btn .btn-ellipsis span:nth-child(2) {
  animation-delay: 0.15s;
}

.settings-save-btn .btn-ellipsis span:nth-child(3) {
  animation-delay: 0.30s;
}

@keyframes btn-ellipsis-bounce {
  0%, 80%, 100% {
    transform: translateY(0);
    opacity: 0.55;
  }
  40% {
    transform: translateY(-2px);
    opacity: 1;
  }
}

/* Synchroniseer database knop - zelfde styling als btn-export/btn-refresh */
.location-card .form-actions .btn-export {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: auto;
  min-width: 180px; /* Vaste minimale breedte zodat knop niet krimpt tijdens loading */
  height: 34px;
  padding: 0 12px;
  background: #2b2b2b;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
  font-family: 'Fira Sans', sans-serif;
}

.location-card .form-actions .btn-export:hover:not(:disabled) {
  background: #000;
}

.location-card .form-actions .btn-export:disabled {
  background: #d1d5db;
  color: #9ca3af;
  cursor: not-allowed;
  opacity: 0.6;
}

.location-card .form-actions .btn-export .btn-text {
  display: inline;
  white-space: nowrap;
}

.location-card .form-actions .btn-export .btn-ellipsis {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.location-card .form-actions .btn-export .btn-ellipsis span {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: currentColor;
  animation: btn-ellipsis 1.4s infinite ease-in-out;
}

.location-card .form-actions .btn-export .btn-ellipsis span:nth-child(1) {
  animation-delay: -0.32s;
}

.location-card .form-actions .btn-export .btn-ellipsis span:nth-child(2) {
  animation-delay: -0.16s;
}

/* Account form styling - gebruik exact dezelfde spacing als locations.css */
#account-form .settings-form-field {
  margin-bottom: 20px;
}

#account-form .settings-form-field:last-child {
  margin-bottom: 0;
}

/* Radio button styling - gebruik theme colors */
#account-form input[type="radio"] {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  width: 16px;
  height: 16px;
  border: 2px solid var(--theme-text-primary, #222222);
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  position: relative;
  flex-shrink: 0;
  transition: all 0.2s ease;
  margin: 0;
}

#account-form input[type="radio"]:checked {
  border-color: var(--theme-text-primary, #222222);
  background: var(--theme-text-primary, #222222);
}

#account-form input[type="radio"]:checked::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #ffffff;
}

#account-form input[type="radio"]:hover {
  border-color: var(--theme-text-primary, #222222);
}

#account-form input[type="radio"]:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(34, 34, 34, 0.1);
}

#account-form label[for^="account_type"],
#account-form input[type="radio"] + span {
  color: var(--theme-text-primary, #222222);
  font-weight: 500;
  font-size: 0.875rem;
}

/* Knoppen even breed maken - wordt overschreven door #account-form .form-actions .btn */

.form-actions .btn-primary {
  background: #2b2b2b;
  color: #fff;
  box-shadow: none;
  width: 150px;
  min-width: 150px;
}

.form-actions .btn-primary:hover:not(:disabled) {
  background: #000;
}

/* Secondary button styling - exact zoals locations.css */
.form-actions .btn-secondary {
  background: var(--theme-gray-100, #f3f4f6);
  color: var(--theme-gray-700, #374151);
  border: 1px solid var(--theme-gray-200, #e5e7eb);
  height: 46px;
  border-radius: 28px;
  font-weight: 700;
  font-size: .95rem;
  line-height: 1;
  padding: 0 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  transition: background .2s, box-shadow .2s;
  box-sizing: border-box;
  width: 150px;
  min-width: 150px;
}

.form-actions .btn-secondary:hover {
  background: var(--theme-gray-200, #e5e7eb);
}

.form-actions .btn-primary:disabled {
  background: #d1d5db;
  color: #9ca3af;
  cursor: not-allowed;
  opacity: 0.6;
  box-shadow: none;
}

.form-actions .btn .btn-label {
  display: inline-block;
}

.form-actions .btn .btn-ellipsis {
  display: inline-flex;
  gap: 4px;
  align-items: center;
  justify-content: center;
}

.form-actions .btn .btn-ellipsis span {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: currentColor;
  animation: btn-ellipsis 1.4s infinite ease-in-out;
}

.form-actions .btn .btn-ellipsis span:nth-child(1) {
  animation-delay: -0.32s;
}

.form-actions .btn .btn-ellipsis span:nth-child(2) {
  animation-delay: -0.16s;
}

@keyframes btn-ellipsis {
  0%, 80%, 100% {
    opacity: 0.3;
    transform: scale(0.8);
  }
  40% {
    opacity: 1;
    transform: scale(1);
  }
}

/* Responsive - op mobiel blijven ze naast elkaar of onder elkaar als het moet */
@media (max-width: 768px) {
  .form-actions {
    flex-wrap: wrap;
  }
  
  .form-actions .btn {
    flex: 1 1 auto;
    min-width: 140px;
  }
}

/* Op zeer smalle schermen stapelen ze */
@media (max-width: 480px) {
  .form-actions {
    flex-direction: column;
  }
  
  .form-actions .btn {
    width: 100%;
    max-width: none;
  }
}

/* ====================================
   Profile Photo Section - World-Class SaaS Design
   ==================================== */

.profile-photo-section {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 24px 0;
  margin-bottom: 24px;
}

.profile-photo-container {
  position: relative;
  width: 96px;
  height: 96px;
  flex-shrink: 0;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.profile-photo-container:hover {
  transform: scale(1.02);
}

.profile-photo-avatar {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  position: relative;
  overflow: hidden;
  border: 3px solid var(--cleaner-color-1, #c9c6ec);
  background: var(--cleaner-color-1, #c9c6ec);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Avatar color borders - same as avatar-color-circle */
.profile-photo-avatar[data-color="1"] { border-color: var(--cleaner-color-1); background: var(--cleaner-color-1); }
.profile-photo-avatar[data-color="2"] { border-color: var(--cleaner-color-2); background: var(--cleaner-color-2); }
.profile-photo-avatar[data-color="3"] { border-color: var(--cleaner-color-3); background: var(--cleaner-color-3); }
.profile-photo-avatar[data-color="4"] { border-color: var(--cleaner-color-4); background: var(--cleaner-color-4); }
.profile-photo-avatar[data-color="5"] { border-color: var(--cleaner-color-5); background: var(--cleaner-color-5); }
.profile-photo-avatar[data-color="6"] { border-color: var(--cleaner-color-6); background: var(--cleaner-color-6); }
.profile-photo-avatar[data-color="7"] { border-color: var(--cleaner-color-7); background: var(--cleaner-color-7); }
.profile-photo-avatar[data-color="8"] { border-color: var(--cleaner-color-8); background: var(--cleaner-color-8); }
.profile-photo-avatar[data-color="9"] { border-color: var(--cleaner-color-9); background: var(--cleaner-color-9); }
.profile-photo-avatar[data-color="10"] { border-color: var(--cleaner-color-10); background: var(--cleaner-color-10); }
.profile-photo-avatar[data-color="11"] { border-color: var(--cleaner-color-11); background: var(--cleaner-color-11); }
.profile-photo-avatar[data-color="12"] { border-color: var(--cleaner-color-12); background: var(--cleaner-color-12); }
.profile-photo-avatar[data-color="13"] { border-color: var(--cleaner-color-13); background: var(--cleaner-color-13); }
.profile-photo-avatar[data-color="14"] { border-color: var(--cleaner-color-14); background: var(--cleaner-color-14); }
.profile-photo-avatar[data-color="15"] { border-color: var(--cleaner-color-15); background: var(--cleaner-color-15); }

/* Met profielfoto: neutrale rand (kleur blijft gekoppeld via data-color voor wanneer initialen getoond worden) */
.profile-photo-avatar.has-photo {
  border-color: var(--theme-border, #e5e7eb);
  background: var(--theme-card, #ffffff);
}

.profile-photo-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
}

.profile-photo-initials {
  font-family: 'Fira Sans', sans-serif;
  font-size: 2rem;
  font-weight: 700;
  color: #444572;
  user-select: none;
}

.profile-photo-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  opacity: 0;
  transition: opacity 0.2s ease;
  pointer-events: none;
}

.profile-photo-container:hover .profile-photo-overlay {
  opacity: 1;
}

.profile-photo-overlay svg {
  color: #ffffff;
  width: 24px;
  height: 24px;
}

.profile-photo-overlay span {
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 600;
  font-family: 'Fira Sans', sans-serif;
  text-align: center;
}

.profile-photo-meta {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.profile-photo-name {
  font-family: 'Fira Sans', sans-serif;
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--theme-gray-800, #1f2937);
}

.profile-photo-hint {
  font-size: 0.875rem;
  color: var(--theme-gray-500, #6b7280);
}

.profile-photo-remove {
  display: inline-block;
  background: none;
  border: none;
  color: var(--theme-form-error-border, #ef4444);
  font-size: 0.875rem;
  font-weight: 600;
  font-family: 'Fira Sans', sans-serif;
  cursor: pointer;
  padding: 0;
  margin-top: 4px;
  text-align: left;
  transition: color 0.2s;
}

.profile-photo-remove:hover {
  color: #dc2626;
  text-decoration: underline;
}

/* Crop Modal */
.crop-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  box-sizing: border-box;
}

.crop-modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.75);
  z-index: 1;
}

.crop-modal-content {
  position: relative;
  z-index: 2;
  background: var(--theme-card, #ffffff);
  border-radius: 1.2rem;
  max-width: 480px;
  width: 100%;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  overflow: hidden;
}

.crop-modal-title {
  font-family: 'Fira Sans', sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--theme-gray-800, #1f2937);
  margin: 0;
  padding: 20px 24px;
  border-bottom: 1px solid var(--theme-gray-100, #f3f4f6);
}

.crop-modal-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.crop-preview-container {
  width: 100%;
  max-height: 400px;
  overflow: hidden;
  background: #000;
  border-radius: 8px;
  position: relative;
}

.crop-preview-container img {
  max-width: 100%;
  display: block;
}

.crop-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
}

.crop-actions .settings-btn {
  padding: 0.8rem 1.5rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.2s;
  font-family: 'Fira Sans', sans-serif;
  border: none;
}

.crop-actions .settings-btn-secondary {
  background: var(--theme-gray-100, #f3f4f6);
  color: var(--theme-gray-700, #374151);
  border: 1px solid var(--theme-gray-200, #e5e7eb);
}

.crop-actions .settings-btn-secondary:hover {
  background: var(--theme-gray-200, #e5e7eb);
}

.crop-actions .settings-btn-primary {
  background: #2b2b2b;
  color: #ffffff;
  margin-top: 0;
}

.crop-actions .settings-btn-primary:hover {
  background: #000000;
}

/* Mobile responsive */
@media (max-width: 768px) {
  .profile-photo-section {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 20px 16px;
  }
  
  .profile-photo-container {
    width: 80px;
    height: 80px;
  }
  
  .profile-photo-initials {
    font-size: 1.75rem;
  }
  
  .profile-photo-meta {
    align-items: center;
  }
  
  .profile-photo-remove {
    text-align: center;
  }
  
  .crop-modal-content {
    max-width: calc(100% - 40px);
  }
  
  .crop-actions {
    flex-direction: column;
  }
  
  .crop-actions .settings-btn {
    width: 100%;
  }
}

/* ====================================
   Agenda Sync Page - Set & Forget
   ==================================== */
#agenda-sync-card .agenda-sync-primary {
  margin-bottom: 2rem;
}

#agenda-sync-card .input-with-copy--has-btn-text {
  display: flex;
  align-items: stretch;
}

#agenda-sync-card .ical-input--mono {
  font-family: ui-monospace, 'SF Mono', 'Menlo', 'Monaco', 'Consolas', monospace;
  font-size: 0.875rem;
}

#agenda-sync-card .btn-copy-url--text {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 16px;
  font-family: 'Fira Sans', sans-serif;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--theme-text-secondary, #374151);
  white-space: nowrap;
}

#agenda-sync-card .btn-copy-url--text:hover {
  color: var(--theme-text-primary, #1f2937);
}

#agenda-sync-card .btn-copy-url--text.is-copied {
  color: var(--theme-success, #059669);
}

#agenda-sync-card .agenda-sync-help {
  margin-bottom: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--theme-border, #f3f4f6);
}

#agenda-sync-card .agenda-sync-help-title {
  font-family: 'Fira Sans', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--theme-gray-800, #1f2937);
  margin: 0 0 1rem 0;
}

#agenda-sync-card .agenda-sync-help-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

@media (max-width: 600px) {
  #agenda-sync-card .agenda-sync-help-grid {
    grid-template-columns: 1fr;
  }
}

#agenda-sync-card .agenda-sync-help-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px;
  background: var(--theme-gray-50, #f9fafb);
  border-radius: 8px;
}

#agenda-sync-card .agenda-sync-help-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--theme-card, #fff);
  border-radius: 8px;
  border: 1px solid var(--theme-border, #e5e7eb);
  color: var(--theme-gray-600, #4b5563);
}

#agenda-sync-card .agenda-sync-help-content {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

#agenda-sync-card .agenda-sync-help-label {
  font-family: 'Fira Sans', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--theme-gray-800, #1f2937);
}

#agenda-sync-card .agenda-sync-help-instruction {
  font-size: 0.8rem;
  color: var(--theme-gray-500, #6b7280);
  line-height: 1.4;
}

