/* =========================================================
   MWINDA PICTURES - ACCOUNT + PROFILE
   Style noir/or adapté au logo Mwinda Pictures.
========================================================= */

/* ===================================================== */
/* RESET */
/* ===================================================== */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* ===================================================== */
/* BASE */
/* ===================================================== */

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  font-family: Arial, Helvetica, sans-serif;
  background: #050505;
  color: #ffffff;
}

img {
  max-width: 100%;
  display: block;
}

button,
input,
select {
  font-family: inherit;
}

button {
  cursor: pointer;
}

a {
  color: inherit;
}

/* ===================================================== */
/* VARIABLES */
/* ===================================================== */

:root {
  --mw-bg: #050505;
  --mw-card: rgba(18, 18, 18, 0.94);
  --mw-gold: #d4af37;
  --mw-gold-hover: #f1d675;
  --mw-text: #ffffff;
  --mw-muted: #b8b8b8;
  --mw-border: rgba(212, 175, 55, 0.28);
  --mw-radius: 22px;
}

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

.account-page,
.profile-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background:
    linear-gradient(rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0.94)),
    radial-gradient(circle at top, rgba(212, 175, 55, 0.28), #050505 58%);
}

/* ===================================================== */
/* CARD */
/* ===================================================== */

.account-card,
.profile-card {
  width: 100%;
  max-width: 450px;
  background: var(--mw-card);
  border: 1px solid var(--mw-border);
  border-radius: var(--mw-radius);
  padding: 34px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.62);
}

/* ===================================================== */
/* LOGO */
/* ===================================================== */

.account-logo,
.profile-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 90px;
  margin-bottom: 16px;
  text-decoration: none;
}

.account-logo img,
.profile-logo img {
  max-width: 210px;
  max-height: 90px;
  object-fit: contain;
}

.account-logo span,
.profile-logo span {
  display: none;
  color: var(--mw-gold);
  font-size: 24px;
  font-weight: 900;
}

/* ===================================================== */
/* TEXT */
/* ===================================================== */

.account-card h1,
.profile-card h1 {
  text-align: center;
  font-size: 28px;
  margin-bottom: 8px;
}

.account-subtitle,
.profile-subtitle {
  text-align: center;
  color: var(--mw-muted);
  font-size: 14px;
  line-height: 1.5;
  margin-bottom: 26px;
}

/* ===================================================== */
/* AVATAR */
/* ===================================================== */

.avatar-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 24px;
}

.avatar-section img {
  width: 132px;
  height: 132px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--mw-border);
  background: #222222;
  margin-bottom: 14px;
}

.avatar-button {
  display: inline-block;
  padding: 10px 14px;
  border-radius: 999px;
  background: #242424;
  color: var(--mw-text);
  font-size: 14px;
  border: 1px solid var(--mw-border);
  cursor: pointer;
}

.avatar-button:hover {
  border-color: var(--mw-gold);
  color: var(--mw-gold-hover);
}

/* ===================================================== */
/* FORM */
/* ===================================================== */

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

.form-group label {
  display: block;
  color: var(--mw-muted);
  font-size: 14px;
  margin-bottom: 7px;
}

.form-group input,
.form-group select {
  width: 100%;
  padding: 14px;
  border-radius: 10px;
  border: 1px solid var(--mw-border);
  outline: none;
  background: #0f0f0f;
  color: var(--mw-text);
  font-size: 15px;
}

.form-group input:focus,
.form-group select:focus {
  border-color: var(--mw-gold);
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.12);
}

.password-box {
  display: flex;
  gap: 8px;
}

.password-box input {
  flex: 1;
}

.password-box button {
  border: 1px solid var(--mw-border);
  background: #1d1d1d;
  color: white;
  border-radius: 10px;
  padding: 0 12px;
  font-weight: 700;
}

.password-box button:hover {
  color: var(--mw-gold-hover);
  border-color: var(--mw-gold);
}

/* ===================================================== */
/* BUTTON */
/* ===================================================== */

.primary-button {
  width: 100%;
  padding: 15px;
  border: none;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--mw-gold), #8f6815);
  color: #050505;
  font-size: 16px;
  font-weight: 900;
  margin-top: 8px;
}

.primary-button:hover {
  background: linear-gradient(135deg, var(--mw-gold-hover), var(--mw-gold));
}

