@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Outfit:wght@400;500;600;700&display=swap');

:root {
  --primary: #000000;
  --primary-glow: rgba(0, 0, 0, 0.1);
  --bg-gradient: #ffffff;
  --glass-bg: #ffffff;
  --glass-border: #e2e8f0;
  --glass-glow: 0 4px 12px 0 rgba(0, 0, 0, 0.05);
  --text-main: #000000;
  --text-muted: #64748b;
  --font-main: 'Inter', 'Outfit', 'Helvetica', 'Roboto', sans-serif;
}

html,
body {
  height: 100%;
  margin: 0;
  overflow: hidden !important;
  font-family: var(--font-main);
}

#app,
.lcm-server-shell {
  height: 100dvh;
  min-height: 100dvh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  font-family: var(--font-main);
  background: var(--bg-gradient);
  color: var(--text-main);
}

#lcm-header {
  flex: 0 0 auto;
  width: 100%;
  box-sizing: border-box;
  z-index: 20;
  position: sticky;
  top: 0;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: calc(env(safe-area-inset-top, 0px) + 12px) 16px 10px 16px;
  font-family: "Segoe UI", "Roboto", sans-serif;
  color: #000;
  border-bottom: 1px solid #e2e8f0;
  --lcm-header-nav-size: 14px;
}

#lcm-header .lcm-side {
  min-width: 0;
  display: flex;
  align-items: center;
}

#lcm-header .lcm-header-left {
  flex: 0 1 24%;
  justify-content: flex-start;
}

#lcm-header .lcm-header-center {
  flex: 0 1 52%;
  justify-content: center;
  padding: 0 6px;
}

#lcm-header .lcm-header-right {
  flex: 0 1 24%;
  justify-content: flex-end;
}

#lcm-header .lcm-title,
#lcm-header .lcm-nav-label {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
  line-height: 1.1;
  text-decoration: none;
  color: #000000;
}

#lcm-header .lcm-title {
  font-size: calc(var(--lcm-header-nav-size) + 1px);
  font-weight: 700;
  cursor: pointer;
}

#lcm-header .lcm-nav-label {
  font-size: var(--lcm-header-nav-size);
  font-weight: 600;
  cursor: pointer;
}

#lcm-header .lcm-right-cluster {
  display: flex;
  align-items: center;
  gap: 24px;
  max-width: 100%;
}

#lcm-header .lcm-avatar-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid #111;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #f2f2f2 0%, #dcdcdc 100%);
  color: #111;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  flex: 0 0 auto;
}

#lcm-finance-bar,
#finance-banner-placeholder {
  width: 100%;
}

#finance-banner {
  flex: 0 0 auto;
}

body #finance-banner {
  border: 1px solid #000;
  box-sizing: border-box;
}


#finance-banner-scroller,
#finance-banner-items,
#finance-banner-items-clone {
  min-height: 1rem;
}

#lcm-main-scroll {
  flex: 1 1 auto;
  width: 100%;
  overflow-y: auto;
  overflow-x: hidden;
  min-height: 0;
  border: 0 !important;
  scrollbar-width: none;
  /* Firefox */
  -ms-overflow-style: none;
  /* IE/Edge */
}

#lcm-main-scroll::-webkit-scrollbar {
  width: 0;
  height: 0;
  display: none;
  /* Chrome/Safari/Blink */
}

/* Scroll lock utility */
.lcm-no-scroll {
  overflow-y: hidden !important;
}

/* Specialized Info page scroll container */
.lcm-info-scroll-box {
  flex: 1;
  /* Fill the card */
  overflow-y: auto;
  padding-right: 12px;
  margin-right: -12px;
  scrollbar-width: thin;
  scrollbar-color: rgba(0, 0, 0, 0.1) transparent;
}

.lcm-info-scroll-box::-webkit-scrollbar {
  width: 4px;
}

.lcm-info-scroll-box::-webkit-scrollbar-track {
  background: transparent;
}

.lcm-info-scroll-box::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.1);
  border-radius: 10px;
}

#lcm-footer {
  flex: 0 0 auto;
  width: 100%;
  box-sizing: border-box;
  z-index: 10;
  border-top: 1px solid #d0d0d0 !important;
  box-shadow: none !important;
  min-height: 64px;
  padding: 8px 14px 10px 14px;
  margin: 0;
  background: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  font-size: 13px;
  color: #666;
  font-family: "Segoe UI", "Roboto", sans-serif;
}

#lcm-footer .lcm-footer-links {
  max-width: 1000px;
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  align-items: center;
  margin-top: 0;
  line-height: 1.2;
}

#lcm-footer .lcm-footer-links a {
  color: inherit;
  text-decoration: none;
}

#lcm-footer .lcm-footer-sep {
  color: #ccc;
}

#lcm-footer .lcm-footer-copy {
  margin-top: 6px;
  color: #999;
  font-size: 12px;
  line-height: 1.2;
  text-align: center;
}

@media (min-width: 901px) {
  #lcm-header {
    padding: calc(env(safe-area-inset-top, 0px) + 14px) 18px 12px 18px;
    --lcm-header-nav-size: 21px;
  }

  #lcm-header .lcm-header-left {
    flex-basis: 23%;
  }

  #lcm-header .lcm-header-center {
    flex-basis: 54%;
  }

  #lcm-header .lcm-header-right {
    flex-basis: 23%;
  }

}

@media (min-width: 431px) and (max-width: 900px) {
  #lcm-header {
    --lcm-header-nav-size: 16px;
  }
}

