/* Biru user-area PWA styles — scoped via body.user-area */

:root {
  --user-bg-dark: #1a0a2e;
  --user-bg-purple: #300343;
  --user-gold: #f5c518;
  --user-gold-dim: rgba(245, 197, 24, 0.15);
  --user-text: #ffffff;
  --user-text-muted: rgba(255, 255, 255, 0.65);
  --user-surface: rgba(255, 255, 255, 0.06);
  --user-border: rgba(255, 255, 255, 0.1);
  --user-header-height: 64px;
  --user-bottom-nav-height: 64px;
}

html,
body.user-area {
  overflow-x: hidden;
  max-width: 100%;
}

body.user-area {
  background-color: #f4f5f8;
  padding-bottom: calc(var(--user-bottom-nav-height) + env(safe-area-inset-bottom, 0px));
}

@media (min-width: 768px) {
  body.user-area {
    padding-bottom: 0;
  }
}

/* Hide scroll-to-top on mobile user area */
@media (max-width: 767.98px) {
  body.user-area .scrollToTop {
    bottom: calc(var(--user-bottom-nav-height) + 16px + env(safe-area-inset-bottom, 0px));
  }
}

/* ── Header ── */
body.user-area .header-section {
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  padding-top: env(safe-area-inset-top, 0px);
  background: linear-gradient(135deg, var(--user-bg-dark) 0%, var(--user-bg-purple) 100%);
  border-bottom: 1px solid var(--user-border);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
}

body.user-area .user-app-header > .container {
  max-width: 100%;
  padding-left: 12px;
  padding-right: 12px;
}

body.user-area .header-section.active {
  background: linear-gradient(135deg, var(--user-bg-dark) 0%, var(--user-bg-purple) 100%);
}

body.user-area .user-app-header .header-wrapper {
  align-items: center;
  min-height: var(--user-header-height);
  min-width: 0;
  width: 100%;
  padding: 8px 0;
  flex-wrap: nowrap;
  gap: 8px;
}

body.user-area .user-app-header .logo {
  flex-shrink: 0;
  min-width: 0;
  max-width: 110px;
}

body.user-area .user-app-header .logo img {
  max-height: 36px;
  width: auto;
}

@media (min-width: 992px) {
  body.user-area .user-app-header .logo img {
    max-height: 44px;
  }
}

body.user-area .user-app-header__right {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
  flex-shrink: 0;
  min-width: 0;
}

@media (max-width: 991px) {
  body.user-area .user-app-header .menu {
    flex: 0 0 auto;
    width: auto;
  }
}

body.user-area .user-app-header__wallet {
  display: flex;
  align-items: center;
  gap: 6px;
}

body.user-area .user-app-header__chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 32px;
  padding: 4px 10px 4px 6px;
  background: var(--user-surface);
  border: 1px solid var(--user-border);
  border-radius: 20px;
  text-decoration: none;
  color: var(--user-text);
  font-size: 0.75rem;
  font-weight: 600;
  white-space: nowrap;
  transition: background 0.2s, border-color 0.2s;
}

body.user-area .user-app-header__chip:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--user-gold);
  color: var(--user-text);
}

body.user-area .user-app-header__chip-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 26px;
  padding: 2px 5px;
  background: var(--user-gold);
  color: #1a0a2e;
  border-radius: 10px;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.03em;
}

body.user-area .user-app-header__chip--ev .user-app-header__chip-label {
  background: #2ecc71;
  color: #0a2e14;
}

body.user-area .user-app-header .header-bar span {
  background: var(--user-text);
}

body.user-area .user-app-header .menu > li > a {
  color: var(--user-text);
}

body.user-area .user-app-header .menu > li > a:hover {
  color: var(--user-gold);
}

@media (max-width: 991px) {
  body.user-area .user-app-header .menu {
    display: none !important;
  }

  body.user-area .user-app-header .header-bar {
    display: none !important;
  }
}

@media (min-width: 992px) {
  body.user-area .user-app-header__profile {
    display: none !important;
  }
}

body.user-area .user-app-header__profile {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  flex-shrink: 1;
  text-decoration: none;
  color: var(--user-text);
  transition: opacity 0.2s;
}

