/* ==========================================================================
   LIQUENTRA — Marketing pages, modern fintech (light)
   Scoped to <body class="lq-site">. Coexists with the existing partials.
   Primary accent: #2563EB (matches existing color scheme).
   ========================================================================== */

body.lq-site {
  --lq-bg:        #F2F4F7;
  --lq-bg-2:      #EAECF0;
  --lq-elev-1:    #FFFFFF;
  --lq-elev-2:    #FFFFFF;
  --lq-elev-3:    #F9FAFB;
  --lq-line:      #EAECF0;
  --lq-line-2:    #D0D5DD;
  --lq-line-3:    #98A2B3;

  --lq-text:      #101828;
  --lq-text-2:    #475467;
  --lq-text-3:    #667085;

  --lq-accent:    #2563EB;
  --lq-accent-2:  #1D4ED8;
  --lq-accent-3:  #1E40AF;
  --lq-accent-soft: #EFF4FF;
  --lq-glow:      rgba(37, 99, 235, 0.20);
  --lq-pos:       #027A48;
  --lq-pos-soft:  #ECFDF3;
  --lq-neg:       #B42318;
  --lq-neg-soft:  #FEF3F2;

  --lq-sans:      "Manrope", system-ui, -apple-system, sans-serif;
  --lq-serif:     "Manrope", system-ui, sans-serif;
  --lq-mono:      "Source Code Pro", "JetBrains Mono", "Courier New", monospace;

  --lq-container: 1240px;
  --lq-gutter:    clamp(16px, 4vw, 56px);
  --lq-radius:    16px;
  --lq-radius-sm: 10px;
  --lq-radius-lg: 20px;

  --lq-shadow-sm: 0 1px 3px rgba(16, 24, 40, 0.05), 0 1px 2px rgba(16, 24, 40, 0.04);
  --lq-shadow-md: 0 4px 8px -2px rgba(16, 24, 40, 0.06), 0 12px 24px -6px rgba(16, 24, 40, 0.08);
  --lq-shadow-lg: 0 12px 24px -8px rgba(16, 24, 40, 0.10), 0 24px 48px -12px rgba(37, 99, 235, 0.16);

  background: var(--lq-bg);
  color: var(--lq-text);
  font-family: var(--lq-sans);
  font-size: 16px;
  line-height: 1.55;
  font-feature-settings: "ss01", "ss02";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body.lq-site::selection,
body.lq-site *::selection { background: var(--lq-accent); color: #fff; }

/* Slight breathing room below the sticky navbar */
body.lq-site .lq-stage { padding-top: 16px; }

/* Subtle ambient depth — single accent, restrained */
body.lq-site::before {
  content: "";
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(1000px 600px at 85% -10%, rgba(37,99,235,0.10), transparent 60%),
    radial-gradient(700px 500px at -10% 30%, rgba(37,99,235,0.05), transparent 60%);
}
body.lq-site > * { position: relative; z-index: 1; }

/* Container ---------------------------------------------------------------- */

.lq-container {
  max-width: var(--lq-container);
  margin: 0 auto;
  padding-left: var(--lq-gutter);
  padding-right: var(--lq-gutter);
}

/* Typography utilities ---------------------------------------------------- */

.lq-mono { font-family: var(--lq-mono); font-feature-settings: "tnum","ss01"; letter-spacing: 0.01em; }
.lq-serif { font-family: var(--lq-sans); font-style: normal; font-weight: 700; }

.lq-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--lq-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--lq-accent);
}
.lq-eyebrow .dot {
  width: 6px; height: 6px; background: var(--lq-accent); border-radius: 50%;
  box-shadow: 0 0 0 4px var(--lq-accent-soft);
}
.lq-eyebrow.subtle { color: var(--lq-text-3); }
.lq-eyebrow.subtle .dot { background: var(--lq-text-3); box-shadow: none; }

.lq-h1 {
  font-family: var(--lq-sans);
  font-weight: 600;
  font-size: clamp(34px, 6.4vw, 84px);
  line-height: 1.02;
  letter-spacing: -0.035em;
  color: var(--lq-text);
  margin: 0;
}
.lq-h1 em {
  font-style: normal;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--lq-accent);
}
.lq-h2 {
  font-family: var(--lq-sans);
  font-weight: 600;
  font-size: clamp(26px, 4.4vw, 56px);
  line-height: 1.05;
  letter-spacing: -0.025em;
  color: var(--lq-text);
  margin: 0;
}
.lq-h2 em {
  font-style: normal;
  font-weight: 700;
  color: var(--lq-accent);
}
.lq-h3 {
  font-family: var(--lq-sans);
  font-weight: 600;
  font-size: clamp(20px, 2vw, 28px);
  line-height: 1.15;
  letter-spacing: -0.015em;
  color: var(--lq-text);
  margin: 0;
}
.lq-lede {
  font-size: clamp(15px, 1.2vw, 19px);
  line-height: 1.55;
  color: var(--lq-text-2);
  font-weight: 400;
  margin: 0;
}
.lq-body { color: var(--lq-text-2); font-size: 15.5px; line-height: 1.65; }
.lq-small { color: var(--lq-text-3); font-size: 13px; line-height: 1.55; }

.lq-num {
  font-family: var(--lq-sans);
  font-weight: 500;
  font-feature-settings: "tnum", "lnum";
  font-size: clamp(34px, 4.6vw, 64px);
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--lq-text);
}
.lq-num small { font-family: var(--lq-mono); font-size: 13px; color: var(--lq-accent); margin-left: 6px; vertical-align: middle; }

/* Buttons ----------------------------------------------------------------- */

.lq-btn {
  display: inline-flex; align-items: center; gap: 10px;
  height: 46px; padding: 0 20px;
  font-family: var(--lq-sans); font-size: 14.5px; font-weight: 500; letter-spacing: -0.005em;
  border-radius: 999px;
  text-decoration: none;
  border: 1px solid transparent;
  transition: background .2s, color .2s, border-color .2s, transform .15s, box-shadow .25s;
  cursor: pointer;
  white-space: nowrap;
}
.lq-btn:hover { transform: translateY(-1px); }
.lq-btn .arrow { display: inline-block; transition: transform .2s; }
.lq-btn:hover .arrow { transform: translateX(3px); }

.lq-btn-primary {
  background: var(--lq-accent);
  color: #fff;
  box-shadow: 0 8px 22px -8px var(--lq-glow);
}
.lq-btn-primary:hover { background: var(--lq-accent-2); color: #fff; box-shadow: 0 14px 30px -8px var(--lq-glow); }

.lq-btn-ghost {
  background: #fff;
  color: var(--lq-text);
  border: 1px solid var(--lq-line-2);
}
.lq-btn-ghost:hover { background: #fff; border-color: var(--lq-line-3); color: var(--lq-accent); }

.lq-btn-link {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--lq-text);
  text-decoration: none;
  font-family: var(--lq-sans); font-size: 14px; font-weight: 500;
  border-bottom: 1px solid var(--lq-line-2);
  padding-bottom: 2px;
  transition: color .2s, border-color .2s;
}
.lq-btn-link:hover { color: var(--lq-accent); border-color: var(--lq-accent); }

/* Tape ticker (live rail) ------------------------------------------------- */

.lq-tape {
  border-top: 1px solid var(--lq-line);
  border-bottom: 1px solid var(--lq-line);
  background: var(--lq-bg-2);
  overflow: hidden;
  position: relative;
}
.lq-tape::before, .lq-tape::after {
  content: ""; position: absolute; top: 0; bottom: 0; width: 80px; z-index: 2; pointer-events: none;
}
.lq-tape::before { left: 0; background: linear-gradient(to right, var(--lq-bg-2), transparent); }
.lq-tape::after  { right: 0; background: linear-gradient(to left, var(--lq-bg-2), transparent); }
.lq-tape-track {
  display: inline-flex; gap: 36px; padding: 12px 0; white-space: nowrap;
  animation: lq-scroll 60s linear infinite;
}
.lq-tape-item {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--lq-mono); font-size: 12.5px; color: var(--lq-text-2);
}
.lq-tape-item .sym { color: var(--lq-text); font-weight: 600; }
.lq-tape-item .up   { color: var(--lq-pos); }
.lq-tape-item .dn   { color: var(--lq-neg); }
.lq-tape-item .dot  { width: 4px; height: 4px; background: var(--lq-text-3); border-radius: 50%; opacity: 0.7; }
@keyframes lq-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* Hero -------------------------------------------------------------------- */

.lq-hero-wrap {
  background: url('https://images.unsplash.com/photo-1460925895917-afdab827c52f?auto=format&fit=crop&w=1600&q=80') no-repeat center center;
  background-size: cover;
  position: relative;
}
.lq-hero-wrap::before {
  content: "";
  position: absolute; inset: 0;
  /* Very light wash to ensure text readability while maintaining the trading theme */
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.85) 0%, var(--lq-bg) 95%);
}
.lq-hero-wrap > * {
  position: relative; z-index: 1;
}
.lq-hero {
  padding: clamp(48px, 6vw, 110px) 0 clamp(56px, 5vw, 100px);
  display: grid;
  grid-template-columns: 7fr 5fr;
  gap: clamp(24px, 4vw, 64px);
  align-items: center;
}
.lq-hero .lede h1 { margin: 18px 0 22px; }
.lq-hero .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; align-items: center; }
.lq-hero .trust {
  display: flex; gap: 14px; align-items: center; margin-top: 26px; flex-wrap: wrap;
  color: var(--lq-text-3); font-size: 13px;
}
.lq-hero .trust .star { color: var(--lq-accent); }
.lq-hero .trust strong { color: var(--lq-text); font-weight: 600; }
.lq-hero-card { max-width: 480px; justify-self: end; width: 100%; }
@media (max-width: 980px) {
  .lq-hero { grid-template-columns: 1fr; }
  .lq-hero-card { justify-self: stretch; max-width: 100%; }
}

/* Hero "trade card" mock --------------------------------------------------- */

.lq-trade-card {
  background:
    radial-gradient(120% 80% at 80% 0%, rgba(37,99,235,0.08), transparent 55%),
    var(--lq-elev-1);
  border: 1px solid var(--lq-line);
  border-radius: var(--lq-radius-lg);
  padding: 24px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 12px 28px -10px rgba(16, 24, 40, 0.10), 0 32px 56px -24px rgba(37, 99, 235, 0.18);
}
.lq-trade-card::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(255,255,255,0.4), transparent 30%);
}
.lq-trade-card > * { position: relative; }
.lq-tc-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; gap: 12px; }
.lq-tc-pair { display: inline-flex; align-items: center; gap: 10px; font-weight: 500; }
.lq-tc-pair .ico {
  width: 32px; height: 32px; border-radius: 50%;
  background: linear-gradient(135deg, #f7931a, #ffd089);
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--lq-mono); font-weight: 600; font-size: 14px; color: #1a1206;
  flex-shrink: 0;
}
.lq-tc-pair .name { color: var(--lq-text); font-size: 15px; font-weight: 600; }
.lq-tc-pair .meta { color: var(--lq-text-3); font-family: var(--lq-mono); font-size: 11px; letter-spacing: 0.06em; }
.lq-tc-status { display: inline-flex; align-items: center; gap: 8px; color: var(--lq-text-3); font-family: var(--lq-mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; }
.lq-tc-status .pulse {
  width: 7px; height: 7px; border-radius: 50%; background: var(--lq-pos);
  box-shadow: 0 0 0 0 var(--lq-pos);
  animation: lq-pulse 1.6s ease-out infinite;
}
@keyframes lq-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(5,150,105,0.5); }
  70%  { box-shadow: 0 0 0 10px rgba(5,150,105,0); }
  100% { box-shadow: 0 0 0 0 rgba(5,150,105,0); }
}
.lq-tc-price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 12px; margin: 12px 0 4px; }
.lq-tc-price .px {
  font-family: var(--lq-sans);
  font-weight: 500;
  font-feature-settings: "tnum","lnum";
  font-size: clamp(28px, 3.6vw, 44px);
  letter-spacing: -0.03em;
  color: var(--lq-text);
}
.lq-tc-price .delta {
  font-family: var(--lq-mono);
  font-size: 13px;
  color: var(--lq-pos);
  background: var(--lq-pos-soft);
  padding: 4px 10px;
  border-radius: 6px;
}
.lq-tc-price .delta.dn { color: var(--lq-neg); background: var(--lq-neg-soft); }

.lq-tc-chart {
  height: 130px; margin: 14px -22px 4px; padding: 0 22px;
  position: relative;
}
.lq-tc-chart svg { width: 100%; height: 100%; display: block; }

.lq-tc-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--lq-line);
}
.lq-tc-grid .cell .k { color: var(--lq-text-3); font-family: var(--lq-mono); font-size: 10.5px; letter-spacing: 0.1em; text-transform: uppercase; }
.lq-tc-grid .cell .v { color: var(--lq-text); font-size: 15px; margin-top: 4px; font-family: var(--lq-sans); font-weight: 600; }
.lq-tc-grid .cell .v.up { color: var(--lq-pos); }
.lq-tc-grid .cell .v.dn { color: var(--lq-neg); }

