.member-page-body {
  min-height: 100vh;
  background: linear-gradient(160deg, #0a0820 0%, #17103f 40%, #1a0b3d 65%, #0a0820 100%);
  color: var(--text-primary, #f8fafc);
  font-family: var(--font-sans, -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif);
  position: relative;
  overflow-x: hidden;
}

.member-bg-orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.45;
  pointer-events: none;
  z-index: 0;
}
.member-bg-orb.orb-1 {
  width: 520px; height: 520px;
  background: radial-gradient(circle, #ec4899 0%, rgba(236,72,153,0.05) 70%);
  top: -180px; left: -140px;
  animation: floaty 12s ease-in-out infinite;
}
.member-bg-orb.orb-2 {
  width: 600px; height: 600px;
  background: radial-gradient(circle, #8b5cf6 0%, rgba(139,92,246,0.05) 70%);
  bottom: -220px; right: -180px;
  animation: floaty 15s ease-in-out infinite reverse;
}
@keyframes floaty {
  0%,100% { transform: translate3d(0,0,0) scale(1); }
  50% { transform: translate3d(40px,-30px,0) scale(1.06); }
}
.member-bg-grid {
  position: fixed; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: radial-gradient(ellipse at 50% 35%, black 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 35%, black 30%, transparent 75%);
  pointer-events: none; z-index: 0;
}

.member-wrap {
  position: relative;
  z-index: 2;
  max-width: 1120px;
  margin: 0 auto;
  padding: 3rem 1.25rem 4rem;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
  justify-content: center;
}

.member-brand-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}
.member-brand {
  font-size: 1.7rem;
  font-weight: 900;
  letter-spacing: -0.02em;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
}
.brand-jhi { color: #fff; }
.brand-dex { background: linear-gradient(135deg,#ec4899 0%, #8b5cf6 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.member-tagline { font-size: 0.9rem; color: rgba(255,255,255,0.5); }

.member-card {
  background: linear-gradient(180deg, rgba(24,18,56,0.85) 0%, rgba(15,10,39,0.85) 100%);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 24px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 40px 100px rgba(0,0,0,0.5), inset 0 1px 0 rgba(255,255,255,0.06);
  overflow: hidden;
  padding: 2.25rem;
  animation: cardIn 0.6s cubic-bezier(.2,.9,.3,1.2);
}
@keyframes cardIn {
  from { opacity: 0; transform: translateY(24px) scale(0.98); }
  to   { opacity: 1; transform: none; }
}
@media (min-width: 768px) {
  .member-card { padding: 3rem 3.25rem; }
}

.tabs-pill-group {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  padding: 0.35rem;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px;
  margin-bottom: 2rem;
}
.tabs-pill {
  border: none;
  background: transparent;
  color: rgba(255,255,255,0.55);
  padding: 0.85rem 1rem;
  border-radius: 12px;
  cursor: pointer;
  font-size: 0.95rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: all 0.2s ease;
}
.tabs-pill:hover { color: rgba(255,255,255,0.9); }
.tabs-pill.is-active {
  background: linear-gradient(135deg, rgba(236,72,153,0.22) 0%, rgba(139,92,246,0.22) 100%);
  color: #fff;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.12), 0 10px 30px -12px rgba(236,72,153,0.5);
}

.auth-panel { display: none; animation: fadeUp 0.35s ease; }
.auth-panel.is-visible { display: block; }
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}
.auth-head { margin-bottom: 1.75rem; }
.auth-title {
  font-size: clamp(1.6rem, 2.2vw, 2rem);
  font-weight: 800;
  margin: 0 0 0.4rem;
  letter-spacing: -0.02em;
  background: linear-gradient(180deg, #fff 0%, #cbd5e1 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.auth-subtitle { color: rgba(255,255,255,0.55); margin: 0; font-size: 0.95rem; line-height: 1.6; }

.auth-form { display: flex; flex-direction: column; gap: 1rem; }
.field-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: rgba(255,255,255,0.72);
  margin-bottom: 0.25rem;
  padding-left: 0.15rem;
}
.field-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}
.field-input-wrap input {
  width: 100%;
  padding: 0.95rem 1rem 0.95rem 2.75rem;
  background: rgba(255,255,255,0.04);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 14px;
  font-size: 0.95rem;
  transition: all 0.2s ease;
  outline: none;
  font-family: inherit;
}
.field-input-wrap input::placeholder { color: rgba(255,255,255,0.3); }
.field-input-wrap input:focus {
  border-color: rgba(236,72,153,0.5);
  box-shadow: 0 0 0 4px rgba(236,72,153,0.12);
  background: rgba(255,255,255,0.06);
}
.field-icon {
  position: absolute;
  left: 0.9rem;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(255,255,255,0.45);
  font-size: 0.9rem;
  font-weight: 600;
  display: inline-flex;
  pointer-events: none;
}
.toggle-pw-toggle {
  position: absolute;
  right: 0.55rem;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.55);
  border-radius: 10px;
  padding: 0.45rem;
  cursor: pointer;
  display: inline-flex;
  transition: all 0.15s;
}
.toggle-pw-toggle:hover { color: #fff; background: rgba(255,255,255,0.08); }

.grid-2col {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}
@media (min-width: 720px) {
  .grid-2col { grid-template-columns: 1fr 1fr; }
}

.flex-row-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 0.5rem;
}
.check-field {
  display: inline-flex;
  align-items: flex-start;
  gap: 0.6rem;
  cursor: pointer;
  user-select: none;
  font-size: 0.88rem;
  color: rgba(255,255,255,0.65);
  padding: 0.2rem 0.1rem;
}
.check-field input[type=checkbox] {
  margin-top: 0.1rem;
  width: 16px; height: 16px;
  accent-color: #ec4899;
  cursor: pointer;
}
.check-field-highlight {
  background: rgba(236,72,153,0.06);
  border: 1px solid rgba(236,72,153,0.15);
  padding: 0.85rem 1rem;
  border-radius: 14px;
  margin: 0.25rem 0 0.5rem;
  color: rgba(255,255,255,0.8);
}
.check-field-highlight .check-hint { display: block; color: rgba(255,255,255,0.45); margin-top: 0.15rem; font-size: 0.78rem; }
.link-muted { color: #a78bfa; text-decoration: none; }
.link-muted:hover { color: #c4b5fd; text-decoration: underline; }

.btn-auth-submit {
  padding: 0.95rem 1.25rem !important;
  font-weight: 700 !important;
  font-size: 0.95rem !important;
  margin-top: 0.5rem !important;
  border-radius: 14px !important;
  gap: 0.5rem !important;
}
.divider-with-label {
  display: flex;
  align-items: center;
  gap: 1rem;
  color: rgba(255,255,255,0.4);
  font-size: 0.78rem;
  margin: 0.75rem 0 0.25rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.divider-with-label::before,
.divider-with-label::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
}
.auth-status {
  min-height: 1.5rem;
  margin-top: 0.25rem;
  font-size: 0.88rem;
  border-radius: 12px;
  padding: 0;
  transition: all 0.2s;
}
.auth-status.is-error {
  padding: 0.75rem 1rem;
  background: rgba(239,68,68,0.1);
  border: 1px solid rgba(239,68,68,0.25);
  color: #fecaca;
}
.auth-status.is-success {
  padding: 0.75rem 1rem;
  background: rgba(34,197,94,0.1);
  border: 1px solid rgba(34,197,94,0.25);
  color: #bbf7d0;
}

.member-footer {
  text-align: center;
  color: rgba(255,255,255,0.4);
  font-size: 0.82rem;
  padding-top: 1rem;
}

/* ======= MEMBER DASHBOARD ======= */
.member-dash-head {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 0.75rem 0 2rem;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  margin-bottom: 2rem;
  flex-wrap: wrap;
}
.dash-avatar {
  width: 78px; height: 78px;
  border-radius: 22px;
  background: linear-gradient(135deg,#ec4899,#8b5cf6);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  font-weight: 800;
  color: #fff;
  box-shadow: 0 16px 40px -10px rgba(236,72,153,0.5);
  flex-shrink: 0;
}
.dash-head-info { flex: 1; min-width: 180px; }
.dash-welcome { color: rgba(255,255,255,0.5); font-size: 0.85rem; }
.dash-name { font-size: 1.6rem; font-weight: 800; margin: 0.1rem 0 0.2rem; letter-spacing: -0.02em; }
.dash-email { color: rgba(255,255,255,0.5); font-size: 0.88rem; }

.dash-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}
.dash-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 18px;
  transition: all 0.2s;
}
.dash-card:hover { transform: translateY(-2px); border-color: rgba(255,255,255,0.12); }
.dash-card-accent {
  background: linear-gradient(135deg, rgba(236,72,153,0.15) 0%, rgba(139,92,246,0.15) 100%);
  border-color: rgba(236,72,153,0.3);
}
.dash-card-icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  background: rgba(255,255,255,0.07);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
}
.dash-card > *:nth-child(2) { flex: 1; min-width: 0; }
.dash-card-title { font-weight: 700; font-size: 0.98rem; margin-bottom: 0.15rem; }
.dash-card-desc { color: rgba(255,255,255,0.5); font-size: 0.8rem; line-height: 1.5; }
.btn-xs { padding: 0.35rem 0.65rem !important; font-size: 0.75rem !important; border-radius: 10px !important; }

.member-dash-actions { margin-top: 1rem; }
.dash-section-title { font-weight: 700; font-size: 1rem; margin-bottom: 1rem; padding-left: 0.2rem; color: rgba(255,255,255,0.8); }
.grid-3col {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.9rem;
}
@media (min-width: 680px) {
  .grid-3col { grid-template-columns: repeat(3, 1fr); }
}
.quick-action {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 1rem 1.1rem;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 16px;
  color: inherit;
  text-decoration: none;
  transition: all 0.2s;
}
.quick-action:hover {
  background: rgba(255,255,255,0.07);
  border-color: rgba(236,72,153,0.35);
  transform: translateY(-2px);
}
.qa-icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(236,72,153,0.2), rgba(139,92,246,0.2));
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}
.quick-action strong { display: block; font-size: 0.92rem; margin-bottom: 0.1rem; }
.qa-desc { color: rgba(255,255,255,0.48); font-size: 0.75rem; }

@media (max-width: 540px) {
  .member-wrap { padding: 1.5rem 1rem 2rem; }
  .member-card { padding: 1.5rem 1.25rem; border-radius: 18px; }
  .tabs-pill { padding: 0.7rem 0.75rem; font-size: 0.85rem; }
  .dash-avatar { width: 62px; height: 62px; font-size: 1.4rem; border-radius: 18px; }
}
