.profile-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 8px 0 28px;
}

.profile-avatar {
  width: 80px;
  height: 80px;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, #191348, #574bbc);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Sora', sans-serif;
  font-size: 1.75rem;
  font-weight: 800;
  color: #fff;
  /* border: 3px solid rgba(108, 99, 255, 0.3); */
  /* box-shadow: 0 0 24px rgba(108, 99, 255, 0.3); */
}

.profile-name {
  font-family: 'Sora', sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
}

.profile-level {
  font-size: 0.875rem;
  color: var(--text-muted);
}

.profile-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  background: var(--bg-card2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 24px;
}

.profile-stat {
  padding: 16px 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  border-right: 1px solid var(--border);
}

.profile-stat:last-child {
  border-right: none;
}

.profile-stat-val {
  font-family: 'Sora', sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
}

.profile-stat-label {
  font-size: 0.6875rem;
  color: var(--text-muted);
  font-weight: 500;
}

.settings-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.settings-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 14px;
  background: var(--bg-card2);
  border: 1px solid transparent;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition);
}

.settings-item:hover {
  background: var(--bg-card);
  border-color: var(--border);
}

.settings-item-icon {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
}

.settings-item-text {
  flex: 1;
}

.settings-item-text h4 {
  font-size: 0.9375rem;
  font-weight: 600;
}

.settings-item-text p {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-top: 1px;
}

.settings-item-arrow {
  color: var(--text-muted);
}

.settings-section-title {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 20px 0 10px 4px;
}

/* ================= EDIT PROFILE SCREEN STYLES ================= */
.edit-profile-screen-container {
  display: flex;
  flex-direction: column;
  gap: 24px;
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
  padding: 30px 20px 80px;
  color: #fff;
  animation: fadeIn 0.3s ease;
}

.edit-profile-header {
  display: flex;
  align-items: center;
  gap: 20px;
}

.btn-circle-back {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  background: var(--bg-card2);
  border: 1px solid var(--border);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition);
}

.btn-circle-back:hover {
  background: var(--bg-card);
  transform: translateX(-2px);
}

.edit-profile-header-text h1 {
  font-family: 'Sora', sans-serif;
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.edit-profile-header-text p {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-top: 4px;
}

.edit-profile-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 24px;
  align-items: start;
}

@media (max-width: 820px) {
  .edit-profile-grid {
    grid-template-columns: 1fr;
  }
}

.edit-profile-col {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.edit-profile-card {
  background: var(--bg-card2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.edit-profile-card.violet-gradient-card {
  background: linear-gradient(135deg, rgba(25, 19, 72, 0.6) 0%, rgba(87, 75, 188, 0.2) 100%);
  border-color: rgba(108, 99, 255, 0.25);
  backdrop-filter: blur(12px);
}

.card-title {
  font-family: 'Sora', sans-serif;
  font-size: 0.9375rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 20px;
}

/* Profile Photo Layout */
.profile-photo-layout {
  display: flex;
  align-items: center;
  gap: 24px;
}

.profile-avatar-container {
  position: relative;
  width: 90px;
  height: 90px;
}

.profile-avatar-large {
  width: 100%;
  height: 100%;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, #3a2baf, #6c63ff);
  /* border: 3px solid rgba(108, 99, 255, 0.4); */
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Sora', sans-serif;
  font-size: 2.25rem;
  font-weight: 800;
  color: #fff;
  overflow: hidden;
  /* box-shadow: 0 4px 20px rgba(108, 99, 255, 0.25); */
}

.profile-avatar-large img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.avatar-edit-badge {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 28px;
  height: 28px;
  border-radius: var(--radius-full);
  background: #3a2baf;
  border: 2px solid var(--bg-card2);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition);
}

.avatar-edit-badge:hover {
  background: var(--purple-main);
  transform: scale(1.1);
}

.profile-photo-details h2 {
  font-family: 'Sora', sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
}

.profile-photo-details p {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-top: 4px;
  margin-bottom: 12px;
}

.btn-change-photo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(108, 99, 255, 0.15);
  border: 1px solid rgba(108, 99, 255, 0.3);
  border-radius: var(--radius-md);
  color: #fff;
  font-size: 0.8125rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
}

.btn-change-photo:hover {
  background: rgba(108, 99, 255, 0.25);
  border-color: var(--purple-main);
}

/* Input Fields Groups */
.input-group {
  display: flex;
  align-items: center;
  gap: 16px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 10px 16px;
  margin-bottom: 16px;
  transition: all var(--transition);
}

.input-group:focus-within {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--purple-main);
  box-shadow: 0 0 0 2px rgba(108, 99, 255, 0.15);
}

.input-group.textarea-group {
  align-items: flex-start;
}

.input-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  min-width: 20px;
}

.input-icon.textarea-icon {
  margin-top: 6px;
}

.input-field-wrapper {
  display: flex;
  flex-direction: column;
  flex: 1;
  position: relative;
}

.input-label {
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  margin-bottom: 2px;
}