.lq-tc-actions {
  display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 18px;
}
.lq-tc-actions .buy, .lq-tc-actions .sell {
  height: 42px; border: 0; border-radius: 10px;
  font-family: var(--lq-sans); font-weight: 600; font-size: 13.5px;
  cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  text-decoration: none;
  transition: background .2s, transform .15s, box-shadow .2s, border-color .2s, color .2s;
}
.lq-tc-actions .buy  { background: var(--lq-accent); color: #fff; box-shadow: 0 4px 12px -4px var(--lq-glow); }
.lq-tc-actions .buy:hover { background: var(--lq-accent-2); transform: translateY(-1px); color: #fff; }
.lq-tc-actions .sell { background: #fff; color: var(--lq-text); border: 1px solid var(--lq-line-2); }
.lq-tc-actions .sell:hover { border-color: var(--lq-accent); color: var(--lq-accent); transform: translateY(-1px); }

/* Logo strip -------------------------------------------------------------- */

.lq-logos {
  border-top: 1px solid var(--lq-line);
  border-bottom: 1px solid var(--lq-line);
  padding: 28px 0;
  background: #fff;
  overflow-x: auto;
  overflow-y: hidden;
  position: relative;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  cursor: grab;
  mask-image: linear-gradient(to right, transparent 0, #000 90px, #000 calc(100% - 90px), transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 90px, #000 calc(100% - 90px), transparent 100%);
}
.lq-logos::-webkit-scrollbar { display: none; }
.lq-logos.dragging { cursor: grabbing; }
.lq-logos-row {
  display: inline-flex; align-items: center; gap: 64px; white-space: nowrap;
  padding: 0 var(--lq-gutter);
}
.lq-logos-row img {
  height: 34px; width: auto; opacity: 0.85;
  transition: opacity .2s, transform .2s;
  user-select: none;
  -webkit-user-drag: none;
  pointer-events: none;
}
.lq-logos-row img:hover { opacity: 1; transform: scale(1.05); }

/* Section heading --------------------------------------------------------- */

.lq-sec { padding: clamp(40px, 7vw, 110px) 0; }
.lq-sec-head {
  display: grid; grid-template-columns: 1fr auto;
  align-items: end; gap: 20px;
  margin-bottom: clamp(24px, 4vw, 56px);
}
.lq-sec-head .lq-eyebrow { margin-bottom: 14px; }
@media (max-width: 640px) {
  .lq-sec-head { grid-template-columns: 1fr; }
}

/* Bento product grid ------------------------------------------------------ */

.lq-bento {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-auto-rows: minmax(220px, auto);
  gap: 16px;
}
.lq-bento .card {
  position: relative;
  background: var(--lq-elev-1);
  border: 1px solid var(--lq-line);
  border-radius: var(--lq-radius);
  padding: 26px;
  display: flex; flex-direction: column; gap: 12px;
  overflow: hidden;
  text-decoration: none; color: inherit;
  transition: border-color .25s, transform .25s, box-shadow .25s;
  box-shadow: var(--lq-shadow-sm);
}
.lq-bento .card:hover {
  border-color: var(--lq-line-3);
  transform: translateY(-2px);
  box-shadow: var(--lq-shadow-md);
}
.lq-bento .card .badge {
  display: inline-flex; gap: 8px; align-items: center;
  font-family: var(--lq-mono); font-size: 10.5px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--lq-accent);
  background: var(--lq-accent-soft);
  border: 1px solid rgba(37,99,235,0.18);
  padding: 5px 10px 5px 8px;
  border-radius: 999px;
  font-weight: 700;
  align-self: flex-start;
}
.lq-bento .card .badge::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--lq-accent);
}
.lq-bento .card h3 { font-family: var(--lq-sans); font-weight: 600; font-size: clamp(18px, 1.8vw, 22px); line-height: 1.2; letter-spacing: -0.015em; color: var(--lq-text); margin: 0; }
.lq-bento .card h3 em { font-style: normal; color: var(--lq-accent); font-weight: 700; }
.lq-bento .card p { color: var(--lq-text-2); font-size: 14.5px; line-height: 1.55; margin: 0; }
.lq-bento .card .more {
  margin-top: auto; align-self: flex-start;
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--lq-sans); font-size: 13px; color: var(--lq-text); font-weight: 500;
  border-bottom: 1px solid var(--lq-line-2); padding-bottom: 2px; transition: color .2s, border-color .2s;
}
.lq-bento .card:hover .more { color: var(--lq-accent); border-color: var(--lq-accent); }

/* Bento span sizes (asymmetric) */
.lq-bento .span-3 { grid-column: span 3; }
.lq-bento .span-2 { grid-column: span 2; }
.lq-bento .span-4 { grid-column: span 4; }
.lq-bento .span-6 { grid-column: span 6; }
.lq-bento .row-2  { grid-row: span 2; }

@media (max-width: 1080px) {
  .lq-bento .span-2, .lq-bento .span-3, .lq-bento .span-4 { grid-column: span 3; }
  .lq-bento .span-6 { grid-column: span 6; }
}
@media (max-width: 640px) {
  .lq-bento { grid-template-columns: 1fr; gap: 14px; }
  .lq-bento .span-2, .lq-bento .span-3, .lq-bento .span-4, .lq-bento .span-6 { grid-column: span 1; }
  .lq-bento .row-2 { grid-row: auto; }
  .lq-bento .card { padding: 22px; }
}

/* Mini visuals inside bento cards ----------------------------------------- */

.lq-mini-chart {
  margin: -2px -10px 0; height: 64px;
}
.lq-mini-chart svg { width: 100%; height: 100%; display: block; }

.lq-mini-leaderboard {
  display: flex; flex-direction: column; gap: 8px;
  font-family: var(--lq-mono); font-size: 12px; color: var(--lq-text-2);
}
.lq-mini-leaderboard .row {
  display: grid; grid-template-columns: 1fr auto;
  padding: 8px 10px;
  background: var(--lq-bg-2);
  border: 1px solid var(--lq-line);
  border-radius: 8px;
}
.lq-mini-leaderboard .row .pl { color: var(--lq-pos); font-weight: 600; }
.lq-mini-leaderboard .row .pl.dn { color: var(--lq-neg); }

.lq-mini-swap {
  display: flex; flex-direction: column; gap: 8px; font-family: var(--lq-mono);
}
.lq-mini-swap .row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 12px; background: var(--lq-bg-2); border: 1px solid var(--lq-line); border-radius: 10px;
}
.lq-mini-swap .row .v { color: var(--lq-text); font-size: 16px; font-family: var(--lq-sans); font-weight: 600; }
.lq-mini-swap .row .a { color: var(--lq-text-3); font-size: 11.5px; letter-spacing: 0.06em; text-transform: uppercase; }
.lq-mini-swap .arrow {
  align-self: center;
  width: 28px; height: 28px; border-radius: 50%;
  background: #fff; border: 1px solid var(--lq-line-2);
  display: inline-flex; align-items: center; justify-content: center; color: var(--lq-accent);
  margin: -16px auto;
  position: relative; z-index: 1;
}

.lq-mini-stake {
  display: grid; grid-template-columns: repeat(3,1fr); gap: 8px;
}
.lq-mini-stake .pill {
  background: var(--lq-bg-2);
  border: 1px solid var(--lq-line);
  border-radius: 10px;
  padding: 10px;
  text-align: center;
}
.lq-mini-stake .pill .a { color: var(--lq-accent); font-family: var(--lq-mono); font-size: 11.5px; letter-spacing: 0.06em; font-weight: 600; }
.lq-mini-stake .pill .v { color: var(--lq-text); font-size: 16px; font-weight: 600; margin-top: 4px; }
.lq-mini-stake .pill .k { color: var(--lq-text-3); font-size: 10.5px; font-family: var(--lq-mono); letter-spacing: 0.06em; text-transform: uppercase; margin-top: 2px; }

/* Affiliate card layout (fixed) ------------------------------------------ */

.lq-bento .card-affiliate {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(24px, 3vw, 48px);
  align-items: center;
  padding: clamp(28px, 3vw, 44px);
  background:
    radial-gradient(80% 100% at 100% 0%, rgba(37,99,235,0.06), transparent 60%),
    var(--lq-elev-1);
}
.lq-bento .card-affiliate .col-text { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.lq-bento .card-affiliate .col-vis  { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
@media (max-width: 880px) {
  .lq-bento .card-affiliate { grid-template-columns: 1fr; gap: 22px; padding: 26px; }
}

.lq-affiliate-link {
  font-family: var(--lq-mono); font-size: 13px; color: var(--lq-text-2);
  background: var(--lq-accent-soft);
  border: 1px dashed rgba(37, 99, 235, 0.35);
  border-radius: 12px;
  padding: 14px 16px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  flex-wrap: nowrap;
  min-width: 0;
}
.lq-affiliate-link .url { color: var(--lq-accent); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; flex: 1; }
.lq-affiliate-link .copy {
  font-family: var(--lq-mono); font-size: 10.5px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--lq-text); background: #fff; border: 1px solid var(--lq-line-2);
  padding: 6px 12px; border-radius: 6px;
  flex-shrink: 0;
}
.lq-tier-row {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px;
}
.lq-tier {
  background: var(--lq-bg-2);
  border: 1px solid var(--lq-line);
  border-radius: 12px;
  padding: 14px 10px;
  text-align: center;
  min-width: 0;
}
.lq-tier .tk { color: var(--lq-accent); font-family: var(--lq-mono); font-size: 11px; letter-spacing: 0.06em; font-weight: 600; }
.lq-tier .tv { color: var(--lq-text); font-size: 18px; font-weight: 700; margin-top: 6px; letter-spacing: -0.01em; }
.lq-tier .tu { color: var(--lq-text-3); font-size: 10.5px; font-family: var(--lq-mono); letter-spacing: 0.06em; text-transform: uppercase; margin-top: 3px; }
@media (max-width: 420px) {
  .lq-tier-row { grid-template-columns: 1fr; }
}

/* Stat row ---------------------------------------------------------------- */

.lq-stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px;
}
.lq-stat {
  background:
    linear-gradient(180deg, rgba(255,255,255,0.6), transparent 40%),
    var(--lq-elev-1);
  border: 1px solid var(--lq-line);
  border-radius: var(--lq-radius);
  padding: 24px;
  box-shadow: var(--lq-shadow-sm);
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.lq-stat:hover { transform: translateY(-2px); border-color: var(--lq-line-2); box-shadow: var(--lq-shadow-md); }
.lq-stat .k { color: var(--lq-text-3); font-family: var(--lq-mono); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; }
.lq-stat .v { margin-top: 12px; }
.lq-stat .v .accent { color: var(--lq-accent); font-family: var(--lq-mono); font-size: 14px; vertical-align: middle; margin-left: 4px; }
@media (max-width: 760px) { .lq-stats { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 420px) { .lq-stats { grid-template-columns: 1fr; } }

/* Feature deep-dives ------------------------------------------------------ */

.lq-feature {
  display: grid; grid-template-columns: 5fr 6fr; gap: clamp(24px, 5vw, 80px);
  align-items: center;
  padding: clamp(36px, 6vw, 96px) 0;
}
.lq-feature.flip { grid-template-columns: 6fr 5fr; }
.lq-feature.flip .lq-feature-text { order: 2; }
.lq-feature.flip .lq-feature-visual { order: 1; }
.lq-feature ul.lq-checks { list-style: none; padding: 0; margin: 22px 0 28px; display: flex; flex-direction: column; gap: 10px; }
.lq-feature ul.lq-checks li {
  display: grid; grid-template-columns: 22px 1fr; gap: 12px; align-items: start;
  color: var(--lq-text-2); font-size: 15px;
}
.lq-feature ul.lq-checks li::before {
  content: "→"; color: var(--lq-accent); font-family: var(--lq-mono); font-size: 13px; line-height: 1.5;
}
.lq-feature .lq-feature-visual {
  background:
    radial-gradient(120% 80% at 80% 0%, rgba(37,99,235,0.05), transparent 50%),
    var(--lq-elev-1);
  border: 1px solid var(--lq-line-2);
  border-radius: var(--lq-radius-lg);
  padding: 24px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--lq-shadow-md);
}
@media (max-width: 900px) {
  .lq-feature, .lq-feature.flip { grid-template-columns: 1fr; padding: clamp(28px, 5vw, 56px) 0; }
  .lq-feature.flip .lq-feature-text { order: initial; }
  .lq-feature.flip .lq-feature-visual { order: initial; }
}

/* Visual: Bots roster table */
.lq-visual-bots {
  display: flex; flex-direction: column; gap: 8px;
  font-family: var(--lq-mono); font-size: 12.5px; color: var(--lq-text-2);
}
.lq-visual-bots .header {
  display: grid; grid-template-columns: 1.4fr 0.8fr 0.8fr 0.8fr;
  font-size: 10.5px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--lq-text-3);
  padding: 8px 12px;
  border-bottom: 1px solid var(--lq-line);
}
.lq-visual-bots .row {
  display: grid; grid-template-columns: 1.4fr 0.8fr 0.8fr 0.8fr;
  align-items: center;
  padding: 12px;
  background: var(--lq-bg-2);
  border: 1px solid var(--lq-line);
  border-radius: 10px;
}
.lq-visual-bots .nm { color: var(--lq-text); font-weight: 600; }
.lq-visual-bots .pill {
  display: inline-block; padding: 3px 8px; border-radius: 999px; font-size: 10.5px; letter-spacing: 0.06em; text-transform: uppercase; font-weight: 600;
  border: 1px solid var(--lq-line-2);
}
.lq-visual-bots .pill.cons { background: var(--lq-pos-soft); color: var(--lq-pos); border-color: rgba(5,150,105,0.25); }
.lq-visual-bots .pill.mod  { background: var(--lq-accent-soft); color: var(--lq-accent); border-color: rgba(37,99,235,0.25); }
.lq-visual-bots .pill.agg  { background: var(--lq-neg-soft); color: var(--lq-neg); border-color: rgba(220,38,38,0.25); }
.lq-visual-bots .pos { color: var(--lq-pos); font-weight: 600; }
.lq-visual-bots .neg { color: var(--lq-neg); font-weight: 600; }
@media (max-width: 540px) {
  .lq-visual-bots .header,
  .lq-visual-bots .row {
    grid-template-columns: 1fr auto auto;
    gap: 8px;
  }
  .lq-visual-bots .header > :nth-child(4),
  .lq-visual-bots .row    > :nth-child(4) { display: none; }
}

