/* ==========================================================================
   SD LEARNING CENTER — LOGIN & AUTHENTICATION STYLESHEET
   Consistent with public website tokens from index.html
   ========================================================================== */

:root {
  --bg-white: #ffffff;
  --bg-soft: #f0f7ff;
  --bg-alt: #f8fafc;
  --bg-canvas: #f1f5f9;

  --primary: #2563eb;
  --primary-hover: #1d4ed8;
  --primary-light: #eff6ff;
  --primary-border: #bfdbfe;
  --secondary: #0ea5e9;
  --accent: #f59e0b;
  --accent-hover: #d97706;

  --orange: #ea580c;
  --orange-light: #fff7ed;

  --success: #10b981;
  --success-light: #ecfdf5;
  --success-border: #a7f3d0;

  --danger: #dc2626;
  --danger-light: #fef2f2;
  --danger-border: #fecaca;
  --danger-text: #991b1b;

  --text-main: #0f172a;
  --text-muted: #475569;
  --text-light: #64748b;

  --border-color: #e2e8f0;
  --border-focus: #93c5fd;

  --footer-bg: #1f2937;
  --footer-text: #9ca3af;
  --footer-heading: #ffffff;

  --shadow-sm: 0 1px 2px 0 rgba(15, 23, 42, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(15, 23, 42, 0.07), 0 2px 4px -1px rgba(15, 23, 42, 0.04);
  --shadow-lg: 0 10px 15px -3px rgba(15, 23, 42, 0.08), 0 4px 6px -2px rgba(15, 23, 42, 0.03);
  --shadow-xl: 0 20px 25px -5px rgba(15, 23, 42, 0.1), 0 10px 10px -5px rgba(15, 23, 42, 0.04);

  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-2xl: 1.5rem;
  --radius-full: 9999px;

  --header-height: 68px;
  --transition-speed: 200ms;
  --transition-ease: cubic-bezier(0.16, 1, 0.3, 1);
  --max-width: 1280px;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background-color: var(--bg-canvas);
  background-image:
    radial-gradient(at 0% 0%, rgba(219, 234, 254, 0.45) 0px, transparent 50%),
    radial-gradient(at 100% 100%, rgba(254, 243, 199, 0.3) 0px, transparent 50%),
    linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
  background-attachment: fixed;
  color: var(--text-main);
  line-height: 1.55;
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  width: 100%;
  -webkit-font-smoothing: antialiased;
}

body.body-locked {
  overflow: hidden !important;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

ul, ol {
  list-style: none;
}

img, svg {
  display: block;
  max-width: 100%;
}

/* Accessibility: Skip Link */
.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  background: var(--primary);
  color: #ffffff;
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-md);
  z-index: 9999;
  font-weight: 600;
  transition: top var(--transition-speed) var(--transition-ease);
}

.skip-link:focus {
  top: 1rem;
}

:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

/* ==========================================================================
   AUTH LOADING OVERLAY
   ========================================================================== */
.auth-loading-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(255, 255, 255, 0.88);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  z-index: 99999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  transition: opacity 250ms var(--transition-ease), visibility 250ms var(--transition-ease);
}

.auth-loading-overlay.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loader-ring {
  width: 50px;
  height: 50px;
  border: 4px solid #dbeafe;
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

.loader-text {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-main);
  letter-spacing: -0.01em;
}