@media (max-width: 440px) {
  #lcm-header {
    padding: calc(env(safe-area-inset-top, 0px) + 10px) 4px 6px 4px;
    align-items: center;
    --lcm-header-nav-size: clamp(11px, 2.9vw, 13px);
    gap: 4px;
  }

  #lcm-header .lcm-header-left {
    flex-basis: 20%;
    min-width: 0;
  }

  #lcm-header .lcm-header-center {
    flex-basis: 48%;
    padding: 0 1px;
    min-width: 0;
  }

  #lcm-header .lcm-header-right {
    flex-basis: 32%;
    min-width: 0;
  }

  #lcm-header .lcm-nav-label {
    white-space: nowrap;
    overflow: visible;
    text-overflow: clip;
    line-height: 1.08;
    max-width: none;
    font-size: clamp(11px, 2.9vw, 13px);
  }

  #lcm-header .lcm-title {
    white-space: nowrap;
    overflow: visible;
    text-overflow: clip;
    line-height: 1.06;
    text-align: center;
    font-size: clamp(11px, 3.1vw, 14px);
    letter-spacing: -0.1px;
  }

  #lcm-header .lcm-header-left .lcm-nav-label {
    text-align: left;
    max-width: 100%;
  }

  #lcm-header .lcm-header-right .lcm-nav-label {
    text-align: right;
    white-space: nowrap;
    overflow: visible;
    text-overflow: clip;
    max-width: none;
  }

  #lcm-header .lcm-right-cluster {
    gap: 3px;
    min-width: 0;
    max-width: 100%;
  }

  #lcm-header .lcm-avatar-btn {
    width: 27px;
    height: 27px;
    font-size: 10px;
    flex: 0 0 27px;
  }

  #lcm-footer {
    min-height: 50px;
    padding: 4px 8px 6px 8px;
  }

  #lcm-footer .lcm-footer-links {
    gap: 6px;
    line-height: 1.08;
    font-size: 11px;
  }

  #lcm-footer .lcm-footer-copy {
    margin-top: 2px;
    font-size: 10px;
    line-height: 1.1;
  }

  .profile-graph-shell {
    top: calc(72px + env(safe-area-inset-top, 0px));
    bottom: calc(246px + env(safe-area-inset-bottom, 0px));
  }

  .profile-graph-frame {
    top: 10px;
    right: 6px;
    bottom: 2px;
    left: 0;
    overflow: hidden;
    clip-path: inset(0 0 0 0);
  }

  .profile-graph-tabs {
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    bottom: calc(156px + env(safe-area-inset-bottom, 0px));
    z-index: 18;
    white-space: nowrap;
  }

  .profile-nav-divider {
    bottom: calc(228px + env(safe-area-inset-bottom, 0px));
  }

  .profile-performance-label {
    bottom: calc(210px + env(safe-area-inset-bottom, 0px));
    font-size: 11px;
  }

  .profile-portfolio-readout {
    bottom: calc(192px + env(safe-area-inset-bottom, 0px));
    font-size: 11px;
  }

  .profile-balance-readout {
    bottom: calc(160px + env(safe-area-inset-bottom, 0px));
    font-size: 18px;
  }

  .profile-balance-actions {
    bottom: calc(120px + env(safe-area-inset-bottom, 0px));
    gap: 12px;
  }

  .profile-toc-horizontal {
    bottom: calc(62px + env(safe-area-inset-bottom, 0px));
    gap: 14px;
  }

  .profile-nav-divider-bottom {
    bottom: calc(52px + env(safe-area-inset-bottom, 0px));
  }

  .profile-toc-btn {
    width: 92px;
    font-size: 0.86rem;
    padding: 8px 0;
  }

  #depositBtn,
  #withdrawBtn {
    width: 84px;
    font-size: 0.84rem;
    padding: 8px 0;
  }
}

.legal-page {
  font-family: "Segoe UI", "Roboto", sans-serif;
  padding: 32px;
  max-width: 900px;
  margin: 0 auto;
}

.legal-card {
  background: #fafafa;
  border-radius: 8px;
  padding: 18px;
  margin-bottom: 24px;
}

.legal-back-btn {
  margin-top: 18px;
  padding: 10px 14px;
  background: #eee;
  border: 0;
  border-radius: 6px;
}

.profile-dashboard {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  min-height: 400px;
  display: block;
  font-family: "Segoe UI", "Roboto", sans-serif;
}

.profile-balance-box {
  border: 2px solid #222;
  min-width: 320px;
  min-height: 320px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  font-size: 1.3em;
  background: #f9f9f9;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.07);
  padding: 32px 28px;
  margin: 0 auto;
}

.profile-graph-shell {
  position: fixed;
  left: 0;
  right: calc(var(--profile-sidebar-right-gap) + var(--profile-sidebar-width) - var(--profile-sidebar-pad-left));
  top: calc(84px + env(safe-area-inset-top, 0px));
  bottom: calc(262px + env(safe-area-inset-bottom, 0px));
  box-sizing: border-box;
  padding: 0;
  margin: 0;
  overflow: hidden;
  z-index: 15;
}

.profile-graph-frame {
  position: absolute;
  top: 30px;
  right: 27px;
  bottom: 4px;
  left: 23px;
  padding: 12px;
  border-radius: 16px;
  border: 1px solid #171717;
  background: #020202;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28);
  overflow: hidden;
}

.profile-sidebar {
  position: fixed;
  top: calc(106px + env(safe-area-inset-top, 0px));
  right: var(--profile-sidebar-right-gap);
  width: var(--profile-sidebar-width);
  bottom: calc(263px + env(safe-area-inset-bottom, 0px));
  padding: 16px 0 2px var(--profile-sidebar-pad-left);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  background: transparent;
  box-shadow: none;
  box-sizing: border-box;
  z-index: 16;
}

.symbol-widget {
  border: 1px solid #d5d5d5;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.9);
  padding: 10px 12px;
  width: 100%;
  display: flex;
  flex-direction: column;
  min-height: 0;
  height: 100%;
  max-height: 100%;
  box-sizing: border-box;
}

.symbol-widget-title {
  font-size: 13px;
  font-weight: 700;
  color: #222;
  margin-bottom: 4px;
}

