/* QuantumEdge dashboard — glass / glassmorphism (mobile-first) */

:root {
  --qe-bg: transparent;
  --qe-surface: rgba(255, 255, 255, 0.52);
  --qe-surface-2: rgba(255, 255, 255, 0.38);
  --qe-border: rgba(255, 255, 255, 0.42);
  --qe-text: #0c1222;
  --qe-muted: #64748b;
  --qe-muted-2: #94a3b8;
  --qe-accent: #4f46e5;
  --qe-accent-2: #6366f1;
  --qe-success: #059669;
  --qe-warning: #d97706;
  --qe-danger: #dc2626;
  --qe-radius: 18px;
  --qe-radius-sm: 12px;
  --qe-ease-smooth: cubic-bezier(0.22, 1, 0.36, 1);
  --qe-duration: 0.4s;
  --qe-glass-blur: 28px;
  --qe-glass-sat: 1.45;
  --qe-glass-fill: rgba(255, 255, 255, 0.48);
  --qe-glass-fill-strong: rgba(255, 255, 255, 0.62);
  --qe-glass-fill-hover: rgba(255, 255, 255, 0.78);
  --qe-glass-stroke: rgba(255, 255, 255, 0.72);
  --qe-glass-stroke-outer: rgba(255, 255, 255, 0.32);
  --qe-glass-shine: inset 0 1px 0 rgba(255, 255, 255, 0.82),
    inset 0 -1px 0 rgba(255, 255, 255, 0.1);
  --qe-glass-glow: 0 8px 32px rgba(99, 102, 241, 0.1), 0 2px 8px rgba(15, 23, 42, 0.04);
  --qe-glass-glow-hover: 0 16px 48px rgba(99, 102, 241, 0.16), 0 8px 24px rgba(79, 70, 229, 0.1);
  --qe-shadow: var(--qe-glass-shine), var(--qe-glass-glow);
  --qe-shadow-hover: var(--qe-glass-shine), var(--qe-glass-glow-hover);
  --qe-nav-h: 64px;
  --qe-bottom-nav: 72px;
  --qe-font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --qe-max: 1120px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--qe-font);
  font-size: 15px;
  line-height: 1.5;
  color: var(--qe-text);
  background-color: #dde3f5;
  background-image: radial-gradient(ellipse 110% 75% at 0% -8%, rgba(99, 102, 241, 0.32), transparent 52%),
    radial-gradient(ellipse 95% 65% at 100% 0%, rgba(147, 51, 234, 0.2), transparent 50%),
    radial-gradient(ellipse 75% 55% at 50% 105%, rgba(56, 189, 248, 0.16), transparent 55%),
    linear-gradient(168deg, #d8e0fb 0%, #e8ecff 36%, #eef1ff 70%, #e2e8ff 100%);
  background-attachment: fixed;
  min-height: 100dvh;
  padding-bottom: calc(var(--qe-bottom-nav) + env(safe-area-inset-bottom, 0px));
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--qe-accent);
  text-decoration: none;
  transition: color var(--qe-duration) var(--qe-ease-smooth), opacity var(--qe-duration) var(--qe-ease-smooth);
}

a:hover {
  color: var(--qe-accent-2);
}

/* —— Loader —— */
#loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(221, 227, 245, 0.72);
  backdrop-filter: blur(24px) saturate(1.35);
  -webkit-backdrop-filter: blur(24px) saturate(1.35);
  transition: opacity var(--qe-duration) var(--qe-ease-smooth), visibility var(--qe-duration) var(--qe-ease-smooth);
}

#loader .loading-icon {
  width: 48px;
  height: 48px;
  opacity: 0.9;
  animation: qe-pulse 1.2s ease-in-out infinite;
}

@keyframes qe-pulse {
  0%,
  100% {
    opacity: 0.5;
    transform: scale(0.96);
  }
  50% {
    opacity: 1;
    transform: scale(1);
  }
}

/* —— Shell —— */
.qe-page {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

/* —— Top bar —— */
.qe-topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--qe-nav-h);
  padding: 0 clamp(16px, 4vw, 28px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: rgba(255, 255, 255, 0.38);
  backdrop-filter: blur(var(--qe-glass-blur)) saturate(var(--qe-glass-sat));
  -webkit-backdrop-filter: blur(var(--qe-glass-blur)) saturate(var(--qe-glass-sat));
  border-bottom: 1px solid var(--qe-glass-stroke);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.55) inset;
}

.qe-topbar__brand {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* logo.png is light line-art: needs contrast on white / glass */
.qe-topbar__brand .logo {
  height: 32px;
  width: auto;
  max-width: min(200px, 50vw);
  object-fit: contain;
  object-position: left center;
  padding: 5px 11px;
  border-radius: 11px;
  background: linear-gradient(160deg, rgba(15, 23, 42, 0.07), rgba(79, 70, 229, 0.1));
  border: 1px solid rgba(15, 23, 42, 0.1);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65);
  filter: drop-shadow(0 0 1px rgba(15, 23, 42, 0.35)) drop-shadow(0 1px 3px rgba(15, 23, 42, 0.12));
  box-sizing: content-box;
}

body.dark-mode .qe-topbar__brand .logo {
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.1), rgba(99, 102, 241, 0.18));
  border-color: rgba(255, 255, 255, 0.14);
  filter: drop-shadow(0 0 2px rgba(0, 0, 0, 0.6)) drop-shadow(0 1px 4px rgba(0, 0, 0, 0.35));
}

.qe-icon-btn {
  width: 44px;
  height: 44px;
  border: 1px solid var(--qe-glass-stroke-outer);
  border-radius: 14px;
  background: var(--qe-glass-fill);
  backdrop-filter: blur(20px) saturate(var(--qe-glass-sat));
  -webkit-backdrop-filter: blur(20px) saturate(var(--qe-glass-sat));
  color: var(--qe-text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--qe-glass-shine), var(--qe-glass-glow);
  transition: transform var(--qe-duration) var(--qe-ease-smooth), box-shadow var(--qe-duration) var(--qe-ease-smooth),
    background var(--qe-duration) var(--qe-ease-smooth), border-color var(--qe-duration) var(--qe-ease-smooth);
}

.qe-icon-btn:hover {
  transform: translateY(-2px);
  background: var(--qe-glass-fill-hover);
  border-color: var(--qe-glass-stroke);
  box-shadow: var(--qe-glass-shine), var(--qe-glass-glow-hover);
}

