:root {
  --bg: #f4f6fb;
  --navy: #101827;
  --gold: #d9ad55;
  --white: #ffffff;
  --muted: #788397;
  --border: #e6eaf1;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--navy);
  font-family: Arial, sans-serif;
}
.topbar {
  background: var(--navy);
  color: white;
  padding: 18px 6%;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.topbar h2 { margin: 0; color: var(--gold); }
button, input { font: inherit; }
button { cursor: pointer; }
.container {
  width: min(100% - 32px, 850px);
  margin: 32px auto;
  min-height: 70vh;
}
h1 { font-size: 28px; margin-bottom: 8px; }
h2 { font-size: 20px; }
p { line-height: 1.5; }
.muted, .balance p, .balance span { color: var(--muted); }
.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 24px;
  margin-bottom: 24px;
  box-shadow: 0 8px 28px #17243b08;
}
#authSection { max-width: 460px; margin: 45px auto; }
.tabs { display: flex; gap: 8px; margin: 24px 0; }
.tabs button {
  flex: 1;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: white;
}
.tabs button.active { background: var(--navy); color: white; }
label { display: block; font-size: 14px; margin: 16px 0 7px; }
input {
  width: 100%;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  outline: none;
}
input:focus { border-color: var(--gold); }
.primary {
  width: 100%;
  margin-top: 22px;
  padding: 14px;
  border: 0;
  border-radius: 10px;
  background: var(--gold);
  color: var(--navy);
  font-weight: bold;
}
.primary:disabled { opacity: .6; }
.balance {
  background: var(--navy);
  color: white;
  border: none;
}
.balance p, .balance span { color: #c2c9d5; }
.balance h2 { color: var(--gold); font-size: 32px; }
.plans { display: grid; grid-template-columns: repeat(auto-fit,minmax(220px,1fr)); gap: 16px; }
.plan { background: white; border: 1px solid var(--border); border-radius: 16px; padding: 20px; }
.plan h3 { margin-top: 0; }
.plan .rate { color: #987022; font-weight: bold; }
.plan button, #logoutBtn {
  border: 0;
  border-radius: 9px;
  padding: 11px 15px;
  background: var(--navy);
  color: white;
}
#history { overflow-wrap: anywhere; }
.investment-row { padding: 14px 0; border-bottom: 1px solid var(--border); }
.investment-row:last-child { border-bottom: 0; }
#authMessage, #dashboardMessage { color: #a23d3d; }
footer { text-align: center; color: var(--muted); padding: 24px; }
[hidden] { display: none !important; }
@media (max-width: 480px) {
  .container { margin-top: 20px; }
  .card { padding: 19px; }
  h1 { font-size: 25px; }
}

/* AURAVEST PREMIUM FINTECH THEME */
:root {
  --bg: #090d19;
  --navy: #111a2b;
  --gold: #e8c16d;
  --white: #f5f7ff;
  --muted: #9aa7bd;
  --border: #283247;
}

body {
  background:
    radial-gradient(ellipse at 15% 5%, #28204b 0%, transparent 40%),
    radial-gradient(ellipse at 90% 55%, #103b40 0%, transparent 35%),
    #090d19;
  color: var(--white);
}

.topbar {
  background: #0b1120dd;
  border-bottom: 1px solid #ffffff12;
  backdrop-filter: blur(16px);
}

.topbar h2 {
  background: linear-gradient(90deg, #f5d889, #b9a0ff, #48e2d0, #f5d889);
  background-size: 250% auto;
  color: transparent;
  background-clip: text;
  -webkit-background-clip: text;
  animation: auraShimmer 5s linear infinite;
}

@keyframes auraShimmer {
  to { background-position: 250% center; }
}

.card, .plan {
  background: linear-gradient(145deg, #172136, #101625);
  border: 1px solid #ffffff12;
  color: var(--white);
  box-shadow: 0 16px 45px #0003;
}

#authSection {
  margin-top: 45px;
  position: relative;
  overflow: hidden;
}

#authSection::before {
  content: "";
  display: block;
  height: 3px;
  margin: -24px -24px 25px;
  background: linear-gradient(90deg, #a68bff, #42dfce, #e8c16d);
  background-size: 200% auto;
  animation: auraShimmer 4s linear infinite;
}

.tabs button {
  background: #0b1120;
  border-color: #ffffff12;
  color: var(--muted);
}

.tabs button.active {
  background: linear-gradient(120deg, #333051, #203847);
  color: white;
}

input {
  background: #0b1120;
  border-color: #303b51;
  color: white;
}

input:focus {
  border-color: #a68bff;
  box-shadow: 0 0 0 3px #a68bff20;
}

.primary {
  background: linear-gradient(100deg, #f2d58e, #d9ad55);
  color: #111827;
  border-radius: 12px;
  box-shadow: 0 8px 25px #d9ad5522;
}

.balance {
  background: linear-gradient(130deg, #192943, #191831);
  border: 1px solid #a68bff30;
}

.balance h2 {
  color: var(--gold);
}

.plan button, #logoutBtn {
  background: #202c43;
  color: white;
  border: 1px solid #ffffff14;
}

#authMessage {
  color: #ff9caa;
}

footer {
  color: #8490a7;
}

[hidden] {
  display: none !important;
}


.login-spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid #11182755;
  border-top-color: #111827;
  border-radius: 50%;
  animation: loginSpin 0.7s linear infinite;
}

.primary:disabled {
  opacity: 0.8;
  cursor: wait;
}

@keyframes loginSpin {
  to { transform: rotate(360deg); }
}

/* AURAVEST BOTTOM NAVIGATION */
body { padding-bottom: 95px; }

.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding: 10px 8px calc(10px + env(safe-area-inset-bottom));
  background: #0b1120f5;
  border-top: 1px solid #ffffff18;
  backdrop-filter: blur(20px);
}

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 7px 2px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: #8b97ad;
  font-size: 11px;
}

.nav-icon {
  font-size: 22px;
  line-height: 1.2;
}

.nav-item.active {
  color: #e8c16d;
  background: #e8c16d12;
}

.nav-item.active .nav-icon {
  filter: drop-shadow(0 0 6px #e8c16d66);
}


.app-view { animation: sectionEnter .22s ease-out; }
@keyframes sectionEnter {
  from { opacity: .45; transform: translateY(5px); }
  to { opacity: 1; transform: translateY(0); }
}
.secondary-action {
  display: block;
  width: 100%;
  margin: 12px 0;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 11px;
  background: var(--navy);
  color: var(--white);
}

/* AuraVest authentication refinement */
.password-wrap{position:relative}
.password-wrap input{width:100%;padding-right:72px}
.password-toggle{position:absolute;right:10px;top:50%;transform:translateY(-50%);border:0;background:transparent;color:#e8c16d;font-size:13px;padding:8px}
.forgot-row{display:flex;justify-content:flex-end;margin:4px 0 18px}
.text-action{border:0;background:transparent;color:#e8c16d;padding:4px;font:inherit;cursor:pointer}
.auth-primary{width:100%;min-height:48px}
.auth-divider{display:flex;align-items:center;gap:12px;margin:22px 0;color:#8995aa;font-size:11px;letter-spacing:1.5px}
.auth-divider:before,.auth-divider:after{content:"";height:1px;flex:1;background:#ffffff20}
.google-button{width:100%;min-height:48px;display:flex;align-items:center;justify-content:center;gap:12px;background:#111827;color:#f5f7ff;border:1px solid #344056;border-radius:12px;font-weight:600}
.google-mark{display:grid;place-items:center;width:23px;height:23px;border-radius:50%;background:#fff;color:#4285f4;font-weight:800;font-size:16px}
.auth-switch{text-align:center;margin-top:20px;color:#a8b1c4;font-size:14px}
.google-mark{width:22px;height:22px;display:block;flex-shrink:0;background:transparent;border-radius:0}

/* AuraVest internal transfer */
.recipient-preview{margin:18px 0;padding:16px;border:1px solid #d9ad5555;border-radius:14px;background:#d9ad550c}
.recipient-preview p{margin:0 0 6px;color:#a8b1c4;font-size:13px}
.recipient-preview strong{color:#e8c16d;font-size:16px}
#transferForm label{margin-top:18px}
#transferForm input{width:100%;box-sizing:border-box}
#transferForm .primary{width:100%;margin-top:14px}

/* AURAVEST MOBILE RESPONSIVE FIT */
* {
  box-sizing: border-box;
}

html {
  width: 100%;
  min-height: 100%;
  overflow-x: clip;
  -webkit-text-size-adjust: 100%;
}

body {
  width: 100%;
  min-width: 0;
  margin: 0;
  overflow-x: clip;
  padding-bottom: calc(90px + env(safe-area-inset-bottom));
}

main,
#authSection,
#dashboard,
.app-view,
#transferForm {
  width: 100%;
  min-width: 0;
  max-width: 100%;
}

#authSection,
#dashboard,
.app-view {
  overflow-wrap: anywhere;
}

input,
select,
textarea,
button {
  max-width: 100%;
  font: inherit;
}

input,
select,
textarea {
  min-width: 0;
}

button {
  min-height: 44px;
  cursor: pointer;
  touch-action: manipulation;
}

.card,
.panel,
.stat-card,
.balance-card {
  min-width: 0;
  max-width: 100%;
  overflow-wrap: anywhere;
}

img,
svg,
canvas {
  max-width: 100%;
}

table {
  width: 100%;
  max-width: 100%;
}

.bottom-nav {
  width: 100%;
  padding-left: max(6px, env(safe-area-inset-left));
  padding-right: max(6px, env(safe-area-inset-right));
  padding-bottom: calc(8px + env(safe-area-inset-bottom));
}

.nav-item {
  min-width: 0;
  min-height: 52px;
  white-space: nowrap;
}

.nav-item span {
  max-width: 100%;
}

#transferForm input {
  display: block;
  min-height: 46px;
  padding: 12px;
  border-radius: 10px;
}

#transferForm button {
  min-height: 46px;
}

@media (max-width: 480px) {
  main,
  #authSection,
  #dashboard,
  .app-view {
    padding-left: 14px;
    padding-right: 14px;
  }

  h1 {
    font-size: clamp(23px, 6vw, 30px);
    line-height: 1.2;
  }

  h2 {
    font-size: clamp(18px, 5vw, 23px);
  }

  .card,
  .panel,
  .balance-card {
    padding: 16px;
    border-radius: 16px;
  }

  input,
  select,
  textarea {
    width: 100%;
    font-size: 16px;
  }

  .bottom-nav {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .nav-item {
    font-size: 10px;
    padding: 6px 1px;
    gap: 3px;
  }

  .nav-icon {
    font-size: 20px;
  }
}

@media (max-width: 350px) {
  main,
  #authSection,
  #dashboard,
  .app-view {
    padding-left: 10px;
    padding-right: 10px;
  }

  .card,
  .panel,
  .balance-card {
    padding: 12px;
  }

  .nav-icon {
    font-size: 18px;
  }
}

/* AURAVEST PREMIUM DASHBOARD */
:root {
  --av-bg: #080d16;
  --av-surface: #101827;
  --av-card: #111b2b;
  --av-gold: #f2c75c;
  --av-gold-light: #ffe49a;
  --av-muted: #9ba9bf;
  --av-border: #28364b;
}

body {
  background:
    radial-gradient(ellipse at 90% 5%, #b78a251c, transparent 35%),
    var(--av-bg);
  color: #f5f7fc;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 16px 12px;
  border-bottom: 1px solid #ffffff0b;
}

.topbar h2 {
  margin: 0;
  font-size: 25px;
  letter-spacing: -1px;
}

.topbar h2::first-letter {
  color: var(--av-gold);
}

.container {
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
  padding: 18px 16px 28px;
}

#dashboard > h1 {
  margin: 10px 0 4px;
  font-size: clamp(25px, 6vw, 34px);
  letter-spacing: -.7px;
}

.muted,
#dashboard > p.muted {
  color: var(--av-muted);
}

.card,
.balance {
  color: #f5f7fc;
  background: linear-gradient(145deg, #121d2d, #0b111d);
  border: 1px solid var(--av-border);
  border-radius: 19px;
  box-shadow: 0 12px 30px #00000020;
}

.balance {
  position: relative;
  overflow: hidden;
  margin: 20px 0 28px;
  padding: 23px 20px;
  border-color: #c6a14a55;
  background:
    radial-gradient(ellipse at 100% 0%, #c99c3524, transparent 60%),
    linear-gradient(135deg, #211f1a, #101827 72%);
}

.balance::after {
  content: "";
  position: absolute;
  width: 190px;
  height: 190px;
  right: -100px;
  top: 65px;
  border: 1px solid #f2c75c25;
  border-radius: 50%;
  box-shadow: 0 0 0 12px #f2c75c06, 0 0 0 26px #f2c75c05;
  pointer-events: none;
}

.balance p {
  margin: 0 0 10px;
  color: #c4cede;
  font-size: 14px;
}

.balance h2 {
  position: relative;
  z-index: 1;
  margin: 0 0 8px;
  font-size: clamp(27px, 7vw, 36px);
  letter-spacing: -.8px;
  overflow-wrap: anywhere;
}

.balance span {
  color: var(--av-muted);
  font-size: 13px;
}

#dashboard > h2,
.app-view > h2 {
  margin-top: 27px;
  font-size: 21px;
}

#plans {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

#plans > * {
  min-width: 0;
  max-width: 100%;
}

#plans .card,
#plans article {
  padding: 14px;
  border: 1px solid #34445e;
  border-radius: 17px;
  background: linear-gradient(150deg, #142137, #0b111d);
}

#plans h3,
#plans h4 {
  font-size: 17px;
  overflow-wrap: anywhere;
}

#plans .primary {
  width: 100%;
  padding: 12px 6px;
  font-size: 13px;
}

.primary {
  color: #19150b;
  background: linear-gradient(110deg, #ffe49a, #e5b849);
  border: 0;
  border-radius: 12px;
  font-weight: 750;
  min-height: 46px;
}

.secondary-action {
  color: #f5f7fc;
  background: #111a29;
  border: 1px solid #344159;
  border-radius: 12px;
}

.app-view {
  max-width: 760px;
  margin: 0 auto;
  padding: 18px 16px 28px;
}

.app-view > h1 {
  font-size: 27px;
  margin: 8px 0;
}

.app-view .balance {
  margin-top: 20px;
}

#transferForm {
  padding: 20px;
}

#transferForm label,
#authForm label {
  display: block;
  margin: 14px 0 7px;
  color: #c7d1e2;
  font-size: 13px;
}

#transferForm input,
#authForm input {
  width: 100%;
  min-height: 47px;
  padding: 12px 13px;
  color: #f5f7fc;
  background: #0a111e;
  border: 1px solid #344159;
  border-radius: 11px;
}

#transferForm input:focus,
#authForm input:focus {
  outline: 2px solid #f2c75c66;
  border-color: var(--av-gold);
}

#transferMessage,
#authMessage {
  overflow-wrap: anywhere;
  color: var(--av-gold-light);
  font-size: 13px;
}

.recipient-preview {
  background: #f2c75c0c;
  border: 1px solid #f2c75c44;
  border-radius: 13px;
}

footer {
  padding: 20px 12px 110px;
  text-align: center;
  color: #75839a;
  font-size: 12px;
}

.bottom-nav {
  background: #080d16f5;
  border-top: 1px solid #263247;
  backdrop-filter: blur(18px);
}

.nav-item {
  color: #8997ad;
  font-weight: 500;
}

.nav-item.active {
  color: var(--av-gold);
  background: #f2c75c0b;
}

.nav-item.active .nav-icon {
  filter: drop-shadow(0 0 7px #f2c75c55);
}

@media (max-width: 480px) {
  .topbar {
    padding: 15px 14px 10px;
  }

  .container,
  .app-view {
    padding-left: 14px;
    padding-right: 14px;
  }

  #plans {
    gap: 9px;
  }

  #plans .card,
  #plans article {
    padding: 11px;
  }

  #plans .primary {
    font-size: 12px;
  }

  .balance {
    padding: 20px 16px;
  }
}

@media (max-width: 350px) {
  #plans {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* AURAVEST REFERENCE DASHBOARD */
.av-welcome-bar {
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:12px;
  margin:0 0 25px;
}
.av-brand {
  font-size:25px;
  font-weight:800;
  letter-spacing:-1px;
}
.av-tagline {
  margin:3px 0 0;
  font-size:9px;
  letter-spacing:2px;
  color:#e8c16d;
}
.av-notification {
  position:relative;
  width:45px;
  height:45px;
  border-radius:14px;
  border:1px solid #344159;
  background:#111a29;
  color:#f2c75c;
  font-size:23px;
}
.av-notification-dot {
  position:absolute;
  top:9px;
  right:9px;
  width:7px;
  height:7px;
  border-radius:50%;
  background:#f2c75c;
}
.av-greeting {
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:10px;
  margin-bottom:18px;
}
.av-greeting h1 {
  margin:5px 0;
  font-size:clamp(23px,6vw,31px);
}
.av-greeting .muted {
  margin:5px 0 0;
  font-size:13px;
}
.av-eyebrow {
  color:#d9b75f;
  font-size:10px;
  letter-spacing:1.4px;
  margin:0;
}
.av-avatar {
  flex-shrink:0;
  display:grid;
  place-items:center;
  width:47px;
  height:47px;
  border:1px solid #e8c16d66;
  border-radius:50%;
  color:#f2c75c;
  background:linear-gradient(145deg,#2c281c,#111827);
  font-size:23px;
}
.av-balance {
  min-height:170px;
  padding:21px;
  margin:0 0 26px;
  border:1px solid #c8a24e66;
  background:linear-gradient(125deg,#292419,#111a29 68%,#151b26);
}
.av-balance-top,
.av-balance-bottom {
  position:relative;
  z-index:1;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:8px;
}

.av-balance-health-dot {
  display: inline-block;
  flex: 0 0 7px;
  width: 7px;
  height: 7px;
  border: 0;
  border-radius: 50%;
  padding: 0;
  margin-left: auto;
  background: #ef4444;
  box-shadow: none;
  transition: background-color 180ms ease;
}
.av-balance-health-dot[data-level="red"] { background: #ef4444; }
.av-balance-health-dot[data-level="blue"] { background: #3b82f6; }
.av-balance-health-dot[data-level="yellow"] { background: #facc15; }
.av-balance-health-dot[data-level="green"] { background: #22c55e; }

.av-balance-top p {
  margin:0;
  font-size:10px;
  letter-spacing:1.5px;
  color:#d4d8e0;
}
#balanceVisibility {
  min-width:36px;
  min-height:32px;
  border:1px solid #ffffff20;
  border-radius:9px;
  background:#ffffff0b;
  color:#f2c75c;
}
.av-balance #balance {
  position:relative;
  z-index:1;
  margin:18px 0;
  font-size:clamp(27px,7vw,36px);
  overflow-wrap:anywhere;
}
.av-balance-bottom {
  color:#aeb8c9;
  font-size:11px;
}
.av-secure-label { color:#e8c16d; }
.av-balance-orbit {
  position:absolute;
  right:-70px;
  bottom:-120px;
  width:220px;
  height:220px;
  border:1px solid #e8c16d1c;
  border-radius:50%;
  box-shadow:0 0 0 18px #e8c16d06,0 0 0 38px #e8c16d04;
  pointer-events:none;
}
.av-section-heading {
  display:flex;
  justify-content:space-between;
  align-items:baseline;
  gap:8px;
  margin:26px 0 14px;
}
.av-section-heading h2 {
  margin:0!important;
  font-size:18px!important;
}
.av-section-heading > span {
  color:#8e9cb2;
  font-size:10px;
  text-align:right;
}
.av-quick-actions {
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:8px;
}
.av-quick-actions button {
  min-width:0;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:9px;
  padding:12px 2px;
  border:1px solid #27364b;
  border-radius:15px;
  background:#101827;
  color:#dfe5ef;
  font-size:10px;
}
.av-action-icon {
  display:grid;
  place-items:center;
  width:42px;
  height:42px;
  border-radius:13px;
  color:#f2c75c;
  background:#f2c75c12;
  border:1px solid #f2c75c24;
  font-size:23px;
}
#plans .plan {
  min-width:0;
  padding:15px 12px;
  overflow:hidden;
  border:1px solid #293951;
  border-radius:17px;
  background:linear-gradient(150deg,#152137,#0d1421);
}
#plans .plan h3 {
  margin:0 0 8px;
  font-size:15px;
}
#plans .plan p {
  color:#aab6c9;
  font-size:11px;
  overflow-wrap:anywhere;
}
#plans .plan .rate {
  color:#f2c75c;
  font-weight:700;
  font-size:12px;
}
.av-mini-chart {
  display:block;
  width:100%;
  height:42px;
  margin:8px 0;
}
@media(max-width:360px) {
  .av-quick-actions { gap:5px; }
  .av-quick-actions button { font-size:9px; }
  .av-action-icon { width:36px;height:36px; }
  .av-section-heading > span { font-size:9px; }
}

/* AURAVEST COMPACT MOBILE LAYOUT */
html {
  scroll-behavior: smooth;
}

body {
  padding-bottom: calc(76px + env(safe-area-inset-bottom));
}

.topbar {
  padding-top: 10px;
  padding-bottom: 8px;
}

.container {
  padding-top: 10px;
  padding-bottom: 12px;
}

#dashboard > h1 {
  margin-top: 5px;
  font-size: 24px;
}

.av-welcome-bar {
  margin-bottom: 14px;
}

.av-greeting {
  margin-bottom: 12px;
}

.av-greeting h1 {
  font-size: 23px;
}

.av-avatar {
  width: 40px;
  height: 40px;
}

.av-balance {
  min-height: 0;
  margin: 0 0 16px;
  padding: 16px;
}

.av-balance #balance {
  margin: 12px 0;
  font-size: clamp(25px, 6vw, 32px);
}

.av-section-heading {
  margin: 17px 0 10px;
}

.av-section-heading h2 {
  font-size: 17px !important;
}

.av-quick-actions button {
  padding: 8px 2px;
  gap: 6px;
}

.av-action-icon {
  width: 35px;
  height: 35px;
  font-size: 20px;
}

#plans {
  gap: 8px;
}

#plans .plan {
  padding: 11px 9px;
}

.av-mini-chart {
  height: 30px;
  margin: 5px 0;
}

.bottom-nav {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  min-height: 64px;
  padding: 5px 6px calc(5px + env(safe-area-inset-bottom));
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.nav-item {
  min-height: 48px;
  padding: 4px 1px;
  gap: 2px;
  font-size: 10px;
}

.nav-icon {
  font-size: 19px;
}

.app-view {
  padding-top: 12px;
  padding-bottom: 20px;
}

.app-view > h1 {
  font-size: 24px;
  margin: 4px 0;
}

.app-view .balance {
  margin: 12px 0 18px;
}

footer {
  padding-top: 12px;
  padding-bottom: 12px;
}

@media (max-width: 360px) {
  .av-greeting h1 {
    font-size: 21px;
  }

  .av-section-heading > span {
    font-size: 9px;
  }

  .av-quick-actions button {
    font-size: 9px;
  }
}

/* FIX: AURAVEST VIEWS START AT THE TOP */
html,
body {
  min-height: 100%;
  height: auto;
}

body {
  display: block;
  margin: 0;
  padding-top: 0;
  padding-bottom: calc(76px + env(safe-area-inset-bottom));
}

main.container {
  display: block;
  margin: 0 auto;
  padding-top: 12px;
  padding-bottom: 16px;
}

#dashboard,
#authSection,
.app-view {
  position: relative;
  top: auto;
  margin-top: 0;
  align-self: auto;
  justify-self: auto;
}

.app-view[hidden],
#dashboard[hidden],
#authSection[hidden] {
  display: none !important;
}

.app-view:not([hidden]) {
  display: block;
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
  padding: 12px 14px 24px;
  animation: none;
}

#dashboard:not([hidden]) {
  display: block;
  margin-top: 0;
}

#dashboard > h1 {
  margin-top: 4px;
}

#dashboard > .av-welcome-bar {
  margin-top: 0;
}