.symbol-widget-list {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.symbol-widget-list::-webkit-scrollbar {
  width: 0;
  height: 0;
  display: none;
}

.symbol-widget-item {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid #ececec;
}

.symbol-widget-item:last-child {
  border-bottom: none;
}

.symbol-widget-item .symbol {
  font-size: 13px;
  font-weight: 700;
  color: #111;
  letter-spacing: 0.2px;
}

.symbol-widget-item .price-wrap {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  line-height: 1.15;
}

.symbol-widget-item .price {
  color: #222;
  font-size: 13px;
  font-weight: 700;
}

.symbol-widget-item .delta {
  color: #666;
  font-size: 12px;
  margin-top: 2px;
}

.symbol-widget-item.up .price,
.symbol-widget-item.up .delta {
  color: #137333;
}

.symbol-widget-item.down .price,
.symbol-widget-item.down .delta {
  color: #b42318;
}

.symbol-widget-item .error {
  color: #b42318;
  font-size: 12px;
}

.symbol-widget-loading,
.symbol-widget-error {
  font-size: 13px;
  color: #555;
}

.profile-graph-tabs {
  position: fixed;
  right: calc(var(--profile-sidebar-right-gap) + var(--profile-sidebar-width) - var(--profile-sidebar-pad-left) + 14px);
  bottom: calc(263px + env(safe-area-inset-bottom, 0px));
  z-index: 16;
  display: flex;
  gap: 8px;
}

.profile-graph-tabs {
  position: fixed;
  right: calc(var(--profile-sidebar-right-gap) + var(--profile-sidebar-width) - var(--profile-sidebar-pad-left) + 14px);
  bottom: calc(263px + env(safe-area-inset-bottom, 0px));
  z-index: 16;
  display: flex;
  gap: 8px;
}

.profile-graph-tab {
  border: 1px solid #d0d0d0;
  background: #fff;
  color: #222;
  border-radius: 8px;
  padding: 6px 14px;
  font-family: "Segoe UI", "Roboto", sans-serif;
  font-size: 13px;
  cursor: pointer;
}

.profile-graph-tab.active {
  background: #222;
  color: #fff;
  border-color: #222;
}

.profile-graph-canvas {
  position: relative;
  width: 100%;
  height: 100%;
  border: none;
  border-radius: 10px;
  overflow: hidden;
  background: #040404;
  padding: 0;
  box-sizing: border-box;
  pointer-events: auto;
}

.profile-graph-canvas svg {
  width: 100%;
  height: 100%;
  display: block;
}

.profile-graph-svg {
  width: 100%;
  height: 100%;
  display: block;
  background: #ffffff;
  border-radius: 10px;
}

.profile-graph-line {
  fill: none !important;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 1;
  stroke-dasharray: none;
  stroke-dashoffset: 0;
  transition: none;
}

.profile-graph-dot {
  stroke: none;
  opacity: 1;
  animation: none !important;
  cursor: pointer;
  transition: transform 120ms ease, filter 120ms ease;
}

.profile-graph-line.portfolio {
  stroke: #4deeff !important;
}

.profile-graph-dot.portfolio {
  fill: #4deeff !important;
}

.profile-graph-line.performance {
  stroke: #6b7280 !important;
}

.profile-graph-dot.performance {
  fill: #6b7280 !important;
}

.profile-graph-dot:hover,
.profile-graph-dot.is-active {
  transform: scale(1.45);
  filter: drop-shadow(0 0 4px rgba(255, 255, 255, 0.38));
}

.profile-graph-tooltip {
  position: absolute;
  z-index: 100;
  min-width: 110px;
  max-width: min(70vw, 360px);
  pointer-events: none;
  background: #ffffff;
  color: #000000;
  border: 1px solid #e5e7eb;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  border-radius: 12px;
  padding: 10px 14px;
  font-size: 12px;
  line-height: 1.3;
  white-space: nowrap;
  backdrop-filter: blur(4px);
}

.profile-graph-empty {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #777;
  font-size: 13px;
}

.profile-graph-legend {
  display: none;
}

.profile-graph-legend .line {
  display: inline-block;
  width: 20px;
  height: 2px;
  vertical-align: middle;
  margin-right: 6px;
}

.profile-graph-legend .line.portfolio {
  background: #111;
}

.profile-graph-legend .line.performance {
  background: #666;
}

.profile-toc-horizontal {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
  justify-items: center;
  align-items: center;
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: calc(96px + env(safe-area-inset-bottom, 0px));
  z-index: 15;
  width: min(500px, calc(100vw - 16px));
  padding: 8px 10px;
  border-radius: 10px;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
}

.profile-nav-divider {
  position: fixed;
  left: 0;
  right: 0;
  bottom: calc(258px + env(safe-area-inset-bottom, 0px));
  border-top: 4px solid #000;
  z-index: 14;
}

.profile-portfolio-readout {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: calc(226px + env(safe-area-inset-bottom, 0px));
  z-index: 15;
  font-size: 13px;
  font-weight: 500;
  color: #444;
  white-space: nowrap;
}

.profile-nav-divider-bottom {
  position: fixed;
  left: 0;
  right: 0;
  bottom: calc(84px + env(safe-area-inset-bottom, 0px));
  border-top: 4px solid #000;
  z-index: 14;
}

.profile-balance-readout {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: calc(198px + env(safe-area-inset-bottom, 0px));
  z-index: 15;
  font-size: 22px;
  font-weight: 600;
  color: #222;
  white-space: nowrap;
}

.profile-performance-label {
  position: fixed;
  left: 50%;
  transform: translateX(calc(-50% + 2px));
  bottom: calc(244px + env(safe-area-inset-bottom, 0px));
  z-index: 15;
  font-size: 13px;
  font-weight: 500;
  color: #444;
  letter-spacing: 0.2px;
  white-space: nowrap;
}

.profile-menu {
  position: fixed;
  top: calc(76px + env(safe-area-inset-top, 0px));
  right: 14px;
  min-width: 240px;
  max-width: min(320px, calc(100vw - 28px));
  background: #fff;
  border: 1px solid #d2d2d2;
  border-radius: 12px;
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.16);
  padding: 12px;
  z-index: 40;
}

.profile-menu-title {
  font-size: 16px;
  font-weight: 700;
  color: #111;
  margin-bottom: 6px;
}

.profile-menu-row {
  font-size: 13px;
  color: #333;
  margin-bottom: 6px;
  word-break: break-word;
}

.profile-menu-link {
  margin-top: 4px;
  color: #111;
  font-weight: 600;
  cursor: pointer;
}

.profile-balance-actions {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: calc(150px + env(safe-area-inset-bottom, 0px));
  width: min(500px, calc(100vw - 16px));
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
  justify-items: center;
  align-items: center;
  z-index: 15;
}

#depositBtn {
  grid-column: 2;
}

#withdrawBtn {
  grid-column: 3;
}

.profile-toc-btn {
  font-size: 1.1em;
  cursor: pointer;
  color: #222;
  background: #eee;
  border: none;
  border-radius: 6px;
  width: 112px;
  padding: 10px 0;
  transition: background 0.2s;
  font-family: "Segoe UI", "Roboto", sans-serif;
  text-align: center;
}

.profile-toc-btn:hover {
  background: #ddd;
}

.pay-sheet-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  z-index: 50;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.pay-sheet {
  width: min(640px, 100vw);
  max-height: 86vh;
  height: 34vh;
  overflow-y: auto;
  background: #fff;
  border-top-left-radius: 16px;
  border-top-right-radius: 16px;
  box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.2);
  padding: 14px 16px calc(18px + env(safe-area-inset-bottom, 0px)) 16px;
  font-family: "Segoe UI", "Roboto", sans-serif;
  transition: height 180ms ease;
}

.pay-sheet-handle {
  width: 48px;
  height: 5px;
  border-radius: 999px;
  background: #c7c7c7;
  margin: 2px auto 12px auto;
  touch-action: none;
  cursor: ns-resize;
}

.pay-sheet-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 12px;
}

.pay-sheet-label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin: 8px 0 6px 0;
}

.pay-sheet-input,
.pay-sheet-select {
  width: 100%;
  box-sizing: border-box;
  padding: 10px 12px;
  border: 1px solid #d8d8d8;
  border-radius: 10px;
  font-size: 16px;
  background: #fff;
}

.pay-sheet-methods {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 2px 0 8px 0;
}

.pay-sheet-methods.single-option {
  grid-template-columns: 1fr;
}