body.user-area .user-app-header__profile:hover {
  opacity: 0.85;
  color: var(--user-text);
}

body.user-area .user-app-header__profile-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  flex-shrink: 0;
  overflow: hidden;
  border: 2px solid var(--user-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  background: #2563eb;
}

body.user-area .user-app-header__profile-avatar img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
  aspect-ratio: 1 / 1;
}

body.user-area .user-app-header__profile-initials {
  font-size: 0.75rem;
  font-weight: 700;
  color: #fff;
  line-height: 1;
}

body.user-area .user-app-header__profile-name {
  font-size: 0.75rem;
  font-weight: 600;
  max-width: 5rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Content offset for fixed header */
body.user-area .hero-section2 {
  background: transparent !important;
  padding: calc(var(--user-header-height) + 8px) 0 4px;
}

@media (min-width: 768px) {
  body.user-area .hero-section2 {
    background-color: var(--user-bg-dark) !important;
    padding: 120px 0 10px;
  }
}

body.user-area .hero-content2 .title2 {
  color: var(--user-text-muted);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.02em;
}

@media (max-width: 767.98px) {
  body.user-area .user-page-title-mobile {
    display: block;
    padding-top: calc(var(--user-header-height) + env(safe-area-inset-top, 0px) + 8px);
    padding-bottom: 4px;
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--user-bg-purple);
  }

  body.user-area .hero-section2 {
    display: none;
  }
}

@media (min-width: 768px) {
  body.user-area .user-page-title-mobile {
    display: none;
  }
}

body.user-area .dashboard-section,
body.user-area .transaction-section,
body.user-area .two-section,
body.user-area .message__chatbox-section,
body.user-area .registration-page {
  padding-top: 0;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  box-sizing: border-box;
}

@media (max-width: 767.98px) {
  body.user-area .dashboard-section.padding-top,
  body.user-area .transaction-section.padding-top,
  body.user-area .two-section.padding-top,
  body.user-area .message__chatbox-section.padding-top,
  body.user-area .registration-page.padding-top,
  body.user-area .padding-top.padding-bottom {
    padding-top: 8px;
  }

  body.user-area .registration-page .container {
    padding-left: 12px;
    padding-right: 12px;
  }

  body.user-area .user-app-header__chip {
    font-size: 0.68rem;
    padding: 3px 8px 3px 5px;
  }

  body.user-area .user-app-header__chip span:not(.user-app-header__chip-label) {
    max-width: 3.5rem;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  body.user-area .footer {
    display: none;
  }
}

/* ── Bottom navigation ── */
.user-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  width: 100%;
  max-width: 100vw;
  z-index: 9999;
  display: flex;
  justify-content: space-around;
  align-items: center;
  height: calc(var(--user-bottom-nav-height) + env(safe-area-inset-bottom, 0px));
  padding-bottom: env(safe-area-inset-bottom, 0px);
  box-sizing: border-box;
  background: linear-gradient(180deg, var(--user-bg-dark) 0%, #0d0618 100%);
  border-top: 1px solid var(--user-border);
  box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.4);
}

@media (min-width: 768px) {
  .user-bottom-nav {
    display: none !important;
  }
}

.user-bottom-nav__item {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  height: var(--user-bottom-nav-height);
}

.user-bottom-nav__btn {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  width: 100%;
  min-width: 0;
  height: 100% !important;
  padding: 6px 2px;
  margin: 0;
  border: none !important;
  border-radius: 0;
  background: transparent !important;
  color: var(--user-text-muted) !important;
  text-decoration: none;
  font-size: 0.65rem;
  font-weight: 500;
  line-height: 1.2;
  cursor: pointer;
  position: relative;
  -webkit-appearance: none;
  appearance: none;
  box-shadow: none;
  transition: color 0.2s;
}

.user-bottom-nav__btn i {
  font-size: 1.2rem;
  line-height: 1;
  color: inherit;
}

.user-bottom-nav__btn span {
  display: block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.user-bottom-nav__btn:hover,
.user-bottom-nav__btn:focus {
  color: var(--user-gold) !important;
  outline: none;
  background: transparent !important;
}

.user-bottom-nav__item.is-active .user-bottom-nav__btn,
.user-bottom-nav__item.is-sheet-open .user-bottom-nav__btn {
  color: var(--user-gold) !important;
}

.user-bottom-nav__item.is-active .user-bottom-nav__btn::after,
.user-bottom-nav__item.is-sheet-open .user-bottom-nav__btn::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--user-gold);
}

