/* ===== Markets page supplemental styles ===== */

/* Ticker bar animation */
@keyframes ticker-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.ticker-animate {
  animation: ticker-scroll 30s linear infinite;
  width: max-content;
}

.ticker-animate:hover {
  animation-play-state: paused;
}

/* Hamburger icon (#nav-icon3) */
#nav-icon3 {
  width: 22px;
  height: 18px;
  position: relative;
  cursor: pointer;
}

#nav-icon3 span {
  display: block;
  position: absolute;
  height: 2px;
  width: 100%;
  background: #374151;
  border-radius: 2px;
  opacity: 1;
  left: 0;
  transition: .25s ease-in-out;
}

.dark #nav-icon3 span {
  background: #d1d5db;
}

#nav-icon3 span:nth-child(1) { top: 0; }
#nav-icon3 span:nth-child(2),
#nav-icon3 span:nth-child(3) { top: 7px; }
#nav-icon3 span:nth-child(4) { top: 14px; }

#nav-icon3.open span:nth-child(1) { top: 7px; width: 0; left: 50%; }
#nav-icon3.open span:nth-child(2) { transform: rotate(45deg); }
#nav-icon3.open span:nth-child(3) { transform: rotate(-45deg); }
#nav-icon3.open span:nth-child(4) { top: 7px; width: 0; left: 50%; }

/* Favorite star active state */
.table-name__icon.active path {
  fill: #f59e0b !important;
}

.table-name__icon:hover path {
  fill: #fbbf24;
}

/* Visualization toggle switch */
.vis-toggle {
  position: relative;
  width: 40px;
  height: 22px;
}

.vis-toggle input {
  opacity: 0;
  width: 0;
  height: 0;
}

.vis-toggle .slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background-color: #d1d5db;
  border-radius: 22px;
  transition: .3s;
}

.vis-toggle .slider::before {
  content: "";
  position: absolute;
  height: 16px;
  width: 16px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  border-radius: 50%;
  transition: .3s;
}

.vis-toggle input:checked + .slider {
  background-color: #cb7900;
}

.vis-toggle input:checked + .slider::before {
  transform: translateX(18px);
}

/* Support chat */
.support-chat {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 1000;
}

.support-button {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: #cb7900;
  color: #fff;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  box-shadow: 0 4px 12px rgba(203, 121, 0, 0.3);
  transition: all 0.3s;
}

.support-button:hover {
  background: #a36300;
  box-shadow: 0 6px 20px rgba(203, 121, 0, 0.4);
}

.support-unviewed {
  background: #dc2626;
  color: #fff;
  border-radius: 50%;
  min-width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
}

.chat-box {
  position: fixed;
  bottom: 80px;
  right: 24px;
  width: 380px;
  max-height: 500px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
  border: 1px solid #e5e7eb;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  opacity: 0;
  transform: translateY(20px) scale(0.95);
  pointer-events: none;
  transition: all 0.3s ease;
}

.chat-box.open {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.chat-box-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px;
  background: #1f2937;
  color: #fff;
}

.support-header {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 14px;
}

.support-header img {
  width: 28px;
  height: 28px;
  border-radius: 50%;
}

.chat-box-body {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  min-height: 280px;
  max-height: 320px;
  background: #f9fafb;
}

.chat-box-footer {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  border-top: 1px solid #e5e7eb;
  background: #fff;
}

.chat-box-footer textarea {
  flex: 1;
  border: none;
  outline: none;
  resize: none;
  font-size: 14px;
  font-family: 'Inter', sans-serif;
  height: 36px;
  padding: 8px 0;
  background: transparent;
}

.chat-box-footer button {
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  color: #6b7280;
  transition: color 0.2s;
}

.chat-box-footer button:hover {
  color: #cb7900;
}

.support__link-photo-wrapper {
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Cookie banner */
.cookie {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background: #1f2937;
  padding: 16px 24px;
  border-top: 1px solid #374151;
}

.cookie__content {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 16px;
}

.cookie__text {
  color: #d1d5db;
  font-size: 13px;
  flex: 1;
}

.cookie__text a {
  color: #cb7900;
  text-decoration: underline;
}

.cookie__btn {
  background: #cb7900 !important;
  color: #fff !important;
  border: none;
  padding: 8px 24px;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  font-size: 13px;
  white-space: nowrap;
}

/* Mobile app modal */
.app-modal-wrapper {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
}

.app-modal-wrapper__form-body {
  padding: 0;
}

.app-modal-wrapper__body {
  padding: 32px;
  text-align: center;
}

.app-modal__background-icon {
  max-width: 200px;
  margin: 0 auto 16px;
}

.app-modal__title {
  font-size: 20px;
  font-weight: 700;
  color: #111827;
  margin-bottom: 16px;
  font-family: 'Sora', sans-serif;
}

.app-modal__instruction__title {
  font-size: 14px;
  color: #6b7280;
  margin-bottom: 16px;
}

.app-modal__instruction__body ul {
  list-style: none;
  padding: 0;
  margin: 0 0 16px;
}

.app-modal__instruction__body li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  font-size: 14px;
  color: #374151;
}