footer {
  position: static;
  height: auto;
  min-height: 0;
  margin: 0;
  padding: 10px 12px;
}

.bottom-nav {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1000;
}


/* AURAVEST SETTINGS AND NOTIFICATIONS */
.av-page-heading {
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:10px;
  margin-bottom:20px;
}

.av-page-heading h1 {
  margin:5px 0;
}

.av-notification-list {
  display:grid;
  gap:12px;
}

.av-settings-profile {
  display:flex;
  align-items:center;
  gap:14px;
  padding:18px;
  margin:18px 0 24px;
}

.av-settings-profile strong {
  overflow-wrap:anywhere;
}

.av-settings-profile p {
  margin:5px 0 0;
  font-size:12px;
  overflow-wrap:anywhere;
}

.av-settings-group {
  margin:22px 0;
}

.av-settings-group h2 {
  margin:0 0 10px;
  font-size:15px;
  color:#e8c16d;
}

.av-settings-row {
  width:100%;
  min-height:69px;
  display:flex;
  align-items:center;
  gap:12px;
  padding:12px;
  margin:8px 0;
  text-align:left;
  color:#f5f7fc;
  background:#111a29;
  border:1px solid #29384d;
  border-radius:14px;
}

.av-settings-icon {
  display:grid;
  place-items:center;
  flex-shrink:0;
  width:39px;
  height:39px;
  border-radius:12px;
  color:#e8c16d;
  background:#e8c16d14;
  font-size:20px;
}

.av-settings-row > span:nth-child(2) {
  flex:1;
  min-width:0;
}

.av-settings-row strong,
.av-settings-row small {
  display:block;
}

.av-settings-row strong {
  font-size:13px;
}

.av-settings-row small {
  margin-top:4px;
  color:#97a5ba;
  font-size:11px;
}

.av-settings-row > span:last-child {
  color:#e8c16d;
  font-size:23px;
}

.av-logout-button {
  width:100%;
  min-height:47px;
  border:1px solid #e36b7566;
  border-radius:12px;
  color:#ff929b;
  background:#e36b7510;
  font-weight:700;
}

.av-version {
  margin:20px 0;
  text-align:center;
  color:#7f8ca1;
  font-size:11px;
}

/* AURAVEST SETTINGS AND NOTIFICATIONS */
.av-page-heading {
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:10px;
  margin-bottom:20px;
}

.av-page-heading h1 {
  margin:5px 0;
}

.av-notification-list {
  display:grid;
  gap:12px;
}

.av-settings-profile {
  display:flex;
  align-items:center;
  gap:14px;
  padding:18px;
  margin:18px 0 24px;
}

.av-settings-profile strong {
  overflow-wrap:anywhere;
}

.av-settings-profile p {
  margin:5px 0 0;
  font-size:12px;
  overflow-wrap:anywhere;
}

.av-settings-group {
  margin:22px 0;
}

.av-settings-group h2 {
  margin:0 0 10px;
  font-size:15px;
  color:#e8c16d;
}

.av-settings-row {
  width:100%;
  min-height:69px;
  display:flex;
  align-items:center;
  gap:12px;
  padding:12px;
  margin:8px 0;
  text-align:left;
  color:#f5f7fc;
  background:#111a29;
  border:1px solid #29384d;
  border-radius:14px;
}

.av-settings-icon {
  display:grid;
  place-items:center;
  flex-shrink:0;
  width:39px;
  height:39px;
  border-radius:12px;
  color:#e8c16d;
  background:#e8c16d14;
  font-size:20px;
}

.av-settings-row > span:nth-child(2) {
  flex:1;
  min-width:0;
}

.av-settings-row strong,
.av-settings-row small {
  display:block;
}

.av-settings-row strong {
  font-size:13px;
}

.av-settings-row small {
  margin-top:4px;
  color:#97a5ba;
  font-size:11px;
}

.av-settings-row > span:last-child {
  color:#e8c16d;
  font-size:23px;
}

.av-logout-button {
  width:100%;
  min-height:47px;
  border:1px solid #e36b7566;
  border-radius:12px;
  color:#ff929b;
  background:#e36b7510;
  font-weight:700;
}

.av-version {
  margin:20px 0;
  text-align:center;
  color:#7f8ca1;
  font-size:11px;
}

/* AuraVest transfer result screens */
.av-result-card {
  width: min(100%, 480px);
  margin: 20px auto;
  padding: 24px 18px;
  text-align: center;
  border: 1px solid rgba(215, 176, 91, .25);
  border-radius: 22px;
  background: linear-gradient(155deg, #111b2c, #080d17);
  box-shadow: 0 16px 40px rgba(0, 0, 0, .22);
}
.av-result-icon {
  width: 68px;
  height: 68px;
  display: grid;
  place-items: center;
  margin: 0 auto 14px;
  border-radius: 50%;
  background: rgba(38, 190, 123, .14);
  border: 1px solid #26be7b;
  color: #26be7b;
  font-size: 36px;
  font-weight: 800;
}
.av-result-status {
  color: #d7b05b;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 2px;
}
.av-result-card h2 { margin: 8px 0; }
.av-result-card > h1 {
  color: #e5c477;
  font-size: clamp(28px, 8vw, 38px);
  overflow-wrap: anywhere;
}
.av-result-details {
  margin: 22px 0;
  padding: 4px 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, .035);
  text-align: left;
}
.av-result-details > div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 0;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}
.av-result-details > div:last-child { border-bottom: 0; }
.av-result-details span { color: #9ca8b9; font-size: 12px; }
.av-result-details strong {
  max-width: 65%;
  text-align: right;
  overflow-wrap: anywhere;
  font-size: 12px;
}
.av-result-card button {
  width: 100%;
  margin-top: 10px;
}
.av-result-card.av-result-failed .av-result-icon {
  color: #ff7777;
  border-color: #ff7777;
  background: rgba(255, 80, 80, .12);
}
.av-result-card.av-result-pending .av-result-icon {
  color: #e5c477;
  border-color: #e5c477;
  background: rgba(229, 196, 119, .12);
}

/* AuraVest transaction receipt preview */
.av-receipt-card {
  max-width: 520px;
  margin: 20px auto;
  padding: 26px 20px;
  border: 1px solid rgba(212, 175, 55, .3);
  border-radius: 22px;
  background: linear-gradient(160deg, #111923, #080d14);
  box-shadow: 0 15px 45px rgba(0, 0, 0, .25);
}
.av-receipt-brand {
  color: #d8b65c;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 3px;
  margin-bottom: 24px;
}
.av-receipt-details {
  margin: 24px 0;
  border-top: 1px dashed rgba(212, 175, 55, .4);
}
.av-receipt-details > div {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 13px 0;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
  overflow-wrap: anywhere;
}
.av-receipt-details span,
.av-receipt-note {
  color: #aab4c2;
  font-size: 13px;
}
.av-receipt-details strong {
  color: #f5f6f8;
  font-size: 14px;
}
.av-transaction-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  flex-wrap: wrap;
}
.av-amount-credit { color: #42d392; }
.av-amount-debit { color: #ff8b8b; }
.av-view-receipt { margin-top: 8px; }
#downloadTransactionReceipt,
#shareTransactionReceipt,
#closeTransactionReceipt {
  width: 100%;
  margin-top: 10px;
}

/* Compact AuraVest transaction previews */
.av-transaction-row {
  display: block !important;
  padding: 12px 14px !important;
  margin: 0 0 8px !important;
  border-radius: 13px !important;
  min-height: 0 !important;
  gap: 4px !important;
}

.av-transaction-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: nowrap !important;
}

.av-transaction-heading strong {
  font-size: 13px !important;
  line-height: 1.4;
}

.av-transaction-heading strong:first-child {
  flex: 1;
  min-width: 0;
}

.av-transaction-heading strong:last-child {
  white-space: nowrap;
}

.av-transaction-row p {
  margin: 4px 0 !important;
  font-size: 11px !important;
  line-height: 1.4 !important;
  overflow-wrap: anywhere;
}

.av-transaction-row p:nth-of-type(2) {
  color: #9ca8b8;
}

.av-view-receipt {
  padding: 6px 10px !important;
  margin-top: 5px !important;
  font-size: 11px !important;
  min-height: 0 !important;
  width: auto !important;
  border-radius: 8px !important;
}

#walletTransactions,
#activityList {
  padding: 10px !important;
}

/* Tighter transaction cards and centred receipt button */
.av-transaction-row {
  padding: 9px 12px !important;
  margin-bottom: 6px !important;
  border-radius: 12px !important;
}

.av-transaction-heading {
  gap: 6px !important;
}

.av-transaction-heading strong {
  font-size: 12px !important;
}

.av-transaction-row p {
  margin: 3px 0 !important;
  font-size: 10px !important;
  line-height: 1.35 !important;
}

.av-view-receipt {
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  text-align: center !important;
  width: 100% !important;
  padding: 7px 10px !important;
  margin: 7px auto 0 !important;
  font-size: 11px !important;
  line-height: 1.3 !important;
  border-radius: 9px !important;
}

#walletTransactions,
#activityList {
  padding: 7px !important;
}

/* AuraVest official receipt stamp */
.av-official-stamp {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 9px 13px;
  margin: 0 0 22px;
  border: 1px solid #c9a84c;
  border-radius: 7px;
  background: rgba(201, 168, 76, .08);
  color: #d9b95e;
}
.av-stamp-check {
  display: grid;
  place-items: center;
  width: 25px;
  height: 25px;
  border: 1.5px solid #d9b95e;
  border-radius: 50%;
  font-weight: 900;
}
.av-official-stamp strong,
.av-official-stamp small {
  display: block;
  letter-spacing: 1px;
}
.av-official-stamp strong {
  font-size: 10px;
}
.av-official-stamp small {
  margin-top: 3px;
  font-size: 8px;
}

/* Faded AuraVest watermark beneath receipt content */
.av-receipt-card {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.av-receipt-card::after {
  content: "AURAVEST";
  position: absolute;
  left: 50%;
  bottom: 105px;
  transform: translateX(-50%);
  font-size: clamp(30px, 9vw, 54px);
  font-weight: 900;
  letter-spacing: 5px;
  color: rgba(201, 168, 76, 0.07);
  white-space: nowrap;
  pointer-events: none;
  z-index: -1;
}

.av-receipt-card > * {
  position: relative;
}

/* Compact top logout button */
#logoutBtn {
  padding: 6px 10px;
  font-size: 12px;
  line-height: 1.2;
  border-radius: 7px;
  min-height: 0;
  width: auto;
}

/* AuraVest animated investment mini-charts */
.av-mini-chart {
  overflow: visible;
}

.av-chart-line {
  stroke-dasharray: 240;
  stroke-dashoffset: 240;
  filter: drop-shadow(0 0 3px #e8c16d88);
  animation: av-draw-line 1.8s ease-out forwards;
}

.av-chart-glow {
  opacity: 0;
  filter: drop-shadow(0 0 5px #f2c75c);
  animation: av-dot-travel 4s 1.8s ease-in-out infinite;
}

.av-chart-dot {
  opacity: 0;
  animation: av-dot-travel 4s 1.8s ease-in-out infinite;
}

@keyframes av-draw-line {
  to { stroke-dashoffset: 0; }
}

@keyframes av-dot-travel {
  0%   { cx: 0; cy: 35; opacity: 0; }
  5%   { opacity: 1; }
  20%  { cx: 38; cy: 33; }
  40%  { cx: 78; cy: 25; }
  60%  { cx: 119; cy: 18; }
  80%  { cx: 140; cy: 7; }
  95%  { cx: 160; cy: 4; opacity: 1; }
  100% { cx: 160; cy: 4; opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .av-chart-line,
  .av-chart-glow,
  .av-chart-dot {
    animation: none;
    opacity: 1;
    stroke-dashoffset: 0;
  }

  .av-chart-glow {
    cx: 160;
    cy: 4;
  }

  .av-chart-dot {
    cx: 160;
    cy: 4;
  }
}

/* Green animated AuraVest investment charts */
.av-chart-line {
  stroke: #20d889;
  filter: drop-shadow(0 0 3px #20d88988);
}

.av-chart-glow {
  fill: #20ff9b;
  filter: drop-shadow(0 0 5px #20ff9b);
  animation-duration: 7s;
}

.av-chart-dot {
  fill: #baffdc;
  animation-duration: 7s;
}

.av-chart-counter {
  color: #20d889;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1px;
  text-align: right;
  margin: -3px 2px 8px;
  font-variant-numeric: tabular-nums;
}

/* Compact mobile layout */
@media (max-width: 600px) {
  section { margin-bottom: 12px !important; }
  h1 { font-size: 22px !important; margin-bottom: 8px !important; }
  h2 { font-size: 18px !important; margin-bottom: 8px !important; }
  .plans { gap: 10px !important; }
  .plans > * { padding: 12px !important; }
  button { padding-top: 9px; padding-bottom: 9px; }
  p { margin-top: 5px; margin-bottom: 5px; }
}

/* Extra compact mobile spacing */
@media (max-width: 600px) {
  h1 { font-size: 20px !important; margin: 4px 0 6px !important; }
  h2 { font-size: 16px !important; margin: 4px 0 6px !important; }
  h3 { font-size: 14px !important; margin: 4px 0 !important; }
  p { margin: 3px 0 !important; line-height: 1.35; }
  .plans { gap: 7px !important; }
  .plans > * { padding: 9px !important; }
  button { padding: 7px 10px !important; }
}

/* Refined compact investment cards */
@media (max-width: 600px) {
  .plans {
    gap: 8px !important;
  }

  .plans > * {
    padding: 10px !important;
    min-width: 0 !important;
  }

  .plans button {
    display: block;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    padding: 9px 4px !important;
    margin: 8px auto 0 !important;
    font-size: 14px !important;
    white-space: nowrap !important;
    text-align: center !important;
  }

  .plans h3 {
    font-size: 16px !important;
  }

  .plans p {
    font-size: 13px !important;
    overflow-wrap: anywhere;
  }
}

/* Compact mobile layout */
@media (max-width: 600px) {
  section { margin-bottom: 12px !important; }
  h1 { font-size: 22px !important; margin-bottom: 8px !important; }
  h2 { font-size: 18px !important; margin-bottom: 8px !important; }
  .plans { gap: 10px !important; }
  .plans > * { padding: 12px !important; }
  button { padding-top: 9px; padding-bottom: 9px; }
  p { margin-top: 5px; margin-bottom: 5px; }
}

/* Investment plans only — compact mobile layout */
@media (max-width: 600px) {
  .plans > * {
    padding: 10px !important;
    min-width: 0;
  }

  .plans h3 {
    font-size: 16px !important;
    line-height: 1.3;
    margin: 4px 0 6px !important;
  }

  .plans p {
    font-size: 12px !important;
    line-height: 1.4;
    margin: 4px 0 !important;
  }

  .plans .av-mini-chart {
    height: 34px;
  }

  .plans .av-chart-counter {
    font-size: 10px;
    margin-bottom: 5px;
  }

  .plans button {
    display: block;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 8px 3px !important;
    margin: 8px auto 0 !important;
    font-size: 13px !important;
    white-space: nowrap;
    text-align: center;
  }
}

/* Animated AuraVest Game tab */
#bottomNav .nav-item[data-view="games"] {
  position: relative;
  transform: scale(1.08);
  color: #f5cc70;
  animation: av-game-glow 2s ease-in-out infinite;
  border-radius: 12px;
}

#bottomNav .nav-item[data-view="games"] .nav-icon {
  font-size: 23px;
  display: inline-block;
  animation: av-game-bounce 2s ease-in-out infinite;
  filter: drop-shadow(0 0 5px #f5cc70);
}

#bottomNav .nav-item[data-view="games"] span:last-child {
  font-size: 11px;
  font-weight: 800;
  color: #f5cc70;
  text-shadow: 0 0 7px #f5cc7066;
}

@keyframes av-game-glow {
  0%, 100% {
    box-shadow: 0 0 0 rgba(245,204,112,0);
  }
  50% {
    box-shadow: 0 0 12px rgba(245,204,112,0.25);
  }
}

@keyframes av-game-bounce {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-3px) scale(1.12); }
}

@media (prefers-reduced-motion: reduce) {
  #bottomNav .nav-item[data-view="games"],
  #bottomNav .nav-item[data-view="games"] .nav-icon {
    animation: none;
  }
}