/* Bottom sheet overlay — stops above nav so tabs stay clickable */
.user-bottom-sheet-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: calc(var(--user-bottom-nav-height) + env(safe-area-inset-bottom, 0px));
  background: rgba(0, 0, 0, 0.55);
  z-index: 10000;
  opacity: 0;
  transition: opacity 0.28s ease;
}

body.user-sheet-open .user-bottom-nav {
  z-index: 10002;
}

.user-bottom-sheet-overlay.is-open {
  display: block;
  opacity: 1;
}

.user-bottom-sheet {
  position: fixed;
  left: 0;
  right: 0;
  bottom: calc(var(--user-bottom-nav-height) + env(safe-area-inset-bottom, 0px));
  z-index: 10001;
  background: linear-gradient(180deg, #2a1545 0%, var(--user-bg-dark) 100%);
  border-radius: 16px 16px 0 0;
  padding: 12px 0 8px;
  transform: translateY(100%);
  visibility: hidden;
  pointer-events: none;
  transition: transform 0.28s ease, visibility 0.28s ease;
  max-height: 55vh;
  overflow-y: auto;
  box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.5);
}

.user-bottom-sheet.is-open {
  transform: translateY(0);
  visibility: visible;
  pointer-events: auto;
}

body.user-sheet-open {
  overflow: hidden;
}

.user-bottom-sheet__title {
  padding: 4px 20px 12px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--user-gold);
  border-bottom: 1px solid var(--user-border);
  margin-bottom: 4px;
}

.user-bottom-sheet__link {
  display: block;
  padding: 12px 20px;
  color: var(--user-text);
  text-decoration: none;
  font-size: 0.9rem;
  transition: background 0.15s;
}

.user-bottom-sheet__link:hover {
  background: var(--user-gold-dim);
  color: var(--user-gold);
}

/* ── Dashboard cards (mobile) ── */
body.user-area .user-section-title {
  font-family: 'Exo 2', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  color: var(--user-bg-purple);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 12px;
}

body.user-area .user-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(26, 10, 46, 0.08);
  overflow: hidden;
  margin-bottom: 16px;
  border: 1px solid rgba(48, 3, 67, 0.08);
}

body.user-area .user-info-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid #f0f0f5;
}

body.user-area .user-info-row:last-child {
  border-bottom: none;
}

body.user-area .user-info-row__label {
  font-size: 0.8rem;
  color: #6b7280;
  font-weight: 500;
  flex-shrink: 0;
  max-width: 45%;
}

body.user-area .user-info-row__value {
  font-size: 0.875rem;
  color: #1a0a2e;
  font-weight: 600;
  text-align: right;
  word-break: break-word;
}

body.user-area .user-referral-bar {
  background: #fff;
  border-radius: 12px;
  border: 1px solid rgba(48, 3, 67, 0.08);
  box-shadow: 0 2px 12px rgba(26, 10, 46, 0.08);
  margin-top: 12px;
  padding: 14px 16px;
}

body.user-area .user-referral-bar__label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--user-bg-purple);
  margin-bottom: 10px;
}

body.user-area .user-referral-bar__label i {
  font-size: 0.75rem;
  opacity: 0.85;
}

body.user-area .user-referral-bar__field {
  display: flex;
  align-items: stretch;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(48, 3, 67, 0.12);
  background: #f9f9fb;
}

body.user-area .user-referral-bar__input {
  flex: 1;
  min-width: 0;
  border: none;
  background: transparent;
  color: #1a0a2e;
  font-size: 0.8125rem;
  font-weight: 500;
  padding: 10px 12px;
  line-height: 1.4;
  overflow-x: auto;
  text-overflow: unset;
  white-space: nowrap;
  -webkit-appearance: none;
  appearance: none;
}

body.user-area .user-referral-bar__input:focus {
  outline: none;
  box-shadow: inset 0 0 0 2px rgba(48, 3, 67, 0.15);
}