.pay-sheet-method {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  box-sizing: border-box;
  padding: 10px 12px;
  border: 1px solid #d8d8d8;
  border-radius: 10px;
  background: #fff;
  color: #222;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.pay-sheet-method i {
  font-size: 16px;
}

.pay-sheet-method.is-active {
  border-color: #111;
  background: #f7f7f7;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.18) inset;
}

.pay-sheet-method:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.pay-sheet-element {
  border: 1px solid #d8d8d8;
  border-radius: 10px;
  padding: 10px 12px;
  margin-top: 8px;
}

.pay-sheet-primary {
  width: 100%;
  margin-top: 12px;
  padding: 11px 14px;
  border: 0;
  border-radius: 10px;
  background: #111;
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
}

.pay-sheet-close {
  width: 100%;
  margin-top: 10px;
  padding: 10px 12px;
  border: 1px solid #d8d8d8;
  border-radius: 10px;
  background: #fff;
  color: #222;
  font-size: 15px;
  cursor: pointer;
}

.pay-sheet-error {
  min-height: 20px;
  margin-top: 8px;
  color: #b00020;
  font-size: 14px;
}

.side-btn {
  width: 100%;
  text-align: left;
  padding: 12px 14px;
  background: #fff;
  border: 1px solid #eee;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1em;
}

.side-btn.active {
  background: #222;
  color: #fff;
}

.profile-center {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.projections-row,
.performance-row {
  width: 100%;
  margin-bottom: 0;
}

.chart-box {
  border: 2px solid #222;
  width: 120px;
  background: #f9f9f9;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.07);
  font-size: 1.1em;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.projection-box {
  width: 120px;
  height: 120px;
  padding: 10px;
}

.performance-box {
  height: 70px;
  padding: 12px;
}

.projections-page {
  width: 100%;
  min-height: calc(100vh - 150px);
  box-sizing: border-box;
  padding: 8px 20px 190px 20px;
  display: grid;
  grid-template-rows: 1.35fr 1fr;
  gap: 16px;
  font-family: "Segoe UI", "Roboto", sans-serif;
}

.projections-half {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  align-items: stretch;
}

.projection-card {
  border: none;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  padding: 14px 8px 12px 8px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: stretch;
  min-height: 160px;
}

.projection-card canvas {
  width: 100%;
  height: 72px;
  display: block;
  margin-bottom: 6px;
}

.projections-bottom-half .projection-card {
  min-height: 130px;
}

.projection-graph {
  width: 100%;
  height: 72px;
  margin-bottom: 6px;
}

.projection-graph svg {
  width: 100%;
  height: 100%;
}

.projection-graph polyline,
.projection-graph line {
  fill: none;
  stroke: #222;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.projection-value {
  font-size: 1.85rem;
  font-weight: 700;
  color: #111;
  line-height: 1.1;
  margin-bottom: 6px;
  font-family: "Segoe UI", "Roboto", sans-serif;
  text-align: center;
}

.projection-label {
  font-size: 13px;
  font-weight: 500;
  color: #444;
  letter-spacing: 0.2px;
  font-family: "Segoe UI", "Roboto", sans-serif;
  text-align: center;
}

@media (max-width: 700px) {
  :root {
    --profile-sidebar-width: min(180px, 42vw);
    --profile-sidebar-pad-left: 8px;
    --profile-sidebar-right-gap: 6px;
  }

  .dashboard-grid {
    flex-direction: column;
  }

  .dashboard-side {
    width: 100%;
  }

  .side-btn {
    text-align: center;
  }

  .profile-balance-box {
    margin-bottom: 18px;
  }

  .profile-sidebar {
    top: calc(96px + env(safe-area-inset-top, 0px));
    width: var(--profile-sidebar-width);
    bottom: calc(265px + env(safe-area-inset-bottom, 0px));
    padding: 10px 8px 8px var(--profile-sidebar-pad-left);
  }

  .profile-graph-shell {
    left: 0;
    right: calc(var(--profile-sidebar-right-gap) + var(--profile-sidebar-width) - var(--profile-sidebar-pad-left));
    top: calc(64px + env(safe-area-inset-top, 0px));
    bottom: calc(258px + env(safe-area-inset-bottom, 0px));
    padding: 0;
    margin: 0;
  }

  .profile-graph-frame {
    top: 29px;
    right: 23px;
    bottom: 18px;
    left: 21px;
    padding: 10px;
    border-radius: 14px;
  }

  .profile-graph-tabs {
    right: calc(var(--profile-sidebar-right-gap) + var(--profile-sidebar-width) - var(--profile-sidebar-pad-left) + 8px);
    bottom: calc(270px + env(safe-area-inset-bottom, 0px));
    gap: 6px;
  }

  .profile-graph-canvas {
    height: 100%;
  }

  .profile-graph-canvas svg {
    height: 100%;
  }

  .profile-toc-horizontal {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 6px;
    width: min(500px, calc(100vw - 12px));
    justify-items: center;
    padding-bottom: 4px;
    bottom: calc(102px + env(safe-area-inset-bottom, 0px));
  }

  .profile-nav-divider {
    bottom: calc(264px + env(safe-area-inset-bottom, 0px));
  }

  .profile-portfolio-readout {
    bottom: calc(232px + env(safe-area-inset-bottom, 0px));
    font-size: 12px;
  }

  .profile-nav-divider-bottom {
    bottom: calc(90px + env(safe-area-inset-bottom, 0px));
  }

  .profile-balance-readout {
    bottom: calc(204px + env(safe-area-inset-bottom, 0px));
    font-size: 20px;
  }

  .profile-performance-label {
    bottom: calc(250px + env(safe-area-inset-bottom, 0px));
    font-size: 12px;
  }

  .profile-menu {
    top: calc(62px + env(safe-area-inset-top, 0px));
    right: 8px;
    min-width: 210px;
  }

  .profile-balance-actions {
    bottom: calc(156px + env(safe-area-inset-bottom, 0px));
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    width: min(500px, calc(100vw - 12px));
    gap: 6px;
    justify-items: center;
  }

  .profile-toc-btn {
    width: 112px;
    text-align: center;
    flex: 0 0 auto;
    white-space: nowrap;
  }

  .chart-box {
    min-width: 180px;
  }

  .projections-page {
    min-height: calc(100vh - 130px);
    padding: 8px 8px 192px 8px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    overflow-y: auto;
  }

  .projections-half {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .projection-card {
    min-height: 110px;
    margin-bottom: 10px;
    padding: 10px 4px;
  }

  .projection-card canvas {
    height: 64px;
  }

  .projections-bottom-half .projection-card {
    min-height: 100px;
  }

  .projection-value {
    font-size: 1.5rem;
  }
}

@media (min-width: 701px) and (max-width: 1024px) {
  :root {
    --profile-sidebar-width: min(188px, 32vw);
    --profile-sidebar-pad-left: 8px;
    --profile-sidebar-right-gap: 8px;
  }

  .profile-graph-shell {
    top: calc(82px + env(safe-area-inset-top, 0px));
    bottom: calc(254px + env(safe-area-inset-bottom, 0px));
  }

  .profile-graph-frame {
    top: 21px;
    right: 23px;
    bottom: 25px;
    left: 23px;
  }

  .profile-sidebar {
    top: calc(112px + env(safe-area-inset-top, 0px));
    bottom: calc(255px + env(safe-area-inset-bottom, 0px));
    padding: 10px 8px 8px var(--profile-sidebar-pad-left);
  }

  .profile-graph-tabs {
    bottom: calc(264px + env(safe-area-inset-bottom, 0px));
    right: calc(var(--profile-sidebar-right-gap) + var(--profile-sidebar-width) - var(--profile-sidebar-pad-left) + 10px);
  }

  .profile-graph-tab {
    padding: 5px 10px;
    font-size: 12px;
  }
}

@media (max-width: 900px) {
  #lcm-header {
    --lcm-header-nav-size: 15px;
  }

  #lcm-header .lcm-header-left {
    flex-basis: 28%;
  }

  #lcm-header .lcm-header-center {
    flex-basis: 44%;
  }

  #lcm-header .lcm-header-right {
    flex-basis: 28%;
  }

  #lcm-header .lcm-title,
  #lcm-header .lcm-nav-label {
    overflow: visible;
    text-overflow: clip;
    max-width: none;
    white-space: nowrap;
  }

  #lcm-header .lcm-right-cluster {
    gap: 4px;
  }

  .profile-graph-tabs {
    position: fixed !important;
    left: 50% !important;
    right: auto !important;
    transform: translateX(-50%) !important;
    bottom: calc(264px + env(safe-area-inset-bottom, 0px)) !important;
    top: auto !important;
    z-index: 22 !important;
  }

  .profile-graph-shell {
    overflow: hidden;
    top: calc(76px + env(safe-area-inset-top, 0px));
    contain: layout paint;
  }

  .profile-graph-frame {
    overflow: hidden;
    clip-path: inset(0 0 0 0);
    contain: paint;
  }

  .profile-graph-canvas {
    display: block;
  }

  .projections-row,
  .performance-row {
    flex-direction: column;
    gap: 18px;
  }

  .chart-box {
    width: 100%;
  }
}