/* ===================================================== */
/* FOOTER LINKS */
/* ===================================================== */

.account-footer,
.profile-footer {
  margin-top: 20px;
  text-align: center;
  color: var(--mw-muted);
  font-size: 14px;
}

.account-footer a,
.profile-footer a {
  color: var(--mw-gold-hover);
  font-weight: 800;
  text-decoration: none;
}

.account-footer a:hover,
.profile-footer a:hover {
  text-decoration: underline;
}



/* =====================================================
   MWINDA LOGO FIX
===================================================== */

.account-logo img,
.profile-logo img {
  display: block;
  max-width: 230px;
  max-height: 110px;
  object-fit: contain;
}

/* =====================================================
   MWINDA ACCOUNT MOBILE + PASSWORD ICON PATCH
===================================================== */
.password-box {
  position: relative;
  display: flex;
  align-items: center;
}

.password-box input {
  padding-right: 52px !important;
}

.password-eye-button {
  position: absolute;
  right: 8px;
  top: 50%;
  width: 36px;
  height: 36px;
  min-height: 36px !important;
  display: grid;
  place-items: center;
  transform: translateY(-50%);
  border: 0 !important;
  border-radius: 999px !important;
  padding: 0 !important;
  background: rgba(255,255,255,.08) !important;
}

.password-eye-button img {
  width: 19px;
  height: 19px;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

.password-eye-button:hover {
  background: rgba(212,175,55,.18) !important;
}



/* =====================================================
   MWINDA MOBILE AUTH FINAL PATCH
   Fix zoom/movement + password icon contrast.
===================================================== */
html {
  -webkit-text-size-adjust: 100%;
}

.account-page {
  overflow: hidden;
  overscroll-behavior: none;
}

.account-card {
  -webkit-overflow-scrolling: touch;
}

.form-group input,
.form-group select {
  font-size: 16px !important; /* évite le zoom iPhone au focus */
}

.password-eye-button img {
  filter: none !important;
  opacity: .92;
}

.password-eye-button {
  color: #101010 !important;
}

.password-box input:-webkit-autofill,
.password-box input:-webkit-autofill:hover,
.password-box input:-webkit-autofill:focus {
  -webkit-text-fill-color: #050505 !important;
  box-shadow: 0 0 0 1000px #eaf1ff inset !important;
}

.password-box:has(input:-webkit-autofill) .password-eye-button img,
.password-box:has(input:focus) .password-eye-button img {
  filter: none !important;
}



/* =====================================================
   MWINDA ACCOUNT GLASS DESIGN PATCH
   Design fluide comme profils, sans casser Firebase/Auth.
===================================================== */

:root {
  --mw-glass-bg: rgba(9, 12, 18, 0.72);
  --mw-glass-line: rgba(255, 255, 255, 0.14);
  --mw-glass-soft: rgba(255, 255, 255, 0.08);
  --mw-glass-strong: rgba(255, 255, 255, 0.14);
  --mw-blue-glow: rgba(31, 143, 255, 0.16);
}

.account-page {
  position: relative;
  overflow: hidden;
  background: #02060d !important;
}

.account-page::before {
  content: "";
  position: fixed;
  inset: -12vh -12vw;
  z-index: -2;
  background:
    radial-gradient(circle at 24% 18%, rgba(212,175,55,.24), transparent 28%),
    radial-gradient(circle at 78% 10%, rgba(31,143,255,.16), transparent 28%),
    radial-gradient(circle at 52% 88%, rgba(212,175,55,.10), transparent 32%),
    linear-gradient(135deg, #02060d 0%, #060a12 54%, #000 100%);
  animation: mwindaAccountAura 20s ease-in-out infinite alternate;
}

.account-page::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(255,255,255,.035), transparent 36%),
    radial-gradient(circle at center, transparent 0 34%, rgba(0,0,0,.56) 100%);
}