.qe-icon-btn:active {
  transform: translateY(0);
}

.qe-icon-btn ion-icon {
  font-size: 22px;
}

/* —— Main —— */
.qe-main {
  flex: 1;
  width: 100%;
  max-width: var(--qe-max);
  margin: 0 auto;
  padding: clamp(20px, 4vw, 40px) clamp(16px, 4vw, 28px) clamp(32px, 6vw, 56px);
  display: flex;
  flex-direction: column;
  gap: clamp(24px, 4vw, 36px);
}

/* —— Hero —— */
.qe-hero {
  position: relative;
  border-radius: calc(var(--qe-radius) + 6px);
  padding: clamp(24px, 5vw, 36px);
  overflow: hidden;
  color: #fff;
  background: linear-gradient(135deg, rgba(49, 46, 129, 0.88) 0%, rgba(79, 70, 229, 0.82) 48%, rgba(99, 102, 241, 0.78) 100%);
  backdrop-filter: blur(24px) saturate(1.55);
  -webkit-backdrop-filter: blur(24px) saturate(1.55);
  border: 1px solid rgba(255, 255, 255, 0.32);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45), inset 0 -1px 0 rgba(0, 0, 0, 0.12), 0 24px 64px rgba(49, 46, 129, 0.42),
    0 8px 24px rgba(99, 102, 241, 0.2);
}

.qe-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 90% 70% at 100% 0%, rgba(255, 255, 255, 0.35), transparent 58%),
    linear-gradient(160deg, rgba(255, 255, 255, 0.12) 0%, transparent 42%);
  pointer-events: none;
}

.qe-hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  gap: clamp(20px, 4vw, 28px);
  align-items: center;
}

@media (min-width: 640px) {
  .qe-hero__inner {
    grid-template-columns: 1fr auto;
  }
}

.qe-hero__label {
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0.88;
  margin: 0 0 6px;
}

.qe-hero__amount {
  margin: 0;
  font-size: clamp(1.75rem, 5vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.qe-hero__profile {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
}

.qe-hero__avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid rgba(255, 255, 255, 0.35);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.qe-hero__name {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
}

.qe-hero__user {
  margin: 0;
  font-size: 0.875rem;
  opacity: 0.9;
}

/* —— Section —— */
.qe-section {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.qe-section__head {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.qe-section__title {
  margin: 0;
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.qe-section__sub {
  margin: 0;
  font-size: 0.875rem;
  color: var(--qe-muted);
}

/* —— Cards —— */
.qe-card {
  background: var(--qe-glass-fill);
  backdrop-filter: blur(var(--qe-glass-blur)) saturate(var(--qe-glass-sat));
  -webkit-backdrop-filter: blur(var(--qe-glass-blur)) saturate(var(--qe-glass-sat));
  border: 1px solid var(--qe-glass-stroke-outer);
  border-radius: var(--qe-radius);
  padding: clamp(18px, 3vw, 22px);
  box-shadow: var(--qe-glass-shine), var(--qe-glass-glow);
  transition: border-color var(--qe-duration) var(--qe-ease-smooth), box-shadow var(--qe-duration) var(--qe-ease-smooth),
    transform var(--qe-duration) var(--qe-ease-smooth), background var(--qe-duration) var(--qe-ease-smooth);
}

.qe-card:hover {
  background: var(--qe-glass-fill-hover);
  border-color: var(--qe-glass-stroke);
  box-shadow: var(--qe-glass-shine), var(--qe-glass-glow-hover);
}

.qe-card--clickable {
  cursor: pointer;
}

.qe-card--clickable:active {
  transform: scale(0.995);
}

/* Referral strip */
.copyreferal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.copyreferal span:first-child {
  font-size: 0.9375rem;
  color: var(--qe-muted);
}

.copyreferal .qe-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: var(--qe-glass-fill-strong);
  backdrop-filter: blur(20px) saturate(var(--qe-glass-sat));
  -webkit-backdrop-filter: blur(20px) saturate(var(--qe-glass-sat));
  border-radius: 999px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--qe-text);
  border: 1px solid var(--qe-glass-stroke-outer);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65);
  transition: background var(--qe-duration) var(--qe-ease-smooth), border-color var(--qe-duration) var(--qe-ease-smooth),
    box-shadow var(--qe-duration) var(--qe-ease-smooth);
}

.copyreferal:hover .qe-pill {
  background: var(--qe-glass-fill-hover);
  border-color: var(--qe-glass-stroke);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85), 0 8px 24px rgba(99, 102, 241, 0.12);
}

.copyreferal .fa-copy {
  color: var(--qe-accent);
  font-size: 0.9rem;
}

/* BNB deposit */
.bnbaddress {
  text-align: center;
}

.bnbaddress .qe-bnb__title {
  font-weight: 600;
  margin: 0 0 16px;
  font-size: 1rem;
}

#bnbQR {
  display: flex;
  justify-content: center;
  margin-bottom: 16px;
}

#bnbQR img,
#bnbQR canvas {
  border-radius: var(--qe-radius-sm);
  border: 1px solid var(--qe-glass-stroke-outer);
  box-shadow: var(--qe-glass-shine), var(--qe-glass-glow);
}

#bnbAddress {
  font-size: 0.8125rem;
  color: var(--qe-muted);
  word-break: break-all;
  margin-bottom: 14px;
  line-height: 1.45;
}

#copyBNB {
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: 500;
  padding: 10px 18px;
  border-radius: 12px;
  border: 1px solid var(--qe-glass-stroke-outer);
  background: var(--qe-glass-fill-strong);
  backdrop-filter: blur(20px) saturate(var(--qe-glass-sat));
  -webkit-backdrop-filter: blur(20px) saturate(var(--qe-glass-sat));
  color: var(--qe-text);
  cursor: pointer;
  margin-bottom: 12px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
  transition: background var(--qe-duration) var(--qe-ease-smooth), border-color var(--qe-duration) var(--qe-ease-smooth),
    transform var(--qe-duration) var(--qe-ease-smooth), box-shadow var(--qe-duration) var(--qe-ease-smooth);
}

#copyBNB:hover {
  background: var(--qe-glass-fill-hover);
  border-color: rgba(99, 102, 241, 0.45);
  transform: translateY(-2px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 12px 28px rgba(79, 70, 229, 0.15);
}

.bnbaddress .qe-rate {
  font-size: 0.8125rem;
  color: var(--qe-muted);
}

