:root {
  --bg-0: #070b0f;
  --bg-1: #101922;
  --card: rgba(18, 29, 40, 0.82);
  --stroke: rgba(93, 130, 156, 0.35);
  --text-main: #e9f1f6;
  --text-muted: #8fa5b5;
  --teal: #00d39a;
  --teal-soft: rgba(0, 211, 154, 0.2);
  --amber: #f9af4f;
  --danger: #ff6b63;
  --shadow: 0 18px 36px rgba(0, 0, 0, 0.35);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text-main);
  background: radial-gradient(circle at 8% 10%, #153146 0%, transparent 35%),
    radial-gradient(circle at 90% 85%, #4a230f 0%, transparent 36%),
    linear-gradient(145deg, var(--bg-0), var(--bg-1));
  font-family: "Noto Sans SC", "PingFang SC", sans-serif;
}

.ambient {
  position: fixed;
  inset: 0;
  background-image: linear-gradient(
      to right,
      rgba(255, 255, 255, 0.03) 1px,
      transparent 1px
    ),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(circle at center, black, transparent 90%);
  pointer-events: none;
  z-index: 0;
}

.layout {
  width: min(1180px, 92vw);
  margin: 28px auto 48px;
  position: relative;
  z-index: 1;
}

.page-top {
  margin: 8px 0 14px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 12px;
}

.page-top h1 {
  font-size: clamp(32px, 5vw, 54px);
}

.page-top p {
  margin: 6px 0 0;
  color: var(--text-muted);
}

.meta-line {
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.6;
  text-align: right;
}

.hero,
.metric-card,
.panel {
  border: 1px solid var(--stroke);
  background: var(--card);
  backdrop-filter: blur(8px);
  box-shadow: var(--shadow);
  border-radius: 18px;
}

.hero {
  padding: 26px;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: center;
}

.brand-block {
  display: flex;
  align-items: center;
  gap: 22px;
}

.logo {
  width: 170px;
  height: 170px;
  object-fit: contain;
  border-radius: 14px;
  background: #fff;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.eyebrow {
  color: var(--amber);
  letter-spacing: 0.26em;
  margin: 0;
  font-size: 12px;
  font-weight: 700;
}

h1,
h2,
h3 {
  font-family: "Rajdhani", "Noto Sans SC", sans-serif;
  margin: 0;
}

h1 {
  margin-top: 4px;
  font-size: clamp(38px, 6vw, 72px);
  letter-spacing: 0.06em;
}

.hero-note {
  margin-top: 6px;
  color: var(--text-muted);
  max-width: 620px;
}

.broker-cta {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.broker-name {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.05);
  font-size: 14px;
  color: var(--text-muted);
}

.broker-name strong {
  color: var(--text-main);
  font-weight: 700;
}

.register-link {
  display: inline-flex;
  align-items: center;
  padding: 9px 16px;
  border-radius: 999px;
  text-decoration: none;
  color: #002318;
  background: linear-gradient(90deg, #00d39a, #2df0c0);
  border: 1px solid rgba(0, 211, 154, 0.8);
  font-weight: 700;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.register-link:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 20px rgba(0, 211, 154, 0.3);
}

.register-link.disabled {
  pointer-events: none;
  color: #95a9b8;
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.18);
  box-shadow: none;
}

.hero-meta {
  min-width: 260px;
  padding: 16px;
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.1);
  line-height: 1.8;
}

.hero-meta p {
  margin: 0;
}

.hidden {
  display: none !important;
}

.meta-tools {
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.meta-tools.align-right {
  justify-content: flex-end;
}

.meta-tools label {
  font-size: 13px;
  color: var(--text-muted);
}

.lang-select {
  min-width: 110px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  padding: 6px 10px;
  background: rgba(10, 18, 24, 0.85);
  color: var(--text-main);
}

.account-switch {
  margin-bottom: 10px;
}

.account-switch.account-inline {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
}

.account-switch p {
  margin: 0 0 6px;
  font-size: 13px;
  color: var(--text-muted);
}

.account-switch.account-inline p {
  margin: 0;
}

.account-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.account-tab {
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 6px 12px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-main);
  font-size: 13px;
  cursor: pointer;
  transition: 0.2s ease;
}

.account-tab:hover {
  border-color: rgba(0, 211, 154, 0.6);
}

.account-tab.active {
  border-color: rgba(0, 211, 154, 0.9);
  background: rgba(0, 211, 154, 0.18);
  color: #b9ffe9;
}

.warning {
  color: var(--amber);
  font-size: 13px;
}

.metric-grid {
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.metric-card {
  padding: 18px 20px;
}

.metric-card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 14px;
}

.metric-card h3 {
  margin-top: 12px;
  font-size: clamp(24px, 4vw, 38px);
}

.panel {
  margin-top: 16px;
  padding: 18px;
}

.panel-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.panel-head h2 {
  font-size: 30px;
}

.panel-head span {
  color: var(--text-muted);
  font-size: 14px;
}

#curve-canvas {
  width: 100%;
  height: 340px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: linear-gradient(
    180deg,
    rgba(9, 14, 20, 0.8) 0%,
    rgba(9, 14, 20, 0.3) 100%
  );
}

.hint {
  margin: 10px 2px 0;
  color: var(--text-muted);
  font-size: 13px;
}

.symbol-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  min-height: 38px;
}

.symbol-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(0, 211, 154, 0.5);
  background: rgba(0, 211, 154, 0.12);
  font-weight: 700;
}

.symbol-pill small {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 500;
}

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

.table-wrap {
  overflow: auto;
}

.more-actions {
  margin-top: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.view-all-link {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.26);
  color: var(--text-main);
  text-decoration: none;
  transition: 0.2s ease;
}

.view-all-link:hover {
  border-color: rgba(0, 211, 154, 0.68);
  color: var(--teal);
}

.more-hint {
  font-size: 13px;
  color: var(--text-muted);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

th,
td {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 11px 10px;
  text-align: left;
  white-space: nowrap;
}

th {
  color: var(--text-muted);
  font-weight: 500;
}

tbody tr:hover {
  background: rgba(255, 255, 255, 0.03);
}

.status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 9px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

.status.closed {
  color: #0f2e20;
  background: #72f6c1;
}

.status.open,
.status.partial {
  color: #1f1a07;
  background: #ffd486;
}

.positive {
  color: var(--teal);
}

.negative {
  color: var(--danger);
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.contact-grid article {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.02);
}

.contact-grid p {
  margin: 0;
  font-size: 13px;
  color: var(--text-muted);
}

.contact-grid h4 {
  margin: 8px 0 0;
  font-size: 17px;
}

.contact-link {
  color: var(--text-light);
  text-decoration: none;
  border-bottom: 1px dashed rgba(111, 244, 211, 0.6);
}

.contact-link:hover {
  color: var(--teal);
}

.risk-note {
  margin: 14px 2px 0;
  color: var(--text-muted);
  font-size: 13px;
}

.reveal {
  animation: reveal 0.7s ease both;
}

@keyframes reveal {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 980px) {
  .hero {
    flex-direction: column;
    align-items: flex-start;
  }

  .metric-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .contact-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .layout {
    width: min(1180px, 95vw);
  }

  .brand-block {
    flex-direction: column;
    align-items: flex-start;
  }

  .logo {
    width: 130px;
    height: 130px;
  }

  .metric-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .panel-head h2 {
    font-size: 24px;
  }
}