.account-card {
  position: relative;
  max-width: 500px !important;
  overflow: hidden;
  border: 1px solid var(--mw-glass-line) !important;
  background:
    linear-gradient(145deg, rgba(255,255,255,.10), rgba(255,255,255,.035)),
    var(--mw-glass-bg) !important;
  box-shadow:
    0 34px 110px rgba(0, 0, 0, .62),
    inset 0 1px 0 rgba(255,255,255,.12) !important;
  backdrop-filter: blur(24px) saturate(145%);
  -webkit-backdrop-filter: blur(24px) saturate(145%);
  transform-origin: center;
  animation: mwindaAccountIn .42s cubic-bezier(.2,.9,.2,1) both;
}

.account-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 18% 0%, rgba(255,255,255,.18), transparent 26%),
    linear-gradient(120deg, rgba(255,255,255,.10), transparent 38%, rgba(212,175,55,.08));
}

.account-card::after {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: calc(var(--mw-radius) - 1px);
  pointer-events: none;
  border: 1px solid rgba(255,255,255,.055);
}

.account-logo,
.account-card h1,
.account-subtitle,
.account-tabs,
#createAccountForm,
.account-footer {
  position: relative;
  z-index: 1;
}

.account-logo {
  min-height: 68px !important;
  margin-bottom: 10px !important;
}

.account-logo img {
  max-width: 190px !important;
  max-height: 70px !important;
  filter: drop-shadow(0 18px 32px rgba(0,0,0,.42));
}

.account-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 6px;
  margin: 2px 0 20px;
  border: 1px solid rgba(255,255,255,.11);
  border-radius: 999px;
  background: rgba(255,255,255,.055);
}

.account-tab {
  min-height: 42px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: rgba(255,255,255,.72);
  font-weight: 950;
  transition: transform .22s ease, background .22s ease, color .22s ease, box-shadow .22s ease;
}

.account-tab.active {
  color: #08090b;
  background: linear-gradient(135deg, #f4dc83, #d4af37);
  box-shadow: 0 12px 32px rgba(212,175,55,.24);
}

.account-tab:hover {
  transform: translateY(-1px);
}

.account-card h1 {
  font-size: clamp(26px, 3.6vw, 34px) !important;
  letter-spacing: -0.045em;
}

.account-subtitle {
  max-width: 360px;
  margin-left: auto;
  margin-right: auto;
  color: rgba(255,255,255,.68) !important;
}

.form-group {
  position: relative;
}

.form-group label {
  color: rgba(255,255,255,.72) !important;
  font-weight: 850;
}

.form-group input,
.form-group select {
  min-height: 50px;
  border: 1px solid rgba(255,255,255,.13) !important;
  border-radius: 16px !important;
  background: rgba(255,255,255,.075) !important;
  color: #fff !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06);
  transition: transform .2s ease, border-color .2s ease, background .2s ease, box-shadow .2s ease;
}

.form-group input::placeholder {
  color: rgba(255,255,255,.38);
}

.form-group input:hover,
.form-group select:hover {
  border-color: rgba(212,175,55,.38) !important;
  background: rgba(255,255,255,.095) !important;
}

.form-group input:focus,
.form-group select:focus {
  transform: translateY(-1px);
  border-color: rgba(212,175,55,.95) !important;
  box-shadow:
    0 0 0 4px rgba(212,175,55,.12),
    0 18px 36px rgba(0,0,0,.22) !important;
}

.password-box input {
  padding-right: 56px !important;
}

.password-eye-button {
  right: 9px !important;
  width: 40px !important;
  height: 40px !important;
  border: 1px solid rgba(255,255,255,.12) !important;
  background: rgba(255,255,255,.12) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: transform .18s ease, background .18s ease, border-color .18s ease;
}

.password-eye-button:hover {
  transform: translateY(-50%) scale(1.06) !important;
  border-color: rgba(212,175,55,.70) !important;
  background: rgba(212,175,55,.16) !important;
}

.password-eye-button:active {
  transform: translateY(-50%) scale(.94) !important;
}

.password-eye-button img {
  width: 20px !important;
  height: 20px !important;
  filter: brightness(0) invert(1) !important;
  opacity: .96 !important;
}

.primary-button {
  position: relative;
  min-height: 54px;
  overflow: hidden;
  border-radius: 16px !important;
  background: linear-gradient(135deg, #f4dc83, #d4af37 56%, #9d751f) !important;
  box-shadow:
    0 18px 48px rgba(212,175,55,.24),
    inset 0 1px 0 rgba(255,255,255,.28);
  transition: transform .22s cubic-bezier(.2,.9,.2,1), box-shadow .22s ease, filter .22s ease;
}

.primary-button::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent, rgba(255,255,255,.34), transparent);
  transform: translateX(-130%);
  transition: transform .48s ease;
}