@media (max-width: 440px) {
  .profile-graph-tabs {
    position: fixed !important;
    left: 50% !important;
    right: auto !important;
    transform: translateX(-50%) !important;
    bottom: calc(228px + env(safe-area-inset-bottom, 0px)) !important;
    top: auto !important;
    z-index: 22 !important;
  }
}

@media (max-width: 440px) {
  .profile-graph-shell {
    top: calc(80px + env(safe-area-inset-top, 0px));
    bottom: calc(276px + env(safe-area-inset-bottom, 0px));
  }

  .profile-graph-frame {
    top: 27px;
    right: 20px;
    bottom: 23px;
    left: 19px;
    padding: 8px;
    border-radius: 12px;
    overflow: hidden;
    clip-path: inset(0 0 0 0);
  }

  .profile-graph-canvas,
  .profile-graph-canvas svg {
    width: 100%;
    height: 100%;
    display: block;
  }

  .profile-toc-horizontal {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    width: calc(100vw - 16px) !important;
    max-width: 100% !important;
    gap: 9px !important;
    padding: 0 10px 4px 10px !important;
    bottom: calc(96px + env(safe-area-inset-bottom, 0px)) !important;
  }

  .profile-toc-btn {
    width: calc(100% - 6px) !important;
    min-width: 0 !important;
    justify-self: center !important;
    font-size: 0.78rem !important;
    padding: 10px 0 !important;
  }

  .profile-balance-actions {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 11px !important;
    width: calc(100vw - 16px) !important;
    max-width: 100% !important;
    padding: 0 10px !important;
    bottom: calc(156px + env(safe-area-inset-bottom, 0px)) !important;
  }

  #depositBtn {
    grid-column: 2 !important;
  }

  #withdrawBtn {
    grid-column: 3 !important;
  }

  .profile-toc-btn {
    grid-column: auto !important;
  }

  .profile-toc-btn,
  #depositBtn,
  #withdrawBtn {
    width: calc(100% - 2px) !important;
    min-width: 0 !important;
    justify-self: center !important;
    max-width: none !important;
    font-size: 1rem !important;
    padding: 8px 0 !important;
    min-height: 42px !important;
  }

}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.lcm-server-shell {
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Segoe UI", "Roboto", "Arial", sans-serif;
  color: #111;
  background: #fff;
}

.lcm-server-loading {
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.lcm-server-error {
  margin: 48px auto;
  max-width: 680px;
  padding: 18px;
  font-family: "Segoe UI", "Roboto", "Arial", sans-serif;
  color: #b42318;
  border: 1px solid #fecdca;
  border-radius: 12px;
  background: #fef3f2;
}

/* Auth Pages (Home/Login) */
.lcm-auth-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  flex: 1;
}

.lcm-hero-logo {
  font-family: var(--font-main);
  font-weight: 700;
  font-size: 2.25rem;
  color: #000000;
  text-align: center;
  margin-bottom: 0.5rem;
}

.lcm-hero-subtitle {
  color: var(--text-muted);
  font-size: 1.1rem;
  margin-bottom: 40px;
  text-align: center;
}

.lcm-glass-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  padding: 40px;
  width: 100%;
  max-width: 440px;
  box-shadow: var(--glass-glow);
}

.lcm-auth-tabs {
  display: flex;
  gap: 16px;
  margin-bottom: 32px;
  border-bottom: 1px solid var(--glass-border);
  padding-bottom: 8px;
}

.lcm-auth-tab {
  background: none;
  border: none;
  color: var(--text-muted);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  padding: 8px 0;
  position: relative;
  transition: color 0.3s ease;
}

.lcm-auth-tab.active {
  color: var(--text-main);
}

.lcm-auth-tab.active::after {
  content: '';
  position: absolute;
  bottom: -9px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--primary);
  box-shadow: 0 0 8px var(--primary);
}

.lcm-form-group {
  margin-bottom: 24px;
}

.lcm-form-group label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.lcm-input {
  width: 100%;
  background: #f8fafc;
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  padding: 12px 16px;
  color: #000;
  font-family: inherit;
  font-size: 1rem;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  box-sizing: border-box;
}

.lcm-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px var(--primary-glow);
}

