/* ═══════════════════════════════
   DASHBOARD / LIVE TRADING
═══════════════════════════════ */

.dashboard {
  position: relative;
  width: 100%;
  min-height: 100vh;
  padding: 0;
  background: #FFFFFF;
  color: #05295E;
  overflow: hidden;
  transition: background 0.5s ease, color 0.5s ease;
}

body.light .dashboard {
  background: #F8FAFC;
  color: #05295E;
}

/* ── Background Video ── */
.dashboard-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  z-index: 0;
  pointer-events: none;
}

.dashboard-video:not([src]),
.dashboard-video[src=""] {
  display: none;
}

/* When video has source and loads */
.dashboard-video.loaded {
  opacity: 1;
}

/* ── Overlay ── */
.dashboard-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: rgba(248, 250, 252, 0.55);
  backdrop-filter: blur(2px);
  pointer-events: none;
  transition: background 0.6s ease;
}

body.light .dashboard-overlay {
  background: rgba(248, 250, 252, 0.5);
  backdrop-filter: blur(3px);
}

/* No video — make overlay solid */
.dashboard-video:not(.loaded) ~ .dashboard-overlay {
  background: #FFFFFF;
  backdrop-filter: none;
}

body.light .dashboard-video:not(.loaded) ~ .dashboard-overlay {
  background: #F8FAFC;
  backdrop-filter: none;
}

/* ═══════════════════════
   INNER LAYOUT
════════════════════════ */
.dashboard-inner {
  position: relative;
  z-index: 5;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 80px;
  padding: 140px 8%;
  min-height: 100vh;
}

/* ═══════════════════════
   LEFT — MOCKUP
════════════════════════ */
.dashboard-left {
  flex: 1.15;
  display: flex;
  justify-content: center;
  align-items: center;
}

.dash-mockup {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 270px; /* Changed from 580px */
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(40px) saturate(1.4);
  -webkit-backdrop-filter: blur(40px) saturate(1.4);
  border: 1px solid rgba(13, 86, 169, 0.1);
  border-radius: 20px;
  overflow: hidden;
  box-shadow:
    inset 0 1px 0 0 rgba(255, 255, 255, 0.8),
    0 30px 80px rgba(5, 41, 94, 0.08),
    0 0 0 1px rgba(13, 86, 169, 0.05),
    0 0 100px rgba(13, 86, 169, 0.04);
  will-change: transform;
}

.dash-mockup::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 50%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.3) 0%, transparent 100%);
  border-radius: 20px 20px 0 0;
  pointer-events: none;
  z-index: 10;
}

.dash-mockup::after {
  content: "";
  position: absolute;
  top: -1px;
  left: 20%;
  right: 20%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(13, 86, 169, 0.15), transparent);
  pointer-events: none;
  z-index: 10;
}

body.light .dash-mockup {
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(40px) saturate(1.3);
  -webkit-backdrop-filter: blur(40px) saturate(1.3);
  border: 1px solid rgba(13, 86, 169, 0.1);
  box-shadow:
    inset 0 1px 0 0 rgba(255, 255, 255, 0.8),
    0 30px 80px rgba(5, 41, 94, 0.08),
    0 0 0 1px rgba(13, 86, 169, 0.05),
    0 0 80px rgba(13, 86, 169, 0.03);
}

body.light .dash-mockup::before {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.3) 0%, transparent 100%);
}

body.light .dash-mockup::after {
  background: linear-gradient(90deg, transparent, rgba(13, 86, 169, 0.15), transparent);
}

.dash-mockup img {
  display: block;
  width: 100%;
  height: auto;
  margin-bottom: -2px;
  position: relative;
  z-index: 1;
}

/* ═══════════════════════
   RIGHT — CONTENT
════════════════════════ */
.dashboard-right {
  flex: 1;
  min-width: 0;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: #0D56A9;
  font-size: 13px;
  letter-spacing: 3px;
  font-weight: 700;
  text-transform: uppercase;
}

.tag-line {
  display: block;
  width: 36px;
  height: 1px;
  background: linear-gradient(90deg, transparent, #0D56A9, transparent);
}

.dashboard h2 {
  font-size: 52px;
  font-weight: 800;
  margin: 22px 0;
  line-height: 1.15;
  letter-spacing: -1.5px;
  color: #05295E;
  transition: color 0.5s ease;
}

body.light .dashboard h2 {
  color: #05295E;
}

.dashboard h2 span {
  background: linear-gradient(135deg, #0D56A9, #B89857);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.dashboard-right > p {
  font-size: 15px;
  line-height: 1.8;
  color: #5F6B7A;
  margin-bottom: 35px;
  max-width: 480px;
  transition: color 0.5s ease;
}

body.light .dashboard-right > p {
  color: #5F6B7A;
}

/* ── Feature Grid ── */
.dashboard-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 40px;
}

.dash-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: #FFFFFF;
  border: 1px solid #E5E7EB;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 500;
  color: #05295E;
  transition: all 0.35s ease;
}