.primary-button:hover {
  transform: translateY(-2px) scale(1.01);
  filter: saturate(1.1);
  box-shadow:
    0 24px 64px rgba(212,175,55,.30),
    inset 0 1px 0 rgba(255,255,255,.34);
}

.primary-button:hover::after {
  transform: translateX(130%);
}

.primary-button:active {
  transform: translateY(0) scale(.985);
}

.primary-button.is-loading {
  cursor: wait;
  opacity: .78;
}

.account-status {
  display: none;
  margin-top: 12px;
  min-height: 18px;
  text-align: center;
  font-size: 13px;
  font-weight: 850;
  color: rgba(255,255,255,.72);
}

.account-status.show {
  display: block;
  animation: mwindaStatusIn .2s ease both;
}

.account-status[data-type="error"] {
  color: #ffb4b4;
}

.account-status[data-type="success"] {
  color: #dff7bf;
}

.account-link-button {
  border: 0;
  background: transparent;
  color: #f1d675;
  font-weight: 950;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.account-link-button:hover {
  color: #fff2b0;
}

.account-footer {
  color: rgba(255,255,255,.64) !important;
}

.account-card.mwinda-shake {
  animation: mwindaShake .35s ease both;
}

@keyframes mwindaAccountAura {
  0% { transform: scale(1.02) translate3d(-1.2vw, -.8vh, 0); }
  50% { transform: scale(1.07) translate3d(1.2vw, .7vh, 0); }
  100% { transform: scale(1.035) translate3d(.2vw, -.4vh, 0); }
}

@keyframes mwindaAccountIn {
  from { opacity: 0; transform: translateY(16px) scale(.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes mwindaStatusIn {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes mwindaShake {
  0%, 100% { transform: translateX(0); }
  18% { transform: translateX(-8px); }
  36% { transform: translateX(7px); }
  54% { transform: translateX(-5px); }
  72% { transform: translateX(3px); }
}

@media (prefers-reduced-motion: reduce) {
  .account-page::before,
  .account-card,
  .account-card.mwinda-shake {
    animation: none !important;
  }

  .account-tab,
  .primary-button,
  .password-eye-button,
  .form-group input,
  .form-group select {
    transition: none !important;
  }
}


/* =====================================================
   MWINDA ACCOUNT RESPONSIVE SYSTEM - CLEAN SOURCE OF TRUTH
   Account creation / login form
===================================================== */

/* Prevent iPhone focus zoom without shrinking readable text. */
html {
  -webkit-text-size-adjust: 100%;
}

/* ---------- Tablet / iPad portrait ---------- */
@media (max-width: 900px) {
  .account-page,
  .profile-page {
    min-height: 100svh;
    padding:
      max(20px, env(safe-area-inset-top))
      20px
      max(20px, env(safe-area-inset-bottom));
  }

  .account-card,
  .profile-card {
    width: min(100%, 500px);
    padding: 28px;
  }

  .account-logo img,
  .profile-logo img {
    max-width: 180px;
    max-height: 70px;
  }
}

/* ---------- Phone ---------- */
@media (max-width: 680px) {
  .account-page,
  .profile-page {
    display: block;
    min-height: 100svh;
    height: auto;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior-y: contain;
    padding:
      max(12px, env(safe-area-inset-top))
      12px
      max(12px, env(safe-area-inset-bottom));
  }

  .account-card,
  .profile-card {
    width: min(100%, 410px);
    max-width: 410px;
    max-height: none;
    margin: 0 auto;
    overflow: visible;
    padding: 18px 16px;
    border-radius: 20px;
  }

  .account-logo,
  .profile-logo {
    min-height: 56px;
    margin-bottom: 8px;
  }

  .account-logo img,
  .profile-logo img {
    max-width: 145px !important;
    max-height: 56px !important;
  }

  .account-card h1,
  .profile-card h1 {
    font-size: 22px !important;
    line-height: 1.1;
  }

  .account-subtitle,
  .profile-subtitle {
    margin-bottom: 14px;
    font-size: 12.5px;
    line-height: 1.4;
  }

  .account-tabs {
    margin-bottom: 14px;
  }

  .account-tab {
    min-height: 38px;
    font-size: 13px;
  }

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

  .form-group label {
    margin-bottom: 5px;
    font-size: 12px;
  }

  .form-group input,
  .form-group select {
    min-height: 46px;
    padding: 11px 12px;
    border-radius: 14px !important;
    font-size: 16px !important;
  }

  .password-box {
    position: relative;
    display: flex;
    flex-direction: row;
    align-items: center;
  }

  .password-box input {
    padding-right: 54px !important;
  }

  .password-eye-button {
    position: absolute;
    top: 50%;
    right: 7px !important;
    width: 36px !important;
    height: 36px !important;
    min-height: 36px !important;
    transform: translateY(-50%);
  }

  .primary-button {
    min-height: 48px;
    padding: 0 14px;
    border-radius: 14px !important;
    font-size: 14px;
  }

  .account-footer,
  .profile-footer,
  .account-status {
    margin-top: 12px;
    font-size: 12px;
  }
}

/* ---------- Small phone / iPhone SE ---------- */
@media (max-width: 390px) {
  .account-page,
  .profile-page {
    padding:
      max(8px, env(safe-area-inset-top))
      8px
      max(8px, env(safe-area-inset-bottom));
  }

  .account-card,
  .profile-card {
    padding: 14px 12px;
    border-radius: 18px;
  }

  .account-logo,
  .profile-logo {
    min-height: 48px;
    margin-bottom: 6px;
  }

  .account-logo img,
  .profile-logo img {
    max-width: 128px !important;
    max-height: 48px !important;
  }

  .account-card h1,
  .profile-card h1 {
    font-size: 19px !important;
  }

  .account-subtitle,
  .profile-subtitle {
    margin-bottom: 11px;
    font-size: 12px;
  }

  .account-tabs {
    gap: 6px;
    padding: 5px;
    margin-bottom: 11px;
  }

  .account-tab {
    min-height: 36px;
    font-size: 12px;
  }

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

  .form-group input,
  .form-group select {
    min-height: 44px;
    padding: 10px 11px;
  }

  .primary-button {
    min-height: 44px;
  }
}

/* ---------- Short screens / phone landscape ---------- */
@media (max-height: 620px) and (max-width: 900px) {
  .account-page,
  .profile-page {
    align-items: flex-start;
  }

  .account-card,
  .profile-card {
    margin-top: 0;
    margin-bottom: 0;
  }

  .account-logo,
  .profile-logo {
    min-height: 44px;
    margin-bottom: 4px;
  }

  .account-logo img,
  .profile-logo img {
    max-height: 44px !important;
  }

  .account-subtitle,
  .profile-subtitle {
    margin-bottom: 10px;
  }
}

/* ---------- Touch devices: remove hover-only movement ---------- */
@media (hover: none), (pointer: coarse) {
  .account-tab:hover,
  .primary-button:hover,
  .password-eye-button:hover,
  .form-group input:hover,
  .form-group select:hover {
    transform: none !important;
  }
}

/* =====================================================
   MWINDA ACCOUNT — VIDEO BACKGROUND
===================================================== */

.account-page {
  position: relative !important;
  isolation: isolate;
  overflow-x: hidden;
  background: #050505 !important;
}

/* Disable the previous animated account background */
.account-page::before,
.account-page::after {
  content: none !important;
  display: none !important;
}

.account-video-background {
  position: fixed !important;
  inset: 0 !important;
  z-index: 0 !important;
  display: block !important;
  overflow: hidden;
  pointer-events: none;
  background: #050505;
}

.account-background-video {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  display: block !important;
  object-fit: cover !important;
  object-position: center !important;
  opacity: 1 !important;
  visibility: visible !important;
}

.account-video-shade {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: rgba(0, 0, 0, 0.18);
}

.account-card {
  position: relative !important;
  z-index: 2 !important;
}

/* =====================================================
   MWINDA ACCOUNT — FUTURISTIC GLASS CARD
===================================================== */

.account-page {
  align-items: center;
  padding:
    max(28px, env(safe-area-inset-top))
    20px
    max(28px, env(safe-area-inset-bottom));
}

/* Clear but readable glass panel */
.account-card {
  width: min(100%, 540px) !important;
  max-width: 540px !important;
  padding: clamp(24px, 3vw, 38px) !important;
  overflow: hidden;

  border: 1px solid rgba(255, 255, 255, 0.16) !important;
  border-radius: 30px !important;

  background:
    linear-gradient(
      145deg,
      rgba(7, 12, 14, 0.46),
      rgba(6, 8, 10, 0.28)
    ) !important;

  box-shadow:
    0 32px 90px rgba(0, 0, 0, 0.42),
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    inset 0 -1px 0 rgba(212, 175, 55, 0.09) !important;

  backdrop-filter: blur(18px) saturate(120%);
  -webkit-backdrop-filter: blur(18px) saturate(120%);
}

/* Futuristic light reflection */
.account-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;

  background:
    radial-gradient(
      circle at 18% 0%,
      rgba(255, 255, 255, 0.13),
      transparent 30%
    ),
    radial-gradient(
      circle at 90% 100%,
      rgba(212, 175, 55, 0.11),
      transparent 34%
    ) !important;
}

.account-card::after {
  content: "";
  position: absolute;
  inset: 1px;
  z-index: 0;
  pointer-events: none;

  border: 1px solid rgba(255, 255, 255, 0.045);
  border-radius: 29px;
}

/* Keep all real content above the glass effects */
.account-logo,
.account-tabs,
.account-card h1,
.account-subtitle,
#createAccountForm,
.account-footer,
.account-status {
  position: relative;
  z-index: 2;
}

/* Smaller logo area */
.account-logo {
  min-height: 58px !important;
  margin-bottom: 14px !important;
}

.account-logo img {
  max-width: 150px !important;
  max-height: 58px !important;
}

/* Compact futuristic mode selector */
.account-tabs {
  gap: 6px;
  padding: 5px !important;
  margin: 4px 0 22px !important;

  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  border-radius: 999px !important;
  background: rgba(0, 0, 0, 0.16) !important;

  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.account-tab {
  min-height: 42px !important;
  border-radius: 999px !important;
  font-size: 14px !important;
}

.account-tab.active {
  color: #090909 !important;
  background:
    linear-gradient(
      135deg,
      #f4dd83,
      #d4af37 60%,
      #ad811d
    ) !important;

  box-shadow:
    0 10px 26px rgba(212, 175, 55, 0.23),
    inset 0 1px 0 rgba(255, 255, 255, 0.35) !important;
}

/* Titles */
.account-card h1 {
  margin-bottom: 8px !important;
  font-size: clamp(27px, 4vw, 35px) !important;
  line-height: 1.04 !important;
  letter-spacing: -0.04em;
}

.account-subtitle {
  max-width: 430px;
  margin: 0 auto 22px !important;
  color: rgba(255, 255, 255, 0.72) !important;
  font-size: 14px !important;
  line-height: 1.45;
}

/* Cleaner compact form */
.form-group {
  margin-bottom: 15px !important;
}

.form-group label {
  margin-bottom: 7px !important;
  color: rgba(255, 255, 255, 0.82) !important;
  font-size: 13px !important;
}

.form-group input,
.form-group select {
  min-height: 50px !important;
  padding: 12px 15px !important;

  border: 1px solid rgba(255, 255, 255, 0.13) !important;
  border-radius: 16px !important;

  background: rgba(3, 6, 8, 0.22) !important;
  color: #ffffff !important;

  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.045) !important;

  backdrop-filter: blur(9px);
  -webkit-backdrop-filter: blur(9px);
}

.form-group input::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

.form-group input:hover,
.form-group select:hover {
  border-color: rgba(212, 175, 55, 0.42) !important;
  background: rgba(6, 9, 11, 0.32) !important;
}

.form-group input:focus,
.form-group select:focus {
  border-color: rgba(241, 214, 117, 0.82) !important;

  box-shadow:
    0 0 0 3px rgba(212, 175, 55, 0.12),
    0 0 26px rgba(212, 175, 55, 0.08) !important;
}

/* Smaller eye controls */
.password-eye-button {
  right: 7px !important;
  width: 38px !important;
  height: 38px !important;
  min-height: 38px !important;

  background: rgba(0, 0, 0, 0.28) !important;
  border-color: rgba(255, 255, 255, 0.12) !important;
}

/* Compact floating/bouncing action button */
.primary-button {
  display: block;
  width: min(82%, 390px) !important;
  min-height: 48px !important;

  margin:
    24px
    auto
    0 !important;

  padding: 0 22px !important;
  border-radius: 999px !important;

  font-size: 14px !important;
  letter-spacing: 0.01em;

  box-shadow:
    0 14px 36px rgba(212, 175, 55, 0.23),
    inset 0 1px 0 rgba(255, 255, 255, 0.35) !important;

  animation:
    mwindaAccountButtonFloat
    3s
    ease-in-out
    infinite;
}

@keyframes mwindaAccountButtonFloat {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-4px);
  }
}

.primary-button:hover {
  transform: translateY(-3px) scale(1.015) !important;

  box-shadow:
    0 20px 46px rgba(212, 175, 55, 0.32),
    inset 0 1px 0 rgba(255, 255, 255, 0.42) !important;
}

.primary-button:active {
  transform: translateY(1px) scale(0.975) !important;
}

/* Footer */
.account-footer {
  margin-top: 19px !important;
  color: rgba(255, 255, 255, 0.66) !important;
  font-size: 13px !important;
}

/* =====================================================
   TABLET
===================================================== */

@media (max-width: 900px) {
  .account-card {
    width: min(100%, 500px) !important;
    max-width: 500px !important;
    padding: 28px 25px !important;
  }
}

/* =====================================================
   PHONE
===================================================== */

@media (max-width: 680px) {
  .account-page {
    display: flex !important;
    align-items: flex-start !important;
    justify-content: center;

    min-height: 100svh;
    height: auto;

    padding:
      max(14px, env(safe-area-inset-top))
      10px
      max(14px, env(safe-area-inset-bottom));
  }

  .account-card {
    width: min(100%, 410px) !important;
    max-width: 410px !important;
    margin: auto 0 !important;
    padding: 20px 16px !important;

    border-radius: 24px !important;

    background:
      linear-gradient(
        145deg,
        rgba(6, 10, 12, 0.5),
        rgba(5, 7, 9, 0.34)
      ) !important;

    backdrop-filter: blur(14px) saturate(115%);
    -webkit-backdrop-filter: blur(14px) saturate(115%);
  }

  .account-card::after {
    border-radius: 23px;
  }

  .account-logo {
    min-height: 46px !important;
    margin-bottom: 8px !important;
  }

  .account-logo img {
    max-width: 125px !important;
    max-height: 46px !important;
  }

  .account-tabs {
    margin-bottom: 15px !important;
  }

  .account-tab {
    min-height: 38px !important;
    font-size: 12.5px !important;
  }

  .account-card h1 {
    font-size: 24px !important;
  }

  .account-subtitle {
    margin-bottom: 15px !important;
    font-size: 12.5px !important;
  }

  .form-group {
    margin-bottom: 11px !important;
  }

  .form-group label {
    margin-bottom: 5px !important;
    font-size: 12px !important;
  }

  .form-group input,
  .form-group select {
    min-height: 45px !important;
    padding: 10px 12px !important;
    font-size: 16px !important;
  }

  .password-box input {
    padding-right: 50px !important;
  }

  .password-eye-button {
    width: 34px !important;
    height: 34px !important;
    min-height: 34px !important;
  }

  .primary-button {
    width: min(88%, 330px) !important;
    min-height: 44px !important;
    margin-top: 17px !important;
    font-size: 13px !important;
  }

  .account-footer {
    margin-top: 14px !important;
    font-size: 12px !important;
  }
}

/* =====================================================
   SMALL PHONE
===================================================== */

@media (max-width: 390px) {
  .account-card {
    padding: 16px 12px !important;
    border-radius: 20px !important;
  }

  .account-card::after {
    border-radius: 19px;
  }

  .account-card h1 {
    font-size: 21px !important;
  }

  .account-subtitle {
    font-size: 12px !important;
  }

  .account-tabs {
    margin-bottom: 12px !important;
  }

  .form-group {
    margin-bottom: 9px !important;
  }
}

/* Accessibility: avoid continuous motion when requested */
@media (prefers-reduced-motion: reduce) {
  .primary-button {
    animation: none !important;
  }
}