/* AuraVest animated Game tab */
#bottomNav .nav-item[data-view="games"] {
  color: #f5cc70 !important;
  transform: scale(1.08);
  border-radius: 12px;
  animation: av-game-glow 2s ease-in-out infinite;
}
#bottomNav .nav-item[data-view="games"] .nav-icon {
  display: inline-block;
  font-size: 23px !important;
  filter: drop-shadow(0 0 6px #f5cc70);
  animation: av-game-bounce 2s ease-in-out infinite;
}
#bottomNav .nav-item[data-view="games"] span:last-child {
  color: #f5cc70 !important;
  font-weight: 800;
  text-shadow: 0 0 7px #f5cc7066;
}
@keyframes av-game-glow {
  0%, 100% { box-shadow: 0 0 0 transparent; }
  50% { box-shadow: 0 0 12px #f5cc7040; }
}
@keyframes av-game-bounce {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-3px) scale(1.12); }
}
@media (prefers-reduced-motion: reduce) {
  #bottomNav .nav-item[data-view="games"],
  #bottomNav .nav-item[data-view="games"] .nav-icon {
    animation: none;
  }
}

/* Fix AuraVest bottom navigation: keep all five tabs on one row */
#bottomNav.bottom-nav {
  display: grid !important;
  grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
  align-items: center;
  justify-content: stretch;
  gap: 0 !important;
  padding: 8px 5px !important;
  box-sizing: border-box;
  width: 100%;
}

#bottomNav .nav-item {
  width: 100% !important;
  min-width: 0 !important;
  max-width: none !important;
  padding: 9px 0 !important;
  margin: 0 !important;
  transform: none !important;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  white-space: nowrap;
  font-size: 11px !important;
}

#bottomNav .nav-item .nav-icon {
  font-size: 19px !important;
  line-height: 1.2;
}

#bottomNav .nav-item[data-view="games"] {
  color: #f5cc70 !important;
  animation: av-game-glow 2s ease-in-out infinite;
}

#bottomNav .nav-item[data-view="games"] .nav-icon {
  font-size: 23px !important;
  animation: av-game-bounce 2s ease-in-out infinite;
}

/* Compact AuraVest notifications only */
.notification,
.notifications,
.notification-item,
.notification-message,
.toast,
.toast-message,
.toast-container,
#toast,
#toastContainer,
#notificationContainer {
  box-sizing: border-box;
}

.notification-item,
.notification-message {
  padding: 8px 10px !important;
  margin-bottom: 6px !important;
  font-size: 12px !important;
  line-height: 1.35 !important;
  border-radius: 10px !important;
}

.toast,
.toast-message,
#toast {
  padding: 9px 12px !important;
  font-size: 12px !important;
  line-height: 1.35 !important;
  border-radius: 10px !important;
}

.notification-item p,
.notification-message p,
.toast p {
  margin: 2px 0 !important;
  font-size: 12px !important;
  line-height: 1.35 !important;
}

.notification-item h3,
.notification-message h3 {
  font-size: 13px !important;
  margin: 0 0 4px !important;
}

/* Reduce spacing between notification cards */
.notification-item,
.notification-message,
.notification-card,
.notification {
  margin-bottom: 8px !important;
}

.notifications,
#notificationContainer {
  gap: 8px !important;
  row-gap: 8px !important;
}

.notifications > *,
#notificationContainer > * {
  margin-top: 0 !important;
  margin-bottom: 8px !important;
}

/* Tighten AuraVest notification card spacing */
.av-notification-list {
  display: flex !important;
  flex-direction: column !important;
  gap: 10px !important;
  row-gap: 10px !important;
}

.av-notification-list > * {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}