.rate-highlight {
  font-weight: 600;
  color: var(--qe-accent);
  animation: qe-rate-pulse 2s ease-in-out infinite;
}

@keyframes qe-rate-pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.65;
  }
}

/* Rank grid */
.qe-metric-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

@media (min-width: 520px) {
  .qe-metric-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 900px) {
  .qe-metric-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.qe-metric {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 14px 16px;
  background: var(--qe-glass-fill);
  backdrop-filter: blur(22px) saturate(var(--qe-glass-sat));
  -webkit-backdrop-filter: blur(22px) saturate(var(--qe-glass-sat));
  border: 1px solid var(--qe-glass-stroke-outer);
  border-radius: var(--qe-radius-sm);
  box-shadow: var(--qe-glass-shine), 0 4px 16px rgba(15, 23, 42, 0.04);
  transition: border-color var(--qe-duration) var(--qe-ease-smooth), box-shadow var(--qe-duration) var(--qe-ease-smooth),
    background var(--qe-duration) var(--qe-ease-smooth);
}

.qe-metric:hover {
  background: var(--qe-glass-fill-hover);
  border-color: rgba(99, 102, 241, 0.35);
  box-shadow: var(--qe-glass-shine), 0 8px 28px rgba(79, 70, 229, 0.12);
}

.qe-metric__label {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--qe-muted);
  line-height: 1.35;
}

.qe-metric__value {
  font-size: 0.9375rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.qe-metric__value--ok {
  color: var(--qe-success);
}

.qe-metric__value--warn {
  color: var(--qe-warning);
}

/* Stat tiles */
.qe-stat-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

@media (min-width: 640px) {
  .qe-stat-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.qe-stat {
  padding: 16px;
  background: var(--qe-glass-fill);
  backdrop-filter: blur(22px) saturate(var(--qe-glass-sat));
  -webkit-backdrop-filter: blur(22px) saturate(var(--qe-glass-sat));
  border: 1px solid var(--qe-glass-stroke-outer);
  border-radius: var(--qe-radius-sm);
  box-shadow: var(--qe-glass-shine), 0 4px 16px rgba(15, 23, 42, 0.04);
  transition: transform var(--qe-duration) var(--qe-ease-smooth), box-shadow var(--qe-duration) var(--qe-ease-smooth),
    border-color var(--qe-duration) var(--qe-ease-smooth), background var(--qe-duration) var(--qe-ease-smooth);
}

.qe-stat:hover {
  transform: translateY(-3px);
  background: var(--qe-glass-fill-hover);
  border-color: var(--qe-glass-stroke);
  box-shadow: var(--qe-glass-shine), var(--qe-glass-glow-hover);
}

.qe-stat__title {
  font-size: 0.6875rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--qe-muted);
  margin-bottom: 8px;
  line-height: 1.35;
}

.qe-stat__title small {
  display: block;
  margin-top: 4px;
  font-size: 0.65rem;
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
  color: var(--qe-muted-2);
}

.qe-stat__value {
  font-size: 1.125rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}

.qe-stat__value--in {
  color: var(--qe-success);
}

.qe-stat__value--out {
  color: var(--qe-danger);
}

/* Goals placeholder */
.goals {
  min-height: 0;
}

/* News carousel wrapper */
.qe-news {
  overflow: hidden;
}

.qe-news .carousel-multiple,
.qe-news .qe-news-carousel {
  margin: 0 -8px;
}

.qe-news__toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.qe-news__status {
  margin: 0;
  flex: 1;
  min-width: 0;
  font-size: 0.8125rem;
  color: var(--qe-muted);
}

.qe-news__refresh {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--qe-glass-stroke-outer);
  border-radius: 12px;
  background: var(--qe-glass-fill-strong);
  backdrop-filter: blur(18px) saturate(var(--qe-glass-sat));
  -webkit-backdrop-filter: blur(18px) saturate(var(--qe-glass-sat));
  color: var(--qe-accent);
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65);
  transition: background var(--qe-duration) var(--qe-ease-smooth), transform var(--qe-duration) var(--qe-ease-smooth),
    border-color var(--qe-duration) var(--qe-ease-smooth);
}

.qe-news__refresh:hover:not(:disabled) {
  background: var(--qe-glass-fill-hover);
  border-color: rgba(99, 102, 241, 0.35);
  transform: rotate(90deg);
}

.qe-news__refresh:disabled {
  opacity: 0.55;
  cursor: wait;
}

.qe-news__refresh i {
  font-size: 0.875rem;
}

/* Splide 2 — news slider (20 slides): arrows + pagination on glass */
.qe-news-carousel.splide {
  position: relative;
  padding-bottom: 36px;
}

.qe-news .splide__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid var(--qe-glass-stroke-outer);
  background: var(--qe-glass-fill-strong);
  backdrop-filter: blur(18px) saturate(var(--qe-glass-sat));
  -webkit-backdrop-filter: blur(18px) saturate(var(--qe-glass-sat));
  box-shadow: var(--qe-glass-shine), var(--qe-glass-glow);
  opacity: 1;
  transition: background var(--qe-duration) var(--qe-ease-smooth), border-color var(--qe-duration) var(--qe-ease-smooth);
}

.qe-news .splide__arrow:hover:not(:disabled) {
  background: var(--qe-glass-fill-hover);
  border-color: rgba(99, 102, 241, 0.35);
}

.qe-news .splide__arrow:disabled {
  opacity: 0.35;
}

.qe-news .splide__arrow svg {
  fill: var(--qe-accent);
}

.qe-news .splide__arrow--prev {
  left: 4px;
}

.qe-news .splide__arrow--next {
  right: 4px;
}

@media (max-width: 519px) {
  .qe-news .splide__arrow {
    width: 34px;
    height: 34px;
  }

  .qe-news .splide__arrow--prev {
    left: 2px;
  }

  .qe-news .splide__arrow--next {
    right: 2px;
  }
}

.qe-news .splide__pagination {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  width: 100%;
  margin: 0;
  padding: 0 44px;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  max-height: 40px;
  overflow-y: auto;
}

.qe-news .splide__pagination button {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--qe-muted-2);
  opacity: 0.45;
  border: none;
  padding: 0;
  margin: 0 3px;
  cursor: pointer;
  transition: transform var(--qe-duration) var(--qe-ease-smooth), opacity var(--qe-duration) var(--qe-ease-smooth),
    background var(--qe-duration) var(--qe-ease-smooth);
}

