/* StoxCredit brand refresh. Keep financial data and wallet behavior in the app. */
:root { --ink: #eef5f9; --muted: #a1b2c4; --lime: #64d7aa; --line: #263b48; }
body.app-mode { background: radial-gradient(ellipse at 85% 4%, #124c3d28, transparent 35%), #0b1118; }
.app-mode .site-header { background: #0b1118f5; border-bottom: 1px solid #23313e; padding-top: 12px; padding-bottom: 12px; }
.brand-logo { display: block; flex-shrink: 0; object-fit: contain; width: 64px; height: 64px; border-radius: 14px; background: #fff; border: 1px solid #ffffff20; }
.app-mode .app-brand-name { font-size: 23px; font-weight: 800; letter-spacing: -1px; }
.app-mode .header-left { gap: 38px; }
.brand-link { gap: 13px; }
.app-mode .site-nav a.active { color: #a4e6cc; background: #18342c; }
.app-mode .app-shell { padding-top: 52px; }
.app-mode .app-heading { position: relative; padding: 12px 0 30px; margin-bottom: 12px; }
.app-mode .app-heading h1 { max-width: 820px; font-size: clamp(36px, 4.9vw, 62px); font-weight: 650; letter-spacing: -2.7px; line-height: 1.1; }
.app-mode .app-heading .section-label { color: #71d9ad; letter-spacing: 2px; }
.app-mode .app-heading #appSubtitle { max-width: 590px; font-size: 16px; color: #a5b7c9; line-height: 1.8; }
.base-dot { background: #64d7aa; }
.app-mode .app-heading .feed-status { position: absolute; bottom: 28px; right: 0; }
.quick-start { display: grid; grid-template-columns: 1.15fr repeat(3, 1fr); border: 1px solid #284436; background: linear-gradient(115deg, #122e24, #111c23 55%); border-radius: 16px; padding: 26px; gap: 28px; margin: 0 0 28px; }
.quick-start-intro .section-label { font: 9px var(--mono); letter-spacing: 1.5px; color: #74d5ad; }
.quick-start h2 { font-size: 20px; letter-spacing: -.6px; font-weight: 650; margin: 10px 0 15px; }
.quick-start-intro a { color: #8eddbb; text-decoration: none; font-size: 12px; }
.quick-step { border-left: 1px solid #2a3d3b; padding-left: 24px; }
.step-number { color: #70d3a9; font: 11px var(--mono); }
.quick-step h3 { font-size: 13px; font-weight: 650; margin: 10px 0 7px; }
.quick-step p { color: #9db1bf; font-size: 12px; line-height: 1.7; margin: 0; }
.stock-detail-mode .quick-start { display: none; }
.stock-detail-mode .app-heading { padding: 0; margin: 0 0 20px; }
.stock-detail-mode .app-heading > div > :not(.feed-status) { display: none; }
.stock-detail-mode .app-heading .feed-status { position: static; margin: 0 !important; }
.app-mode #marketMetrics { gap: 0; border: 1px solid #273744; border-radius: 14px; overflow: hidden; background: #101a23; }
.app-mode #marketMetrics .market-metric, .app-mode #marketMetrics #totalStockTvl { border: 0; border-radius: 0; background: none; padding: 23px 25px; }
.app-mode #marketMetrics .market-metric + .market-metric { border-left: 1px solid #273744; }
.app-mode #marketMetrics .market-metric > strong { font-weight: 600; font-size: 29px; margin: 13px 0 7px; }
.app-mode #marketMetrics .market-metric > span { color: #b0c1ce; }
.app-mode #marketMetrics .market-metric > small { color: #8ba0b0; }
.app-mode .panel { border-color: #293946; background: #101923; box-shadow: none; }
.ph h2 { font-weight: 650; }
.app-mode .table tbody tr:hover { background: #162b2b; box-shadow: inset 3px 0 #62cfa2; }
.app-mode .table .asset strong { font-weight: 650; }
.app-mode .table .asset a { color: inherit; text-decoration: none; }
.app-mode .table .apy { color: #79d7ae !important; }
.row-arrow { color: #8bdbb7; background: #193c30; border-color: #2a5141; }
.app-mode .table th:nth-child(5), .app-mode .table td:nth-child(5) { display: none !important; }
.app-mode .table { min-width: 720px; }
.explore-switch button.on { background: #214d3d; color: #b4f1d3; }
.explore-caption { color: #a2b3c3; }
.primary { background: #376dff; border: 1px solid #5b87ff; color: #fff; font-weight: 650; min-height: 50px; }
.primary:hover:not(:disabled) { background: #4c7fff; }
.primary:disabled { opacity: .5; }
.stock-detail-mode .layout { grid-template-columns: minmax(0, 1fr) 410px; gap: 40px; }
.stock-detail-mode .layout aside { top: 111px; }
.stock-detail-mode .layout > aside > .panel { background: linear-gradient(155deg,#14232b,#101923); border: 1px solid #2c424d; border-radius: 16px; padding: 10px; }
.stock-detail-mode .details { padding: 20px; }
.stock-detail-mode .market-overview { border: 1px solid #2b414d; background: linear-gradient(150deg,#13212a,#101923 65%); border-radius: 18px; padding: 28px; margin: 0 0 25px; }
.stock-detail-mode .overview-pair { margin: 0 0 24px; gap: 11px; }
.stock-detail-mode .overview-pair strong { font-size: clamp(25px,3vw,38px); font-weight: 650; letter-spacing: -1px; }
.stock-detail-mode .overview-pair .coin { width: 40px; height: 40px; }
.stock-detail-mode .overview-pair small { margin-left: auto; }
.stock-detail-mode .stock-tvl-detail { border: 1px solid #273b46; border-radius: 13px; background: #111d26; padding: 18px 20px; margin: 0 0 16px; }
.stock-detail-mode .stock-tvl-detail > span { color: #a4b8c5; font-size: 11px; }
.stock-detail-mode .stock-tvl-detail > strong { font-size: clamp(29px,3vw,39px); font-weight: 650; letter-spacing: -1.3px; margin: 9px 0; }
.stock-detail-mode .stock-tvl-detail > small { color: #93a9b7; font-size: 10px; }
.stock-detail-mode .overview-stats { gap: 0; border: 1px solid #273b46; border-radius: 13px; overflow: hidden; background: #111d26; }
.stock-detail-mode .overview-stats > div { padding: 15px 17px; }
.stock-detail-mode .overview-stats > div:nth-child(even) { border-left: 1px solid #273b46; }
.stock-detail-mode .overview-stats > div:nth-child(n+3) { border-top: 1px solid #273b46; }
.stock-detail-mode .overview-stats strong { font-size: 23px; margin: 8px 0 4px; }
.stock-detail-mode .overview-stats span { color: #a6bac7; }
.stock-detail-mode .overview-stats small { color: #8ca4b3; }
.stock-detail-mode .detail-nav { margin: 20px 0 15px; border: 1px solid #293d48; border-radius: 11px; background: #111923; padding: 4px 8px; gap: 8px; }
.stock-detail-mode .detail-nav button { padding: 10px 12px; border-radius: 7px; }
.stock-detail-mode .detail-nav button.on { background: #1a3b30; color: #a9e7cb; }
.stock-brand-sandisk { background: #fff !important; border-color: #fff !important; }
.stock-brand-microstrategy { background: #273d70 !important; border-color: #3a5792 !important; }
.stock-brand .company-logo { object-fit: contain !important; padding: 7px; }
.stock-brand-microstrategy .company-logo { filter: brightness(0) invert(1); padding: 8px; }
.app-mode .table tbody tr.unavailable { opacity: .86; }
.app-mode .table tbody tr.unavailable .asset small { color: #9fb0bd; }
.stock-detail-mode .position-summary { border: 1px solid #2d414d; background: #111d26; border-radius: 13px; padding: 18px; }
.stock-detail-mode .bottom { margin-top: 24px; border-top: 1px solid #273844; padding-top: 14px; }
.stock-detail-mode .tabs { margin-bottom: 24px; }
.stock-detail-mode .tabs button.on { background: #224b3d; color: #b8f4d9; }
.estimate { display: block; text-align: left; border: 1px solid #30644e; border-radius: 12px; background: linear-gradient(115deg,#173c2d,#132620); color: #b5d5c8; padding: 18px !important; font-size: 12px; line-height: 1.6; margin: 18px 0; }
.estimate strong { display: block; color: #9aefc3; font-size: 29px; font-weight: 650; letter-spacing: -.8px; line-height: 1.4; margin: 5px 0; }
.estimate-note { display: block; color: #9ebbad; font-size: 10px; }
.borrow-fee-summary { margin-top: 12px; border: 1px solid #315744; border-radius: 12px; background: #12291f; }
.borrow-fee-summary b { color: #b8f4d9; }
.fee-recipient { overflow-wrap: anywhere; color: #a8bdb4; }
.contract-details { margin-top: 16px; border-top: 1px solid #283c49; padding-top: 18px; }
.contract-details summary { color: #a8bbca; font-size: 12px; cursor: pointer; }
.full-market-id { overflow-wrap: anywhere; }
.footer-brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: #e5eff7; font-size: 20px; font-weight: 750; letter-spacing: -.6px; }
.footer-brand .brand-logo { width: 48px; height: 48px; border-radius: 10px; }
.site-footer { margin-top: 26px; }
.site-footer small { display: none; }
.app-mode .learn-shell { padding-top: 60px; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, summary:focus-visible, tr:focus-visible { outline: 2px solid #79dab0; outline-offset: 4px; }
@media (max-width: 1000px) {
  .quick-start { gap: 18px; padding: 22px; }
  .quick-step { padding-left: 18px; }
  .app-mode .app-heading .feed-status { position: static; }
  .stock-detail-mode .layout { grid-template-columns: minmax(0,1fr) 355px; gap: 24px; }
  .stock-detail-mode .details { padding: 20px; }
  .stock-detail-mode .market-overview { padding: 20px; }
}
@media (max-width: 760px) {
  .app-mode .site-header { position: relative; padding: 12px 18px; }
  .brand-logo { width: 49px; height: 49px; border-radius: 11px; }
  .app-mode .app-brand-name { font-size: 20px; }
  .app-mode .header-left { gap: 12px; }
  .app-mode .site-nav a { font-size: 11px; padding: 8px; }
  .app-mode .app-shell { padding-top: 27px; }
  .app-mode .app-heading { padding-bottom: 16px; }
  .app-mode .app-heading h1 { font-size: 40px; letter-spacing: -1.9px; max-width: 420px; }
  .app-mode .app-heading #appSubtitle { font-size: 14px; }
  .quick-start { grid-template-columns: 1fr; gap: 15px; padding: 22px; }
  .quick-start-intro { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
  .quick-start-intro .section-label { display: none; }
  .quick-start h2 { margin: 0; font-size: 17px; }
  .quick-step { display: grid; grid-template-columns: 25px 1fr; border: 0; padding: 0; column-gap: 12px; }
  .step-number { grid-row: span 2; margin-top: 3px; }
  .quick-step h3 { margin: 0 0 3px; }
  .quick-step p { font-size: 11px; }
  .app-mode #marketMetrics .market-metric, .app-mode #marketMetrics #totalStockTvl { padding: 18px; }
  .app-mode #marketMetrics .market-metric:nth-child(3) { border-left: 0; }
  .app-mode #marketMetrics .market-metric:nth-child(n+3) { border-top: 1px solid #273744; }
  .app-mode #marketMetrics .market-metric > strong { font-size: 26px; }
  .app-mode .table, .table-scroll { min-width: 0; overflow: visible; }
  .app-mode .table { display: block; padding: 0 14px 14px; }
  .app-mode .table thead { display: none; }
  .app-mode .table tbody { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
  .app-mode .table tr { display: grid; position: relative; grid-template-columns: 1fr 1fr; border: 1px solid #2b3f4c; border-radius: 12px; padding: 16px; background: #13212b; gap: 16px 10px; }
  .app-mode .table td { display: block !important; height: auto; border: 0; padding: 0 !important; text-align: left; font-size: 14px; }
  .app-mode .table td:first-child { grid-column: 1/-1; padding-right: 23px !important; }
  .app-mode .table td[data-label]::before { content: attr(data-label); display: block; color: #93aab9; font: 10px var(--sans); margin-bottom: 5px; }
  .app-mode .table .asset { min-width: 0; gap: 9px; }
  .app-mode .table .asset strong { font-size: 13px; white-space: normal; }
  .app-mode .table .asset small { font-size: 10px; }
  .app-mode .table .coin { width: 31px; height: 31px; flex-shrink: 0; }
  .app-mode .table td:last-child { position: absolute; right: 14px; top: 19px; }
  .row-arrow { width: 23px; height: 23px; font-size: 14px; }
  .stock-detail-mode .layout { display: flex; gap: 28px; }
  .stock-detail-mode .layout aside { position: static; }
  .stock-detail-mode .app-heading { margin-bottom: 10px; }
  .learn-shell h2 { font-size: 34px; }
}
@media (max-width: 480px) {
  .app-mode .app-brand-name { font-size: 18px; }
  .brand-link { gap: 8px; }
  .app-mode .table tbody { grid-template-columns: 1fr; }
  .app-mode .app-heading h1 { font-size: 37px; }
  .quick-start-intro { flex-wrap: wrap; }
  .app-mode .table tr { gap: 18px 24px; padding: 18px; }
  .app-mode .table .asset strong { font-size: 15px; }
  .app-mode .table .coin { width: 36px; height: 36px; }
  .app-mode .table td { font-size: 16px; }
}