/* AuraVest public landing page */
.av-landing {
  max-width: 1000px;
  margin: 0 auto;
  padding: 18px 18px 0;
  color: #edf2fb;
  overflow: hidden;
}
.av-landing-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 8px 0 25px;
}
.av-landing-logo {
  font-size: 22px;
  font-weight: 900;
  color: #f2c96d;
  letter-spacing: -.6px;
}
.av-landing-logo span { color: #f5f7fc; }
.av-landing-login {
  border: 1px solid #c7a65d;
  border-radius: 10px;
  background: transparent;
  color: #f2d58f;
  padding: 10px 18px;
  font-weight: 800;
}
.av-hero {
  position: relative;
  padding: 32px 0 28px;
}
.av-hero-badge,
.av-landing-section-label {
  color: #d9b968;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1.6px;
}
.av-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid #b998493d;
  background: #d8b85e0d;
  border-radius: 30px;
  padding: 9px 12px;
}
.av-hero-badge span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #41d99a;
  box-shadow: 0 0 9px #41d99a;
}
.av-hero h1 {
  margin: 24px 0 14px;
  font-size: clamp(35px, 7vw, 59px);
  line-height: 1.08;
  letter-spacing: -2px;
  font-weight: 900;
}
.av-hero h1 span {
  color: #edc96f;
}
.av-hero > p,
.av-landing-description {
  color: #aab6ca;
  font-size: 14px;
  line-height: 1.8;
  max-width: 470px;
}
.av-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 23px;
}
.av-landing-primary,
.av-landing-secondary {
  min-height: 45px;
  border-radius: 11px;
  padding: 12px 17px;
  font-weight: 800;
  font-size: 13px;
}
.av-landing-primary {
  background: linear-gradient(120deg, #f4d88e, #c9a44d);
  color: #111827;
  border: 0;
  box-shadow: 0 7px 24px #d4b15b24;
}
.av-landing-primary span { margin-left: 12px; }
.av-landing-secondary {
  background: #ffffff08;
  color: #e8edf7;
  border: 1px solid #ffffff20;
}
.av-hero-visual {
  height: 190px;
  position: relative;
  display: grid;
  place-items: center;
  margin: 18px auto 0;
  max-width: 410px;
}
.av-orbit {
  position: absolute;
  border: 1px solid #d7b45a26;
  border-radius: 50%;
  transform: rotate(-18deg);
}
.av-orbit-one { width: 230px; height: 115px; }
.av-orbit-two { width: 300px; height: 150px; }
.av-hero-symbol {
  width: 92px;
  height: 92px;
  display: grid;
  place-items: center;
  font-size: 52px;
  color: #f3d487;
  border: 1px solid #f0ce7b55;
  border-radius: 27px;
  background: linear-gradient(145deg, #253247, #101827);
  box-shadow: 0 0 55px #d9b65c20, inset 0 0 25px #f0ce7b0d;
  animation: av-landing-float 4s ease-in-out infinite;
}
.av-floating-card {
  position: absolute;
  padding: 10px 12px;
  border: 1px solid #ffffff18;
  border-radius: 11px;
  background: #172235eF;
  color: #dce5f4;
  font-size: 11px;
  box-shadow: 0 9px 30px #0003;
}
.av-floating-card span {
  color: #f0ca70;
  margin-right: 5px;
}
.av-floating-top { top: 17px; right: 0; }
.av-floating-bottom { bottom: 12px; left: 0; }
.av-landing-features {
  padding: 28px 0;
  scroll-margin-top: 15px;
}
.av-landing-features h2,
.av-landing-cta h2 {
  margin: 10px 0;
  font-size: 25px;
  letter-spacing: -.6px;
}
.av-landing-description { margin: 0 0 18px; }
.av-feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.av-feature-card {
  border: 1px solid #ffffff12;
  border-radius: 15px;
  background: linear-gradient(145deg, #1a2639, #131d2d);
  padding: 17px 14px;
}
.av-feature-icon {
  width: 37px;
  height: 37px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  background: #e8c36a16;
  color: #edcb79;
  font-size: 20px;
}
.av-feature-card h3 { font-size: 14px; margin: 14px 0 7px; }
.av-feature-card p {
  color: #aab6ca;
  font-size: 12px;
  line-height: 1.65;
  margin: 0;
}
.av-landing-cta {
  padding: 23px 18px;
  border: 1px solid #d5b45c2c;
  border-radius: 17px;
  background: radial-gradient(ellipse at top right, #d5b45c17, transparent 65%), #182336;
  text-align: center;
  margin: 10px 0 28px;
}
.av-landing-cta p { color: #aab6ca; font-size: 13px; line-height: 1.7; }
.av-landing-cta .av-landing-primary { margin-top: 8px; }
.av-landing-footer {
  border-top: 1px solid #ffffff12;
  padding: 20px 0 24px;
  text-align: center;
}
.av-landing-footer div { color: #edcb79; font-weight: 900; }
.av-landing-footer p,
.av-landing-footer small { color: #8592a8; font-size: 11px; line-height: 1.7; }
@keyframes av-landing-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}
@media (max-width: 600px) {
  .av-landing { padding: 12px 16px 0; }
  .av-landing-nav { padding-bottom: 12px; }
  .av-hero { padding-top: 24px; }
  .av-hero h1 { font-size: 39px; letter-spacing: -1.4px; }
  .av-hero > p { font-size: 13px; }
  .av-hero-visual { height: 170px; }
  .av-orbit-one { width: 200px; height: 100px; }
  .av-orbit-two { width: 260px; height: 130px; }
  .av-hero-symbol { width: 78px; height: 78px; font-size: 43px; }
  .av-floating-card { font-size: 10px; padding: 8px 9px; }
  .av-feature-grid { grid-template-columns: 1fr; gap: 9px; }
  .av-feature-card { display: grid; grid-template-columns: 39px 1fr; column-gap: 11px; padding: 12px; }
  .av-feature-icon { grid-row: span 2; }
  .av-feature-card h3 { margin: 1px 0 4px; }
  .av-feature-card p { font-size: 11px; }
  .av-landing-features h2, .av-landing-cta h2 { font-size: 22px; }
}
@media (prefers-reduced-motion: reduce) {
  .av-hero-symbol { animation: none; }
}

/* AuraVest live-chart landing hero */
.av-live-hero {
  position: relative;
  height: 365px;
  max-width: 620px;
  margin: 22px auto 8px;
  isolation: isolate;
}
.av-market-backdrop {
  position: absolute;
  inset: 10px 0 0;
  overflow: hidden;
  border: 1px solid #20d88920;
  border-radius: 20px;
  background: radial-gradient(ellipse at 55% 50%, #20d8890d, transparent 70%);
}
.av-market-label {
  position: absolute;
  top: 16px;
  left: 15px;
  right: 12px;
  display: flex;
  justify-content: space-between;
  gap: 8px;
  color: #aab9c9;
  font-size: 9px;
  letter-spacing: 1.2px;
}
.av-market-label span {
  color: #20d889;
  font-size: 8px;
}
.av-market-percent {
  position: absolute;
  top: 38px;
  left: 15px;
  color: #20d889;
  font-size: 26px;
  font-weight: 900;
  text-shadow: 0 0 20px #20d88945;
  font-variant-numeric: tabular-nums;
}
.av-market-chart {
  position: absolute;
  inset: 85px 0 35px;
  width: 100%;
  height: calc(100% - 120px);
  overflow: visible;
}
.av-chart-area { fill: url(#avChartFill); }
.av-chart-track {
  fill: none;
  stroke: #20d889;
  stroke-width: 2.2;
  stroke-linejoin: round;
  stroke-linecap: round;
  stroke-dasharray: 600;
  stroke-dashoffset: 600;
  filter: drop-shadow(0 0 5px #20d88988);
  animation: av-chart-reveal 3s ease-out forwards, av-chart-shimmer 4s 3s ease-in-out infinite;
}
.av-chart-pulse {
  fill: #c0ffe0;
  stroke: #20d889;
  stroke-width: 3;
  filter: drop-shadow(0 0 6px #20d889);
  animation: av-chart-travel 9s linear infinite;
}
.av-market-caption {
  position: absolute;
  bottom: 12px;
  left: 12px;
  color: #8394a9;
  font-size: 9px;
}
.av-phone {
  position: absolute;
  z-index: 2;
  width: 190px;
  height: 350px;
  right: 7%;
  top: 8px;
  padding: 5px;
  border: 2px solid #687486;
  border-radius: 29px;
  background: linear-gradient(145deg, #39465a, #090e17 40%, #273246);
  box-shadow: 0 22px 55px #0009, 0 0 25px #d5b45c14;
  transform: rotate(3deg);
  animation: av-phone-float 5s ease-in-out infinite;
}
.av-phone-frame {
  position: relative;
  height: 100%;
  overflow: hidden;
  border-radius: 23px;
  background: #101827;
}
.av-phone-notch {
  position: absolute;
  z-index: 3;
  top: 5px;
  left: 50%;
  width: 65px;
  height: 13px;
  border-radius: 20px;
  background: #05080d;
  transform: translateX(-50%);
}
.av-phone-screen {
  padding: 13px 10px 10px;
  color: #f2f5fa;
}
.av-phone-status {
  display: flex;
  justify-content: space-between;
  font-size: 7px;
  margin: 0 1px 12px;
}
.av-phone-brand {
  color: #f1ce79;
  font-size: 12px;
  font-weight: 900;
  display: flex;
  justify-content: space-between;
}
.av-phone-brand span { color: #20d889; font-size: 9px; }
.av-phone-welcome { font-size: 9px; color: #b6c1d0; margin: 9px 0; }
.av-phone-balance {
  border: 1px solid #d6b55c28;
  border-radius: 10px;
  padding: 10px 8px;
  background: linear-gradient(135deg, #1d2a3e, #152031);
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.av-phone-balance > span { color: #a7b4c5; font-size: 6px; letter-spacing: .6px; }
.av-phone-balance strong { font-size: 15px; letter-spacing: -.5px; }
.av-phone-balance small { color: #d9bd70; font-size: 7px; }
.av-phone-actions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 5px;
  margin: 10px 0 13px;
}
.av-phone-actions > div {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  color: #cbd5e2;
  font-size: 7px;
}
.av-phone-actions b {
  width: 27px;
  height: 27px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  background: #d8b85c18;
  color: #f0ce7a;
  font-size: 14px;
}
.av-phone-section {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 3px;
  margin: 9px 0 7px;
  font-size: 8px;
}
.av-phone-section span { color: #d6b665; font-size: 6px; }
.av-phone-plan,
.av-phone-activity {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 8px 6px;
  border: 1px solid #ffffff12;
  border-radius: 8px;
  background: #ffffff05;
}
.av-phone-plan-icon {
  display: grid;
  place-items: center;
  width: 25px;
  height: 25px;
  flex-shrink: 0;
  background: #d8b85c18;
  color: #f0ce7a;
  border-radius: 7px;
}
.av-phone-plan > div,
.av-phone-activity > div {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}
.av-phone-plan b,
.av-phone-activity b { font-size: 8px; }
.av-phone-plan small,
.av-phone-activity small { font-size: 6px; color: #9aa8ba; }
.av-phone-plan > span:last-child { margin-left: auto; color: #d8b85c; }
.av-phone-activity > span {
  color: #20d889;
  font-size: 15px;
  padding: 0 5px;
}
@keyframes av-chart-reveal { to { stroke-dashoffset: 0; } }
@keyframes av-chart-shimmer {
  0%, 100% { filter: drop-shadow(0 0 4px #20d88966); }
  50% { filter: drop-shadow(0 0 9px #20d889cc); }
}
@keyframes av-chart-travel {
  0% { cx: 0; cy: 175; }
  20% { cx: 75; cy: 132; }
  40% { cx: 153; cy: 120; }
  60% { cx: 233; cy: 60; }
  80% { cx: 310; cy: 48; }
  100% { cx: 360; cy: 20; }
}
@keyframes av-phone-float {
  0%, 100% { transform: translateY(0) rotate(3deg); }
  50% { transform: translateY(-7px) rotate(1deg); }
}
@media (max-width: 600px) {
  .av-live-hero { height: 325px; margin-top: 12px; }
  .av-market-backdrop { inset: 12px 0 0; }
  .av-market-percent { font-size: 23px; }
  .av-market-chart { inset: 90px 0 35px; height: calc(100% - 125px); }
  .av-phone { width: 165px; height: 305px; right: 4%; top: 15px; }
  .av-phone-screen { padding: 12px 8px 8px; }
  .av-phone-status { margin-bottom: 10px; }
  .av-phone-balance strong { font-size: 13px; }
  .av-phone-actions { margin: 8px 0 10px; }
  .av-phone-section { margin: 7px 0 5px; }
  .av-phone-plan, .av-phone-activity { padding: 6px 5px; }
}
@media (prefers-reduced-motion: reduce) {
  .av-chart-track, .av-chart-pulse, .av-phone { animation: none; }
}

/* AuraVest illustrative candlestick chart */
.av-real-chart {
  position: absolute;
  inset: 78px 0 34px;
  overflow: hidden;
}
.av-chart-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(#ffffff0c 1px, transparent 1px),
    linear-gradient(90deg, #ffffff0a 1px, transparent 1px);
  background-size: 100% 25%, 12.5% 100%;
}
#avCandlestickChart {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}
.av-candle-wick {
  stroke-width: 1.4;
  vector-effect: non-scaling-stroke;
}
.av-candle-body {
  stroke-width: .6;
  vector-effect: non-scaling-stroke;
}
.av-candle-up { stroke: #22d995; fill: #22d995; }
.av-candle-down { stroke: #ff667c; fill: #ff667c; }
.av-candle-last {
  filter: drop-shadow(0 0 4px #22d995aa);
}
.av-chart-price-line {
  stroke: #22d99599;
  stroke-width: 1;
  stroke-dasharray: 4 4;
}
.av-chart-price-tag {
  fill: #22d995;
}
.av-chart-price-text {
  fill: #071b13;
  font-size: 9px;
  font-weight: 800;
}
@media (max-width: 600px) {
  .av-real-chart { inset: 84px 0 35px; }
}
@media (prefers-reduced-motion: reduce) {
  #avCandlestickChart * { animation: none !important; }
}

/* Smooth AuraVest public-page transitions */
#landingPage,
#authSection {
  animation: av-page-enter .55s cubic-bezier(.2,.75,.25,1) both;
}

#landingPage[hidden],
#authSection[hidden],
#dashboard[hidden],
#bottomNav[hidden] {
  display: none !important;
}

.av-hero h1,
.av-hero > p,
.av-hero-actions,
.av-live-hero,
.av-landing-features,
.av-landing-cta {
  animation: av-content-enter .8s cubic-bezier(.2,.75,.25,1) both;
}

.av-hero > p { animation-delay: .08s; }
.av-hero-actions { animation-delay: .14s; }
.av-live-hero { animation-delay: .2s; }

.av-landing-primary,
.av-landing-secondary,
.av-landing-login {
  transition: transform .22s ease, box-shadow .22s ease, filter .22s ease;
}

.av-landing-primary:hover,
.av-landing-secondary:hover,
.av-landing-login:hover {
  transform: translateY(-2px);
  filter: brightness(1.07);
}

.av-landing-primary:active,
.av-landing-secondary:active,
.av-landing-login:active {
  transform: scale(.98);
}

@keyframes av-page-enter {
  from { opacity: 0; transform: translateY(9px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes av-content-enter {
  from { opacity: 0; transform: translateY(13px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  #landingPage,
  #authSection,
  .av-hero h1,
  .av-hero > p,
  .av-hero-actions,
  .av-live-hero,
  .av-landing-features,
  .av-landing-cta {
    animation: none !important;
  }

  .av-landing-primary,
  .av-landing-secondary,
  .av-landing-login {
    transition: none !important;
  }
}

/* Ensure hidden app views never appear on the landing page */
[hidden],
.hidden {
  display: none !important;
}

/* AuraVest Google sign-in button: full-width fit */
#googleSignInBtn {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  padding: 0;
  margin: 0;
  display: flex;
  justify-content: center;
  box-sizing: border-box;
  overflow: hidden;
}

#googleSignInBtn > div,
#googleSignInBtn iframe {
  max-width: 100% !important;
}

#googleSignInBtn iframe {
  display: block;
}

/* Compact Google sign-in icon */
.google-icon-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  margin: 14px auto;
}

#googleSignInBtn {
  width: 48px;
  height: 48px;
  min-width: 48px;
  max-width: 48px;
  padding: 0;
  margin: 0;
  border: 1px solid #d7dce5;
  border-radius: 50%;
  background: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  box-sizing: border-box;
}

#googleSignInBtn iframe {
  max-width: 48px !important;
  height: 48px !important;
}

/* Official Google icon-only sign-in button */
.google-icon-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  margin: 14px auto;
}

#googleSignInBtn {
  width: 48px;
  min-width: 48px;
  max-width: 48px;
  height: 48px;
  margin: 0 auto;
  padding: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  background: transparent;
  border: 0;
  box-sizing: border-box;
}

/* Refined Google icon button size */
#googleSignInBtn {
  width: 56px;
  min-width: 56px;
  max-width: 56px;
  height: 56px;
  margin: 0 auto;
}

#googleSignInBtn iframe {
  max-width: 56px !important;
  height: 56px !important;
}

.google-icon-wrapper {
  margin: 18px auto;
}

/* Restore full-width Google sign-in card */
.google-icon-wrapper {
  display: block;
  width: 100%;
  margin: 14px auto;
}

#googleSignInBtn {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  height: auto;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  overflow: visible;
  box-sizing: border-box;
}

#googleSignInBtn iframe {
  max-width: 100% !important;
}

/* Google sign-in card: align perfectly with the login form */
.auth-divider + #googleSignInBtn,
.google-icon-wrapper {
  width: 100%;
  max-width: 100%;
  margin: 12px 0;
  box-sizing: border-box;
}

#googleSignInBtn {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  box-sizing: border-box;
  overflow: hidden;
}

#googleSignInBtn > div {
  width: 100% !important;
  max-width: 100% !important;
}

#googleSignInBtn iframe {
  display: block;
  max-width: 100% !important;
}

/* AuraVest two-factor authentication */
.av-2fa-panel {
  margin-top: 20px;
  padding: 20px;
  border: 1px solid #f2c75c55;
  border-radius: 16px;
  background: linear-gradient(145deg, #121d2d, #0b1220);
}

.av-2fa-panel h2 {
  margin: 10px 0;
  color: #f5f7fc;
  font-size: 22px;
}

.av-2fa-panel h3 {
  color: var(--av-gold-light);
}

.av-2fa-icon {
  color: var(--av-gold);
  font-size: 30px;
}

.av-2fa-step {
  color: var(--av-gold-light);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
}

.av-2fa-help,
.av-2fa-warning,
.av-2fa-panel p {
  overflow-wrap: anywhere;
  font-size: 13px;
  line-height: 1.6;
}

.av-2fa-qr {
  display: block;
  width: min(220px, 100%);
  height: auto;
  margin: 18px auto;
  padding: 8px;
  border-radius: 12px;
  background: #fff;
}

.av-2fa-manual {
  margin: 16px 0;
  color: var(--av-gold-light);
  font-size: 13px;
}

.av-2fa-manual summary {
  cursor: pointer;
}

#twoFactorManualKey {
  display: block;
  margin-top: 10px;
  padding: 12px;
  overflow-wrap: anywhere;
  user-select: text;
  border-radius: 8px;
  background: #080e18;
  color: #f5f7fc;
}

#twoFactorForm label {
  display: block;
  margin: 18px 0 7px;
  color: #c7d1e2;
  font-size: 13px;
}

#twoFactorCode {
  width: 100%;
  min-height: 48px;
  padding: 12px;
  border: 1px solid #344159;
  border-radius: 10px;
  background: #0a111e;
  color: #fff;
  font-size: 18px;
  letter-spacing: 2px;
}

.av-2fa-recovery-codes {
  padding: 14px;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
  border: 1px solid #f2c75c55;
  border-radius: 10px;
  background: #080e18;
  color: #fff;
  user-select: text;
  line-height: 1.9;
}

.av-2fa-cancel {
  display: block;
  margin: 18px auto 0;
}

#twoFactorMessage {
  color: var(--av-gold-light);
  font-size: 13px;
  overflow-wrap: anywhere;
}

/* AuraVest admin user action menu */
.admin-user-menu {
  position: relative;
  flex-shrink: 0;
}

.admin-user-menu summary {
  cursor: pointer;
  padding: 9px 12px;
  border: 1px solid var(--av-border, #334155);
  border-radius: 10px;
  list-style: none;
  font-weight: 600;
}

.admin-user-menu summary::-webkit-details-marker {
  display: none;
}

.admin-user-actions {
  position: absolute;
  z-index: 20;
  right: 0;
  top: calc(100% + 6px);
  width: 210px;
  max-width: 75vw;
  padding: 7px;
  border: 1px solid var(--av-border, #334155);
  border-radius: 12px;
  background: var(--av-card, #111b2b);
  box-shadow: 0 12px 30px rgba(0, 0, 0, .25);
}

.admin-user-actions button {
  display: block;
  width: 100%;
  padding: 10px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.admin-user-actions button:hover,
.admin-user-actions button:focus-visible {
  background: rgba(127, 127, 127, .15);
}

/* AuraVest branded admin action modal */
.av-admin-modal[hidden] {
  display: none !important;
}

.av-admin-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.av-admin-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .72);
  backdrop-filter: blur(5px);
}

.av-admin-modal-panel {
  position: relative;
  z-index: 1;
  width: min(100%, 440px);
  max-height: 85vh;
  overflow-y: auto;
  padding: 26px 22px;
  border: 1px solid var(--av-border, #334155);
  border-radius: 22px;
  background: var(--av-card, #111b2b);
  color: var(--av-text, #f8fafc);
  box-shadow: 0 24px 70px rgba(0, 0, 0, .4);
}

.av-admin-modal-close {
  position: absolute;
  top: 12px;
  right: 14px;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 50%;
  background: rgba(127, 127, 127, .14);
  color: inherit;
  font-size: 25px;
  cursor: pointer;
}

.av-admin-modal-panel h2 {
  margin: 10px 40px 8px 0;
}

.av-admin-modal-panel textarea {
  display: block;
  box-sizing: border-box;
  width: 100%;
  margin-top: 9px;
  padding: 13px;
  border: 1px solid var(--av-border, #334155);
  border-radius: 12px;
  background: transparent;
  color: inherit;
  font: inherit;
  resize: vertical;
}

.av-admin-modal-buttons {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 20px;
}

.av-admin-modal-buttons button {
  min-height: 44px;
}

#adminActionFeedback {
  overflow-wrap: anywhere;
}

/* AuraVest action success card */
.av-admin-success-card {
  text-align: center;
}

.av-admin-success-icon {
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  margin: 8px auto 18px;
  border-radius: 50%;
  background: rgba(34, 197, 94, .14);
  border: 1px solid rgba(34, 197, 94, .55);
  color: #22c55e;
  font-size: 36px;
  font-weight: 800;
}

.av-admin-success-card h2 {
  margin: 0 0 10px;
}

.av-admin-success-card p {
  overflow-wrap: anywhere;
  line-height: 1.6;
}

.av-admin-success-card > button {
  width: 100%;
  margin-top: 18px;
  min-height: 46px;
}

/* Compact admin success card for mobile */
.av-admin-success-card {
  width: min(92vw, 420px) !important;
  max-height: 78vh !important;
  overflow-y: auto !important;
  padding: 22px 18px !important;
  border-radius: 22px !important;
  box-sizing: border-box !important;
}

.av-admin-success-card h2,
.av-admin-success-card h3 {
  font-size: 23px !important;
  margin: 10px 0 !important;
}

.av-admin-success-card p {
  font-size: 15px !important;
  line-height: 1.5 !important;
  margin: 9px 0 !important;
  overflow-wrap: anywhere;
}

.av-admin-success-card button {
  min-height: 42px !important;
  padding: 10px 18px !important;
}

@media (max-width: 480px) {
  .av-admin-success-card {
    width: calc(100vw - 36px) !important;
    max-height: 72vh !important;
    padding: 18px 15px !important;
  }

  .av-admin-success-card h2,
  .av-admin-success-card h3 {
    font-size: 20px !important;
  }

  .av-admin-success-card p {
    font-size: 14px !important;
  }
}

/* Compact admin success card for mobile */
.av-admin-success-card {
  width: min(92vw, 420px) !important;
  max-height: 78vh !important;
  overflow-y: auto !important;
  padding: 22px 18px !important;
  border-radius: 22px !important;
  box-sizing: border-box !important;
}

.av-admin-success-card h2,
.av-admin-success-card h3 {
  font-size: 23px !important;
  margin: 10px 0 !important;
}

.av-admin-success-card p {
  font-size: 15px !important;
  line-height: 1.5 !important;
  margin: 9px 0 !important;
  overflow-wrap: anywhere;
}

.av-admin-success-card button {
  min-height: 42px !important;
  padding: 10px 18px !important;
}

@media (max-width: 480px) {
  .av-admin-success-card {
    width: calc(100vw - 36px) !important;
    max-height: 72vh !important;
    padding: 18px 15px !important;
  }

  .av-admin-success-card h2,
  .av-admin-success-card h3 {
    font-size: 20px !important;
  }

  .av-admin-success-card p {
    font-size: 14px !important;
  }
}

/* Compact, centered authentication feedback */
#authMessage {
  display: none;
  box-sizing: border-box;
  width: 100%;
  margin: 12px 0 0;
  padding: 12px 14px;
  border: 1px solid rgba(255, 100, 100, 0.35);
  border-radius: 12px;
  background: rgba(150, 35, 45, 0.12);
  color: #ffb4b4;
  font-size: 13px;
  line-height: 1.5;
  text-align: center;
  overflow-wrap: anywhere;
}

#authMessage:not(:empty) {
  display: block;
}

#authMessage.auth-restricted {
  border-color: rgba(255, 100, 100, 0.5);
  background: rgba(150, 35, 45, 0.16);
}

#authMessage.auth-restricted::before {
  content: "⚠ ";
  font-size: 15px;
}

@media (max-width: 480px) {
  #authMessage {
    margin-top: 10px;
    padding: 10px 12px;
    font-size: 12px;
  }
}

/* AuraVest account details card */
.av-account-details-overlay {
  position: fixed;
  inset: 0;
  z-index: 10050;
  display: grid;
  place-items: center;
  padding: 16px;
  box-sizing: border-box;
}
.av-account-details-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.76);
  backdrop-filter: blur(5px);
}
.av-account-details-card {
  position: relative;
  z-index: 1;
  width: min(100%, 650px);
  max-height: 88dvh;
  overflow-y: auto;
  box-sizing: border-box;
  padding: 24px 18px;
  border: 1px solid var(--av-border, #334155);
  border-radius: 22px;
  background: var(--av-card, #111b2b);
  color: var(--av-text, #f8fafc);
  box-shadow: 0 24px 70px rgba(0,0,0,.5);
}
.av-account-details-close {
  position: sticky;
  float: right;
  top: 0;
  width: 36px;
  height: 36px;
  margin: -5px -4px 0 10px;
  border: 0;
  border-radius: 50%;
  background: rgba(127,127,127,.18);
  color: inherit;
  font-size: 25px;
  cursor: pointer;
}
.av-account-details-card h2 {
  margin: 8px 42px 4px 0;
  font-size: 23px;
}
.av-account-details-subtitle {
  margin: 5px 0 20px;
  color: #94a3b8;
  font-size: 13px;
}
.av-account-details-section {
  margin-top: 16px;
  padding: 15px;
  border: 1px solid var(--av-border, #334155);
  border-radius: 15px;
  background: rgba(127,127,127,.045);
}
.av-account-details-section h3 {
  margin: 0 0 13px;
  font-size: 15px;
}
.av-account-details-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.av-account-details-field {
  min-width: 0;
  padding: 10px;
  border-radius: 10px;
  background: rgba(127,127,127,.08);
}
.av-account-details-field span {
  display: block;
  margin-bottom: 6px;
  color: #94a3b8;
  font-size: 11px;
}
.av-account-details-field strong {
  display: block;
  overflow-wrap: anywhere;
  font-size: 13px;
  font-weight: 600;
}
.av-account-details-records {
  display: grid;
  gap: 9px;
}
.av-account-details-record {
  display: grid;
  gap: 7px;
  padding: 10px;
  border: 1px solid var(--av-border, #334155);
  border-radius: 11px;
}
.av-account-details-error {
  padding: 12px;
  border-radius: 10px;
  background: rgba(220,38,38,.12);
  color: #fca5a5;
  overflow-wrap: anywhere;
}
@media (max-width: 480px) {
  .av-account-details-overlay { padding: 10px; }
  .av-account-details-card {
    padding: 20px 12px;
    max-height: 90dvh;
    border-radius: 18px;
  }
  .av-account-details-section { padding: 11px; }
  .av-account-details-grid { grid-template-columns: minmax(0,1fr); }
}

/* AuraVest password-reset screen */
.av-password-reset-panel {
  width: 100%;
  box-sizing: border-box;
  margin-top: 12px;
}
.av-password-reset-panel h2 {
  margin: 14px 0 8px;
}
.av-password-reset-panel > p:not(.av-eyebrow) {
  color: var(--av-muted, #94a3b8);
  line-height: 1.6;
}
.av-password-reset-panel label {
  display: block;
  margin: 14px 0 7px;
}
.av-password-reset-panel input,
.av-password-reset-panel textarea {
  display: block;
  box-sizing: border-box;
  width: 100%;
  padding: 12px;
  border: 1px solid var(--av-border, #334155);
  border-radius: 12px;
  background: transparent;
  color: inherit;
  font: inherit;
}
.av-password-reset-panel textarea {
  resize: vertical;
  overflow-wrap: anywhere;
}
#passwordResetFeedback {
  font-size: 13px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

/* Centre the Forgot Password button below the password field */
#forgotPasswordBtn {
  display: block;
  width: fit-content;
  margin: 14px auto 0;
  text-align: center;
}

/* ==========================================
   AURAVEST ADMIN CONTROL CENTER — REDESIGN
   Responsive layout, motion and navigation
   ========================================== */

#adminView {
  --admin-panel: rgba(17, 26, 43, .92);
  --admin-border: rgba(180, 195, 225, .13);
  width: 100%;
  max-width: 1500px;
  margin: 0 auto;
  padding: 24px;
  color: #f5f7ff;
  animation: avAdminEnter .35s ease both;
}

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

#adminView > .av-eyebrow {
  color: #e8c16d;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 2px;
  margin-bottom: 8px;
}

#adminView > h1 {
  font-size: clamp(25px, 3vw, 36px);
  letter-spacing: -.8px;
  margin: 0 0 8px;
}

#adminView > p.muted {
  margin: 0 0 22px;
  line-height: 1.6;
}

#adminMessage {
  min-height: 20px;
  margin: 12px 0;
  color: #a7e8d0;
  font-size: 13px;
}

/* Statistics automatically form a responsive grid. */
#adminView > .av-settings-group:first-of-type {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin: 0 0 24px;
}

#adminView > .av-settings-group:first-of-type > h2 {
  grid-column: 1 / -1;
  font-size: 15px;
  margin: 0 0 2px;
  color: #e8c16d;
}

#adminView > .av-settings-group:first-of-type > .card {
  min-width: 0;
  min-height: 112px;
  margin: 0;
  padding: 19px;
  border: 1px solid var(--admin-border);
  border-radius: 16px;
  background: linear-gradient(145deg, #172238, #101624);
  box-shadow: 0 8px 26px rgba(0, 0, 0, .12);
  transition: transform .2s ease, border-color .2s ease,
    box-shadow .2s ease;
}

#adminView > .av-settings-group:first-of-type > .card:hover {
  transform: translateY(-3px);
  border-color: rgba(232, 193, 109, .4);
  box-shadow: 0 12px 30px rgba(0, 0, 0, .2);
}

#adminView > .av-settings-group:first-of-type > .card > strong {
  display: block;
  color: #aab6cb;
  font-size: 12px;
  font-weight: 600;
}

#adminView > .av-settings-group:first-of-type > .card h2 {
  margin: 12px 0 0;
  color: #f5d889;
  font-size: clamp(21px, 2vw, 29px);
  overflow-wrap: anywhere;
}

#adminView > .av-settings-group:first-of-type > .card p {
  font-size: 11px;
  margin: 8px 0 0;
}

/* Dashboard sections become distinct panels. */
#adminView > .av-settings-group:not(:first-of-type) {
  margin: 0 0 24px;
  padding: 22px;
  border: 1px solid var(--admin-border);
  border-radius: 18px;
  background: var(--admin-panel);
  box-shadow: 0 12px 32px rgba(0, 0, 0, .12);
}

#adminView > .av-settings-group:not(:first-of-type) > h2 {
  margin: 0 0 18px;
  font-size: 17px;
}

#adminUserSearchForm {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: end;
  gap: 12px;
  margin-bottom: 20px;
}

#adminUserSearchForm label {
  grid-column: 1 / -1;
  margin: 0 0 -5px;
  color: #aab6cb;
}

#adminUserSearchForm input {
  min-width: 0;
  width: 100%;
}

#adminView button {
  transition: transform .16s ease, opacity .16s ease,
    border-color .16s ease, background .16s ease;
}

#adminView button:hover {
  filter: brightness(1.08);
}

#adminView button:active {
  transform: scale(.98);
}

#adminView button:focus-visible,
#adminView input:focus-visible {
  outline: 2px solid #e8c16d;
  outline-offset: 3px;
}

#adminUsersList {
  min-width: 0;
  overflow-wrap: anywhere;
}

#adminUsersList > .card {
  margin-bottom: 12px;
  padding: 18px;
  border-radius: 14px;
}

.admin-user-menu {
  position: relative;
}

.admin-user-actions {
  z-index: 20;
  max-width: min(280px, 80vw);
}

/* Smooth reveal for the admin's action menu. */
.admin-user-actions button {
  transition: background .16s ease, color .16s ease;
}

/* Tablet */
@media (max-width: 1000px) {
  #adminView > .av-settings-group:first-of-type {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  #adminView {
    padding: 20px;
  }
}

/* Phone */
@media (max-width: 600px) {
  #adminView {
    padding: 15px 12px 24px;
  }

  #adminView > h1 {
    font-size: 25px;
  }

  #adminView > .av-settings-group:first-of-type {
    gap: 10px;
  }

  #adminView > .av-settings-group:first-of-type > .card {
    min-height: 100px;
    padding: 14px;
    border-radius: 14px;
  }

  #adminView > .av-settings-group:first-of-type > .card h2 {
    font-size: 22px;
  }

  #adminView > .av-settings-group:not(:first-of-type) {
    padding: 16px 13px;
    border-radius: 15px;
  }

  #adminUserSearchForm {
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
  }

  #adminUserSearchForm label {
    grid-column: auto;
  }

  #adminUserSearchForm button {
    width: 100%;
    min-height: 44px;
  }

  #adminUsersList > .card {
    padding: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  #adminView,
  #adminView *,
  #adminView *::before,
  #adminView *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
  }
}


/* Auravest admin control center */
#adminView {
  width: 100%;
  max-width: 1500px;
  margin-inline: auto;
}