.app-modal__instruction__icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

.app-modal__description-body {
  font-size: 12px;
  color: #9ca3af;
  margin-bottom: 16px;
}

.banner__btn {
  background: #cb7900 !important;
  color: #fff !important;
  border: none;
  padding: 10px 32px;
  border-radius: 10px;
  font-weight: 600;
  cursor: pointer;
  width: 100%;
}

/* Profile menu items */
.profile-overview {
  padding: 16px;
  background: #f3f4f6;
  color: #111827;
  cursor: pointer;
}

.dark .profile-overview {
  background: #1f2937;
  color: #fff;
}

.profile-user-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.profile-user-header img {
  border-radius: 50%;
}

.profile-user-title {
  font-weight: 600;
  font-size: 14px;
  color: #111827;
}

.dark .profile-user-title {
  color: #fff;
}

.profile-uid {
  font-size: 12px;
  color: #6b7280;
}

.dark .profile-uid {
  color: #9ca3af;
}

.profile-user-features {
  display: flex;
  gap: 8px;
}

.profile-user-feature {
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 4px;
  font-weight: 600;
}

.profile-user-feature-not-vip {
  background: #e5e7eb;
  color: #6b7280;
}

.dark .profile-user-feature-not-vip {
  background: #374151;
  color: #9ca3af;
}

.profile-user-feature-yes-vip {
  background: #cb7900;
  color: #fff;
}

.profile-user-feature-unverified {
  background: #dc2626;
  color: #fff;
}

.profile-user-feature-verified {
  background: #059669;
  color: #fff;
}

.profile-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  font-size: 13px;
  color: #374151;
  text-decoration: none;
  transition: background 0.15s;
  cursor: pointer;
}

.dark .profile-item {
  color: #d1d5db;
}

.profile-item:hover {
  background: #e5e7eb;
}

.dark .profile-item:hover {
  background: #374151;
}

.profile-item img {
  width: 12px;
  height: 12px;
  opacity: 0.5;
}

.profile-item-logout {
  padding: 10px 16px;
  font-size: 13px;
  color: #ef4444;
  cursor: pointer;
  transition: background 0.15s;
}

.profile-item-logout:hover {
  background: #e5e7eb;
}

.dark .profile-item-logout:hover {
  background: #374151;
}

/* Assets overview */
.assets-overview {
  padding: 16px;
  background: #f3f4f6;
}

.dark .assets-overview {
  background: #1f2937;
}

.assets-overview h3 {
  font-size: 13px;
  color: #6b7280;
  font-weight: 500;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.dark .assets-overview h3 {
  color: #9ca3af;
}

.assets-overview-balance {
  background: #e5e7eb;
  border-radius: 10px;
  padding: 14px;
  cursor: pointer;
}

.dark .assets-overview-balance {
  background: #374151;
}

.assets-overview-balance .balance {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.assets-overview-balance .balance #usd-balance {
  font-size: 24px !important;
  color: #111827 !important;
  font-weight: 700;
  font-family: 'JetBrains Mono', monospace;
}

.dark .assets-overview-balance .balance #usd-balance {
  color: #fff !important;
}

.assets-overview-balance .balance #btc-balance {
  font-size: 12px;
  color: #6b7280;
}

.dark .assets-overview-balance .balance #btc-balance {
  color: #9ca3af;
}

.assets-overview-balance p {
  font-size: 11px;
  color: #6b7280;
  margin-top: 4px;
}

.assets-overview-balance .buttons {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}

.assets-overview-balance .buttons a {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: #d1d5db;
  color: #111827;
  text-decoration: none;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 500;
  transition: background 0.2s;
}

.dark .assets-overview-balance .buttons a {
  background: #4b5563;
  color: #fff;
}

.assets-overview-balance .buttons a:hover {
  background: #9ca3af;
}

.dark .assets-overview-balance .buttons a:hover {
  background: #6b7280;
}

.assets-overview-balance .buttons img {
  width: 14px;
  height: 14px;
}

.assets-balances {
  padding: 8px 16px 16px;
  background: #f3f4f6;
}

.dark .assets-balances {
  background: #1f2937;
}

.assets-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 0;
  text-decoration: none;
}

