/* === Base Modal Styling === */
.settings-modal {
  border-radius: 12px !important;
  overflow: hidden;
  background: #ffffff;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
  border: none !important;
  height: 550px;
  max-height: 900px;
  width: 700px;
  max-width: 900px;
  margin-left: 70px;
}

.settings-modal .modal-content {
  border: none;
  border-radius: 24px;
}

/* === Modal Header === */
.settings-modal .modal-header {
  border-bottom: 1px solid #E5E7EB;
  padding: 24px 32px;
  background: white;
}

.settings-modal .modal-title {
  font-size: 20px;
  font-weight: 600;
  color: #0B2F4E;
  letter-spacing: -0.3px;
}

.settings-modal .btn-close {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  opacity: 0.6;
  transition: all 0.2s ease;
  background-size: 14px;
}

.settings-modal .btn-close:hover {
  opacity: 1;
}

/* === Modal Body Container === */
.settings-modal .modal-body {
  padding: 0;
  background: white;
}

/* === Sidebar Navigation === */
.settings-sidebar {
  min-width: 185px;
  max-width: 200px;
  padding: 24px 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.settings-tab-btn {
  background: transparent;
  /* border: none; */
  text-align: left;
  padding: 9px 15px;
  border-radius: 10px;
  font-weight: 400;
  font-size: 15px;
  color: #374151;
  transition: all 0.15s ease;
  cursor: pointer;
  letter-spacing: -0.2px;
  /* outline: 0.5px solid transparent; */
  border: 0.5px solid transparent;
}

.settings-tab-btn:hover {
  /* outline: 0.5px solid rgba(27, 145, 248, 0.4) !important; */
  border: 0.5px solid rgba(27, 145, 248, 0.4) !important;
}

.settings-tab-btn.active {
  /* background-color: #EFF6FF; */
  /* color: #0B2F4E;
  font-weight: 500;
  outline: 0.5px solid rgba(27, 145, 248, 0.4) !important;
  border: 0.5px solid rgba(27, 145, 248, 0.4) !important; */
  color: #334EAC;
  font-weight: 500;
}

/* === Content Area === */
.settings-content {
  background: white;
  max-height: 70vh;
  overflow-y: auto;
  height: 100%;
  padding-right: 58px !important;
}

/* === Hide Scrollbars === */
.settings-content::-webkit-scrollbar,
.scroll-wrapper::-webkit-scrollbar {
  display: none !important;
}

.settings-content,
.scroll-wrapper {
  -ms-overflow-style: none !important;
  scrollbar-width: none !important;
}

/* === Tab Control === */
.settings-tab {
  display: none;
}

.settings-tab.active {
  display: block;
}

/* === General Tab Row Layout === */
.settings-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0px 0;
}

.settings-row:last-child {
  border-bottom: none;
}

.settings-row-label {
  font-size: 15px;
  color: #0B2F4E;
  letter-spacing: -0.2px;
}

.settings-row-value {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  color: rgba(11, 47, 78, 0.7);
}

/* ========================================
   FUROBOX CUSTOM DROPDOWNS - SETTINGS MODAL SPECIFIC
   ======================================== */
.settings-content .furobox-select {
  position: relative;
  width: auto;
  min-width: 140px;
  font-family: inherit;
}

.settings-content .furobox-select button {
  width: 100%;
  background: #FFFFFF;
  color: #0B2F4E;
  border: 0px solid #E5E7EB;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  transition: all 0.15s ease;
  letter-spacing: -0.2px;
  box-shadow: 0 0px 0px white;
  gap: 8px;
}

.settings-content .furobox-select button:focus {
  outline: none;
}

.settings-content .furobox-select .selected-label {
  flex: 1;
  text-align: left;
  white-space: nowrap;
}

.settings-content .furobox-select .chevron {
  color: #6B7280;
  transition: transform 0.2s ease;
  flex-shrink: 0;
  width: 16px;
  height: 16px;
}

.settings-content .furobox-select.open .chevron {
  transform: rotate(180deg);
  color: #1B91F8;
}

.settings-content .furobox-menu {
  position: absolute;
  top: 100%;
  margin-top: 4px;
  left: 0;
  right: 0;
  background: #FFFFFF;
  border: 1px solid #E5E7EB;
  border-radius: 10px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.12);
  display: none;
  z-index: 1050;
  overflow: hidden;
  max-height: 280px;
  overflow-y: auto;
}

.settings-content .furobox-select.open .furobox-menu {
  display: block;
  animation: dropdownFadeIn 0.15s ease;
}

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

.settings-content .furobox-option {
  padding: 10px 12px;
  font-size: 15px;
  font-weight: 400;
  color: #0B2F4E;
  cursor: pointer;
  transition: background-color 0.1s ease;
  letter-spacing: -0.2px;
  /* outline: 0.5px solid transparent; */
  border: 0.5px solid transparent;
  margin: 8px;
  border-radius: 8px;
}

.settings-content .furobox-option:hover {
  /* outline: 0.5px solid rgba(27, 145, 248, 0.4); */
  border: 0.5px solid rgba(27, 145, 248, 0.4);
}

.settings-content .furobox-option.selected {
  color: #334EAC;
  font-weight: 500;
}

.settings-content .furobox-option.focused {
  background-color: #F3F4F6;
}

.settings-content .furobox-menu::-webkit-scrollbar {
  width: 6px;
}

.settings-content .furobox-menu::-webkit-scrollbar-track {
  background: transparent;
}

.settings-content .furobox-menu::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.15);
  border-radius: 4px;
}

.settings-content .furobox-menu::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 0, 0, 0.25);
}

.settings-content .furobox-original {
  display: none !important;
}

/* === Standard Form Controls === */
.form-select1,
.form-control1 {
  border: 1px solid #E5E7EB;
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 15px;
  color: #0B2F4E;
  background-color: white;
  transition: all 0.15s ease;
  font-weight: 400;
}