.av-admin-layout {
  display: grid;
  grid-template-columns: 235px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
  margin-top: 26px;
}

.av-admin-side-nav {
  position: sticky;
  top: 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px;
  border: 1px solid var(--border-color, rgba(255,255,255,.1));
  border-radius: 18px;
  background: var(--card-bg, rgba(255,255,255,.035));
}

.av-admin-nav-label {
  margin: 4px 10px 12px;
  font-size: 11px;
  letter-spacing: 1.5px;
  opacity: .65;
}

.av-admin-nav-item {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid transparent;
  border-radius: 11px;
  background: transparent;
  color: inherit;
  text-align: left;
  font: inherit;
  cursor: pointer;
  transition: background .22s ease, border-color .22s ease,
              transform .22s ease, color .22s ease;
}

.av-admin-nav-item:hover {
  background: rgba(255,255,255,.06);
  transform: translateX(2px);
}

.av-admin-nav-item.active {
  background: rgba(42, 190, 140, .13);
  border-color: rgba(42, 190, 140, .38);
  color: #54e0ae;
}

.av-admin-main {
  min-width: 0;
}

.av-admin-panel {
  min-width: 0;
  animation: avAdminEnter .28s ease both;
}

.av-admin-panel[hidden] {
  display: none !important;
}

.av-admin-panel-title {
  margin: 0 0 18px;
  font-size: clamp(20px, 2.5vw, 27px);
}

#adminView .av-settings-group {
  min-width: 0;
  margin-bottom: 20px;
  padding: clamp(16px, 2.5vw, 24px);
  border: 1px solid var(--border-color, rgba(255,255,255,.1));
  border-radius: 18px;
  background: var(--card-bg, rgba(255,255,255,.035));
  box-sizing: border-box;
}

#adminView [data-admin-panel="overview"] .av-settings-group {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

#adminView [data-admin-panel="overview"] .av-settings-group > h2 {
  grid-column: 1 / -1;
  margin-top: 0;
}

#adminView .card {
  min-width: 0;
  padding: 18px;
  border-radius: 14px;
  overflow-wrap: anywhere;
}

#adminView #adminUserSearchForm {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 12px;
  align-items: end;
}

#adminView #adminUserSearchForm label {
  grid-column: 1 / -1;
}

#adminView input {
  box-sizing: border-box;
  max-width: 100%;
}

#adminView #adminUsersList {
  margin-top: 18px;
  min-width: 0;
  overflow-wrap: anywhere;
}

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

@media (max-width: 800px) {
  .av-admin-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
  }

  .av-admin-side-nav {
    position: static;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
    padding: 12px;
  }

  .av-admin-nav-label {
    grid-column: 1 / -1;
  }

  .av-admin-nav-item {
    padding: 12px 9px;
    font-size: 13px;
  }

  #adminView #adminUserSearchForm {
    grid-template-columns: minmax(0, 1fr);
  }

  #adminView #adminUserSearchForm label {
    grid-column: auto;
  }
}

@media (max-width: 420px) {
  #adminView [data-admin-panel="overview"] .av-settings-group {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (prefers-reduced-motion: reduce) {
  .av-admin-panel,
  .av-admin-nav-item {
    animation: none !important;
    transition: none !important;
  }
}

/* Maintenance control panel */
.av-maintenance-controls {
  display: grid;
  gap: 16px;
}

.av-maintenance-status {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 16px;
  border-radius: 14px;
  background: rgba(255,255,255,.035);
}

.av-maintenance-status p {
  margin-bottom: 0;
}

.av-maintenance-indicator {
  width: 12px;
  height: 12px;
  flex: 0 0 12px;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 14px rgba(74,222,128,.35);
}

.av-maintenance-status.is-enabled .av-maintenance-indicator {
  background: #f59e0b;
  box-shadow: 0 0 14px rgba(245,158,11,.35);
}

.av-maintenance-toggle {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
}

.av-maintenance-toggle input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.av-maintenance-switch {
  position: relative;
  width: 48px;
  height: 27px;
  flex: 0 0 48px;
  border-radius: 20px;
  background: #53635b;
  transition: background .2s ease;
}

.av-maintenance-switch::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 21px;
  height: 21px;
  border-radius: 50%;
  background: white;
  transition: transform .2s ease;
}

.av-maintenance-toggle input:checked + .av-maintenance-switch {
  background: #2abf88;
}

.av-maintenance-toggle input:checked + .av-maintenance-switch::after {
  transform: translateX(21px);
}

.av-maintenance-toggle input:focus-visible + .av-maintenance-switch {
  outline: 2px solid #77e6b3;
  outline-offset: 3px;
}

.av-maintenance-controls textarea,
.av-maintenance-controls input[type="text"] {
  width: 100%;
  padding: 13px;
  border: 1px solid rgba(255,255,255,.13);
  border-radius: 11px;
  background: rgba(0,0,0,.15);
  color: inherit;
  font: inherit;
}

#adminMaintenanceMessage {
  overflow-wrap: anywhere;
}
/* ==========================================
   AURAVEST ADMIN — MIDNIGHT GOLD EDITION
   Responsive theme override
   ========================================== */

#adminView {
  --av-bg: #080d18;
  --av-sidebar: #0b1120;
  --av-surface: #111722;
  --av-surface-raised: #151e2d;
  --av-border: rgba(137, 148, 170, .17);
  --av-gold: #ffd65a;
  --av-gold-soft: #e9bd53;
  --av-teal: #55d6d0;
  --av-text: #f5f7fc;
  --av-muted: #8994aa;

  color: var(--av-text);
  background:
    radial-gradient(ellipse at 85% 0%, rgba(255,214,90,.045), transparent 36%),
    var(--av-bg);
  border-radius: 20px;
  overflow: hidden;
  min-width: 0;
}

#adminView *,
#adminView *::before,
#adminView *::after {
  box-sizing: border-box;
}

#adminView .av-admin-layout {
  display: grid;
  grid-template-columns: 218px minmax(0, 1fr);
  gap: 0;
  min-height: 660px;
  background: transparent;
}

#adminView .av-admin-side-nav {
  min-width: 0;
  padding: 22px 13px;
  background: linear-gradient(180deg, #0b1120, #090e19);
  border-right: 1px solid var(--av-border);
}

#adminView .av-admin-nav-label {
  margin: 0 12px 18px;
  color: var(--av-muted);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
}

#adminView .av-admin-nav-item {
  display: flex;
  align-items: center;
  gap: 11px;
  width: 100%;
  min-height: 45px;
  margin: 4px 0;
  padding: 11px 13px;
  border: 1px solid transparent;
  border-radius: 11px;
  background: transparent;
  color: #aab5c8;
  text-align: left;
  font-size: 13px;
  font-weight: 650;
  cursor: pointer;
  transition: background .2s, color .2s, border-color .2s, transform .2s;
}

#adminView .av-admin-nav-item:hover {
  color: var(--av-text);
  background: rgba(255,255,255,.035);
  border-color: var(--av-border);
}

#adminView .av-admin-nav-item.active {
  color: var(--av-gold);
  border-color: rgba(255,214,90,.2);
  background: linear-gradient(100deg, rgba(255,214,90,.15), rgba(255,214,90,.035));
  box-shadow: inset 3px 0 var(--av-gold), 0 5px 20px rgba(0,0,0,.12);
}

#adminView .av-admin-main {
  min-width: 0;
  padding: clamp(16px, 2.5vw, 30px);
  background: transparent;
}

#adminView .av-admin-panel {
  min-width: 0;
  animation: avAdminEnter .25s ease both;
}

#adminView .av-admin-panel[hidden] {
  display: none !important;
}

#adminView .av-admin-panel-title {
  color: var(--av-text);
  font-size: clamp(20px, 2.5vw, 28px);
  font-weight: 800;
  letter-spacing: -.7px;
}

#adminView h1,
#adminView h2,
#adminView h3,
#adminView h4,
#adminView strong {
  color: var(--av-text);
}

#adminView p,
#adminView .muted,
#adminView small {
  color: var(--av-muted);
}

#adminView .card,
#adminView .av-settings-group,
#adminView .av-admin-card,
#adminView [data-admin-panel] .card {
  min-width: 0;
  color: var(--av-text);
  border: 1px solid var(--av-border);
  border-radius: 15px;
  background: linear-gradient(145deg, rgba(21,30,45,.96), rgba(15,22,34,.98));
  box-shadow: 0 12px 30px rgba(0,0,0,.12);
}

#adminView [data-admin-panel="overview"] .card {
  position: relative;
  overflow: hidden;
  padding: 19px;
  transition: transform .2s, border-color .2s;
}

#adminView [data-admin-panel="overview"] .card:hover {
  transform: translateY(-2px);
  border-color: rgba(255,214,90,.27);
}

#adminView [data-admin-panel="overview"] .card h2 {
  margin: 10px 0 0;
  color: var(--av-gold);
  font-size: clamp(24px, 3vw, 34px);
  letter-spacing: -.7px;
}

#adminView .av-settings-group {
  padding: clamp(15px, 2.5vw, 24px);
  margin-top: 18px;
}

#adminView .av-settings-group > h2 {
  padding-bottom: 12px;
  border-bottom: 1px solid var(--av-border);
}

#adminView label {
  display: block;
  margin: 13px 0 7px;
  color: #dce3ef;
  font-size: 13px;
  font-weight: 650;
}

#adminView input:not([type="checkbox"]),
#adminView input:not([type="radio"]),
#adminView select,
#adminView textarea {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  padding: 12px 13px;
  color: var(--av-text);
  background: #0a111d;
  border: 1px solid rgba(137,148,170,.24);
  border-radius: 10px;
  font: inherit;
  font-size: 14px;
  outline: none;
  transition: border-color .2s, box-shadow .2s;
}

#adminView input:focus,
#adminView select:focus,
#adminView textarea:focus {
  border-color: rgba(255,214,90,.75);
  box-shadow: 0 0 0 3px rgba(255,214,90,.09);
}

#adminView input::placeholder,
#adminView textarea::placeholder {
  color: #66748a;
}

#adminView textarea {
  resize: vertical;
  line-height: 1.6;
}

#adminView button.primary-action,
#adminView button[type="submit"],
#adminView #adminRefreshBtn,
#adminView #adminMaintenanceSave {
  color: #15140e;
  background: linear-gradient(110deg, #ffe58a, #ffd65a 55%, #eab943);
  border: 1px solid rgba(255,214,90,.5);
  border-radius: 10px;
  font-weight: 800;
  box-shadow: 0 6px 18px rgba(255,214,90,.09);
  transition: filter .2s, transform .2s;
}

#adminView button.primary-action:hover,
#adminView button[type="submit"]:hover,
#adminView #adminRefreshBtn:hover,
#adminView #adminMaintenanceSave:hover {
  filter: brightness(1.06);
  transform: translateY(-1px);
}

#adminView button:disabled {
  opacity: .6;
  cursor: not-allowed;
  transform: none;
}

#adminView .av-maintenance-switch {
  background: #293448;
}

#adminView .av-maintenance-status {
  color: var(--av-teal);
}

#adminView #adminMaintenanceState {
  color: var(--av-teal);
  font-weight: 750;
}

#adminView #adminMaintenanceMessage {
  margin-top: 12px;
  color: var(--av-teal);
  font-size: 13px;
  overflow-wrap: anywhere;
}

#adminView #adminUsersList {
  min-width: 0;
  overflow-x: auto;
}

#adminView table {
  width: 100%;
  border-collapse: collapse;
}

#adminView th {
  color: var(--av-muted);
  font-size: 11px;
  text-align: left;
  text-transform: uppercase;
  letter-spacing: .6px;
}

#adminView th,
#adminView td {
  padding: 12px 10px;
  border-bottom: 1px solid var(--av-border);
}

#adminView td {
  color: #dce3ef;
  font-size: 13px;
  overflow-wrap: anywhere;
}

#adminView .av-admin-modal-panel {
  color: var(--av-text);
  background: #111722;
  border: 1px solid rgba(255,214,90,.25);
  box-shadow: 0 25px 80px rgba(0,0,0,.5);
}

#adminView .av-admin-modal-panel input,
#adminView .av-admin-modal-panel textarea {
  color: var(--av-text);
  background: #080d18;
}

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

/* Tablet */
@media (max-width: 900px) {
  #adminView .av-admin-layout {
    grid-template-columns: 170px minmax(0,1fr);
  }

  #adminView .av-admin-side-nav {
    padding: 16px 9px;
  }

  #adminView .av-admin-nav-item {
    padding: 10px;
    font-size: 12px;
  }

  #adminView .av-admin-main {
    padding: 17px;
  }
}

/* Mobile: navigation becomes a horizontal, scrollable section bar */
@media (max-width: 620px) {
  #adminView {
    border-radius: 13px;
  }

  #adminView .av-admin-layout {
    display: flex;
    flex-direction: column;
    min-height: 0;
  }

  #adminView .av-admin-side-nav {
    display: flex;
    gap: 7px;
    overflow-x: auto;
    padding: 11px;
    border-right: 0;
    border-bottom: 1px solid var(--av-border);
    scrollbar-width: thin;
    -webkit-overflow-scrolling: touch;
  }

  #adminView .av-admin-nav-label {
    display: none;
  }

  #adminView .av-admin-nav-item {
    flex: 0 0 auto;
    width: auto;
    min-height: 40px;
    margin: 0;
    padding: 9px 13px;
    white-space: nowrap;
    font-size: 12px;
  }

  #adminView .av-admin-nav-item.active {
    box-shadow: inset 0 -2px var(--av-gold);
  }

  #adminView .av-admin-main {
    padding: 14px 12px 24px;
  }

  #adminView [data-admin-panel="overview"] .card {
    padding: 15px;
  }

  #adminView [data-admin-panel="overview"] .card h2 {
    font-size: 25px;
  }

  #adminView .av-settings-group {
    padding: 15px 12px;
    margin-top: 13px;
  }

  #adminView button {
    max-width: 100%;
  }

  #adminView #adminMaintenanceSave {
    width: 100%;
    min-height: 46px;
  }

  #adminView table {
    min-width: 530px;
  }
}

@media (prefers-reduced-motion: reduce) {
  #adminView .av-admin-panel {
    animation: none;
  }
}

/* AURAVEST ANALYTICS DASHBOARD */
#adminView .av-analytics {
  display: grid;
  gap: 18px;
  margin: 20px 0;
  color: #eef3ff;
}

#adminView .av-analytics-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

#adminView .av-analytics-heading h2,
#adminView .av-analytics-heading h3,
#adminView .av-analytics-panel h3 {
  margin: 0;
}

#adminView .av-analytics-heading h3 {
  font-size: 1rem;
}

#adminView .av-analytics-kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

#adminView .av-analytics-card,
#adminView .av-analytics-chart-card,
#adminView .av-analytics-panel {
  min-width: 0;
  padding: 18px;
  border: 1px solid rgba(137, 148, 170, .2);
  border-radius: 16px;
  background: linear-gradient(145deg, #111b2c, #0b1220);
  box-shadow: 0 8px 25px rgba(0, 0, 0, .12);
}

#adminView .av-analytics-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

#adminView .av-analytics-card > span {
  color: #aebbd0;
  font-size: .82rem;
}

#adminView .av-analytics-card > strong {
  color: #ffd65a;
  font-size: clamp(1rem, 1.7vw, 1.55rem);
  overflow-wrap: anywhere;
}

#adminView .av-analytics-card > small {
  color: #8994aa;
  font-size: .75rem;
}

#adminView .av-analytics-chart-card {
  overflow: hidden;
}

#adminView .av-chart-legend {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  color: #aebbd0;
  font-size: .78rem;
}

#adminView .av-chart-legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

#adminView .av-chart-legend i {
  width: 9px;
  height: 9px;
  border-radius: 3px;
  display: inline-block;
}

#adminView .av-legend-deposits {
  background: #55d6d0;
}

#adminView .av-legend-withdrawals {
  background: #ffd65a;
}

#adminView .av-analytics-chart {
  margin-top: 18px;
  min-height: 100px;
  color: #aebbd0;
}

#adminView .av-chart-scroll {
  width: 100%;
  overflow-x: auto;
}

#adminView .av-chart-scroll svg {
  display: block;
  width: 100%;
  min-width: 540px;
  height: auto;
}

#adminView .av-chart-grid {
  stroke: rgba(137, 148, 170, .16);
  stroke-dasharray: 3 5;
}

#adminView .av-chart-label {
  fill: #8994aa;
  font-size: 10px;
}

#adminView .av-chart-deposit {
  fill: #55d6d0;
}

#adminView .av-chart-withdrawal {
  fill: #ffd65a;
}

#adminView .av-analytics-lower {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

#adminView .av-analytics-panel h3 {
  margin-bottom: 14px;
  font-size: 1rem;
}

#adminView .av-activity-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(137, 148, 170, .13);
  font-size: .86rem;
}

#adminView .av-activity-row:last-child {
  border-bottom: 0;
}

#adminView .av-activity-row > span {
  color: #aebbd0;
}

#adminView .av-activity-row > strong {
  text-align: right;
  overflow-wrap: anywhere;
}

#adminView .av-status-pill {
  color: #55d6d0;
  font-size: .78rem;
}

#adminView .av-recent-transactions {
  display: grid;
}

#adminView .av-transaction-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 0;
  border-bottom: 1px solid rgba(137, 148, 170, .13);
  min-width: 0;
}

#adminView .av-transaction-row:last-child {
  border-bottom: 0;
}

#adminView .av-transaction-icon {
  flex: 0 0 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: rgba(85, 214, 208, .1);
  color: #55d6d0;
  font-size: 1.15rem;
}

#adminView .av-transaction-details,
#adminView .av-transaction-amount {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

#adminView .av-transaction-details {
  flex: 1;
}

#adminView .av-transaction-details strong,
#adminView .av-transaction-amount strong {
  overflow-wrap: anywhere;
  font-size: .86rem;
}

#adminView .av-transaction-details span,
#adminView .av-transaction-details small {
  color: #8994aa;
  font-size: .75rem;
  overflow-wrap: anywhere;
}

#adminView .av-transaction-amount {
  align-items: flex-end;
  text-align: right;
}

#adminView .av-transaction-status {
  color: #aebbd0;
  font-size: .72rem;
  text-transform: capitalize;
}

#adminView .av-transaction-status.status-successful {
  color: #55d6d0;
}

#adminView .av-transaction-status.status-pending,
#adminView .av-transaction-status.status-processing {
  color: #ffd65a;
}

#adminView .av-transaction-status.status-failed {
  color: #ff8b8b;
}

@media (max-width: 800px) {
  #adminView .av-analytics-kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
  }

  #adminView .av-analytics-card {
    padding: 13px;
    border-radius: 13px;
  }

  #adminView .av-analytics-lower {
    grid-template-columns: 1fr;
  }

  #adminView .av-desktop-chart {
    display: none !important;
  }

  #adminView .av-analytics-panel {
    padding: 14px;
  }
}

@media (max-width: 380px) {
  #adminView .av-analytics-kpis {
    gap: 7px;
  }

  #adminView .av-analytics-card {
    padding: 10px;
  }

  #adminView .av-transaction-row {
    gap: 8px;
  }

  #adminView .av-transaction-icon {
    flex-basis: 32px;
    height: 32px;
  }
}

/* AuraVest compact admin layout */
#adminView {
  padding-top: 8px;
}

#adminView > h1 {
  margin-top: 4px;
  margin-bottom: 6px;
  font-size: clamp(1.45rem, 3vw, 2rem);
}

#adminView > .av-eyebrow {
  margin-bottom: 4px;
}

#adminView > .muted {
  margin-top: 4px;
  margin-bottom: 12px;
}

#adminView .av-admin-layout {
  gap: 14px;
  align-items: start;
}

#adminView .av-admin-side-nav {
  align-self: start;
  margin-top: 0;
}

#adminView .av-admin-main {
  min-width: 0;
  margin-top: 0;
}