.lcm-btn-glow {
  width: 100%;
  background: #000000;
  color: white;
  border: none;
  border-radius: 12px;
  padding: 14px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 8px;
}

.lcm-btn-glow:hover {
  background: #222222;
  transform: translateY(-1px);
}

.lcm-btn-glow:active {
  transform: translateY(0);
}

.lcm-auth-footer {
  margin-top: 24px;
  text-align: center;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.lcm-auth-footer a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.lcm-animate-fade {
  animation: fadeIn 0.6s ease-out forwards;
}

/* Flash Messages */
.lcm-flash-stack {
  position: fixed;
  top: 24px;
  right: 24px;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.lcm-flash {
  padding: 16px 24px;
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.9);
  color: white;
  backdrop-filter: blur(8px);
  border: 1px solid var(--glass-border);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  min-width: 280px;
  animation: slideIn 0.3s ease-out;
}

.lcm-flash-error {
  border-left: 4px solid #ef4444;
}

.lcm-flash-success {
  border-left: 4px solid #10b981;
}

@keyframes slideIn {
  from {
    transform: translateX(100%);
    opacity: 0;
  }

  to {
    transform: translateX(0);
    opacity: 1;
  }
}

/* Positions Page */
.lcm-positions-container {
  padding: 0px 24px 20px;
  width: 100%;
  margin: 0;
  box-sizing: border-box;
}

.lcm-table-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.lcm-table-wrapper {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  overflow-x: auto;
  overflow-y: hidden;
}

.lcm-table {
  width: 100%;
  min-width: 860px;
  border-collapse: collapse;
  text-align: left;
}

.lcm-table th {
  padding: 16px 24px;
  background: #f8fafc;
  color: #64748b;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 700;
  border-bottom: 1px solid #e2e8f0;
}

.lcm-table td {
  padding: 20px 24px;
  border-bottom: 1px solid #f1f5f9;
  font-size: 0.9rem;
  color: #000;
}

.lcm-table tr:last-child td {
  border-bottom: none;
}

.lcm-table tr:hover {
  background: none;
}

.lcm-asset-cell {
  display: flex;
  align-items: center;
  gap: 12px;
}

.lcm-logo-box {
  width: 32px;
  height: 32px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.lcm-logo-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.lcm-symbol-ticker {
  font-weight: 700;
  font-size: 0.95rem;
}

.lcm-delta.positive {
  color: #10b981;
}

.lcm-delta.negative {
  color: #ef4444;
}

.lcm-badge-bullish {
  color: #10b981;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
}

.lcm-badge-bearish {
  color: #ef4444;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
}

@media (max-width: 900px) {
  .lcm-positions-container {
    padding: 24px 16px 32px;
  }
}

@media (max-width: 640px) {
  .lcm-positions-container {
    padding: 20px 12px 28px;
  }

  .lcm-table {
    min-width: 720px;
  }
}

/* Watchlist Page */
.lcm-watchlist-container {
  padding: 32px 0 40px;
  width: 100%;
  margin: 0;
}

.lcm-watchlist-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
  margin-top: 24px;
  width: 100%;
}

.lcm-watchlist-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: none;
}

.lcm-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.lcm-symbol-group {
  display: flex;
  align-items: center;
  gap: 12px;
}

.lcm-industry-label {
  font-size: 0.75rem;
  color: #64748b;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 120px;
}

.lcm-price-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

.lcm-card-price {
  font-size: 1.25rem;
  font-weight: 700;
  color: #000;
}

.lcm-change-pill {
  font-size: 0.85rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 6px;
}

.lcm-change-pill.positive {
  background: #ecfdf5;
  color: #10b981;
}

.lcm-change-pill.negative {
  background: #fef2f2;
  color: #ef4444;
}

.lcm-card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 12px;
  border-top: 1px solid #f1f5f9;
}