.form-select1:focus,
.form-control1:focus {
  border: 1px solid rgba(27, 145, 248, 0.5) !important;
  box-shadow: 0px 1px 1px rgba(0, 0, 0, 0.05);
  color: #1a1a1a;
}

.form-select {
  cursor: pointer;
  padding-right: 36px;
  background-position: right 12px center;
  background-size: 16px;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='16' height='16' viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M4 6L8 10L12 6' stroke='%236B7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
}

/* ========================================
   TOGGLE SWITCH - iOS Style
   ======================================== */
.form-check {
  display: flex;
  align-items: center;
  padding: 0;
  margin: 0;
  min-height: 0;
}

.form-check-input {
  width: 29px !important;
  height: 18px !important;
  background-color: #E5E7EB !important;
  border: none !important;
  border-radius: 20px !important;
  cursor: pointer;
  transition: background-color 0.2s ease !important;
  position: relative;
  margin: 0 !important;
  flex-shrink: 0;
  box-shadow: none !important;
  background-image: none !important;
}

.form-check-input:checked {
  background-color: #1B91F8 !important;
  border: none !important;
}

.form-check-input:focus {
  box-shadow: none !important;
  outline: none !important;
  border: none !important;
}

.form-check-input:focus-visible {
  box-shadow: 0 0 0 3px rgba(27, 145, 248, 0.1) !important;
}

.form-check-input::before {
  content: '';
  position: absolute;
  width: 13px !important;
  height: 13px !important;
  background-color: white !important;
  border-radius: 50%;
  top: 2px;
  left: 2px;
  transition: transform 0.2s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.form-check-input:checked::before {
  transform: translateX(13px);
}

.form-check-input:hover::before {
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.form-check-input:checked::after,
.form-check-input::after {
  display: none !important;
}

/* === Notifications Section === */
.notifications-section {
  padding-top: 24px;
  padding-right: 245px;
}

.notifications-section .settings-row-label {
  font-size: 15px;
  color: #0B2F4E;
  margin-bottom: 5px;
  display: block;
}

.notification-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 5px;
}

.notification-item:first-child {
  padding-top: 0;
}

.notification-label {
  font-size: 15px;
  color: #0B2F4E;
  letter-spacing: -0.2px;
}

/* === Delete Section === */
.delete-section {
  padding: 24px 0;
  padding-right: 15px;
}

.delete-section-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.delete-section-text {
  flex: 1;
  padding-right: 24px;
}

.delete-section-title {
  font-size: 15px;
  color: #0B2F4E;
  margin-bottom: 4px;
  letter-spacing: -0.2px;
}

.delete-section-description {
  font-size: 15px;
  color: rgba(11, 47, 78, 0.6);
  margin: 0;
  line-height: 1.5;
}

/* === Buttons === */
.btn-outline-danger {
  color: #EC404E;
  background: white;
  padding: 5px 14px;
  border-radius: 5px;
  font-size: 14px;
  transition: all 0.15s ease;
  letter-spacing: -0.2px;
  border: 0.5px solid #EC404E;
  /* outline: 0.5px solid transparent; */
}

.btn-outline-danger:hover {
  outline: 0.5px solid #EC404E;
  border: 0.5px solid #EC404E;
  background-color: transparent !important;
  color: #EC404E !important;
}

.btn-primary {
  background-color: #1B91F8;
  border: none;
  color: white;
  padding: 10px 20px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  transition: background-color 0.15s ease; /* [YES] Changed from "all" */
  letter-spacing: -0.2px;
  transform: none !important; /* [YES] Force no transform */
}

.btn-primary:hover {
  background-color: #0B2F4E;
  transform: none !important;
  box-shadow: none !important;
}

.btn-primary:active {
  transform: none !important;
  box-shadow: none !important;
}

/* ========================================
   USAGE TAB STYLES
   ======================================== */
.usage-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  padding-bottom: 0;
  border-bottom: none;
}

.usage-title {
  font-size: 16px;
  font-weight: 400;
  color: #0B2F4E;
  margin: 0;
  letter-spacing: -0.2px;
}

.usage-date {
  font-size: 16px;
  font-weight: 400;
}

.usage-item {
  margin-bottom: 5px;
}

.usage-item:last-child {
  margin-bottom: 0;
}

.usage-item-name {
  display: block;
  font-size: 15px;
  font-weight: 400;
  color: #0B2F4E;
  margin-bottom: 8px;
  letter-spacing: -0.2px;
}

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

.usage-progress {
  flex: 1;
  height: 20px;
  border: 1px solid #F3F4F6;
  border-radius: 3px;
  overflow: hidden;
  max-width: 295px;
}

.usage-progress-bar {
  height: 100%;
  background-color: #1B91F8;
  border-radius: 2px;
  transition: width 0.3s ease;
}

.usage-item-stats {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  white-space: nowrap;
  flex-shrink: 0;
}

.usage-percentage {
  font-weight: 400;
}

.usage-values {
  color: rgba(11, 47, 78, 0.5);
  font-weight: 400;
}

.usage-divider {
  border: none;
  border-top: 1px solid #E5E7EB;
  margin: 15px 0;
}

/* ========================================
   PERSONA TAB STYLES
   ======================================== */
.persona-header {
  margin-bottom: 18px;
}

.persona-title {
  font-size: 16px;
  font-weight: 600;
  color: #0B2F4E;
  margin: 0 0 8px 0;
  letter-spacing: -0.3px;
}

.persona-description {
  font-size: 14px;
  color: rgba(11, 47, 78, 0.7);
  line-height: 1.6;
  margin: 0;
  max-width: 580px;
}

.persona-field-group {
  margin-bottom: 24px;
}

.persona-field-label {
  font-size: 14px;
  font-weight: 600;
  color: #0B2F4E;
  margin-bottom: 8px;
  display: block;
  letter-spacing: -0.2px;
}

.persona-helper-text {
  display: block;
  font-size: 13px;
  color: rgba(11, 47, 78, 0.6);
}