body.user-area .user-referral-bar__copy {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex-shrink: 0;
  min-width: 44px;
  min-height: 44px;
  padding: 0 14px;
  border: none;
  border-left: 1px solid rgba(48, 3, 67, 0.1);
  background: var(--user-gold);
  color: #1a0a2e;
  font-size: 0.8125rem;
  font-weight: 700;
  cursor: pointer;
  position: relative;
  transition: background 0.15s ease, opacity 0.15s ease;
}

body.user-area .user-referral-bar__copy:hover {
  background: #e6b616;
}

body.user-area .user-referral-bar__copy:active {
  opacity: 0.9;
}

body.user-area .user-referral-bar__copy-text {
  display: none;
}

@media (min-width: 576px) {
  body.user-area .user-referral-bar__copy {
    padding: 0 16px;
  }

  body.user-area .user-referral-bar__copy-text {
    display: inline;
  }
}

body.user-area .user-referral-bar__copy.copied::after {
  top: 50%;
  right: 100%;
  margin-right: 8px;
  transform: translateY(-50%);
  width: auto;
  white-space: nowrap;
}

@media (max-width: 767.98px) {
  body.user-area .user-table-desktop {
    display: none;
  }

  body.user-area .user-card-mobile {
    display: block;
  }
}

@media (min-width: 768px) {
  body.user-area .user-card-mobile {
    display: none;
  }

  body.user-area .user-table-desktop {
    display: table;
  }
}

/* ── Auth pages (login) ── */
body.user-area:has(.user-auth-page) {
  background: linear-gradient(135deg, var(--user-bg-dark) 0%, var(--user-bg-purple) 100%);
  padding-bottom: 0;
}

body.user-area:has(.user-auth-page) .scrollToTop {
  display: none;
}

.user-auth-page {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  min-height: 100dvh;
  padding: 24px 16px;
  padding-top: calc(24px + env(safe-area-inset-top, 0px));
  padding-bottom: calc(24px + env(safe-area-inset-bottom, 0px));
}

.user-auth-card {
  width: 100%;
  max-width: 420px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 32px 28px 24px;
}

@media (max-width: 575.98px) {
  .user-auth-card {
    padding: 28px 20px 20px;
  }
}

.user-auth-card__header {
  text-align: center;
  margin-bottom: 24px;
}

.user-auth-card__logo {
  display: inline-block;
  margin-bottom: 16px;
}

.user-auth-card__logo img {
  max-height: 48px;
  width: auto;
}

.user-auth-card__title {
  font-family: 'Exo 2', sans-serif;
  font-weight: 700;
  font-size: 1.375rem;
  color: var(--user-bg-purple);
  margin: 0 0 6px;
  line-height: 1.3;
}

.user-auth-card__subtitle {
  font-size: 0.875rem;
  color: #6b7280;
  margin: 0;
}

.user-auth-alert {
  margin-bottom: 16px;
  font-size: 0.875rem;
  border-radius: 8px;
}

.user-auth-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.user-auth-field label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #374151;
  margin-bottom: 6px;
}

.user-auth-field__input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.user-auth-field__icon {
  position: absolute;
  left: 14px;
  font-size: 1.125rem;
  color: #9ca3af;
  pointer-events: none;
  z-index: 1;
}

.user-auth-field input {
  width: 100%;
  height: 48px;
  padding: 0 44px 0 42px;
  font-size: 0.9375rem;
  color: #1a0a2e;
  background: #f9f9fb;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  line-height: 1.5;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.user-auth-field input::placeholder {
  color: #9ca3af;
}

.user-auth-field input:focus {
  outline: none;
  border-color: var(--user-bg-purple);
  box-shadow: 0 0 0 3px rgba(48, 3, 67, 0.12);
  background: #fff;
}

.user-auth-toggle {
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  background: transparent;
  border: none;
  color: #6b7280;
  cursor: pointer;
  border-radius: 6px;
  transition: color 0.2s, background 0.2s;
}

.user-auth-toggle:hover {
  color: var(--user-bg-purple);
  background: rgba(48, 3, 67, 0.06);
}

.user-auth-toggle i {
  font-size: 1.125rem;
}

.user-auth-captcha {
  margin-top: 4px;
}

