/* ——— OTC Pro dashboard — one desktop-style window; the bar nav switches views ——— */

.otc-dash {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  padding: clamp(10px, 1.8vw, 24px) clamp(8px, 1.8vw, 24px) clamp(18px, 2.6vw, 32px);
  background: #0a0f24;
  color: #e8edff;
}

.otc-dash__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(rgba(148, 163, 255, 0.06) 1px, transparent 1px) 0 0 / 56px 56px,
    linear-gradient(90deg, rgba(148, 163, 255, 0.06) 1px, transparent 1px) 0 0 / 56px 56px,
    radial-gradient(ellipse 80% 70% at 10% -10%, rgba(91, 75, 255, 0.5) 0%, transparent 55%),
    radial-gradient(ellipse 70% 60% at 100% 20%, rgba(34, 211, 238, 0.22) 0%, transparent 52%),
    linear-gradient(168deg, #070b1a 0%, #0c1228 40%, #111a3a 75%, #0a0f24 100%);
}

.otc-dash__window {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  width: min(1440px, 100%);
  margin: 0 auto;
  border-radius: clamp(16px, 1.8vw, 24px);
  border: 1px solid rgba(148, 163, 255, 0.22);
  background: linear-gradient(180deg, rgba(17, 26, 58, 0.82) 0%, rgba(10, 15, 36, 0.9) 100%);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.06) inset,
    0 30px 80px rgba(3, 6, 20, 0.55),
    0 0 60px rgba(91, 75, 255, 0.12);
  backdrop-filter: blur(14px);
}

@media (min-width: 1100px) and (min-height: 640px) {
  .otc-dash__window {
    min-height: calc(100vh - 2 * clamp(10px, 1.8vw, 24px));
  }
}

/* Top system bar */
.otc-dash__bar {
  display: flex;
  align-items: center;
  gap: clamp(10px, 2vw, 24px);
  padding: 10px clamp(14px, 2vw, 22px);
  border-bottom: 1px solid rgba(148, 163, 255, 0.14);
  background: rgba(7, 11, 26, 0.55);
  border-radius: inherit;
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}

.otc-dash__brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  text-decoration: none;
  flex-shrink: 0;
}

/* Logo PNG has wide transparent padding; negative margins keep the bar slim */
.otc-dash__brand img {
  width: 64px;
  height: 64px;
  margin: -12px -8px -12px -10px;
  object-fit: contain;
}

.otc-dash__brand-text {
  padding-left: 12px;
  border-left: 1px solid rgba(148, 163, 255, 0.3);
  color: #c7d2fe;
  font-family: "Plus Jakarta Sans", Segoe UI, Arial, sans-serif;
  font-weight: 700;
  font-size: 15px;
}

.otc-dash__nav {
  display: flex;
  gap: 4px;
  overflow-x: auto;
  scrollbar-width: none;
}

.otc-dash__nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  border-radius: 999px;
  color: #c7d2fe;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}

.otc-dash__nav a:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.otc-dash__nav a:focus-visible { outline: 3px solid #22d3ee; outline-offset: 1px; }

.otc-dash__nav a[aria-current="page"] {
  color: #fff;
  background: linear-gradient(135deg, rgba(91, 75, 255, 0.9) 0%, rgba(67, 56, 202, 0.9) 100%);
  box-shadow: 0 6px 18px rgba(91, 75, 255, 0.35);
}

.otc-dash__nav-new.otc-rm-follow__new {
  padding: 2px 6px;
  font-size: 9.5px;
}

.otc-dash__today {
  margin: 0 0 0 auto;
  color: #a5b4fc;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}

/* Views */
.otc-dash__views {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.otc-dash__view {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: clamp(18px, 2.4vw, 28px);
  padding: clamp(18px, 2.6vw, 34px) clamp(14px, 2.6vw, 34px) clamp(20px, 2.8vw, 36px);
  animation: otc-dash-view-in 0.32s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.otc-dash__view[hidden] { display: none; }

.otc-dash__view:not(.otc-dash__view--home) > * {
  width: 100%;
  max-width: 1100px;
  margin-inline: auto;
}

@keyframes otc-dash-view-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}

.otc-dash__kicker {
  margin: 0 0 6px;
  color: #67e8f9;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.otc-dash__title {
  margin: 0 0 8px;
  font-size: clamp(1.6rem, 2.6vw, 2.25rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #fff;
  background: linear-gradient(100deg, #fff 0%, #e0e7ff 45%, #a5f3fc 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.otc-dash__lead {
  margin: 0;
  max-width: 60ch;
  color: #b8c2e8;
  font-size: clamp(15px, 1.2vw, 17px);
  line-height: 1.55;
}

/* Phones: nav becomes a 5-up tab row under the brand */
@media (max-width: 719px) {
  .otc-dash__bar { flex-wrap: wrap; row-gap: 8px; }
  .otc-dash__today { display: none; }
  .otc-dash__nav {
    order: 3;
    flex: 1 0 100%;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    margin: 0 -6px 2px;
  }
  .otc-dash__nav a {
    flex-direction: column;
    gap: 3px;
    padding: 7px 2px;
    border-radius: 14px;
    font-size: 11.5px;
    white-space: normal;
    text-align: center;
    line-height: 1.15;
  }
  .otc-dash__nav-ico { font-size: 18px; line-height: 1; }
  .otc-dash__nav-new.otc-rm-follow__new {
    position: absolute;
    top: 2px;
    right: 4px;
    font-size: 8px;
    padding: 1px 4px;
  }
}

@media (min-width: 720px) and (max-width: 1023px) {
  .otc-dash__today { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .otc-dash__view { animation: none; }
}

.otc-dash__view:focus { outline: none; }