.persona-helper-text-1 {
  margin-top: -22px;
  display: block;
  font-size: 13px;
  color: rgba(11, 47, 78, 0.6);
  line-height: 1.4;
}

.persona-textarea {
  width: 100% !important;
  max-width: 100%;
  resize: vertical;
  min-height: 100px;
  font-size: 14px;
  line-height: 1.6;
  margin-left: 0px !important;
}

.persona-textarea::placeholder {
  color: rgba(11, 47, 78, 0.4);
}

.persona-save-btn {
  min-width: 90px;
  padding: 4px 12px;
  font-size: 15px;
  border-radius: 4px;
  background: #0B2F4E;
}

/* ========================================
   CHOICES.JS CUSTOMIZATION FOR PERSONA
   ======================================== */
.persona-choices .choices__inner {
  background: white !important;
  border: 1px solid #E5E7EB;
  border-radius: 10px;
  padding: 0px 1px;
  min-height: 38px;
  font-size: 15px;
}

.persona-choices.is-focused .choices__inner {
  border: 1px solid rgba(27, 145, 248, 0.5) !important;
  box-shadow: 0px 1px 1px rgba(0, 0, 0, 0.05);
  color: #1a1a1a;
  background: white !important;
  border-radius: 8px;
}

.persona-choices .choices__list--multiple {
  display: flex;
  flex-wrap: wrap;
  margin: 0;
  padding: 0;
}

.persona-choices .choices__list--multiple .choices__item {
  background-color: transparent;
  border: 0px solid #BFDBFE;
  color: rgba(27, 145, 248, 1);
  border-radius: 8px;
  padding: 5px 1px;
  font-size: 14px;
  font-weight: 400;
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  line-height: 1.2;
}

.persona-choices .choices__list--multiple .choices__item.is-highlighted {
  background-color: #DBEAFE;
  border-color: #93C5FD;
}

.persona-choices .choices__button {
  background: none !important;
  border: none !important;
  padding-right: 2px !important;
  margin-right: 2px !important;
  opacity: 1 !important;
  font-size: 0 !important;
  order: -1 !important;
  width: 20px !important;
  height: 20px !important;
  position: relative !important;
  cursor: pointer !important;
  background-image: url("data:image/svg+xml,%3Csvg width='16' height='16' viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M4 4L12 12M12 4L4 12' stroke='%231B91F8' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: center !important;
  background-size: 14px 14px !important;
  margin: 0 1px 0 1px !important;
}

.persona-choices .choices__button:hover {
  /* background-image: url("data:image/svg+xml,%3Csvg width='16' height='16' viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M4 4L12 12M12 4L4 12' stroke='%23dc3545' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") !important; */
  background-image: url("data:image/svg+xml,%3Csvg width='16' height='16' viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M4 4L12 12M12 4L4 12' stroke='%231B91F8' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") !important;
}

.persona-choices .choices__button > * {
  display: none !important;
}

.persona-choices .choices__input {
  font-size: 14px;
  padding: 4px 0;
  color: #0B2F4E;
  background-color: transparent !important;
  border: none;
  min-width: 100px;
  flex: 1;
}

.persona-choices .choices__input::placeholder {
  color: rgba(11, 47, 78, 0.4) !important;
  opacity: 1 !important;
}

.persona-choices .choices__list--dropdown {
  border: 1px solid #E5E7EB;
  border-radius: 10px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.12);
  margin-top: 4px;
  max-height: 280px;
  overflow-y: auto;
  background: white;
  z-index: 100;
}

.persona-choices .choices__list--dropdown .choices__item {
  padding: 10px 12px;
  font-size: 15px;
  color: #0B2F4E;
  margin: 10px;
  border-radius: 8px;
  /* outline: 0.5px solid transparent; */
  border: 0.5px solid transparent;
}

.persona-choices .choices__list--dropdown .choices__item--selectable.is-highlighted {
  /* background-color: #F3F4F6; */
  /* outline: 0.5px solid rgba(27, 145, 248, 0.4); */
  border: 0.5px solid rgba(27, 145, 248, 0.4);
}

.persona-choices .choices__list--dropdown .choices__item--selectable:hover {
  /* background-color: #EFF6FF;
  color: #1B91F8; */
  /* outline: 0.5px solid rgba(27, 145, 248, 0.4); */
  border: 0.5px solid rgba(27, 145, 248, 0.4);
  background-color: transparent !important;
  margin: 10px;
  border-radius: 8px;
}

.persona-choices .choices__inner::after {
  display: none;
}

.persona-choices.is-open .choices__list--dropdown {
  opacity: 1;
  pointer-events: auto;
}

/* === Saved Personas Section === */
.saved-personas-section {
  margin-top: 24px;
}

.persona-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.persona-item {
  background: white;
  border-radius: 10px;
  padding: 16px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
}

.persona-item-content {
  flex: 1;
}

.persona-item-header {
  margin-bottom: 8px;
}

.persona-item-name {
  font-size: 15px;
  font-weight: 600;
  color: #0B2F4E;
  letter-spacing: -0.2px;
}

.persona-item-description {
  font-size: 14px;
  color: rgba(11, 47, 78, 0.7);
  margin: 0;
  line-height: 1.5;
}

.persona-item-actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

.persona-item-actions .btn {
  font-size: 13px;
  padding: 6px 12px;
}

/* ========================================
   PROFILE TAB
   ======================================== */
.profile-info-section {
  margin-bottom: 32px;
}

.profile-section-title {
  font-size: 15px;
  font-weight: 600;
  color: #0B2F4E;
  margin-bottom: 8px;
  letter-spacing: -0.2px;
}

.profile-field-row {
  margin-bottom: 8px;
}

.profile-field-row:last-child {
  margin-bottom: 0;
}

.profile-field-label {
  font-size: 14px;
  font-weight: 500;
  color: rgba(11, 47, 78, 0.7);
  margin-bottom: 8px;
  display: block;
  letter-spacing: -0.2px;
}

