/* =========================================================
   ACCOUNT PAGE
========================================================= */

.account-page {
  padding: 32px;
  animation: fadeIn 0.25s ease;
  max-width: 760px;
}

.account-header h1 {
  font-size: 24px;
  margin-bottom: 6px;
}

.account-header p {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 28px;
}

/* =========================================================
   PROFILE HERO
========================================================= */

.profile-hero {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 30px;
}

.profile-avatar {
  width: 82px;
  height: 82px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--text-reverse);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  font-weight: 600;
  box-shadow: 0 0 30px rgba(212,175,55,0.35);
  transition: 0.3s ease;
}

.profile-avatar:hover {
  transform: scale(1.06);
}

.profile-meta h2 {
  font-size: 18px;
  margin-bottom: 4px;
}

.profile-role {
  font-size: 12px;
  color: var(--text-muted);
}

/* =========================================================
   SECTION CARDS
========================================================= */

.section-card {
  background: var(--panel);
  border-radius: 16px;
  padding: 28px;
  border: 1px solid var(--border);
  margin-bottom: 28px;
  transition: 0.3s ease;
}

.section-card:hover {
  border-color: var(--accent);
  box-shadow: 0 0 25px rgba(212,175,55,0.15);
}

.section-title {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 22px;
  color: var(--accent);
}

.section-title.security {
  color: #ff9800;
}

/* =========================================================
   FLOATING INPUTS
========================================================= */

.form-group {
  margin-bottom: 18px;
}

.form-group.floating {
  position: relative;
}

.form-group.floating input {
  width: 100%;
  padding: 14px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.02);
  color: var(--text-main);
  font-size: 14px;
  transition: 0.25s ease;
}

.form-group.floating input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(212,175,55,0.08);
  outline: none;
}

.form-group.floating label {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 13px;
  color: var(--text-muted);
  pointer-events: none;
  transition: 0.25s ease;
}

.form-group.floating input:focus + label,
.form-group.floating input:not(:placeholder-shown) + label {
  top: 0;
  transform: translateY(-50%) scale(0.85);
  background: var(--panel);
  padding: 0 6px;
  color: var(--accent);
}

/* =========================================================
   CURRENT EMAIL DISPLAY
========================================================= */

.current-email-display {
  font-size: 13px;
  margin-bottom: 18px;
  color: var(--text-muted);
}

.current-email-display strong {
  color: var(--text-main);
}

.verified-badge {
  margin-left: 10px;
  font-size: 11px;
  padding: 4px 10px;
  border-radius: 20px;
  background: rgba(46,204,113,0.15);
  color: #2ecc71;
  font-weight: 600;
  border: 1px solid rgba(46,204,113,0.4);
}

.verified-badge.hidden {
  display: none;
}

/* =========================================================
   BUTTONS
========================================================= */

.form-actions {
  margin-top: 14px;
}

.btn {
  padding: 10px 22px;
  border-radius: 10px;
  font-size: 13px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: 0.25s ease;
}

.btn.primary {
  background: var(--accent);
  color: var(--text-reverse);
}

.btn.primary:hover {
  box-shadow: 0 0 20px rgba(212,175,55,0.4);
}

.btn.secondary {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-main);
}

.btn.secondary:hover {
  border-color: var(--accent);
}

.btn.danger {
  background: rgba(217,83,79,0.15);
  color: #d9534f;
  border: 1px solid rgba(217,83,79,0.4);
}

/* =========================================================
   SECURITY PANEL
========================================================= */

.security-panel {
  background: var(--panel);
  padding: 28px;
  border-radius: 16px;
  border: 1px solid var(--border);
  margin-bottom: 28px;
}

.security-panel h3 {
  margin-bottom: 18px;
  color: var(--accent);
}

.security-item {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
}

.security-item:last-child {
  border-bottom: none;
}

.status {
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
}

.status.good {
  background: rgba(46,204,113,0.15);
  color: #2ecc71;
}

.status.medium {
  background: rgba(255,193,7,0.15);
  color: #ffc107;
}

.status.warning {
  background: rgba(255,82,82,0.15);
  color: #ff5252;
}

/* =========================================================
   PASSWORD STRENGTH
========================================================= */

.password-section {
  margin-bottom: 40px;
}

.password-section input {
  width: 100%;
  padding: 14px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.02);
  color: var(--text-main);
  margin-top: 8px;
}

.password-strength {
  height: 6px;
  background: var(--border);
  border-radius: 6px;
  margin-top: 8px;
  overflow: hidden;
}

.strength-bar {
  height: 100%;
  width: 0%;
  transition: 0.3s ease;
}

/* =========================================================
   OTP MODAL
========================================================= */

.otp-modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999;
}

.otp-modal.hidden {
  display: none;
}

.otp-modal-content {
  background: var(--panel);
  padding: 36px 30px;
  border-radius: 18px;
  width: 100%;
  max-width: 400px;
  border: 1px solid var(--border);
  text-align: center;
  box-shadow: 0 20px 50px rgba(0,0,0,0.4);
}

.otp-modal-content h2 {
  margin-bottom: 10px;
}

.otp-modal-content p {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.otp-input {
  width: 100%;
  padding: 16px;
  font-size: 22px;
  letter-spacing: 8px;
  text-align: center;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.03);
  color: var(--accent);
  margin-bottom: 20px;
  transition: 0.25s ease;
}

.otp-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(212,175,55,0.08);
  outline: none;
}

.otp-actions {
  display: flex;
  gap: 10px;
  justify-content: center;
}

.otp-timer {
  margin-top: 14px;
  font-size: 12px;
  color: var(--text-muted);
}

/* =========================================================
   ANIMATION
========================================================= */

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}