.qe-news .splide__pagination button.is-active {
  background: var(--qe-accent);
  opacity: 1;
  transform: scale(1.15);
}

.qe-news-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.qe-news-card__media {
  overflow: hidden;
  flex-shrink: 0;
}

.qe-news-card__title {
  margin: 0;
  padding: 10px 12px 12px;
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--qe-text);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}

.qe-news-card--placeholder {
  min-height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px 16px;
}

.qe-news-card--placeholder .qe-news-card__title {
  display: block;
  -webkit-line-clamp: unset;
  text-align: center;
  color: var(--qe-muted);
  font-weight: 500;
}

.qe-news a {
  color: inherit;
  text-decoration: none;
}

.qe-news a:hover .qe-news-card__title {
  color: var(--qe-accent);
}

.qe-news .blog-card {
  border-radius: var(--qe-radius-sm);
  overflow: hidden;
  border: 1px solid var(--qe-glass-stroke-outer);
  background: var(--qe-glass-fill);
  backdrop-filter: blur(22px) saturate(var(--qe-glass-sat));
  -webkit-backdrop-filter: blur(22px) saturate(var(--qe-glass-sat));
  box-shadow: var(--qe-glass-shine), var(--qe-glass-glow);
  transition: transform var(--qe-duration) var(--qe-ease-smooth), box-shadow var(--qe-duration) var(--qe-ease-smooth),
    border-color var(--qe-duration) var(--qe-ease-smooth);
}

.qe-news .blog-card:hover {
  transform: translateY(-4px);
  border-color: var(--qe-glass-stroke);
  box-shadow: var(--qe-glass-shine), var(--qe-glass-glow-hover);
}

.qe-news .blog-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

/* Support CTA */
.qe-support {
  text-align: center;
  padding: clamp(28px, 5vw, 40px);
  border-radius: var(--qe-radius);
  background: linear-gradient(165deg, rgba(238, 242, 255, 0.72) 0%, rgba(224, 231, 255, 0.55) 100%);
  backdrop-filter: blur(var(--qe-glass-blur)) saturate(1.35);
  -webkit-backdrop-filter: blur(var(--qe-glass-blur)) saturate(1.35);
  border: 1px solid rgba(199, 210, 254, 0.65);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75), 0 16px 48px rgba(99, 102, 241, 0.12);
}

.qe-support h2 {
  margin: 0 0 16px;
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: #312e81;
}

.qe-support .qe-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.9375rem;
  background: linear-gradient(135deg, #5b52f0 0%, var(--qe-accent) 50%, #4338ca 100%);
  color: #fff !important;
  border: 1px solid rgba(255, 255, 255, 0.28);
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35), 0 10px 32px rgba(79, 70, 229, 0.38);
  transition: transform var(--qe-duration) var(--qe-ease-smooth), box-shadow var(--qe-duration) var(--qe-ease-smooth),
    background var(--qe-duration) var(--qe-ease-smooth);
}

.qe-support .qe-btn:hover {
  background: linear-gradient(135deg, #6366f1 0%, #4f46e5 55%, #3730a3 100%);
  transform: translateY(-3px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45), 0 16px 44px rgba(79, 70, 229, 0.45);
}

/* Social */
.qe-social {
  text-align: center;
  padding: clamp(24px, 4vw, 36px) 16px;
}

.qe-social h2 {
  margin: 0 0 20px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--qe-muted);
}

.qe-social__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.qe-social__links a {
  width: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: var(--qe-glass-fill);
  backdrop-filter: blur(22px) saturate(var(--qe-glass-sat));
  -webkit-backdrop-filter: blur(22px) saturate(var(--qe-glass-sat));
  border: 1px solid var(--qe-glass-stroke-outer);
  color: var(--qe-muted);
  font-size: 1.25rem;
  box-shadow: var(--qe-glass-shine), var(--qe-glass-glow);
  transition: transform var(--qe-duration) var(--qe-ease-smooth), color var(--qe-duration) var(--qe-ease-smooth),
    border-color var(--qe-duration) var(--qe-ease-smooth), box-shadow var(--qe-duration) var(--qe-ease-smooth),
    background var(--qe-duration) var(--qe-ease-smooth);
}

.qe-social__links a:hover {
  transform: translateY(-4px);
  color: var(--qe-accent);
  background: var(--qe-glass-fill-hover);
  border-color: var(--qe-glass-stroke);
  box-shadow: var(--qe-glass-shine), var(--qe-glass-glow-hover);
}

/* Footer */
.qe-footer {
  text-align: center;
  padding: 24px 16px 8px;
  font-size: 0.8125rem;
  color: var(--qe-muted);
}

/* Bottom navigation */
.qe-bottom-nav {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 90;
  display: flex;
  justify-content: space-around;
  align-items: stretch;
  padding: 8px 6px calc(8px + env(safe-area-inset-bottom, 0px));
  background: rgba(255, 255, 255, 0.42);
  backdrop-filter: blur(36px) saturate(1.5);
  -webkit-backdrop-filter: blur(36px) saturate(1.5);
  border-top: 1px solid var(--qe-glass-stroke);
  box-shadow: 0 -1px 0 rgba(255, 255, 255, 0.55) inset, 0 -12px 40px rgba(99, 102, 241, 0.08);
}

.qe-bottom-nav a {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-width: 0;
  padding: 6px 4px;
  border-radius: 12px;
  color: var(--qe-muted);
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  transition: color var(--qe-duration) var(--qe-ease-smooth), background var(--qe-duration) var(--qe-ease-smooth);
}

.qe-bottom-nav a ion-icon {
  font-size: 22px;
  transition: transform var(--qe-duration) var(--qe-ease-smooth);
}

.qe-bottom-nav a:hover,
.qe-bottom-nav a:focus-visible {
  color: var(--qe-accent);
  background: rgba(79, 70, 229, 0.06);
  outline: none;
}

.qe-bottom-nav a:hover ion-icon {
  transform: scale(1.08);
}

.qe-bottom-nav a.active {
  color: var(--qe-accent);
  background: rgba(79, 70, 229, 0.1);
}

/* Sidebar drawer */
#sidebarPanel.modal.fade .qe-drawer-dialog {
  margin: 0;
  position: fixed;
  left: 0;
  top: 0;
  height: 100%;
  max-width: min(20rem, 92vw);
  width: 100%;
  transform: translateX(-100%);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