.profile-field-value-wrapper {
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid #E5E7EB;
  border-radius: 8px;
  padding: 5px 9px;
  transition: all 0.2s ease;
}

.profile-field-value-wrapper:has(input:focus) {
  border-color: #1B91F8;
  background: white;
  box-shadow: 0 0 0 3px rgba(27, 145, 248, 0.1);
}

.profile-field-value {
  flex: 1;
  font-size: 15px;
  color: #0B2F4E;
  letter-spacing: -0.2px;
}

.profile-field-input {
  flex: 1;
  border: none;
  background: transparent;
  font-size: 15px;
  color: #0B2F4E;
  letter-spacing: -0.2px;
  padding: 0;
  outline: none;
}

.profile-field-input:disabled {
  cursor: not-allowed;
  opacity: 0.8;
}

.profile-field-input::placeholder {
  color: rgba(11, 47, 78, 0.4);
}

.profile-helper-text {
  display: block;
  font-size: 11px;
  color: rgba(11, 47, 78, 0.6);
  margin-top: 1px;
  line-height: 1.4;
}

.profile-security-values {
  font-size: 10px;
  color: rgba(11, 47, 78, 0.6);
  margin-top: 1px;
  line-height: 1.4;
}

/* Profile Edit Actions */
.profile-edit-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.profile-edit-btn {
  background: none;
  border: none;
  padding: 4px;
  cursor: pointer;
  opacity: 0.6;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  pointer-events: auto !important;
  z-index: 10;
  position: relative;
}

.profile-edit-btn:hover {
  opacity: 1;
}

.profile-edit-btn:active {
  transform: scale(0.95);
}

.profile-edit-btn img {
  width: 18px;
  height: 18px;
  pointer-events: none;
}

.profile-save-btn {
  background: none;
  border: none;
  padding: 4px;
  cursor: pointer;
  opacity: 0.8;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border-radius: 4px;
}

.profile-save-btn:hover {
  opacity: 1;
  background: rgba(16, 185, 129, 0.1);
  transform: scale(1.1);
}

.profile-save-btn:active {
  transform: scale(0.95);
}

.profile-cancel-btn {
  background: none;
  border: none;
  padding: 4px;
  cursor: pointer;
  opacity: 0.8;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border-radius: 4px;
}

.profile-cancel-btn:hover {
  opacity: 1;
  background: rgba(239, 68, 68, 0.1);
  transform: scale(1.1);
}

.profile-cancel-btn:active {
  transform: scale(0.95);
}

.profile-change-password-btn {
  min-width: 90px;
  padding: 4px 12px;
  font-size: 11px;
  border-radius: 4px;
  background: #0B2F4E;
}

/* Delete Account Section */
.profile-danger-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 21px;
}

.Security-section {
  padding-top: 19px;
}

.profile-danger-content {
  flex: 1;
}

.profile-danger-title {
  font-size: 15px;
  font-weight: 600;
  color: #0B2F4E;
  margin-bottom: 4px;
  letter-spacing: -0.2px;
}

.profile-danger-text {
  font-size: 13px;
  color: rgba(11, 47, 78, 0.7);
  margin: 0;
  line-height: 1.5;
}

.profile-danger-section form {
  margin: 0;
  flex-shrink: 0;
}

/* ========================================
   PASSWORD CHANGE MODAL
   ======================================== */
.toggle-password-icon {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  color: #6B7280;
  transition: color 0.2s ease;
}

.toggle-password-icon:hover {
  color: #0B2F4E;
}

.toggle-password-icon i {
  font-size: 18px;
}

#changePasswordModal .form-control {
  padding-right: 40px;
}

/* ========================================
   MISC
   ======================================== */
.list-group {
  margin-top: 10px !important;
}

.list-group-item {
  border: 0px solid var(--bs-list-group-border-color);
}

.label-account {
  margin-bottom: 0px !important;
}

.form-text {
  font-size: 13px;
  color: rgba(11, 47, 78, 0.6);
  margin-top: 6px;
  line-height: 1.4;
}

.text-success {
  color: #10B981 !important;
  font-size: 14px;
  font-weight: 500;
}

hr {
  border: none;
  border-top: 1px solid #F3F4F6;
  margin: 24px 0;
}

/* === Toast Notifications === */
.custom-toast {
  position: fixed;
  top: 24px;
  right: 24px;
  background-color: white;
  color: #0B2F4E;
  padding: 16px 20px;
  border-radius: 12px;
  opacity: 0;
  transform: translateX(400px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 10000;
  font-size: 14px;
  font-weight: 500;
  max-width: 400px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
  border: 1px solid #E5E7EB;
}

.custom-toast.show {
  opacity: 1;
  transform: translateX(0);
}

.toast-success {
  background-color: #ECFDF5;
  color: #065F46;
  border-color: #10B981;
}

.toast-error {
  background-color: #FEF2F2;
  color: #991B1B;
  border-color: #EF4444;
}

.toast-warning {
  background-color: #FFFBEB;
  color: #92400E;
  border-color: #F59E0B;
}

.toast-info {
  background-color: #EFF6FF;
  color: #1E40AF;
  border-color: #3B82F6;
}

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 768px) {
  .settings-sidebar {
    min-width: 160px;
    max-width: 160px;
    padding: 16px 12px;
  }

  .settings-content {
    padding: 24px 20px;
  }

  .settings-tab-btn {
    font-size: 14px;
    padding: 10px 12px;
  }

  .settings-modal .modal-title {
    font-size: 18px;
  }
}


/* ========================================
   CHOICES.JS DROPDOWN ARROW
   ======================================== */

/* Add dropdown arrow to the right */
.persona-choices .choices__inner {
  background: white !important;
  border: 1px solid #E5E7EB;
  border-radius: 8px;
  padding: 6px 10px;
  min-height: 44px;
  font-size: 15px;
  position: relative;
  padding-right: 35px !important; /* Make room for arrow */
}

