/* ==========================================================================
   Original top theme (header, stat cards, market bar), shared look with
   /ldp/ and the other bots. Rules are copied from the old style.css; its
   global reset is scoped to the header so it can't leak into the page.
   ========================================================================== */

:root {
  --color-white-100: hsl(206, 5%, 98%);
  --color-black-500: hsl(220, 18%, 3%);
  --color-pink-400: hsl(328, 11%, 26%);
  --color-pink-500: hsl(336, 5%, 19%);
  --shadow-medium: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.header, .header *, .header *::before, .header *::after,
.ac-top, .ac-top *, .market-menue, .market-menue * {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  list-style: none;
  text-decoration: none;
}

.header a, .header button {
  cursor: pointer;
  border: none;
  outline: none;
  user-select: none;
  background: none;
  box-shadow: none;
}

.container {
  max-width: 75rem;
  height: auto;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: auto;
  z-index: 100;
  margin: 0 auto;
  box-shadow: var(--shadow-medium);
  background-color: var(--color-white-100);
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  font-size: 1rem;
  line-height: 1.5;
  color: var(--color-black-500);
  text-align: left;
}

.wrapper {
  max-width: inherit;
  display: flex;
  align-items: center;
  justify-content: space-between;
  row-gap: 2rem;
  width: 100%;
  height: 3.5rem;
  margin: 0 auto;
}

.menu { display: flex; }

.menu-item {
  position: relative;
  display: inline-block;
  margin-left: 1.5rem;
}

.menu-link {
  display: flex;
  justify-content: center;
  align-items: center;
  column-gap: 0.25rem;
  font-size: 1rem;
  font-weight: 500;
  line-height: inherit;
  cursor: pointer;
  text-transform: capitalize;
  color: var(--color-black-500);
  transition: all 0.3s ease-in-out;
}
.menu-link:hover { outline: none; color: var(--color-pink-500); }

.img-text-men { font-size: 1.2em; padding: 0.5em; }

.button-3 {
  width: 10em;
  appearance: none;
  background-color: #2ea44f;
  border: 1px solid rgba(27, 31, 35, .15) !important;
  border-radius: 6px;
  box-shadow: rgba(27, 31, 35, .1) 0 1px 0;
  color: #fff;
  cursor: pointer;
  display: inline-block;
  font-family: -apple-system, system-ui, "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 14px;
  font-weight: 600;
  line-height: 20px;
  padding: 6px 16px !important;
  position: relative;
  text-align: center;
  user-select: none;
  touch-action: manipulation;
  vertical-align: middle;
  white-space: nowrap;
}
.header .button-3 { background-color: #2ea44f; }
.button-3:hover { background-color: #2c974b; }
.button-3:focus { box-shadow: rgba(46, 164, 79, .4) 0 0 0 3px; outline: none; }
.button-3:active { background-color: #298e46; box-shadow: rgba(20, 70, 32, .2) 0 1px 0 inset; }

.burger {
  position: relative;
  display: none;
  cursor: pointer;
  user-select: none;
  width: 1.75rem;
  height: 1rem;
  opacity: 0;
  visibility: hidden;
  background: transparent;
}
.burger-line {
  position: absolute;
  display: block;
  left: 0;
  width: 100%;
  height: 2px;
  opacity: 1;
  border: none;
  outline: none;
  background: var(--color-black-500);
}
.burger-line:nth-child(1) { top: 0; }
.burger-line:nth-child(2) { top: 0.5rem; }
.burger-line:nth-child(3) { top: 1rem; }

.overlay {
  position: fixed;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  z-index: 9;
  opacity: 0;
  visibility: hidden;
  transition: all 0.35s ease-in-out;
  background-color: rgba(0, 0, 0, 0.65);
}

@media only screen and (min-width: 992px) {
  #mobile-login { display: none !important; }
}

@media screen and (max-width: 992px) {
  .navbar {
    position: fixed;
    top: 0;
    left: -100%;
    width: 75%;
    height: 100%;
    z-index: 10;
    opacity: 0;
    overflow-y: auto;
    visibility: hidden;
    box-shadow: var(--shadow-medium);
    background-color: var(--color-white-100);
    transition: all 0.5s ease;
  }
  .navbar.active { left: 0; opacity: 1; visibility: visible; }
  .header .menu { width: 100%; height: auto; padding: 1rem 0; display: block; }
  .menu-item { display: block; margin: 0 auto; text-align: left; font-size: 1.2em; padding: 0.5em; }
  .menu-link { justify-content: space-between; padding: 0.5rem 1.25rem; }
  .burger { display: block; opacity: 1; visibility: visible; }
  .overlay.active { display: block; opacity: 1; visibility: visible; }
}

@media only screen and (max-width: 600px) {
  .header-titl { font-size: 1.5em; }
  /* Keep the wordmark on one line next to a compact Login button. */
  #header .header-titl { white-space: nowrap; }
  #header #mobile-login { width: auto; margin-left: auto; margin-right: 14px; padding: 6px 12px !important; }
}
@media only screen and (max-width: 370px) {
  #header .header-titl { font-size: 30px; }
}

/* The original page used a 16px base, and this area is sized in em. */
.ac-top { font-size: 16px; }
/* Same edges as the market switcher and the content below. */
.ac-top .stat-row { max-width: 1320px; padding: 0 16px; }
@media (max-width: 720px) { .ac-top .stat-row { padding: 0 10px; } }

/* ── FAQ dialog: same look as the other bots (Digit Matrix, LDP) ─────── */
.ms-faq-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  overflow: auto;
  background: rgba(15, 23, 32, 0.5);
}
.ms-faq-box {
  width: 90%;
  max-width: 800px;
  max-height: 80vh;
  margin: 5% auto;
  padding: 20px;
  overflow-y: auto;
  text-align: left;
  background: #ffffff;
  border-radius: 14px;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}
.ms-faq-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}
.ms-faq-head h3 { margin: 0; font-size: 1.15rem; color: #333; }
.ms-faq-head button { padding: 0 4px; border: 0; background: none; cursor: pointer; font-size: 24px; line-height: 1; color: #666; }
.faq-container { max-width: 900px; margin: 0 auto; }
.faq-item {
  border: 2px solid #f1f5f9;
  border-radius: 12px;
  margin-bottom: 1rem;
  overflow: hidden;
  transition: all 0.3s ease;
  background: white;
}
.faq-item:hover { border-color: rgba(102, 126, 234, 0.3); }
.faq-item.active { border-color: #667eea; box-shadow: 0 4px 15px rgba(102, 126, 234, 0.15); }
.faq-question {
  padding: .5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 1rem;
  background: #fafbfc;
  transition: all 0.3s ease;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}
.faq-question:hover { background: #f0f4f8; }
.faq-item.active .faq-question { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); color: white; }
.faq-icon {
  font-size: 1.25rem;
  font-weight: bold;
  color: #667eea;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: white;
  border-radius: 50%;
  transition: all 0.3s ease;
  flex-shrink: 0;
}
.faq-item.active .faq-icon { background: white; color: #667eea; transform: rotate(45deg); }
.faq-text { font-weight: 600; font-size: 1rem; color: #2c3e50; flex: 1; }
.faq-item.active .faq-text { color: white; }
.faq-answer { max-height: 0; overflow: hidden; transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1); }
.faq-item.active .faq-answer { max-height: 640px; }
.faq-answer p { padding: 0 1.5rem 1.5rem; margin: 0; color: #5a6c7d; line-height: 1.7; font-size: 0.95rem; }
.faq-answer p:first-child { padding-top: 1rem; }

@media (max-width: 600px) {
  .ms-faq-box { width: auto; max-height: calc(100vh - 24px); margin: 12px; padding: 16px 14px; }
  .faq-question { padding: 0.85rem 0.75rem; gap: 0.75rem; }
  .faq-text { font-size: 0.95rem; }
  .faq-answer p { padding: 0 1rem 1rem; font-size: 0.92rem; }
  .faq-answer p:first-child { padding-top: 0.85rem; }
}