/* Visual: copy desks profile cards */
.lq-visual-copy { display: flex; flex-direction: column; gap: 12px; }
.lq-visual-copy .desk {
  display: grid; grid-template-columns: 44px 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 14px;
  background: var(--lq-bg-2);
  border: 1px solid var(--lq-line);
  border-radius: 12px;
}
.lq-visual-copy .desk .av {
  width: 44px; height: 44px; border-radius: 50%;
  background: linear-gradient(135deg, var(--lq-accent), #60a5fa);
  color: #fff; display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--lq-sans); font-style: normal; font-weight: 700; font-size: 22px; font-weight: 500;
}
.lq-visual-copy .desk.b .av { background: linear-gradient(135deg, #059669, #34d399); color: #fff; }
.lq-visual-copy .desk.c .av { background: linear-gradient(135deg, #7c3aed, #c084fc); color: #fff; }
.lq-visual-copy .desk .nm { color: var(--lq-text); font-weight: 600; font-size: 15px; }
.lq-visual-copy .desk .meta { color: var(--lq-text-3); font-family: var(--lq-mono); font-size: 11px; letter-spacing: 0.06em; }
.lq-visual-copy .desk .pl { font-family: var(--lq-mono); font-size: 14px; color: var(--lq-pos); font-weight: 600; }
.lq-visual-copy .desk .pl small { color: var(--lq-text-3); font-size: 10.5px; letter-spacing: 0.1em; text-transform: uppercase; display: block; margin-top: 2px; font-weight: 400; }

/* Visual: swap card */
.lq-visual-swap { display: flex; flex-direction: column; gap: 14px; }
.lq-visual-swap .field {
  background: var(--lq-bg-2);
  border: 1px solid var(--lq-line);
  border-radius: 12px;
  padding: 14px;
}
.lq-visual-swap .field .row { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.lq-visual-swap .field .label { color: var(--lq-text-3); font-family: var(--lq-mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; }
.lq-visual-swap .field .balance { color: var(--lq-text-3); font-family: var(--lq-mono); font-size: 11px; }
.lq-visual-swap .field .amount { font-size: clamp(22px, 2.4vw, 28px); font-family: var(--lq-sans); font-weight: 500; letter-spacing: -0.03em; color: var(--lq-text); }
.lq-visual-swap .field .ticker { display: inline-flex; align-items: center; gap: 8px; padding: 6px 10px; background: #fff; border: 1px solid var(--lq-line-2); border-radius: 999px; font-family: var(--lq-mono); font-size: 13px; color: var(--lq-text); font-weight: 500; }
.lq-visual-swap .field .ticker .ico { width: 18px; height: 18px; border-radius: 50%; background: linear-gradient(135deg, #f7931a, #ffd089); }
.lq-visual-swap .field .ticker.tether .ico { background: linear-gradient(135deg, #26a17b, #6ddbb1); }
.lq-visual-swap .switch {
  align-self: center; margin: -22px 0;
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--lq-accent); color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  position: relative; z-index: 2; box-shadow: 0 8px 22px -8px var(--lq-glow);
}
.lq-visual-swap .quote {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px;
  font-family: var(--lq-mono); font-size: 12px; color: var(--lq-text-3);
  padding: 6px 4px;
}
.lq-visual-swap .quote .v { color: var(--lq-text); font-weight: 600; }

/* Pricing ----------------------------------------------------------------- */

.lq-pricing {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px;
}
.lq-plan {
  position: relative;
  background: var(--lq-elev-1);
  border: 1px solid var(--lq-line);
  border-radius: var(--lq-radius);
  padding: 26px;
  display: flex; flex-direction: column; gap: 14px;
  transition: border-color .2s, transform .2s, box-shadow .25s;
  box-shadow: var(--lq-shadow-sm);
}
.lq-plan:hover { border-color: var(--lq-line-3); transform: translateY(-2px); box-shadow: var(--lq-shadow-md); }
.lq-plan.featured {
  background:
    radial-gradient(120% 80% at 80% -10%, rgba(37,99,235,0.10), transparent 60%),
    var(--lq-elev-1);
  border-color: var(--lq-accent);
  box-shadow: var(--lq-shadow-lg);
}
.lq-plan .flag {
  position: absolute; top: -1px; right: 18px;
  background: var(--lq-accent); color: #fff;
  font-family: var(--lq-mono); font-size: 10.5px; letter-spacing: 0.16em; text-transform: uppercase;
  padding: 5px 10px; border-radius: 0 0 8px 8px; font-weight: 600;
}
.lq-plan .name { font-family: var(--lq-sans); font-weight: 600; font-size: 19px; color: var(--lq-text); }
.lq-plan .price {
  font-family: var(--lq-sans);
  font-weight: 600;
  font-size: clamp(32px, 3.6vw, 48px);
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--lq-text);
  font-feature-settings: "tnum","lnum";
}
.lq-plan .price small { color: var(--lq-text-3); font-family: var(--lq-mono); font-size: 12px; letter-spacing: 0.06em; margin-left: 6px; font-weight: 400; }
.lq-plan ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.lq-plan ul li {
  display: grid; grid-template-columns: 16px 1fr; gap: 10px; align-items: start;
  color: var(--lq-text-2); font-size: 14px;
}
.lq-plan ul li::before {
  content: "✓"; color: var(--lq-accent); font-family: var(--lq-mono); font-size: 12px; line-height: 1.5; font-weight: 700;
}
.lq-plan .lq-btn { width: 100%; justify-content: center; margin-top: auto; }

@media (max-width: 980px) {
  .lq-pricing { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .lq-pricing { grid-template-columns: 1fr; }
}

/* Testimonials ------------------------------------------------------------ */

.lq-quotes {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px;
}
.lq-quote {
  background: var(--lq-elev-1);
  border: 1px solid var(--lq-line);
  border-radius: var(--lq-radius);
  padding: 26px;
  display: flex; flex-direction: column; gap: 18px;
  box-shadow: var(--lq-shadow-sm);
}
.lq-quote .body {
  font-family: var(--lq-sans); font-size: 16px; line-height: 1.5; color: var(--lq-text);
  font-weight: 400;
}
.lq-quote .body em { font-style: normal; color: var(--lq-accent); font-weight: 700; }
.lq-quote .who { display: flex; align-items: center; gap: 12px; margin-top: auto; padding-top: 16px; border-top: 1px solid var(--lq-line); }
.lq-quote .av {
  width: 36px; height: 36px; border-radius: 50%;
  background: linear-gradient(135deg, var(--lq-accent), #60a5fa);
  color: #fff; display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--lq-sans); font-style: normal; font-weight: 700; font-size: 17px;
}
.lq-quote .who.b .av { background: linear-gradient(135deg, #059669, #34d399); }
.lq-quote .who.c .av { background: linear-gradient(135deg, #7c3aed, #c084fc); }
.lq-quote .who .nm { color: var(--lq-text); font-size: 14px; font-weight: 600; }
.lq-quote .who .meta { color: var(--lq-text-3); font-family: var(--lq-mono); font-size: 11px; }
@media (max-width: 880px) { .lq-quotes { grid-template-columns: 1fr; } }

/* CTA finale -------------------------------------------------------------- */

.lq-finale {
  background:
    linear-gradient(135deg, var(--lq-accent) 0%, var(--lq-accent-2) 100%);
  border: 1px solid var(--lq-accent-2);
  border-radius: var(--lq-radius-lg);
  padding: clamp(36px, 6vw, 96px) clamp(24px, 5vw, 72px);
  margin-bottom: clamp(40px, 7vw, 96px);
  display: grid;
  grid-template-columns: 8fr 4fr;
  gap: clamp(20px, 4vw, 56px);
  align-items: end;
  position: relative;
  overflow: hidden;
  box-shadow: 0 20px 50px -20px rgba(37, 99, 235, 0.45);
  color: #fff;
}
.lq-finale::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(600px 400px at 100% 0%, rgba(255,255,255,0.18), transparent 60%),
    radial-gradient(500px 400px at 0% 100%, rgba(255,255,255,0.10), transparent 60%);
}
.lq-finale > * { position: relative; z-index: 1; }
.lq-finale .lq-h2 { color: #fff; }
.lq-finale .lq-h2 em { color: #fff; opacity: 0.85; font-weight: 800; }
.lq-finale .lq-eyebrow { color: rgba(255,255,255,0.85); }
.lq-finale .lq-eyebrow .dot { background: #fff; box-shadow: 0 0 0 4px rgba(255,255,255,0.18); }
.lq-finale .lq-body { color: rgba(255,255,255,0.85); }
.lq-finale .lq-btn-primary { background: #fff; color: var(--lq-accent); box-shadow: 0 8px 22px -8px rgba(0,0,0,0.25); }
.lq-finale .lq-btn-primary:hover { background: #f8fafc; color: var(--lq-accent-2); }
.lq-finale .lq-btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,0.4); }
.lq-finale .lq-btn-ghost:hover { background: rgba(255,255,255,0.10); color: #fff; border-color: rgba(255,255,255,0.7); }
.lq-finale h2 { margin: 0; }
.lq-finale .lq-eyebrow { margin-bottom: 16px; }
.lq-finale .actions { display: flex; flex-wrap: wrap; gap: 12px; }
@media (max-width: 800px) { .lq-finale { grid-template-columns: 1fr; padding: 32px 22px; } }

/* FAQ --------------------------------------------------------------------- */

.lq-faq { display: flex; flex-direction: column; gap: 10px; }
.lq-faq details {
  background: var(--lq-elev-1);
  border: 1px solid var(--lq-line);
  border-radius: var(--lq-radius);
  padding: 18px 22px;
  transition: border-color .2s, box-shadow .2s;
  box-shadow: var(--lq-shadow-sm);
}
.lq-faq details[open] { border-color: var(--lq-line-3); box-shadow: var(--lq-shadow-md); }
.lq-faq summary {
  display: grid; grid-template-columns: auto 1fr auto; gap: 18px;
  align-items: center; cursor: pointer; list-style: none;
}
.lq-faq summary::-webkit-details-marker { display: none; }
.lq-faq .num {
  font-family: var(--lq-mono); font-size: 11px; letter-spacing: 0.16em; color: var(--lq-text-3);
}
.lq-faq .q {
  font-family: var(--lq-sans); font-size: clamp(15px, 1.3vw, 19px); font-weight: 600;
  color: var(--lq-text); letter-spacing: -0.01em; line-height: 1.4;
}
.lq-faq .toggle {
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--lq-bg-2); border: 1px solid var(--lq-line-2); color: var(--lq-text);
  display: inline-flex; align-items: center; justify-content: center; font-family: var(--lq-mono);
  transition: transform .25s, background .2s, color .2s;
}
.lq-faq details[open] .toggle { background: var(--lq-accent); color: #fff; border-color: var(--lq-accent); transform: rotate(45deg); }
.lq-faq .a {
  display: grid; grid-template-columns: 30px 1fr 28px; gap: 18px;
  margin-top: 14px;
  color: var(--lq-text-2); font-size: 15px; line-height: 1.65;
}
.lq-faq .a a { color: var(--lq-accent); text-decoration: none; border-bottom: 1px solid rgba(37,99,235,0.4); }
.lq-faq .a a:hover { color: var(--lq-accent-2); }
@media (max-width: 540px) {
  .lq-faq summary { grid-template-columns: 1fr auto; gap: 12px; }
  .lq-faq .num { display: none; }
  .lq-faq .a { grid-template-columns: 1fr; gap: 0; }
}

/* Spec list (about) ------------------------------------------------------- */

.lq-spec { display: flex; flex-direction: column; border-top: 1px solid var(--lq-line); }
.lq-spec .item {
  display: grid; grid-template-columns: 80px 1fr 2fr;
  gap: 28px;
  padding: 26px 0;
  border-bottom: 1px solid var(--lq-line);
  align-items: baseline;
}
.lq-spec .item .num { color: var(--lq-accent); font-family: var(--lq-mono); font-size: 12px; letter-spacing: 0.16em; font-weight: 600; }
.lq-spec .item .ttl { font-family: var(--lq-sans); font-weight: 600; font-size: clamp(18px, 1.8vw, 26px); letter-spacing: -0.015em; color: var(--lq-text); }
.lq-spec .item .ttl em { font-style: normal; color: var(--lq-accent); font-weight: 700; }
.lq-spec .item .body { color: var(--lq-text-2); font-size: 15px; line-height: 1.6; }
@media (max-width: 800px) {
  .lq-spec .item { grid-template-columns: 1fr; gap: 8px; padding: 20px 0; }
}

/* Split row utility — eyebrow column + body column ----------------------- */

.lq-split {
  display: grid;
  grid-template-columns: 4fr 8fr;
  gap: clamp(28px, 5vw, 80px);
  align-items: start;
}
@media (max-width: 800px) {
  .lq-split { grid-template-columns: 1fr; gap: 16px; }
}

/* Steps row (plans) ------------------------------------------------------- */

.lq-steps {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}
.lq-step {
  background: var(--lq-elev-1);
  border: 1px solid var(--lq-line);
  border-radius: var(--lq-radius);
  padding: 22px;
  display: flex; flex-direction: column; gap: 10px;
  box-shadow: var(--lq-shadow-sm);
  min-width: 0;
}
.lq-step .num {
  font-family: var(--lq-sans); font-style: normal; font-weight: 700;
  font-size: 56px; color: var(--lq-accent); line-height: 0.85;
}
.lq-step .k { color: var(--lq-text-3); font-family: var(--lq-mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; }
.lq-step .ttl { color: var(--lq-text); font-family: var(--lq-sans); font-weight: 600; font-size: 16px; line-height: 1.3; }
@media (max-width: 1080px) {
  .lq-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  .lq-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lq-step { padding: 18px; }
  .lq-step .num { font-size: 44px; }
}
@media (max-width: 460px) {
  .lq-steps { grid-template-columns: 1fr; }
}

/* Reveal ------------------------------------------------------------------ */
.lq-rev { opacity: 0; transform: translateY(14px); transition: opacity .8s ease, transform .8s ease; }
.lq-rev.in { opacity: 1; transform: translateY(0); }

/* Auth pages (login / signup) -------------------------------------------- */

.lq-auth {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: clamp(24px, 4vw, 64px);
  align-items: stretch;
  padding: clamp(32px, 5vw, 64px) 0 clamp(48px, 6vw, 96px);
}
@media (max-width: 980px) {
  .lq-auth { grid-template-columns: 1fr; }
  .lq-auth .lq-auth-side { display: none; }
}

.lq-auth-side {
  position: sticky; top: 96px;
  align-self: start;
  background:
    radial-gradient(120% 80% at 0% 0%, rgba(37,99,235,0.18), transparent 55%),
    linear-gradient(160deg, var(--lq-accent) 0%, var(--lq-accent-2) 100%);
  color: #fff;
  border-radius: var(--lq-radius-lg);
  padding: clamp(28px, 3.5vw, 48px);
  overflow: hidden;
  min-height: 480px;
  display: flex; flex-direction: column; justify-content: space-between;
  box-shadow: 0 20px 50px -20px rgba(37, 99, 235, 0.45);
}
.lq-auth-side .top { display: flex; flex-direction: column; gap: 18px; }
.lq-auth-side .top .brand-logo { width: 44px; height: 44px; filter: drop-shadow(0 4px 12px rgba(255,255,255,0.25)); }
.lq-auth-side h2 {
  font-family: var(--lq-sans); font-weight: 700;
  font-size: clamp(24px, 2.6vw, 36px); letter-spacing: -0.025em; line-height: 1.1;
  color: #fff; margin: 0;
}
.lq-auth-side h2 em { color: #fff; opacity: 0.85; font-style: normal; font-weight: 800; }
.lq-auth-side p { color: rgba(255,255,255,0.85); font-size: 15px; line-height: 1.55; margin: 0; }
.lq-auth-side ul { list-style: none; padding: 0; margin: 22px 0 0; display: flex; flex-direction: column; gap: 12px; }
.lq-auth-side ul li {
  display: grid; grid-template-columns: 22px 1fr; gap: 12px; align-items: start;
  color: rgba(255,255,255,0.92); font-size: 14.5px;
}
.lq-auth-side ul li::before {
  content: "✓"; color: #fff; background: rgba(255,255,255,0.18); border-radius: 6px;
  display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px;
  font-size: 13px; font-weight: 700;
}
.lq-auth-side .meta {
  margin-top: 24px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,0.18);
  display: flex; align-items: center; gap: 12px; color: rgba(255,255,255,0.85); font-size: 13px;
  font-family: var(--lq-mono);
}
.lq-auth-side .meta strong { color: #fff; font-weight: 700; }

.lq-auth-card {
  background: var(--lq-elev-1);
  border: 1px solid var(--lq-line);
  border-radius: var(--lq-radius-lg);
  padding: clamp(24px, 3vw, 40px);
  box-shadow: var(--lq-shadow-md);
}
.lq-auth-card h1 {
  font-family: var(--lq-sans); font-weight: 700;
  font-size: clamp(24px, 2.6vw, 32px); letter-spacing: -0.025em; line-height: 1.15;
  color: var(--lq-text); margin: 0 0 6px;
}
.lq-auth-card .sub { color: var(--lq-text-2); font-size: 14.5px; margin: 0 0 24px; }

.lq-form { display: flex; flex-direction: column; gap: 16px; }
.lq-form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 540px) { .lq-form .row { grid-template-columns: 1fr; } }

.lq-field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.lq-field label {
  font-family: var(--lq-sans); font-size: 13px; font-weight: 600; color: var(--lq-text);
  letter-spacing: -0.005em;
}
.lq-field input,
.lq-field select {
  font-family: var(--lq-sans); font-size: 14.5px; color: var(--lq-text);
  background: #fff;
  border: 1px solid var(--lq-line-2);
  border-radius: 10px;
  padding: 12px 14px;
  height: 46px;
  transition: border-color .2s, box-shadow .2s, background .2s;
  width: 100%;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
}
.lq-field select {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'><path fill='none' stroke='%23475467' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round' d='M3 4.5L6 7.5L9 4.5'/></svg>");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 38px;
}
.lq-field input:focus,
.lq-field select:focus {
  border-color: var(--lq-accent);
  box-shadow: 0 0 0 4px var(--lq-accent-soft);
}
.lq-field input::placeholder { color: var(--lq-text-3); }

.lq-check {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 13.5px; color: var(--lq-text-2); line-height: 1.5;
}
.lq-check input[type="checkbox"] {
  width: 18px; height: 18px; margin: 1px 0 0; flex-shrink: 0;
  accent-color: var(--lq-accent);
}
.lq-check a { color: var(--lq-accent); font-weight: 600; text-decoration: none; }
.lq-check a:hover { text-decoration: underline; }

.lq-form-actions { display: flex; flex-direction: column; gap: 14px; margin-top: 8px; }
.lq-form-actions .lq-btn { width: 100%; justify-content: center; height: 48px; font-size: 15px; }

.lq-form-foot {
  text-align: center; margin-top: 18px;
  color: var(--lq-text-2); font-size: 14px;
}
.lq-form-foot a { color: var(--lq-accent); font-weight: 600; text-decoration: none; }
.lq-form-foot a:hover { text-decoration: underline; }
.lq-form-foot.muted { color: var(--lq-text-3); font-size: 13px; }

.lq-auth-msg { margin-bottom: 4px; }
.lq-auth-msg .alert,
.lq-auth-msg [class^="alert-"] {
  border-radius: 10px; padding: 12px 14px; font-size: 14px; border: 1px solid;
}
.lq-auth-msg .alert-success,
.lq-auth-msg .alert-info {
  background: var(--lq-pos-soft); color: var(--lq-pos); border-color: rgba(2, 122, 72, 0.25);
}
.lq-auth-msg .alert-danger,
.lq-auth-msg .alert-error,
.lq-auth-msg .alert-warning {
  background: var(--lq-neg-soft); color: var(--lq-neg); border-color: rgba(180, 35, 24, 0.25);
}

/* reCAPTCHA breathing room */
.lq-recap { display: flex; justify-content: center; }

/* ==========================================================================
   Dashboard chrome (sidebar + content shell)
   Coexists with darktheme.css. Used on /dashboard/* pages.
   ========================================================================== */

body.dashboard-shell {
    --lq-dash-bg: #F2F4F7;
    --lq-dash-surface: #FFFFFF;
    --lq-dash-surface-soft: #F9FAFB;
    --lq-dash-line: #EAECF0;
    --lq-dash-line-strong: #D0D5DD;
    --lq-dash-text: #101828;
    --lq-dash-muted: #667085;
    background: var(--lq-dash-bg);
    min-height: 100vh;
}
body:has(.lq-shell-side) {
    --lq-dash-bg: #F2F4F7;
    --lq-dash-surface: #FFFFFF;
    --lq-dash-surface-soft: #F9FAFB;
    --lq-dash-line: #EAECF0;
    --lq-dash-line-strong: #D0D5DD;
    --lq-dash-text: #101828;
    --lq-dash-muted: #667085;
    background: var(--lq-dash-bg);
    min-height: 100vh;
}

body { background: var(--lq-bg, var(--lq-dash-bg, #F2F4F7)); font-family: 'Manrope', system-ui, sans-serif; }

/* Mobile topbar */
.lq-shell-topbar {
    position: sticky; top: 0; z-index: 1040;
    display: flex; align-items: center; justify-content: space-between;
    padding: 12px 16px;
    background: rgba(255,255,255,0.95);
    backdrop-filter: saturate(160%) blur(14px);
    border-bottom: 1px solid #EAECF0;
}
.lq-shell-brand {
    display: inline-flex; align-items: center; gap: 10px;
    text-decoration: none; color: #101828;
    font-family: 'Manrope', sans-serif; font-weight: 700; font-size: 19px;
    letter-spacing: -0.02em;
}
.lq-shell-brand .brand-logo {
    width: 32px; height: 32px; object-fit: contain; display: block;
    filter: drop-shadow(0 4px 10px rgba(37, 99, 235, 0.18));
}
.lq-shell-toggle {
    width: 42px; height: 42px;
    border: 1px solid #D0D5DD; background: #fff;
    border-radius: 10px; color: #101828; font-size: 22px;
    display: inline-flex; align-items: center; justify-content: center;
    cursor: pointer;
}

/* Sidebar */
#sidebar.lq-shell-side {
    position: fixed; top: 0; left: 0; bottom: 0;
    width: 280px; height: 100vh; z-index: 1045;
    background: var(--lq-dash-bg, #F2F4F7);
    border-right: 0;
    padding: 22px 14px 16px;
    box-sizing: border-box;
    display: flex; flex-direction: column; gap: 14px;
    overflow: hidden;
    transition: transform .25s ease;
}
.lq-shell-side .lq-shell-brand.desktop { padding: 4px 8px 12px; border-bottom: 1px solid #F2F4F7; }
.lq-shell-side .lq-shell-brand.desktop .brand-logo { width: 36px; height: 36px; }
.lq-shell-side .lq-shell-brand.desktop .brand-word { font-size: 22px; }

.lq-shell-close {
    position: absolute; top: 12px; right: 12px;
    width: 36px; height: 36px;
    border: 1px solid #EAECF0; background: #fff;
    border-radius: 10px; color: #475467; font-size: 20px;
    display: inline-flex; align-items: center; justify-content: center;
    cursor: pointer;
}

.lq-shell-nav {
    display: flex; flex-direction: column; gap: 2px;
    flex: 1 1 auto; min-height: 0;
    overflow-y: auto; overflow-x: hidden;
    padding-right: 2px;
}

.nav-section-label {
    font-family: 'Source Code Pro', monospace; font-size: 10.5px; font-weight: 600;
    letter-spacing: 0.16em; text-transform: uppercase;
    color: #98A2B3;
    padding: 14px 12px 6px;
}

.nav-pill-link {
    display: flex; align-items: center; gap: 12px;
    padding: 9px 12px; border-radius: 10px;
    color: #475467; font-family: 'Manrope', sans-serif; font-size: 14px; font-weight: 500;
    text-decoration: none;
    transition: background .15s, color .15s;
}
.nav-pill-link i {
    font-size: 18px; line-height: 1; color: #667085;
    width: 22px; text-align: center;
    transition: color .15s;
}
.nav-pill-link:hover { background: #F2F4F7; color: #101828; }
.nav-pill-link:hover i { color: #2563EB; }
.nav-pill-link.active {
    background: #EFF4FF; color: #2563EB; font-weight: 700;
}
.nav-pill-link.active i { color: #2563EB; }
.nav-pill-link.logout { color: #B42318; }
.nav-pill-link.logout i { color: #B42318; }
.nav-pill-link.logout:hover { background: #FEF3F2; color: #B42318; }

.lq-shell-foot {
    border-top: 1px solid #F2F4F7;
    padding-top: 12px;
    display: flex; flex-direction: column; gap: 4px;
    flex: 0 0 auto;
    margin-top: auto;
    background: inherit;
}
.lq-shell-theme {
    display: flex; align-items: center; gap: 12px;
    padding: 9px 12px; border-radius: 10px;
    color: #475467; font-size: 14px; font-weight: 500;
    cursor: pointer;
}
.lq-shell-theme i { font-size: 18px; color: #667085; width: 22px; text-align: center; }
.lq-shell-theme .theme-switch-label { flex: 1; }
.lq-shell-theme .theme-switch {
    position: relative; width: 36px; height: 20px;
    display: inline-block;
}
.lq-shell-theme .theme-switch input { display: none; }
.lq-shell-theme .switch-slider {
    position: absolute; inset: 0; background: #D0D5DD; border-radius: 999px;
    transition: background .2s;
}
.lq-shell-theme .switch-slider::before {
    content: ""; position: absolute; left: 2px; top: 2px;
    width: 16px; height: 16px; background: #fff; border-radius: 50%;
    transition: transform .2s;
}
.lq-shell-theme input:checked + .switch-slider { background: #2563EB; }
.lq-shell-theme input:checked + .switch-slider::before { transform: translateX(16px); }

.lq-shell-translate { padding: 4px 12px; font-size: 12px; }

#overlay.lq-shell-overlay {
    position: fixed; inset: 0; background: rgba(16, 24, 40, 0.4);
    z-index: 1042;
    display: none;
    opacity: 1;
    backdrop-filter: blur(8px) saturate(130%);
    -webkit-backdrop-filter: blur(8px) saturate(130%);
}
#overlay.lq-shell-overlay.show { display: block; }

/* Content area sits beside the sidebar on desktop */
@media (min-width: 768px) {
    .lq-shell-topbar { display: none; }
    body.dashboard-shell { padding-left: 280px; }
    body:has(.lq-shell-side) { padding-left: 280px; }
    body.dashboard-shell .content { margin-left: 0; }
    body:has(.lq-shell-side) .content { margin-left: 0; }
    .lq-shell-overlay { display: none !important; }
}
@media (max-width: 767.98px) {
    body.dashboard-shell { padding-left: 0; }
    body:has(.lq-shell-side) { padding-left: 0; }
    body.dashboard-shell .content { margin-left: 0; }
    body:has(.lq-shell-side) .content { margin-left: 0; }
    #sidebar.lq-shell-side { transform: translateX(-100%); width: 280px; }
    #sidebar.lq-shell-side.open { transform: translateX(0); }
    #sidebar.lq-shell-side .lq-shell-nav {
        padding-top: 44px;
    }
    body.lq-sidebar-open .lq-shell-topbar {
        filter: blur(6px);
        opacity: 0.62;
        pointer-events: none;
    }
}

/* ==========================================================================
   Dashboard widget styles
   ========================================================================== */

.lq-dash {
    max-width: 1480px; margin: 0 auto;
    padding: clamp(16px, 2.7vw, 34px);
    display: flex; flex-direction: column; gap: clamp(16px, 2.4vw, 24px);
}

.lq-command-panel {
    position: relative;
    overflow: hidden;
    padding: clamp(18px, 2.4vw, 30px);
    border: 1px solid rgba(208, 213, 221, 0.78);
    border-radius: 28px;
    background:
        radial-gradient(720px 360px at 92% -20%, rgba(37, 99, 235, 0.16), transparent 62%),
        linear-gradient(135deg, rgba(255,255,255,0.96) 0%, rgba(255,255,255,0.88) 52%, rgba(239,244,255,0.78) 100%);
    box-shadow: 0 18px 46px -30px rgba(16, 24, 40, 0.34);
}
.lq-command-panel::after {
    content: "";
    position: absolute; inset: auto -12% -42% 46%;
    height: 230px;
    background: radial-gradient(circle, rgba(37,99,235,0.12), transparent 68%);
    pointer-events: none;
}
.lq-command-main {
    position: relative; z-index: 1;
    display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, 380px);
    gap: 20px; align-items: stretch;
}
.lq-command-copy {
    min-width: 0;
    display: flex; flex-direction: column; justify-content: center;
}
.lq-command-kicker {
    font-family: 'Source Code Pro', monospace; font-size: 11px; font-weight: 700;
    letter-spacing: 0.16em; text-transform: uppercase;
    color: #2563EB;
}
.lq-command-copy h1 {
    font-family: 'Manrope', sans-serif; font-weight: 760;
    font-size: clamp(28px, 4.2vw, 48px); line-height: 1.02;
    letter-spacing: -0.045em;
    color: #101828; margin: 10px 0 0;
}
.lq-command-copy .greet {
    color: #667085; font-size: 15px; margin: 10px 0 0;
}
.lq-command-copy .plan-row { display: inline-flex; align-items: center; gap: 8px; margin-top: 16px; flex-wrap: wrap; }
.lq-command-copy .plan-row .label {
    font-family: 'Source Code Pro', monospace; font-size: 11px; letter-spacing: 0.14em;
    text-transform: uppercase; color: #98A2B3; font-weight: 700;
}
.lq-command-copy .plan-badge {
    display: inline-flex; align-items: center; gap: 6px;
    background: #101828; color: #fff;
    padding: 6px 12px; border-radius: 999px;
    font-size: 12.5px; font-weight: 800; letter-spacing: -0.005em;
}

.lq-dash-balance {
    text-align: left;
    background:
        radial-gradient(140% 100% at 100% 0%, rgba(255,255,255,0.16), transparent 55%),
        linear-gradient(135deg, #101828 0%, #1D2939 58%, #2563EB 130%);
    color: #fff;
    padding: clamp(20px, 2.2vw, 28px);
    border-radius: 24px;
    min-width: 0;
    min-height: 172px;
    position: relative; overflow: hidden;
    display: flex; flex-direction: column; justify-content: space-between;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.12), 0 18px 38px -26px rgba(16,24,40,0.8);
}
.lq-dash-balance::after {
    content: ""; position: absolute; inset: auto 18px 18px auto;
    width: 92px; height: 92px; border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.18);
    box-shadow: -34px -18px 0 -18px rgba(255,255,255,0.10);
    pointer-events: none;
}
.lq-dash-balance .label {
    font-family: 'Source Code Pro', monospace; font-size: 11px; letter-spacing: 0.18em;
    text-transform: uppercase; color: rgba(255,255,255,0.70); font-weight: 700;
}
.lq-dash-balance .value {
    font-size: clamp(32px, 4vw, 48px); font-weight: 800;
    letter-spacing: -0.045em; line-height: 1; margin-top: 20px;
    font-feature-settings: "tnum","lnum";
}

.lq-command-actions {
    position: relative; z-index: 1;
    display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    margin-top: 18px;
}
.lq-command-action {
    display: grid; grid-template-columns: 42px minmax(0, 1fr); align-items: center; gap: 12px;
    min-height: 76px;
    padding: 13px;
    border: 1px solid rgba(208,213,221,0.78);
    border-radius: 18px;
    background: rgba(255,255,255,0.74);
    color: #101828;
    text-decoration: none;
    transition: transform .18s ease, border-color .18s ease, background .18s ease, box-shadow .18s ease;
}
.lq-command-action:hover {
    transform: translateY(-2px);
    border-color: rgba(37,99,235,0.38);
    background: #fff;
    color: #101828;
    box-shadow: 0 12px 28px -22px rgba(16,24,40,0.45);
}
.lq-command-action .ico {
    width: 42px; height: 42px; border-radius: 14px;
    display: inline-flex; align-items: center; justify-content: center;
    background: #EFF4FF; color: #2563EB; font-size: 19px;
}
.lq-command-action strong {
    display: block; color: inherit; font-size: 14px; line-height: 1.2;
}
.lq-command-action small {
    display: block; color: #667085; font-size: 12px; line-height: 1.35; margin-top: 3px;
}
.lq-command-action.primary {
    background: #2563EB;
    border-color: #2563EB;
    color: #fff;
}
.lq-command-action.primary .ico {
    background: rgba(255,255,255,0.16); color: #fff;
}
.lq-command-action.primary small { color: rgba(255,255,255,0.74); }
.lq-command-action.primary:hover { background: #1D4ED8; color: #fff; }

@media (max-width: 1100px) {
    .lq-command-main { grid-template-columns: 1fr; }
    .lq-command-actions { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 980px) {
    .lq-command-panel .lq-dash-stats { gap: 8px; }
    .lq-command-panel .lq-stat-card:not(:first-child)::before { display: none; }
}
@media (max-width: 560px) {
    .lq-command-panel { border-radius: 22px; }
    .lq-command-actions { grid-template-columns: 1fr; }
    .lq-dash-balance { min-height: 148px; }
}

/* Stats grid (4 KPI cards) */
.lq-dash-stats {
    display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px;
}
@media (max-width: 980px) { .lq-dash-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .lq-dash-stats { grid-template-columns: 1fr; } }
.lq-stat-card {
    background: rgba(255,255,255,0.78); border: 1px solid rgba(234,236,240,0.9); border-radius: 16px;
    padding: 18px;
    display: flex; align-items: center; gap: 14px;
    box-shadow: none;
    transition: transform .15s, box-shadow .15s, border-color .15s;
    min-width: 0;
}
.lq-command-panel .lq-dash-stats {
    position: relative; z-index: 1;
    margin-top: 12px;
    gap: 0;
    padding: 8px;
    border: 1px solid rgba(208,213,221,0.64);
    border-radius: 20px;
    background: rgba(255,255,255,0.56);
}
.lq-command-panel .lq-stat-card {
    position: relative;
    background: transparent;
    border: 0;
    border-radius: 14px;
    padding: 14px;
}
.lq-command-panel .lq-stat-card:not(:first-child)::before {
    content: "";
    position: absolute; left: 0; top: 18px; bottom: 18px;
    width: 1px; background: rgba(208,213,221,0.75);
}
.lq-stat-card:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 24px -20px rgba(16,24,40,0.35);
    border-color: #D0D5DD;
}
.lq-command-panel .lq-stat-card:hover {
    transform: none;
    box-shadow: none;
    background: rgba(255,255,255,0.56);
}
.lq-stat-card .ico {
    width: 44px; height: 44px; border-radius: 12px;
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 18px; flex-shrink: 0;
}
.lq-stat-card .ico.deposit    { background: #ECFDF3; color: #027A48; }
.lq-stat-card .ico.profit     { background: #EFF4FF; color: #2563EB; }
.lq-stat-card .ico.withdrawal { background: #FEF3F2; color: #B42318; }
.lq-stat-card .ico.bonus      { background: #FFFAEB; color: #B54708; }
.lq-stat-card .body { min-width: 0; flex: 1; }
.lq-stat-card .label {
    font-size: 12.5px; color: #667085; font-weight: 600;
    text-transform: uppercase; letter-spacing: 0.04em;
}
.lq-stat-card .value {
    font-size: clamp(18px, 2vw, 22px); font-weight: 700; color: #101828;
    font-feature-settings: "tnum","lnum"; line-height: 1.1; margin-top: 4px;
    word-break: break-word;
}
.lq-stat-card .delta { font-size: 12px; font-weight: 600; margin-top: 4px; }
.lq-stat-card .delta.up { color: #027A48; }
.lq-stat-card .delta.dn { color: #B42318; }

/* Generic dash card */
.lq-dash-card {
    background: rgba(255,255,255,0.86); border: 1px solid rgba(234,236,240,0.92); border-radius: 20px;
    padding: 20px;
    box-shadow: 0 10px 28px -26px rgba(16,24,40,0.45);
    display: flex; flex-direction: column; gap: 14px;
    min-width: 0;
}
.lq-dash-card.flush { padding: 0; overflow: hidden; }
.lq-dash-card .head {
    display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
}
.lq-dash-card .head h3 {
    font-family: 'Manrope', sans-serif; font-weight: 700;
    font-size: 16px; color: #101828; margin: 0; letter-spacing: -0.01em;
}
.lq-dash-card .head .more {
    font-size: 13px; color: #2563EB; font-weight: 600; text-decoration: none;
}
.lq-dash-card .head .more:hover { text-decoration: underline; }

/* Dashboard grid layout */
.lq-dash-grid {
    display: grid; grid-template-columns: 8fr 4fr; gap: 18px;
    align-items: start;
}
@media (max-width: 1100px) { .lq-dash-grid { grid-template-columns: 1fr; } }

.lq-dash-col {
    display: flex; flex-direction: column; gap: 12px; min-width: 0;
    padding: 12px;
    border: 1px solid rgba(208,213,221,0.62);
    border-radius: 28px;
    background: rgba(255,255,255,0.38);
}
.lq-dash-col > .lq-dash-card:not(.lq-chart-card),
.lq-dash-row > .lq-dash-card {
    background: transparent;
    border-color: transparent;
    box-shadow: none;
}
.lq-dash-col > .lq-dash-card:not(.lq-chart-card):hover,
.lq-dash-row > .lq-dash-card:hover {
    background: rgba(255,255,255,0.62);
    border-color: rgba(234,236,240,0.9);
    box-shadow: none;
}
.lq-chart-card {
    background: #fff;
    border-color: rgba(234,236,240,0.96);
    border-radius: 24px;
    box-shadow: 0 16px 34px -30px rgba(16,24,40,0.5);
}

.lq-dash-row {
    display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px;
    padding: 8px;
    border: 1px solid rgba(208,213,221,0.58);
    border-radius: 22px;
    background: rgba(255,255,255,0.44);
}
@media (max-width: 720px) { .lq-dash-row { grid-template-columns: 1fr; } }

.lq-dash-row-3 {
    display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px;
}
@media (max-width: 980px) { .lq-dash-row-3 { grid-template-columns: 1fr; } }

/* Transaction list */
.lq-tx-list { display: flex; flex-direction: column; gap: 8px; max-height: 420px; overflow-y: auto; padding-right: 4px; }
.lq-tx-list::-webkit-scrollbar { width: 6px; }
.lq-tx-list::-webkit-scrollbar-thumb { background: #D0D5DD; border-radius: 6px; }
.lq-tx-list::-webkit-scrollbar-track { background: #F2F4F7; }
.lq-tx-item {
    display: grid; grid-template-columns: 36px 1fr auto; gap: 12px; align-items: center;
    padding: 12px;
    background: #F9FAFB; border: 1px solid #EAECF0; border-radius: 10px;
}
.lq-tx-item .ico {
    width: 36px; height: 36px; border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 14px;
}
.lq-tx-item .ico.up { background: #ECFDF3; color: #027A48; }
.lq-tx-item .ico.dn { background: #FEF3F2; color: #B42318; }
.lq-tx-item .ico.neutral { background: #EFF4FF; color: #2563EB; }
.lq-tx-item .nm { font-size: 14px; font-weight: 600; color: #101828; min-width: 0; }
.lq-tx-item .meta { font-size: 12px; color: #667085; margin-top: 2px; }
.lq-tx-item .amt { font-size: 14px; font-weight: 700; font-feature-settings: "tnum","lnum"; text-align: right; }
.lq-tx-item .amt.up { color: #027A48; }
.lq-tx-item .amt.dn { color: #B42318; }
.lq-tx-item .pill {
    display: inline-block; padding: 2px 8px; border-radius: 999px;
    font-size: 11px; font-weight: 600; margin-top: 4px;
}
.lq-tx-item .pill.success { background: #ECFDF3; color: #027A48; }
.lq-tx-item .pill.pending { background: #FFFAEB; color: #B54708; }
.lq-tx-item .pill.danger  { background: #FEF3F2; color: #B42318; }

.lq-empty { color: #98A2B3; font-size: 13.5px; padding: 24px 0; text-align: center; }

/* Pill tabs */
.lq-tabs {
    display: inline-flex; gap: 4px;
    background: #F2F4F7; border: 1px solid #EAECF0;
    padding: 3px; border-radius: 10px;
}
.lq-tab {
    padding: 6px 14px; border-radius: 8px;
    color: #667085; font-size: 13px; font-weight: 600;
    cursor: pointer; transition: background .15s, color .15s;
    background: transparent; border: 0;
}
.lq-tab.active { background: #fff; color: #2563EB; box-shadow: 0 1px 2px rgba(16,24,40,0.06); }
.lq-tab:hover:not(.active) { color: #101828; }

/* Stat row inside cards */
.lq-mini-row { display: flex; justify-content: space-between; align-items: center; padding: 8px 0; border-bottom: 1px solid #F2F4F7; font-size: 14px; }
.lq-mini-row:last-child { border-bottom: 0; }
.lq-mini-row .label { color: #667085; }
.lq-mini-row .value { font-weight: 700; color: #101828; font-feature-settings: "tnum","lnum"; }
.lq-mini-row .value.up { color: #027A48; }
.lq-mini-row .value.dn { color: #B42318; }

/* Open trade row */
.lq-pos-row {
    display: grid; grid-template-columns: 1fr auto auto; gap: 12px; align-items: center;
    padding: 12px; background: #F9FAFB; border: 1px solid #EAECF0; border-radius: 10px;
}
.lq-pos-row .nm { font-weight: 700; color: #101828; font-size: 14px; }
.lq-pos-row .meta { font-size: 11.5px; color: #667085; margin-top: 2px; }
.lq-pos-row .side {
    display: inline-block; padding: 3px 10px; border-radius: 999px;
    font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em;
}
.lq-pos-row .side.buy  { background: #ECFDF3; color: #027A48; }
.lq-pos-row .side.sell { background: #FEF3F2; color: #B42318; }

/* Referral block */
.lq-ref-link {
    display: flex; gap: 8px; align-items: stretch;
    background: #EFF4FF; border: 1px dashed rgba(37, 99, 235, 0.35);
    border-radius: 10px; padding: 10px 12px;
}
.lq-ref-link input {
    border: 0; background: transparent; color: #2563EB;
    font-family: 'Source Code Pro', monospace; font-size: 12.5px;
    flex: 1; min-width: 0; outline: none;
}
.lq-ref-link button {
    border: 1px solid #D0D5DD; background: #fff; color: #101828;
    border-radius: 8px; padding: 6px 12px; font-size: 12px; font-weight: 600;
    cursor: pointer;
}
.lq-ref-link button:hover { border-color: #2563EB; color: #2563EB; }

.lq-sentiment {
    display: flex;
    align-items: center;
    gap: 14px;
}
.lq-sentiment-gauge {
    --score-angle: 180deg;
    --sent-tone: #B54708;
    width: 96px;
    height: 96px;
    flex: 0 0 96px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background:
        conic-gradient(var(--sent-tone) var(--score-angle), #EAECF0 0deg);
}
.lq-sentiment-inner {
    width: 68px;
    height: 68px;
    border-radius: 50%;
    background: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: inset 0 0 0 1px rgba(234,236,240,0.92);
}
.lq-sentiment-inner span {
    font-family: 'Source Code Pro', monospace;
    font-size: 22px;
    font-weight: 800;
    line-height: 1;
    color: #101828;
}
.lq-sentiment-inner small {
    margin-top: 2px;
    font-size: 9px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #98A2B3;
}
.lq-sentiment-label {
    font-size: 18px;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #101828;
}
.lq-sentiment-meta {
    margin-top: 5px;
    font-size: 12.5px;
    line-height: 1.55;
    color: #667085;
}
.lq-sentiment-meta b { color: #101828; }
.lq-sentiment-meta b.up { color: #027A48; }
.lq-sentiment-meta b.dn { color: #B42318; }

.lq-alert {
    display: grid; grid-template-columns: 36px 1fr; gap: 12px; align-items: start;
    background: #FEF3F2; border: 1px solid rgba(180, 35, 24, 0.25);
    border-radius: 12px; padding: 14px 16px;
    color: #7F1D1D;
}
.lq-alert .ico {
    width: 36px; height: 36px; border-radius: 10px;
    background: #FEE4E2; color: #B42318;
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 18px;
}
.lq-alert strong { display: block; color: #7F1D1D; font-size: 14.5px; margin-bottom: 2px; }
.lq-alert span { color: #991B1B; font-size: 13.5px; line-height: 1.5; }

/* Chart shells */
.lq-chart-card { padding: 0; overflow: hidden; }
.lq-chart-card .body { height: 460px; padding: 0; }

/* Bento modules: separate widgets, consistent visual language, no outer group */
.lq-bento-grid {
    grid-template-columns: minmax(0, 1.58fr) minmax(320px, 0.82fr);
    gap: 18px;
    align-items: start;
}
.lq-bento-grid .lq-dash-col {
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    gap: 18px;
}
.lq-bento-grid .lq-dash-card {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(208,213,221,0.82);
    border-radius: 24px;
    background:
        linear-gradient(180deg, rgba(255,255,255,0.94), rgba(255,255,255,0.78));
    box-shadow: 0 16px 34px -30px rgba(16,24,40,0.62);
}
.lq-bento-grid .lq-dash-col > .lq-dash-card:not(.lq-chart-card),
.lq-bento-grid .lq-dash-row > .lq-dash-card {
    background:
        linear-gradient(180deg, rgba(255,255,255,0.94), rgba(255,255,255,0.78));
    border-color: rgba(208,213,221,0.82);
    box-shadow: 0 16px 34px -30px rgba(16,24,40,0.62);
}
.lq-bento-grid .lq-dash-card:hover {
    border-color: rgba(152,162,179,0.72);
    box-shadow: 0 18px 38px -32px rgba(16,24,40,0.66);
}
.lq-bento-grid .lq-dash-col > .lq-dash-card:not(.lq-chart-card):hover,
.lq-bento-grid .lq-dash-row > .lq-dash-card:hover {
    background:
        linear-gradient(180deg, rgba(255,255,255,0.98), rgba(255,255,255,0.84));
    border-color: rgba(152,162,179,0.72);
    box-shadow: 0 18px 38px -32px rgba(16,24,40,0.66);
}
.lq-bento-grid .lq-chart-card {
    padding: 0;
    background: #fff;
}
.lq-bento-grid .lq-module-hero {
    border-radius: 30px;
}
.lq-bento-grid .lq-module-hero .body { height: 480px; }
.lq-bento-grid .lq-module-news .body { height: 360px; }
.lq-bento-grid .lq-module-feed {
    background:
        radial-gradient(520px 260px at 100% -20%, rgba(37,99,235,0.10), transparent 62%),
        #FFFFFF;
}
.lq-bento-grid .lq-module-list,
.lq-bento-grid .lq-module-summary,
.lq-bento-grid .lq-module-signal {
    background:
        linear-gradient(135deg, rgba(255,255,255,0.92), rgba(249,250,251,0.82));
}
.lq-bento-grid .lq-module-pair {
    gap: 18px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
}
.lq-bento-grid .lq-module-pair .lq-dash-card {
    min-height: 100%;
}
.lq-bento-grid .lq-bento-side .lq-dash-card {
    border-radius: 22px;
}
.lq-bento-grid .lq-tx-list {
    max-height: none;
}
.lq-bento-grid .lq-tx-item,
.lq-bento-grid .lq-pos-row {
    background: rgba(249,250,251,0.72);
    border-color: rgba(234,236,240,0.94);
}
.lq-bento-grid .lq-mini-row {
    padding: 10px 0;
}
.lq-bento-grid .lq-tabs {
    background: rgba(242,244,247,0.72);
}

@media (max-width: 1180px) {
    .lq-bento-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 767.98px) {
    .lq-dash {
        padding: 14px 12px 24px;
        gap: 14px;
    }
    .lq-command-main { gap: 14px; }
    .lq-command-copy h1 {
        font-size: clamp(26px, 9vw, 36px);
        letter-spacing: -0.035em;
    }
    .lq-command-copy .greet { font-size: 14px; }
    .lq-command-copy .plan-row { margin-top: 12px; }
    .lq-command-panel .lq-dash-stats {
        grid-template-columns: 1fr;
        padding: 6px;
    }
    .lq-command-panel .lq-stat-card {
        padding: 13px;
    }
    .lq-dash-grid { gap: 14px; }
    .lq-dash-col {
        padding: 8px;
        border-radius: 22px;
    }
    .lq-dash-card {
        padding: 16px;
        border-radius: 18px;
    }
    .lq-chart-card { border-radius: 20px; }
    .lq-chart-card .body { height: 360px; }
    .lq-dash-row {
        padding: 6px;
        border-radius: 18px;
    }
    .lq-bento-grid {
        gap: 14px;
    }
    .lq-bento-grid .lq-dash-col {
        gap: 14px;
    }
    .lq-bento-grid .lq-dash-card {
        border-radius: 20px;
    }
    .lq-bento-grid .lq-module-hero .body { height: 350px; }
    .lq-bento-grid .lq-module-news .body { height: 320px; }
    .lq-bento-grid .lq-module-pair {
        grid-template-columns: 1fr;
        gap: 14px;
    }
    .lq-tx-item {
        grid-template-columns: 34px minmax(0, 1fr);
        gap: 10px;
    }
    .lq-tx-item > div:last-child {
        grid-column: 2;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
        min-width: 0;
    }
    .lq-tx-item .amt { text-align: left; }
    .lq-pos-row {
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 10px;
    }
    .lq-ref-link {
        align-items: stretch;
    }
}

@media (max-width: 420px) {
    .lq-command-panel {
        margin-left: -2px;
        margin-right: -2px;
        padding: 14px;
    }
    .lq-dash-balance {
        padding: 18px;
        min-height: 136px;
    }
    .lq-command-action {
        grid-template-columns: 38px minmax(0, 1fr);
        padding: 12px;
    }
    .lq-command-action .ico {
        width: 38px; height: 38px;
    }
    .lq-stat-card .ico {
        width: 38px; height: 38px;
    }
    .lq-chart-card .body { height: 320px; }
    .lq-bento-grid .lq-module-hero .body,
    .lq-bento-grid .lq-module-news .body { height: 300px; }
    .lq-tabs { width: 100%; }
    .lq-tab { flex: 1; }
}

@keyframes lq-fade-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
.lq-dash > * { animation: lq-fade-in .35s ease-out both; }

/* ==========================================================================
   Dark theme overrides for dashboard chrome + widgets
   Scoped to html[data-theme="dark"]
   ========================================================================== */

html[data-theme="dark"] body.dashboard-shell {
    --lq-dash-bg: #111318;
    --lq-dash-surface: #1A1D24;
    --lq-dash-surface-soft: #14171D;
    --lq-dash-line: #2D3139;
    --lq-dash-line-strong: #3A3F4A;
    --lq-dash-text: #E4E7EC;
    --lq-dash-muted: #98A2B3;
    background: #111318 !important;
    color: #E4E7EC !important;
}
html[data-theme="dark"] body:has(.lq-shell-side) {
    --lq-dash-bg: #111318;
    --lq-dash-surface: #1A1D24;
    --lq-dash-surface-soft: #14171D;
    --lq-dash-line: #2D3139;
    --lq-dash-line-strong: #3A3F4A;
    --lq-dash-text: #E4E7EC;
    --lq-dash-muted: #98A2B3;
    background: #111318 !important;
    color: #E4E7EC !important;
}

html[data-theme="dark"] body { background: #111318 !important; color: #E4E7EC !important; }

html[data-theme="dark"] .lq-shell-topbar {
    background: rgba(17, 19, 24, 0.95) !important;
    border-bottom-color: #2D3139 !important;
}
html[data-theme="dark"] .lq-shell-brand { color: #E4E7EC !important; }
html[data-theme="dark"] .lq-shell-toggle {
    background: #1A1D24 !important; border-color: #2D3139 !important; color: #E4E7EC !important;
}
html[data-theme="dark"] #sidebar.lq-shell-side {
    background: #111318 !important; border-right: 0 !important;
}
html[data-theme="dark"] .lq-shell-side .lq-shell-brand.desktop { border-bottom-color: #1F232B !important; }
html[data-theme="dark"] .lq-shell-close {
    background: #1A1D24 !important; border-color: #2D3139 !important; color: #98A2B3 !important;
}
html[data-theme="dark"] .nav-section-label { color: #667085 !important; }
html[data-theme="dark"] .nav-pill-link { color: #98A2B3 !important; }
html[data-theme="dark"] .nav-pill-link i { color: #667085 !important; }
html[data-theme="dark"] .nav-pill-link:hover { background: rgba(255,255,255,0.05) !important; color: #E4E7EC !important; }
html[data-theme="dark"] .nav-pill-link:hover i { color: #60A5FA !important; }
html[data-theme="dark"] .nav-pill-link.active {
    background: rgba(37, 99, 235, 0.18) !important; color: #60A5FA !important;
}
html[data-theme="dark"] .nav-pill-link.active i { color: #60A5FA !important; }
html[data-theme="dark"] .nav-pill-link.logout { color: #F97066 !important; }
html[data-theme="dark"] .nav-pill-link.logout:hover { background: rgba(249, 112, 102, 0.10) !important; }
html[data-theme="dark"] .lq-shell-foot { border-top-color: #1F232B !important; }
html[data-theme="dark"] .lq-shell-theme { color: #98A2B3 !important; }
html[data-theme="dark"] .lq-shell-theme i { color: #667085 !important; }
html[data-theme="dark"] .lq-shell-theme .switch-slider { background: #2D3139 !important; }

/* Dashboard widgets */
html[data-theme="dark"] .lq-command-panel {
    background:
        radial-gradient(720px 360px at 92% -20%, rgba(37, 99, 235, 0.22), transparent 62%),
        linear-gradient(135deg, rgba(26,29,36,0.96) 0%, rgba(26,29,36,0.9) 52%, rgba(20,23,29,0.86) 100%) !important;
    border-color: #2D3139 !important;
    box-shadow: 0 18px 46px -34px rgba(0,0,0,0.8) !important;
}
html[data-theme="dark"] .lq-command-kicker { color: #60A5FA !important; }
html[data-theme="dark"] .lq-command-copy h1 { color: #E4E7EC !important; }
html[data-theme="dark"] .lq-command-copy .greet { color: #98A2B3 !important; }
html[data-theme="dark"] .lq-command-copy .plan-row .label { color: #667085 !important; }
html[data-theme="dark"] .lq-command-copy .plan-badge {
    background: rgba(96,165,250,0.16) !important; color: #BFDBFE !important;
}

html[data-theme="dark"] .lq-command-action {
    background: rgba(20,23,29,0.82) !important;
    border-color: #2D3139 !important;
    color: #E4E7EC !important;
    box-shadow: none !important;
}
html[data-theme="dark"] .lq-command-action:hover {
    background: #1A1D24 !important;
    border-color: #3A3F4A !important;
    color: #E4E7EC !important;
}
html[data-theme="dark"] .lq-command-action .ico {
    background: rgba(96,165,250,0.12) !important; color: #60A5FA !important;
}
html[data-theme="dark"] .lq-command-action small { color: #98A2B3 !important; }
html[data-theme="dark"] .lq-command-action.primary { background: #2563EB !important; border-color: #2563EB !important; color: #fff !important; }
html[data-theme="dark"] .lq-command-action.primary .ico { background: rgba(255,255,255,0.16) !important; color: #fff !important; }
html[data-theme="dark"] .lq-command-action.primary small { color: rgba(255,255,255,0.76) !important; }
html[data-theme="dark"] .lq-command-action.primary:hover { background: #1D4ED8 !important; }

html[data-theme="dark"] .lq-dash-balance {
    background:
        radial-gradient(140% 100% at 100% 0%, rgba(255,255,255,0.14), transparent 55%),
        linear-gradient(135deg, #0B0F17 0%, #1A1D24 58%, #2563EB 140%) !important;
}

html[data-theme="dark"] .lq-stat-card,
html[data-theme="dark"] .lq-dash-card {
    background: #1A1D24 !important; border-color: #2D3139 !important;
    box-shadow: none !important;
}
html[data-theme="dark"] .lq-stat-card:hover,
html[data-theme="dark"] .lq-dash-card:hover { border-color: #3A3F4A !important; }
html[data-theme="dark"] .lq-command-panel .lq-dash-stats {
    background: rgba(20,23,29,0.58) !important;
    border-color: #2D3139 !important;
}
html[data-theme="dark"] .lq-command-panel .lq-stat-card {
    background: transparent !important;
    border: 0 !important;
}
html[data-theme="dark"] .lq-command-panel .lq-stat-card:not(:first-child)::before {
    background: #2D3139 !important;
}
html[data-theme="dark"] .lq-command-panel .lq-stat-card:hover {
    background: rgba(26,29,36,0.72) !important;
}
html[data-theme="dark"] .lq-dash-col {
    background: rgba(20,23,29,0.54) !important;
    border-color: #2D3139 !important;
}
html[data-theme="dark"] .lq-dash-row {
    background: rgba(17,19,24,0.46) !important;
    border-color: #2D3139 !important;
}
html[data-theme="dark"] .lq-dash-col > .lq-dash-card:not(.lq-chart-card),
html[data-theme="dark"] .lq-dash-row > .lq-dash-card {
    background: transparent !important;
    border-color: transparent !important;
}
html[data-theme="dark"] .lq-dash-col > .lq-dash-card:not(.lq-chart-card):hover,
html[data-theme="dark"] .lq-dash-row > .lq-dash-card:hover {
    background: rgba(26,29,36,0.72) !important;
    border-color: #2D3139 !important;
}
html[data-theme="dark"] .lq-chart-card {
    background: #1A1D24 !important;
    border-color: #2D3139 !important;
}
html[data-theme="dark"] .lq-stat-card .label { color: #98A2B3 !important; }
html[data-theme="dark"] .lq-stat-card .value { color: #E4E7EC !important; }
html[data-theme="dark"] .lq-stat-card .ico.deposit    { background: rgba(50, 213, 131, 0.12) !important; color: #32D583 !important; }
html[data-theme="dark"] .lq-stat-card .ico.profit     { background: rgba(83, 177, 253, 0.12) !important; color: #53B1FD !important; }
html[data-theme="dark"] .lq-stat-card .ico.withdrawal { background: rgba(249, 112, 102, 0.12) !important; color: #F97066 !important; }
html[data-theme="dark"] .lq-stat-card .ico.bonus      { background: rgba(247, 144, 9, 0.12) !important; color: #F79009 !important; }
html[data-theme="dark"] .lq-stat-card .delta.up { color: #32D583 !important; }
html[data-theme="dark"] .lq-stat-card .delta.dn { color: #F97066 !important; }

html[data-theme="dark"] .lq-dash-card .head h3 { color: #E4E7EC !important; }
html[data-theme="dark"] .lq-dash-card .head .more { color: #60A5FA !important; }
html[data-theme="dark"] .lq-dash [style*="color:#101828"],
html[data-theme="dark"] .lq-dash [style*="color: #101828"] { color: #E4E7EC !important; }
html[data-theme="dark"] .lq-dash [style*="color:#667085"],
html[data-theme="dark"] .lq-dash [style*="color: #667085"] { color: #98A2B3 !important; }
html[data-theme="dark"] .lq-dash [style*="background:#fff"],
html[data-theme="dark"] .lq-dash [style*="background: #fff"] { background: #1A1D24 !important; }

html[data-theme="dark"] .lq-tx-item,
html[data-theme="dark"] .lq-pos-row {
    background: #14171D !important; border-color: #2D3139 !important;
}
html[data-theme="dark"] .lq-tx-item .nm,
html[data-theme="dark"] .lq-pos-row .nm { color: #E4E7EC !important; }
html[data-theme="dark"] .lq-tx-item .meta,
html[data-theme="dark"] .lq-pos-row .meta { color: #98A2B3 !important; }
html[data-theme="dark"] .lq-tx-item .ico.up { background: rgba(50, 213, 131, 0.12) !important; color: #32D583 !important; }
html[data-theme="dark"] .lq-tx-item .ico.dn { background: rgba(249, 112, 102, 0.12) !important; color: #F97066 !important; }
html[data-theme="dark"] .lq-tx-item .ico.neutral { background: rgba(83, 177, 253, 0.12) !important; color: #53B1FD !important; }
html[data-theme="dark"] .lq-tx-item .amt.up,
html[data-theme="dark"] .lq-mini-row .value.up { color: #32D583 !important; }
html[data-theme="dark"] .lq-tx-item .amt.dn,
html[data-theme="dark"] .lq-mini-row .value.dn { color: #F97066 !important; }
html[data-theme="dark"] .lq-tx-item .pill.success { background: rgba(50, 213, 131, 0.14) !important; color: #32D583 !important; }
html[data-theme="dark"] .lq-tx-item .pill.pending { background: rgba(247, 144, 9, 0.14) !important; color: #F79009 !important; }
html[data-theme="dark"] .lq-tx-item .pill.danger  { background: rgba(249, 112, 102, 0.14) !important; color: #F97066 !important; }
html[data-theme="dark"] .lq-pos-row .side.buy  { background: rgba(50, 213, 131, 0.14) !important; color: #32D583 !important; }
html[data-theme="dark"] .lq-pos-row .side.sell { background: rgba(249, 112, 102, 0.14) !important; color: #F97066 !important; }

html[data-theme="dark"] .lq-tabs {
    background: #14171D !important; border-color: #2D3139 !important;
}
html[data-theme="dark"] .lq-tab { color: #98A2B3 !important; }
html[data-theme="dark"] .lq-tab.active { background: #1A1D24 !important; color: #60A5FA !important; }
html[data-theme="dark"] .lq-tab:hover:not(.active) { color: #E4E7EC !important; }

html[data-theme="dark"] .lq-mini-row { border-bottom-color: #2D3139 !important; }
html[data-theme="dark"] .lq-mini-row .label { color: #98A2B3 !important; }
html[data-theme="dark"] .lq-mini-row .value { color: #E4E7EC !important; }

html[data-theme="dark"] .lq-empty { color: #667085 !important; }

html[data-theme="dark"] .lq-ref-link {
    background: rgba(37, 99, 235, 0.12) !important;
    border-color: rgba(96, 165, 250, 0.4) !important;
}
html[data-theme="dark"] .lq-ref-link input { color: #60A5FA !important; }
html[data-theme="dark"] .lq-ref-link button {
    background: #1A1D24 !important; border-color: #2D3139 !important; color: #E4E7EC !important;
}
html[data-theme="dark"] .lq-ref-link button:hover { border-color: #60A5FA !important; color: #60A5FA !important; }
html[data-theme="dark"] .lq-sentiment-gauge {
    background: conic-gradient(var(--sent-tone) var(--score-angle), #2D3139 0deg) !important;
}
html[data-theme="dark"] .lq-sentiment-inner {
    background: #1A1D24 !important;
    box-shadow: inset 0 0 0 1px #2D3139 !important;
}
html[data-theme="dark"] .lq-sentiment-inner span,
html[data-theme="dark"] .lq-sentiment-label,
html[data-theme="dark"] .lq-sentiment-meta b { color: #E4E7EC !important; }
html[data-theme="dark"] .lq-sentiment-inner small,
html[data-theme="dark"] .lq-sentiment-meta { color: #98A2B3 !important; }
html[data-theme="dark"] .lq-sentiment-meta b.up { color: #32D583 !important; }
html[data-theme="dark"] .lq-sentiment-meta b.dn { color: #F97066 !important; }

html[data-theme="dark"] .lq-alert {
    background: rgba(249, 112, 102, 0.08) !important;
    border-color: rgba(249, 112, 102, 0.30) !important;
    color: #FECDCA !important;
}
html[data-theme="dark"] .lq-alert .ico {
    background: rgba(249, 112, 102, 0.18) !important; color: #F97066 !important;
}
html[data-theme="dark"] .lq-alert strong,
html[data-theme="dark"] .lq-alert span { color: #FECDCA !important; }

html[data-theme="dark"] .lq-tx-list::-webkit-scrollbar-thumb { background: #2D3139 !important; }
html[data-theme="dark"] .lq-tx-list::-webkit-scrollbar-track { background: #14171D !important; }

html[data-theme="dark"] .lq-bento-grid .lq-dash-col {
    background: transparent !important;
    border-color: transparent !important;
}
html[data-theme="dark"] .lq-bento-grid .lq-dash-card {
    background:
        linear-gradient(180deg, rgba(26,29,36,0.94), rgba(20,23,29,0.86)) !important;
    border-color: #2D3139 !important;
    box-shadow: none !important;
}
html[data-theme="dark"] .lq-bento-grid .lq-dash-col > .lq-dash-card:not(.lq-chart-card),
html[data-theme="dark"] .lq-bento-grid .lq-dash-row > .lq-dash-card {
    background:
        linear-gradient(180deg, rgba(26,29,36,0.94), rgba(20,23,29,0.86)) !important;
    border-color: #2D3139 !important;
    box-shadow: none !important;
}
html[data-theme="dark"] .lq-bento-grid .lq-dash-card:hover {
    border-color: #3A3F4A !important;
}
html[data-theme="dark"] .lq-bento-grid .lq-dash-col > .lq-dash-card:not(.lq-chart-card):hover,
html[data-theme="dark"] .lq-bento-grid .lq-dash-row > .lq-dash-card:hover {
    background:
        linear-gradient(180deg, rgba(31,35,43,0.96), rgba(26,29,36,0.9)) !important;
    border-color: #3A3F4A !important;
}
html[data-theme="dark"] .lq-bento-grid .lq-chart-card {
    background: #14171D !important;
    border-color: #2D3139 !important;
}
html[data-theme="dark"] .lq-bento-grid .lq-module-pair {
    background: transparent !important;
    border: 0 !important;
}
html[data-theme="dark"] .lq-bento-grid .lq-tx-item,
html[data-theme="dark"] .lq-bento-grid .lq-pos-row {
    background: rgba(20,23,29,0.74) !important;
    border-color: #2D3139 !important;
}
html[data-theme="dark"] .lq-bento-grid .lq-tx-item:hover,
html[data-theme="dark"] .lq-bento-grid .lq-pos-row:hover,
html[data-theme="dark"] .lq-bento-grid .lq-mini-row:hover {
    background: rgba(26,29,36,0.58) !important;
}
html[data-theme="dark"] .lq-bento-grid .lq-mini-row {
    border-bottom-color: #2D3139 !important;
}
html[data-theme="dark"] .lq-bento-grid .lq-tabs {
    background: #14171D !important;
    border-color: #2D3139 !important;
}
html[data-theme="dark"] .lq-bento-grid .lq-tab.active {
    background: #1A1D24 !important;
    color: #60A5FA !important;
}

/* Legal pages (terms / privacy / withdrawal) ----------------------------- */

.lq-legal-hero {
  padding: clamp(28px, 5vw, 56px) 0 clamp(20px, 3vw, 32px);
  text-align: center;
}
.lq-legal-hero .lq-eyebrow { justify-content: center; }
.lq-legal-hero h1 {
  font-family: var(--lq-sans);
  font-weight: 700;
  font-size: clamp(32px, 5vw, 56px);
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--lq-text);
  margin: 14px 0 8px;
}
.lq-legal-hero h1 em { font-style: normal; color: var(--lq-accent); font-weight: 800; }
.lq-legal-hero .updated {
  color: var(--lq-text-3); font-family: var(--lq-mono); font-size: 12px;
  letter-spacing: 0.1em; text-transform: uppercase;
}

.lq-legal {
  background: var(--lq-elev-1);
  border: 1px solid var(--lq-line);
  border-radius: var(--lq-radius-lg);
  padding: clamp(28px, 4vw, 64px);
  margin-bottom: clamp(40px, 6vw, 80px);
  box-shadow: var(--lq-shadow-sm);
  max-width: 920px;
  margin-left: auto;
  margin-right: auto;
}
/* Reset legacy bootstrap-y classes that might be inside the body */
.lq-legal .about-hero { display: none; }
.lq-legal .container-fluid,
.lq-legal .container { padding: 0; margin: 0; max-width: none; }
.lq-legal .m-md-5,
.lq-legal .p-sm-5,
.lq-legal .my-5,
.lq-legal .mx-2,
.lq-legal .p-2 { margin: 0; padding: 0; }
.lq-legal h1, .lq-legal h2, .lq-legal h3, .lq-legal h4, .lq-legal h5, .lq-legal h6 {
  font-family: var(--lq-sans); font-weight: 700;
  color: var(--lq-text);
  letter-spacing: -0.015em;
  line-height: 1.25;
}
.lq-legal h1 { font-size: clamp(24px, 3vw, 32px); margin: 0 0 16px; }
.lq-legal h2 { font-size: clamp(22px, 2.6vw, 28px); margin: 32px 0 12px; padding-top: 16px; border-top: 1px solid var(--lq-line); }
.lq-legal h3 { font-size: clamp(19px, 2vw, 22px); margin: 28px 0 10px; }
.lq-legal h4, .lq-legal h5, .lq-legal h6 {
  font-size: 17px;
  margin: 22px 0 8px;
  color: var(--lq-accent);
  letter-spacing: 0.005em;
}
.lq-legal p {
  font-family: var(--lq-sans);
  color: var(--lq-text-2);
  font-size: 15.5px;
  line-height: 1.7;
  margin: 0 0 14px;
}
.lq-legal ul, .lq-legal ol {
  color: var(--lq-text-2);
  font-size: 15.5px;
  line-height: 1.7;
  padding-left: 22px;
  margin: 0 0 14px;
}
.lq-legal li { margin-bottom: 6px; }
.lq-legal a {
  color: var(--lq-accent); text-decoration: none;
  border-bottom: 1px solid rgba(37, 99, 235, 0.3);
  transition: border-color .2s, color .2s;
}
.lq-legal a:hover { color: var(--lq-accent-2); border-bottom-color: var(--lq-accent); }
.lq-legal strong { color: var(--lq-text); font-weight: 700; }
.lq-legal hr { border: 0; border-top: 1px solid var(--lq-line); margin: 28px 0; }
.lq-legal .color1 { color: var(--lq-accent) !important; }
.lq-legal .color2 { color: var(--lq-text) !important; }
.lq-legal .font-edu,
.lq-legal .font-poppins { font-family: var(--lq-sans) !important; }
.lq-legal table {
  width: 100%; border-collapse: collapse; margin: 14px 0; font-size: 14.5px;
}
.lq-legal th, .lq-legal td {
  text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--lq-line);
  color: var(--lq-text-2);
}
.lq-legal th { color: var(--lq-text); font-weight: 700; background: var(--lq-bg-2); }

/* ==========================================================================
   Marketing navbar (light) — replaces inline navbar style
   ========================================================================== */

body.lq-site .lq-nav {
  position: sticky; top: 0; left: 0; right: 0;
  z-index: 1030;
  background: rgba(255,255,255,0.92);
  backdrop-filter: saturate(160%) blur(16px);
  -webkit-backdrop-filter: saturate(160%) blur(16px);
  border-bottom: 1px solid var(--lq-line);
  box-shadow: 0 1px 0 rgba(255,255,255,0.6) inset;
}
.lq-nav-inner {
  max-width: var(--lq-container);
  margin: 0 auto;
  padding: 14px var(--lq-gutter);
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
}
.lq-nav-brand {
  display: inline-flex; align-items: center; gap: 10px;
  text-decoration: none; color: var(--lq-text);
  font-family: var(--lq-sans); font-weight: 700; font-size: 22px;
  letter-spacing: -0.02em;
}
.lq-nav-brand .brand-logo {
  width: 36px; height: 36px;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 4px 10px rgba(37, 99, 235, 0.20));
}
.lq-nav-brand .brand-word { line-height: 1; }
.lq-nav-menu {
  display: flex; align-items: center; gap: 24px;
  margin-left: auto;
}
.lq-nav-links {
  display: flex; align-items: center; gap: 6px;
  font-family: var(--lq-sans);
}
.lq-nav-links a {
  text-decoration: none; color: var(--lq-text-2); font-size: 14.5px; font-weight: 500;
  padding: 8px 14px; border-radius: 8px;
  transition: color .2s, background .2s;
}
.lq-nav-links a:hover { color: var(--lq-text); background: var(--lq-bg-2); }
.lq-nav-cta {
  display: flex; align-items: center; gap: 10px;
}
.lq-nav-cta .lq-btn { height: 40px; padding: 0 16px; font-size: 13.5px; }
.lq-nav-toggle {
  display: none;
  width: 40px; height: 40px;
  border: 1px solid var(--lq-line-2);
  background: #fff;
  border-radius: 10px;
  align-items: center; justify-content: center;
  cursor: pointer;
}
.lq-nav-toggle span {
  display: block; width: 18px; height: 1.5px; background: var(--lq-text);
  position: relative;
}
.lq-nav-toggle span::before, .lq-nav-toggle span::after {
  content: ""; position: absolute; left: 0; right: 0; height: 1.5px; background: var(--lq-text);
}
.lq-nav-toggle span::before { top: -6px; }
.lq-nav-toggle span::after  { top: 6px; }

@media (max-width: 880px) {
  .lq-nav-toggle { display: inline-flex; }
  .lq-nav-inner { position: relative; }
  .lq-nav-menu {
    position: absolute;
    top: 100%; left: 0; right: 0;
    margin: 0;
    flex-direction: column; align-items: stretch;
    gap: 0;
    background: #ffffff;
    border-top: 1px solid var(--lq-line);
    border-bottom: 1px solid var(--lq-line);
    box-shadow: 0 16px 28px -16px rgba(16, 24, 40, 0.18);
    padding: 12px var(--lq-gutter) 18px;
    display: none;
  }
  .lq-nav.open .lq-nav-menu { display: flex; }
  .lq-nav-menu .lq-nav-links {
    flex-direction: column; align-items: stretch; gap: 4px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--lq-line);
  }
  .lq-nav-menu .lq-nav-links a {
    padding: 12px 14px;
    color: var(--lq-text);
    font-size: 16px;
  }
  .lq-nav-menu .lq-nav-links a:hover {
    background: var(--lq-accent-soft); color: var(--lq-accent);
  }
  .lq-nav-menu .lq-nav-cta {
    flex-direction: column; align-items: stretch; gap: 10px;
    padding-top: 14px;
  }
  .lq-nav-menu .lq-nav-cta .lq-btn {
    width: 100%; justify-content: center; height: 46px;
  }
}

/* ==========================================================================
   Marketing footer (light)
   ========================================================================== */

.lq-footer {
  background: var(--lq-bg-2);
  border-top: 1px solid var(--lq-line);
  color: var(--lq-text-2);
  padding: clamp(40px, 5vw, 72px) 0 24px;
}
.lq-footer-inner {
  max-width: var(--lq-container);
  margin: 0 auto;
  padding: 0 var(--lq-gutter);
}
.lq-footer-top {
  display: grid;
  grid-template-columns: 5fr 2fr 2fr 3fr;
  gap: clamp(20px, 3vw, 48px);
  padding-bottom: 36px;
  border-bottom: 1px solid var(--lq-line);
}
.lq-footer h4 {
  font-family: var(--lq-mono); font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--lq-text-3); margin: 0 0 18px;
}
.lq-footer-brand .brand {
  font-family: var(--lq-sans); font-weight: 700;
  font-size: clamp(28px, 3.4vw, 40px); letter-spacing: -0.025em;
  color: var(--lq-text); margin: 0 0 14px;
  display: inline-flex; align-items: center; gap: 12px;
}
.lq-footer-brand .brand .brand-logo {
  width: 40px; height: 40px;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 4px 10px rgba(37, 99, 235, 0.20));
}
.lq-footer-brand p { font-family: var(--lq-sans); font-size: 14px; line-height: 1.6; color: var(--lq-text-2); max-width: 38ch; margin: 0; }
.lq-footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 9px; }
.lq-footer ul a {
  color: var(--lq-text-2); text-decoration: none; font-family: var(--lq-sans); font-size: 14px;
  border-bottom: 1px solid transparent; transition: color .2s, border-color .2s;
}
.lq-footer ul a:hover { color: var(--lq-accent); border-bottom-color: var(--lq-accent); }
.lq-footer-row { color: var(--lq-text-2); font-size: 14px; }
.lq-footer-row .ico { color: var(--lq-accent); margin-right: 10px; }
.lq-footer-bottom {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 24px; align-items: center;
  padding-top: 20px;
  font-family: var(--lq-mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--lq-text-3);
}
.lq-footer-bottom .center { text-align: center; }
.lq-footer-bottom a { color: var(--lq-text-3); text-decoration: none; }
.lq-footer-bottom a:hover { color: var(--lq-accent); }
@media (max-width: 880px) {
  .lq-footer-top { grid-template-columns: 1fr 1fr; }
  .lq-footer-brand { grid-column: 1 / -1; }
  .lq-footer-bottom { grid-template-columns: 1fr; text-align: center; gap: 8px; }
}
@media (max-width: 480px) {
  .lq-footer-top { grid-template-columns: 1fr; }
}