.lcm-analysis-badge {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.lcm-analysis-badge.bullish {
  color: #10b981;
}

.lcm-analysis-badge.bearish {
  color: #ef4444;
}

.lcm-muted {
  color: var(--text-muted);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.lcm-profile-popout {
  position: absolute;
  top: 60px;
  right: 20px;
  width: 280px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
  z-index: 1000;
  display: none;
  animation: lcmPopIn 200ms ease-out;
}

.lcm-profile-popout.is-active {
  display: block;
}

@keyframes lcmPopIn {
  from {
    opacity: 0;
    transform: translateY(-10px) scale(0.95);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.lcm-profile-popout-wrap {
  position: relative;
}

.lcm-popout-email {
  font-weight: 600;
  color: #000;
  margin-bottom: 4px;
  font-size: 0.95rem;
}

.lcm-popout-op {
  font-size: 0.8rem;
  color: #64748b;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.lcm-admin-panel {
  border-top: 1px solid #f1f5f9;
  padding-top: 16px;
  margin-top: 16px;
}

.lcm-admin-label {
  font-size: 0.7rem;
  font-weight: 800;
  color: #000;
  text-transform: uppercase;
  margin-bottom: 10px;
  display: block;
}

.lcm-popout-btn {
  width: 100%;
  padding: 10px;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: 120ms;
  margin-top: 8px;
}

.lcm-popout-btn-primary {
  background: #000;
  color: #fff;
}

.lcm-popout-btn-secondary {
  background: #f8fafc;
  color: #000;
  border: 1px solid #e2e8f0;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lcm-popout-btn-signout {
  margin-top: 12px;
  color: #ef4444;
}

.lcm-admin-input {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  font-size: 0.85rem;
  margin-bottom: 8px;
}

.lcm-auth-toggle-hidden {
  display: none !important;
}

.lcm-auth-intro {
  margin-bottom: 24px;
  text-align: center;
}

.lcm-auth-intro-title {
  font-size: 1.5rem;
  margin: 0 0 8px;
}

.lcm-auth-intro-copy {
  font-size: 0.9rem;
  margin: 0;
}

/* Ensure parents of info page are locked */
#lcm-main-scroll:has(.lcm-info-page) {
  overflow: hidden !important;
}

.lcm-info-page {
  padding: 60px 20px;
  width: 100%;
  margin: 0 auto;
  line-height: 1.8;
  overflow-x: hidden;
}

.lcm-info-card {
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  border-radius: 32px;
  padding: 60px;
  color: black;
  position: relative;
  overflow: hidden;
  /* Contains the internal scroll box */
  display: flex !important;
  flex-direction: column;
  height: calc(100vh - 240px);
  /* Fixed visual boundary */
  min-height: 400px;
}

.lcm-info-copy::after {
  content: "";
  display: block;
  clear: both;
}

.lcm-info-hero {
  margin-bottom: 14px;
  color: black;
  position: relative;
  background: transparent;
  pointer-events: auto;
}

.lcm-info-demo {
  float: right;
  width: min(360px, 38%);
  max-width: 360px;
  margin: 6px 0 28px 32px;
  background: #ffffff;
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: 18px 20px;
  position: relative;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  color: #000000;
  shape-outside: inset(0 round 20px);
}

@media (max-width: 800px) {
  .lcm-info-card {
    padding: 30px !important;
  }

  .lcm-info-demo {
    float: none;
    width: 100%;
    max-width: none;
    margin: 0 0 28px;
    padding: 16px;
    shape-outside: none;
  }

  .lcm-info-graph-wrap {
    height: 170px !important;
  }
}

@media (max-width: 500px) {
  .lcm-info-demo {
    margin-bottom: 24px;
  }

  .lcm-info-hero h1 {
    font-size: 1.8rem !important;
  }
}

.lcm-info-graph-wrap {
  height: 190px;
  width: 100%;
  margin-top: 12px;
}

.lcm-info-graph {
  width: 100%;
  height: 100%;
  display: block;
}

.lcm-info-grid-box {
  fill: #ffffff;
  stroke: rgba(15, 23, 42, 0.08);
  stroke-width: 1.2;
}

.lcm-info-card h1,
.lcm-info-card h2,
.lcm-info-card h3 {
  color: white;
  font-family: var(--font-main);
  margin-top: 2rem;
  color: black;
}

.lcm-info-card h1 {
  margin-top: 0;
  font-size: 2.8rem;
  letter-spacing: -0.03em;
}

.lcm-info-card h2 {
  font-size: 1.8rem;
  margin-top: 50px;
}

.lcm-info-card p {
  margin-bottom: 24px;
  font-size: 1.05rem;
}

.lcm-info-line {
  fill: none;
  stroke: var(--primary);
  stroke-width: 2.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.lcm-info-point {
  fill: var(--primary);
  stroke: #ffffff;
  stroke-width: 2;
}

.lcm-info-empty-text {
  fill: var(--text-muted);
  font-size: 14px;
  font-weight: 600;
}

.lcm-info-demo-title {
  margin-top: 0;
  font-size: 1.1rem;
}

.lcm-info-meta {
  margin-top: 12px;
  font-size: 0.82rem;
}

.lcm-info-target-accent {
  color: var(--primary);
  font-weight: 700;
}

.lcm-hero-logo-left {
  text-align: left;
  color: black;
}

.lcm-info-lead {
  font-size: 1.2rem;
  opacity: 0.8;
}

.lcm-info-divider {
  border: none;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin: 60px 0;
}

.lcm-info-footer-note {
  font-size: 0.9rem;
  text-align: center;
}

.lcm-legal-container {
  padding: 60px 20px;
  width: 100%;
  margin: 0;
  line-height: 1.8;
}

.lcm-legal-content {
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  border-radius: 32px;
  padding: 60px;
  color: var(--text-muted);
}

.lcm-legal-content h1,
.lcm-legal-content h2,
.lcm-legal-content h3,
.lcm-legal-content h4,
.lcm-legal-content h5,
.lcm-legal-content h6 {
  color: rgb(0, 0, 0);
  font-family: var(--font-main);
  margin-top: 40px;
}

.lcm-legal-content h1 {
  margin-top: 0;
  font-size: 2.5rem;
}

.lcm-legal-content h2 {
  border-bottom: 1px solid var(--glass-border);
  padding-bottom: 15px;
}

.lcm-legal-content h3,
.lcm-legal-content h4,
.lcm-legal-content h5,
.lcm-legal-content h6 {
  font-size: 1.15rem;
}

.lcm-legal-content p {
  margin-bottom: 24px;
}

.lcm-legal-content strong {
  color: #0f172a;
}

.lcm-legal-content ul {
  margin-bottom: 24px;
  padding-left: 20px;
}

.lcm-legal-content ol {
  margin-bottom: 24px;
  padding-left: 20px;
}

.lcm-legal-content li {
  margin-bottom: 12px;
}

.lcm-markdown-content> :first-child {
  margin-top: 0;
}

.lcm-markdown-content> :last-child {
  margin-bottom: 0;
}

.lcm-legal-content a {
  color: #2563eb;
}

.lcm-legal-content code {
  font-family: "SFMono-Regular", "Consolas", "Liberation Mono", monospace;
  font-size: 0.92em;
  background: #f8fafc;
  color: #111827;
  padding: 0.12rem 0.32rem;
  border-radius: 6px;
}

.lcm-legal-content pre {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 16px;
  overflow-x: auto;
}

.lcm-legal-content hr {
  border: 0;
  border-top: 1px solid var(--glass-border);
  margin: 32px 0;
}

.lcm-legal-hero {
  margin-bottom: 10px;
  text-align: left;
}

.lcm-legal-divider {
  border: 0;
  border-top: 1px solid var(--glass-border);
  margin: 40px 0;
}

.lcm-legal-footer-note {
  font-size: 0.9rem;
}

.lcm-projections-container {
  padding: 40px 20px;
  width: 100%;
  margin: 0;
}

.lcm-projections-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 40px;
}

.lcm-proj-card {
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  padding: 30px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.lcm-proj-value {
  font-size: 2.2rem;
  font-weight: 700;
  font-family: var(--font-main);
  color: var(--primary);
}

.lcm-proj-label {
  font-size: 0.85rem;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 0.1em;
}

.lcm-mini-chart-wrap {
  height: 80px;
  width: 100%;
  background: transparent;
  border-radius: 12px;
}

.lcm-proj-section-title {
  grid-column: 1 / -1;
  font-family: var(--font-main);
  font-size: 1.5rem;
  margin-top: 40px;
  border-bottom: 1px solid var(--glass-border);
  padding-bottom: 10px;
}

.lcm-projections-title {
  margin: 0;
  font-size: 2.5rem;
  text-align: left;
}

.lcm-settings-grid {
  display: grid;
  grid-template-columns: 350px 1fr;
  gap: 30px;
  padding: 40px 20px;
  max-width: 1400px;
  margin: 0 auto;
}

.lcm-settings-sidebar {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.lcm-settings-content {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
  gap: 30px;
}

.lcm-settings-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 24px;
  padding: 30px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}

.lcm-card-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 20px;
  border-bottom: 1px solid #f1f5f9;
  padding-bottom: 15px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.lcm-profile-hero {
  text-align: center;
  padding: 20px 0;
}

.lcm-profile-avatar-large {
  width: 100px;
  height: 100px;
  background: #000;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  font-weight: 700;
  margin: 0 auto 20px;
}

.lcm-settings-name {
  margin: 0 0 5px;
}

.lcm-settings-member-since {
  color: #64748b;
  font-size: 0.9rem;
  margin: 0;
}

.lcm-settings-profile-fields {
  margin-top: 30px;
}

.lcm-field-group {
  margin-bottom: 20px;
}

.lcm-field-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 800;
  color: #64748b;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.lcm-field-value {
  color: #000;
  font-weight: 500;
}

.lcm-field-value-capitalize {
  text-transform: capitalize;
}

.lcm-settings-input {
  width: 100%;
  padding: 12px 16px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  font-size: 0.95rem;
  transition: 150ms;
  box-sizing: border-box;
}

.lcm-settings-input:focus {
  border-color: #000;
  background: #fff;
  outline: none;
}

.lcm-btn-save {
  background: #000;
  color: #fff;
  border: none;
  padding: 14px;
  border-radius: 12px;
  font-weight: 700;
  cursor: pointer;
  width: 100%;
  margin-top: 10px;
}

.lcm-toggle-wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  gap: 16px;
}

.lcm-toggle-text {
  min-width: 0;
}

.lcm-settings-item-title {
  font-weight: 600;
}

.lcm-settings-item-copy {
  font-size: 0.8rem;
  color: #64748b;
}

.lcm-switch {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 24px;
  flex-shrink: 0;
}

.lcm-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.lcm-slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background-color: #e2e8f0;
  transition: 0.4s;
  border-radius: 24px;
}

.lcm-slider::before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: 0.4s;
  border-radius: 50%;
}