#sidebarPanel.modal.show .qe-drawer-dialog {
  transform: translateX(0);
}

.qe-drawer-content {
  height: 100vh;
  border-radius: 0;
  border: none;
  border-right: 1px solid var(--qe-glass-stroke-outer);
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(40px) saturate(1.45);
  -webkit-backdrop-filter: blur(40px) saturate(1.45);
  box-shadow: 4px 0 48px rgba(99, 102, 241, 0.08);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.qe-drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 0;
}

.qe-drawer-profile {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 20px 52px 20px 18px;
  background: linear-gradient(135deg, rgba(248, 250, 252, 0.85), rgba(238, 242, 255, 0.75));
  border-bottom: 1px solid var(--qe-glass-stroke-outer);
  position: relative;
  box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 0.5);
}

.qe-drawer-profile img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #fff;
  box-shadow: var(--qe-shadow);
}

.qe-drawer-profile strong {
  font-size: 0.9375rem;
  flex: 1;
}

.qe-drawer-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  border: 1px solid var(--qe-glass-stroke-outer);
  border-radius: 12px;
  background: var(--qe-glass-fill-strong);
  backdrop-filter: blur(16px) saturate(var(--qe-glass-sat));
  -webkit-backdrop-filter: blur(16px) saturate(var(--qe-glass-sat));
  color: var(--qe-text);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--qe-glass-shine), var(--qe-glass-glow);
  transition: background var(--qe-duration) var(--qe-ease-smooth), border-color var(--qe-duration) var(--qe-ease-smooth);
}

.qe-drawer-close:hover {
  background: var(--qe-glass-fill-hover);
  border-color: var(--qe-glass-stroke);
}

.qe-drawer-balance {
  padding: 18px;
  border-bottom: 1px solid var(--qe-glass-stroke-outer);
}

.qe-drawer-balance .qe-label {
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--qe-muted);
  margin-bottom: 6px;
}

.qe-drawer-balance .qe-amount {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}

.qe-drawer-nav {
  padding: 12px 0 24px;
}

.qe-drawer-nav__title {
  padding: 12px 18px 8px;
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--qe-muted-2);
}

.qe-drawer-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.qe-drawer-nav a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 18px;
  color: var(--qe-text);
  font-size: 0.9375rem;
  font-weight: 500;
  transition: background var(--qe-duration) var(--qe-ease-smooth), color var(--qe-duration) var(--qe-ease-smooth);
}

.qe-drawer-nav a:hover {
  background: rgba(255, 255, 255, 0.55);
  color: var(--qe-accent);
}

.qe-drawer-nav .qe-nav-ico {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(238, 242, 255, 0.95), rgba(224, 231, 255, 0.75));
  border: 1px solid rgba(255, 255, 255, 0.55);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
  color: var(--qe-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.qe-drawer-nav .qe-nav-ico ion-icon {
  font-size: 18px;
}

/* Toasts (used by toastbox() in base.js) */
.toast-box {
  position: fixed;
  left: 0;
  top: -100%;
  right: 0;
  width: 100%;
  z-index: 600;
  min-height: 52px;
  margin-top: env(safe-area-inset-top);
  transition: var(--qe-duration) top, var(--qe-duration) bottom, opacity var(--qe-duration) var(--qe-ease-smooth);
  background: rgba(15, 23, 42, 0.78);
  backdrop-filter: blur(28px) saturate(1.35);
  -webkit-backdrop-filter: blur(28px) saturate(1.35);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  font-size: 13px;
  color: rgba(255, 255, 255, 0.94);
  padding: 12px 18px;
  line-height: 1.45;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.toast-box.show {
  top: 0;
}

.toast-box .in {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding-right: 20px;
  width: 100%;
}

.toast-box .in .text {
  width: 100%;
}

.toast-box.toast-bottom {
  top: auto;
  bottom: -100%;
}

.toast-box.toast-bottom.show {
  bottom: calc(var(--qe-bottom-nav) + 8px);
  top: auto;
  margin-bottom: env(safe-area-inset-bottom, 0px);
}

.toast-box.bg-success {
  background: linear-gradient(90deg, #047857, #059669);
}

.toast-box.bg-secondary {
  background: rgba(51, 65, 85, 0.95);
}

.toast-box.bg-danger {
  background: linear-gradient(90deg, #b91c1c, #dc2626);
}

/* Compact copy confirmation (pill snackbar above tab bar) */
.toast-box.toast-snack {
  left: 50%;
  right: auto;
  width: auto;
  min-width: min(200px, calc(100vw - 48px));
  max-width: min(340px, calc(100vw - 32px));
  padding: 11px 22px;
  border-radius: 999px;
  justify-content: center;
  background: rgba(30, 41, 59, 0.58);
  backdrop-filter: blur(28px) saturate(1.45);
  -webkit-backdrop-filter: blur(28px) saturate(1.45);
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18), 0 16px 48px rgba(15, 23, 42, 0.28);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.01em;
  transform: translateX(-50%);
  transition: bottom var(--qe-duration) var(--qe-ease-smooth), opacity var(--qe-duration) var(--qe-ease-smooth);
}

.toast-box.toast-snack .in {
  justify-content: center;
  padding-right: 0;
}

.toast-box.toast-snack .in .text {
  text-align: center;
  width: auto;
}

.toast-box.toast-snack.toast-bottom.show {
  bottom: calc(var(--qe-bottom-nav) + 16px);
}

/* Splide visibility */
.splide__track {
  overflow: hidden;
}

.splide__list {
  margin: 0;
  padding: 0;
  list-style: none;
}

/* ========= Inner app pages (subheader, lists, auth, plans) ========= */
body.qe-app.qe-app--nav {
  padding-bottom: calc(var(--qe-bottom-nav) + env(safe-area-inset-bottom, 0px));
}

.qe-app-main {
  width: 100%;
  max-width: var(--qe-max);
  margin: 0 auto;
  padding: 16px clamp(16px, 4vw, 28px) 32px;
}

.qe-subheader {
  position: sticky;
  top: 0;
  z-index: 100;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 10px;
  min-height: var(--qe-nav-h);
  padding: 0 clamp(12px, 3vw, 20px);
  background: rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(var(--qe-glass-blur)) saturate(var(--qe-glass-sat));
  -webkit-backdrop-filter: blur(var(--qe-glass-blur)) saturate(var(--qe-glass-sat));
  border-bottom: 1px solid var(--qe-glass-stroke);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.48) inset;
}

.qe-subheader__back {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  color: var(--qe-text);
  border-radius: 12px;
  transition: background 0.2s ease, color 0.2s ease;
}

.qe-subheader__back:hover {
  background: rgba(79, 70, 229, 0.08);
  color: var(--qe-accent);
}

.qe-subheader__title {
  margin: 0;
  font-size: 1.0625rem;
  font-weight: 600;
  text-align: center;
  letter-spacing: -0.02em;
}

.qe-subheader__actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.qe-subheader__actions .qe-pill-btn {
  font-size: 0.8125rem;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 12px;
  border: 1px solid var(--qe-glass-stroke-outer);
  background: var(--qe-glass-fill-strong);
  backdrop-filter: blur(18px) saturate(var(--qe-glass-sat));
  -webkit-backdrop-filter: blur(18px) saturate(var(--qe-glass-sat));
  color: var(--qe-accent);
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65);
  transition: background var(--qe-duration) var(--qe-ease-smooth), border-color var(--qe-duration) var(--qe-ease-smooth),
    box-shadow var(--qe-duration) var(--qe-ease-smooth);
}

.qe-subheader__actions .qe-pill-btn:hover {
  background: var(--qe-glass-fill-hover);
  border-color: rgba(99, 102, 241, 0.35);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85), 0 8px 24px rgba(79, 70, 229, 0.12);
}

