/* Qihuook Luxe Theme — visual layer only */
:root {
  --gold: #f4c95d;
  --gold-dark: #d8a936;
  --gold-light: #ffe6a1;
  --gold-bg: rgba(244, 201, 93, .11);
  --navy: #f5d77e;
  --navy-light: #8da9ff;
  --primary: #63d8ff;
  --bg: #060b19;
  --bg-warm: #0b1225;
  --bg-header: rgba(7, 14, 32, .94);
  --bg-card: rgba(14, 26, 51, .82);
  --text: #edf4ff;
  --text-light: #c6d3eb;
  --text-dim: #8594b5;
  --border: rgba(139, 164, 219, .22);
  --border-light: rgba(139, 164, 219, .12);
  --shadow: 0 12px 34px rgba(0, 0, 0, .28);
  --shadow-lg: 0 24px 60px rgba(0, 0, 0, .42), 0 0 34px rgba(71, 132, 255, .12);
  --red: #ff6f91;
  --green: #52e0a4;
}

html { color-scheme: dark; background: #050814; }
body {
  position: relative;
  isolation: isolate;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 10% -5%, rgba(38, 93, 190, .42), transparent 34rem),
    radial-gradient(circle at 88% 18%, rgba(111, 51, 182, .24), transparent 32rem),
    radial-gradient(circle at 60% 100%, rgba(0, 177, 181, .12), transparent 34rem),
    linear-gradient(145deg, #050916 0%, #091126 48%, #060a16 100%) !important;
  background-attachment: fixed !important;
  color: var(--text) !important;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  opacity: .42;
  background-image:
    linear-gradient(rgba(118, 154, 219, .055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(118, 154, 219, .055) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(to bottom, #000, transparent 88%);
}
body::after {
  content: "";
  position: fixed;
  left: 50%;
  top: 10rem;
  width: 34rem;
  height: 34rem;
  z-index: -1;
  pointer-events: none;
  border-radius: 50%;
  transform: translateX(-50%);
  background: rgba(44, 128, 255, .055);
  filter: blur(70px);
}

::selection { background: rgba(244, 201, 93, .32); color: #fff; }
a { color: #8fddff; }
a:hover { color: var(--gold-light); }

/* Header + navigation */
.header {
  min-height: 72px;
  padding: 15px clamp(18px, 5vw, 68px) !important;
  background:
    linear-gradient(90deg, rgba(8, 17, 39, .98), rgba(18, 34, 68, .94) 52%, rgba(21, 17, 51, .96)) !important;
  border-bottom: 1px solid rgba(244, 201, 93, .25) !important;
  box-shadow: 0 12px 35px rgba(0, 0, 0, .34), inset 0 -1px rgba(255, 255, 255, .035) !important;
  backdrop-filter: blur(18px) saturate(140%);
}
.header::after {
  content: "";
  position: absolute;
  left: 5%;
  right: 5%;
  bottom: -1px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), #5ee4ff, transparent);
  opacity: .72;
}
.brand-area {
  display: flex;
  align-items: center;
  gap: 0;
  flex: 0 1 auto;
  min-width: 0;
  white-space: nowrap;
}

.logo {
  gap: 10px;
  font-size: 1.55rem !important;
  letter-spacing: .16em !important;
  text-shadow: 0 0 22px rgba(244, 201, 93, .26);
}
.logo::before {
  content: "Q";
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255, 229, 157, .72);
  border-radius: 12px;
  color: #071020;
  background: linear-gradient(145deg, #fff0b7, #e5b83f);
  box-shadow: 0 8px 22px rgba(217, 166, 42, .22), inset 0 1px #fff;
  font: 900 .9rem/1 Georgia, serif;
  letter-spacing: 0;
}
.logo span {
  color: #ffe9a9 !important;
  background: linear-gradient(100deg, #fff2bd, #dcae38 68%, #fff1ba);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.user-area {
  gap: 10px !important;
  flex: 0 0 auto;
  white-space: nowrap;
  flex-wrap: nowrap !important;
}
.btn {
  border-radius: 999px !important;
  padding: 9px 20px !important;
  letter-spacing: .04em;
  transition: transform .2s, box-shadow .2s, border-color .2s, background .2s !important;
}
.btn:hover { transform: translateY(-2px); }
.btn-outline {
  color: #dce8ff !important;
  border-color: rgba(183, 202, 239, .32) !important;
  background: rgba(255, 255, 255, .045) !important;
}
.btn-outline:hover { border-color: rgba(94, 228, 255, .66) !important; box-shadow: 0 0 20px rgba(94, 228, 255, .12); }
.btn-gold {
  color: #111625 !important;
  border: 1px solid #ffe29a !important;
  background: linear-gradient(135deg, #ffe8a7, #dca72f) !important;
  box-shadow: 0 8px 24px rgba(219, 169, 42, .2);
}
.btn-gold:hover { color: #070b14 !important; box-shadow: 0 12px 28px rgba(219, 169, 42, .32); }

.nav {
  position: sticky;
  top: 72px;
  z-index: 90;
  justify-content: center;
  gap: 5px !important;
  padding: 0 clamp(12px, 3vw, 34px) !important;
  background: rgba(8, 16, 34, .86) !important;
  border-bottom: 1px solid rgba(137, 164, 220, .18) !important;
  box-shadow: 0 8px 26px rgba(0, 0, 0, .18) !important;
  backdrop-filter: blur(16px) saturate(135%);
  scrollbar-width: thin;
}
.nav a {
  position: relative;
  padding: 14px 16px !important;
  color: #9caccb !important;
  border-bottom: 0 !important;
  border-radius: 10px 10px 0 0;
}
.nav a::after {
  content: "";
  position: absolute;
  left: 50%;
  right: 50%;
  bottom: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--gold), #65ddff);
  box-shadow: 0 0 12px rgba(244, 201, 93, .55);
  transition: left .22s, right .22s;
}
.nav a:hover, .nav a.active {
  color: #fff3c5 !important;
  background: linear-gradient(to top, rgba(244, 201, 93, .09), transparent) !important;
}
.nav a:hover::after, .nav a.active::after { left: 15%; right: 15%; }
.nav-toggle {
  color: #f6dda0 !important;
  background: rgba(8, 16, 34, .95) !important;
  border-color: rgba(137, 164, 220, .18) !important;
}

/* Shared content surfaces */
.container { max-width: 1180px !important; padding: 34px 20px !important; }
.card {
  position: relative;
  max-width: 1180px;
  margin: 30px auto 20px;
  padding: clamp(20px, 3vw, 30px) !important;
  color: var(--text) !important;
  background:
    linear-gradient(145deg, rgba(18, 33, 63, .88), rgba(8, 17, 37, .88)) !important;
  border: 1px solid rgba(135, 164, 224, .23) !important;
  border-radius: 20px !important;
  box-shadow: var(--shadow-lg) !important;
  backdrop-filter: blur(18px) saturate(130%);
  overflow: hidden;
}
.card::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 58%;
  height: 1px;
  background: linear-gradient(90deg, var(--gold), rgba(95, 222, 255, .6), transparent);
}
.card h2 {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #f8e7af !important;
  border-bottom-color: rgba(136, 165, 221, .16) !important;
  font-size: 1.08rem !important;
  letter-spacing: .035em;
}
.card h3 { color: #eaf2ff; }

/* Home hero */
body > .nav + div[style*="text-align:center"] {
  position: relative;
  max-width: 1140px;
  margin: 34px auto 22px !important;
  padding: clamp(48px, 7vw, 78px) 24px !important;
  overflow: hidden;
  border: 1px solid rgba(244, 201, 93, .23);
  border-radius: 26px;
  background:
    radial-gradient(circle at 20% 20%, rgba(38, 111, 218, .28), transparent 35%),
    radial-gradient(circle at 85% 10%, rgba(149, 63, 193, .18), transparent 32%),
    linear-gradient(130deg, rgba(17, 34, 66, .9), rgba(8, 17, 37, .86));
  box-shadow: 0 26px 80px rgba(0, 0, 0, .42), inset 0 1px rgba(255, 255, 255, .06);
}
body > .nav + div[style*="text-align:center"]::before {
  content: "MARKET INTELLIGENCE · LEARNING · TOOLS";
  display: block;
  margin-bottom: 16px;
  color: #75ddff;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .32em;
  text-shadow: 0 0 16px rgba(93, 217, 255, .4);
}
body > .nav + div[style*="text-align:center"]::after {
  content: "";
  position: absolute;
  width: 240px;
  height: 240px;
  right: -50px;
  top: -80px;
  border: 1px solid rgba(245, 210, 119, .15);
  border-radius: 50%;
  box-shadow: 0 0 0 28px rgba(245, 210, 119, .025), 0 0 0 56px rgba(100, 220, 255, .02);
}
body > .nav + div[style*="text-align:center"] h1 {
  position: relative;
  z-index: 1;
  color: #fff0b8 !important;
  font-size: clamp(2.5rem, 6vw, 4.6rem) !important;
  letter-spacing: .14em !important;
  line-height: 1.12;
  text-shadow: 0 4px 24px rgba(0, 0, 0, .4), 0 0 36px rgba(237, 190, 67, .16);
}
body > .nav + div[style*="text-align:center"] p {
  position: relative;
  z-index: 1;
  color: #aebbd5 !important;
  font-size: .9rem !important;
  letter-spacing: .45em !important;
}

.home-grid {
  max-width: 1140px !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 16px !important;
  margin-top: 64px !important;
  padding-top: 0 !important;
  padding-bottom: 30px;
}
.home-btn {
  min-height: 164px;
  padding: 24px 16px !important;
  border-radius: 20px !important;
  border-color: rgba(130, 160, 222, .23) !important;
  background:
    linear-gradient(145deg, rgba(22, 39, 75, .9), rgba(9, 19, 41, .92)) !important;
  box-shadow: 0 14px 34px rgba(0, 0, 0, .25), inset 0 1px rgba(255, 255, 255, .035) !important;
  isolation: isolate;
}
.home-btn::before {
  height: 2px !important;
  opacity: .72 !important;
  background: linear-gradient(90deg, transparent, var(--gold), #5ce1ff, transparent) !important;
}
.home-btn::after {
  content: "";
  position: absolute;
  inset: auto -20% -70% 25%;
  height: 150px;
  border-radius: 50%;
  background: rgba(45, 127, 255, .12);
  filter: blur(26px);
  z-index: -1;
  transition: transform .3s, opacity .3s;
}
.home-btn:hover {
  transform: translateY(-7px) scale(1.015) !important;
  border-color: rgba(244, 201, 93, .62) !important;
  box-shadow: 0 24px 50px rgba(0, 0, 0, .42), 0 0 28px rgba(67, 142, 255, .14) !important;
}
.home-btn:hover::after { transform: translateY(-16px); opacity: 1; }
.home-btn-icon {
  display: grid;
  place-items: center;
  width: 62px;
  height: 62px;
  border: 1px solid rgba(244, 201, 93, .22);
  border-radius: 18px;
  font-size: 2rem !important;
  background: linear-gradient(145deg, rgba(244, 201, 93, .13), rgba(95, 219, 255, .08));
  box-shadow: inset 0 1px rgba(255, 255, 255, .05), 0 12px 26px rgba(0, 0, 0, .24);
}
.home-btn-text { color: #edf3ff !important; font-size: .94rem !important; letter-spacing: .05em; }
.home-btn:nth-child(3n+2) .home-btn-icon { border-color: rgba(97, 220, 255, .26); background: linear-gradient(145deg, rgba(97, 220, 255, .15), rgba(95, 105, 255, .08)); }
.home-btn:nth-child(3n) .home-btn-icon { border-color: rgba(202, 117, 255, .25); background: linear-gradient(145deg, rgba(202, 117, 255, .13), rgba(255, 111, 145, .07)); }

/* Forms */
.form-group label { color: #a7b6d2 !important; }
.form-group input, .form-group select, input[type="text"], input[type="password"], select {
  color: #f0f5ff !important;
  background: rgba(4, 12, 29, .72) !important;
  border-color: rgba(130, 160, 221, .28) !important;
  border-radius: 10px !important;
}
.form-group input:focus, input[type="text"]:focus, input[type="password"]:focus, select:focus {
  outline: none;
  border-color: #5edcff !important;
  box-shadow: 0 0 0 3px rgba(94, 220, 255, .12), 0 0 20px rgba(94, 220, 255, .08) !important;
}
input[type="checkbox"] { accent-color: var(--gold); }
.alert-error { color: #ffb2bf !important; background: rgba(158, 35, 67, .18) !important; border-color: rgba(255, 105, 142, .28) !important; }
.alert-success { color: #8ff0c3 !important; background: rgba(31, 144, 102, .16) !important; border-color: rgba(76, 220, 162, .25) !important; }

/* Tables + data views */
table { color: #dbe6fa; }
th {
  color: #8fa2c5 !important;
  background: rgba(5, 13, 30, .52);
  border-bottom-color: rgba(244, 201, 93, .22) !important;
}
td { border-bottom-color: rgba(132, 158, 210, .11) !important; }
tr:hover td { background: rgba(91, 142, 228, .08) !important; }
.stat-up { color: var(--red) !important; }
.stat-down { color: var(--green) !important; }
.chart-box, .slider-box {
  background: rgba(4, 12, 28, .64) !important;
  border-color: rgba(126, 158, 220, .2) !important;
}
.inv-stat, .stat-card {
  background: linear-gradient(145deg, rgba(244, 201, 93, .11), rgba(65, 143, 255, .07)) !important;
  border-color: rgba(244, 201, 93, .18) !important;
  border-radius: 14px !important;
}
.inv-stat .v, .stat-card .v { color: #7bdeff !important; text-shadow: 0 0 20px rgba(94, 220, 255, .18); }
.prod-bar a, .ctrl-btn {
  color: #9daece !important;
  background: rgba(5, 13, 30, .64) !important;
  border-color: rgba(129, 158, 218, .24) !important;
}
.prod-bar a:hover, .prod-bar a.active, .ctrl-btn:hover, .ctrl-btn.active {
  color: #ffe9a4 !important;
  border-color: rgba(244, 201, 93, .58) !important;
  background: rgba(244, 201, 93, .1) !important;
  box-shadow: 0 0 18px rgba(244, 201, 93, .08);
}
.ex-title, .dropdown-group { color: #f2cb66 !important; }
.dropdown-trigger, .dropdown-panel {
  color: #dce8ff !important;
  background: rgba(7, 16, 35, .98) !important;
  border-color: rgba(137, 165, 222, .28) !important;
}
.dropdown-option { color: #9faecc !important; }
.dropdown-option:hover, .dropdown-option.selected { color: #ffe8a4 !important; background: rgba(244, 201, 93, .1) !important; }
.dual-range input[type=range]::-webkit-slider-runnable-track { background: linear-gradient(90deg, rgba(92, 221, 255, .36), rgba(244, 201, 93, .42)) !important; }

/* News utilities */
#searchInput { background: rgba(4, 12, 28, .72) !important; }
#backTop, #toast {
  background: linear-gradient(135deg, #f5d47c, #4bcfea) !important;
  color: #081020 !important;
  box-shadow: 0 12px 30px rgba(55, 160, 210, .24) !important;
}
#bottomBar { background: rgba(7, 15, 33, .95) !important; border-color: var(--border) !important; backdrop-filter: blur(16px); }
#bottomBar button { color: #f3d779 !important; }

/* Ebook catalogue */
.grid-3 {
  max-width: 1180px;
  margin: 0 auto 30px;
  padding: 0 20px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.grid-3 .card { height: 100%; margin: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 220px; }
.grid-3 .card .btn { margin-top: auto !important; }

.gauge-val { text-shadow: 0 0 28px currentColor; }
.temp-bar { box-shadow: 0 0 28px rgba(244, 201, 93, .12); }
.hover-info { color: #8fe5ff !important; }
.sub { color: var(--text-dim); text-align: center; font-size: .8rem; }

.footer {
  color: #7182a3 !important;
  border-top-color: rgba(137, 164, 219, .13) !important;
  background: rgba(5, 10, 24, .72) !important;
  backdrop-filter: blur(16px);
}
.footer strong { color: #efd079 !important; }

@media (max-width: 920px) {
  .home-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; padding-left: 14px; padding-right: 14px; }
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  body > .nav + div[style*="text-align:center"] { margin-left: 14px !important; margin-right: 14px !important; }
}

@media (max-width: 768px) {
  .header { min-height: 62px; padding: 10px 14px !important; gap: 8px; }
  .logo { font-size: 1.12rem !important; }
  .logo::before { width: 32px; height: 32px; border-radius: 10px; }
  .nav { top: 0; position: relative; background: rgba(7, 15, 33, .98) !important; }
  .nav a { border-bottom: 1px solid rgba(137, 164, 219, .1) !important; border-radius: 0; }
  .card { margin: 16px 12px; border-radius: 16px !important; }
  body > .nav + div[style*="text-align:center"] { padding: 42px 15px !important; border-radius: 20px; }
  body > .nav + div[style*="text-align:center"]::before { font-size: .58rem; letter-spacing: .18em; }
  body > .nav + div[style*="text-align:center"] h1 { font-size: 2.35rem !important; }
  .home-btn { min-height: 132px; }
  .home-btn-icon { width: 52px; height: 52px; font-size: 1.65rem !important; border-radius: 15px; }
  .grid-3 { grid-template-columns: 1fr; padding: 0 12px; }
  .grid-3 .card { margin: 0; }
}

@media (max-width: 430px) {
  .user-area { gap: 5px !important; font-size: .78rem !important; }
  .user-area .btn { padding: 7px 9px !important; font-size: .77rem; }
  .home-grid { gap: 10px !important; margin-top: 42px !important; padding-top: 0 !important; }
  .home-btn { min-height: 120px; padding: 16px 8px !important; }
  .home-btn-text { font-size: .8rem !important; }
  .stats, .inv-stats { grid-template-columns: 1fr !important; }
}

/* ===== Warm Ivory Theme v2 ===== */
:root {
  --gold: #d4a632;
  --gold-dark: #a97712;
  --gold-light: #f1ce6a;
  --gold-bg: rgba(212, 166, 50, .12);
  --navy: #234467;
  --navy-light: #3d668b;
  --primary: #2b678c;
  --bg: #fff7dc;
  --bg-warm: #ffedb8;
  --bg-header: rgba(255, 246, 214, .96);
  --bg-card: rgba(255, 253, 245, .92);
  --text: #253851;
  --text-light: #4f6278;
  --text-dim: #758397;
  --border: rgba(150, 111, 36, .25);
  --border-light: rgba(150, 111, 36, .13);
  --shadow: 0 10px 28px rgba(105, 75, 18, .10);
  --shadow-lg: 0 20px 54px rgba(105, 75, 18, .14), 0 0 28px rgba(230, 180, 61, .08);
  --red: #d84e62;
  --green: #168b68;
}

html { color-scheme: light; background: #fff6d8; }
body {
  color: var(--text) !important;
  background:
    radial-gradient(circle at 8% 0%, rgba(255, 206, 89, .38), transparent 32rem),
    radial-gradient(circle at 92% 15%, rgba(255, 157, 94, .18), transparent 30rem),
    radial-gradient(circle at 55% 100%, rgba(255, 218, 118, .26), transparent 35rem),
    linear-gradient(145deg, #fff9e8 0%, #fff3ce 52%, #fff8e6 100%) !important;
}
body::before {
  opacity: .58;
  background-image:
    linear-gradient(rgba(155, 113, 32, .06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(155, 113, 32, .06) 1px, transparent 1px);
}
body::after { background: rgba(255, 199, 64, .14); }
::selection { background: rgba(212, 166, 50, .28); color: #1c3048; }
a { color: #28688f; }
a:hover { color: #9b6c0d; }

.header {
  background:
    linear-gradient(90deg, rgba(255, 249, 229, .98), rgba(255, 239, 189, .97) 50%, rgba(255, 247, 220, .98)) !important;
  border-bottom-color: rgba(169, 119, 18, .28) !important;
  box-shadow: 0 10px 30px rgba(103, 72, 12, .11), inset 0 -1px rgba(255, 255, 255, .8) !important;
}
.header::after { background: linear-gradient(90deg, transparent, #c6921f, #f5cb5c, transparent); opacity: .75; }
.logo { text-shadow: none; }
.logo::before {
  color: #fff8df;
  border-color: #234467;
  background: linear-gradient(145deg, #315a80, #173752);
  box-shadow: 0 8px 20px rgba(31, 65, 95, .18), inset 0 1px rgba(255, 255, 255, .22);
}
.logo span {
  color: #274766 !important;
  background: linear-gradient(100deg, #1c3855, #406b8c 66%, #1c3855);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.btn-outline {
  color: #31536f !important;
  border-color: rgba(48, 84, 113, .28) !important;
  background: rgba(255, 255, 255, .52) !important;
}
.btn-outline:hover { color: #183852 !important; border-color: #315f7e !important; background: #fff !important; box-shadow: 0 8px 20px rgba(43, 93, 126, .12); }
.user-area {
  color: #244762 !important;
  font-weight: 700 !important;
  text-shadow: 0 1px rgba(255, 255, 255, .8);
}
.btn-gold {
  color: #fff9e8 !important;
  border-color: #214867 !important;
  background: linear-gradient(135deg, #315f82, #173a56) !important;
  box-shadow: 0 8px 20px rgba(31, 71, 103, .18);
}
.btn-gold:hover { color: #fff !important; box-shadow: 0 12px 26px rgba(31, 71, 103, .26); }

.nav {
  background: rgba(255, 252, 239, .9) !important;
  border-bottom-color: rgba(166, 126, 46, .19) !important;
  box-shadow: 0 7px 20px rgba(107, 76, 19, .07) !important;
}
.nav a { color: #68768a !important; }
.nav a::after { background: linear-gradient(90deg, #c99623, #eabe4a); box-shadow: 0 0 10px rgba(200, 150, 31, .24); }
.nav a:hover, .nav a.active {
  color: #274865 !important;
  background: linear-gradient(to top, rgba(225, 179, 64, .14), transparent) !important;
}
.nav-toggle {
  color: #294b67 !important;
  background: rgba(255, 250, 231, .97) !important;
  border-color: rgba(166, 126, 46, .2) !important;
}

.card {
  color: var(--text) !important;
  background:
    linear-gradient(145deg, rgba(255, 255, 251, .96), rgba(255, 248, 226, .94)) !important;
  border-color: rgba(166, 126, 46, .22) !important;
  box-shadow: var(--shadow-lg) !important;
}
.card::before { background: linear-gradient(90deg, #c79524, rgba(238, 193, 81, .72), transparent); }
.card h2 { color: #274865 !important; border-bottom-color: rgba(161, 119, 38, .15) !important; }
.card h3 { color: #2a425c; }

body > .nav + div[style*="text-align:center"] {
  border-color: rgba(166, 124, 38, .25);
  background:
    radial-gradient(circle at 15% 15%, rgba(255, 214, 112, .28), transparent 36%),
    radial-gradient(circle at 86% 5%, rgba(255, 168, 99, .15), transparent 33%),
    linear-gradient(130deg, rgba(255, 253, 242, .96), rgba(255, 239, 199, .92));
  box-shadow: 0 24px 60px rgba(106, 76, 17, .13), inset 0 1px rgba(255, 255, 255, .9);
}
body > .nav + div[style*="text-align:center"]::before { color: #b07712; text-shadow: none; }
body > .nav + div[style*="text-align:center"]::after {
  border-color: rgba(165, 119, 29, .15);
  box-shadow: 0 0 0 28px rgba(212, 166, 50, .04), 0 0 0 56px rgba(255, 184, 76, .025);
}
body > .nav + div[style*="text-align:center"] h1 {
  color: #254866 !important;
  text-shadow: 0 4px 20px rgba(112, 76, 13, .08) !important;
}
body > .nav + div[style*="text-align:center"] p { color: #7c715e !important; }

.home-btn {
  border-color: rgba(156, 116, 39, .22) !important;
  background: linear-gradient(145deg, rgba(255, 255, 252, .98), rgba(255, 245, 215, .94)) !important;
  box-shadow: 0 13px 32px rgba(108, 76, 17, .1), inset 0 1px rgba(255, 255, 255, .95) !important;
}
.home-btn::before { background: linear-gradient(90deg, transparent, #cb9824, #f0ca64, transparent) !important; }
.home-btn::after { background: rgba(242, 183, 48, .15); }
.home-btn:hover {
  border-color: rgba(184, 132, 24, .55) !important;
  box-shadow: 0 23px 46px rgba(108, 76, 17, .16), 0 0 24px rgba(229, 177, 50, .12) !important;
}
.home-btn-icon {
  border-color: rgba(165, 120, 31, .23);
  background: linear-gradient(145deg, rgba(255, 222, 132, .34), rgba(255, 255, 255, .75));
  box-shadow: inset 0 1px rgba(255, 255, 255, .9), 0 10px 24px rgba(120, 82, 12, .1);
}
.home-btn:nth-child(3n+2) .home-btn-icon { border-color: rgba(66, 130, 166, .23); background: linear-gradient(145deg, rgba(182, 230, 241, .42), rgba(255, 255, 255, .78)); }
.home-btn:nth-child(3n) .home-btn-icon { border-color: rgba(194, 127, 75, .24); background: linear-gradient(145deg, rgba(255, 206, 170, .4), rgba(255, 255, 255, .76)); }
.home-btn-text { color: #294962 !important; }

.form-group label { color: #68788b !important; }
.form-group input, .form-group select, input[type="text"], input[type="password"], select {
  color: #263a52 !important;
  background: rgba(255, 255, 252, .96) !important;
  border-color: rgba(148, 112, 41, .28) !important;
}
.form-group input:focus, input[type="text"]:focus, input[type="password"]:focus, select:focus {
  border-color: #ca9828 !important;
  box-shadow: 0 0 0 3px rgba(212, 166, 50, .14), 0 8px 20px rgba(123, 87, 20, .06) !important;
}
.alert-error { color: #a83448 !important; background: #fff0f1 !important; border-color: #f0c4cb !important; }
.alert-success { color: #157552 !important; background: #ecfbf3 !important; border-color: #bde8d2 !important; }

/* Bright chart and data surfaces: axes and grids remain legible */
.chart-box, .slider-box {
  background: #fffdf7 !important;
  border-color: rgba(139, 105, 39, .25) !important;
  box-shadow: inset 0 1px rgba(255, 255, 255, .95), 0 8px 22px rgba(102, 74, 21, .06);
}
.chart-box canvas { background: #fffdf7 !important; border-radius: 8px; }
.inv-stat, .stat-card {
  background: linear-gradient(145deg, #fff7dc, #fffdf5) !important;
  border-color: rgba(179, 132, 35, .2) !important;
}
.inv-stat .v, .stat-card .v { color: #2e678b !important; text-shadow: none; }
table { color: #33465c; }
th { color: #68778a !important; background: rgba(248, 230, 180, .35); border-bottom-color: rgba(168, 122, 29, .23) !important; }
td { border-bottom-color: rgba(148, 109, 34, .12) !important; }
tr:hover td { background: rgba(245, 211, 124, .19) !important; }
.prod-bar a, .ctrl-btn { color: #607187 !important; background: rgba(255, 252, 242, .92) !important; border-color: rgba(145, 108, 37, .24) !important; }
.prod-bar a:hover, .prod-bar a.active, .ctrl-btn:hover, .ctrl-btn.active { color: #8a5e08 !important; border-color: rgba(193, 142, 31, .58) !important; background: rgba(244, 207, 110, .2) !important; }
.dropdown-trigger, .dropdown-panel { color: #354b63 !important; background: #fffdf6 !important; border-color: rgba(145, 108, 37, .25) !important; }
.dropdown-option { color: #68768a !important; }
.dropdown-option:hover, .dropdown-option.selected { color: #8b5e08 !important; background: rgba(242, 205, 105, .2) !important; }
#searchInput { background: #fffdf7 !important; }
#backTop, #toast { background: linear-gradient(135deg, #e0b347, #f6d675) !important; color: #26384a !important; box-shadow: 0 10px 26px rgba(153, 108, 18, .18) !important; }
#bottomBar { background: rgba(255, 250, 232, .96) !important; }
#bottomBar button { color: #8c620e !important; }
.hover-info { color: #2e678b !important; }

.footer {
  color: #8490a0 !important;
  border-top-color: rgba(157, 116, 36, .14) !important;
  background: rgba(255, 248, 224, .82) !important;
}
.footer strong { color: #7d5a14 !important; }

@media (max-width: 768px) {
  .nav { background: rgba(255, 249, 228, .99) !important; }
}

.logo .logo-flash,
.logo-flash.logo-course-link {
  display: inline-block;
  margin-left: -1px;
  padding: 6px 10px 6px 3px;
  border: 2px solid rgba(255, 90, 0, .72);
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(255, 246, 212, .98), rgba(255, 213, 126, .92));
  color: #ff5a00;
  font-size: 1em;
  font-style: normal;
  font-weight: 900;
  letter-spacing: 2px;
  line-height: 1;
  white-space: nowrap;
  box-shadow: 0 8px 18px rgba(171, 94, 0, .16), inset 0 1px rgba(255, 255, 255, .9);
  text-shadow: none;
  animation: qhkLogoFlash .9s steps(2, start) infinite;
}

.logo-flash.logo-course-link:hover {
  color: #d43e00 !important;
  border-color: rgba(212, 62, 0, .92);
  background: linear-gradient(135deg, #fff2bd, #ffc963);
  transform: translateY(-1px);
}

@keyframes qhkLogoFlash {
  0%, 49% {
    opacity: 1;
  }
  50%, 100% {
    opacity: .18;
  }
}

@media (max-width: 768px) {
  .logo .logo-flash,
  .logo-flash.logo-course-link {
    margin-left: 0;
    padding: 5px 7px 5px 2px;
    font-size: 1em;
    border-radius: 10px;
  }
}

/* Mobile menu floats over the page instead of pushing content down */
@media (max-width: 768px) {
  .nav-toggle {
    position: relative;
    z-index: 10001;
  }

  .nav {
    position: fixed !important;
    left: 12px !important;
    right: 12px !important;
    top: 104px !important;
    z-index: 10000 !important;
    max-height: calc(100vh - 124px);
    overflow-y: auto;
    padding: 8px !important;
    border: 1px solid rgba(166, 126, 46, .22) !important;
    border-radius: 16px !important;
    background: rgba(255, 250, 231, .98) !important;
    box-shadow: 0 18px 46px rgba(106, 76, 17, .18) !important;
  }

  .nav a {
    border-radius: 10px !important;
  }
}

.free-course-card {
  max-width: 920px;
}

.free-course-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: clamp(26px, 5vw, 44px);
  border: 1px solid rgba(180, 130, 30, .22);
  border-radius: 24px;
  background:
    radial-gradient(circle at 12% 18%, rgba(255, 221, 126, .36), transparent 34%),
    linear-gradient(135deg, #fff8dd, #fffdf6);
  box-shadow: 0 18px 42px rgba(118, 82, 13, .1), inset 0 1px rgba(255, 255, 255, .9);
}

.free-course-kicker {
  margin: 0 0 12px;
  color: #b07410;
  font-size: .86rem;
  font-weight: 800;
  letter-spacing: .18em;
}

.free-course-hero h1 {
  margin: 0;
  color: #264a66;
  font-size: clamp(1.9rem, 5vw, 3.2rem);
  line-height: 1.18;
  letter-spacing: .03em;
}

.free-course-slogan {
  margin: 16px 0 0;
  color: #e15718;
  font-size: clamp(1.1rem, 3vw, 1.55rem);
  font-weight: 900;
}

.free-course-content {
  margin: 30px 0;
  color: #33465c;
  font-size: 1.05rem;
  line-height: 2;
}

.free-course-content p {
  margin: 0 0 20px;
  text-indent: 2em;
}

.free-course-qr {
  margin: 28px auto 4px;
  max-width: 520px;
  padding: 22px;
  text-align: center;
  border: 1px solid rgba(180, 130, 30, .22);
  border-radius: 22px;
  background: #fffdf6;
  box-shadow: 0 12px 30px rgba(108, 76, 17, .09);
}

.free-course-qr img {
  display: block;
  width: min(440px, 100%);
  height: auto;
  margin: 0 auto 14px;
  border-radius: 14px;
}

.free-course-qr p {
  margin: 12px 0 0;
  color: #40566d;
  font-weight: 700;
}

.free-course-qr strong {
  color: #d04d14;
}

.free-course-qr-placeholder {
  display: flex;
  width: min(260px, 100%);
  aspect-ratio: 1 / 1;
  margin: 0 auto 14px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 10px;
  color: #9a6c15;
  border: 2px dashed rgba(180, 130, 30, .36);
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(255, 246, 215, .9), rgba(255, 255, 250, .95));
}

.free-course-qr-placeholder span {
  font-size: 1.3rem;
  font-weight: 900;
}

.free-course-qr-placeholder small {
  color: #8a7a61;
}

@media (max-width: 768px) {
  .free-course-card {
    margin-left: 12px;
    margin-right: 12px;
  }

  .free-course-content {
    font-size: .98rem;
    line-height: 1.85;
  }
}

.user-area a[href="/register.php"].btn-gold {
  color: #244762 !important;
  background: transparent !important;
  border: 1px solid rgba(36, 71, 98, .28) !important;
  box-shadow: none !important;
}

.user-area a[href="/register.php"].btn-gold:hover {
  color: #244762 !important;
  background: transparent !important;
  border-color: rgba(36, 71, 98, .45) !important;
  box-shadow: none !important;
  transform: none !important;
}


/* Free course: first menu item and homepage red flashing button */
.nav a.nav-free-course {
  color: #e53935 !important;
  text-shadow: 0 0 8px rgba(229, 57, 53, .18);
  animation: qhkRedTextFlash .82s steps(2, start) infinite;
}
.nav a.nav-free-course:hover,
.nav a.nav-free-course.active {
  color: #e53935 !important;
  background: rgba(229, 57, 53, .1) !important;
}
.nav a.nav-free-course::after {
  background: linear-gradient(90deg, #ff2d2d, #ff8a65) !important;
  box-shadow: 0 0 12px rgba(229, 57, 53, .38) !important;
}
.home-btn.home-btn-free {
  border-color: rgba(229, 57, 53, .48) !important;
  background: linear-gradient(145deg, #ff3b30, #d91f1f) !important;
  color: #fff !important;
  box-shadow: 0 14px 34px rgba(229, 57, 53, .28), inset 0 1px rgba(255,255,255,.42) !important;
  animation: qhkRedButtonFlash .82s steps(2, start) infinite;
}
.home-btn.home-btn-free::before {
  background: linear-gradient(135deg, rgba(255,255,255,.24), transparent 52%) !important;
  opacity: 1 !important;
}
.home-btn.home-btn-free .home-btn-icon,
.home-btn.home-btn-free .home-btn-text {
  color: #fff !important;
  text-shadow: 0 2px 8px rgba(95, 0, 0, .28);
}
.home-btn.home-btn-free .home-btn-text {
  letter-spacing: .08em;
}
.home-btn.home-btn-free:hover {
  transform: translateY(-5px);
  box-shadow: 0 18px 42px rgba(229, 57, 53, .38), inset 0 1px rgba(255,255,255,.48) !important;
}
@keyframes qhkRedTextFlash {
  0%, 49% { opacity: 1; }
  50%, 100% { opacity: .45; }
}
@keyframes qhkRedButtonFlash {
  0%, 49% { filter: brightness(1.08); }
  50%, 100% { filter: brightness(.72); }
}


/* Keep menu in one row; 免费课程 follows 首页 */
.nav {
  flex-wrap: nowrap !important;
  align-items: center !important;
}
.nav a {
  flex: 0 0 auto !important;
}
.nav a.nav-free-course {
}
@media (max-width: 768px) {
  .nav {
    align-items: stretch !important;
  }
}


/* Unified 免费课程 menu style for homepage and inner pages */
.nav > a.nav-free-course,
.nav > a.nav-free-course:visited,
.nav > a.nav-free-course:hover,
.nav > a.nav-free-course.active {
  color: #e53935 !important;
  text-shadow: 0 0 8px rgba(229, 57, 53, .18) !important;
  animation: qhkRedTextFlash .82s steps(2, start) infinite !important;
}
.nav > a.nav-free-course:hover,
.nav > a.nav-free-course.active {
  background: rgba(229, 57, 53, .1) !important;
}
.nav > a.nav-free-course::after {
  background: linear-gradient(90deg, #ff2d2d, #ff8a65) !important;
  box-shadow: 0 0 12px rgba(229, 57, 53, .38) !important;
}


/* Final override: 免费课程 menu font matches other menu items exactly */
.nav > a.nav-free-course,
.nav > a.nav-free-course:visited,
.nav > a.nav-free-course:hover,
.nav > a.nav-free-course.active {
  font-size: 0.84em !important;
  font-weight: 600 !important;
  letter-spacing: normal !important;
  color: #e53935 !important;
  animation: qhkRedTextFlash .82s steps(2, start) infinite !important;
}
@media (max-width: 768px) {
  .nav > a.nav-free-course,
  .nav > a.nav-free-course:visited,
  .nav > a.nav-free-course:hover,
  .nav > a.nav-free-course.active {
    font-size: 0.84em !important;
    font-weight: 600 !important;
  }
}





/* Header and menu move together as one fixed top block */
.topbar-fixed-wrap {
  position: sticky !important;
  top: 0 !important;
  z-index: 10000 !important;
}
.topbar-fixed-wrap .header {
  position: relative !important;
  top: auto !important;
  left: auto !important;
  right: auto !important;
  z-index: auto !important;
}
.topbar-fixed-wrap .nav-toggle {
  position: static !important;
  top: auto !important;
  left: auto !important;
  right: auto !important;
}
.topbar-fixed-wrap .nav {
  position: relative !important;
  top: auto !important;
  left: auto !important;
  right: auto !important;
  width: 100% !important;
  z-index: auto !important;
}
body {
  padding-top: 0 !important;
}
@media (max-width: 768px) {
  .topbar-fixed-wrap .nav {
    position: fixed !important;
    top: 104px !important;
    left: 12px !important;
    right: 12px !important;
    width: auto !important;
    z-index: 10001 !important;
  }
}


/* Homepage share tip between menu and buttons */
.home-share-tip {
  max-width: 1140px;
  margin: 28px auto -56px;
  padding: 0 20px;
  text-align: center;
  color: #274766;
  font-size: clamp(1.05rem, 2.5vw, 1.35rem);
  font-weight: 800;
  letter-spacing: .12em;
}
@media (max-width: 768px) {
  .home-share-tip {
    margin: 18px auto -32px;
    font-size: 1rem;
  }
}