.lcm-switch input:checked+.lcm-slider {
  background-color: #000;
}

.lcm-switch input:checked+.lcm-slider::before {
  transform: translateX(26px);
}

.lcm-settings-info-box {
  margin-top: 15px;
  padding: 15px;
  background: #f8fafc;
  border-radius: 12px;
  font-size: 0.85rem;
}

.lcm-advanced-badge {
  font-size: 0.65rem;
  background: #f1f5f9;
  padding: 2px 6px;
  border-radius: 4px;
  color: #64748b;
}

.lcm-settings-actions {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
}

.lcm-settings-action-link {
  flex: 1;
  padding: 12px;
  border-radius: 12px;
  font-size: 0.9rem;
  font-weight: 700;
}

.lcm-settings-schedule-note {
  font-size: 0.8rem;
  color: #64748b;
}

.lcm-legal-link {
  display: flex;
  justify-content: space-between;
  padding: 12px 0;
  color: #000;
  text-decoration: none;
  font-weight: 500;
  border-bottom: 1px solid #f8fafc;
}

.lcm-legal-link-icon {
  font-size: 0.8rem;
  opacity: 0.3;
}

.lcm-settings-platform-note {
  margin-top: 20px;
  font-size: 0.75rem;
  color: #94a3b8;
  text-align: center;
}

.lcm-settings-modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 2000;
  align-items: center;
  justify-content: center;
}

.lcm-settings-modal-card {
  width: 400px;
  max-width: calc(100vw - 32px);
  text-align: center;
}

.lcm-settings-modal-title {
  margin: 0 0 15px;
}

.lcm-settings-modal-copy {
  font-size: 0.9rem;
  color: #64748b;
  margin-bottom: 25px;
}

.lcm-settings-secret {
  background: #f8fafc;
  padding: 20px;
  border-radius: 12px;
  font-family: monospace;
  font-size: 1.2rem;
  margin-bottom: 25px;
  border: 1px dashed #e2e8f0;
  word-break: break-word;
}

.lcm-settings-modal-input {
  text-align: center;
  font-size: 1.2rem;
  letter-spacing: 5px;
  margin-bottom: 20px;
}

.lcm-settings-modal-cancel {
  margin-top: 10px;
  border: none;
  background: none;
  color: #64748b;
}

.lcm-support-grid {
  padding: 60px 20px;
  max-width: 1000px;
  margin: 0 auto;
}

.lcm-support-hero {
  text-align: center;
  margin-bottom: 60px;
}

.lcm-support-title {
  font-size: 2.5rem;
  margin-bottom: 15px;
}

.lcm-faq-section {
  margin-bottom: 50px;
}

.lcm-faq-item {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  margin-bottom: 15px;
  overflow: hidden;
  transition: 200ms;
}

.lcm-faq-trigger {
  padding: 24px;
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.05rem;
  font-weight: 700;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: black;
}

.lcm-faq-trigger:hover {
  background: #f8fafc;
}

.lcm-faq-chevron {
  font-size: 0.8rem;
  opacity: 0.5;
  transition: 200ms;
}

.lcm-faq-content {
  padding: 0 24px 24px;
  color: #64748b;
  font-size: 0.95rem;
  line-height: 1.6;
  display: none;
}

.lcm-faq-item.is-active .lcm-faq-content {
  display: block;
}

.lcm-faq-item.is-active .lcm-faq-chevron {
  transform: rotate(180deg);
}

.lcm-contact-card {
  background: #000000;
  border-radius: 24px;
  padding: 40px;
  color: #ffffff;
  text-align: center;
  margin-top: 60px;
}

.lcm-contact-form-wrap {
  background: #ffffff;
  padding: 40px;
  border-radius: 24px;
  border: 1px solid #e2e8f0;
  margin-top: 40px;
}

.lcm-contact-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: #000;
  text-align: center;
}

.lcm-contact-copy {
  text-align: center;
  margin-bottom: 30px;
}

.lcm-support-message {
  height: 150px;
  resize: none;
}

.lcm-btn-glow-spaced {
  margin-top: 20px;
}

.lcm-contact-heading {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 20px;
}

.lcm-contact-subcopy {
  opacity: 0.7;
  font-size: 1.1rem;
  margin-bottom: 30px;
}

.lcm-contact-email {
  color: #fff;
  text-decoration: underline;
  font-weight: 700;
  font-size: 1.2rem;
}

.lcm-table-title-sm {
  margin: 0;
  font-size: 1.75rem;
  text-align: left;
}

.lcm-logo-placeholder {
  font-size: 0.75rem;
  color: #94a3b8;
  font-weight: 800;
}

.lcm-card-meta-copy {
  font-size: 0.75rem;
}

.lcm-watchlist-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 100px;
}

.lcm-analysis-neutral {
  font-size: 0.75rem;
}

.lcm-positions-empty {
  text-align: center;
  padding: 60px;
}

@media (max-width: 900px) {
  .lcm-settings-grid {
    grid-template-columns: 1fr;
  }

  .lcm-settings-sidebar {
    position: static;
  }

  .lcm-projections-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 800px) {
  .lcm-info-demo {
    float: none;
    width: 100%;
    margin-left: 0;
    margin-bottom: 40px;
  }

  .lcm-info-card {
    padding: 30px;
  }

  .lcm-hero-logo {
    font-size: 2rem;
  }
}