/* Basic reset */
html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  box-sizing: border-box;
  overflow: visible;
}

*, *::before, *::after {
  box-sizing: inherit;
}

/*
  BODY => flex container
  topbar(50px), tickersbar(60px), main-content(flexible), footer(50px)
*/
body {
  display: flex;
  flex-direction: column;
  height: 100vh;
  font-family: Arial, sans-serif;
  background-color: #f9f9f9;
}

/* MAIN CONTENT */
.main-content {
  flex: 1;
  display: flex;
  background: #000;
  overflow: auto;
}
.layout {
  flex: 1;
  display: flex;
  border-top: 1px solid #555;
  border-bottom: 1px solid #555;
  overflow: hidden;
}

/* TOPBAR */
.topbar {
  flex: 0 0 50px;
  width: 100%;
  background-color: #1a1a1a;
  border-bottom: 2px solid #333;
  display: flex;
  align-items: center;
  padding: 0 20px;
  gap: 20px;
}
.topbar-left {
  display: flex;
  align-items: center;
  gap: 8px;
}
.logo-wrapper {
  display: flex;
  align-items: center;
  gap: 8px;
}
/* No neon glow */
.logo-icon-neon {
  position: relative;
}
.logo-icon {
  font-size: 16px;
  color: #00bfff;
  position: relative;
}
.logo-text {
  font-size: 18px;
  font-weight: bold;
  color: #fff;
}

/* NAV MENU */
.menu-links {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
}
.menu-links a {
  text-decoration: none;
  font-size: 13px;
  color: #ccc;
  padding: 4px 6px;
  transition: background 0.2s, color 0.2s;
}
.menu-links a:hover {
  background-color: #333;
  color: #fff;
}
.menu-links a.active {
  background-color: #333;
  color: #00bfff;
  font-weight: bold;
}

/* MARKET SELECTOR */
.market-selector {
  position: relative;
  color: #ccc;
  font-size: 13px;
}
.market-active {
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  padding: 4px 8px;
  transition: background 0.2s, color 0.2s;
}
.market-active:hover {
  background: #333;
  color: #fff;
}
.market-dropdown {
  position: absolute;
  top: 105%;
  right: 0;
  background-color: #101010;
  border: 1px solid #444;
  border-radius: 4px;
  display: none;
  z-index: 999;
  padding: 4px 0;
  min-width: 160px;
}
.market-item {
  padding: 4px 12px;
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  color: #ccc;
}
.market-item:hover {
  background: #333;
  color: #fff;
}
.market-selector.open .market-dropdown {
  display: block;
}
.flag-icon {
  width: 20px;
  height: 14px;
  object-fit: cover;
}

/* ACCOUNT DROPDOWN */
.topbar-right {
  display: flex;
  align-items: center;
  gap: 20px;
}
.account-dropdown {
  position: relative;
}
.account-info {
  display: flex;
  align-items: center;
  cursor: pointer;
  color: #fff;
  padding: 2px 8px;
}
.account-name {
  font-size: 14px;
  margin-right: 6px;
}
.account-tier {
  background-color: #04578e00;
  border: 1px solid #ffffff;
  border-radius: 4px;
  padding: 2px 5px;
  font-size: 10px;
  font-weight: bold;
  color: #fff;
  box-shadow:
    0 0 2px #ffffff,
    0 0 4px #ffffff;
  margin-right: 6px;
}
.arrow-icon {
  color: #fff;
  font-size: 12px;
}
.dropdown-menu {
  position: absolute;
  right: 0;
  top: 110%;
  background-color: #1a1a1a;
  border: 1px solid #00bfff;
  border-radius: 4px;
  display: none;
  min-width: 140px;
  z-index: 999;
}
.dropdown-menu.show {
  display: block;
}
.dropdown-menu a {
  display: block;
  color: #fff;
  text-decoration: none;
  padding: 8px 12px;
  font-size: 14px;
  transition: background 0.2s;
}
.dropdown-menu a:hover {
  background-color: #333;
}