.assets-item-columns {
  display: flex;
  align-items: center;
  gap: 8px;
}

.assets-item-label {
  font-size: 13px;
  color: #374151;
}

.dark .assets-item-label {
  color: #d1d5db;
}

.assets-item-val {
  font-size: 11px;
  color: #6b7280;
}

.assets-item-label-end {
  font-size: 13px;
  color: #6b7280;
  font-family: 'JetBrains Mono', monospace;
}

.dark .assets-item-label-end {
  color: #9ca3af;
}

/* Mobile-specific footer accordion */
@media (max-width: 768px) {
  .footer-section ul {
    display: none;
  }

  .footer-section.active ul {
    display: block;
  }

  .footer-title__wrapper {
    cursor: pointer;
  }

  .footer-section.active .footer-title__wrapper .mdi-chevron-down {
    transform: rotate(180deg);
  }
}

/* Dark mode support chat */
.dark .chat-box {
  background: #111827;
  border-color: #374151;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.dark .chat-box-header {
  background: #0f172a;
}

.dark .chat-box-body {
  background: #1f2937;
}

.dark .chat-box-footer {
  background: #111827;
  border-color: #374151;
}

.dark .chat-box-footer textarea {
  color: #e5e7eb;
}

.dark .chat-box-footer button {
  color: #9ca3af;
}

/* Dark mode cookie banner */
.dark .cookie {
  background: #0f172a;
  border-color: #1f2937;
}

/* Dark mode app modal */
.dark .app-modal-wrapper {
  background: #111827;
}

.dark .app-modal__title {
  color: #f9fafb;
}

.dark .app-modal__instruction__title {
  color: #9ca3af;
}

.dark .app-modal__instruction__body li {
  color: #d1d5db;
}

@media (min-width: 769px) {
  .footer-title__wrapper .v-expansion-panel-header__icon {
    display: none;
  }
}

/* Smooth scrollbar for mobile menu */
.mobile-menu {
  scrollbar-width: thin;
  scrollbar-color: #d1d5db transparent;
}

/* Dropdown menus - positioned absolute under nav buttons */
.main-menu__section__menu {
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 100;
  min-width: 280px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08), 0 4px 16px rgba(0, 0, 0, 0.04);
  padding: 8px;
}

.dark .main-menu__section__menu {
  background: #111827;
  border-color: #374151;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4), 0 4px 16px rgba(0, 0, 0, 0.2);
}

.main-menu__section__menu a {
  text-decoration: none;
}

/* Profile/Assets/History dropdown */
.main-menu__section__block {
  min-width: 320px;
  padding: 0 !important;
  border-radius: 12px;
  overflow: hidden;
  right: 0;
  left: auto;
}

/* Language dropdown */
.menu-lang {
  flex-wrap: wrap;
  gap: 4px;
  min-width: 320px;
  padding: 12px !important;
}

.menu-lang .main-menu__section__menu__nav {
  flex: 0 0 calc(50% - 2px);
}

.menu-lang .main-menu__section__menu__nav__title {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 13px;
  color: #374151;
  cursor: pointer;
  transition: background 0.15s;
}

.dark .menu-lang .main-menu__section__menu__nav__title {
  color: #d1d5db;
}

.menu-lang .main-menu__section__menu__nav__title:hover {
  background: #f3f4f6;
}

.dark .menu-lang .main-menu__section__menu__nav__title:hover {
  background: #1f2937;
}

.menu-lang .main-menu__section__menu__nav__title__prefix {
  font-weight: 600;
  font-size: 12px;
  color: #9ca3af;
  min-width: 36px;
}

/* Mobile app banner overlay */
#mobile-app-banner {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
}

#mobile-app-banner .v-dialog {
  max-width: 450px;
  width: 90%;
  margin: auto;
}

/* Filter button active state */
.filter-btn.active {
  background-color: #cb7900 !important;
  color: #fff !important;
  border-color: #cb7900 !important;
}

/* Sort icon dark mode */
.dark th[data-index]:hover {
  background: #1f2937;
}

.dark th[data-index] i {
  color: #6b7280;
}

/* Sort icon */
th[data-index] {
  cursor: pointer;
  user-select: none;
}

th[data-index]:hover {
  background: #f3f4f6;
}

th[data-index] i {
  font-size: 14px !important;
  margin-left: 4px;
  color: #9ca3af;
  transition: transform 0.2s;
}

/* Soon label */
.soon-label {
  position: absolute;
  top: -4px;
  right: -28px;
  background-color: #e5e7eb;
  color: #374151;
  font-size: 9px;
  font-weight: 700;
  padding: 1px 4px;
  border-radius: 3px;
}