/* ==========================================================================
   HEADER & NAVIGATION
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  background-color: rgba(255, 255, 255, 0.92);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.9);
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.03);
  z-index: 1000;
  display: flex;
  align-items: center;
}

.header-container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  min-width: 0;
}

.brand-logo {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  flex-shrink: 0;
}

.brand-text {
  font-size: clamp(1.15rem, 2.5vw, 1.35rem);
  font-weight: 850;
  letter-spacing: -0.025em;
  line-height: 1.2;
  white-space: nowrap;
}

.brand-sd { color: var(--primary); }
.brand-learning { color: var(--text-main); margin: 0 2px; }
.brand-center { color: var(--accent); }
.brand-sdlc-desktop { display: inline-block; }
.brand-sdlc-mobile { display: none; }

.portal-badge-title {
  display: inline-flex;
  align-items: center;
  padding: 0.22rem 0.65rem;
  background-color: var(--primary-light);
  color: var(--primary);
  font-size: 0.75rem;
  font-weight: 750;
  border-radius: var(--radius-sm);
  border: 1px solid var(--primary-border);
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  flex-shrink: 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.55rem 1.15rem;
  font-size: 0.875rem;
  font-weight: 650;
  border-radius: var(--radius-md);
  transition: all var(--transition-speed) var(--transition-ease);
  white-space: nowrap;
  cursor: pointer;
  line-height: 1.2;
  border: 1px solid transparent;
}

.btn-outline {
  border: 1px solid var(--border-color);
  color: var(--text-main);
  background-color: var(--bg-white);
  box-shadow: var(--shadow-sm);
}

.btn-outline:hover {
  background-color: var(--bg-soft);
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-1px);
}

.btn-primary {
  background-color: var(--primary);
  color: #ffffff;
  border: 1px solid var(--primary);
  box-shadow: 0 2px 6px rgba(37, 99, 235, 0.25);
}

.btn-primary:hover {
  background-color: var(--primary-hover);
  border-color: var(--primary-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.35);
}

.btn-secondary-dark {
  background-color: #374151;
  color: #ffffff;
  border: 1px solid #374151;
  box-shadow: var(--shadow-sm);
}

.btn-secondary-dark:hover {
  background-color: #1f2937;
  border-color: #1f2937;
  transform: translateY(-1px);
}

.btn-header-back {
  padding: 0.42rem 0.85rem;
  font-size: 0.825rem;
}

@media (max-width: 640px) {
  :root { --header-height: 58px; }
  .site-header { height: 58px; }
  .brand-sdlc-desktop { display: none; }
  .brand-sdlc-mobile { display: inline-block; }
  .header-container { padding: 0 0.85rem; }
  .brand-text { font-size: 1.15rem; }
  .portal-badge-title { font-size: 0.7rem; padding: 0.15rem 0.5rem; }
  .btn-header-back { padding: 0.38rem 0.7rem; font-size: 0.785rem; }
}

/* ==========================================================================
   MAIN LAYOUT & TWO-COLUMN GRID
   ========================================================================== */
main {
  flex: 1;
  width: 100%;
  padding: clamp(1.75rem, 4vw, 3rem) 1rem 4rem 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.login-wrapper {
  width: 100%;
  max-width: 1060px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.75rem;
  align-items: start;
}

@media (min-width: 868px) {
  .login-wrapper {
    grid-template-columns: 1.12fr 0.88fr;
    gap: 2rem;
  }
}

.login-card {
  background-color: var(--bg-white);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-2xl);
  padding: 2.25rem 1.75rem;
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  position: relative;
  width: 100%;
}

@media (min-width: 480px) {
  .login-card {
    padding: 2.5rem 2.25rem;
  }
}

.login-header {
  text-align: center;
  margin-bottom: 1.75rem;
}

.login-icon-badge {
  width: 60px;
  height: 60px;
  border-radius: var(--radius-xl);
  background-color: var(--bg-soft);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.15rem auto;
  border: 1px solid var(--primary-border);
  box-shadow: var(--shadow-sm);
}

.login-title {
  font-size: clamp(1.5rem, 3.5vw, 1.85rem);
  font-weight: 850;
  color: var(--text-main);
  letter-spacing: -0.025em;
  margin-bottom: 0.35rem;
  line-height: 1.25;
}

.login-subtitle {
  font-size: 0.925rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ==========================================================================
   ALERT / FEEDBACK NOTIFICATION BOX
   ========================================================================== */
.alert-box {
  padding: 0.95rem 1.15rem;
  border-radius: var(--radius-lg);
  font-size: 0.885rem;
  font-weight: 500;
  margin-bottom: 1.5rem;
  display: none;
  align-items: flex-start;
  gap: 0.75rem;
  line-height: 1.5;
  box-shadow: var(--shadow-sm);
  scroll-margin-top: calc(var(--header-height) + 20px);
  outline: none;
}

.alert-box:focus-visible {
  outline: 3px solid rgba(220, 38, 38, 0.4);
}

.alert-icon {
  flex-shrink: 0;
  margin-top: 0.1rem;
}

.alert-content-wrap {
  display: flex;
  flex-direction: column;
  width: 100%;
  min-width: 0;
}

.alert-text {
  white-space: pre-line;
  word-break: break-word;
}

.alert-error {
  background-color: var(--danger-light);
  color: var(--danger-text);
  border: 1px solid var(--danger-border);
}
.alert-error .alert-icon {
  color: var(--danger);
}

.alert-success {
  background-color: var(--success-light);
  color: #065f46;
  border: 1px solid var(--success-border);
}
.alert-success .alert-icon {
  color: var(--success);
}

.alert-info {
  background-color: var(--primary-light);
  color: #1e40af;
  border: 1px solid var(--primary-border);
}
.alert-info .alert-icon {
  color: var(--primary);
}

.alert-actions {
  margin-top: 0.5rem;
}

.resend-verification-btn {
  font-size: 0.825rem;
  color: var(--primary);
  font-weight: 700;
  text-decoration: underline;
  cursor: pointer;
  padding: 0;
  background: none;
  border: none;
  display: inline-block;
  line-height: 1.4;
}

.resend-verification-btn:hover {
  color: var(--primary-hover);
}

/* ==========================================================================
   SOCIAL BUTTONS & FORM INPUTS
   ========================================================================== */
.social-auth-group {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin-bottom: 1.5rem;
}

.btn-social {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 0.72rem 1.25rem;
  font-size: 0.935rem;
  font-weight: 650;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  background-color: var(--bg-white);
  color: var(--text-main);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-speed) var(--transition-ease);
}