.transactions.table-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.transactions.table-body .item {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 14px;
  padding: 16px 18px;
  background: var(--qe-glass-fill);
  backdrop-filter: blur(22px) saturate(var(--qe-glass-sat));
  -webkit-backdrop-filter: blur(22px) saturate(var(--qe-glass-sat));
  border: 1px solid var(--qe-glass-stroke-outer);
  border-radius: var(--qe-radius-sm);
  box-shadow: var(--qe-glass-shine), var(--qe-glass-glow);
  color: inherit;
  text-decoration: none;
  transition: transform var(--qe-duration) var(--qe-ease-smooth), box-shadow var(--qe-duration) var(--qe-ease-smooth),
    border-color var(--qe-duration) var(--qe-ease-smooth), background var(--qe-duration) var(--qe-ease-smooth);
}

.transactions.table-body .item:hover {
  transform: translateY(-3px);
  background: var(--qe-glass-fill-hover);
  border-color: rgba(99, 102, 241, 0.35);
  box-shadow: var(--qe-glass-shine), var(--qe-glass-glow-hover);
}

.transactions.table-body .detail strong {
  display: block;
  font-size: 0.9375rem;
  margin-bottom: 4px;
}

.transactions.table-body .detail p {
  margin: 0;
  font-size: 0.8125rem;
  color: var(--qe-muted);
}

.transactions.table-body .right .price {
  font-size: 0.8125rem;
  text-align: right;
}

.qe-table-card {
  background: var(--qe-glass-fill);
  backdrop-filter: blur(var(--qe-glass-blur)) saturate(var(--qe-glass-sat));
  -webkit-backdrop-filter: blur(var(--qe-glass-blur)) saturate(var(--qe-glass-sat));
  border: 1px solid var(--qe-glass-stroke-outer);
  border-radius: var(--qe-radius);
  overflow: hidden;
  box-shadow: var(--qe-glass-shine), var(--qe-glass-glow);
}

.qe-table-card .table {
  margin: 0;
}

.qe-table-card thead th {
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--qe-muted);
  font-weight: 600;
  border-bottom: 1px solid var(--qe-border);
  padding: 14px 16px;
}

.qe-table-card tbody td,
.qe-table-card tbody th {
  padding: 14px 16px;
  font-size: 0.875rem;
  vertical-align: middle;
  border-color: var(--qe-border);
}

.qe-summary-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  background: linear-gradient(135deg, rgba(238, 242, 255, 0.75), rgba(248, 250, 252, 0.65));
  backdrop-filter: blur(22px) saturate(1.3);
  -webkit-backdrop-filter: blur(22px) saturate(1.3);
  border: 1px solid var(--qe-glass-stroke-outer);
  border-radius: var(--qe-radius-sm);
  margin-bottom: 14px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7), 0 8px 28px rgba(99, 102, 241, 0.08);
}

.qe-summary-card strong {
  font-size: 0.875rem;
}

body.qe-auth {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 24px 16px 48px;
}

.qe-auth__logo {
  display: block;
  width: min(260px, 70vw);
  height: auto;
  margin: 20px auto 4px;
  padding: 18px 22px;
  border-radius: var(--qe-radius);
  background: linear-gradient(165deg, rgba(15, 23, 42, 0.08), rgba(79, 70, 229, 0.12));
  border: 1px solid rgba(15, 23, 42, 0.11);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75), 0 12px 36px rgba(99, 102, 241, 0.1);
  filter: drop-shadow(0 1px 2px rgba(15, 23, 42, 0.18));
  box-sizing: border-box;
}

body.dark-mode .qe-auth__logo {
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.08), rgba(99, 102, 241, 0.2));
  border-color: rgba(255, 255, 255, 0.12);
  filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.45));
}

.qe-auth__panel {
  width: 100%;
  max-width: 420px;
  margin-top: 12px;
}

.qe-auth__header {
  text-align: center;
  margin-bottom: 22px;
}

.qe-auth__header h1 {
  margin: 0 0 8px;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.qe-auth__header p {
  margin: 0;
  color: var(--qe-muted);
  font-size: 0.9375rem;
}

.qe-auth .qe-form-card {
  background: var(--qe-glass-fill-strong);
  backdrop-filter: blur(var(--qe-glass-blur)) saturate(var(--qe-glass-sat));
  -webkit-backdrop-filter: blur(var(--qe-glass-blur)) saturate(var(--qe-glass-sat));
  border: 1px solid var(--qe-glass-stroke-outer);
  border-radius: var(--qe-radius);
  padding: 22px;
  box-shadow: var(--qe-glass-shine), var(--qe-glass-glow-hover);
}

.qe-auth .form-links {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin: 18px 0;
  font-size: 0.875rem;
}

.qe-auth .form-button-group .btn-primary,
.qe-auth .btn-primary.btn-block {
  width: 100%;
  padding: 14px;
  border-radius: 12px;
  font-weight: 600;
  border: none;
  background: var(--qe-accent);
  transition: background 0.2s ease, transform 0.2s ease;
}

.qe-auth .form-button-group .btn-primary:hover,
.qe-auth .btn-primary.btn-block:hover {
  background: #4338ca;
}

.qe-auth .form-button-group .btn-primary:active,
.qe-auth .btn-primary.btn-block:active {
  transform: scale(0.99);
}

.form-group.basic .label {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--qe-muted);
  margin-bottom: 6px;
}