.user-auth-captcha .contact-form-group {
  margin-bottom: 0;
}

.user-auth-captcha .contact-form-group label {
  color: #374151;
  font-size: 0.8125rem;
  font-weight: 600;
  margin-bottom: 6px;
}

.user-auth-captcha .contact-form-group input {
  height: 48px;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
  background: #f9f9fb;
  color: #1a0a2e;
}

.user-auth-submit {
  width: 100%;
  height: 48px;
  margin-top: 4px;
  padding: 0 24px;
  font-size: 1rem;
  font-weight: 700;
  color: #1a0a2e;
  background: var(--user-gold);
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s, box-shadow 0.2s;
  box-shadow: 0 2px 8px rgba(245, 197, 24, 0.35);
}

.user-auth-submit:hover {
  background: #e6b016;
  box-shadow: 0 4px 12px rgba(245, 197, 24, 0.45);
}

.user-auth-submit:active {
  transform: scale(0.98);
}

.user-auth-footer {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid #f0f0f5;
  text-align: center;
}

.user-auth-footer__link {
  display: inline-block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--user-bg-purple);
  text-decoration: none;
  margin-bottom: 12px;
  transition: color 0.2s;
}

.user-auth-footer__link:hover {
  color: var(--user-gold);
}

.user-auth-footer__copy {
  font-size: 0.75rem;
  color: #9ca3af;
  margin: 0;
  line-height: 1.5;
}

.user-auth-footer__copy a {
  color: #6b7280;
  text-decoration: none;
  font-weight: 600;
}

.user-auth-footer__copy a:hover {
  color: var(--user-bg-purple);
}

.user-auth-register {
  text-align: center;
  font-size: 0.875rem;
  color: #6b7280;
  margin: 0;
}

.user-auth-register a {
  font-weight: 600;
  color: var(--user-bg-purple);
  text-decoration: none;
  transition: color 0.2s;
}

.user-auth-register a:hover {
  color: var(--user-gold);
}

/* ── Auth pages (register) ── */
.user-auth-card--register {
  max-width: 680px;
  padding: 32px 32px 24px;
}

.user-auth-page:has(.user-auth-card--register) {
  align-items: flex-start;
}

@media (min-width: 768px) {
  .user-auth-page:has(.user-auth-card--register) {
    align-items: center;
  }
}

.user-auth-form--register {
  gap: 14px;
}

.user-auth-form__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

@media (min-width: 576px) {
  .user-auth-form__grid {
    grid-template-columns: 1fr 1fr;
  }
}

.user-auth-field input[readonly] {
  background: #f3f4f6;
  color: #6b7280;
  cursor: not-allowed;
}

.user-auth-field__feedback {
  display: block;
  font-size: 0.75rem;
  margin-top: 4px;
  line-height: 1.4;
}

.user-auth-field__feedback:empty {
  display: none;
}

.user-auth-field__feedback--error {
  color: #dc2626;
}

.user-auth-field__feedback--success {
  color: #16a34a;
}

.user-auth-field__input-wrap--select {
  min-height: 48px;
}

.user-auth-field__input-wrap--select .select-item {
  width: 100%;
}