/* TICKERSBAR */
.tickersbar {
  flex: 0 0 60px;
  width: 100%;
  background-color: #1a1a1a;
  display: flex;
  align-items: center;
  padding: 0 20px;
  gap: 20px;
}
.tickersbar-left,
.tickersbar-center,
.tickersbar-right {
  display: flex;
  align-items: center;
}
.tickersbar-left {
  gap: 15px;
}
.tickersbar-center {
  flex: 1;
  justify-content: center;
}
.tickersbar-right {
  gap: 15px;
}

/* Briefing Launcher */
.briefing-launcher {
  display: flex;
  align-items: center;
  gap: 4px;
  color: #fff;
  cursor: pointer;
}
.briefing-icon {
  font-size: 14px;
}
.briefing-launcher:hover .briefing-icon {
  color: #00bfff;
}

/* TICKERS container */
.tickers-container {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}
.ticker-btn {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #04578e;
  color: #fff;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  border: 1px solid #00bfff;
  border-radius: 4px;
  box-shadow:
    0 0 2px  #00bfff,
    0 0 3px  #00bfff;
  transition: box-shadow 0.2s, transform 0.2s;
}
.ticker-btn:hover,
.ticker-btn:focus {
  box-shadow:
    0 0 3px  #00bfff,
    0 0 5px  #00bfff;
  transform: scale(1.05);
}

/* SQUAWK */
.megaphone-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #fff;
  cursor: pointer;
}
.megaphone-icon {
  font-size: 14px;
}
.audio-switch {
  font-size: 18px;
}
.megaphone-toggle.squawk-on,
.megaphone-toggle.squawk-on .megaphone-icon,
.megaphone-toggle.squawk-on .audio-switch {
  color: #00bfff !important;
}

/* BRIEFING MODAL */
.briefing-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}
.briefing-modal-content {
  background: #111;
  border: 1px solid #00bfff;
  padding: 20px;
  border-radius: 6px;
  box-shadow:
    0 0 5px  #00bfff,
    0 0 10px #00bfff;
  max-width: 600px;
  color: #fff;
}
.briefing-modal-content h2 {
  margin-top: 0;
}
.briefing-close {
  background: #04578e;
  color: #fff;
  border: 1px solid #00bfff;
  box-shadow:
    0 0 2px  #00bfff,
    0 0 4px  #00bfff;
  border-radius: 4px;
  cursor: pointer;
  margin-top: 10px;
  padding: 6px 12px;
  font-size: 14px;
}

/* FOOTER */
.footerbar {
  flex: 0 0 50px;
  background-color: #1a1a1a;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
}
.footer-left {
  color: #fff;
  font-size: 14px;
}
.footer-language {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #fff;
  margin-left: 15px;
}
.footer-language i {
  font-size: 16px;
}
.language-select {
  background: #04578e;
  color: #fff;
  border: 1px solid #00bfff;
  border-radius: 4px;
  cursor: pointer;
  padding: 2px 6px;
}
.footer-center {
  display: flex;
  gap: 15px;
  margin-left: 15px;
}
.footer-center a {
  color: #fff;
  text-decoration: none;
  font-size: 14px;
}
.footer-center a:hover {
  color: #00bfff;
}
.footer-education {
  margin-left: 15px;
}
.footer-education a {
  color: #fff;
  text-decoration: none;
  font-size: 14px;
}
.footer-education a:hover {
  color: #00bfff;
}
.footer-education i {
  margin-right: 4px;
}
.footer-right-social {
  display: flex;
  gap: 15px;
  margin-left: 15px;
}
.footer-right-social a {
  color: #fff;
  text-decoration: none;
  font-size: 18px;
}
.footer-right-social a:hover {
  color: #00bfff;
}

/* NOTIFICATION TOGGLE */
.footer-notification-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #fff;
  cursor: pointer;
  margin-left: 15px;
}
.footer-notification-toggle .notification-icon {
  font-size: 14px;
}
.footer-notification-toggle .notification-switch {
  font-size: 18px;
}
.footer-notification-toggle.notification-on,
.footer-notification-toggle.notification-on .notification-icon,
.footer-notification-toggle.notification-on .notification-switch {
  color: #00bfff !important;
}