.form-group.basic .form-control {
  border-radius: 10px;
  border: 1px solid var(--qe-border);
  padding: 12px 14px;
  font-size: 0.9375rem;
}

.form-group.basic .form-control:focus {
  border-color: var(--qe-accent);
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.15);
}

body.dark-mode .form-group.basic .form-control {
  background: rgba(15, 23, 42, 0.45);
  border-color: var(--qe-border);
  color: var(--qe-text);
}

body.dark-mode .form-group.basic .form-control:focus {
  background: rgba(15, 23, 42, 0.55);
}

.qe-plans {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.qe-plan-tier {
  border-radius: var(--qe-radius);
  padding: 22px;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.28), inset 0 -1px 0 rgba(0, 0, 0, 0.12), 0 20px 56px rgba(15, 23, 42, 0.22);
  position: relative;
  overflow: hidden;
}

.qe-plan-tier::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 100% 80% at 100% 0%, rgba(255, 255, 255, 0.38), transparent 58%),
    linear-gradient(125deg, rgba(255, 255, 255, 0.14) 0%, transparent 45%);
  pointer-events: none;
}

.qe-plan-tier__inner {
  position: relative;
  z-index: 1;
}

.qe-plan-tier--f {
  background: linear-gradient(135deg, #1e3a5f, #3d5a80);
}

.qe-plan-tier--a {
  background: linear-gradient(135deg, #0e7490, #06b6d4);
}

.qe-plan-tier--g {
  background: linear-gradient(135deg, #1e1b4b, #4338ca);
}

.qe-plan-tier--m {
  background: linear-gradient(135deg, #334155, #64748b);
}

.qe-plan-tier--q {
  background: linear-gradient(135deg, #991b1b, #ef4444);
}

.qe-plan-tier__label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.9;
}

.qe-plan-tier__points {
  margin: 8px 0 14px;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.qe-plan-tier__desc {
  font-size: 0.875rem;
  line-height: 1.5;
  opacity: 0.92;
  margin-bottom: 6px;
}

.qe-plan-tier__meta {
  font-size: 0.8125rem;
  opacity: 0.88;
  margin-bottom: 16px;
}

.qe-plan-tier .invest.btn {
  width: 100%;
  border-radius: 12px;
  padding: 12px;
  font-weight: 600;
  border: 1px solid rgba(255, 255, 255, 0.55);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: #1e1b4b;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.95);
  transition: transform var(--qe-duration) var(--qe-ease-smooth), box-shadow var(--qe-duration) var(--qe-ease-smooth);
}

.qe-plan-tier .invest.btn:hover {
  transform: translateY(-3px);
  box-shadow: inset 0 1px 0 #fff, 0 12px 32px rgba(0, 0, 0, 0.22);
  color: #312e81;
}

.qe-settings-avatar {
  display: flex;
  justify-content: center;
  margin: 8px 0 24px;
}

.qe-settings-avatar a {
  position: relative;
  display: inline-block;
}

.qe-settings-avatar img {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--qe-border);
  box-shadow: var(--qe-shadow);
}

.qe-settings-avatar .button {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--qe-accent);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--qe-shadow);
}

.qe-settings-section-title {
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--qe-muted-2);
  margin: 20px 0 10px;
  padding: 0 4px;
}

.qe-settings-list {
  list-style: none;
  margin: 0 0 16px;
  padding: 0;
  background: var(--qe-glass-fill);
  backdrop-filter: blur(22px) saturate(var(--qe-glass-sat));
  -webkit-backdrop-filter: blur(22px) saturate(var(--qe-glass-sat));
  border: 1px solid var(--qe-glass-stroke-outer);
  border-radius: var(--qe-radius-sm);
  overflow: hidden;
  box-shadow: var(--qe-glass-shine), var(--qe-glass-glow);
}

.qe-settings-list a.item,
.qe-settings-list > li > .item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 18px;
  border-bottom: 1px solid var(--qe-border);
  color: var(--qe-text);
  text-decoration: none;
}

.qe-settings-list li:last-child > a.item,
.qe-settings-list li:last-child > .item {
  border-bottom: none;
}

.qe-settings-list a.item:hover {
  background: rgba(255, 255, 255, 0.55);
}

.qe-bank-card {
  background: var(--qe-glass-fill);
  backdrop-filter: blur(22px) saturate(var(--qe-glass-sat));
  -webkit-backdrop-filter: blur(22px) saturate(var(--qe-glass-sat));
  border: 1px solid var(--qe-glass-stroke-outer);
  border-radius: var(--qe-radius-sm);
  padding: 18px;
  margin-bottom: 16px;
  box-shadow: var(--qe-glass-shine), var(--qe-glass-glow);
}

.qe-bank-card__row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  font-size: 0.875rem;
  margin-bottom: 10px;
}

.qe-bank-card__row:last-child {
  margin-bottom: 0;
}

.qe-bank-card__label {
  color: var(--qe-muted);
  flex-shrink: 0;
}

.qe-prose-card {
  background: var(--qe-glass-fill);
  backdrop-filter: blur(var(--qe-glass-blur)) saturate(var(--qe-glass-sat));
  -webkit-backdrop-filter: blur(var(--qe-glass-blur)) saturate(var(--qe-glass-sat));
  border: 1px solid var(--qe-glass-stroke-outer);
  border-radius: var(--qe-radius);
  padding: 24px;
  box-shadow: var(--qe-glass-shine), var(--qe-glass-glow);
}

.qe-section-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--qe-muted);
  margin-bottom: 12px;
}

/* Centered dialogs only — drawer uses .qe-drawer-content */
.modal .modal-content:not(.qe-drawer-content) {
  border-radius: var(--qe-radius);
  border: 1px solid var(--qe-glass-stroke-outer);
  background: var(--qe-glass-fill-strong);
  backdrop-filter: blur(36px) saturate(var(--qe-glass-sat));
  -webkit-backdrop-filter: blur(36px) saturate(var(--qe-glass-sat));
  box-shadow: var(--qe-glass-shine), 0 24px 64px rgba(15, 23, 42, 0.18);
}