.user-auth-field select,
.user-auth-field .select-bar {
  width: 100%;
  height: 48px;
  padding: 0 12px 0 42px;
  font-size: 0.9375rem;
  color: #1a0a2e;
  background: #f9f9fb;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  line-height: 46px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.user-auth-field .select-bar:focus,
.user-auth-field .select-bar.open {
  outline: none;
  border-color: var(--user-bg-purple);
  box-shadow: 0 0 0 3px rgba(48, 3, 67, 0.12);
  background: #fff;
}

.user-auth-field .select-bar .list {
  width: 100%;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  margin-top: 4px;
}

.user-auth-field .select-bar .current {
  line-height: 46px;
  color: #1a0a2e;
}

.user-auth-field__input-wrap--mobile {
  display: flex;
  align-items: stretch;
  gap: 0;
  background: #f9f9fb;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  overflow: hidden;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.user-auth-field__input-wrap--mobile:focus-within {
  border-color: var(--user-bg-purple);
  box-shadow: 0 0 0 3px rgba(48, 3, 67, 0.12);
  background: #fff;
}

.user-auth-field__mobile-prefix {
  display: flex;
  align-items: center;
  padding: 0 12px;
  font-size: 0.9375rem;
  font-weight: 600;
  color: #374151;
  background: #eef0f4;
  border-right: 1px solid #e5e7eb;
  white-space: nowrap;
  flex-shrink: 0;
}

.user-auth-field--mobile input {
  border: none;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  padding-left: 12px;
  padding-right: 12px;
}

.user-auth-field--mobile input:focus {
  border: none;
  box-shadow: none;
  background: transparent;
}

.user-auth-field--password .form-group {
  position: relative;
  margin-bottom: 0;
}

.user-auth-checkgroup {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.user-auth-checkgroup input[type="checkbox"] {
  width: 18px;
  height: 18px;
  min-width: 18px;
  margin: 2px 0 0;
  padding: 0;
  flex-shrink: 0;
  accent-color: var(--user-bg-purple);
  cursor: pointer;
}

.user-auth-checkgroup label {
  flex: 1;
  font-size: 0.8125rem;
  font-weight: 500;
  color: #374151;
  line-height: 1.5;
  margin-bottom: 0;
  cursor: pointer;
}

.user-auth-checkgroup label a {
  color: var(--user-bg-purple);
  font-weight: 600;
  text-decoration: none;
}

.user-auth-checkgroup label a:hover {
  color: var(--user-gold);
}

/* Legacy auth pages */
body.user-area .account-section .right {
  background: #fff;
}

@media (max-width: 767.98px) {
  body.user-area:not(.user-authenticated) {
    padding-bottom: 0;
  }
}

/* ── Dashboard stat cards ── */
body.user-area .dash-stat-card {
  display: flex;
  flex-direction: column;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 1rem;
  text-decoration: none;
  color: #fff;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.12);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

body.user-area .dash-stat-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.18);
  color: #fff;
  text-decoration: none;
}

body.user-area .dash-stat-card__body {
  position: relative;
  padding: 1rem 1rem 0.875rem;
  min-height: 120px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

body.user-area .dash-stat-card__icon {
  position: absolute;
  right: 10px;
  top: 10px;
  font-size: 2.75rem;
  opacity: 0.15;
  line-height: 1;
  pointer-events: none;
}

body.user-area .dash-stat-card__value {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 0 0.25rem;
  line-height: 1.2;
  z-index: 1;
}

body.user-area .dash-stat-card__label {
  font-size: 0.8125rem;
  font-weight: 600;
  margin: 0 0 0.2rem;
  opacity: 0.95;
  z-index: 1;
}

body.user-area .dash-stat-card__meta {
  font-size: 0.75rem;
  margin: 0;
  opacity: 0.8;
  z-index: 1;
}

body.user-area .dash-stat-card__footer {
  background: rgba(0, 0, 0, 0.15);
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.8125rem;
  padding: 0.4rem 0.75rem;
  text-align: center;
}

body.user-area .dash-stat-card__footer i {
  margin-left: 0.25rem;
}

body.user-area .dash-stat-card--teal {
  background: linear-gradient(135deg, #0d9488 0%, #0f766e 100%);
}

body.user-area .dash-stat-card--green {
  background: linear-gradient(135deg, #16a34a 0%, #15803d 100%);
}

body.user-area .dash-stat-card--brand {
  background: linear-gradient(135deg, #5b1a7a 0%, #300343 100%);
}

body.user-area .dash-stat-card--coral {
  background: linear-gradient(135deg, #e11d48 0%, #be123c 100%);
}

body.user-area .dash-stat-card--dark-yellow {
  background: linear-gradient(135deg, #ca8a04 0%, #854d0e 100%);
}

body.user-area .dash-stat-card--dark-blue {
  background: linear-gradient(135deg, #1d4ed8 0%, #1e3a8a 100%);
}

@media (max-width: 576px) {
  body.user-area .dash-stat-card__value {
    font-size: 1.125rem;
  }

  body.user-area .dash-stat-card__body {
    min-height: 100px;
    padding: 0.75rem 0.5rem 0.625rem;
  }

  body.user-area .dash-stat-card__icon {
    font-size: 2rem;
  }
}