body.light .dash-item {
  background: #FFFFFF;
  border-color: #E5E7EB;
  color: #05295E;
}

.dash-item i {
  color: #B89857;
  font-size: 16px;
  flex-shrink: 0;
}

.dash-item:hover {
  transform: translateX(6px);
  border-color: rgba(13, 86, 169, 0.25);
  background: #EFF6FF;
  box-shadow: 0 4px 20px rgba(13, 86, 169, 0.08);
}

body.light .dash-item:hover {
  background: #EFF6FF;
  border-color: rgba(13, 86, 169, 0.2);
}

/* ── Button ── */
.dashboard-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 18px 36px;
  border: none;
  border-radius: 50px;
  background: linear-gradient(135deg, #0D56A9, #B89857);
  color: #FFFFFF;
  font-size: 15px;
  font-weight: 700;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 20px rgba(13, 86, 169, 0.25);
}

.dashboard-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.6s ease;
}

.dashboard-btn:hover::before {
  left: 100%;
}

.dashboard-btn:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 40px rgba(13, 86, 169, 0.4);
}

.dashboard-btn:active {
  transform: translateY(0) scale(0.97);
}

.dashboard-btn i {
  font-size: 18px;
  transition: transform 0.3s ease;
}

.dashboard-btn:hover i {
  transform: translateX(4px);
}

/* ═══════════════════════════════
   SCROLL REVEAL
═══════════════════════════════ */
.dashboard-right .section-tag:not(.dash-reveal),
.dashboard-right h2:not(.dash-reveal),
.dashboard-right > p:not(.dash-reveal),
.dashboard-list:not(.dash-reveal),
.dashboard-btn:not(.dash-reveal) {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.dashboard-right .section-tag.dash-reveal { opacity: 1; transform: translateY(0); transition-delay: 0s; }
.dashboard-right h2.dash-reveal { opacity: 1; transform: translateY(0); transition-delay: 0.1s; }
.dashboard-right > p.dash-reveal { opacity: 1; transform: translateY(0); transition-delay: 0.2s; }
.dashboard-list.dash-reveal { opacity: 1; transform: translateY(0); transition-delay: 0.3s; }
.dashboard-btn.dash-reveal { opacity: 1; transform: translateY(0); transition-delay: 0.4s; }

.dash-mockup:not(.dash-reveal) {
  opacity: 0;
  transform: translateY(50px) scale(0.92);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.dash-mockup.dash-reveal {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* ═══════════════════════
   RESPONSIVE
════════════════════════ */
@media (max-width: 1024px) {
  .dashboard-inner {
    padding: 100px 6%;
    gap: 50px;
  }

  .dashboard h2 {
    font-size: 40px;
  }

  .dash-mockup {
    max-width: 500px;
  }
}

@media (max-width: 768px) {
  .dashboard {
    min-height: auto;
    overflow: visible;
    height: auto;
  }

  .dashboard-inner {
    flex-direction: column;
    text-align: center;
    padding: 80px 6%;
    min-height: auto;
  }

  .dashboard-left {
    order: 1;
  }

  .dashboard-right {
    order: 2;
  }

  .dashboard-right > p {
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
  }

  .dashboard-list {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .dash-item {
    justify-content: center;
    font-size: 12px;
    padding: 12px 10px;
  }

  .dashboard-btn {
    margin: 0 auto;
  }

  .dash-mockup {
    width: 100%;
    max-width: 440px;
  }
}

@media (max-width: 520px) {
  .dashboard-inner {
    padding: 60px 5%;
  }

  .dashboard h2 {
    font-size: 28px;
    letter-spacing: -0.5px;
  }

  .dashboard-right > p {
    font-size: 13px;
    margin-bottom: 28px;
  }

  .dashboard-list {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .dash-item {
    font-size: 13px;
  }

  .dash-mockup {
    width: 100%;
    border-radius: 16px;
  }

  .dashboard-btn {
    width: 100%;
    justify-content: center;
    padding: 16px 28px;
  }
}

/* ── Reduced Motion ── */
@media (prefers-reduced-motion: reduce) {
  .dashboard-video {
    display: none !important;
  }

  .dashboard-right .section-tag,
  .dashboard-right h2,
  .dashboard-right > p,
  .dashboard-list,
  .dashboard-btn,
  .dash-mockup {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}