.edit-input, .edit-textarea, .edit-select {
  background: transparent;
  border: none;
  color: #fff;
  font-family: inherit;
  font-size: 0.9375rem;
  font-weight: 500;
  width: 100%;
  padding: 2px 0;
  outline: none;
}

.edit-textarea {
  resize: none;
  min-height: 70px;
  padding-bottom: 12px;
}

.textarea-counter {
  position: absolute;
  bottom: -6px;
  right: 0;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.edit-select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg fill='white' height='24' viewBox='0 0 24 24' width='24' xmlns='http://www.w3.org/2000/svg'><path d='M7 10l5 5 5-5z'/><path d='M0 0h24v24H0z' fill='none'/></svg>");
  background-repeat: no-repeat;
  background-position: right center;
  padding-right: 24px;
}

.edit-select option {
  background: #181630;
  color: #fff;
}

/* Action Rows List */
.action-rows-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.action-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 14px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid transparent;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition);
}

.action-row:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--border);
}

.action-row-icon {
  width: 34px;
  height: 34px;
  border-radius: var(--radius-md);
  background: rgba(108, 99, 255, 0.1);
  color: var(--purple-main);
  display: flex;
  align-items: center;
  justify-content: center;
}

.action-row.delete-action .action-row-icon {
  background: rgba(255, 77, 106, 0.1);
  color: var(--danger);
}

.action-row-text {
  flex: 1;
}

.action-row-text h4 {
  font-size: 0.875rem;
  font-weight: 600;
}

.action-row-arrow {
  color: var(--text-muted);
  display: flex;
  align-items: center;
  transition: transform var(--transition);
}

.action-row-arrow.rotated {
  transform: rotate(90deg);
}

/* Expandable Panel for Change Password */
.expandable-panel {
  background: rgba(0, 0, 0, 0.15);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px;
  margin-top: 2px;
  margin-bottom: 8px;
  animation: slideDown 0.25s ease-out;
}

.password-fields-inner {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.sub-input-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.sub-input-field label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
}

.sub-edit-input {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  color: #fff;
  font-size: 0.875rem;
  outline: none;
  transition: all var(--transition);
}

.sub-edit-input:focus {
  border-color: var(--purple-main);
}

/* Bottom Actions Panel */
.edit-profile-actions {
  display: flex;
  justify-content: flex-end;
  gap: 16px;
  margin-top: 12px;
  padding: 16px 0;
  border-top: 1px solid var(--border);
}

.btn-cancel {
  padding: 12px 24px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: #fff;
  font-family: inherit;
  font-size: 0.9375rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
}

.btn-cancel:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--text-muted);
}

.btn-save {
  padding: 12px 28px;
  background: linear-gradient(135deg, #1e1980 0%, #11075a 100%);
  border: none;
  border-radius: var(--radius-md);
  color: #fff;
  font-family: inherit;
  font-size: 0.9375rem;
  font-weight: 600;
  cursor: pointer;
  /* box-shadow: 0 4px 15px rgba(108, 99, 255, 0.3); */
  transition: all var(--transition);
}

.btn-save:hover {
  transform: translateY(-1px);
  /* box-shadow: 0 6px 20px rgba(108, 99, 255, 0.4); */
}

.text-danger {
  color: var(--danger) !important;
}

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

/* Custom Modal Overlay */
.custom-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  animation: fadeInModal 0.25s ease-out;
}

.custom-modal-content {
  background: var(--bg-card2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  width: 95%;
  max-width: 480px;
  padding: 24px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4);
  display: flex;
  flex-direction: column;
  gap: 20px;
  animation: scaleUpModal 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
  color: #fff;
}

.custom-modal-header h3 {
  font-family: 'Sora', sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 6px;
}

.custom-modal-header p {
  font-size: 0.875rem;
  color: var(--text-muted);
}

.admin-choice-options {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.admin-choice-btn {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  cursor: pointer;
  text-align: left;
  transition: all var(--transition);
  color: #fff;
  width: 100%;
}

.admin-choice-btn:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--purple-main);
  transform: translateY(-2px);
}

.admin-choice-btn.vocab-choice:hover {
  border-color: var(--success);
}

.admin-choice-btn.feedback-choice:hover {
  border-color: #EC4899;
}

.admin-choice-btn.content-choice:hover {
  border-color: #8b80f9;
}


.choice-icon {
  width: 44px;
  height: 44px;
  min-width: 44px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
}

.choice-text h4 {
  font-size: 0.9375rem;
  font-weight: 600;
  margin-bottom: 2px;
}

.choice-text p {
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.3;
}

.btn-close-modal {
  padding: 12px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: #fff;
  font-weight: 600;
  font-size: 0.875rem;
  cursor: pointer;
  transition: all var(--transition);
  font-family: inherit;
}

.btn-close-modal:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--text-muted);
}

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

@keyframes scaleUpModal {
  from { opacity: 0; transform: scale(0.9); }
  to { opacity: 1; transform: scale(1); }
}


