.profile-container {
  width: 100%;
  min-height: 80vh;
  background-color: var(--bg-base);
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 1.5rem;
  box-sizing: border-box;
}

.app-card {
  background-color: var(--bg-surface);
  border-radius: 1.25rem;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
  padding: 1rem 1.75rem;
  width: 100%;
  max-width: 26rem;
  margin: 0 auto;
}

/* هدر */
.profile-header {
  text-align: center;
  margin-bottom: 1.5rem;
}

.profile-header h2 {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 700;
}

.profile-subtitle {
  /* margin: 0.35rem 0 0; */
  font-size: 0.85rem;
  color: var(--text-muted, #8a8f98);
}

/* آواتار */
.avatar-section {
  display: flex;
  justify-content: center;
  margin-bottom: 1rem;
}

.avatar-wrapper {
  position: relative;
  width: 84px;
  height: 84px;
}

.avatar-circle {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-primary, #6366f1), var(--accent-secondary, #8b5cf6));
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 3px solid var(--bg-surface);
  box-shadow: 0 0 0 2px var(--border-color, rgba(0, 0, 0, 0.08));
}

.avatar-circle img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.avatar-fallback {
  color: #fff;
  font-size: 1.75rem;
  font-weight: 700;
}

.avatar-edit-btn {
  position: absolute;
  bottom: -2px;
  left: -2px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--bg-surface);
  border: 1px solid var(--border-color, rgba(0, 0, 0, 0.1));
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--accent-primary, #6366f1);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
  transition: transform 0.15s ease;
}

.avatar-edit-btn:hover {
  transform: scale(1.08);
}

/* فرم */
.profile-form {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.input-wrapper {
  position: relative;
  display: flex;  
  justify-content: space-between;
  align-items: center;
    height: max-content;
    border: 1px solid var(--border-glass, #e2e2e2);
    background: var(--bg-base);
    padding: 0.1rem 0.5rem;
    border-radius: 0.65rem;
}

.input-icon {
  /* position: absolute;
  right: 0.8rem; */
  color: var(--text-muted, #9ca3af);
  pointer-events: none;
}

.input-wrapper input {
  width: 100%;
  height: 44px;
  padding-right: 40px;
  font-size: 0.9rem;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  border: none;
}

.input-wrapper:focus {
  outline: none;
  border-color: var(--accent-primary, #6366f1);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}

/* دکمه ذخیره */
.btn-submit {
  width: 100%;
  padding: 0.75rem;
  border-radius: 0.65rem;
  font-weight: 600;
  font-size: 0.95rem;
  margin-top: 0.4rem;
}

@media (max-width: 768px) {
  .app-card {
    width: 100%;
    height: 100%;
    border-radius: 0;
    box-shadow: none;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
  #profile-page {
    padding: 0;
    margin: 0px;
    
  }
  .profile-container {
    padding: 0;
    height: max-content;
  }
}