.modal-backdrop {
  --bs-backdrop-opacity: 1;
  background-color: rgba(15, 23, 42, 0.34) !important;
  backdrop-filter: blur(24px) saturate(1.35);
  -webkit-backdrop-filter: blur(24px) saturate(1.35);
}

.modal-backdrop.fade {
  transition: opacity var(--qe-duration) linear;
}

body.dark-mode .modal-backdrop {
  background-color: rgba(2, 6, 20, 0.65) !important;
  backdrop-filter: blur(32px) saturate(1.2);
  -webkit-backdrop-filter: blur(32px) saturate(1.2);
}

.offcanvas-backdrop {
  --bs-offcanvas-backdrop-opacity: 1;
  background-color: rgba(15, 23, 42, 0.34) !important;
  backdrop-filter: blur(24px) saturate(1.35);
  -webkit-backdrop-filter: blur(24px) saturate(1.35);
}

body.dark-mode .offcanvas-backdrop {
  background-color: rgba(2, 6, 20, 0.65) !important;
  backdrop-filter: blur(32px) saturate(1.2);
  -webkit-backdrop-filter: blur(32px) saturate(1.2);
}

.modal.fade .modal-dialog {
  transition: transform var(--qe-duration) var(--qe-ease-smooth);
}

.modal .modal-content:not(.qe-drawer-content) .modal-header:not(.border-0) {
  border-bottom-color: rgba(148, 163, 184, 0.28);
}

.modal .modal-content:not(.qe-drawer-content) .modal-footer:not(.border-0) {
  border-top-color: rgba(148, 163, 184, 0.28);
}

body.dark-mode .modal .modal-content:not(.qe-drawer-content) .modal-title {
  color: var(--qe-text);
}

body.dark-mode .modal .modal-content:not(.qe-drawer-content) .modal-body {
  color: var(--qe-muted);
}

body.dark-mode {
  --qe-bg: transparent;
  --qe-surface: rgba(30, 41, 59, 0.58);
  --qe-surface-2: rgba(30, 41, 59, 0.42);
  --qe-border: rgba(148, 163, 184, 0.22);
  --qe-text: #f1f5f9;
  --qe-muted: #94a3b8;
  --qe-muted-2: #64748b;
  --qe-glass-fill: rgba(30, 41, 59, 0.52);
  --qe-glass-fill-strong: rgba(30, 41, 59, 0.72);
  --qe-glass-fill-hover: rgba(51, 65, 85, 0.82);
  --qe-glass-stroke: rgba(255, 255, 255, 0.14);
  --qe-glass-stroke-outer: rgba(255, 255, 255, 0.09);
  --qe-glass-shine: inset 0 1px 0 rgba(255, 255, 255, 0.12), inset 0 -1px 0 rgba(0, 0, 0, 0.45);
  --qe-glass-glow: 0 8px 32px rgba(0, 0, 0, 0.42), inset 0 1px 0 rgba(255, 255, 255, 0.04);
  --qe-glass-glow-hover: 0 16px 48px rgba(99, 102, 241, 0.24), 0 8px 28px rgba(0, 0, 0, 0.48);
  background-color: #0b1020;
  background-image: radial-gradient(ellipse 100% 75% at 0% -5%, rgba(99, 102, 241, 0.38), transparent 52%),
    radial-gradient(ellipse 95% 65% at 100% 0%, rgba(139, 92, 246, 0.22), transparent 50%),
    linear-gradient(168deg, #0f172a 0%, #131c2e 50%, #0f172a 100%);
  background-attachment: fixed;
}

body.dark-mode #loader {
  background: rgba(15, 23, 42, 0.82);
}

body.dark-mode .qe-drawer-content {
  background: rgba(15, 23, 42, 0.62);
  border-right-color: var(--qe-glass-stroke-outer);
  box-shadow: 4px 0 48px rgba(0, 0, 0, 0.35);
}

body.dark-mode .qe-drawer-profile {
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.92), rgba(49, 46, 129, 0.4));
}

body.dark-mode .qe-drawer-nav a:hover {
  background: rgba(255, 255, 255, 0.06);
}

body.dark-mode .qe-support h2 {
  color: #e0e7ff;
}

body.dark-mode .qe-support {
  background: linear-gradient(165deg, rgba(49, 46, 129, 0.45) 0%, rgba(30, 27, 75, 0.4) 100%);
  border-color: rgba(129, 140, 248, 0.28);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 16px 48px rgba(0, 0, 0, 0.38);
}

body.dark-mode .qe-bottom-nav {
  background: rgba(15, 23, 42, 0.48);
  border-top-color: var(--qe-glass-stroke-outer);
  box-shadow: 0 -1px 0 rgba(255, 255, 255, 0.06) inset, 0 -12px 40px rgba(0, 0, 0, 0.38);
}

body.dark-mode .qe-settings-list a.item:hover {
  background: rgba(255, 255, 255, 0.06);
}

/* Admin transaction list (injected <li><a class="item depo">…) */
ul.image-listview.table-body {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

ul.image-listview.table-body > li {
  margin: 0;
}

ul.image-listview.table-body .item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px;
  background: var(--qe-glass-fill);
  backdrop-filter: blur(22px) saturate(var(--qe-glass-sat));
  -webkit-backdrop-filter: blur(22px) saturate(var(--qe-glass-sat));
  border: 1px solid var(--qe-glass-stroke-outer);
  border-radius: var(--qe-radius-sm);
  box-shadow: var(--qe-glass-shine), var(--qe-glass-glow);
  color: inherit;
  text-decoration: none;
  transition: border-color var(--qe-duration) var(--qe-ease-smooth), box-shadow var(--qe-duration) var(--qe-ease-smooth),
    background var(--qe-duration) var(--qe-ease-smooth);
}

ul.image-listview.table-body .item:hover {
  background: var(--qe-glass-fill-hover);
  border-color: rgba(99, 102, 241, 0.35);
  box-shadow: var(--qe-glass-shine), var(--qe-glass-glow-hover);
}

ul.image-listview.table-body .icon-box {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 22px;
  color: #fff;
}

ul.image-listview.table-body .icon-box.bg-warning {
  background: var(--qe-warning);
}

ul.image-listview.table-body .icon-box.bg-success {
  background: var(--qe-success);
}

ul.image-listview.table-body .icon-box.bg-danger {
  background: var(--qe-danger);
}

ul.image-listview.table-body .in {
  flex: 1;
  min-width: 0;
}