#adminView .av-admin-panel-title {
  margin-top: 0;
  margin-bottom: 12px;
}

#adminView .av-announcement-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}

#adminView .av-announcement-form,
#adminView .av-announcement-history {
  min-width: 0;
  padding: 16px;
  border: 1px solid rgba(137, 148, 170, .2);
  border-radius: 15px;
  background: linear-gradient(145deg, #111b2c, #0b1220);
}

#adminView .av-announcement-form h3,
#adminView .av-announcement-history h3 {
  margin-top: 0;
  font-size: 1rem;
}

#adminView .av-announcement-form input,
#adminView .av-announcement-form textarea {
  width: 100%;
  box-sizing: border-box;
  margin: 6px 0 12px;
}

#adminView .av-announcement-item {
  padding: 12px 0;
  border-bottom: 1px solid rgba(137, 148, 170, .16);
}

#adminView .av-announcement-item:last-child {
  border-bottom: 0;
}

#adminView .av-announcement-item strong {
  display: block;
  overflow-wrap: anywhere;
}

#adminView .av-announcement-item p {
  margin: 7px 0;
  color: #aebbd0;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

#adminView .av-announcement-item small {
  color: #8994aa;
}

@media (max-width: 800px) {
  #adminView .av-announcement-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  #adminView .av-admin-layout {
    gap: 10px;
  }

  #adminView .av-admin-main {
    width: 100%;
  }

  #adminView .av-announcement-form,
  #adminView .av-announcement-history {
    padding: 13px;
  }
}

/* AuraVest public landing-page market ticker */
.av-market-ticker {
  position: relative;
  margin: 26px 0 34px;
  padding: 20px;
  overflow: hidden;
  border: 1px solid rgba(212, 175, 55, 0.25);
  border-radius: 18px;
  background: linear-gradient(135deg, #101827, #17263a);
  color: #f8fafc;
  box-shadow: 0 12px 32px rgba(16, 24, 39, 0.12);
}

.av-ticker-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.av-ticker-live-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 7px;
  border-radius: 50%;
  background: #26d07c;
  box-shadow: 0 0 12px rgba(38, 208, 124, 0.65);
}

.av-ticker-eyebrow {
  color: #e6c66b;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1.6px;
}

.av-ticker-updated {
  color: #aab8ca;
  font-size: 11px;
  text-align: right;
}

.av-ticker-track {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding: 2px 2px 12px;
  scrollbar-width: thin;
  scrollbar-color: #526176 transparent;
  overscroll-behavior-x: contain;
}

.av-ticker-item {
  flex: 0 0 170px;
  min-width: 0;
  padding: 15px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.045);
}

.av-ticker-asset {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 13px;
}

.av-ticker-symbol {
  font-size: 13px;
  font-weight: 800;
  color: #ffffff;
}

.av-ticker-name {
  display: block;
  margin-top: 3px;
  color: #9cacc0;
  font-size: 11px;
}

.av-ticker-price {
  display: block;
  overflow-wrap: anywhere;
  margin-bottom: 8px;
  color: #ffffff;
  font-size: 18px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.av-ticker-change {
  font-size: 12px;
  font-weight: 700;
}

.av-ticker-change.up {
  color: #36d995;
}

.av-ticker-change.down {
  color: #ff7777;
}

.av-ticker-change.neutral {
  color: #aab8ca;
}

.av-ticker-loading,
.av-ticker-message {
  color: #aab8ca;
  font-size: 12px;
}

.av-ticker-message:empty {
  display: none;
}

.av-ticker-disclaimer {
  display: block;
  margin-top: 9px;
  color: #8999ad;
  font-size: 10px;
  line-height: 1.5;
}

@media (max-width: 600px) {
  .av-market-ticker {
    margin: 20px 0 26px;
    padding: 15px 12px;
    border-radius: 15px;
  }

  .av-ticker-heading {
    align-items: flex-start;
  }

  .av-ticker-updated {
    max-width: 48%;
    line-height: 1.5;
  }

  .av-ticker-item {
    flex-basis: 150px;
    padding: 13px;
  }

  .av-ticker-price {
    font-size: 16px;
  }
}

/* AuraVest: compact transparent market ticker */
#avMarketTicker.av-market-ticker {
  width: 100%;
  max-width: 100%;
  margin: 18px auto;
  padding: 12px 0;
  overflow: hidden;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

#avMarketTicker .av-ticker-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
  padding: 0 2px;
}

#avMarketTicker .av-ticker-eyebrow {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.2px;
}

#avMarketTicker .av-ticker-updated {
  font-size: 10px;
  opacity: 0.65;
}

#avMarketTicker .av-ticker-track {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  width: 100%;
  overflow: visible;
}

#avMarketTicker .av-ticker-item {
  min-width: 0;
  padding: 8px 5px;
  background: transparent !important;
  border: 0 !important;
  border-left: 1px solid rgba(150, 160, 180, 0.18) !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 5px;
}

#avMarketTicker .av-ticker-symbol {
  display: block;
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
}

#avMarketTicker .av-ticker-name {
  display: block;
  margin-top: 2px;
  font-size: 9px;
  opacity: 0.6;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

#avMarketTicker .av-ticker-price {
  font-size: clamp(10px, 1.8vw, 14px);
  font-weight: 700;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

#avMarketTicker .av-ticker-change {
  font-size: 10px;
  font-weight: 600;
  white-space: nowrap;
}

#avMarketTicker .av-ticker-change.up {
  color: #16a34a;
}

#avMarketTicker .av-ticker-change.down {
  color: #dc2626;
}

#avMarketTicker .av-ticker-change.neutral {
  opacity: 0.65;
}

#avMarketTicker .av-ticker-message,
#avMarketTicker .av-ticker-disclaimer {
  font-size: 9px;
  opacity: 0.55;
}

@media (max-width: 520px) {
  #avMarketTicker.av-market-ticker {
    margin: 12px auto;
    padding: 8px 0;
  }

  #avMarketTicker .av-ticker-track {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 2px;
  }

  #avMarketTicker .av-ticker-item {
    padding: 7px 3px;
  }

  #avMarketTicker .av-ticker-symbol {
    font-size: 10px;
  }

  #avMarketTicker .av-ticker-name {
    font-size: 8px;
  }

  #avMarketTicker .av-ticker-price {
    font-size: 10px;
    letter-spacing: -0.3px;
  }

  #avMarketTicker .av-ticker-change {
    font-size: 8px;
    white-space: normal;
  }

  #avMarketTicker .av-ticker-updated {
    font-size: 9px;
  }
}

/* AuraVest support chat */
.av-support-messages {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-height: 52vh;
  min-height: 220px;
  overflow-y: auto;
  padding: 14px;
  margin: 16px 0;
  border: 1px solid var(--border-color, #e5e7eb);
  border-radius: 18px;
  background: var(--card-bg, #fff);
}

.av-support-message {
  max-width: 86%;
  padding: 12px 14px;
  border-radius: 15px;
  overflow-wrap: anywhere;
}

.av-support-message.is-user {
  align-self: flex-end;
  background: #173f35;
  color: #fff;
  border-bottom-right-radius: 4px;
}

.av-support-message.is-admin {
  align-self: flex-start;
  background: #eef3f0;
  color: #172b25;
  border-bottom-left-radius: 4px;
}

.av-support-message p {
  margin: 7px 0;
  white-space: pre-wrap;
}

.av-support-message small {
  display: block;
  font-size: 11px;
  opacity: .75;
}

.av-support-form {
  display: grid;
  gap: 10px;
}

.av-support-form textarea {
  width: 100%;
  box-sizing: border-box;
  resize: vertical;
  min-height: 85px;
  padding: 12px;
  border: 1px solid #d7dfda;
  border-radius: 12px;
  font: inherit;
}

.av-about-card {
  line-height: 1.65;
}

.av-about-mark {
  font-size: 38px;
  color: #24745b;
}

.av-about-tagline {
  font-weight: 700;
  color: #24745b;
}

#supportChatStatus {
  margin-top: 8px;
  font-size: 14px;
}

@media (max-width: 480px) {
  .av-support-messages {
    max-height: 48vh;
    padding: 10px;
  }

  .av-support-message {
    max-width: 94%;
  }
}

/* AuraVest admin support inbox */
.av-support-admin-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 16px;
  margin-top: 16px;
}

.av-admin-support-conversation {
  display: block;
  position: relative;
  width: 100%;
  text-align: left;
  padding: 13px;
  margin: 8px 0;
  border: 1px solid #dce5df;
  border-radius: 12px;
  background: #fff;
  color: #172b25;
  cursor: pointer;
}

.av-admin-support-conversation:hover,
.av-admin-support-conversation.is-selected {
  border-color: #24745b;
  background: #f0f7f3;
}

.av-admin-support-conversation strong,
.av-admin-support-conversation small {
  display: block;
  overflow-wrap: anywhere;
}

.av-admin-support-conversation small {
  margin-top: 4px;
  color: #65736b;
}

.av-admin-support-conversation p {
  margin: 8px 0 0;
  overflow-wrap: anywhere;
}

.av-support-unread,
#adminSupportUnreadBadge {
  display: inline-block;
  min-width: 20px;
  padding: 3px 7px;
  border-radius: 20px;
  background: #c83d3d;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  text-align: center;
}

#adminSupportUnreadBadge[hidden] {
  display: none;
}

@media (max-width: 700px) {
  .av-support-admin-layout {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Support chat media attachments */
.av-support-attachment-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 12px 0;
}

.av-support-attach-button {
  display: inline-flex;
  align-items: center;
  padding: 10px 14px;
  border: 1px solid var(--border-color, #444);
  border-radius: 10px;
  cursor: pointer;
}

.av-support-media-image,
.av-support-media-video {
  display: block;
  width: auto;
  max-width: 100%;
  max-height: 320px;
  margin: 10px 0;
  border-radius: 12px;
  object-fit: contain;
  background: #111;
}

.av-support-media-video {
  width: 100%;
}

.av-support-message {
  overflow-wrap: anywhere;
}

/* Investment plan administration */
#adminPlansList {
  display: grid;
  gap: 18px;
  margin-top: 20px;
}

.av-plan-editor {
  min-width: 0;
  padding: 20px;
  border: 1px solid var(--border-color, rgba(128, 128, 128, 0.25));
  border-radius: 16px;
  background: var(--card-bg, rgba(128, 128, 128, 0.04));
}

.av-plan-editor-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}

.av-plan-editor-heading h3 {
  margin: 5px 0 0;
  overflow-wrap: anywhere;
}

.av-plan-editor-label {
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  opacity: 0.7;
}

.av-plan-active {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.av-plan-editor-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 15px;
}

.av-plan-editor-grid label {
  display: grid;
  align-content: start;
  gap: 7px;
  min-width: 0;
  font-size: 0.9rem;
  font-weight: 600;
}

.av-plan-editor-grid input,
.av-plan-editor-grid textarea {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--border-color, rgba(128, 128, 128, 0.3));
  border-radius: 10px;
  background: var(--input-bg, transparent);
  color: inherit;
  font: inherit;
}

.av-plan-editor-grid textarea {
  resize: vertical;
}

.av-plan-editor-wide {
  grid-column: 1 / -1;
}

.av-plan-save {
  margin-top: 18px;
  padding: 12px 18px;
  border: 0;
  border-radius: 10px;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
}

.av-plan-save:disabled {
  cursor: wait;
  opacity: 0.6;
}

#adminPlansMessage {
  margin-top: 14px;
  overflow-wrap: anywhere;
}

@media (max-width: 600px) {
  .av-plan-editor {
    padding: 14px;
  }

  .av-plan-editor-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .av-plan-editor-wide {
    grid-column: auto;
  }
}

/* AuraVest investment maturity countdown */
.av-investment-lock-message,
.av-investment-countdown,
.av-history-countdown {
  font-size: 0.85rem;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.av-investment-lock-message {
  margin: 10px 0 4px;
  font-weight: 600;
}

.av-investment-countdown,
.av-history-countdown {
  margin: 4px 0 10px;
  opacity: 0.9;
  font-variant-numeric: tabular-nums;
}

.av-investment-progress-track {
  width: 100%;
  height: 7px;
  margin: 8px 0 12px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(128, 128, 128, 0.22);
}

.av-investment-progress-bar {
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: #20d889;
  transition: width 0.5s linear;
}

.av-investment-progress-track[hidden] {
  display: none;
}

.plan button:disabled {
  cursor: not-allowed;
  opacity: 0.65;
}

/* KYC verification card */
.av-kyc-card,
.av-kyc-panel {
  border: 1px solid #ffffff18;
  border-radius: 18px;
  background: linear-gradient(145deg, #172136, #101625);
}

.av-kyc-card-heading {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.av-kyc-icon {
  display: grid;
  place-items: center;
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  color: #e8c16d;
  background: #e8c16d18;
  border: 1px solid #e8c16d35;
  font-size: 23px;
  font-weight: 700;
}

.av-kyc-card h2,
.av-kyc-panel h2 {
  margin: 4px 0 8px;
}

.av-kyc-card-heading p {
  margin-top: 6px;
}

.av-kyc-status-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid #ffffff15;
}

.av-kyc-badge {
  display: inline-block;
  border-radius: 999px;
  padding: 6px 11px;
  background: #e8c16d18;
  color: #e8c16d;
  font-size: 12px;
  white-space: nowrap;
}

.av-kyc-badge.is-verified {
  color: #58dfb0;
  background: #58dfb018;
}

.av-kyc-badge.is-pending {
  color: #8dc8ff;
  background: #8dc8ff18;
}

.av-kyc-badge.is-rejected {
  color: #ff9999;
  background: #ff999918;
}

.av-kyc-next-steps {
  display: grid;
  gap: 16px;
  margin: 20px 0;
}

.av-kyc-next-steps > div {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.av-kyc-next-steps > div > span {
  display: grid;
  place-items: center;
  flex: 0 0 30px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #e8c16d18;
  color: #e8c16d;
  font-weight: 700;
}

.av-kyc-next-steps strong {
  display: block;
}

.av-kyc-next-steps p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 13px;
}

@media (max-width: 480px) {
  .av-kyc-card-heading {
    gap: 10px;
  }

  .av-kyc-status-row {
    align-items: flex-start;
  }
}

/* AuraVest KYC v2 — compact mobile-first layout */
.av-kyc-card,
.av-kyc-panel {
  box-sizing: border-box;
  width: 100%;
  max-width: 460px;
  margin: 12px auto;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 18px;
  background:
    radial-gradient(ellipse at top right, rgba(232,193,109,.08), transparent 45%),
    linear-gradient(145deg, #172136, #101625);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.18);
}

.av-kyc-panel[hidden] {
  display: none !important;
}

.av-kyc-panel > .av-eyebrow {
  margin: 0 0 6px;
  color: #e8c16d;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
}

.av-kyc-panel h2 {
  margin: 0 0 7px;
  font-size: clamp(19px, 5vw, 24px);
  line-height: 1.3;
}

.av-kyc-panel > .muted {
  margin: 0 0 16px;
  font-size: 13px;
  line-height: 1.5;
}

#kycBankForm {
  display: grid;
  gap: 8px;
}

#kycBankForm label {
  margin-top: 5px;
  font-size: 13px;
  font-weight: 600;
}

#kycBankCode,
#kycAccountNumber {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  min-height: 46px;
  margin: 0;
  padding: 11px 13px;
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 12px;
  background: #0b1120;
  color: #f5f7ff;
  font: inherit;
  font-size: 15px;
  outline: none;
  transition: border-color .2s ease, box-shadow .2s ease;
}

#kycBankCode:focus,
#kycAccountNumber:focus {
  border-color: #e8c16d;
  box-shadow: 0 0 0 3px rgba(232, 193, 109, .12);
}

#kycBankMessage,
#kycFormMessage {
  margin: 3px 0;
  font-size: 12px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

#kycResolvedAccount {
  padding: 11px 12px;
  border: 1px solid rgba(88, 223, 176, .25);
  border-radius: 12px;
  background: rgba(88, 223, 176, .06);
}

#kycResolvedAccount[hidden] {
  display: none !important;
}

#kycResolvedAccount .muted,
#kycResolvedAccountName {
  display: block;
}

#kycResolvedAccount .muted {
  margin-bottom: 4px;
  font-size: 11px;
}

#kycResolvedAccountName {
  color: #58dfb0;
  font-size: 14px;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

#resolveKycBankBtn {
  width: 100%;
  min-height: 45px;
  margin-top: 5px;
  padding: 11px 14px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 700;
  transition: transform .18s ease, opacity .18s ease;
}

#resolveKycBankBtn:not(:disabled):active {
  transform: scale(.985);
}

#resolveKycBankBtn:disabled {
  cursor: not-allowed;
  opacity: .65;
}

.av-kyc-next-steps {
  gap: 11px;
  margin: 17px 0;
}

.av-kyc-next-steps > div {
  gap: 10px;
}

.av-kyc-next-steps > div > span {
  flex-basis: 26px;
  width: 26px;
  height: 26px;
  font-size: 12px;
}

.av-kyc-next-steps strong {
  font-size: 12px;
}

.av-kyc-next-steps p {
  font-size: 11px;
  line-height: 1.45;
}

#closeKycPanelBtn {
  width: 100%;
  min-height: 40px;
  border-radius: 11px;
  font-size: 13px;
}

@media (max-width: 480px) {
  .av-kyc-card,
  .av-kyc-panel {
    max-width: 100%;
    margin: 8px auto;
    padding: 15px;
    border-radius: 15px;
  }

  .av-kyc-card-heading {
    gap: 10px;
  }

  .av-kyc-icon {
    flex-basis: 36px;
    width: 36px;
    height: 36px;
    border-radius: 11px;
    font-size: 19px;
  }

  .av-kyc-status-row {
    gap: 8px;
    margin-top: 14px;
    padding-top: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  #kycBankCode,
  #kycAccountNumber,
  #resolveKycBankBtn {
    transition: none;
  }
}


/* AuraVest KYC — extra compact card */
.av-kyc-card,
.av-kyc-panel {
  max-width: 360px;
  padding: 12px;
  margin: 6px auto;
  border-radius: 14px;
}

.av-kyc-panel h2 {
  font-size: 19px;
  margin-bottom: 5px;
}

.av-kyc-panel > .muted {
  margin-bottom: 10px;
  font-size: 12px;
}

#kycBankForm {
  gap: 5px;
}

#kycBankForm label {
  margin-top: 3px;
  font-size: 12px;
}

#kycBankCode,
#kycAccountNumber {
  min-height: 40px;
  padding: 9px 10px;
  border-radius: 10px;
  font-size: 14px;
}

#resolveKycBankBtn {
  min-height: 40px;
  margin-top: 3px;
}

#kycBankMessage,
#kycFormMessage {
  font-size: 11px;
}

#closeKycPanelBtn {
  min-height: 35px;
}

@media (max-width: 480px) {
  .av-kyc-card,
  .av-kyc-panel {
    max-width: 100%;
    padding: 12px;
    margin: 5px auto;
  }
}

/* Compact AuraVest account verification status card */
.av-kyc-card {
  max-width: 360px;
  padding: 14px;
  margin: 8px auto;
  border-radius: 14px;
}

.av-kyc-card-heading {
  gap: 9px;
  align-items: center;
}

.av-kyc-icon {
  flex: 0 0 32px;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  font-size: 17px;
}

.av-kyc-card h2 {
  margin: 2px 0 4px;
  font-size: 18px;
  line-height: 1.3;
}

.av-kyc-card-heading .av-eyebrow {
  margin: 0 0 3px;
  font-size: 9px;
  letter-spacing: 1.5px;
}

.av-kyc-card-heading p {
  margin: 4px 0 0;
  font-size: 11px;
  line-height: 1.45;
}

.av-kyc-status-row {
  gap: 8px;
  margin-top: 11px;
  padding-top: 9px;
}