/* Create arrow using ::after */
.persona-choices .choices__inner::after {
  content: '';
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  background-image: url("data:image/svg+xml,%3Csvg width='16' height='16' viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M4 6L8 10L12 6' stroke='%236B7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 16px;
  pointer-events: none;
  transition: transform 0.2s ease;
  display: block !important; /* Override the display: none we had before */
}

/* Rotate arrow when dropdown is open */
.persona-choices.is-open .choices__inner::after {
  transform: translateY(-50%) rotate(180deg);
}

/* Change arrow color when focused */
.persona-choices.is-focused .choices__inner::after {
  background-image: url("data:image/svg+xml,%3Csvg width='16' height='16' viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M4 6L8 10L12 6' stroke='%231B91F8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

/* ========================================
   MOBILE SETTINGS MODAL - FINAL VERSION
   ======================================== */

@media (max-width: 768px) {

  /* ===== GLOBAL BOX SIZING ===== */
  #settingsModal * {
    box-sizing: border-box !important;
  }

  /* ===== FULLSCREEN MODAL CONTAINER ===== */
  #settingsModal.modal {
    padding: 0 !important;
  }

  #settingsModal .modal-dialog {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100% !important;
    height: 100vh !important;
    max-width: 100% !important;
    max-height: 100vh !important;
    margin: 0 !important;
    padding: 0 !important;
    transform: none !important;
  }

  .settings-modal {
    height: 100vh !important;
    max-height: 100vh !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    border-radius: 0 !important;
  }

  .settings-modal .modal-content {
    height: 100vh !important;
    border-radius: 0 !important;
    border: none !important;
    display: flex !important;
    flex-direction: column !important;
    overflow: hidden !important;
  }

  /* ===== MODAL HEADER ===== */
  .settings-modal .modal-header {
    padding: 16px 20px !important;
    padding-top: max(16px, env(safe-area-inset-top)) !important;
    border-bottom: 1px solid #E5E7EB !important;
    flex-shrink: 0 !important;
    position: relative !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: white !important;
  }

  .settings-modal .modal-title {
    font-size: 18px !important;
    text-align: center !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 48px !important;
    font-weight: 600 !important;
    color: #0B2F4E !important;
  }

  /* ===== HIDE DESKTOP CLOSE BUTTON ===== */
  .settings-modal .btn-close {
    display: none !important;
  }

  /* ===== MOBILE CLOSE BUTTON (X) ===== */
  .mobile-close-btn {
    position: absolute !important;
    left: 16px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    width: 36px !important;
    height: 36px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: transparent !important;
    border: none !important;
    border-radius: 8px !important;
    cursor: pointer !important;
    padding: 0 !important;
    z-index: 10 !important;
    opacity: 0.8 !important;
    transition: background 0.15s ease !important;
  }

  .mobile-close-btn:active {
    background: #F3F4F6 !important;
    opacity: 1 !important;
  }

  .mobile-close-btn i {
    font-size: 28px !important;
    color: #374151 !important;
    font-weight: 300 !important;
    line-height: 1 !important;
  }

  /* ===== HIDE DESKTOP SIDEBAR ===== */
  .settings-modal .settings-sidebar {
    display: none !important;
  }

  /* ===== MODAL BODY ===== */
  .settings-modal .modal-body {
    padding: 0 !important;
    padding-bottom: env(safe-area-inset-bottom) !important;
    flex: 1 !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    display: block !important;
    -webkit-overflow-scrolling: touch !important;
  }

  .settings-modal .modal-body::-webkit-scrollbar {
    width: 0 !important;
    display: none !important;
  }

  /* ===== SETTINGS CONTENT CONTAINER ===== */
  .settings-modal .settings-content {
    padding: 0 !important;
    padding-right: 0 !important;
    max-height: none !important;
    height: 100% !important;
    overflow-y: visible !important;
    overflow-x: hidden !important;
  }

  .settings-modal .settings-content::-webkit-scrollbar {
    width: 0 !important;
    display: none !important;
  }

  /* ===== MOBILE MENU LIST ===== */
  .mobile-settings-menu {
    display: none;
    flex-direction: column;
    padding: 0;
    padding-bottom: max(40px, env(safe-area-inset-bottom)) !important; /* [YES] Safe bottom space */
    background: white;
    width: 100%;
    min-height: 100%; /* [YES] Fill container */
  }

  .mobile-settings-item {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 16px 20px !important;
    background: white !important;
    border-bottom: 1px solid #F3F4F6 !important;
    cursor: pointer !important;
    text-decoration: none !important;
    color: #0B2F4E !important;
    transition: background 0.15s ease !important;
  }

  .mobile-settings-item:active {
    background: #F9FAFB !important;
  }

  .mobile-settings-item-content {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    flex: 1 !important;
  }

  .mobile-settings-item-icon {
    width: 24px !important;
    height: 24px !important;
    color: #6B7280 !important;
    font-size: 20px !important;
    flex-shrink: 0 !important;
  }

  .mobile-settings-item-text {
    flex: 1 !important;
  }

  .mobile-settings-item-label {
    font-size: 16px !important;
    font-weight: 500 !important;
    color: #0B2F4E !important;
    margin-bottom: 2px !important;
    display: block !important;
  }

  .mobile-settings-item-desc {
    font-size: 13px !important;
    color: #6B7280 !important;
    line-height: 1.3 !important;
    display: block !important;
  }

  .mobile-settings-item-arrow {
    color: #9CA3AF !important;
    font-size: 18px !important;
    flex-shrink: 0 !important;
  }

  /* ===== MENU DIVIDER ===== */
  .mobile-menu-divider {
    height: 3px !important;
    background: #F3F4F6 !important;
    border: none !important;
    margin: 0 !important;
    width: 100% !important;
  }

  /* ===== NAVIGATION LINKS ===== */
  .mobile-settings-item.mobile-nav-link .mobile-settings-item-arrow {
    font-size: 16px !important;
  }

  .mobile-settings-item.mobile-nav-link .mobile-settings-item-desc {
    display: none !important;
  }

  /* ===== HIDE ALL TABS BY DEFAULT ===== */
  .settings-modal .settings-tab {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    overflow: hidden !important;
  }

  /* ===== MOBILE SECTION HEADER (BACK BUTTON) ===== */
  .mobile-section-header {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    padding: 16px 20px !important;
    background: #F9FAFB !important;
    border-bottom: 1px solid #E5E7EB !important;
    cursor: pointer !important;
    position: sticky !important;
    top: 0 !important;
    z-index: 10 !important;
    margin: 0 !important;
  }

  .mobile-section-header:active {
    background: #F3F4F6 !important;
  }

  .mobile-back-arrow {
    font-size: 24px !important;
    color: #0B2F4E !important;
  }

  .mobile-section-title {
    font-size: 18px !important;
    font-weight: 600 !important;
    color: #0B2F4E !important;
  }

  /* ========================================
     STATE CONTROL - MENU vs SECTION
     ======================================== */

  /* MENU STATE */
  #settingsModal.show-menu .mobile-settings-menu {
    display: flex !important;
    visibility: visible !important;
    height: auto !important;
    overflow: visible !important;
  }

  #settingsModal.show-menu .settings-tab {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
  }

  /* SECTION STATE */
  #settingsModal.show-section .mobile-settings-menu {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
  }

  #settingsModal.show-section .settings-tab.active {
    display: block !important;
    visibility: visible !important;
    height: auto !important;
    min-height: calc(100vh - 60px) !important; /* [YES] Minimum height for scroll */
    overflow-y: visible !important; /* [YES] Let parent scroll */
    overflow-x: hidden !important;
    padding: 0 !important;
    padding-bottom: max(60px, env(safe-area-inset-bottom)) !important; /* [YES] Safe bottom clearance */
    background: white !important;
    -webkit-overflow-scrolling: touch !important;
  }

  /* Tab content padding */
  #settingsModal .settings-tab.active > *:not(.mobile-section-header) {
    padding-left: 20px !important;
    padding-right: 20px !important;
  }

  /* First element after header gets top padding */
  #settingsModal .settings-tab.active > .mobile-section-header + * {
    padding-top: 20px !important;
  }

  /* Last element gets bottom padding */
  #settingsModal .settings-tab.active > *:last-child {
    padding-bottom: max(80px, calc(60px + env(safe-area-inset-bottom))) !important; /* [YES] Extra clearance */
  }
  /* ===== ENSURE BUTTONS ARE VISIBLE ===== */
  .settings-modal .btn,
  .settings-modal button[type="submit"],
  .settings-modal button[type="button"] {
    margin-bottom: 20px !important;
  }

  /* ========================================
     TAB-SPECIFIC ADJUSTMENTS
     ======================================== */

  /* GENERAL TAB */
  .settings-modal .settings-row {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 8px !important;
    padding: 12px 20px !important;
    margin-bottom: 0 !important;
  }

  .settings-modal .settings-row-label {
    font-size: 16px !important;
    width: 100% !important;
  }

  .settings-modal .settings-row-value {
    width: 100% !important;
  }

  .settings-modal .form-select,
  .settings-modal .furobox-select {
    width: 100% !important;
  }

  .settings-modal .notifications-section {
    padding: 20px !important;
  }

  .settings-modal .notification-item {
    flex-direction: row !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding: 12px 0 !important;
  }

  .settings-modal .delete-section {
    padding: 20px !important;
  }

  .settings-modal .delete-section-content {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 12px !important;
  }

  .settings-modal .delete-section-text {
    padding-right: 0 !important;
  }

  /* USAGE TAB */
  .settings-modal .usage-header {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 4px !important;
    margin-bottom: 20px !important;
  }

  .settings-modal .usage-item {
    margin-bottom: 16px !important;
  }

  .settings-modal .usage-item-header {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 8px !important;
  }

  .settings-modal .usage-progress {
    width: 100% !important;
    max-width: 100% !important;
  }

  .settings-modal .usage-item-stats {
    justify-content: space-between !important;
    width: 100% !important;
  }

  /* PERSONA TAB */
  .settings-modal .persona-header {
    margin-bottom: 16px !important;
  }

  .settings-modal .persona-description {
    max-width: 100% !important;
  }

  .settings-modal .persona-field-group {
    margin-bottom: 20px !important;
  }

  .settings-modal .persona-textarea {
    width: 100% !important;
    min-height: 120px !important;
    box-sizing: border-box !important;
  }

  .settings-modal .persona-save-btn {
    width: 100% !important;
    padding: 12px !important;
  }

  .settings-modal .persona-choices .choices__inner {
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .settings-modal .saved-personas-section {
    margin-top: 24px !important;
  }

  .settings-modal .persona-list {
    gap: 12px !important;
  }

  .settings-modal .persona-item {
    flex-direction: column !important;
    gap: 12px !important;
  }

  .settings-modal .persona-item-actions {
    width: 100% !important;
    justify-content: flex-end !important;
  }

  /* SUBSCRIPTION TAB */
  #settingsModal.show-section #tab-subscriptions {
    padding: 0 !important;
  }

  #tab-subscriptions > *:not(.mobile-section-header) {
    padding-left: 20px !important;
    padding-right: 20px !important;
  }

  #tab-subscriptions > .mobile-section-header + * {
    padding-top: 20px !important;
  }

  /* PROFILE TAB */
  .settings-modal .profile-info-section {
    margin-bottom: 24px !important;
  }

  .settings-modal .profile-field-row {
    margin-bottom: 16px !important;
  }

  .settings-modal .profile-field-value-wrapper {
    width: 100% !important;
    max-width: 100% !important;
  }

  .settings-modal .Security-section {
    padding-top: 20px !important;
  }

  .settings-modal .profile-danger-section {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 12px !important;
    padding-top: 20px !important;
  }

  .settings-modal .profile-change-password-btn {
    width: 100% !important;
    padding: 10px !important;
    font-size: 14px !important;
  }

  /* ===== PREVENT HORIZONTAL OVERFLOW ===== */
  #settingsModal .modal-dialog,
  #settingsModal .modal-content,
  #settingsModal .modal-body,
  #settingsModal .settings-content,
  #settingsModal .settings-tab {
    overflow-x: hidden !important;
    max-width: 100vw !important;
    max-height: 400vw !important;
  }

  #settingsModal .settings-tab.active * {
    max-width: 100% !important;
  }

  /* ===== RESPONSIVE TEXT ===== */
  .settings-modal .settings-row-label,
  .settings-modal .notification-label,
  .settings-modal .delete-section-title,
  .settings-modal .usage-title,
  .settings-modal .usage-item-name,
  .settings-modal .persona-title,
  .settings-modal .persona-field-label,
  .settings-modal .profile-section-title,
  .settings-modal .profile-field-label {
    font-size: 15px !important;
  }

  .settings-modal .settings-row-value,
  .settings-modal .delete-section-description,
  .settings-modal .usage-date,
  .settings-modal .persona-description,
  .settings-modal .persona-helper-text,
  .settings-modal .profile-helper-text,
  .settings-modal .form-text {
    font-size: 14px !important;
  }

  /* ===== BUTTONS ===== */
  .settings-modal .btn {
    width: 100% !important;
    text-align: center !important;
    min-height: 44px !important;
  }

  .settings-modal .btn-outline-danger,
  .settings-modal .btn-primary {
    padding: 10px 16px !important;
    font-size: 15px !important;
  }

  /* ===== FORM CONTROLS ===== */
  .settings-modal .form-control,
  .settings-modal .form-select,
  .settings-modal textarea {
    font-size: 16px !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  /* ===== CHOICES.JS DROPDOWNS ===== */
  .settings-modal .persona-choices .choices__list--dropdown {
    max-height: 40vh !important;
  }

  .settings-modal .furobox-menu {
    max-height: 40vh !important;
  }

  /* ===== DIVIDERS ===== */
  .settings-modal hr,
  .settings-modal .usage-divider {
    margin: 16px 20px !important;
  }
}
/* Move upgrade button to left in subscription tab */
#tab-subscriptions .btn-upgrade {
  margin-right: auto !important;
  margin-left: 0 !important;
}

