/* Dreamy anime theme. Market direction colors and data layouts stay semantic. */
:root {
  --bg: #f9f5fc; --panel: #ffffff; --panel2: #f5effb; --panel3: #eee5f7;
  --line: #e9def2; --line2: #d8c5e8; --text: #382c48; --text2: #584b67; --muted: #786987;
  --accent: #9562c9; --accent2: #b37cdb; --accent-bg: #9562c910; --radius: 18px;
  --anime-shadow: 0 6px 26px #81609b0a;
}
html { background: var(--bg); scrollbar-color: #d8c5e8 var(--bg); }
body {
  background: radial-gradient(ellipse at 95% 8%, #f7e8f4 0, transparent 38%),
    radial-gradient(ellipse at 28% 35%, #eeebff80 0, transparent 45%), var(--bg);
}
::selection { color: #57397a; background: #ead7f7; }
body::before { background: linear-gradient(180deg, #fffafd, #faf5ff 65%, #f2edfc); border-right-color: #e9def2; }
header { background: #fffcfff5; border-bottom-color: var(--line); backdrop-filter: none; -webkit-backdrop-filter: none; }
.brand .logo { border: 2px solid #ffffff; border-radius: 13px; box-shadow: 0 3px 14px #a877cf26; }
.brand-name { color: #443153; }
.brand-si { color: var(--accent); }
.brand-caption { color: #9478aa; letter-spacing: 1px; }
.workspace-title, .workspace-title b, .status .st b { color: #6b567f; }
.workspace-divider { color: #d8bee9; }
.pill { border-radius: 999px; }
.pill.idle { color: #8659b1; border-color: #e3d3ef; background: #f4ebfc; }
nav { scrollbar-color: #d7c1e8 transparent; }
.nav-group { color: #8a6e9e; }
.nav-group > span { color: #b399c6; letter-spacing: 1.1px; }
nav a, nav a:first-child { border-radius: 12px; color: #776386; }
nav a:hover { color: #8251ae; background: #f1e7fa; }
nav a.active { color: #8553b2; border-color: #e5d1f4; background: linear-gradient(100deg, #eee3fb, #faedf5); box-shadow: 0 3px 10px #a276bf0a; }
nav a.active::before { display: none; }
.nav-icon { color: #9c73b8; }
nav a.active .nav-icon { color: #8b51bd; }
.nav-code, nav a.active .nav-code { color: #a084b4; }
.vip-badge { color: #9b6d33; border-color: #f1debb; background: #fff7e6; border-radius: 6px; }
.vis-mini { color: #84708e; border-color: #e9d9f2; border-radius: 17px; background: #fffcff; box-shadow: var(--anime-shadow); }
.vis-mini:hover { border-color: #cfb1e7; }
.vis-mini .vm-cum b { color: #735093; }

/* Text headings share the full width on every screen. */
.page-head { display: grid; grid-template-columns: minmax(0, 1fr); align-items: center; gap: 20px; min-height: 0; padding: 22px 28px; border: 1px solid #e6d5f0; border-radius: 22px; background: linear-gradient(110deg, #fffafd, #f5edfd 65%, #f8eaf4); box-shadow: var(--anime-shadow); overflow: hidden; }
.page-head h1 { color: #4a315f; font-weight: 700; letter-spacing: .2px; }
.page-head p { color: #7c688c; }
.page-head-copy { position: relative; z-index: 2; }
.page-head .page-eyebrow { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; color: #9d70b7; font-size: 9px; letter-spacing: 1.2px; }
.signal-dot { width: 7px; height: 7px; background: #d298c3; box-shadow: 0 0 0 4px #d298c314; }
.eyebrow-index { color: #ad8ebd; }
.page-head.home { position: relative; grid-template-columns: minmax(0, 1fr); min-height: 0; gap: 10px; padding: 36px 38px 22px; border-color: #e6d5f0; border-radius: 25px; background: radial-gradient(ellipse at 85% 35%, #f2d9ec90, transparent 48%), linear-gradient(115deg, #fffdfb, #f5edff 60%, #f9e8f2); box-shadow: 0 12px 36px #8f62ae0a; }
.page-head.home .page-eyebrow { margin-bottom: 20px; color: #9564ac; font-size: 10px; letter-spacing: 1.5px; }
.page-head.home h1 { max-width: 15em; color: #49315f; font-size: clamp(28px, 2.5vw, 38px); font-weight: 750; line-height: 1.55; letter-spacing: 1px; }
.page-head.home p { max-width: 48ch; color: #7c678a; font-size: 13px; }
.page-head.home .home-actions { margin-top: 24px; }
.page-head.home .hero-facts { gap: 26px; margin-top: 27px; padding-top: 19px; border-top: 1px dashed #d9c3e7; }
.hero-facts b { color: #80549e; }
.hero-facts small { color: #9b83aa; }


/* Quiet white surfaces keep the market information easy to read. */
.card, .mkt .card, a.dg, .membership-gate, .evo-lock, .bt-history-figure { border-color: var(--line); border-radius: 18px; background: #fffdfef5; box-shadow: var(--anime-shadow); }
.card h3, .mkt-head h3, .about .about-title, .cm-head b, .bt-history-figure h3 { color: #554065; }
.card h2, .sec-title h2, .section-topline h2 { color: #513c65; }
.sec-title h2::before { width: 7px; height: 14px; border-radius: 5px; background: linear-gradient(#d59bc8, #a480d0); }
.section-note, .sec-title > span, .mkt-sub, .mkt-head .sym { color: #8a7499; }
.mkt-price .price { color: #4f3d61; font-weight: 600; }
.chart .grid-line { stroke: #dfd3e8; }
.chart .axis-text { fill: #887494; }
.chart .tip, .vis-map .tip, .bt-history-tip { border-color: #e3d0ed; border-radius: 12px; box-shadow: 0 8px 24px #875a9f14; }
.view, .coin .box, .box { background: #fbf7ff; border-color: var(--line); border-radius: 13px; }
.research-note { background: #fffdfef5; }
.research-note summary, .strategy-brief summary { color: #6e4e89; }
.prediction-time-banner { border-color: #e3d3f2; border-left-color: #ae84cf; border-radius: 14px; background: linear-gradient(100deg, #f1e9fc, #fcf0f7); color: #75528f; }
.prediction-time-banner strong { color: #78519a; }
.prediction-time-banner strong small, .prediction-time-banner > span:last-child { color: #9a7ba8; }
.tablewrap { border-color: var(--line); border-radius: 13px; scrollbar-color: #d6c0e8 #faf6ff; }
th { background: #f5eefb; color: #80568f; }
th, td { border-bottom-color: #efe5f5; }
tbody tr:nth-child(even):not(.detail) { background: #fdf9ff; }
tr.row:hover { background: #f4eafd; }
tr.detail td { background: #fffdfd; box-shadow: inset 2px 0 0 #cfa9e4; }
.nm { color: #51405f; }
.rk { border-radius: 7px; background: #f2e9fa; color: #9471ad; }
.rk.t1, .rk.t2, .rk.t3 { background: #fff0df; color: #ac7c43; }
.conf i, .conf i b { border-radius: 999px; }
.conf i { background: #eddef5; }
.conf i b { background: linear-gradient(90deg, #bd9cde, #d99dc5); }
.dg-head > span, .dg-more { color: #a080b2; }
a.dg:hover { border-color: #d0afe7; background: #fffaff; box-shadow: 0 8px 25px #9666b712; }
.event-watch { border-color: #ead8e8; border-radius: 18px; background: linear-gradient(120deg, #fff9fc, #fffdfd); }
.event-watch h2, .event-watch h3 { color: #a06386; }
.event-watch li { border-color: #f0e1ed; }
.event-watch .event-market { color: #a67a9a; }
.bt-highlights { border-color: #efdfcb; border-radius: 18px; background: linear-gradient(120deg, #fffdf8, #fff6ed); }
.bt-highlights .bth-result { border-color: #f1e2d2; border-radius: 12px; background: #fffdf9; }
.bt-highlights .bth-result:hover { background: #fff4e8; border-color: #e9cfaa; }
.bt-highlights .bth-title { color: #a77947; }
.runinfo { border-color: var(--line); border-radius: 14px; background: #fffdfd; }
.runinfo .meta + .meta { border-top-color: var(--line); }

/* Ribbon-like buttons, soft chips, and a centered follow invitation. */
button, .button-primary, .button-secondary, #panel-OPEN .cta { border-radius: 12px; }
button, .button-primary, #panel-OPEN .cta { background: #9060b0; border-color: #9060b0; }
.button-primary { background: linear-gradient(110deg, #8e5cad, #9b609d); box-shadow: 0 5px 14px #aa7ac52b; }
.button-primary:hover { background: #8153a1; color: #fff; }
.button-secondary, button.ghost { color: #89659e; border-color: #e4d4ee; background: #fffcff; }
.button-secondary:hover, button.ghost:hover:not(:disabled) { color: #8755aa; border-color: #d3b7e6; background: #f6edff; }
.toggle { background: #f1e8f8; border-color: #e6d7f0; border-radius: 12px; }
.toggle a { color: #9b80ac; border-radius: 9px; }
.toggle a.active { color: #9563b5; background: #fffdfd; box-shadow: 0 2px 6px #9061b00d; }
.toggle a:hover { color: #805099; }
.risk, .side, .ag { border-radius: 7px; }
.ag.both { color: #9566b9; background: #f4eafb; }
.global-follow-bar { border-color: #ebd9ef; border-radius: 18px; background: linear-gradient(100deg, #fff9fc, #f6edfd 50%, #fff8fb); }
.follow-copy strong { color: #896099; }
.follow-copy > span { color: #866695; }
.follow-mascot { filter: hue-rotate(38deg) saturate(.65); }
a.global-x-follow, .about a.contact-link--follow { background: linear-gradient(110deg, #8e5cad, #9b609d); border-color: #a27dba; box-shadow: 0 3px 10px #ad7ac51a; }
a.global-x-follow:hover, .about a.contact-link--follow:hover { background: #8153a1; border-color: #8153a1; box-shadow: 0 4px 14px #ad7ac52b; }
a.global-x-follow:focus-visible, .about a.contact-link--follow:focus-visible { outline-color: #b083d0; }
.about .contact-link { border-color: var(--line); border-radius: 12px; color: #8b6a9c; }
.about .contact-link:hover { background: #fbf4ff; border-color: #cfb3e1; }
.membership-gate { background: radial-gradient(ellipse at 100% 0, #f6eafb, transparent 60%), #fffdfd; }
.gate-icon { color: #aa80c5; background: #f4eafa; border-radius: 14px; }
.gate-contact, .gate-contact code { color: #90749f; }
.vip-notice { border-color: #e8d7ef; border-radius: 22px; background: linear-gradient(120deg, #fffafb, #f8f0ff); }
.vip-notice h2 { color: #7e558f; font-weight: 650; }
.vip-annual { border-color: #e6cfed; border-radius: 15px; background: #fffcffb8; }
.vip-plan-label, .vip-savings { color: #9a79a6; }
.vip-price { color: #aa78bd; }
dialog { background: #fffbff !important; border-color: #e1cbed !important; border-radius: 22px !important; box-shadow: 0 24px 90px #72508730; }
dialog::backdrop { background: #6e4d7f45; }
.cm-form textarea, .cm-form input, .cm-form select, .tokbox input { border-color: #e2cfee; border-radius: 12px; background: #fffcff; color: var(--text); }
input:focus, textarea:focus, select:focus { box-shadow: 0 0 0 3px #b98ad522; }
.cm-replies { border-left-color: #e7d3f0; }
.cm-act a { color: #a077b5; }
footer { background: linear-gradient(110deg, #f3ebfa, #f8edf4); border-top-color: #e8d8ef; }
.foot-brand b, .foot h4 { color: #82608f; }
.foot a, .foot-brand p, .foot-note { color: #866695; }
.foot-note { border-top-color: #e7d7ed; }
.page-watermark { color: #a68aaf; }
.vis-atlas.card { background: #181d36; border-color: #453953; }
.vis-atlas-heading h3 { color: #e8ddff; }
.vis-atlas .vis-atlas-eyebrow { color: #b6a1d5; }

@media (hover: hover) {
  button:hover:not(:disabled):not(.ghost) { background: #9463b6; }
}
@media (max-width: 1199px) and (min-width: 1100px) {
  .page-head.home { padding: 26px; grid-template-columns: minmax(0, 1fr); }
  .page-head.home .hero-facts { gap: 16px; }
}
@media (max-width: 1099px) {
  header { background: #fffafef5; }
  nav { border-radius: 16px; }
  .page-head.home { grid-template-columns: minmax(0, 1fr); padding: 28px; }
}
@media (max-width: 760px) {
  header { backdrop-filter: none; -webkit-backdrop-filter: none; }
  .status { border-top-color: #eee0f4; }
  nav { border-color: #e4d0ef; border-radius: 17px; background: #fffbff; box-shadow: 0 12px 35px #77518e1f; }
  nav a, nav a:first-child { border-radius: 11px; }
  .page-head { min-height: 0; grid-template-columns: minmax(0, 1fr); gap: 6px; padding: 18px; border-radius: 18px; }
  .page-head h1 { font-size: 23px; }
  .page-head p { font-size: 12px; line-height: 1.85; }
  .page-head .page-eyebrow { gap: 5px; margin-bottom: 9px; font-size: 8px; letter-spacing: .5px; }
  .page-head:not(.home) .eyebrow-index { display: none; }
  .page-head.home { display: grid; grid-template-columns: minmax(0, 1fr); padding: 22px; border-radius: 22px; gap: 0; }
  .page-head.home .page-eyebrow { font-size: 9px; gap: 6px; margin-bottom: 13px; letter-spacing: .7px; }
  .page-head.home h1 { font-size: clamp(25px, 6.4vw, 32px); line-height: 1.55; letter-spacing: .5px; }
  .page-head.home p { margin-top: 13px; font-size: 13px; line-height: 1.9; }
  .page-head.home .home-actions { margin-top: 20px; }
  .page-head.home .hero-facts { margin-top: 22px; padding-top: 16px; gap: 12px; }
  .hero-facts b { font-size: 10px; }
  .hero-facts small { font-size: 9px; }
  .card, .mkt .card, a.dg, .membership-gate, .evo-lock, .bt-history-figure { border-radius: 15px; }
  .global-follow-bar { border-radius: 15px; }
  .follow-copy strong { font-size: 12px; }
  .vip-notice { border-radius: 19px; }
  .prediction-time-banner { border-radius: 12px; }
}
@media (max-width: 360px) {
  .page-head:not(.home) { grid-template-columns: minmax(0, 1fr); padding: 16px; }
  .page-head:not(.home) h1 { font-size: 21px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; }
}