.av-kyc-status-row > * {
  font-size: 11px;
}

.av-kyc-badge {
  padding: 4px 8px;
  font-size: 10px;
}

#kycStatusMessage {
  margin: 8px 0;
  font-size: 11px;
  line-height: 1.45;
}

#startKycBtn {
  width: 100%;
  min-height: 37px;
  padding: 9px 12px;
  border-radius: 10px;
  font-size: 12px;
}

@media (max-width: 480px) {
  .av-kyc-card {
    max-width: 100%;
    padding: 12px;
    margin: 6px auto;
  }
}

/* Ultra-compact account verification card */
.av-kyc-card {
  box-sizing: border-box;
  width: 100%;
  max-width: 320px;
  min-width: 0;
  padding: 10px;
  margin: 6px auto;
  border-radius: 12px;
  overflow: hidden;
}

.av-kyc-card *,
.av-kyc-card *::before,
.av-kyc-card *::after {
  box-sizing: border-box;
  min-width: 0;
}

.av-kyc-card-heading {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.av-kyc-icon {
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
  font-size: 15px;
  border-radius: 8px;
}

.av-kyc-card-heading > div:last-child {
  flex: 1;
  min-width: 0;
}

.av-kyc-card-heading .av-eyebrow {
  margin: 0 0 3px;
  font-size: 8px;
  letter-spacing: 1px;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.av-kyc-card h2 {
  margin: 2px 0 4px;
  font-size: 16px;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.av-kyc-card-heading p {
  margin: 4px 0 0;
  font-size: 10px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.av-kyc-status-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 5px;
  margin-top: 8px;
  padding-top: 7px;
}

.av-kyc-status-row > * {
  font-size: 10px;
}

.av-kyc-badge {
  padding: 3px 7px;
  font-size: 9px;
}

#kycStatusMessage {
  margin: 6px 0;
  font-size: 10px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

#startKycBtn {
  display: block;
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  min-height: 32px;
  margin: 6px 0 0;
  padding: 7px 9px;
  border-radius: 8px;
  font-size: 11px;
  line-height: 1.3;
  white-space: normal;
  overflow-wrap: anywhere;
}

@media (max-width: 360px) {
  .av-kyc-card {
    max-width: 100%;
    padding: 9px;
  }

  .av-kyc-card h2 {
    font-size: 15px;
  }

  .av-kyc-card-heading p {
    font-size: 9px;
  }
}

/* Compact personal deposit account */
.av-deposit-card {
  box-sizing: border-box;
  width: 100%;
  max-width: 440px;
  margin: 12px 0;
  padding: 15px;
  border: 1px solid rgba(232, 193, 109, .25);
  border-radius: 16px;
  background:
    radial-gradient(ellipse at top right, rgba(232,193,109,.09), transparent 55%),
    linear-gradient(145deg, #172136, #101625);
}

.av-deposit-card[hidden],
#depositAccountDetails[hidden],
#depositKycBtn[hidden] {
  display: none !important;
}

.av-deposit-card-heading {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.av-deposit-icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  border-radius: 11px;
  background: rgba(232,193,109,.13);
  color: #e8c16d;
  font-size: 18px;
  font-weight: 800;
}

.av-deposit-eyebrow {
  margin: 0 0 3px;
  color: #e8c16d;
  font-size: 9px;
  letter-spacing: 1.2px;
}

#depositAccountStatus {
  font-size: 12px;
}

.av-deposit-detail {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 9px;
}

.av-deposit-detail span,
.av-deposit-number-row span {
  color: var(--muted);
  font-size: 11px;
}

.av-deposit-detail strong {
  font-size: 13px;
  overflow-wrap: anywhere;
}

.av-deposit-number-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 12px;
  padding: 11px;
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 11px;
  background: rgba(0,0,0,.14);
}

.av-deposit-number-row > div {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

#depositAccountNumber {
  font-size: 19px;
  letter-spacing: 1px;
  overflow-wrap: anywhere;
}

.av-deposit-copy {
  flex: 0 0 auto;
  padding: 8px 12px;
  border: 1px solid rgba(232,193,109,.35);
  border-radius: 9px;
  background: rgba(232,193,109,.12);
  color: #e8c16d;
  font-size: 12px;
  font-weight: 700;
}

#depositAccountMessage {
  margin: 10px 0 0;
  font-size: 12px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

#depositKycBtn {
  width: 100%;
  margin-top: 10px;
}

@media (max-width: 380px) {
  .av-deposit-card {
    padding: 12px;
  }

  #depositAccountNumber {
    font-size: 16px;
  }
}

/* Compact AuraVest investment plan cards */
.plan {
  padding: 12px !important;
  margin-bottom: 10px !important;
  border-radius: 14px !important;
}

.plan h3 {
  margin: 0 0 3px !important;
  font-size: 15px !important;
  line-height: 1.25 !important;
}

.plan p {
  margin: 4px 0 !important;
  font-size: 12px !important;
  line-height: 1.35 !important;
}

.plan .rate {
  font-size: 13px !important;
  font-weight: 700 !important;
  margin: 5px 0 !important;
}

.plan .av-mini-chart {
  height: 25px !important;
  margin: 4px 0 !important;
}

.plan .av-investment-lock-message,
.plan .av-investment-countdown {
  margin: 3px 0 !important;
  font-size: 11px !important;
}

.plan .av-investment-progress-track {
  height: 4px !important;
  margin: 5px 0 !important;
  border-radius: 99px !important;
  overflow: hidden;
}

.plan button {
  min-height: 36px !important;
  padding: 8px 12px !important;
  margin-top: 6px !important;
  font-size: 12px !important;
  border-radius: 9px !important;
}


/* Ultra-compact investment plan cards */
.plan.av-plan-compact {
  padding: 10px !important;
  margin: 0 0 8px !important;
  border-radius: 12px !important;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.av-plan-compact-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.av-plan-compact-heading h3 {
  margin: 0 !important;
  font-size: 14px !important;
  line-height: 1.25 !important;
}

.av-plan-compact-heading p {
  margin: 0 !important;
  white-space: nowrap;
  font-size: 10px !important;
  opacity: .75;
}

.av-plan-compact-return .rate {
  margin: 0 !important;
  font-size: 13px !important;
  font-weight: 700 !important;
}

.av-plan-compact-terms {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px 12px;
}

.av-plan-compact-terms p {
  margin: 0 !important;
  font-size: 11px !important;
}

.av-plan-compact-chart {
  position: relative;
  height: 20px;
  overflow: hidden;
}

.av-plan-compact-chart .av-mini-chart {
  display: block;
  width: 100%;
  height: 20px !important;
  margin: 0 !important;
}

.av-plan-compact-chart .av-chart-counter {
  display: none !important;
}

.av-plan-compact-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 3px 8px;
}

.av-plan-compact-status .av-investment-lock-message,
.av-plan-compact-status .av-investment-countdown {
  margin: 0 !important;
  font-size: 10px !important;
  line-height: 1.3 !important;
}

.plan.av-plan-compact .av-investment-progress-track {
  height: 3px !important;
  margin: 0 !important;
}

.plan.av-plan-compact > button {
  align-self: stretch;
  min-height: 32px !important;
  margin-top: 2px !important;
  padding: 6px 10px !important;
  font-size: 11px !important;
}


/* AuraVest magic verification screen transitions */
.av-kyc-card,
.av-kyc-panel {
  transform-origin: center top;
  will-change: opacity, transform;
}

.av-kyc-screen-exit {
  animation: avKycScreenExit 160ms ease forwards;
  pointer-events: none;
}

.av-kyc-screen-enter {
  animation: avKycScreenEnter 320ms cubic-bezier(.2,.8,.2,1) both;
}

.av-kyc-panel {
  border-radius: 18px;
}

.av-kyc-panel .av-eyebrow {
  letter-spacing: .14em;
}

.av-kyc-panel input,
.av-kyc-panel select {
  width: 100%;
  box-sizing: border-box;
  border-radius: 12px;
}

.av-kyc-panel button {
  border-radius: 12px;
}

@keyframes avKycScreenExit {
  from { opacity: 1; transform: translateY(0) scale(1); }
  to { opacity: 0; transform: translateY(-10px) scale(.985); }
}

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

@media (prefers-reduced-motion: reduce) {
  .av-kyc-screen-exit,
  .av-kyc-screen-enter {
    animation-duration: 1ms;
  }
}


/* Compact inline bank-account resolution */
.av-kyc-account-inline {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  box-sizing: border-box;
  margin: 10px 0;
  padding: 11px 12px;
  border: 1px solid rgba(32, 216, 137, .28);
  border-radius: 12px;
  background: rgba(32, 216, 137, .06);
}

.av-kyc-account-inline[hidden] {
  display: none !important;
}

.av-kyc-account-check {
  display: grid;
  place-items: center;
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(32, 216, 137, .14);
  color: #20d889;
  font-size: 15px;
  font-weight: 800;
}

.av-kyc-account-copy {
  display: flex;
  flex: 1;
  min-width: 0;
  flex-direction: column;
  gap: 3px;
}

.av-kyc-account-label {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .12em;
  opacity: .65;
}

.av-kyc-account-copy strong {
  font-size: 13px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.av-kyc-account-verified {
  flex: 0 0 auto;
  font-size: 10px;
  font-weight: 700;
  color: #20d889;
}

#kycBankMessage:empty {
  display: none;
}


/* AuraVest multi-step KYC flow */
#kycBvnPanel,
#kycResultPanel {
  position: relative;
}

#kycBvnPanel form,
#kycResultPanel {
  animation-duration: 320ms;
}

#kycBvnInput {
  letter-spacing: 0.16em;
  font-variant-numeric: tabular-nums;
}

#kycBvnBankDetails {
  display: block;
  margin-top: 4px;
  font-size: 0.85rem;
}

#kycResultVerifiedTick {
  color: #16834a;
  font-weight: 700;
}

#kycResultVerifiedTick[hidden] {
  display: none !important;
}

@media (prefers-reduced-motion: reduce) {
  #kycBvnPanel,
  #kycResultPanel {
    animation: none !important;
    transition: none !important;
  }
}

/* KYC step buttons: identical sizing and stable mobile layout */
#resolveKycBankBtn,
#continueKycBvnBtn {
  display: block;
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  min-height: 48px;
  margin: 12px 0 0;
  padding: 13px 16px;
  flex: 0 0 100%;
  float: none;
  transform: none;
  text-align: center;
  white-space: normal;
  line-height: 1.25;
}

#continueKycBvnBtn[hidden],
#resolveKycBankBtn[hidden] {
  display: none !important;
}

#kycPanel,
#kycBvnPanel,
#kycResultPanel {
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  overflow-wrap: anywhere;
}

#kycPanel .av-kyc-account-inline {
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
}

@media (max-width: 480px) {
  #resolveKycBankBtn,
  #continueKycBvnBtn {
    min-height: 46px;
    padding: 12px 14px;
    font-size: 15px;
  }
}

/* Avoid sideways movement and excessive scrolling during KYC transitions */
.av-kyc-screen-exit {
  animation: none !important;
  opacity: 0;
  transform: translateY(4px) !important;
  transition: opacity 120ms ease, transform 120ms ease;
  pointer-events: none;
}

.av-kyc-screen-enter {
  animation: avKycStableEnter 180ms ease-out both !important;
}

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

@media (prefers-reduced-motion: reduce) {
  .av-kyc-screen-exit,
  .av-kyc-screen-enter {
    animation: none !important;
    transition: none !important;
    transform: none !important;
  }
}

/* BVN verification button: full-width, aligned with Continue */
#submitKycBvnBtn {
  display: block;
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  min-height: 46px;
  margin: 12px 0 0;
  padding: 12px 14px;
  float: none;
  transform: none;
  text-align: center;
  white-space: normal;
  line-height: 1.25;
  justify-self: stretch;
  align-self: stretch;
}

#submitKycBvnBtn[hidden] {
  display: none !important;
}

#kycBvnPanel,
#kycBvnForm {
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

#kycBvnForm {
  display: block;
}

#kycBvnForm input,
#kycBvnForm button {
  box-sizing: border-box;
  max-width: 100%;
}

/* AuraVest investment amount modal */
.av-investment-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: rgba(0, 0, 0, .72);
  backdrop-filter: blur(7px);
}

.av-investment-panel {
  width: 100%;
  max-width: 440px;
  max-height: calc(100dvh - 36px);
  overflow-y: auto;
  padding: 26px 22px;
  border: 1px solid rgba(255, 255, 255, .09);
  border-radius: 24px;
  background: var(--card, #171b24);
  color: var(--text, #fff);
  box-shadow: 0 24px 80px rgba(0, 0, 0, .4);
}

.av-investment-panel h2 {
  margin: 0 0 10px;
  font-size: 1.4rem;
}

.av-investment-description {
  line-height: 1.6;
  opacity: .8;
}

.av-investment-range {
  margin: 18px 0;
  font-size: .88rem;
  opacity: .8;
}

.av-investment-form label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
}

.av-investment-form input {
  box-sizing: border-box;
  width: 100%;
  min-height: 54px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 13px;
  background: rgba(255, 255, 255, .05);
  color: inherit;
  font: inherit;
  font-size: 1.1rem;
}

.av-investment-form input:focus {
  outline: 2px solid #55d6a0;
  outline-offset: 2px;
}

.av-investment-error {
  margin: 10px 0;
  color: #ff8585;
  font-size: .9rem;
}

.av-investment-status {
  margin: 14px 0;
  color: #55d6a0;
  line-height: 1.5;
}

.av-investment-actions {
  display: flex;
  gap: 12px;
  margin-top: 24px;
}

.av-investment-actions button {
  flex: 1;
  min-height: 48px;
  border: 0;
  border-radius: 13px;
  font: inherit;
  font-weight: 700;
}

.av-investment-cancel {
  background: rgba(255, 255, 255, .08);
  color: inherit;
}

.av-investment-continue {
  background: #55d6a0;
  color: #10251c;
}

.av-investment-actions button:disabled {
  opacity: .55;
}

@media (max-width: 380px) {
  .av-investment-panel {
    padding: 22px 17px;
  }
}

/* Compact AuraVest investment amount modal */
.av-investment-panel {
  max-width: 370px;
  padding: 20px 18px;
  border-radius: 20px;
}

.av-investment-panel h2 {
  font-size: 1.2rem;
  margin-bottom: 7px;
}

.av-investment-description {
  font-size: 0.9rem;
  line-height: 1.45;
  margin: 8px 0;
}

.av-investment-range {
  font-size: 0.8rem;
  margin: 12px 0;
}

.av-investment-form input {
  min-height: 46px;
  padding: 11px 12px;
  font-size: 1rem;
}

.av-investment-actions {
  gap: 9px;
  margin-top: 18px;
}

.av-investment-actions button {
  min-height: 43px;
  font-size: 0.9rem;
}


/* Extra-compact investment amount card */
.av-investment-panel {
  max-width: 330px;
  padding: 16px 15px;
  border-radius: 17px;
}

.av-investment-panel h2 {
  font-size: 1.1rem;
  margin-bottom: 5px;
}

.av-investment-description {
  font-size: 0.84rem;
  line-height: 1.35;
  margin: 6px 0;
}

.av-investment-range {
  font-size: 0.75rem;
  margin: 9px 0;
}

.av-investment-form label {
  font-size: 0.85rem;
  margin-bottom: 6px;
}

.av-investment-form input {
  min-height: 41px;
  padding: 9px 10px;
  font-size: 0.95rem;
}

.av-investment-actions {
  gap: 8px;
  margin-top: 14px;
}

.av-investment-actions button {
  min-height: 38px;
  font-size: 0.84rem;
  border-radius: 10px;
}


/* AuraVest final investment confirmation card */
.av-investment-confirmation {
  margin-top: 12px;
  padding: 14px;
  border: 1px solid rgba(100, 180, 150, .3);
  border-radius: 14px;
  background: rgba(100, 180, 150, .07);
}

.av-investment-confirmation h3 {
  margin: 0 0 6px;
  font-size: 1rem;
}

.av-investment-confirmation > p {
  font-size: .8rem;
  line-height: 1.45;
}

.av-investment-confirmation-details {
  display: grid;
  gap: 10px;
  margin: 15px 0;
}

.av-investment-confirmation-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  font-size: .78rem;
}

.av-investment-confirmation-row span {
  opacity: .75;
}

.av-investment-confirmation-row strong {
  text-align: right;
  overflow-wrap: anywhere;
}

.av-investment-confirmation-total {
  font-size: .95rem;
}

.av-investment-disclaimer {
  opacity: .72;
  font-size: .72rem !important;
}