.btn-social:hover:not(:disabled) {
  background-color: var(--bg-alt);
  border-color: #cbd5e1;
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-social:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  background-color: #f1f5f9;
}

.divider {
  display: flex;
  align-items: center;
  text-align: center;
  margin: 1.5rem 0;
  color: var(--text-light);
  font-size: 0.8rem;
  font-weight: 750;
  letter-spacing: 0.04em;
}

.divider::before,
.divider::after {
  content: '';
  flex: 1;
  border-bottom: 1px solid var(--border-color);
}

.divider span {
  padding: 0 0.85rem;
}

.email-section-heading {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 1rem;
  text-align: left;
  letter-spacing: -0.01em;
}

.form-group {
  margin-bottom: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-label {
  font-size: 0.875rem;
  font-weight: 650;
  color: var(--text-main);
}

.input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}

.form-input {
  width: 100%;
  padding: 0.75rem 1rem;
  font-size: 0.95rem;
  font-family: inherit;
  color: var(--text-main);
  background-color: var(--bg-white);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.04);
  transition: all var(--transition-speed) var(--transition-ease);
}

.form-input::placeholder {
  color: var(--text-light);
  opacity: 0.8;
}

.form-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.password-toggle-btn {
  position: absolute;
  right: 0.75rem;
  background: none;
  border: none;
  color: var(--text-light);
  padding: 0.35rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: color var(--transition-speed);
}

.password-toggle-btn:hover {
  color: var(--text-main);
}

.form-controls-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  font-size: 0.85rem;
}

.checkbox-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-muted);
  cursor: pointer;
  user-select: none;
  font-weight: 550;
}

.checkbox-label input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--primary);
  cursor: pointer;
  border-radius: var(--radius-sm);
}

.forgot-link, .mode-toggle-link {
  color: var(--primary);
  font-weight: 650;
  transition: color var(--transition-speed);
  font-size: 0.875rem;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
}

.forgot-link:hover, .mode-toggle-link:hover {
  color: var(--primary-hover);
  text-decoration: underline;
}

.btn-submit {
  width: 100%;
  padding: 0.85rem 1.5rem;
  font-size: 1rem;
  font-weight: 750;
}

.setup-password-wrap {
  margin-top: 1.25rem;
  text-align: center;
}

/* ==========================================================================
   PHONE AUTH & RESPONSIVE RECAPTCHA STYLES
   ========================================================================== */
#phoneAuthDivider {
  margin: 1.75rem 0 1.25rem 0;
}

.phone-input-row {
  display: flex;
  gap: 0.5rem;
}

.phone-cc-input {
  width: 85px;
  text-align: center;
  font-weight: 650;
  flex-shrink: 0;
}

.phone-num-input {
  flex: 1;
  min-width: 0;
}

.btn-send-otp {
  width: 100%;
  margin-top: 0.65rem;
  justify-content: center;
  font-weight: 650;
  padding: 0.7rem;
}

#otpVerificationGroup {
  margin-top: 1rem;
}

.otp-code-input {
  letter-spacing: 0.25em;
  font-size: 1.1rem;
  font-weight: 700;
  text-align: center;
}

.otp-actions-row {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.65rem;
}

.btn-verify-otp {
  flex: 1;
  justify-content: center;
  padding: 0.7rem;
}

.btn-resend-otp {
  justify-content: center;
  padding: 0.7rem 1.25rem;
}

/* Responsive reCAPTCHA Box */
.recaptcha-responsive-box {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 0.75rem;
  min-height: 0;
  overflow-x: auto;
  overflow-y: hidden;
}

.recaptcha-responsive-box > div {
  margin: 0 auto !important;
  max-width: 100% !important;
}

@media (max-width: 360px) {
  .recaptcha-responsive-box {
    transform: scale(0.9);
    transform-origin: center center;
    margin: 0.35rem 0;
  }
}

.grecaptcha-badge {
  z-index: 9999 !important;
}