/* If it's in a button group or flex container */
#tab-subscriptions .subscription-actions,
#tab-subscriptions .button-group {
  justify-content: flex-start !important;
}
/* Remove hover lift effect from all settings modal buttons */
.settings-modal .btn:hover {
  transform: none !important;
}

.settings-modal .btn:active {
  transform: none !important;
}
/* Subscription Tab Styles */
#tab-subscriptions {
    padding: 0;
}

/* Verification Banner */
.verification-banner {
    background-color: #EFF6FF;
    border: 1px solid #FEF3C7;
    border-radius: 10px;
    padding: 12px 16px;
    margin-bottom: 24px;
    color: black;
    font-size: 14px;
    line-height: 1.5;
}

.verification-time {
    font-weight: 600;
}

/* Page Title */
.subscription-page-title {
    font-size: 18px;
    color: #0B2F4E;
    margin-bottom: 18px;
    letter-spacing: -0.3px;
}

/* Subscription Card */
.subscription-card {
    background: white;
    border: 1px solid #E5E7EB;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
}

.subscription-header {
    margin-bottom: 16px;
}

.subscription-plan-name {
    font-size: 16px;
    font-weight: 600;
    color: #0B2F4E;
    margin: 0;
    letter-spacing: -0.3px;
}

.plan-period {
    font-size: 14px;
    font-weight: 400;
    color: rgba(11, 47, 78, 0.6);
}