/* AuraVest friendly KYC verification card */
.av-investment-kyc-warning {
  position: relative;
  overflow: hidden;
  margin-top: 12px;
  padding: 20px 15px 16px;
  text-align: center;
  border: 1px solid rgba(83, 211, 165, .3);
  border-radius: 20px;
  background:
    radial-gradient(
      circle at 50% 0%,
      rgba(83, 211, 165, .17),
      transparent 48%
    ),
    linear-gradient(145deg, #171e29, #10151e);
  box-shadow: 0 12px 35px rgba(0, 0, 0, .24);
}

.av-investment-kyc-mascot {
  display: grid;
  place-items: center;
  width: 78px;
  height: 78px;
  margin: 0 auto 8px;
  border: 1px solid rgba(83, 211, 165, .35);
  border-radius: 50%;
  background: radial-gradient(
    circle at 35% 25%,
    #fff3a5,
    #ffc928 58%,
    #f29b16
  );
  font-size: 2.8rem;
  line-height: 1;
  box-shadow: 0 0 28px rgba(83, 211, 165, .14);
  animation: avMascotWave 1.8s ease-in-out infinite;
}

.av-investment-kyc-shield {
  margin: -3px auto 10px;
  font-size: 1.55rem;
}

.av-investment-kyc-warning h3 {
  margin: 0 auto 9px;
  max-width: 290px;
  font-size: 1.12rem;
  line-height: 1.35;
}

.av-investment-kyc-message {
  margin: 0 auto 18px;
  max-width: 320px;
  color: #c4ccd7;
  font-size: .84rem;
  line-height: 1.6;
}

.av-investment-kyc-benefits {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  margin: 16px 0 20px;
}

.av-investment-kyc-benefit {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  min-width: 0;
  color: #dbe4ee;
  font-size: .7rem;
  line-height: 1.35;
}

.av-investment-kyc-benefit > span:first-child {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(83, 211, 165, .25);
  border-radius: 13px;
  background: rgba(83, 211, 165, .1);
  font-size: 1.2rem;
}

.av-investment-kyc-actions {
  display: flex;
  gap: 9px;
}

.av-investment-kyc-actions button {
  flex: 1;
  min-width: 0;
  min-height: 44px;
  padding: 10px 8px;
  border-radius: 12px;
  font-size: .8rem;
}

@keyframes avMascotWave {
  0%, 100% { transform: rotate(0deg) translateY(0); }
  25% { transform: rotate(-5deg) translateY(-2px); }
  50% { transform: rotate(5deg) translateY(-3px); }
  75% { transform: rotate(-3deg) translateY(-1px); }
}

@media (prefers-reduced-motion: reduce) {
  .av-investment-kyc-mascot {
    animation: none;
  }
}


/* Compact KYC warning — match investment amount card */
.av-investment-kyc-warning {
  width: 100%;
  max-width: 330px;
  box-sizing: border-box;
  margin: 0 auto;
  padding: 14px 13px;
  border-radius: 17px;
}

.av-investment-kyc-warning h3 {
  margin: 8px 0;
  font-size: 1.05rem;
  line-height: 1.3;
}

.av-investment-kyc-warning p {
  margin: 7px 0;
  font-size: 0.82rem;
  line-height: 1.45;
}

.av-investment-kyc-warning button {
  width: 100%;
  min-height: 40px;
  padding: 10px 12px;
  font-size: 0.88rem;
  border-radius: 11px;
}

.av-investment-kyc-warning .av-kyc-warning-emoji {
  font-size: 2.3rem;
  line-height: 1.2;
}

@media (max-width: 380px) {
  .av-investment-kyc-warning {
    padding: 12px 11px;
  }

  .av-investment-kyc-warning h3 {
    font-size: 1rem;
  }
}

/* Ultra-compact KYC warning popup */
.av-investment-kyc-warning {
  width: calc(100% - 24px) !important;
  max-width: 285px !important;
  margin: 0 auto !important;
  padding: 10px 11px !important;
  border-radius: 14px !important;
  box-sizing: border-box !important;
}

.av-investment-kyc-warning h3 {
  margin: 5px 0 !important;
  font-size: 0.92rem !important;
  line-height: 1.25 !important;
}

.av-investment-kyc-warning p {
  margin: 5px 0 !important;
  font-size: 0.74rem !important;
  line-height: 1.35 !important;
}

.av-investment-kyc-warning button {
  min-height: 35px !important;
  padding: 8px 10px !important;
  font-size: 0.78rem !important;
  border-radius: 9px !important;
}

.av-investment-kyc-warning .av-kyc-warning-emoji {
  font-size: 1.8rem !important;
  line-height: 1.1 !important;
}


/* Reduce KYC warning card height */
.av-investment-kyc-warning {
  padding-top: 7px !important;
  padding-bottom: 7px !important;
}

.av-investment-kyc-warning h3 {
  margin-top: 3px !important;
  margin-bottom: 3px !important;
  line-height: 1.15 !important;
}

.av-investment-kyc-warning p {
  margin-top: 3px !important;
  margin-bottom: 3px !important;
  line-height: 1.25 !important;
}

.av-investment-kyc-warning .av-kyc-warning-emoji {
  font-size: 1.5rem !important;
  line-height: 1 !important;
  margin: 0 !important;
}

.av-investment-kyc-warning button {
  min-height: 31px !important;
  padding-top: 6px !important;
  padding-bottom: 6px !important;
  margin-top: 4px !important;
}


/* Ultra-compact KYC warning card */
.av-investment-kyc-warning {
  padding: 5px 10px !important;
  margin: 0 auto !important;
  gap: 3px !important;
  min-height: 0 !important;
  height: auto !important;
  border-radius: 12px !important;
  box-sizing: border-box !important;
}

.av-investment-kyc-warning h3 {
  margin: 2px 0 !important;
  font-size: 0.82rem !important;
  line-height: 1.1 !important;
}

.av-investment-kyc-warning p {
  margin: 2px 0 !important;
  font-size: 0.70rem !important;
  line-height: 1.2 !important;
}

.av-investment-kyc-warning .av-kyc-warning-emoji {
  font-size: 1.2rem !important;
  line-height: 1 !important;
  margin: 0 !important;
}

.av-investment-kyc-warning button {
  min-height: 27px !important;
  height: auto !important;
  padding: 5px 8px !important;
  margin: 3px 0 0 !important;
  font-size: 0.72rem !important;
  line-height: 1.1 !important;
}


/* Smaller KYC warning card: width + height */
.av-investment-kyc-warning {
  width: calc(100% - 50px) !important;
  max-width: 245px !important;
  min-height: 0 !important;
  height: auto !important;
  padding: 4px 7px !important;
  margin: 0 auto !important;
  gap: 2px !important;
  border-radius: 10px !important;
  box-sizing: border-box !important;
}

.av-investment-kyc-warning h3 {
  margin: 1px 0 !important;
  font-size: 0.76rem !important;
  line-height: 1.05 !important;
}

.av-investment-kyc-warning p {
  margin: 1px 0 !important;
  font-size: 0.66rem !important;
  line-height: 1.15 !important;
}

.av-investment-kyc-warning .av-kyc-warning-emoji {
  font-size: 1rem !important;
  line-height: 1 !important;
  margin: 0 !important;
}

.av-investment-kyc-warning button {
  min-height: 24px !important;
  padding: 4px 6px !important;
  margin: 2px 0 0 !important;
  font-size: 0.68rem !important;
  line-height: 1.1 !important;
}


/* Further reduce KYC warning card height */
.av-investment-kyc-warning {
  padding: 2px 7px !important;
  min-height: 0 !important;
  height: auto !important;
  gap: 0 !important;
}

.av-investment-kyc-warning h3 {
  margin: 0 !important;
  line-height: 1.05 !important;
  font-size: 0.74rem !important;
}

.av-investment-kyc-warning p {
  margin: 1px 0 !important;
  line-height: 1.1 !important;
  font-size: 0.64rem !important;
}

.av-investment-kyc-warning .av-kyc-warning-emoji {
  font-size: 0.85rem !important;
  line-height: 1 !important;
  margin: 0 !important;
}

.av-investment-kyc-warning button {
  min-height: 21px !important;
  padding: 3px 6px !important;
  margin: 1px 0 0 !important;
  line-height: 1 !important;
  font-size: 0.66rem !important;
}


/* AuraVest custom transfer confirmation */
.av-transfer-confirm-overlay {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: rgba(3, 7, 18, .78);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-sizing: border-box;
}

.av-transfer-confirm-card {
  width: 100%;
  max-width: 390px;
  max-height: 85dvh;
  overflow-y: auto;
  padding: 23px 19px 18px;
  border: 1px solid rgba(212, 175, 85, .28);
  border-radius: 23px;
  background: linear-gradient(155deg, #172033, #0a101d 75%);
  color: #f5f7ff;
  box-shadow: 0 24px 80px rgba(0, 0, 0, .5);
  box-sizing: border-box;
  animation: avTransferConfirmIn .22s ease-out;
}

.av-transfer-confirm-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  margin: 0 auto 12px;
  border-radius: 16px;
  background: rgba(212, 175, 85, .14);
  color: #e6c675;
  font-size: 27px;
  font-weight: 800;
}

.av-transfer-confirm-card h2 {
  margin: 0;
  text-align: center;
  font-size: 1.35rem;
}

.av-transfer-confirm-subtitle {
  margin: 8px 0 18px;
  color: #aab5c9;
  text-align: center;
  font-size: .86rem;
  line-height: 1.5;
}

.av-transfer-confirm-details {
  padding: 5px 13px;
  border: 1px solid rgba(255, 255, 255, .07);
  border-radius: 15px;
  background: rgba(255, 255, 255, .035);
}

.av-transfer-confirm-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, .07);
}

.av-transfer-confirm-row:last-child {
  border-bottom: 0;
}

.av-transfer-confirm-row span {
  color: #9ba8bd;
  font-size: .8rem;
  flex: 0 0 auto;
}

.av-transfer-confirm-row strong {
  max-width: 68%;
  text-align: right;
  overflow-wrap: anywhere;
  font-size: .84rem;
}

.av-transfer-confirm-row .av-transfer-confirm-amount {
  color: #e6c675;
  font-size: 1.1rem;
}

.av-transfer-confirm-notice {
  margin: 15px 2px;
  color: #aab5c9;
  font-size: .78rem;
  line-height: 1.5;
}

.av-transfer-confirm-actions {
  display: flex;
  gap: 10px;
  margin-top: 16px;
}

.av-transfer-confirm-actions button {
  flex: 1;
  min-width: 0;
  min-height: 45px;
  border-radius: 12px;
  font-weight: 700;
  cursor: pointer;
}

.av-transfer-confirm-cancel {
  border: 1px solid rgba(255, 255, 255, .15);
  background: rgba(255, 255, 255, .06);
  color: #e0e6f1;
}

.av-transfer-confirm-submit {
  border: 0;
  background: linear-gradient(135deg, #e6c675, #c39a43);
  color: #111827;
}

@keyframes avTransferConfirmIn {
  from { opacity: 0; transform: translateY(10px) scale(.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@media (prefers-reduced-motion: reduce) {
  .av-transfer-confirm-card {
    animation: none;
  }
}


/* AuraVest: Compact mobile transfer screens */
@media (max-width: 600px) {
  /* Confirmation overlay */
  .av-transfer-confirm-overlay {
    padding: 12px !important;
    align-items: center !important;
    overflow-y: auto !important;
  }

  .av-transfer-confirm-card {
    width: min(100%, 420px) !important;
    max-height: calc(100dvh - 32px) !important;
    overflow-y: auto !important;
    padding: 20px 16px !important;
    border-radius: 22px !important;
    margin: auto !important;
  }

  .av-transfer-confirm-icon {
    width: 58px !important;
    height: 58px !important;
    margin-bottom: 12px !important;
  }

  .av-transfer-confirm-card h2 {
    font-size: 24px !important;
    margin: 8px 0 !important;
  }

  .av-transfer-confirm-subtitle {
    font-size: 15px !important;
    line-height: 1.45 !important;
    margin: 8px 0 12px !important;
  }

  .av-transfer-confirm-details {
    padding: 4px 12px !important;
    margin: 10px 0 !important;
  }

  .av-transfer-confirm-row {
    gap: 8px !important;
    padding: 10px 0 !important;
  }

  .av-transfer-confirm-row span,
  .av-transfer-confirm-row strong {
    font-size: 12px !important;
    overflow-wrap: anywhere !important;
  }

  .av-transfer-confirm-notice {
    font-size: 12px !important;
    line-height: 1.4 !important;
    margin: 8px 0 !important;
  }

  .av-transfer-confirm-actions {
    gap: 10px !important;
    margin-top: 12px !important;
  }

  .av-transfer-confirm-actions button {
    min-width: 0 !important;
    min-height: 52px !important;
    padding: 10px !important;
    font-size: 15px !important;
  }

  /* Transfer result screen */
  #transferResultView {
    width: 100% !important;
    padding: 8px 12px 16px !important;
    box-sizing: border-box !important;
  }

  .av-result-card {
    width: 100% !important;
    max-width: 420px !important;
    box-sizing: border-box !important;
    margin: 8px auto !important;
    padding: 18px 14px !important;
    border-radius: 20px !important;
  }

  .av-result-icon {
    width: 54px !important;
    height: 54px !important;
    font-size: 29px !important;
    margin-bottom: 10px !important;
  }

  .av-result-status {
    font-size: 10px !important;
    letter-spacing: 1.5px !important;
    margin: 8px 0 !important;
  }

  .av-result-card h2 {
    font-size: 23px !important;
    margin: 6px 0 !important;
  }

  .av-result-card > p:not(.av-result-status) {
    font-size: 14px !important;
    line-height: 1.45 !important;
  }

  .av-result-card > h1 {
    font-size: 29px !important;
    margin: 10px 0 14px !important;
  }

  .av-result-details {
    margin: 12px 0 !important;
    padding: 4px 10px !important;
  }

  .av-result-details > div {
    gap: 8px !important;
    padding: 10px 0 !important;
  }

  .av-result-details span,
  .av-result-details strong {
    font-size: 11px !important;
    overflow-wrap: anywhere !important;
  }

  .av-result-card button {
    min-height: 48px !important;
    margin-top: 8px !important;
    padding: 10px 12px !important;
  }
}

/* AuraVest transfer screens — extra compact mobile v2 */
@media (max-width: 600px) {
  /* Confirmation popup */
  .av-transfer-confirm-overlay {
    padding: 8px !important;
  }

  .av-transfer-confirm-card {
    width: 88% !important;
    max-width: 340px !important;
    max-height: 76dvh !important;
    padding: 13px 11px !important;
    border-radius: 17px !important;
  }

  .av-transfer-confirm-icon {
    width: 42px !important;
    height: 42px !important;
    margin: 0 auto 7px !important;
    font-size: 20px !important;
  }

  .av-transfer-confirm-card h2 {
    font-size: 19px !important;
    margin: 5px 0 !important;
  }

  .av-transfer-confirm-subtitle {
    font-size: 12px !important;
    line-height: 1.35 !important;
    margin: 5px 0 8px !important;
  }

  .av-transfer-confirm-details {
    margin: 7px 0 !important;
    padding: 3px 9px !important;
    border-radius: 12px !important;
  }

  .av-transfer-confirm-row {
    gap: 6px !important;
    padding: 7px 0 !important;
  }

  .av-transfer-confirm-row span,
  .av-transfer-confirm-row strong {
    font-size: 10px !important;
    line-height: 1.3 !important;
  }

  .av-transfer-confirm-notice {
    font-size: 10px !important;
    line-height: 1.3 !important;
    margin: 6px 0 !important;
  }

  .av-transfer-confirm-actions {
    gap: 7px !important;
    margin-top: 8px !important;
  }

  .av-transfer-confirm-actions button {
    min-height: 42px !important;
    padding: 7px 5px !important;
    font-size: 12px !important;
    line-height: 1.2 !important;
    border-radius: 11px !important;
  }

  /* Transfer result card */
  #transferResultView {
    padding: 5px 8px 10px !important;
  }

  .av-result-card {
    width: 88% !important;
    max-width: 340px !important;
    margin: 5px auto !important;
    padding: 13px 11px !important;
    border-radius: 16px !important;
  }

  .av-result-icon {
    width: 42px !important;
    height: 42px !important;
    font-size: 23px !important;
    margin: 0 auto 7px !important;
  }

  .av-result-status {
    font-size: 9px !important;
    letter-spacing: 1px !important;
    margin: 5px 0 !important;
  }

  .av-result-card h2 {
    font-size: 19px !important;
    margin: 5px 0 !important;
  }

  .av-result-card > p:not(.av-result-status) {
    font-size: 12px !important;
    line-height: 1.35 !important;
    margin: 6px 0 !important;
  }

  .av-result-card > h1 {
    font-size: 24px !important;
    margin: 7px 0 10px !important;
  }

  .av-result-details {
    margin: 8px 0 !important;
    padding: 2px 8px !important;
    border-radius: 11px !important;
  }

  .av-result-details > div {
    gap: 6px !important;
    padding: 7px 0 !important;
  }

  .av-result-details span,
  .av-result-details strong {
    font-size: 10px !important;
    line-height: 1.3 !important;
  }

  .av-result-card button {
    min-height: 40px !important;
    margin-top: 6px !important;
    padding: 7px 9px !important;
    font-size: 12px !important;
  }
}

/* Compact side-by-side transfer result actions */
.av-transfer-result-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  width: 100%;
  margin-top: 8px;
}

.av-transfer-result-actions button {
  width: 100%;
  min-width: 0;
  min-height: 42px;
  margin-top: 0 !important;
  padding: 8px 5px;
  font-size: 12px;
  line-height: 1.25;
  white-space: normal;
  overflow-wrap: anywhere;
  border-radius: 10px;
}

/* AuraVest transfer result icon animations */
.av-result-success .av-result-icon {
  animation: avSuccessFrame 1.8s ease-in-out infinite;
}

.av-result-failed .av-result-icon {
  animation: avFailureFrame 1.8s ease-in-out infinite;
}

@keyframes avSuccessFrame {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(38, 190, 123, 0);
  }
  50% {
    transform: scale(1.08);
    box-shadow: 0 0 0 7px rgba(38, 190, 123, 0.15);
  }
}

@keyframes avFailureFrame {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(255, 80, 80, 0);
  }
  50% {
    transform: scale(1.08);
    box-shadow: 0 0 0 7px rgba(255, 80, 80, 0.16);
  }
}

@media (prefers-reduced-motion: reduce) {
  .av-result-success .av-result-icon,
  .av-result-failed .av-result-icon {
    animation: none !important;
  }
}

/* AuraVest welcome and announcement popups */
.av-popup-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow-y: auto;
  padding: 18px;
  background: rgba(3, 7, 15, .78);
  backdrop-filter: blur(7px);
  -webkit-backdrop-filter: blur(7px);
}

.av-popup-overlay[hidden] {
  display: none !important;
}

.av-popup-card {
  position: relative;
  width: min(100%, 380px);
  max-height: calc(100dvh - 36px);
  overflow-y: auto;
  box-sizing: border-box;
  padding: 25px 20px 20px;
  text-align: center;
  color: #f5f7fc;
  background: linear-gradient(155deg, #152238, #080e19);
  border: 1px solid rgba(215, 176, 91, .48);
  border-radius: 23px;
  box-shadow: 0 22px 70px rgba(0, 0, 0, .45);
  animation: avPopupEnter .32s ease-out both;
}

.av-popup-close {
  position: absolute;
  top: 10px;
  right: 12px;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 50%;
  color: #dce3ef;
  background: rgba(255,255,255,.06);
  font-size: 22px;
  cursor: pointer;
}

.av-popup-brand {
  color: #e7c778;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 3px;
}

.av-popup-icon {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  margin: 18px auto 12px;
  color: #f1d48c;
  font-size: 28px;
  border: 1px solid rgba(231,199,120,.55);
  border-radius: 18px;
  background: rgba(231,199,120,.09);
  box-shadow: 0 0 26px rgba(231,199,120,.09);
}

.av-popup-eyebrow {
  margin: 10px 0 7px;
  color: #d8b765;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1.8px;
}

.av-popup-card h2 {
  margin: 8px 0 10px;
  font-size: clamp(21px, 6vw, 27px);
  line-height: 1.2;
}

.av-popup-message {
  margin: 0 auto 18px;
  max-width: 310px;
  color: #b6c1d2;
  font-size: 13px;
  line-height: 1.7;
  overflow-wrap: anywhere;
}

.av-popup-primary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 46px;
  padding: 11px 15px;
  border: 1px solid #f0d48d;
  border-radius: 12px;
  color: #15120b;
  background: linear-gradient(110deg, #d7b05b, #f5dfa0);
  font-weight: 800;
  font-size: 14px;
  cursor: pointer;
}

.av-popup-primary span {
  font-size: 18px;
}

.av-popup-footnote {
  display: block;
  margin-top: 13px;
  color: #8996aa;
  font-size: 10px;
  line-height: 1.5;
}

@keyframes avPopupEnter {
  from { opacity: 0; transform: translateY(12px) scale(.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@media (max-width: 420px) {
  .av-popup-overlay { padding: 12px; }
  .av-popup-card {
    width: 100%;
    max-height: calc(100dvh - 24px);
    padding: 22px 16px 16px;
    border-radius: 19px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .av-popup-card { animation: none; }
}

/* AuraVest welcome popup — compact mobile fit */
.av-popup-card {
  width: min(88vw, 320px) !important;
  max-height: calc(100dvh - 32px) !important;
  padding: 18px 14px 14px !important;
  border-radius: 17px !important;
}

.av-popup-close {
  top: 7px !important;
  right: 7px !important;
  width: 27px !important;
  height: 27px !important;
  min-width: 27px !important;
  min-height: 27px !important;
  padding: 0 !important;
  display: grid !important;
  place-items: center !important;
  font-size: 18px !important;
  line-height: 1 !important;
}

.av-popup-brand {
  font-size: 10px !important;
  letter-spacing: 2px !important;
}

.av-popup-icon {
  width: 43px !important;
  height: 43px !important;
  margin: 12px auto 8px !important;
  border-radius: 13px !important;
  font-size: 22px !important;
}

.av-popup-eyebrow {
  margin: 7px 0 5px !important;
  font-size: 9px !important;
  letter-spacing: 1.2px !important;
}

.av-popup-card h2 {
  font-size: 20px !important;
  margin: 6px 0 8px !important;
}

.av-popup-message {
  font-size: 12px !important;
  line-height: 1.5 !important;
  margin-bottom: 12px !important;
}

.av-popup-primary {
  min-height: 39px !important;
  padding: 8px 12px !important;
  font-size: 12px !important;
  border-radius: 10px !important;
}

.av-popup-footnote {
  margin-top: 9px !important;
  font-size: 9px !important;
}

@media (max-width: 360px) {
  .av-popup-overlay {
    padding: 8px !important;
  }

  .av-popup-card {
    width: min(90vw, 300px) !important;
    padding: 16px 12px 12px !important;
  }

  .av-popup-card h2 {
    font-size: 18px !important;
  }
}