.apply-redirect-footer {
  margin-top: 1.75rem;
  padding-top: 1.25rem;
  border-top: 1px dashed var(--border-color);
  text-align: center;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.apply-redirect-link {
  color: var(--primary);
  font-weight: 700;
  margin-left: 0.25rem;
  transition: color var(--transition-speed);
}

.apply-redirect-link:hover {
  color: var(--primary-hover);
  text-decoration: underline;
}

/* ==========================================================================
   SECURITY & INFORMATION PANEL CARD
   ========================================================================== */
.security-card {
  background-color: var(--bg-white);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-2xl);
  padding: 2.25rem 1.75rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
}

.security-header {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 1.25rem;
}

.security-icon-wrapper {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-xl);
  background-color: var(--success-light);
  color: #16a34a;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--success-border);
  flex-shrink: 0;
}

.security-title {
  font-size: 1.25rem;
  font-weight: 850;
  color: var(--text-main);
  letter-spacing: -0.015em;
  line-height: 1.3;
}

.security-badge {
  font-size: 0.75rem;
  color: #15803d;
  font-weight: 700;
}

.security-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 0.5rem;
}

.security-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.security-item-icon {
  color: var(--primary);
  flex-shrink: 0;
  margin-top: 0.15rem;
}

.security-footer-note {
  margin-top: 2rem;
  padding: 0.95rem 1.15rem;
  background-color: var(--bg-soft);
  border-radius: var(--radius-lg);
  font-size: 0.835rem;
  color: var(--text-muted);
  border: 1px solid var(--primary-border);
  line-height: 1.55;
}

/* ==========================================================================
   AUTHENTICATED PROFILE DASHBOARD STYLES
   ========================================================================== */
.profile-container {
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

.profile-hero-card {
  background-color: var(--bg-white);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-2xl);
  padding: 2.25rem 1.75rem;
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

@media (min-width: 640px) {
  .profile-hero-card {
    padding: 2.5rem;
    flex-direction: row;
    text-align: left;
    gap: 1.75rem;
  }
}

.profile-avatar-wrapper {
  position: relative;
  flex-shrink: 0;
  margin-bottom: 1rem;
}

@media (min-width: 640px) {
  .profile-avatar-wrapper {
    margin-bottom: 0;
  }
}

.profile-avatar-img {
  width: 96px;
  height: 96px;
  border-radius: var(--radius-full);
  object-fit: cover;
  border: 4px solid var(--bg-soft);
  box-shadow: var(--shadow-md);
}

.profile-details-hero {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.profile-signed-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  align-self: center;
  padding: 0.25rem 0.75rem;
  background-color: var(--success-light);
  color: #15803d;
  font-size: 0.75rem;
  font-weight: 750;
  border-radius: var(--radius-full);
  border: 1px solid var(--success-border);
  margin-bottom: 0.35rem;
}

@media (min-width: 640px) {
  .profile-signed-badge {
    align-self: flex-start;
  }
}

.profile-welcome-heading {
  font-size: clamp(1.35rem, 3vw, 1.75rem);
  font-weight: 850;
  color: var(--text-main);
  letter-spacing: -0.02em;
}

.profile-email-sub {
  font-size: 0.95rem;
  color: var(--text-muted);
  font-weight: 500;
}

.profile-cards-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 868px) {
  .profile-cards-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.info-card {
  background-color: var(--bg-white);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-2xl);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
}

.info-card-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid var(--border-color);
}

.info-card-icon {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-lg);
  background-color: var(--bg-soft);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--primary-border);
  flex-shrink: 0;
}

.info-card-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: -0.01em;
}

.info-data-list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.info-data-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.9rem;
}

.info-data-label {
  color: var(--text-muted);
  font-weight: 550;
}

.info-data-value {
  color: var(--text-main);
  font-weight: 700;
  text-align: right;
  word-break: break-all;
}

.status-active-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.18rem 0.6rem;
  background-color: var(--success-light);
  color: #166534;
  font-size: 0.75rem;
  font-weight: 750;
  border-radius: var(--radius-sm);
  border: 1px solid var(--success-border);
}

.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: #22c55e;
}

.about-sdlc-text {
  font-size: 0.925rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.profile-actions-bar {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin-top: 0.5rem;
}

@media (min-width: 520px) {
  .profile-actions-bar {
    flex-direction: row;
    justify-content: flex-end;
  }
}

.btn-profile-act {
  padding: 0.8rem 1.6rem;
  font-size: 0.95rem;
  border-radius: var(--radius-md);
  font-weight: 700;
}

/* ==========================================================================
   SITE FOOTER (LOADED DYNAMICALLY)
   ========================================================================== */
.site-footer {
  background-color: var(--footer-bg);
  color: var(--footer-text);
  padding: 3.5rem 1rem 2rem 1rem;
  border-top: 1px solid #374151;
  margin-top: auto;
}

/* Spinner Animation */
.spinner {
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  100% { transform: rotate(360deg); }
}