.subscription-dates {
    margin-bottom: 16px;
}

.date-text {
    font-size: 12px;
    color: rgba(11, 47, 78, 0.7);
    margin: 2px 0;
}

/* Receipt Button */
.btn-receipt {
    display: inline-block;
    background: white;
    border: 1.5px solid #0B2F4E;
    color: #0B2F4E;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.15s ease;
    letter-spacing: -0.2px;
}

.btn-receipt:hover {
    background-color: #F3F4F6;
    border-color: #0B2F4E;
    color: #0B2F4E;
    text-decoration: none;
}

/* Auto-Renew Card */
.auto-renew-card {
    background: white;
    border: 1px solid #E5E7EB;
    border-radius: 4px;
    padding: 20px;
    margin-bottom: 20px;
}

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

.auto-renew-title {
    font-size: 16px;
    font-weight: 600;
    color: #0B2F4E;
    margin: 0;
    letter-spacing: -0.3px;
}

.badge-enabled {
    background-color: white;
    color: #0B2F4E;
    border: 1.5px solid #0B2F4E;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 13px;
}

.badge-disabled {
    background-color: white;
    color: #0B2F4E;
    border: 1.5px solid #0B2F4E;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 13px;
}

.auto-renew-description {
    margin-bottom: 16px;
}

.renew-text {
    font-size: 12px;
    color: rgba(11, 47, 78, 0.7);
    margin: 2px 0;
    line-height: 1.5;
}

.renew-date {
    font-size: 12px;
    color: rgba(11, 47, 78, 0.7);
    margin: 2px 0;
}

.renew-date strong {
    color: #0B2F4E;
    font-weight: 600;
}

/* Auto-Renew Buttons */
.btn-auto-renew-disable,
.btn-auto-renew-enable {
    background-color: #0B2F4E;
    color: white;
    border: none;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.15s ease;
    letter-spacing: -0.2px;
    width: 35%;
}

.btn-auto-renew-disable:hover,
.btn-auto-renew-enable:hover {
    background-color: #082035;
}

.auto-renew-status {
    margin-top: 12px;
    font-size: 13px;
    color: rgba(11, 47, 78, 0.6);
}

/* Upgrade Button */
.btn-upgrade {
    display: block;
    background-color: #0B2F4E;
    color: white;
    border: none;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 14px;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.15s ease;
    letter-spacing: -0.2px;
    width: 49%;
    max-width: 105px;
    margin: -10px auto;
}

.btn-upgrade:hover {
    background-color: #082035;
    color: white;
    text-decoration: none;
}

/* ===== LOGOUT BUTTON ===== */
.mobile-logout-item {
  color: #EF4444 !important; /* Red color for logout */
}

.mobile-logout-item .mobile-settings-item-icon {
  color: #EF4444 !important;
}

.mobile-logout-item .mobile-settings-item-label {
  color: #EF4444 !important;
}

.mobile-logout-item:active {
  background: #FEF2F2 !important;
}


/* Force scrolling on mobile tabs */
@media (max-width: 768px) {
  #settingsModal.show-section .settings-tab.active {
    position: relative !important;
    overflow-y: scroll !important; /* Force scroll */
    overflow-x: hidden !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important; /* Remove max-height restriction */
  }

  /* Ensure modal body allows scrolling */
  #settingsModal.show-section .modal-body {
    overflow-y: auto !important;
    overflow-x: hidden !important;
    height: 100% !important;
    -webkit-overflow-scrolling: touch !important;
  }

  /* Remove overflow restrictions from modal dialog */
  #settingsModal.show-section .modal-dialog,
  #settingsModal.show-section .modal-content {
    overflow: visible !important;
    height: 100vh !important;
  }

  /* Ensure settings-content doesn't block scroll */
  #settingsModal.show-section .settings-content {
    overflow: visible !important;
    height: auto !important;
    max-height: none !important;
  }

  /* Fix for tabs with back headers */
  #settingsModal.show-section .settings-tab.active > .mobile-section-header {
    position: sticky !important;
    top: 0 !important;
    z-index: 10 !important;
  }
}

/* Action modals (delete, confirm, etc.) - ABOVE settings */
.action-modal,
#deleteAllChatsModal,
#deleteConfirmModal,
#deleteProjectModal,
#deleteFileModal,
#editPersonaModal,
#changePasswordModal {
  z-index: 1070 !important;
}

/* Remove graying and red hover effect from name field */
#displayNameInput:disabled {
  opacity: 1 !important;
  cursor: text !important;
  color: #0B2F4E !important;
}

#displayNameInput:disabled:hover {
  background-color: transparent !important;
  cursor: text !important;
}

/* Ensure no red circle or invalid styling */
#displayNameInput:disabled:invalid,
#displayNameInput:disabled:hover:invalid {
  box-shadow: none !important;
  outline: none !important;
}

/* Override any default disabled input styling */
.profile-field-value-wrapper input:disabled {
  -webkit-text-fill-color: #0B2F4E !important;
  opacity: 1 !important;
}

@media (max-width: 768px) {

  /* ===== FIX: Add bottom padding to mobile menu ===== */
  .mobile-settings-menu {
    display: none;
    flex-direction: column;
    padding: 0;
    padding-bottom: max(100px, calc(60px + env(safe-area-inset-bottom))) !important; /* [YES] Increased clearance */
    background: white;
    width: 100%;
    min-height: 100%; /* [YES] Fill container */
  }

  /* ===== ENSURE MODAL BODY CAN SCROLL ===== */
  #settingsModal.show-menu .modal-body {
    overflow-y: auto !important;
    overflow-x: hidden !important;
    -webkit-overflow-scrolling: touch !important;
    height: 100% !important;
  }

  /* ===== ENSURE SETTINGS CONTENT ALLOWS SCROLL ===== */
  #settingsModal.show-menu .settings-content {
    overflow-y: visible !important;
    height: auto !important;
    min-height: calc(100vh - 60px) !important;
  }
}

/* Add to settings_modal.css */

/* Verification Steps */
.verification-step {
  transition: all 0.3s ease;
}

/* OTP Input Styling */
#otpInput {
  text-align: center;
  font-size: 24px !important;
  letter-spacing: 8px !important;
  font-weight: 600 !important;
  padding: 12px !important;
}

#otpInput::placeholder {
  letter-spacing: 8px;
  opacity: 0.3;
}

/* Link Button */
.btn-link {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  text-decoration: underline;
  font-size: inherit;
}

.btn-link:hover {
  opacity: 0.8;
}

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

/* Email field when empty - red warning */
.profile-field-row:has(#emailInput) .profile-helper-text {
  color: #DC2626 !important;
  font-weight: 500 !important;
}

/* OTP Input Styling */
#otpInput {
  text-align: left !important; /* [YES] Changed from center */
  font-size: 24px !important;
  letter-spacing: 8px !important;
  font-weight: 600 !important;
  padding: 12px 16px !important;
  font-family: 'Courier New', monospace !important; /* Monospace for better digit alignment */
}

#otpInput::placeholder {
  letter-spacing: 8px;
  opacity: 0.3;
  text-align: left !important;
}

/* Remove letter spacing after last character */
#otpInput:placeholder-shown {
  text-align: center;
}
/* Delete Account Modal Styling */
#deleteAccountModal .field-error {
    color: #dc3545;
    font-size: 13px;
    margin-top: 4px;
    display: block;
}

#deleteAccountModal .form-control:focus {
    border-color: #1B91F8;
    box-shadow: 0 0 0 3px rgba(27, 145, 248, 0.1);
}

/* Confirmation input specific styles */
#deleteAccountConfirmInput {
    font-weight: 400;
    letter-spacing: 0.5px;
}

/* Danger alert styling */
#deleteAccountModal .alert-danger {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #991b1b;
    padding: 12px 16px;
    border-radius: 8px;
}

#deleteAccountModal code {
    background: #f3f4f6;
    padding: 2px 6px;
    border-radius: 4px;
    color: #dc2626;
    font-weight: 400;
}
